/* ========================================
   熊猫银杏教 — 温馨典雅主题样式
   ======================================== */

/* --- CSS 变量 --- */
:root {
    /* 主色调：温暖典雅 */
    --cream: #FEF9F0;
    --warm-white: #FFFAF3;
    --bamboo-green: #5B7B3A;
    --bamboo-light: #8DA96D;
    --bamboo-pale: #D4E4C5;
    --ginkgo-gold: #C8A951;
    --ginkgo-light: #E8D5A3;
    --ginkgo-pale: #F9F0D7;
    --ink-black: #2C2416;
    --ink-gray: #5C5346;
    --ink-light: #8B8376;
    --warm-red: #B5453A;
    --warm-red-light: #D4756B;
    --paper: #FDF8EF;
    --shadow-soft: 0 4px 20px rgba(44, 36, 22, 0.08);
    --shadow-medium: 0 8px 40px rgba(44, 36, 22, 0.12);
    --shadow-card: 0 2px 12px rgba(44, 36, 22, 0.06);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-serif: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', serif;
    --font-display: 'ZCOOL XiaoWei', 'Ma Shan Zheng', 'KaiTi', 'STKaiti', cursive;
    --font-body: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 全局重置 --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--ink-black);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   银杏背景层
   ======================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url('images/ginkgo.jpg') center/cover no-repeat;
    opacity: 0.28;
}

.ginkgo-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url('images/ginkgo.jpg') center/cover no-repeat;
    opacity: 0.28;
}

/* 各区块需要高于银杏背景但让熊猫可见 */
.navbar,
.hero,
.mission,
.leaders,
.anthem,
.blessing,
.footer {
    position: relative;
    z-index: 1;
}

/* 区块背景半透明化，让银杏背景透出 */
.hero {
    background: linear-gradient(
        170deg,
        rgba(254, 249, 240, 0.88) 0%,
        rgba(249, 240, 215, 0.88) 25%,
        rgba(253, 248, 239, 0.88) 50%,
        rgba(245, 240, 232, 0.88) 75%,
        rgba(254, 249, 240, 0.88) 100%
    ) !important;
}

.mission {
    background: linear-gradient(180deg,
        rgba(254, 249, 240, 0.88) 0%,
        rgba(255, 250, 243, 0.88) 50%,
        rgba(254, 249, 240, 0.88) 100%) !important;
}

.leaders {
    background: rgba(255, 250, 243, 0.88) !important;
}

.anthem {
    background: linear-gradient(180deg,
        rgba(254, 249, 240, 0.88) 0%,
        rgba(255, 250, 243, 0.88) 50%,
        rgba(254, 249, 240, 0.88) 100%) !important;
}

.blessing {
    background: rgba(255, 250, 243, 0.88) !important;
}

.footer {
    background: linear-gradient(180deg,
        rgba(255, 250, 243, 0.88) 0%,
        rgba(240, 235, 224, 0.88) 100%) !important;
}

/* 卡片背景也半透明化 */
.mission-card,
.leader-card,
.anthem-player,
.anthem-lyrics,
.blessing-card,
.blessing-message,
.wish-form,
.mission-verse {
    background: rgba(253, 248, 239, 0.85) !important;
    backdrop-filter: blur(2px);
}

/* ========================================
   登录页面
   ======================================== */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(160deg, #FEF9F0 0%, #F5EDDC 40%, #FDF8EF 70%, #F9F0D7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-box {
    text-align: center;
    width: 90%;
    max-width: 380px;
    animation: loginIn 0.6s ease;
}

@keyframes loginIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-emblem {
    margin-bottom: 1.2rem;
}

.login-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ginkgo-light);
    box-shadow: 0 0 0 8px rgba(200, 169, 81, 0.1),
                0 8px 32px rgba(44, 36, 22, 0.12);
}

.login-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--bamboo-green);
    letter-spacing: 6px;
    margin-bottom: 0.3rem;
}

.login-subtitle {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--ink-light);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.login-form {
    text-align: left;
}

