/* 颜色变量定义 */
:root {
    --primary-dark: #2E3B4E; /* 黛青 */
    --primary-light: #F8F4E9; /* 月白 */
    --accent-red: #C3272B; /* 朱砂红 */
    --text-black: #000000;
    --text-gray: #333333;
    --text-light: #666666;
    --bg-dark: #1A2332;
    --bg-light: #FFFFFF;
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: var(--text-black);
    background-color: var(--primary-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 固定顶部导航栏样式 */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(248, 244, 233, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(46, 59, 78, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fixed-nav.scrolled {
    background-color: rgba(248, 244, 233, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 章节导航侧边栏样式 */
.sidebar-nav {
    position: fixed;
    top: 80px;
    right: 0;
    width: 280px;
    height: calc(100vh - 80px);
    background-color: rgba(248, 244, 233, 0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(46, 59, 78, 0.1);
    z-index: 999;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-nav.collapsed {
    transform: translateX(100%);
}

.sidebar-toggle {
    position: absolute;
    left: -50px;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: var(--accent-red);
}

.toggle-icon {
    position: relative;
    width: 20px;
    height: 2px;
    background-color: white;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
    left: 0;
    transition: transform 0.3s ease;
}

.toggle-icon::before {
    top: -6px;
}

.toggle-icon::after {
    bottom: -6px;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(46, 59, 78, 0.1);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background-color: rgba(46, 59, 78, 0.1);
    color: var(--primary-dark);
    transform: translateX(-5px);
}

.sidebar-link.active {
    background-color: var(--accent-red);
    color: white;
    font-weight: bold;
}

/* 响应式侧边栏 */
@media (max-width: 1024px) {
    .sidebar-nav {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        width: 280px;
        transform: translateX(100%);
    }
    
    .sidebar-nav.expanded {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        left: 20px;
        border-radius: 4px;
        z-index: 1001;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

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

/* 当前激活的导航链接 */
.nav-links a.active {
    color: var(--accent-red);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
}

/* 主题切换按钮样式 */
.mode-switch button,
.lang-switch button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-switch button:hover,
.lang-switch button:hover {
    background-color: rgba(46, 59, 78, 0.1);
}

.mode-switch .sun,
.mode-switch .moon,
.lang-switch .zh,
.lang-switch .en {
    position: absolute;
    transition: all 0.3s ease;
}

.mode-switch .moon,
.lang-switch .en {
    opacity: 0;
    transform: scale(0.8);
}

body.dark-mode .mode-switch .sun,
body.english-mode .lang-switch .zh {
    opacity: 0;
    transform: scale(0.8);
}

body.dark-mode .mode-switch .moon,
body.english-mode .lang-switch .en {
    opacity: 1;
    transform: scale(1);
}

/* 中英文内容显示控制 */
/* 默认显示中文，隐藏英文 */
.en {
    display: none;
}

/* 英文模式下显示英文，隐藏中文 */
body.english-mode .zh {
    display: none;
}

body.english-mode .en {
    display: inline;
}

/* 夜间模式CSS变量 */
body.dark-mode {
    --primary-dark: #F8F4E9;
    --primary-light: #2E3B4E;
    --accent-red: #E63946;
    --text-black: #F8F4E9;
    --text-gray: #E0E0E0;
    --text-light: #B0B0B0;
    --bg-dark: #1A2332;
    --bg-light: #34495E;
}

body.dark-mode .fixed-nav {
    background-color: rgba(46, 59, 78, 0.95);
    border-bottom: 1px solid rgba(248, 244, 233, 0.1);
}

body.dark-mode .fixed-nav.scrolled {
    background-color: rgba(46, 59, 78, 0.98);
}

body.dark-mode .nav-links a {
    color: var(--primary-light);
}

body.dark-mode .nav-links a:hover {
    color: var(--accent-red);
}

body.dark-mode .mode-switch button:hover,
body.dark-mode .lang-switch button:hover {
    background-color: rgba(248, 244, 233, 0.1);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-red);
}

/* 1. 首屏 · 引子（Hero Section） */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-dark);
    color: var(--primary-light);
}

.ink-particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* 鸿雁飞行动画 */
.flying-goose {
    position: absolute;
    width: 80px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 60"><path fill="%23F8F4E9" d="M70,20 Q60,10 50,15 T30,20 T10,15 M70,20 Q60,30 50,25 T30,30 T10,25 M50,15 L50,25 M30,20 L30,30"/></svg>') no-repeat center;
    background-size: contain;
    animation: fly 20s linear infinite;
    opacity: 0.7;
}

.flying-goose.delay-1 {
    animation-delay: 7s;
    opacity: 0.5;
    transform: scale(0.8);
}

.flying-goose.delay-2 {
    animation-delay: 14s;
    opacity: 0.6;
    transform: scale(1.2);
}

@keyframes fly {
    0% { left: -100px; top: 20%; transform: translateX(0) translateY(0) rotate(0deg); }
    25% { left: 25%; top: 15%; transform: translateX(0) translateY(-20px) rotate(5deg); }
    50% { left: 50%; top: 25%; transform: translateX(0) translateY(10px) rotate(0deg); }
    75% { left: 75%; top: 20%; transform: translateX(0) translateY(-10px) rotate(-5deg); }
    100% { left: 110%; top: 25%; transform: translateX(0) translateY(0) rotate(0deg); }
}

/* 羽毛飘落效果 */
.feather-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.feather-particles::before,
.feather-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="%23F8F4E9" opacity="0.5" d="M10,0 Q15,5 10,10 Q5,5 10,0 M10,5 Q12,7 10,9 Q8,7 10,5"/></svg>');
    background-repeat: repeat;
    animation: float 30s linear infinite;
}

.feather-particles::after {
    animation-delay: 15s;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translateY(-100%) translateX(0); }
    100% { transform: translateY(100vh) translateX(100px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeIn 3s ease-in;
}

.main-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-light);
    opacity: 0.9;
    font-weight: 300;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent-red);
    opacity: 0;
    animation: fadeInUp 2s ease-in 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 向下滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
    color: var(--primary-light);
    font-size: 0.9rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.arrow {
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-light);
    border-right: 2px solid var(--primary-light);
    transform: rotate(45deg);
    margin: 0 auto 10px;
    animation: arrowMove 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes arrowMove {
    0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); }
}

/* 2. 第二屏 · 《诗经》原文与释义 */
.poem-section {
    padding: 80px 0;
    background-color: var(--primary-light);
}

.poem-content {
    display: grid;
    grid-template-columns: 2fr 4fr;
    gap: 40px;
    align-items: stretch;
}

/* 左侧：竖排繁体原文 */
.poem-original {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bamboo-background {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><pattern id="bamboo" width="40" height="80" patternUnits="userSpaceOnUse"><rect width="100%" height="100%" fill="%23F0E6D2"/><path d="M20,0 V80" stroke="%23A89078" stroke-width="2" opacity="0.3"/><path d="M2,20 Q10,10 20,20 T38,20" stroke="%238B7355" stroke-width="1" opacity="0.5" fill="none"/><path d="M2,40 Q10,30 20,40 T38,40" stroke="%238B7355" stroke-width="1" opacity="0.5" fill="none"/><path d="M2,60 Q10,50 20,60 T38,60" stroke="%238B7355" stroke-width="1" opacity="0.5" fill="none"/></pattern><rect width="100%" height="100%" fill="url(%23bamboo)"/></svg>') repeat;
    padding: 60px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 1.5rem;
    line-height: 2.5;
    color: var(--text-black);
    font-weight: 500;
}

.vertical-text p {
    margin-bottom: 40px;
}

/* 右侧：现代译文与注解 */
.poem-translation {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 音频播放器样式 */
.audio-section {
    padding: 0 0 30px 0;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.audio-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.audio-section h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
    display: inline-block;
}

.audio-player-poem {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.audio-player-poem audio {
    width: 100%;
    border-radius: 4px;
    outline: none;
    background-color: var(--bg-light);
}

.audio-description {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* 夜间模式下的音频播放器样式 */
body.dark-mode .audio-section {
    padding: 0 0 30px 0;
    box-shadow: none;
}

body.dark-mode .audio-section h3 {
    color: var(--primary-light);
}

body.dark-mode .audio-description {
    color: rgba(248, 244, 233, 0.7);
}

body.dark-mode .audio-player-poem audio {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .poem-translation {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .annotation-card {
    background-color: rgba(255, 255, 255, 0.08);
}

.translation {
    padding: 0;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.translation:hover {
    transform: translateY(0);
}

.translation h3,
.annotations h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
    display: inline-block;
}

.translation p {
    margin-bottom: 15px;
    color: var(--text-gray);
    text-align: justify;
}

.annotations {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.annotation-card {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.annotation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-red);
}

.annotation-card h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.annotation-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 鸿雁文化意象浮层 */
.symbol-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-light);
    margin: 15% auto;
    padding: 40px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-red);
}

.modal-content h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-gray);
    line-height: 1.8;
    text-align: justify;
}

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

/* 3. 第三屏 · 意象解析 */
.symbolism-section {
    padding: 80px 0;
    background-color: var(--primary-dark);
    color: var(--primary-light);
}

.symbolism-section .section-title {
    color: var(--primary-light);
}

.symbolism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.symbol-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.symbol-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.symbol-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.symbol-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.symbol-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.symbol-image帛书 {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="%23F4E4B7"/><path d="M20,20 L280,20 M20,40 L280,40 M20,60 L280,60 M20,80 L280,80 M20,100 L280,100 M20,120 L280,120 M20,140 L280,140 M20,160 L280,160 M20,180 L280,180" stroke="%23A89078" stroke-width="1" opacity="0.5"/><text x="50%" y="50%" font-size="20" text-anchor="middle" fill="%236B5941" opacity="0.7">鸿雁传书</text></svg>') center;
}

.symbol-image灾民 {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="%233C2F2F"/><path d="M50,150 L80,100 L110,150 M130,160 L150,120 L170,160 M190,140 L210,100 L230,140 M250,150 L270,110 L290,150" stroke="%238B4513" stroke-width="2" fill="none"/><path d="M70,100 Q70,80 80,80 T90,80 M150,120 Q150,100 160,100 T170,100 M210,100 Q210,80 220,80 T230,80 M270,110 Q270,90 280,90 T290,90" stroke="%238B4513" stroke-width="2" fill="none"/><text x="50%" y="50%" font-size="20" text-anchor="middle" fill="%23CD853F" opacity="0.7">哀鸿遍野</text></svg>') center;
}

.symbol-image城市 {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="%231A1A2E"/><path d="M40,150 L40,100 L60,100 L60,130 L80,130 L80,80 L100,80 L100,120 L120,120 L120,90 L140,90 L140,140 L160,140 L160,70 L180,70 L180,130 L200,130 L200,100 L220,100 L220,150 L240,150 L240,90 L260,90 L260,140 L280,140 L280,110 L300,110 L300,150 Z" fill="%2316213E" stroke="%230F3460" stroke-width="1"/><circle cx="80" cy="80" r="2" fill="%23E94560" opacity="0.8"/><circle cx="120" cy="90" r="2" fill="%23E94560" opacity="0.8"/><circle cx="180" cy="70" r="2" fill="%23E94560" opacity="0.8"/><circle cx="240" cy="90" r="2" fill="%23E94560" opacity="0.8"/><text x="50%" y="50%" font-size="20" text-anchor="middle" fill="%23E94560" opacity="0.7">城市孤雁</text></svg>') center;
}

.symbol-card p {
    color: rgba(248, 244, 233, 0.8);
    line-height: 1.8;
    text-align: justify;
}

.quote-section {
    text-align: center;
    margin-top: 50px;
}

.ancient-quote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--accent-red);
    padding: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

/* 4. 第四屏 · 动态文化时间轴 */
.timeline-section {
    padding: 80px 0;
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.timeline-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0 40px 0;
}

.timeline-wrapper {
    min-width: 1200px;
    position: relative;
}

#timeline-chart {
    height: 400px;
    width: 100%;
}

/* 时间轴节点样式 */
.timeline-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-node:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(195, 39, 43, 0.5));
}

