/* ============================================================
    大棚手账 —— 田野手账风核心样式表
   暖阳米白 #FDF6E3 / 土地棕 #8B6B4A / 麦浪金 #E8B84B
   秧苗绿 #6B9E6B / 旧纸灰 #D4C5A9 / 麻布纹 #EDE4D4 / 深褐 #5A3E28
   基调：温暖、亲切、手写日记
   ============================================================ */

/* ---------- 0. 主题变量 ---------- */
:root {
    --c-paper: #FDF6E3;      /* 暖阳米白：页面主背景 */
    --c-brown: #8B6B4A;      /* 土地棕：主标题/正文 */
    --c-gold: #E8B84B;       /* 麦浪金：强调/点缀 */
    --c-green: #6B9E6B;      /* 秧苗绿：正向改变/现在 */
    --c-old: #D4C5A9;        /* 旧纸灰：过去/怀旧 */
    --c-linen: #EDE4D4;      /* 麻布纹：卡片背景 */
    --c-dark: #5A3E28;       /* 深褐：脚注/日期 */
    --c-ink: #4A3524;        /* 墨水褐 */
    --shadow-soft: 0 10px 24px rgba(90, 62, 40, 0.14);
    --shadow-note: 3px 5px 14px rgba(90, 62, 40, 0.18);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    /* 手写体优先，衬线兜底 */
    --font-hand: "Kaiti SC", "STKaiti", "KaiTi", "FangSong", "STFangsong", cursive;
    --font-serif: "Songti SC", "SimSun", Georgia, serif;
}

/* ---------- 1. 基础 Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
    background: var(--c-paper);
    color: var(--c-ink);
    font-family: var(--font-serif);
    overscroll-behavior: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: var(--font-serif); border: none; background: none; color: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 700; font-family: var(--font-hand); }
::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- 2. 牛皮纸噪点纹理 ---------- */
.paper-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(90, 62, 40, 0.05) 1px, transparent 1.4px);
    background-size: 7px 7px;
    z-index: 0;
    opacity: 0.55;
}

/* ---------- 3. 便签纸卡片（替代毛玻璃） ---------- */
.paper-card, .glass-card {
    background: var(--c-linen);
    border: 1.5px solid rgba(139, 107, 74, 0.35);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    position: relative;
}
/* 折角效果 */
.paper-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: linear-gradient(225deg, #D8C9AE 0%, #D8C9AE 48%, rgba(139, 107, 74, 0.25) 50%, #CBB98F 100%);
    border-bottom-left-radius: 10px;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    pointer-events: none;
}

/* ---------- 4. 胶带（贴纸效果） ---------- */
.tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 72px;
    height: 22px;
    background: rgba(232, 184, 75, 0.55);
    box-shadow: 0 2px 6px rgba(90, 62, 40, 0.18);
    border-left: 1px dashed rgba(255, 255, 255, 0.6);
    border-right: 1px dashed rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 3;
}

/* ---------- 5. 手绘标题装饰线 ---------- */
.hand-line {
    display: inline-block;
    width: 34px;
    height: 2px;
    background: var(--c-gold);
    border-radius: 2px;
    vertical-align: middle;
    position: relative;
}
.hand-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 60%;
    height: 1px;
    background: rgba(232, 184, 75, 0.5);
}

/* ---------- 6. 全屏滚动（核心类） ---------- */
.snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.snap-section {
    scroll-snap-align: start;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--c-paper);
}

/* ---------- 7. 麻绳进度条 ---------- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background:
        repeating-linear-gradient(90deg,
            #C9A54A 0 6px, #B98A4E 6px 12px, #D8B463 12px 18px);
    box-shadow: 0 1px 4px rgba(90, 62, 40, 0.3);
    z-index: 9999;
    transition: width 0.15s linear;
    border-bottom: 1px solid rgba(90, 62, 40, 0.15);
}

/* ---------- 8. 点击涟漪（墨点扩散） ---------- */
.ripple-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(139, 107, 74, 0.55);
    transform: scale(0);
    animation: rippleExpand 0.7s var(--ease-out) forwards;
    pointer-events: none;
}

/* ---------- 9. 阳光光晕（固定层） ---------- */
.sun-glow {
    position: fixed;
    top: -30%;
    right: -20%;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.22), rgba(232, 184, 75, 0.06) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: sunshineMove 14s ease-in-out infinite alternate;
}

/* ---------- 10. 音频可视化（柔和水彩线） ---------- */
.audio-viz {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s;
}
.audio-viz.on { opacity: 1; }