.login-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(139, 131, 118, 0.25);
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    transition: var(--transition);
}

.login-field:focus-within {
    border-color: var(--ginkgo-gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.1);
    background: white;
}

.login-field-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.login-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--ink-black);
    outline: none;
}

.login-error {
    font-size: 0.8rem;
    color: var(--warm-red);
    letter-spacing: 1px;
    text-align: center;
    min-height: 1.2rem;
    margin: 0.3rem 0;
}

.login-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--bamboo-green), var(--bamboo-light));
    color: white;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 6px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(91, 123, 58, 0.3);
}

.login-hint {
    font-size: 0.7rem;
    color: var(--ink-light);
    text-align: center;
    margin-top: 1rem;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* 用户列表样式 */
.user-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid rgba(139, 131, 118, 0.08);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.user-list-item .user-name {
    color: var(--ink-black);
    font-weight: 500;
}

.user-list-item .user-role {
    font-size: 0.7rem;
    color: var(--ink-light);
    margin-left: 0.5rem;
}

.user-list-item .user-delete-btn {
    font-size: 0.7rem;
    color: var(--warm-red-light);
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
}

.user-list-item .user-delete-btn:hover {
    background: rgba(181, 69, 58, 0.1);
}

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(254, 249, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 131, 118, 0.15);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-soft);
    background: rgba(254, 249, 240, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ginkgo-light);
    transition: var(--transition);
}

.nav-logo:hover {
    transform: rotate(-10deg);
    border-color: var(--ginkgo-gold);
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--bamboo-green);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--ink-gray);
    font-size: 0.95rem;
    font-family: var(--font-serif);
    letter-spacing: 1px;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--bamboo-green);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--bamboo-green);
}

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

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink-black);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- 英雄区 --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 123, 58, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out 4s infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-emblem {
    margin-bottom: 2rem;
    animation: emblemFloat 3s ease-in-out infinite;
}

@keyframes emblemFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.emblem-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ginkgo-light);
    box-shadow: 0 0 0 12px rgba(200, 169, 81, 0.12),
                0 0 0 24px rgba(200, 169, 81, 0.06),
                0 8px 40px rgba(44, 36, 22, 0.15);
    transition: var(--transition);
}

.emblem-img:hover {
    transform: scale(1.05);
    border-color: var(--ginkgo-gold);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--bamboo-green);
    letter-spacing: 8px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(91, 123, 58, 0.1);
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--ink-light);
    letter-spacing: 3px;
    margin-bottom: 3rem;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--ink-light);
    font-size: 0.8rem;
    letter-spacing: 4px;
    opacity: 0.7;
    animation: scrollBounce 2s ease-in-out infinite;
    cursor: pointer;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}

.scroll-arrow {
    font-size: 1.2rem;
}

/* 装饰元素 */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.5;
    animation: leafFloat 6s ease-in-out infinite;
}

.leaf-1 { top: 15%; left: 10%; animation-delay: 0s; }
.leaf-2 { top: 25%; right: 12%; animation-delay: 2s; font-size: 1.5rem; }
.leaf-3 { bottom: 25%; left: 15%; animation-delay: 4s; font-size: 1.8rem; }

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    33% { transform: translateY(-20px) rotate(5deg); opacity: 0.6; }
    66% { transform: translateY(-10px) rotate(-3deg); opacity: 0.5; }
}

/* --- 通用区块样式 --- */
.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--bamboo-green);
    letter-spacing: 6px;
    margin-bottom: 1rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ginkgo-light), transparent);
}

.divider-icon {
    font-size: 1rem;
    color: var(--ginkgo-gold);
}

/* --- 教旨区 --- */
.mission {
    position: relative;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ginkgo-light), transparent);
}

.mission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission-card {
    background: var(--paper);
    border: 1px solid rgba(200, 169, 81, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--bamboo-light), var(--ginkgo-gold));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.mission-card:hover::before {
    transform: scaleX(1);
}

.mission-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

/* 教旨卡片中的熊猫图片 */
.mission-panda-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ginkgo-light);
    box-shadow: 0 4px 16px rgba(44, 36, 22, 0.12);
    transition: var(--transition);
}