.timeline-tooltip {
    position: absolute;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-tooltip.show {
    opacity: 1;
}

.timeline-tooltip h4 {
    color: var(--accent-red);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-tooltip p {
    line-height: 1.6;
    margin-bottom: 5px;
}

/* 5. 第五屏 · 刀郎新作《鸿雁于飞》解读 */
.song-section {
    padding: 80px 0;
    background-color: var(--primary-dark);
    color: var(--primary-light);
}

.symbolism-section .section-title {
    color: var(--primary-light);
}

.symbolism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.symbol-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.symbol-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.symbol-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.symbol-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.symbol-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.symbol-image帛书 {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="%23F4E4B7"/><path d="M20,20 L280,20 M20,40 L280,40 M20,60 L280,60 M20,80 L280,80 M20,100 L280,100 M20,120 L280,120 M20,140 L280,140 M20,160 L280,160 M20,180 L280,180" stroke="%23A89078" stroke-width="1" opacity="0.5"/><text x="50%" y="50%" font-size="20" text-anchor="middle" fill="%236B5941" opacity="0.7">鸿雁传书</text></svg>') center;
}

.symbol-image灾民 {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="%233C2F2F"/><path d="M50,150 L80,100 L110,150 M130,160 L150,120 L170,160 M190,140 L210,100 L230,140 M250,150 L270,110 L290,150" stroke="%238B4513" stroke-width="2" fill="none"/><path d="M70,100 Q70,80 80,80 T90,80 M150,120 Q150,100 160,100 T170,100 M210,100 Q210,80 220,80 T230,80 M270,110 Q270,90 280,90 T290,90" stroke="%238B4513" stroke-width="2" fill="none"/><text x="50%" y="50%" font-size="20" text-anchor="middle" fill="%23CD853F" opacity="0.7">哀鸿遍野</text></svg>') center;
}

.symbol-image城市 {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="%231A1A2E"/><path d="M40,150 L40,100 L60,100 L60,130 L80,130 L80,80 L100,80 L100,120 L120,120 L120,90 L140,90 L140,140 L160,140 L160,70 L180,70 L180,130 L200,130 L200,100 L220,100 L220,150 L240,150 L240,90 L260,90 L260,140 L280,140 L280,110 L300,110 L300,150 Z" fill="%2316213E" stroke="%230F3460" stroke-width="1"/><circle cx="80" cy="80" r="2" fill="%23E94560" opacity="0.8"/><circle cx="120" cy="90" r="2" fill="%23E94560" opacity="0.8"/><circle cx="180" cy="70" r="2" fill="%23E94560" opacity="0.8"/><circle cx="240" cy="90" r="2" fill="%23E94560" opacity="0.8"/><text x="50%" y="50%" font-size="20" text-anchor="middle" fill="%23E94560" opacity="0.7">城市孤雁</text></svg>') center;
}

.symbol-card p {
    color: rgba(248, 244, 233, 0.8);
    line-height: 1.8;
    text-align: justify;
}

.quote-section {
    text-align: center;
    margin-top: 50px;
}

.ancient-quote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--accent-red);
    padding: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

/* 4. 第四屏 · 刀郎新作《鸿雁于飞》解读 */
.song-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    color: var(--primary-light);
    position: relative;
    overflow: hidden;
}