/* ---------- 11. 音乐按钮（便签风） ---------- */
.music-btn {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top));
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
    touch-action: manipulation;
    background: var(--c-linen);
    border: 1.5px solid rgba(139, 107, 74, 0.4);
    box-shadow: var(--shadow-soft);
}
.music-btn:active { transform: scale(0.9) rotate(-6deg); }
.music-btn.playing { box-shadow: var(--shadow-note); }
.music-btn.playing .music-icon { animation: swingSlow 2.4s ease-in-out infinite; }
.music-icon { width: 22px; height: 22px; }
.music-wave {
    position: absolute;
    bottom: 8px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 8px;
    opacity: 0;
    transition: opacity 0.4s;
}
.music-btn.playing .music-wave { opacity: 1; }
.music-wave i {
    width: 2.5px;
    background: var(--c-gold);
    border-radius: 2px;
    height: 100%;
    transform-origin: bottom;
    animation: eqWave 0.8s ease-in-out infinite;
}
.music-wave i:nth-child(1) { animation-delay: 0s; }
.music-wave i:nth-child(2) { animation-delay: 0.2s; }
.music-wave i:nth-child(3) { animation-delay: 0.1s; }
.music-wave i:nth-child(4) { animation-delay: 0.3s; }

/* ---------- 12. 浮动目录导航 ---------- */
.nav-fab {
    position: fixed;
    right: 16px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-linen);
    border: 1.5px solid rgba(139, 107, 74, 0.4);
    box-shadow: var(--shadow-soft);
    animation: floatY 3s ease-in-out infinite;
    transition: transform 0.3s var(--ease-bounce);
}
.nav-fab img { width: 22px; height: 22px; }
.nav-fab:active { transform: scale(0.9) rotate(6deg); }
.nav-drawer { position: fixed; inset: 0; z-index: 9500; visibility: hidden; }
.nav-drawer.open { visibility: visible; }
.nav-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(90, 62, 40, 0.35);
    opacity: 0;
    transition: opacity 0.35s;
}
.nav-drawer.open .nav-drawer-mask { opacity: 1; }
.nav-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: 100%;
    border-radius: 0;
    padding: 30px 20px;
    transform: translateX(105%);
    transition: transform 0.45s var(--ease-out);
    overflow-y: auto;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-title { font-size: 18px; margin-bottom: 18px; color: var(--c-brown); font-family: var(--font-hand); }
.nav-drawer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--c-ink);
    border-bottom: 1px dashed rgba(139, 107, 74, 0.25);
    transition: background 0.3s, transform 0.3s;
}
.nav-drawer-item:active { background: rgba(232, 184, 75, 0.2); transform: translateX(4px); }

/* ---------- 13. 麦穗装饰（左侧固定） ---------- */
.wheat-decor {
    position: fixed;
    left: 8px;
    bottom: 12%;
    width: 34px;
    z-index: 50;
    opacity: 0.75;
    pointer-events: none;
}
.wheat-decor svg { width: 100%; }

/* ---------- 14. 粒子画布（阳光光斑） ---------- */
.particles-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* ---------- 15. 加载页（翻开手账） ---------- */
.loading-screen {
    background:
        radial-gradient(circle at 75% 20%, rgba(232, 184, 75, 0.28), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(232, 184, 75, 0.18), transparent 40%),
        var(--c-paper);
    z-index: 100;
}
.loading-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; z-index: 2; }

/* 手绘太阳图标：缓慢旋转光线 + 呼吸缩放 */
.loading-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 6px;
    animation: sunBreathe 2.8s ease-in-out infinite;
}
.loading-sun {
    width: 100%;
    height: 100%;
    animation: sunSpin 14s linear infinite;
}
.loading-sun circle,
.loading-sun line {
    animation: sunPulse 2.8s ease-in-out infinite;
}

