/* ===== 变量 ===== */
:root {
    --washi: #F9F5F0;
    --washi-dark: #F0EBE3;
    --sumi: #1A1A1A;
    --sumi-light: #3A3A3A;
    --shu-red: #B83A2E;
    --shu-red-light: #E8D5D2;
    --matcha: #3A5A40;
    --gold: #C9A961;
    --border: #D8CFC0;
    --shadow: 0 4px 20px rgba(26, 26, 26, 0.1);
    --shadow-lg: 0 12px 40px rgba(26, 26, 26, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Playfair Display', 'Shippori Mincho', 'Noto Serif SC', serif;
    background: var(--washi);
    color: var(--sumi);
    line-height: 1.8;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }

/* ===== 背景纹样层 ===== */
.bg-patterns {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
}

/* 青海波纹样（满铺背景） */
.bg-wave {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    color: var(--matcha);
    opacity: 0.06;
}

/* 祥云纹样（散布装饰） */
.bg-cloud {
    position: absolute;
    color: var(--shu-red);
    opacity: 0.10;
    width: 200px; height: 200px;
}
.bg-cloud.c2 { top: 30%; right: 5%; transform: rotate(15deg) scale(0.8); opacity: 0.08; }
.bg-cloud.c3 { top: 65%; left: 8%; transform: rotate(-10deg) scale(1.2); opacity: 0.09; }
.bg-cloud.c4 { top: 85%; right: 15%; transform: rotate(20deg) scale(0.7); opacity: 0.07; }

/* 装饰图案 */
.bg-decor {
    position: absolute;
    color: var(--gold);
    opacity: 0.12;
    width: 100px; height: 100px;
}
.bg-decor.d1 { top: 12%; left: 10%; transform: rotate(-15deg); }
.bg-decor.d2 { top: 50%; right: 8%; transform: rotate(25deg); }
.bg-decor.d3 { top: 75%; left: 15%; transform: rotate(10deg); }
.bg-decor.d4 { top: 20%; right: 20%; transform: rotate(-20deg); opacity: 0.08; }

/* ===== 导航栏 ===== */
#navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(249, 245, 240, 0.92);
    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;
}

.logo-seal {
    display: inline-block; padding: 0.3rem 0.8rem;
    background: var(--shu-red); color: var(--washi);
    font-weight: 700; font-size: 1.1rem;
    border-radius: 3px; font-family: 'Shippori Mincho', serif;
    transform: rotate(-2deg);
    box-shadow: 0 2px 8px rgba(184, 58, 46, 0.3);
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    color: var(--sumi-light); font-size: 0.95rem; font-weight: 500;
    position: relative; padding: 0.25rem 0;
    font-family: 'Shippori Mincho', serif;
}
.nav-links a:hover, .nav-links a.active { color: var(--shu-red); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 100%; height: 2px; background: var(--shu-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(--sumi); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; position: relative;
    overflow: hidden; padding: 6rem 2rem 3rem;
    animation: fadeUp 1.5s ease forwards; opacity: 0;
    z-index: 1;
}
@keyframes fadeUp { to { opacity: 1; } }

.hero-watermark {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30rem; font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    color: var(--sumi); opacity: 0.04; z-index: 0;
    pointer-events: none; line-height: 1; user-select: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-seal {
    width: 70px; height: 70px; margin: 0 auto 2rem;
    background: var(--shu-red); color: var(--washi);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700; font-family: 'Shippori Mincho', serif;
    transform: rotate(-3deg);
    box-shadow: 0 4px 16px rgba(184, 58, 46, 0.35);
}

.hero-greeting {
    font-size: 1.3rem; color: var(--shu-red);
    font-style: italic; margin-bottom: 0.5rem;
    font-family: 'Shippori Mincho', serif;
}
.hero-title {
    font-size: 4rem; font-weight: 600; margin-bottom: 1.5rem; line-height: 1.2;
    color: var(--sumi);
}
.hero-title em { font-style: italic; color: var(--shu-red); }
.hero-desc {
    font-size: 1.15rem; color: var(--sumi-light); margin-bottom: 2.5rem; line-height: 1.8;
}

.btn-primary {
    display: inline-block; padding: 0.8rem 2rem; border-radius: 2px;
    background: var(--sumi); color: var(--washi); font-size: 1rem;
    font-family: 'Shippori Mincho', serif; cursor: pointer; border: none;
    transition: all 0.3s; letter-spacing: 1px;
}
.btn-primary:hover { background: var(--shu-red); transform: translateY(-2px); }

.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    color: var(--sumi-light); animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Section ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; position: relative; z-index: 1; }
.section-alt { max-width: 100%; background: var(--washi-dark); }
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-title {
    font-size: 2.2rem; font-weight: 600; margin-bottom: 0.5rem;
    color: var(--sumi); font-family: 'Shippori Mincho', serif;
}
.section-subtitle {
    color: var(--sumi-light); font-style: italic;
    font-size: 1.1rem; margin-bottom: 1rem;
    font-family: 'Noto Serif SC', serif;
}

.section-divider {
    width: 100px; height: 2px; background: var(--shu-red);
    margin: 1rem auto 0; border-radius: 1px;
}

/* ===== Content Grid ===== */
.content-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem;
}

