/* ============================================================
   CSS 变量（亮色主题 · 默认）
   ============================================================ */
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-nav: #ffffff;
    --bg-footer: #1a1a2e;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --text-primary: #1a1a2e;
    --text-secondary: #333333;
    --text-muted: #555555;
    --text-light: #666666;
    --text-white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(79, 70, 229, 0.12);
    --shadow-menu: rgba(0, 0, 0, 0.1);
    --border-color: #f0f0f0;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --footer-text: #aaa;
    --footer-muted: #666;
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --ripple-color: rgba(79, 70, 229, 0.35);
}

/* ============================================================
   暗色主题
   ============================================================ */
body.dark {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-nav: #1a1a2e;
    --bg-footer: #0a0a14;
    --bg-card: #1a1a2e;
    --bg-hero: linear-gradient(135deg, #1a0a3a 0%, #3a1a6a 100%);
    --text-primary: #e8e8f0;
    --text-secondary: #c0c0d0;
    --text-muted: #8888aa;
    --text-light: #666688;
    --text-white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(79, 70, 229, 0.3);
    --shadow-menu: rgba(0, 0, 0, 0.5);
    --border-color: #2a2a44;
    --primary: #8b7cf0;
    --primary-hover: #7c6cf0;
    --footer-text: #8888aa;
    --footer-muted: #555577;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --ripple-color: rgba(139, 124, 240, 0.4);
}

/* ============================================================
   维多利亚英文字体（仅在英文模式激活）
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

body.lang-en {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en .logo,
body.lang-en .section-title,
body.lang-en .gather-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

body.lang-en .hero-content p,
body.lang-en .card p,
body.lang-en .about-content p,
body.lang-en .card-body li {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1em;
}

body.lang-en .btn-primary {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   导航栏
   ============================================================ */
nav {
    background: var(--bg-nav);
    box-shadow: 0 2px 12px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    transition: color 0.3s ease;
}

/* 桌面端导航链接 */
.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* 汉堡按钮（桌面端隐藏） */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* ============================================================
   桌面端右侧操作区（语言 + 主题）
   ============================================================ */
.desktop-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 语言切换 */
.lang-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.lang-option {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
    user-select: none;
}

.lang-option.active {
    opacity: 1;
    color: var(--primary);
}

.lang-option:hover {
    opacity: 0.8;
}

.lang-divider {
    opacity: 0.3;
}

/* 桌面端主题切换 */
.desktop-theme-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-theme-wrapper .theme-icon {
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

body.dark .desktop-theme-wrapper .theme-icon:first-child {
    opacity: 0.3;
}
body.dark .desktop-theme-wrapper .theme-icon:last-child {
    opacity: 1;
}
body:not(.dark) .desktop-theme-wrapper .theme-icon:first-child {
    opacity: 1;
}
body:not(.dark) .desktop-theme-wrapper .theme-icon:last-child {
    opacity: 0.3;
}

/* ============================================================
   移动端侧滑菜单 (宽度 ≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 102;
    }

    .desktop-actions {
        display: none; /* 桌面端隐藏，移动端在菜单内部显示 */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        gap: 0;
        padding: 80px 32px 32px;
        box-shadow: -8px 0 30px var(--shadow-menu);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
        z-index: 101;
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        transition: border-color 0.3s ease;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 18px;
        display: block;
        width: 100%;
        color: var(--text-secondary);
    }

    /* 主题切换项（在菜单中） */
    .theme-switch-item {
        border-top: 1px solid var(--border-color) !important;
        margin-top: 16px;
        padding-top: 20px !important;
        padding-bottom: 8px !important;
        border-bottom: none !important;
    }

    .theme-switch-item .theme-switch-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .theme-switch-item .theme-icon {
        font-size: 18px;
    }

    .theme-switch-item .theme-label {
        font-size: 16px;
        color: var(--text-secondary);
        margin-left: 4px;
    }

    /* 语言切换项（在菜单中） */
    .lang-switch-item {
        padding-top: 12px !important;
        padding-bottom: 8px !important;
        border-bottom: none !important;
    }

    .lang-switch-item .lang-switch-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 16px;
        color: var(--text-secondary);
    }

    .lang-switch-item .lang-option {
        font-size: 16px;
        opacity: 0.5;
        cursor: pointer;
    }
    .lang-switch-item .lang-option.active {
        opacity: 1;
        color: var(--primary);
    }
    .lang-switch-item .lang-divider {
        opacity: 0.3;
    }

    /* 遮罩层 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--overlay-bg);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease, background 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================================
   主题切换开关（通用样式）
   ============================================================ */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.3s ease;
    border-radius: 26px;
}