.loading-logo {
    font-size: 32px;
    color: var(--c-brown);
    letter-spacing: 4px;
    animation: inkWrite 1.6s steps(20) both;
}
.loading-sub { color: var(--c-dark); font-size: 13px; letter-spacing: 3px; opacity: 0.8; animation: fadeInUp 0.8s 0.6s both; }
/* 麻绳进度条 */
.loading-bar {
    width: 220px;
    height: 10px;
    border-radius: 6px;
    background: rgba(139, 107, 74, 0.15);
    border: 1px solid rgba(139, 107, 74, 0.25);
    overflow: hidden;
    margin-top: 8px;
    position: relative;
}
.loading-bar-fill {
    width: 0%;
    height: 100%;
    border-radius: 6px;
    background: repeating-linear-gradient(90deg, #C9A54A 0 5px, #B98A4E 5px 10px, #D8B463 10px 15px);
    transition: width 0.2s linear;
}
.loading-percent { font-size: 12px; color: var(--c-dark); font-variant-numeric: tabular-nums; }

/* ---------- 16. 封面页 ---------- */
.hero-section { background: var(--c-paper); }
.hero-bg, .pain-bg, .ending-bg {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    transform: scale(1.12);
    transition: transform 2.2s var(--ease-out);
    will-change: transform;
    z-index: 0;
}
.hero-section.visible .hero-bg,
.pain-section.visible .pain-bg,
.ending-section.visible .ending-bg { transform: scale(1); }
/* 暖黄柔光滤镜（像透过窗户看田野） */
.hero-warm {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(253, 246, 227, 0.4), rgba(232, 184, 75, 0.28));
    mix-blend-mode: soft-light;
    z-index: 1;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(253, 246, 227, 0.25) 0%, rgba(253, 246, 227, 0.55) 100%);
    z-index: 1;
}
.wheat-corner {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 74px;
    opacity: 0.85;
    z-index: 3;
    pointer-events: none;
}
.wheat-corner svg { width: 100%; }
.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 28px;
    transform-style: preserve-3d;
}
.hero-badge {
    padding: 7px 20px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--c-brown);
    background: rgba(253, 246, 227, 0.82);
    border: 1.5px dashed var(--c-gold);
    font-family: var(--font-hand);
    letter-spacing: 3px;
    margin-bottom: 26px;
    transform: rotate(-2deg);
    box-shadow: var(--shadow-soft);
    animation: badgeSway 5s ease-in-out infinite;
}
.hero-title {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.4;
    color: var(--c-dark);
    letter-spacing: 2px;
    animation: zoomIn 1.2s var(--ease-out) 0.2s both;
    text-shadow: 2px 2px 0 rgba(232, 184, 75, 0.35);
}
.hero-subtitle {
    margin-top: 16px;
    color: var(--c-brown);
    font-size: clamp(13px, 3.8vw, 17px);
    font-family: var(--font-hand);
    letter-spacing: 2px;
    animation: fadeInUp 1s 0.6s both;
}
.hero-arrow {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: floatY 2.4s ease-in-out infinite;
    color: var(--c-brown);
}
.arrow-text { font-size: 13px; color: var(--c-dark); font-family: var(--font-hand); letter-spacing: 2px; }

/* ---------- 17. 目录页 ---------- */
.toc-section { background: var(--c-paper); }
.toc-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
    padding: 0 30px;
}
.toc-title-wrap { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 6px; }
.toc-list { list-style: none; margin-top: 14px; position: relative; }
.toc-list::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: rgba(232, 184, 75, 0.6);
}
.toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 9px;
    border-radius: 6px;
    background: rgba(237, 228, 212, 0.55);
    border: 1px dashed rgba(139, 107, 74, 0.28);
    transition: all 0.35s var(--ease-out);
    opacity: 0;
    transform: translateY(24px);
}
.toc-item.show { opacity: 1; transform: translateY(0); }
.toc-item:nth-child(1) { transition-delay: 0.05s; }
.toc-item:nth-child(2) { transition-delay: 0.12s; }
.toc-item:nth-child(3) { transition-delay: 0.19s; }
.toc-item:nth-child(4) { transition-delay: 0.26s; }
.toc-item:nth-child(5) { transition-delay: 0.33s; }
.toc-item:nth-child(6) { transition-delay: 0.4s; }
.toc-item:nth-child(7) { transition-delay: 0.47s; }
.toc-item:hover { background: rgba(232, 184, 75, 0.16); transform: translateX(6px); }
.toc-item:active { transform: scale(0.97); }
.toc-item-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-hand);
}
.toc-item-label { font-size: 15px; letter-spacing: 1px; color: var(--c-ink); font-family: var(--font-hand); }
.toc-item-page { margin-left: auto; font-size: 12px; color: var(--c-brown); font-family: var(--font-hand); }
.toc-footer-hint { text-align: center; margin-top: 20px; font-size: 13px; color: var(--c-brown); font-family: var(--font-hand); letter-spacing: 2px; animation: blink 2s ease-in-out infinite; }

/* ---------- 18. 时光相册页 ---------- */
.memory-section { background: linear-gradient(180deg, #F1E9D8, var(--c-paper)); }
.memory-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-bottom: 10px;
}
.album-track {
    display: flex;
    gap: 26px;
    padding: 34px 40vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-scroll-snap-type: x mandatory;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;            /* 明确横向手势交给相册，纵向交给翻页 */
    overscroll-behavior-x: contain;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.album-track.grabbing { cursor: grabbing; }
.album-card {
    flex: 0 0 auto;
    width: 74vw;
    max-width: 300px;
    scroll-snap-align: center;
    position: relative;
    background: #FFF;
    padding: 10px 10px 14px;
    border-radius: 4px;
    box-shadow: var(--shadow-note);
    transform: rotate(var(--rot, -2deg));
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.album-card:nth-child(odd) { --rot: -2.5deg; }
.album-card:nth-child(even) { --rot: 2deg; }
.album-card.active {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 18px 34px rgba(90, 62, 40, 0.22);
}
/* 泛黄滤镜 */
.album-card img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    filter: sepia(0.45) saturate(0.85) brightness(0.96) contrast(0.95);
    border: 1px solid rgba(139, 107, 74, 0.2);
}
.album-card::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, transparent 58%, rgba(90, 62, 40, 0.28) 60%);
    opacity: 0.7;
}
/* 胶带角 */
.album-card::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 50%;
    width: 64px;
    height: 20px;
    transform: translateX(-50%) rotate(-4deg);
    background: rgba(232, 184, 75, 0.45);
    box-shadow: 0 2px 5px rgba(90, 62, 40, 0.15);
    z-index: 2;
}
.album-caption { padding: 10px 4px 0; text-align: center; }
.album-caption b { display: block; font-size: 14px; color: var(--c-dark); font-family: var(--font-hand); }
.album-caption span { display: block; font-size: 12px; color: var(--c-brown); margin-top: 3px; line-height: 1.5; }
.album-dots { display: flex; gap: 9px; margin-top: 18px; }
.album-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(139, 107, 74, 0.25);
    transition: all 0.35s;
}
.album-dots i.on { background: var(--c-gold); transform: scale(1.35); box-shadow: 0 0 6px rgba(232, 184, 75, 0.7); }
.album-hint { margin-top: 12px; font-size: 12px; color: var(--c-brown); font-family: var(--font-hand); letter-spacing: 2px; }