.mission-icon:has(.mission-panda-img) {
    font-size: inherit;
}

.mission-card:hover .mission-icon {
    transform: scale(1.15);
}

.mission-card:hover .mission-panda-img {
    border-color: var(--ginkgo-gold);
    box-shadow: 0 6px 24px rgba(44, 36, 22, 0.18);
}

.mission-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--bamboo-green);
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--ink-gray);
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: 1px;
}

.mission-verse {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(200, 169, 81, 0.06), rgba(91, 123, 58, 0.04));
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--ginkgo-gold);
    border-right: 4px solid var(--ginkgo-gold);
}

.verse-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--bamboo-green);
    letter-spacing: 4px;
    margin-bottom: 0.8rem;
}

.verse-attribution {
    color: var(--ink-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* --- 教众区 --- */
.leaders {
    position: relative;
}

.leaders-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.leader-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    width: 320px;
}

.leader-primary {
    border: 2px solid var(--ginkgo-light);
    box-shadow: var(--shadow-soft);
}

.leader-primary:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--ginkgo-gold);
}

.leader-secondary {
    border: 1px solid rgba(139, 131, 118, 0.2);
}

.leader-secondary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.leader-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ginkgo-gold);
    color: white;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 3px;
    padding: 4px 20px;
    border-radius: 20px;
    white-space: nowrap;
}

.leader-secondary .leader-badge {
    background: var(--bamboo-light);
}

.leader-avatar {
    margin: 1rem auto 1.2rem;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ginkgo-gold), var(--ginkgo-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: white;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(200, 169, 81, 0.25);
}

.avatar-circle.secondary {
    background: linear-gradient(135deg, var(--bamboo-light), var(--bamboo-pale));
    color: var(--bamboo-green);
    box-shadow: 0 4px 16px rgba(91, 123, 58, 0.2);
}

.leader-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--ink-black);
    letter-spacing: 4px;
    margin-bottom: 0.3rem;
}

.leader-title {
    font-size: 0.9rem;
    color: var(--ginkgo-gold);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.leader-secondary .leader-title {
    color: var(--bamboo-green);
}

.leader-desc {
    color: var(--ink-gray);
    font-size: 0.9rem;
    line-height: 1.9;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.leader-seal {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--warm-red-light);
    color: var(--warm-red);
    font-family: var(--font-display);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    opacity: 0.7;
    letter-spacing: 2px;
}

/* --- 教歌区 --- */
.anthem {
    /* background set in transparent overlays above */
}

.anthem-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.anthem-player {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(200, 169, 81, 0.2);
}

.anthem-cover {
    margin-bottom: 1.5rem;
}

.cover-art {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #2C2416, #5C5346);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.anthem-player.playing .cover-art {
    animation: coverPulse 2s ease-in-out infinite;
}

@keyframes coverPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(44, 36, 22, 0.12); }
    50% { box-shadow: 0 4px 30px rgba(200, 169, 81, 0.3); }
}

.cover-note {
    font-size: 3rem;
}

.anthem-cover h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink-black);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.anthem-artist {
    color: var(--ink-light);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.netEasePlayer {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.netEasePlayer iframe {
    display: block;
}

.anthem-note {
    font-size: 0.8rem;
    color: var(--ink-light);
    letter-spacing: 2px;
    margin-top: 1rem;
}

.anthem-lyrics {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(200, 169, 81, 0.15);
}

.lyrics-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--bamboo-green);
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 1.2rem;
}

.lyrics-box {
    text-align: center;
    color: var(--ink-gray);
    line-height: 2.2;
    letter-spacing: 1px;
    font-size: 0.95rem;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.lyrics-box::-webkit-scrollbar {
    width: 4px;
}

.lyrics-box::-webkit-scrollbar-track {
    background: transparent;
}

.lyrics-box::-webkit-scrollbar-thumb {
    background: var(--ginkgo-pale);
    border-radius: 2px;
}

.lyrics-divider {
    color: var(--ginkgo-gold);
    margin: 0.8rem 0;
    letter-spacing: 0;
}

/* --- 祈福区 --- */
.blessing {
    /* background set in transparent overlays above */
}

.blessing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.blessing-card {
    background: var(--paper);
    border-radius: var(--radius-md);
    padding: 2rem 1.8rem;
    text-align: center;
    width: 180px;
    border: 1px solid rgba(200, 169, 81, 0.2);
    transition: var(--transition);
}

.blessing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--ginkgo-light);
}