.theme-switch .slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.theme-switch input:checked + .slider {
    background: var(--primary);
}

.theme-switch input:checked + .slider::before {
    transform: translateX(22px);
}

.theme-switch .slider.round {
    border-radius: 26px;
}

.theme-switch .slider.round::before {
    border-radius: 50%;
}

/* ============================================================
   Hero 主视觉
   ============================================================ */
.hero {
    background: var(--bg-hero);
    color: #fff;
    padding: 100px 0 120px;
    text-align: center;
    transition: background 0.5s ease;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    max-width: 640px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

/* ===== 了解更多按钮 · 水墨晕染实时变色 ===== */
.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.4s ease;

    /* 文字颜色：白色（让文字在水墨背景上清晰） */
    color: #fff;

    /* 水墨晕染背景：多色渐变，缓慢流动 */
    background: linear-gradient(
        135deg,
        #2d1b69,
        #4a2c8a,
        #1a3a5c,
        #3d2a6b,
        #5a3d8e,
        #1e4d6b,
        #2d1b69
    );
    background-size: 400% 400%;

    /* 水墨动画：色彩像墨汁在水中缓慢晕染 */
    animation: inkWash 8s ease-in-out infinite alternate;

    /* 柔和边缘，像宣纸晕开的墨迹 */
    box-shadow: 0 4px 20px rgba(45, 27, 105, 0.3);
}

/* 水墨晕染流动关键帧 */
@keyframes inkWash {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 4px 20px rgba(45, 27, 105, 0.3),
                    inset 0 0 60px rgba(255, 255, 255, 0.05);
    }
    25% {
        background-position: 50% 0%;
        box-shadow: 0 4px 25px rgba(26, 58, 92, 0.35),
                    inset 0 0 80px rgba(255, 255, 255, 0.08);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 4px 30px rgba(74, 44, 138, 0.4),
                    inset 0 0 70px rgba(255, 255, 255, 0.06);
    }
    75% {
        background-position: 50% 100%;
        box-shadow: 0 4px 25px rgba(30, 77, 107, 0.35),
                    inset 0 0 90px rgba(255, 255, 255, 0.07);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 4px 20px rgba(45, 27, 105, 0.3),
                    inset 0 0 60px rgba(255, 255, 255, 0.05);
    }
}

/* 悬停时：水墨更浓，微微上浮 */
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(45, 27, 105, 0.45),
                inset 0 0 100px rgba(255, 255, 255, 0.1);
    animation-duration: 4s; /* 悬停时流动加快，更有活力 */
}

/* 点击时：墨迹溅开效果（微微收缩再恢复） */
.btn-primary:active {
    transform: scale(0.96);
    transition-duration: 0.08s;
}

/* 按钮内加一层“宣纸纹理”光晕（可选，增加质感） */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: radial-gradient(
        circle at 30% 40%,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
}

/* 按钮文字保持在最上层 */
.btn-primary span,
.btn-primary .btn-text {
    position: relative;
    z-index: 2;
}

/* ============================================================
   标题「收拢」入场动画
   ============================================================ */
.gather-text {
    display: inline-block;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 0.3em;
    opacity: 0;
    transform: scale(1.1);
    animation: gatherIn 1.8s ease-out forwards;
}

