/* ===== CSS 变量 ===== */
:root {
    --paper: #F5F0E8;
    --paper-dark: #EDE6D8;
    --ink: #1A1A1A;
    --ink-light: #3A3A3A;
    --ink-muted: #7A7A7A;
    --seal-red: #C5392B;
    --seal-red-light: #E8D5D2;
    --jade: #5B7A6B;
    --border: #D8CFC0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }

/* ===== 导航栏 ===== */
#navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(245, 240, 232, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

#navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
    max-width: 1100px; margin: 0 auto;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-logo {
    display: flex; align-items: baseline; gap: 0.6rem;
    color: var(--ink);
}
.logo-en { font-size: 1.4rem; font-weight: 600; letter-spacing: 1px; }
.logo-cn { font-size: 1rem; color: var(--seal-red); font-family: 'Noto Serif SC', serif; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    color: var(--ink-muted); font-size: 1.05rem; font-weight: 500;
    position: relative; padding: 0.25rem 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 100%; height: 1.5px; background: var(--seal-red);
}

.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 0.5rem;
}
.mobile-toggle span {
    width: 24px; height: 2px; background: var(--ink);
    transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center;
    max-width: 100%; margin: 0 auto; padding: 6rem 2rem 3rem;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

@keyframes fadeUp { to { opacity: 1; } }

.hero-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32rem;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    color: var(--ink);
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    user-select: none;
}

.hero-content {
    text-align: center; max-width: 600px;
    position: relative; z-index: 1;
}

.hero-seal {
    width: 65px; height: 65px;
    background: var(--seal-red); color: #fff;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; font-family: 'Noto Serif SC', serif;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(197, 57, 43, 0.4);
    transform: rotate(-5deg);
    margin: 0 auto 2rem;
}

.hero-greeting {
    font-size: 1.2rem; color: var(--seal-red);
    font-style: italic; margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 4rem; font-weight: 500; line-height: 1.15;
    margin-bottom: 1.5rem; color: var(--ink);
}
.hero-title em {
    font-style: italic; color: var(--seal-red);
    font-weight: 400;
}

.hero-desc {
    font-size: 1.25rem; color: var(--ink-muted);
    margin-bottom: 2rem; line-height: 1.8;
}

.hero-divider {
    width: 1px; height: 40px;
    background: var(--border);
    margin: 0 auto 1.5rem;
}

.hero-quote {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem; color: var(--ink-muted);
    margin-bottom: 2.5rem; letter-spacing: 3px;
}

.hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap;
    justify-content: center;
}

/* ===== 按钮 ===== */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2.2rem; border-radius: 2px;
    font-family: inherit; font-size: 1.05rem; font-weight: 500;
    cursor: pointer; transition: all 0.3s; border: none;
}
.btn-primary {
    background: var(--ink); color: var(--paper);
}
.btn-primary:hover {
    background: var(--seal-red); transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(5px); }
.btn-secondary {
    background: transparent; color: var(--ink);
    border: 1px solid var(--ink);
}
.btn-secondary:hover {
    background: var(--ink); color: var(--paper);
    transform: translateY(-2px);
}

/* ===== 通用 Section ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; }
.section-alt { max-width: 100%; background: var(--paper-dark); }
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-title {
    font-size: 2.5rem; font-weight: 500; text-align: center;
    margin-bottom: 0.5rem; position: relative;
}
.section-title::after {
    content: ''; display: block; width: 50px; height: 2px;
    background: var(--seal-red); margin: 1rem auto 0;
}

.section-subtitle {
    text-align: center; color: var(--ink-muted);
    font-size: 1.15rem; font-style: italic; margin-bottom: 3rem;
}

/* ===== About ===== */
.about-grid { display: flex; gap: 4rem; align-items: center; }
.about-text { flex: 1; }
.about-text p { color: var(--ink-light); margin-bottom: 1.5rem; font-size: 1.15rem; }
.about-text strong { color: var(--ink); font-weight: 600; }

.about-quote {
    font-size: 1.4rem !important; font-style: italic;
    color: var(--ink) !important;
    border-left: 3px solid var(--seal-red);
    padding-left: 1.5rem; margin-bottom: 2rem !important;
}