.blessing-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.8rem;
}

.blessing-card p {
    font-family: var(--font-serif);
    color: var(--ink-gray);
    font-size: 0.95rem;
    letter-spacing: 2px;
    line-height: 1.8;
}

.blessing-message {
    background: linear-gradient(135deg, rgba(200, 169, 81, 0.08), rgba(91, 123, 58, 0.05));
    border-radius: var(--radius-md);
    padding: 1.8rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--ginkgo-gold);
}

.blessing-message p {
    color: var(--ink-gray);
    letter-spacing: 2px;
    line-height: 2;
}

.wish-form {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(200, 169, 81, 0.15);
}

.wish-form h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--bamboo-green);
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 1.2rem;
}

.wish-input-group {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.wish-input-group input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(139, 131, 118, 0.3);
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: var(--warm-white);
    color: var(--ink-black);
    outline: none;
    transition: var(--transition);
}

.wish-input-group input:focus {
    border-color: var(--ginkgo-gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.1);
}

.wish-input-group button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--bamboo-green), var(--bamboo-light));
    color: white;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.wish-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91, 123, 58, 0.25);
}

.wish-input-group button:active {
    transform: translateY(0);
}

.wish-wall {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 200px;
    overflow-y: auto;
}

.wish-wall::-webkit-scrollbar {
    width: 4px;
}

.wish-wall::-webkit-scrollbar-track {
    background: transparent;
}

.wish-wall::-webkit-scrollbar-thumb {
    background: var(--bamboo-pale);
    border-radius: 2px;
}

.wish-item {
    background: var(--warm-white);
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--ink-gray);
    letter-spacing: 1px;
    border-left: 3px solid var(--ginkgo-pale);
    animation: wishFadeIn 0.4s ease;
}

@keyframes wishFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 页脚 --- */
.footer {
    border-top: 1px solid rgba(139, 131, 118, 0.15);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
}

.footer-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ginkgo-light);
}

.footer-emblem h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--bamboo-green);
    letter-spacing: 3px;
}

.footer-motto {
    color: var(--ink-gray);
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ginkgo-light), transparent);
    margin: 0 auto 1.5rem;
}

.footer-info {
    color: var(--ink-light);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-copy {
    color: var(--ink-light);
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* ========================================
   时间轴侧边栏
   ======================================== */
.timeline-sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 100;
    background: rgba(254, 249, 240, 0.95);
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(200, 169, 81, 0.25);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 24px rgba(44, 36, 22, 0.06);
}

.timeline-sidebar.collapsed {
    transform: translateX(-290px);
}

.timeline-sidebar.collapsed .toggle-icon {
    transform: rotate(180deg);
}

/* 收起后露出的折叠手柄 */
.timeline-sidebar::after {
    content: '';
    display: none;
}

/* 浮动手柄（时间轴收起时显示） */
.timeline-float-handle {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 99;
    width: 36px;
    height: 60px;
    border-radius: 0 12px 12px 0;
    border: 1px solid rgba(200, 169, 81, 0.3);
    border-left: none;
    background: rgba(254, 249, 240, 0.92);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 2px 0 12px rgba(44, 36, 22, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
}

.timeline-float-handle.visible {
    opacity: 1;
    pointer-events: auto;
}

.timeline-float-handle:hover {
    background: rgba(200, 169, 81, 0.15);
    border-color: var(--ginkgo-gold);
    width: 42px;
}

/* 时间轴头部 */
.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(200, 169, 81, 0.2);
    flex-shrink: 0;
}

.timeline-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--bamboo-green);
    letter-spacing: 2px;
    margin: 0;
}