@keyframes gatherIn {
    0% {
        letter-spacing: 0.8em;
        opacity: 0;
        transform: scale(1.2);
    }
    60% {
        opacity: 1;
        transform: scale(0.98);
    }
    100% {
        letter-spacing: 0.02em;
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .gather-text {
        font-size: 32px;
        animation-duration: 1.6s;
    }
}

/* ============================================================
   通用 Section
   ============================================================ */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* ============================================================
   卡片网格
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

/* ============================================================
   卡片样式（含展开/收起 + 入场弹跳 + 涟漪）
   ============================================================ */
.card {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, background 0.3s ease;
    text-align: center;
    cursor: default;
    overflow: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;

    /* 入场动画相关：默认隐藏，在下方 */
    opacity: 0;
    transform: translateY(60px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

/* 卡片头部（点击展开/收起） */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}

.card-header h3 {
    flex: 1;
    margin: 0;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.card-icon {
    font-size: 44px;
}

.expand-icon {
    font-size: 14px;
    color: var(--text-light);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: auto;
}

.card.expanded .expand-icon {
    transform: rotate(180deg);
}

/* 卡片主体（展开内容） */
.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0 4px;
    text-align: left;
}

.card.expanded .card-body {
    max-height: 400px;
    opacity: 1;
    padding: 16px 4px 4px 4px;
}

.card-body p {
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.card-body ul li {
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.card.expanded {
    box-shadow: 0 8px 30px var(--shadow-hover);
}

/* 卡片涟漪 */
.card-ripple {
    position: absolute;
    border-radius: 50%;
    background: var(--ripple-color);
    transform: scale(0);
    animation: cardRippleEffect 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes cardRippleEffect {
    to {
        transform: scale(6);
        opacity: 0;
    }
}

body.dark .card-ripple {
    background: rgba(139, 124, 240, 0.3);
}

/* ============================================================
   卡片从底部上升 + 弹跳入场（滚动触发）
   ============================================================ */
.card.visible {
    animation: bounceUp 0.9s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes bounceUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translateY(-15px) scale(1.03);
    }
    70% {
        transform: translateY(5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 交错延迟（6 张卡片） */
.card:nth-child(1).visible {
    animation-delay: 0s;
}
.card:nth-child(2).visible {
    animation-delay: 0.08s;
}
.card:nth-child(3).visible {
    animation-delay: 0.16s;
}
.card:nth-child(4).visible {
    animation-delay: 0.24s;
}
.card:nth-child(5).visible {
    animation-delay: 0.32s;
}
.card:nth-child(6).visible {
    animation-delay: 0.40s;
}

/* ============================================================
   About 区域
   ============================================================ */
.about-section {
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    transition: color 0.3s ease;
}

.about-content strong {
    color: var(--primary);
    transition: color 0.3s ease;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    background: var(--bg-footer);
    padding: 48px 0;
    transition: background 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ============================================================
   涟漪（Ripple）效果（汉堡按钮）
   ============================================================ */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: var(--ripple-color);
    transform: scale(0);
    animation: rippleEffect 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================================
   移动端通用适配
   ============================================================ */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .section-title {
        font-size: 28px;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   图片分区（思源宋体标题 + 图文展示）
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&display=swap');

.gallery-section {
    background: var(--bg-primary);
    padding: 80px 0;
    transition: background 0.3s ease;
}

.gallery-section .section-title {
    font-family: 'Noto Serif SC', '思源宋体', 'Source Han Serif SC', serif;
    font-weight: 700;
    font-size: 38px;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.gallery-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 48px;
    font-style: italic;
    transition: color 0.3s ease;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    display: flex;
    gap: 32px;
    align-items: center;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.gallery-item:nth-child(even) {
    flex-direction: row-reverse;
}

.gallery-text {
    flex: 1;
    min-width: 0;
}

.gallery-text h3 {
    font-family: 'Noto Serif SC', '思源宋体', 'Source Han Serif SC', serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
    letter-spacing: 2px;
}

.gallery-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    transition: color 0.3s ease;
}

.gallery-image {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.04);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .gallery-item {
        flex-direction: column !important;
        padding: 20px;
        gap: 16px;
    }

    .gallery-image {
        width: 100%;
        height: 200px;
    }

    .gallery-text h3 {
        font-size: 20px;
    }

    .gallery-section .section-title {
        font-size: 28px;
    }
}
/* ===== Hero 视频背景（9:16 竖屏比例） ===== */
.hero-video {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    
    /* 强制 9:16 竖屏比例 */
    aspect-ratio: 9 / 16;
    max-height: 100vh;        /* 防止视频超出屏幕高度 */
    width: 100%;
    margin: 0 auto;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* 保证视频完全覆盖容器，并居中裁剪 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* 遮罩层 */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* 文字内容放在最上层 */
.hero-video .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-video {
        aspect-ratio: 9 / 16;
        max-height: 100vh;
    }
}

/* 宽屏显示器适配 */
@media (min-aspect-ratio: 16/9) {
    .hero-video {
        max-width: 50vh;   /* 在宽屏上限制最大宽度，保持竖屏比例 */
        margin: 0 auto;
    }
}
/* ============================================================
   滚动字幕横幅（黑色条 + 从左向右滚动）
   ============================================================ */
.ticker-bar {
    background: #000;           /* 纯黑色背景 */
    padding: 8px 0;            /* 上下内边距，控制高度 */
    overflow: hidden;           /* 隐藏超出部分 */
    position: relative;
    z-index: 10;               /* 确保在导航栏下方但在其他内容上方 */
    border-bottom: 2px solid #222; /* 底部细边，����加层次感 */
}

.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;       /* 禁止换行 */
}

.ticker-text {
    display: inline-block;
    font-family: 'Courier New', monospace; /* 等宽字体，更有“滚动字幕”感 */
    font-size: 28px;
    font-weight: 700;
    color: #fff;               /* 白色文字 */
    letter-spacing: 6px;       /* 字间距拉大，更有气势 */
    padding-left: 100%;        /* 从右侧开始 */
    animation: tickerScroll 12s linear infinite; /* 从左向右滚动 */
}

/* 滚动动画：从右向左移动 */
@keyframes tickerScroll {
    0% {
        transform: translateX(0);      /* 起始位置在右侧外 */
    }
    100% {
        transform: translateX(-100%);  /* 结束位置在左侧外 */
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ticker-text {
        font-size: 18px;
        letter-spacing: 4px;
        animation-duration: 8s;        /* 移动端滚动稍快一点 */
    }
    .ticker-bar {
        padding: 6px 0;
    }
}
/* 
/* ============================================================
   时间线分区（稳定版 · 数字精确嵌入卡片）
   ============================================================ */
.timeline-section {
    background: var(--bg-secondary);
    padding: 80px 0;
    transition: background 0.3s ease;
}

.timeline-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 48px;
    font-style: italic;
    transition: color 0.3s ease;
}

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

/* ---- 中间竖线（用真实元素替代伪元素） ---- */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    transform: translateX(-50%);
    opacity: 0.5;
    transition: height 0.3s ease;
    z-index: 1;
}

/* 隐藏原有的 ::before（如果有） */
.timeline::before {
    display: none !important;
}

/* ---- 每个时间线项 ---- */
.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
}

/* ---- 左右布局 ---- */
.timeline-item.left {
    flex-direction: row;
    justify-content: flex-start;
}

.timeline-item.right {
    flex-direction: row;
    justify-content: flex-end;
}

/* ---- 日期数字（超大，通过定位嵌入卡片） ---- */
.timeline-date {
    font-family: 'Courier New', monospace;
    font-size: 90px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    letter-spacing: 4px;
    opacity: 0.9;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 160px;           /* 固定宽度，保证与卡片重叠量一致 */
    text-align: center;
}

/* 左侧项：数字��左，卡片在右 */
.timeline-item.left .timeline-date {
    margin-right: -40px;    /* 让数字向右覆盖卡片 */
    /* 利用 clip-path 裁掉右侧 1/3（进入卡片的部分） */
    clip-path: inset(0 33% 0 0);  /* 右侧33%被裁剪（透明） */
    -webkit-clip-path: inset(0 33% 0 0);
}

/* 右侧项：数字在右，卡片在左 */
.timeline-item.right .timeline-date {
    margin-left: -40px;     /* 让数字向左覆盖卡片 */
    clip-path: inset(0 0 0 33%);  /* 左侧33%被裁剪（透明） */
    -webkit-clip-path: inset(0 0 0 33%);
}

/* ---- 卡片 ---- */
.timeline-item .timeline-content {
    width: 45%;
    flex-shrink: 0;
    background: var(--bg-card);
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 1;
}

.timeline-item.left .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-item.right .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.timeline-content h3 {
    font-family: 'Noto Serif SC', '思源宋体', 'Source Han Serif SC', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.3s ease;
}

/* ---- 竖线圆点 ---- */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--primary);
    z-index: 3;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* ============================================================
   移动端响应式：数字在上，卡片在下，取消重叠
   ============================================================ */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;             /* 竖线移到左侧 */
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
        margin-bottom: 50px;
    }

    .timeline-item .timeline-content {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-date {
        font-size: 60px;
        margin: 0 0 10px 0 !important;
        width: auto !important;
        clip-path: none !important;
        -webkit-clip-path: none !important;
        text-align: left;
    }

    .timeline-item::after {
        left: 12px;
        top: 30px;
        transform: translate(0, 0);
    }

    .timeline-item .timeline-content {
        padding: 18px 22px;
    }
}