/* 5. 第五屏 · 精选留言墙 */
.comments-section {
    padding: 80px 0;
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.comments-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 50px;
    align-items: start;
}

.comments-form {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comments-form:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.comments-form h3,
.comments-list h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
    display: inline-block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Noto Serif SC', serif;
    background-color: var(--bg-light);
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(195, 39, 43, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-red);
    color: var(--primary-light);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
}

.submit-btn:hover {
    background-color: #A81C1F;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(195, 39, 43, 0.3);
}

.comments-list {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comments-list:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

#comments-list-container {
    max-height: 650px;
    overflow-y: auto;
    margin-top: 20px;
}

/* 自定义滚动条 */
#comments-list-container::-webkit-scrollbar {
    width: 8px;
}

#comments-list-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

#comments-list-container::-webkit-scrollbar-thumb {
    background: rgba(195, 39, 43, 0.5);
    border-radius: 4px;
}

#comments-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(195, 39, 43, 0.7);
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    transform: translateX(5px);
    background-color: rgba(0, 0, 0, 0.02);
    padding-left: 10px;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--accent-red);
    transition: all 0.3s ease;
}

.comment-item:hover .comment-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(195, 39, 43, 0.3);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.comment-text {
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* 夜间模式下的留言墙样式 */
body.dark-mode .comments-section {
    background-color: var(--primary-dark);
    color: var(--primary-light);
}

body.dark-mode .comments-form,
body.dark-mode .comments-list {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .comments-form h3,
body.dark-mode .comments-list h3 {
    color: var(--primary-light);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

body.dark-mode .comment-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .comment-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .comment-name {
    color: var(--primary-light);
}

body.dark-mode .comment-meta {
    color: var(--text-light);
}

body.dark-mode .comment-text {
    color: rgba(248, 244, 233, 0.8);
}

/* 7. 第七屏 · "鸿雁之路"文化地图 */
.map-section {
    padding: 80px 0;
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.map-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 50px;
    margin-top: 50px;
    align-items: start;
}

#culture-map {
    width: 100%;
    height: 700px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#culture-map:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.map-legend {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 700px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.map-legend:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 自定义滚动条 */
.map-legend::-webkit-scrollbar {
    width: 8px;
}

.map-legend::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.map-legend::-webkit-scrollbar-thumb {
    background: rgba(195, 39, 43, 0.5);
    border-radius: 4px;
}

.map-legend::-webkit-scrollbar-thumb:hover {
    background: rgba(195, 39, 43, 0.7);
}

.map-legend h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
    display: inline-block;
}

.map-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map-legend li {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.5;
}

.map-legend li:hover {
    background-color: rgba(195, 39, 43, 0.05);
    transform: translateX(5px);
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.legend-marker诗经 {
    background-color: var(--accent-red);
    animation: pulse 2s infinite;
}

.legend-marker迁徙 {
    background-color: #3498db;
    border-radius: 0;
    transform: rotate(45deg);
}

.legend-marker刀郎 {
    background-color: #9b59b6;
    border-radius: 10px;
}

.legend-marker当代 {
    background-color: #f39c12;
    animation: pulse 2s infinite 0.5s;
}

/* 地图标记动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 夜间模式下的地图样式 */
body.dark-mode .map-section {
    background-color: var(--primary-dark);
    color: var(--primary-light);
}

body.dark-mode #culture-map {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .map-legend {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .map-legend h3 {
    color: var(--primary-light);
}

.song-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><path d="M0,100 L50,80 L100,90 L150,70 L200,85 L250,60 L300,75 L350,50 L400,65 L450,40 L500,55 L550,30 L600,45 L650,20 L700,35 L750,10 L800,25 L850,0 L850,100 Z" fill="%231A2332" opacity="0.8"/></svg>') repeat-x;
    background-size: cover;
    z-index: 0;
}

.song-section .section-title {
    color: var(--primary-light);
    position: relative;
    z-index: 1;
}

.song-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.lyrics {
    grid-column: 1 / -1;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lyrics h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-light);
    text-align: center;
}