/* ---------- 19. 四苦页（便签纸） ---------- */
.pain-section { background: #EFE6D2; }
.pain-warm {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, rgba(253, 246, 227, 0.5), rgba(212, 197, 169, 0.45));
    z-index: 1;
}
.pain-inner { position: relative; z-index: 2; width: 100%; max-width: 470px; padding: 0 22px; }
.pain-title { color: var(--c-dark); }
.pain-list { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.pain-item {
    position: relative;
    background: #FBF3DC;
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: var(--shadow-note);
    border: 1px solid rgba(139, 107, 74, 0.2);
    transform: rotate(var(--rot, 0deg)) translateX(-46px);
    opacity: 0;
}
.pain-item.show { opacity: 1; transform: rotate(var(--rot, 0deg)) translateX(0); }
.pain-item:nth-child(1) { --rot: -3deg; transition: opacity 0.6s 0.1s, transform 0.6s 0.1s; }
.pain-item:nth-child(2) { --rot: 2deg; transition: opacity 0.6s 0.5s, transform 0.6s 0.5s; }
.pain-item:nth-child(3) { --rot: -2deg; transition: opacity 0.6s 0.9s, transform 0.6s 0.9s; }
.pain-item:nth-child(4) { --rot: 3deg; transition: opacity 0.6s 1.3s, transform 0.6s 1.3s; }
/* 胶带 */
.pain-item::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 58px;
    height: 18px;
    background: rgba(232, 184, 75, 0.5);
    box-shadow: 0 1px 4px rgba(90, 62, 40, 0.15);
}
.pain-item-label { font-size: 20px; font-weight: 700; color: var(--c-dark); font-family: var(--font-hand); letter-spacing: 2px; }
.pain-item-desc { font-size: 13.5px; color: var(--c-brown); margin-top: 4px; line-height: 1.6; }
.pain-next-hint {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: var(--c-dark);
    font-family: var(--font-hand);
    letter-spacing: 2px;
    opacity: 0;
    animation: blink 1.6s ease-in-out infinite;
}
.pain-next-hint.show { opacity: 1; }

/* ---------- 20. 翻卡对比页（结构样式，翻卡细节见 swiper.css） ---------- */
.compare-section { background: var(--c-paper); padding: 20px 0 52px; }
.compare-title { font-size: clamp(21px, 6vw, 27px); color: var(--c-dark); letter-spacing: 2px; margin-bottom: 22px; position: relative; z-index: 2; font-family: var(--font-hand); }
.compare-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--c-gold), var(--c-brown));
}
.compare-hint { position: relative; z-index: 2; margin-top: 16px; font-size: 13px; color: var(--c-brown); font-family: var(--font-hand); letter-spacing: 2px; animation: blink 2.4s ease-in-out infinite; }

/* ---------- 21. 数据页（笔记本内页） ---------- */
.data-section { background: linear-gradient(180deg, #F6EEDC, var(--c-paper)); }
.data-inner { position: relative; z-index: 2; width: 100%; max-width: 480px; padding: 26px 20px 20px; display: flex; flex-direction: column; align-items: center; overflow-y: auto; height: 100%; }
.data-title { color: var(--c-dark); margin-bottom: 16px; font-size: clamp(19px, 5vw, 25px); }
/* 笔记本横线背景 */
.data-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, transparent 0 26px, rgba(139, 107, 74, 0.12) 26px 27px);
    z-index: 0;
}
.chart-card { width: 100%; border-radius: 10px; padding: 14px 12px 6px; margin-bottom: 14px; opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); z-index: 1; }
.chart-card.show { opacity: 1; transform: translateY(0); }
.chart-box { width: 100%; height: 200px; }
.data-footer { font-size: 11px; color: var(--c-dark); margin-top: 4px; opacity: 0.7; z-index: 1; }
.data-slogan {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-brown);
    margin-top: 12px;
    font-family: var(--font-hand);
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 rgba(232, 184, 75, 0.4);
    z-index: 1;
}