.timeline-toggle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(139, 131, 118, 0.3);
    background: var(--paper);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--ink-light);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.timeline-toggle-btn:hover {
    background: var(--bamboo-pale);
    border-color: var(--bamboo-light);
    color: var(--bamboo-green);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.4s ease;
}

/* 时间轴内容区 */
.timeline-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.2rem;
}

.timeline-body::-webkit-scrollbar {
    width: 4px;
}

.timeline-body::-webkit-scrollbar-track {
    background: transparent;
}

.timeline-body::-webkit-scrollbar-thumb {
    background: var(--ginkgo-pale);
    border-radius: 2px;
}

.timeline-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ink-light);
}

.timeline-empty p {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.timeline-empty-hint {
    font-size: 0.75rem !important;
    opacity: 0.6;
}

/* 时间轴条目列表 */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 20px;
}

/* 时间轴线 */
.timeline-list::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        var(--ginkgo-light),
        var(--bamboo-pale),
        var(--ginkgo-light));
    border-radius: 1px;
}

/* 单条事件 */
.timeline-entry {
    position: relative;
    padding: 0.8rem 0 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(139, 131, 118, 0.08);
    transition: var(--transition);
    cursor: default;
}

.timeline-entry:hover {
    background: rgba(200, 169, 81, 0.05);
    border-radius: var(--radius-sm);
}

/* 时间点 */
.timeline-entry::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 1.1rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ginkgo-gold);
    border: 2px solid var(--paper);
    box-shadow: 0 0 0 2px var(--ginkgo-light);
    z-index: 1;
}

.timeline-entry:first-child::before {
    background: var(--warm-red);
    box-shadow: 0 0 0 2px var(--warm-red-light);
}

.timeline-entry-date {
    font-size: 0.73rem;
    color: var(--ginkgo-gold);
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    font-weight: 500;
    line-height: 1.6;
}

/* 可点击标题 */
.timeline-entry-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    color: var(--ink-black);
    letter-spacing: 1.5px;
    cursor: pointer;
    padding: 0.35rem 0;
    transition: color 0.25s ease;
    line-height: 1.5;
    user-select: none;
}

.timeline-entry-title:hover {
    color: var(--bamboo-green);
}

.timeline-entry-arrow {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    color: var(--ginkgo-gold);
}

.timeline-entry.expanded .timeline-entry-arrow {
    transform: rotate(90deg);
}

/* 可折叠内容（默认隐藏） */
.timeline-entry-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
}

.timeline-entry.expanded .timeline-entry-body {
    max-height: 400px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    overflow-y: auto;
}

