/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --text-color: #fff;
    --secondary-color: #666;
    --accent-color: #f0f0f0;
    /* Timeline sizing variables */
    --timeline-padding-y: 1.5rem;
    /* 上下内边距 */
    --timeline-title-size: 1.8rem;
    /* 标题字号(用于定位) */
    --timeline-title-gap: 0.5rem;
    /* 标题下间距 */
    --timeline-connector-thickness: 2px;
    --timeline-dot-size: 16px;
    /* 圆点尺寸 */
    --timeline-dot-glow: 4px;
    /* 圆点外发光厚度 */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    margin-left: 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-size: 1rem;
    transition: opacity 0.3s;
    position: relative;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* 当前页面激活状态 */
.nav-link.active::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    align-items: center;
}

.lang-btn {
    padding: 0.5rem 1rem;
    /* border: 1px solid var(--text-color); */
    /* border-radius: 4px; */
    transition: all 0.3s;
    font-size: 0.9rem;
}

/* .lang-btn:hover {
    padding: 0.5rem 1rem;
} */

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    margin-top: 80px;
    /* Header height */
    margin-bottom: 100px;
    scroll-behavior: smooth;
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('/public/index/backgroundImg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg {
    width: 100%;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
} */

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    transform: translateY(-15vh);
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle-en {
    font-size: 1rem;
    letter-spacing: 0.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    text-align: justify;
}


/* Gallery Section */
.gallery {
    padding: 4rem 2rem;
    background-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.stone-shape {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    clip-path: polygon(20% 10%, 80% 5%, 95% 30%, 90% 80%, 60% 95%, 10% 90%, 5% 50%);
}

/* Banner Section */
.banner {
    padding: 6rem 2rem;
    background-color: var(--primary-color);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.banner-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    text-align: center;
}

.banner-image img {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
}

/* Timeline Section */
.timeline {
    padding: 6rem 2rem;
    background-color: var(--primary-color);
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, var(--text-color) 10%, var(--text-color) 90%, transparent 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

/* 连接线：从中线延伸到卡片，增强对齐感 */
.timeline-item::before {
    content: '';
    position: absolute;
    /* 位于标题与列表之间：= 上内边距 + 标题高度 + 标题下间距 */
    top: calc(var(--timeline-padding-y) + var(--timeline-title-size) + var(--timeline-title-gap));
    height: var(--timeline-connector-thickness);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.timeline-item.timeline-left::before {
    left: 0;
    right: 50%;
}

.timeline-item.timeline-right::before {
    left: 50%;
    right: 0;
}

.timeline-left .timeline-content {
    grid-column: 1;
    text-align: left;
}


.timeline-right .timeline-content {
    grid-column: 3;
    text-align: right;
}


.timeline-content {
    padding: var(--timeline-padding-y) 0;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    text-align: left;
}

.timeline-content:hover {
    background: transparent;
    transform: none;
}

/* 卡片微型指示线，指向中心线 */
/* .timeline-left .timeline-content::after {
    content: '';
    position: absolute;
    right: -8px;
    top: calc(1.3rem + 0.5rem);
    width: 12px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
} */
/* .timeline-right .timeline-content::after {
    content: '';
    position: absolute;
    left: -8px;
    top: calc(1.3rem + 0.5rem);
    width: 12px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
} */

.timeline-content h3 {
    font-size: var(--timeline-title-size);
    margin-bottom: var(--timeline-title-gap);
    font-weight: 500;
    line-height: 28px;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.timeline-dot {
    width: var(--timeline-dot-size);
    height: var(--timeline-dot-size);
    background-color: var(--text-color);
    border-radius: 50%;
    position: absolute;
    left: calc(50% - (var(--timeline-dot-size) / 2));
    top: calc(var(--timeline-padding-y) + var(--timeline-title-size) + var(--timeline-title-gap));
    transform: translateY(-50%);
    box-shadow: 0 0 0 var(--timeline-dot-glow) rgba(255, 255, 255, 0.2);
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 100px;
    height: auto;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    margin-bottom: 0;
}

.social-item-text {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.social-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.social-item:hover {
    transform: translateY(-5px);
}

.social-item img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    background-color: #fff;
    padding: 4px;
    object-fit: contain;
}

.social-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-info {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* position: relative; */
    background-image: url('/public/index/backgroundImg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-bg {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-content .hero-subtitle {
    padding: 60px 0 20px 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-left .timeline-content,
    .timeline-right .timeline-content {
        grid-column: 1;
        text-align: left;
        margin-left: 3rem;
    }

    .timeline-dot {
        left: 12px;
        transform: translateY(-50%);
    }

    /* 隐藏水平连线 */
    .timeline-item::before {
        display: none;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .banner-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 0.5rem 1rem;
    }

    .header-content {
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .logo img {
        height: 30px;
    }

    .logo-text {
        margin-left: 10px;
        font-size: 0.8rem;
    }

    .nav {
        display: none;
        /* 由 JS 控制显示为下拉菜单 */
        width: 100%;
        order: 3;
    }

    .nav-link {
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-subtitle-en {
        font-size: 0.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .footer {
        height: auto;
        padding: 2rem 1rem;
        position: relative;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .social-links {
        gap: 1.5rem;
        margin-bottom: 0;
    }

    .social-item img {
        width: 100px !important;
        height: 100px !important;
        padding: 5px;
    }

    .social-item-text {
        display: none;
    }

    .footer-info {
        font-size: 0.8rem;
    }

    .main-content {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
        transform: translateY(-10vh);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-subtitle-en {
        font-size: 0.7rem;
        letter-spacing: 0.1rem;
    }

    .banner {
        padding: 3rem 1rem;
    }

    .timeline {
        padding: 3rem 1rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }
}