/* ---------- 22. 人物见证页（相框视频） ---------- */
.testimony-section { background: linear-gradient(180deg, #F3EAD8, var(--c-paper)); }
.testimony-inner { position: relative; z-index: 2; width: 100%; max-width: 480px; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; }
.testimony-inner .section-title { color: var(--c-dark); }
.video-frame {
    position: relative;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #B98A4E, #D8B463);
    border-radius: 6px;
    box-shadow: var(--shadow-note);
    transform: rotate(-0.6deg);
}
.video-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    pointer-events: none;
}
.video-wrap { position: relative; width: 100%; border-radius: 4px; overflow: hidden; aspect-ratio: 16/9; background: #F3EAD8; box-shadow: none; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.4s;
    z-index: 2;
}
.video-cover.hidden { opacity: 0; pointer-events: none; }
.video-cover-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.85) sepia(0.2); }
.play-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(232, 184, 75, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(90, 62, 40, 0.35);
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
    border: 2px solid #fff;
}
.play-btn img { width: 22px; height: 22px; margin-left: 2px; }
.video-cover-text { font-size: 13px; color: #5A3E28; background: rgba(253, 246, 227, 0.88); padding: 5px 14px; border-radius: 999px; font-family: var(--font-hand); letter-spacing: 1px; z-index: 2; box-shadow: var(--shadow-soft); }
.video-subtitle {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
    font-size: 13.5px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(253, 246, 227, 0.9);
    color: var(--c-dark);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s var(--ease-out);
    z-index: 3;
    font-family: var(--font-hand);
    letter-spacing: 1px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(232, 184, 75, 0.6);
}
.video-subtitle.show { opacity: 1; transform: translateY(0); }
.like-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.like-heart {
    position: absolute;
    font-size: 0;
    animation: heartFloat 1.8s ease-out forwards;
    pointer-events: none;
}
.like-heart svg { width: 30px; height: 30px; }
.quote-cards { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.quote-card {
    padding: 13px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--c-ink);
    background: rgba(232, 184, 75, 0.14);
    border-left: 3px solid var(--c-gold);
    font-family: var(--font-hand);
    letter-spacing: 1px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s var(--ease-out);
    box-shadow: var(--shadow-soft);
}
.quote-card.show { opacity: 1; transform: translateY(0); }
.quote-card:nth-of-type(2) { transition-delay: 0.25s; }
.interviewee { margin-top: 14px; font-size: 12px; color: var(--c-dark); font-family: var(--font-hand); letter-spacing: 1px; }

/* ---------- 23. 政策页（手绘小标签） ---------- */
.policy-section { background: linear-gradient(180deg, #F6EEDC, var(--c-paper)); }
.policy-inner { position: relative; z-index: 2; width: 100%; max-width: 440px; padding: 30px 24px; display: flex; flex-direction: column; align-items: center; }
.policy-inner .section-title { color: var(--c-dark); }
.policy-subtitle { font-size: 13px; color: var(--c-brown); font-family: var(--font-hand); letter-spacing: 2px; margin-bottom: 26px; }
.policy-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.policy-tag {
    padding: 11px 22px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid;
    background: rgba(253, 246, 227, 0.9);
    box-shadow: var(--shadow-soft);
    font-family: var(--font-hand);
    transition: all 0.3s var(--ease-bounce);
    opacity: 0;
    transform: scale(0.5) rotate(var(--trot, 0deg));
}
.policy-tag:nth-child(odd) { --trot: -2.5deg; }
.policy-tag:nth-child(even) { --trot: 2.5deg; }
.policy-tag.show { opacity: 1; transform: scale(1) rotate(var(--trot, 0deg)); }
.policy-tag:active { transform: scale(1.12) rotate(0deg); box-shadow: 0 10px 22px rgba(90, 62, 40, 0.25); }
.policy-note {
    margin-top: 30px;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--c-brown);
    font-family: var(--font-hand);
    letter-spacing: 1px;
    text-align: center;
    border-radius: 8px;
}
.policy-modal { position: fixed; inset: 0; z-index: 9600; visibility: hidden; }
.policy-modal.open { visibility: visible; }
.policy-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(90, 62, 40, 0.4);
    opacity: 0;
    transition: opacity 0.35s;
}
.policy-modal.open .policy-modal-mask { opacity: 1; }
.policy-modal-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86%;
    max-width: 360px;
    transform: translate(-50%, -50%) scale(0.6) rotate(-2deg);
    padding: 30px 22px;
    text-align: center;
    opacity: 0;
    transition: all 0.45s var(--ease-bounce);
    z-index: 1;
    border-radius: 6px;
}
.policy-modal.open .policy-modal-card { transform: translate(-50%, -50%) scale(1) rotate(0.5deg); opacity: 1; }
.policy-modal-card::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 70px;
    height: 18px;
    background: rgba(232, 184, 75, 0.55);
}
.policy-modal-name { font-size: 19px; font-weight: 700; margin-bottom: 12px; color: var(--c-dark); font-family: var(--font-hand); }
.policy-modal-detail { font-size: 14px; line-height: 1.9; color: var(--c-brown); margin-bottom: 20px; }
.policy-modal-link {
    display: inline-block;
    padding: 9px 24px;
    border-radius: 999px;
    font-size: 13px;
    background: var(--c-gold);
    color: #fff;
    border: 1px solid rgba(139, 107, 74, 0.3);
    text-decoration: none;
    font-family: var(--font-hand);
    transition: all 0.3s;
    box-shadow: var(--shadow-soft);
}
.policy-modal-link:active { transform: scale(0.94); }
.policy-modal-nolink {
    font-size: 12px;
    color: var(--c-brown);
    opacity: 0.75;
    font-family: var(--font-hand);
    letter-spacing: 1px;
}
.policy-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 20px;
    color: var(--c-brown);
    transition: transform 0.3s;
    line-height: 1;
}
.policy-modal-close:active { transform: rotate(90deg); }