.timeline-entry-body p {
    font-size: 0.82rem;
    color: var(--ink-gray);
    line-height: 1.7;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-entry-image {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: 0.4rem;
    cursor: pointer;
    border: 1px solid rgba(200, 169, 81, 0.2);
    transition: var(--transition);
}

.timeline-entry-image:hover {
    transform: scale(1.02);
    border-color: var(--ginkgo-gold);
}

.timeline-entry-delete {
    font-size: 0.7rem;
    color: var(--warm-red-light);
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-top: 0.2rem;
}

.timeline-entry:hover .timeline-entry-delete {
    opacity: 1;
}

.timeline-entry-delete:hover {
    background: rgba(181, 69, 58, 0.1);
}

/* 添加事件按钮 */
.timeline-add-btn {
    margin: 0.8rem 1.2rem;
    padding: 0.7rem;
    border: 1px dashed rgba(200, 169, 81, 0.4);
    border-radius: var(--radius-sm);
    background: rgba(200, 169, 81, 0.06);
    color: var(--bamboo-green);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.timeline-add-btn:hover {
    background: rgba(200, 169, 81, 0.14);
    border-color: var(--ginkgo-gold);
    color: var(--bamboo-green);
    letter-spacing: 4px;
}

/* ========================================
   弹窗
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(44, 36, 22, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: var(--paper);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(44, 36, 22, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-dialog {
    transform: translateY(0);
}

.modal-dialog::-webkit-scrollbar {
    width: 4px;
}

.modal-dialog::-webkit-scrollbar-track {
    background: transparent;
}

.modal-dialog::-webkit-scrollbar-thumb {
    background: var(--ginkgo-pale);
    border-radius: 2px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(200, 169, 81, 0.2);
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--bamboo-green);
    letter-spacing: 2px;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--ink-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(181, 69, 58, 0.08);
    color: var(--warm-red);
}

.modal-body {
    padding: 1.2rem 1.5rem;
}

.modal-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--ink-gray);
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
    margin-top: 0.8rem;
}

.modal-label:first-child {
    margin-top: 0;
}

.modal-input,
.modal-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(139, 131, 118, 0.3);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: var(--warm-white);
    color: var(--ink-black);
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.modal-input:focus,
.modal-textarea:focus {
    border-color: var(--ginkgo-gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.1);
}

.modal-lunar-preview {
    display: none;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--ginkgo-gold);
    letter-spacing: 2px;
    margin-top: 0.35rem;
    padding-left: 0.3rem;
}

.modal-upload-area {
    position: relative;
    border: 1px dashed rgba(139, 131, 118, 0.35);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-upload-area:hover {
    border-color: var(--ginkgo-gold);
    background: rgba(200, 169, 81, 0.04);
}

.modal-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    text-align: center;
    color: var(--ink-light);
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 1.5rem;
}

.upload-icon {
    font-size: 2rem;
}

.image-preview {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(200, 169, 81, 0.15);
}

.modal-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.modal-btn-cancel {
    background: transparent;
    color: var(--ink-light);
    border: 1px solid rgba(139, 131, 118, 0.3);
}

.modal-btn-cancel:hover {
    background: rgba(139, 131, 118, 0.08);
    color: var(--ink-black);
}

.modal-btn-submit {
    background: linear-gradient(135deg, var(--bamboo-green), var(--bamboo-light));
    color: white;
}

.modal-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91, 123, 58, 0.25);
}

/* ========================================
   内容板块（文集/语录/小记/奇异录）
   ======================================== */
.content-section {
    position: relative;
    z-index: 1;
    background: rgba(255, 250, 243, 0.88) !important;
}

/* 文集/语录/小记 列表布局 */
.content-entries {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

/* 表情奇异录 照片墙布局 */
.content-entries-photo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.content-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ink-light);
    grid-column: 1 / -1;
}

.content-empty p {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.content-empty-hint {
    font-size: 0.75rem !important;
    opacity: 0.6;
}

/* 文集/语录/小记 条目卡片 */
.content-entry {
    background: rgba(253, 248, 239, 0.85);
    border: 1px solid rgba(200, 169, 81, 0.15);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    padding: 0.95rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.content-entry:hover {
    border-color: rgba(200, 169, 81, 0.35);
    box-shadow: var(--shadow-card);
    transform: translateX(4px);
}

.content-entry-arrow {
    font-size: 0.7rem;
    color: var(--ginkgo-gold);
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.content-entry:hover .content-entry-arrow {
    color: var(--bamboo-green);
}

.content-entry-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink-black);
    letter-spacing: 2px;
    flex: 1;
}

.content-entry-date {
    font-size: 0.75rem;
    color: var(--ink-light);
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* 表情奇异录 照片卡片 */
.photo-card {
    background: rgba(253, 248, 239, 0.85);
    border: 1px solid rgba(200, 169, 81, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--ginkgo-light);
}

.photo-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.photo-card-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--bamboo-pale), var(--ginkgo-pale));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.photo-card-info {
    padding: 0.6rem 0.8rem;
    text-align: center;
}

.photo-card-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--ink-black);
    letter-spacing: 1.5px;
}

.photo-card-date {
    font-size: 0.7rem;
    color: var(--ink-light);
    letter-spacing: 1px;
    margin-top: 0.15rem;
}