.content-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 4px; overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    position: relative;
}
.content-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--shu-red);
    z-index: 2;
}
.content-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg);
    border-color: var(--shu-red);
}

.content-photo {
    aspect-ratio: 4/3; overflow: hidden; cursor: pointer; background: var(--washi-dark);
}
.content-photo img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s;
}
.content-card:hover .content-photo img { transform: scale(1.05); }

.content-info { padding: 1.5rem; }
.content-info h3 {
    font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem;
    color: var(--sumi); font-family: 'Shippori Mincho', serif;
}
.content-info p {
    color: var(--sumi-light); font-size: 1rem; line-height: 1.7;
}

/* ===== Contact ===== */
.contact-wrapper { text-align: center; max-width: 400px; margin: 0 auto; padding: 2rem 0; }
.contact-intro { color: var(--sumi-light); margin-bottom: 2rem; font-style: italic; }
.contact-email {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 1.1rem; color: var(--sumi);
    border-bottom: 2px solid var(--shu-red);
    padding-bottom: 0.25rem; transition: all 0.3s;
    font-family: 'Shippori Mincho', serif;
}
.contact-email:hover { color: var(--shu-red); transform: translateY(-2px); }

.contact-seal-bottom {
    margin-top: 3rem; display: inline-flex;
    width: 55px; height: 55px; background: var(--shu-red);
    color: var(--washi); border-radius: 4px;
    align-items: center; justify-content: center;
    font-size: 1.8rem; font-family: 'Noto Serif SC', serif;
    font-weight: 600; transform: rotate(-3deg);
    box-shadow: 0 3px 10px rgba(184, 58, 46, 0.3);
}

footer {
    text-align: center; padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--sumi-light); font-size: 0.9rem;
    font-family: 'Shippori Mincho', serif;
    position: relative; z-index: 1;
}

/* ===== 灯箱 ===== */
.lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(26, 26, 26, 0.95);
    z-index: 2000; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 85vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: 1.5rem; right: 2rem; font-size: 3rem;
    color: var(--washi); cursor: pointer; line-height: 1;
}
.lightbox-close:hover { color: var(--shu-red); }

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s 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(--washi); 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.5rem; color: var(--sumi); }
    .mobile-toggle { display: flex; z-index: 999; }

    .hero-title { font-size: 2.5rem; }
    .hero-watermark { font-size: 14rem; }

    .content-grid { grid-template-columns: 1fr; }

    .bg-wave { opacity: 0.04; }
    .bg-cloud { opacity: 0.06; width: 120px; height: 120px; }
    .bg-decor { opacity: 0.06; width: 70px; height: 70px; }
}