/* ---------- 24. 结尾页 ---------- */
.ending-section { background: #F6E9C0; }
.ending-warm {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, rgba(246, 233, 192, 0.55), rgba(232, 184, 75, 0.35));
    mix-blend-mode: soft-light;
    z-index: 1;
}
.ending-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(253, 246, 227, 0.35) 0%, rgba(253, 246, 227, 0.6) 100%);
    z-index: 1;
}
.ending-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 460px;
    padding: 34px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform-style: preserve-3d;
}
.ending-title { font-size: clamp(24px, 7vw, 32px); color: var(--c-dark); letter-spacing: 3px; animation: zoomIn 1s var(--ease-out) both; text-shadow: 2px 2px 0 rgba(232, 184, 75, 0.4); }
.ending-text {
    margin-top: 16px;
    font-size: 14.5px;
    line-height: 2;
    color: var(--c-brown);
    font-family: var(--font-hand);
    letter-spacing: 1px;
    animation: fadeInUp 1.2s 0.3s both;
}
.ending-stats { display: flex; gap: 12px; margin-top: 24px; width: 100%; }
.stat-card {
    flex: 1;
    padding: 16px 6px;
    border-radius: 8px;
    text-align: center;
    transform-style: preserve-3d;
    animation: statIn 0.7s var(--ease-bounce) both;
    background: rgba(253, 246, 227, 0.85);
    border: 1.5px dashed var(--c-gold);
    box-shadow: var(--shadow-soft);
}
.stat-card:nth-child(1) { animation-delay: 0.5s; }
.stat-card:nth-child(2) { animation-delay: 0.65s; }
.stat-card:nth-child(3) { animation-delay: 0.8s; }
.stat-value {
    font-size: clamp(21px, 6.5vw, 28px);
    font-weight: 900;
    color: var(--c-dark);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-hand);
}
.stat-label { margin-top: 7px; font-size: 10.5px; color: var(--c-brown); line-height: 1.5; }
.ending-btns { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 26px; }
.btn {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-hand);
    letter-spacing: 2px;
    transition: all 0.3s var(--ease-bounce);
    position: relative;
    overflow: hidden;
}
.btn-share {
    background: linear-gradient(135deg, var(--c-gold), #D8A63E);
    color: #fff;
    box-shadow: 0 8px 22px rgba(232, 184, 75, 0.45);
    border: 1px solid rgba(139, 107, 74, 0.3);
}
.btn-share:active { transform: scale(0.96) rotate(-0.5deg); box-shadow: 0 4px 12px rgba(232, 184, 75, 0.5); }
.btn-follow { background: rgba(253, 246, 227, 0.9); color: var(--c-brown); border: 1.5px solid rgba(139, 107, 74, 0.45); }
.btn-follow:active { transform: scale(0.96) rotate(0.5deg); background: rgba(232, 184, 75, 0.18); }
.qr-modal { position: fixed; inset: 0; z-index: 9600; visibility: hidden; }
.qr-modal.open { visibility: visible; }
.qr-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(90, 62, 40, 0.4);
    opacity: 0;
    transition: opacity 0.35s;
}
.qr-modal.open .qr-modal-mask { opacity: 1; }
.qr-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 280px;
    transform: translate(-50%, -50%) scale(0.6) rotate(-2deg);
    padding: 24px 20px 18px;
    text-align: center;
    opacity: 0;
    transition: all 0.45s var(--ease-bounce);
    border-radius: 6px;
}
.qr-modal.open .qr-card { transform: translate(-50%, -50%) scale(1) rotate(0.5deg); opacity: 1; }
.qr-card img { width: 170px; height: 170px; margin: 0 auto 12px; border-radius: 6px; border: 1px solid rgba(139, 107, 74, 0.3); }
.qr-card p { font-size: 13px; color: var(--c-brown); font-family: var(--font-hand); }
.qr-card .qr-close { position: absolute; top: 8px; right: 12px; font-size: 18px; color: var(--c-brown); line-height: 1; }
.ending-credit { margin-top: 20px; font-size: 11px; color: var(--c-dark); font-family: var(--font-hand); letter-spacing: 3px; opacity: 0.85; }