.lyrics p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
    line-height: 2;
}

.lyrics .highlight {
    color: var(--accent-red);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(195, 39, 43, 0.5);
}

.music-elements,
.social-issues {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.music-elements h3,
.social-issues h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-light);
    text-align: center;
}

.element,
.issue {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.element:hover,
.issue:hover {
    transform: translateX(10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.element-icon,
.issue-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.element p,
.issue p {
    color: rgba(248, 244, 233, 0.9);
    font-size: 1.1rem;
}

.audio-player {
    grid-column: 1 / -1;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.audio-player iframe {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.copyright-info {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--primary-light);
    padding: 8px 15px;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 4px;
    margin-top: 10px;
}

/* 5. 尾屏 · 结语与致敬 */
.conclusion-section {
    padding: 80px 0;
    background-color: var(--primary-dark);
    color: var(--primary-light);
    text-align: center;
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-message {
    font-size: 1.5rem;
    line-height: 2;
    margin-bottom: 50px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: justify;
    border-left: 4px solid var(--accent-red);
}

.tribute {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 40px;
    color: var(--accent-red);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(248, 244, 233, 0.6);
    padding-top: 30px;
    border-top: 1px solid rgba(248, 244, 233, 0.1);
}

/* 打印功能样式 */
.print-section {
    margin-top: 40px;
    text-align: center;
}

.print-btn {
    background-color: rgba(248, 244, 233, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(248, 244, 233, 0.3);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.print-btn:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(195, 39, 43, 0.3);
}

.print-tip {
    font-size: 0.85rem;
    color: rgba(248, 244, 233, 0.6);
    margin: 0;
}

/* 打印友好样式 */
@media print {
    /* 隐藏非打印内容 */
    .fixed-nav,
    .scroll-indicator,
    .flying-goose,
    .feather-particles,
    .audio-player,
    .audio-player-poem audio,
    .symbol-modal,
    .close,
    .play-button,
    .sidebar-nav,
    .sidebar-toggle,
    .print-btn {
        display: none !important;
    }
    
    /* 重置页面样式 */
    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    /* 设置容器宽度 */
    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 调整章节样式 */
    section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }
    
    /* 标题样式 */
    .main-title {
        font-size: 2.5rem !important;
        margin: 20px 0 !important;
    }
    
    .subtitle {
        font-size: 1.2rem !important;
        margin: 10px 0 20px !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        margin: 30px 0 20px !important;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 10px !important;
    }
    
    /* 内容样式 */
    .vertical-text {
        writing-mode: horizontal-tb !important;
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
    
    .poem-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .translation,
    .annotations,
    .audio-section {
        background-color: white !important;
        box-shadow: none !important;
        border: 1px solid #e0e0e0 !important;
        padding: 20px !important;
    }
    
    .symbolism-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .symbol-card {
        background-color: white !important;
        color: black !important;
        border: 1px solid #e0e0e0 !important;
        padding: 20px !important;
    }
    
    .song-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .lyrics,
    .music-elements,
    .social-issues {
        background-color: white !important;
        color: black !important;
        border: 1px solid #e0e0e0 !important;
        padding: 20px !important;
    }
    
    /* 确保图片可打印 */
    .symbol-image,
    .bamboo-background {
        opacity: 0.8 !important;
        background-color: white !important;
    }
    
    /* 调整字体颜色 */
    .section-title,
    .translation h3,
    .annotations h3,
    .audio-section h3,
    .symbol-card h3,
    .lyrics h3,
    .music-elements h3,
    .social-issues h3 {
        color: black !important;
    }
    
    .translation p,
    .annotation-card p,
    .symbol-card p,
    .lyrics p,
    .element p,
    .issue p {
        color: black !important;
    }
    
    /* 移除动画效果 */
    .animate-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* 调整页边距 */
    @page {
        margin: 2cm;
    }
    
    /* 避免在重要内容处分页 */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p, blockquote, ul, ol, dl, table, pre {
        page-break-inside: avoid;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .poem-content {
        grid-template-columns: 1fr;
    }
    
    .vertical-text {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 1rem;
        text-align: center;
    }
    
    .vertical-text p {
        margin-bottom: 15px;
    }
    
    .symbolism-grid {
        grid-template-columns: 1fr;
    }
    
    .song-content {
        grid-template-columns: 1fr;
    }
    
    .final-message {
        font-size: 1.2rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .quote {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .symbol-card,
    .translation,
    .annotation-card,
    .lyrics,
    .music-elements,
    .social-issues {
        padding: 20px;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-bar {
        width: 100%;
    }
}