/* 添加按钮（共用） */
.content-add-btn {
    display: block;
    margin: 0 auto;
    padding: 0.8rem 2.5rem;
    border: 1px dashed rgba(200, 169, 81, 0.45);
    border-radius: 25px;
    background: rgba(200, 169, 81, 0.06);
    color: var(--bamboo-green);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.content-add-btn:hover {
    background: rgba(200, 169, 81, 0.14);
    border-color: var(--ginkgo-gold);
    letter-spacing: 4px;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(200, 169, 81, 0.15);
}

/* ========================================
   详情弹窗（点击条目后弹出）
   ======================================== */
.detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: rgba(44, 36, 22, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.detail-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.detail-dialog {
    background: var(--paper);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem 2.2rem;
    box-shadow: 0 20px 60px rgba(44, 36, 22, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-overlay.active .detail-dialog {
    transform: translateY(0);
}

.detail-dialog::-webkit-scrollbar {
    width: 4px;
}

.detail-dialog::-webkit-scrollbar-track {
    background: transparent;
}

.detail-dialog::-webkit-scrollbar-thumb {
    background: var(--ginkgo-pale);
    border-radius: 2px;
}

.detail-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--ink-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-close:hover {
    background: rgba(181, 69, 58, 0.08);
    color: var(--warm-red);
}

.detail-date {
    font-size: 0.8rem;
    color: var(--ginkgo-gold);
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.detail-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--bamboo-green);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.detail-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--ginkgo-light), transparent);
    margin-bottom: 1.2rem;
}

.detail-content {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-gray);
    line-height: 2;
    letter-spacing: 1px;
    white-space: pre-wrap;
}

.detail-image {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-top: 1.2rem;
    border: 1px solid rgba(200, 169, 81, 0.2);
}

/* 主内容区为时间轴留出空间 */
@media (min-width: 1200px) {
    .section-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(254, 249, 240, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        border-bottom: 1px solid transparent;
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 1rem 0;
        border-bottom-color: rgba(139, 131, 118, 0.15);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .emblem-img {
        width: 120px;
        height: 120px;
    }

    .mission-content {
        grid-template-columns: 1fr;
    }

    .anthem-content {
        grid-template-columns: 1fr;
    }

    .leaders-grid {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .leader-card {
        width: 100%;
        max-width: 320px;
    }

    .blessing-cards {
        gap: 1rem;
    }

    .blessing-card {
        width: 140px;
        padding: 1.5rem 1rem;
    }

    .wish-input-group {
        flex-direction: column;
    }

    .wish-input-group button {
        width: 100%;
    }

    .section-container {
        padding: 3rem 1.2rem;
    }

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

    .verse-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .emblem-img {
        width: 100px;
        height: 100px;
    }

    .blessing-cards {
        flex-direction: column;
        align-items: center;
    }

    .blessing-card {
        width: 100%;
        max-width: 220px;
    }

    /* 移动端时间轴默认收起 */
    .timeline-sidebar {
        width: 280px;
        transform: translateX(-270px);
    }

    .timeline-sidebar:not(.collapsed) {
        transform: translateX(0);
    }
}

/* 平板端时间轴适配 */
@media (max-width: 1024px) {
    .timeline-sidebar {
        width: 280px;
    }
}

/* ========================================
   熊猫动画系统
   ======================================== */
.panda-animation-container {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

/* 单个熊猫元素 */
.panda-actor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    width: 80px;
    height: 80px;
}

/* 熊猫图片 */
.panda-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.2));
    transition: filter 0.3s ease;
}

/* ----- 银杏叶式浮动动画（所有熊猫统一） ----- */
.panda-float {
    animation: pandaFloat 5s ease-in-out infinite;
}

@keyframes pandaFloat {
    0%, 100% { transform: translateY(0) rotate(0deg);    opacity: 0.55; }
    33%      { transform: translateY(-14px) rotate(2deg); opacity: 0.70; }
    66%      { transform: translateY(-6px) rotate(-2deg); opacity: 0.60; }
}

/* 响应式：移动端缩小熊猫 */
@media (max-width: 768px) {
    .panda-actor {
        width: 55px;
        height: 55px;
    }
}