/* ---------- 25. Toast 提示（便签条） ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%) translateY(20px);
    padding: 11px 24px;
    border-radius: 6px;
    background: rgba(253, 246, 227, 0.95);
    border: 1.5px solid rgba(232, 184, 75, 0.7);
    color: var(--c-dark);
    font-size: 13px;
    font-family: var(--font-hand);
    letter-spacing: 1px;
    z-index: 9900;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-out);
    white-space: nowrap;
    max-width: 86vw;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: var(--shadow-note);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 27. 动效偏好降级 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
}

/* ---------- 28. 全局触感反馈（所有可点击元素在按下时的视觉响应） ---------- */
button:active,
.paper-btn:active,
.toc-item:active,
.policy-tag:active,
.flip-card:active,
.video-cover:active,
.nav-drawer-item:active,
.btn:active,
.music-btn:active,
.nav-fab:active,
.policy-modal-close:active,
.qr-close:active {
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
/* 大部分按钮已有各自的 :active 样式，此文件仅保证一致性 */
.video-cover:active .play-btn {
    transform: scale(0.88);
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-cover:active .video-cover-text {
    transform: scale(0.95);
    opacity: 0.85;
    transition: transform 0.15s, opacity 0.15s;
}

/* ---------- 29. 动画工具类 ---------- */
.anim-fade-in { animation: fadeIn 0.8s var(--ease-out) both; }
.anim-fade-in-up { animation: fadeInUp 0.8s var(--ease-out) both; }
.anim-zoom-in { animation: zoomIn 0.9s var(--ease-out) both; }
.anim-spring-up { animation: springUp 0.9s var(--ease-bounce) both; }
.anim-float-y { animation: floatY 3s ease-in-out infinite; }
.anim-pulse { animation: pulse 2s ease-in-out infinite; }
.anim-blink { animation: blink 2s ease-in-out infinite; }
.anim-shake { animation: shake 0.6s ease-in-out both; }

/* ============================================================
    关键帧动画库（70+）
   ============================================================ */
@keyframes rippleExpand { to { transform: scale(3); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes zoomOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.3); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.6) rotate(-5deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes rotateIn { from { opacity: 0; transform: rotate(-180deg) scale(0.6); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatX { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(232, 184, 75, 0.5); } 100% { box-shadow: 0 0 0 20px rgba(232, 184, 75, 0); } }
@keyframes bounceArrow { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: 0.6; } }
@keyframes swingSlow { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes spinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes spinFast { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes shine { 0% { left: -80%; } 55%, 100% { left: 130%; } }
@keyframes eqWave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes shakeHard { 0%, 100% { transform: translateX(0) rotate(0); } 15%, 45%, 75% { transform: translateX(-10px) rotate(-2deg); } 30%, 60%, 90% { transform: translateX(10px) rotate(2deg); } }
@keyframes flipInY { from { opacity: 0; transform: perspective(600px) rotateY(90deg); } to { opacity: 1; transform: perspective(600px) rotateY(0); } }
@keyframes flipInX { from { opacity: 0; transform: perspective(600px) rotateX(90deg); } to { opacity: 1; transform: perspective(600px) rotateX(0); } }
@keyframes heartFloat { 0% { opacity: 0; transform: translateY(0) scale(0.4) rotate(-18deg); } 15% { opacity: 1; transform: translateY(-14px) scale(1.1) rotate(8deg); } 100% { opacity: 0; transform: translateY(-150px) scale(1) rotate(18deg); } }
@keyframes starDrift { from { transform: translateY(-10%); } to { transform: translateY(110%); } }
@keyframes sunshineMove { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-12vw, 6vh) scale(1.12); } 100% { transform: translate(6vw, -4vh) scale(1.05); } }
@keyframes badgeSway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(1.5deg); } }
@keyframes inkWrite { from { opacity: 0; transform: translateX(-16px); filter: blur(2px); } to { opacity: 1; transform: translateX(0); filter: blur(0); } }
@keyframes sunSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sunBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes sunPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes pageTurnIn { 0% { opacity: 0; transform: perspective(1200px) rotateY(-30deg) translateX(-40px); } 100% { opacity: 1; transform: perspective(1200px) rotateY(0) translateX(0); } }
@keyframes pageTurnOut { 0% { opacity: 1; transform: perspective(1200px) rotateY(0); } 100% { opacity: 0; transform: perspective(1200px) rotateY(34deg) translateX(60px); } }
@keyframes tapeDrop { 0% { opacity: 0; transform: translateY(-26px) rotate(-14deg) scale(1.4); } 60% { opacity: 1; transform: translateY(2px) rotate(2deg) scale(0.98); } 100% { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes paperIn { 0% { opacity: 0; transform: translateY(40px) rotate(var(--rot, 0deg)) scale(0.9); } 100% { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); } }
@keyframes statIn { from { opacity: 0; transform: perspective(500px) rotateX(80deg) translateY(24px); } to { opacity: 1; transform: perspective(500px) rotateX(0) translateY(0); } }
@keyframes springUp { 0% { opacity: 0; transform: translateY(60px) scale(1.12); } 60% { opacity: 1; transform: translateY(-6px) scale(0.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes swingIn { 0% { opacity: 0; transform: rotate(-8deg) scale(0.7) translateY(40px); } 100% { opacity: 1; transform: rotate(0) scale(1) translateY(0); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-50px) scale(1.15); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes breathScale { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes waveMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes slideInCard { from { opacity: 0; transform: translateX(110%) scale(0.85); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dotJump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(50px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pageOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-50px); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes wiggleFast { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes cardSwing { 0% { transform: rotateY(0) scale(1); } 25% { transform: rotateY(-12deg) scale(0.97); } 75% { transform: rotateY(12deg) scale(0.97); } 100% { transform: rotateY(0) scale(1); } }
@keyframes lightRay { 0% { opacity: 0; transform: rotate(0deg) scaleY(0); } 50% { opacity: 0.5; transform: rotate(6deg) scaleY(1); } 100% { opacity: 0; transform: rotate(-6deg) scaleY(0); } }
@keyframes typingDot { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes progressGlow { 0%, 100% { box-shadow: 0 0 4px rgba(232, 184, 75, 0.6); } 50% { box-shadow: 0 0 12px rgba(232, 184, 75, 0.9); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tiltIn { from { opacity: 0; transform: rotateX(40deg) translateY(30px); } to { opacity: 1; transform: rotateX(0) translateY(0); } }
@keyframes firework { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes orbFloat { 0%, 100% { transform: translateY(0) translateX(0); } 33% { transform: translateY(-24px) translateX(16px); } 66% { transform: translateY(14px) translateX(-14px); } }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 184, 75, 0.4); } 50% { box-shadow: 0 0 0 9px rgba(232, 184, 75, 0); } }
@keyframes modalPop { from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes slideUpOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-80px); } }
@keyframes auroraMove { 0% { transform: translateX(-20%) skewX(-6deg); opacity: 0.3; } 50% { opacity: 0.6; } 100% { transform: translateX(20%) skewX(-6deg); opacity: 0.3; } }
@keyframes trailFloat { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 0.85; } 100% { opacity: 0; transform: translateY(-120px); } }
@keyframes coinSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes scanlineMove { 0% { top: -10%; } 100% { top: 110%; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } 50% { transform: translateY(0); } 70% { transform: translateY(-6px); } 90% { transform: translateY(0); } }
@keyframes albumSwing { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes borderSpin { to { transform: rotateZ(360deg); } }
@keyframes rainDrop { 0% { transform: translateY(-40px); opacity: 0; } 30% { opacity: 0.7; } 100% { transform: translateY(60px); opacity: 0; } }
@keyframes glowRing { 0% { box-shadow: 0 0 6px 2px rgba(232, 184, 75, 0.45); } 100% { box-shadow: 0 0 18px 6px rgba(232, 184, 75, 0.35); } }
@keyframes pageFlipL { 0% { transform: rotateY(0); } 100% { transform: rotateY(-34deg); } }
@keyframes pageFlipR { 0% { transform: rotateY(0); } 100% { transform: rotateY(34deg); } }
@keyframes rotateY3D { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes orbit { from { transform: rotate(0) translateX(50px) rotate(0); } to { transform: rotate(360deg) translateX(50px) rotate(-360deg); } }
@keyframes wavePulse { 0%, 100% { stroke-opacity: 0.35; } 50% { stroke-opacity: 0.9; } }
@keyframes pressIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spinFlip { 0% { transform: rotateX(0) rotateY(0); } 50% { transform: rotateX(180deg) rotateY(90deg); } 100% { transform: rotateX(360deg) rotateY(0); } }
@keyframes writeStroke { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes stampIn { 0% { opacity: 0; transform: scale(1.6) rotate(-12deg); } 55% { opacity: 1; transform: scale(0.92) rotate(3deg); } 100% { opacity: 1; transform: scale(1) rotate(-2deg); } }
@keyframes swayPlant { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes sunPulse { 0%, 100% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 0.85; transform: scale(1.08); } }
@keyframes tapeWobble { 0%, 100% { transform: rotate(-3deg) translateX(0); } 50% { transform: rotate(2deg) translateX(4px); } }

/* 小屏幕适配 */
@media (max-width: 360px) {
    .album-card { width: 82vw; }
    .stat-card { padding: 13px 4px; }
}
@media (min-height: 760px) {
    .data-inner { justify-content: center; }
}