.about-info { flex: 0 0 280px; display: flex; flex-direction: column; gap: 1rem; }
.info-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 4px; padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow); transition: transform 0.3s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.info-label {
    display: block; font-size: 0.85rem; color: var(--ink-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem;
}
.info-value { display: block; font-size: 1.1rem; color: var(--ink); font-weight: 500; }

/* ===== 画廊筛选 ===== */
.gallery-filters {
    display: flex; gap: 0.5rem; justify-content: center;
    margin-bottom: 3rem; flex-wrap: wrap;
}
.filter-btn {
    padding: 0.5rem 1.5rem; border: 1px solid var(--border);
    background: transparent; color: var(--ink-muted);
    border-radius: 2px; cursor: pointer;
    font-family: inherit; font-size: 1rem; font-weight: 500;
    transition: all 0.3s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active {
    background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* ===== 画廊网格 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: #fff; border-radius: 4px; overflow: hidden;
    box-shadow: var(--shadow); cursor: pointer;
    transition: all 0.4s; position: relative;
}
.gallery-item:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-lg);
}

.gallery-img-wrapper {
    aspect-ratio: 3/4; overflow: hidden; background: var(--paper-dark);
}
.gallery-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s;
}
.gallery-item:hover .gallery-img { transform: scale(1.05); }

.gallery-info { padding: 1.25rem 1.5rem; }
.gallery-info h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.3rem; }
.gallery-info p { color: var(--ink-muted); font-size: 0.95rem; }
.gallery-tags { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.gallery-tags span {
    background: var(--seal-red-light); color: var(--seal-red);
    padding: 0.2rem 0.7rem; border-radius: 2px;
    font-size: 0.8rem; font-weight: 500;
}

/* ===== 视频和文档卡片样式 ===== */
.gallery-special {
    display: flex; align-items: center; justify-content: center;
    background: var(--paper-dark);
}

.special-icon {
    color: var(--ink-muted);
    transition: color 0.3s, transform 0.3s;
}

.gallery-item:hover .special-icon {
    color: var(--seal-red);
    transform: scale(1.1);
}

/* ===== 联系方式 ===== */
.contact-wrapper {
    text-align: center; max-width: 500px; margin: 0 auto;
    position: relative; padding: 3rem 0;
}
.contact-intro {
    font-size: 1.2rem; color: var(--ink-muted);
    margin-bottom: 2rem; font-style: italic;
}
.contact-email {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-size: 1.3rem; color: var(--ink);
    border-bottom: 2px solid var(--seal-red);
    padding-bottom: 0.5rem; transition: all 0.3s;
}
.contact-email:hover { color: var(--seal-red); transform: translateY(-2px); }
.contact-seal {
    margin-top: 3rem; display: inline-flex;
    width: 60px; height: 60px; background: var(--seal-red);
    color: #fff; border-radius: 6px;
    align-items: center; justify-content: center;
    font-size: 2rem; font-family: 'Noto Serif SC', serif;
    font-weight: 600; transform: rotate(-3deg);
}

/* ===== 页脚 ===== */
footer {
    text-align: center; padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--ink-muted); font-size: 0.95rem;
}

/* ===== 灯箱 ===== */
.lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.9); z-index: 2000;
    align-items: center; justify-content: center;
    flex-direction: column; padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox-img {
    max-width: 85vw; max-height: 75vh; object-fit: contain;
    border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-video {
    max-width: 85vw; max-height: 75vh;
    border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute; top: 1.5rem; right: 2rem;
    font-size: 3rem; color: #fff; cursor: pointer;
    line-height: 1; transition: color 0.3s;
}
.lightbox-close:hover { color: var(--seal-red); }
.lightbox-caption {
    color: #fff; font-size: 1.1rem; margin-top: 1.5rem;
    font-style: italic; text-align: center;
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed; top: 0; left: 0;
        width: 100%; height: 100vh; background: var(--paper);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 2.5rem; z-index: 900;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a { font-size: 1.8rem; }

    .mobile-toggle {
        display: flex;
        z-index: 999;
        background: var(--paper);
        position: relative;
    }

    .hero { flex-direction: column; text-align: center; gap: 2rem; padding-top: 5rem; }
    .hero-actions { justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-watermark { font-size: 16rem; }

    .about-grid { flex-direction: column; }
    .about-info { flex: none; width: 100%; }

    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .gallery-info { padding: 0.75rem; }
    .gallery-info h3 { font-size: 1rem; }

    .lightbox-video {
        max-width: 90vw; max-height: 70vh;
    }
}