/* ============================================
   《流氓叙事》以撒致缪宏谟 - 售后网站样式
   风格：暗黑唯美 + 蓝紫蝴蝶流光
   ============================================ */

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

:root {
    --bg-deep: #0a0a1a;
    --bg-dark: #0f0f23;
    --bg-mid: #1a1a3e;
    --purple-light: #c4b5fd;
    --purple-main: #a78bfa;
    --purple-deep: #7c3aed;
    --purple-dark: #4c1d95;
    --blue-glow: #60a5fa;
    --gold: #fbbf24;
    --text-light: #e0e7ff;
    --text-mid: #a5b4fc;
    --text-dim: #6366f1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    background: var(--bg-deep);
    color: var(--text-light);
    line-height: 1.9;
    overflow-x: hidden;
    position: relative;
}

/* === 蝴蝶粒子画布 === */
#butterflyCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === 滚动进度条 === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--purple-deep), var(--purple-main), var(--blue-glow));
    z-index: 1000;
    box-shadow: 0 0 10px var(--purple-main), 0 0 20px var(--purple-deep);
    transition: width 0.1s ease-out;
}

/* === 音乐播放器 === */
.music-player {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.music-butterfly {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.music-butterfly:hover {
    transform: scale(1.15);
}

.music-butterfly.playing .butterfly-icon {
    animation: butterflyFloat 3s ease-in-out infinite;
}

.music-butterfly.playing .left-wing,
.music-butterfly.playing .left-wing-lower {
    animation: wingFlapLeft 0.4s ease-in-out infinite;
    transform-origin: 50px 50px;
}

.music-butterfly.playing .right-wing,
.music-butterfly.playing .right-wing-lower {
    animation: wingFlapRight 0.4s ease-in-out infinite;
    transform-origin: 50px 50px;
}

.butterfly-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px var(--purple-main)) drop-shadow(0 0 16px var(--purple-deep));
}

.music-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

.music-label {
    font-size: 11px;
    color: var(--text-mid);
    background: rgba(15, 15, 35, 0.8);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

@keyframes butterflyFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(3deg); }
    75% { transform: translateY(5px) rotate(-3deg); }
}

@keyframes wingFlapLeft {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(60deg); }
}

@keyframes wingFlapRight {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(-60deg); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

/* === 通用场景样式 === */
.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    z-index: 1;
}

.scene-inner {
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* === 年份标签 === */
.year-tag {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--purple-main);
    border: 1px solid var(--purple-deep);
    padding: 6px 20px;
    border-radius: 20px;
    margin-bottom: 24px;
    background: rgba(124, 58, 237, 0.1);
    backdrop-filter: blur(4px);
}

.year-tag.light {
    color: var(--purple-light);
    border-color: var(--purple-light);
    background: rgba(196, 181, 253, 0.1);
}

/* === 场景标题 === */
.scene-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-main) 50%, var(--blue-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(167, 139, 250, 0.3);
    letter-spacing: 6px;
}

.scene-title.light {
    background: linear-gradient(135deg, #fff 0%, var(--purple-light) 50%, var(--purple-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === 故事内容布局 === */
.story-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-content.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.story-content.reverse .story-text {
    order: 2;
}

.story-content.reverse .story-visual {
    order: 1;
}

.story-text p {
    font-size: 17px;
    line-height: 2.1;
    color: var(--text-light);
    margin-bottom: 18px;
    opacity: 0.9;
}

.quote-block {
    position: relative;
    padding: 20px 30px;
    margin: 25px 0;
    font-size: 18px;
    font-style: italic;
    color: var(--purple-light);
    border-left: 3px solid var(--purple-main);
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.15) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
}

.quote-block.light {
    color: #fff;
    border-left-color: var(--purple-light);
    background: linear-gradient(90deg, rgba(196, 181, 253, 0.2) 0%, transparent 100%);
}

/* === 第一幕：开场 === */
.hero-scene {
    background: radial-gradient(ellipse at center, var(--bg-mid) 0%, var(--bg-deep) 70%);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 8px;
    color: var(--text-mid);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: 12px;
    margin-bottom: 40px;
    line-height: 1.2;
}

.title-line {
    background: linear-gradient(180deg, #fff 0%, var(--purple-light) 40%, var(--purple-main) 70%, var(--purple-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(167, 139, 250, 0.5));
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.4)); }
    50% { filter: drop-shadow(0 0 40px rgba(167, 139, 250, 0.7)); }
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple-main), transparent);
}

.divider-butterfly {
    font-size: 24px;
    animation: butterflyPulse 2s ease-in-out infinite;
}

@keyframes butterflyPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.hero-quote {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-mid);
    font-style: italic;
    line-height: 2;
    margin-bottom: 16px;
}

.hero-to {
    font-size: 15px;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-bottom: 80px;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 13px;
    letter-spacing: 3px;
}

.scroll-arrow {
    font-size: 24px;
    animation: scrollBounce 2s ease-in-out infinite;
    color: var(--purple-main);
}

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

/* === 渐入动画类 === */
.fade-in {
    animation: fadeIn 1.5s ease-out 0.3s both;
}

.fade-in-delay {
    animation: fadeIn 1.5s ease-out 0.8s both;
}

.fade-in-delay2 {
    animation: fadeIn 1.5s ease-out 1.2s both;
}

.fade-in-delay3 {
    animation: fadeIn 1.5s ease-out 1.8s both;
}

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

/* === 滚动显现动画 === */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === 暗色场景 === */
.dark-scene {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #0d0d22 50%, var(--bg-deep) 100%);
}

/* === 故事视觉区通用 === */
.story-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
}

/* === 漂浮蝴蝶 === */
.floating-butterfly {
    position: absolute;
    font-size: 28px;
    opacity: 0.6;
    animation: floatAround 8s ease-in-out infinite;
}

.floating-butterfly.b1 { top: 10%; left: 10%; animation-delay: 0s; }
.floating-butterfly.b2 { top: 30%; right: 15%; animation-delay: 2s; font-size: 20px; }
.floating-butterfly.b3 { bottom: 20%; left: 25%; animation-delay: 4s; font-size: 24px; }

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(15deg); }
    50% { transform: translate(-10px, -50px) rotate(-10deg); }
    75% { transform: translate(-30px, -20px) rotate(5deg); }
}

/* === 记忆卡片 === */
.memory-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(76, 29, 149, 0.3) 100%);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.memory-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.card-icon {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 16px;
}

.card-text {
    font-size: 18px;
    color: var(--purple-light);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.card-sub {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.8;
}

/* === 蝴蝶标本框 === */
.specimen-frame {
    position: relative;
    width: 220px;
    height: 280px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(15, 15, 35, 0.9) 100%);
    border: 2px solid rgba(167, 139, 250, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.3), inset 0 0 30px rgba(0,0,0,0.5);
}

.specimen-butterfly {
    font-size: 72px;
    transform: rotate(-15deg);
    filter: grayscale(0.3) drop-shadow(0 0 10px rgba(167, 139, 250, 0.5));
    animation: specimenHover 4s ease-in-out infinite;
}

@keyframes specimenHover {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-12deg) translateY(-5px); }
}

.specimen-pin {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, var(--gold), #92400e);
    border-radius: 2px;
    z-index: 2;
}

.specimen-pin::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, var(--gold), #92400e);
    border-radius: 50%;
}

.specimen-label {
    position: absolute;
    bottom: 15px;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 2px;
    font-style: italic;
}

/* === 眼睛符号 === */
.eye-symbol {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eye-outer {
    width: 200px;
    height: 120px;
    border: 3px solid var(--purple-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.4), inset 0 0 20px rgba(124, 58, 237, 0.2);
    animation: eyeGlow 3s ease-in-out infinite;
}

@keyframes eyeGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(167, 139, 250, 0.4), inset 0 0 20px rgba(124, 58, 237, 0.2); }
    50% { box-shadow: 0 0 50px rgba(167, 139, 250, 0.6), inset 0 0 30px rgba(124, 58, 237, 0.4); }
}

.eye-inner {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--purple-deep) 0%, var(--purple-dark) 60%, #1e1b4b 100%);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.eye-pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #000;
    border-radius: 50%;
}

.eye-shine {
    position: absolute;
    top: 20%;
    left: 25%;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(2px);
}

.eye-tear {
    width: 12px;
    height: 18px;
    background: linear-gradient(180deg, var(--blue-glow), transparent);
    border-radius: 0 0 50% 50%;
    margin-top: 10px;
    animation: tearDrop 3s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes tearDrop {
    0%, 100% { transform: translateY(0); opacity: 0; }
    30% { opacity: 0.8; }
    70% { transform: translateY(20px); opacity: 0; }
}

.visual-caption {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-mid);
    letter-spacing: 2px;
}

/* === 野花戒指 === */
.ring-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wildflower-ring {
    position: relative;
    width: 160px;
    height: 160px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3), inset 0 0 20px rgba(251, 191, 36, 0.1);
    animation: ringRotate 20s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.petal {
    position: absolute;
    font-size: 24px;
    color: var(--purple-light);
    text-shadow: 0 0 10px var(--purple-main);
}

.petal.p1 { top: -12px; left: 50%; transform: translateX(-50%); }
.petal.p2 { top: 15%; right: -8px; }
.petal.p3 { bottom: 15%; right: -8px; }
.petal.p4 { bottom: -12px; left: 50%; transform: translateX(-50%); }
.petal.p5 { bottom: 15%; left: -8px; }
.petal.p6 { top: 15%; left: -8px; }

.ring-text {
    font-size: 15px;
    color: var(--purple-light);
    letter-spacing: 2px;
    text-align: center;
}

/* === 逃亡路径 === */
.path-lines {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.path-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-main), transparent);
    opacity: 0.5;
}

.path-line.pl1 { width: 80%; top: 30%; transform: rotate(-5deg); }
.path-line.pl2 { width: 60%; top: 50%; transform: rotate(3deg); }
.path-line.pl3 { width: 70%; top: 70%; transform: rotate(-2deg); }

.two-figures {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 30px;
    font-size: 48px;
    filter: drop-shadow(0 0 15px var(--purple-main));
}

.figure {
    animation: figureWalk 2s ease-in-out infinite;
}

.figure.f2 {
    animation-delay: 0.3s;
}

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

/* === 第七幕：蝴蝶谷 === */
.butterfly-valley {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #1a0a2e 30%, #2d1b4e 60%, #1a0a2e 100%);
    overflow: hidden;
}

.valley-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(124, 58, 237, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.valley-content {
    text-align: center;
}

.valley-text {
    max-width: 700px;
    margin: 0 auto 60px;
}

.valley-text p {
    font-size: 18px;
    line-height: 2.2;
    color: var(--text-light);
    margin-bottom: 16px;
    opacity: 0.95;
}

.valley-butterflies {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.vbf {
    position: absolute;
    font-size: 24px;
    opacity: 0.7;
    animation: valleyFloat 10s ease-in-out infinite;
}

.vbf.v1 { top: 5%; left: 5%; animation-delay: 0s; }
.vbf.v2 { top: 15%; right: 10%; animation-delay: 1s; font-size: 18px; }
.vbf.v3 { top: 25%; left: 15%; animation-delay: 2s; font-size: 30px; }
.vbf.v4 { top: 40%; right: 5%; animation-delay: 3s; }
.vbf.v5 { top: 55%; left: 8%; animation-delay: 4s; font-size: 20px; }
.vbf.v6 { top: 65%; right: 15%; animation-delay: 5s; font-size: 28px; }
.vbf.v7 { top: 75%; left: 20%; animation-delay: 6s; }
.vbf.v8 { top: 85%; right: 8%; animation-delay: 7s; font-size: 22px; }
.vbf.v9 { top: 10%; left: 45%; animation-delay: 8s; font-size: 16px; }
.vbf.v10 { top: 50%; left: 50%; animation-delay: 9s; font-size: 32px; }
.vbf.v11 { top: 30%; left: 70%; animation-delay: 2.5s; }
.vbf.v12 { top: 70%; left: 60%; animation-delay: 5.5s; font-size: 18px; }

@keyframes valleyFloat {
    0%, 100% { transform: translate(0, var(--parallax-y, 0px)) rotate(0deg); opacity: 0.5; }
    25% { transform: translate(30px, calc(-40px + var(--parallax-y, 0px))) rotate(20deg); opacity: 0.9; }
    50% { transform: translate(-20px, calc(-60px + var(--parallax-y, 0px))) rotate(-15deg); opacity: 0.7; }
    75% { transform: translate(-40px, calc(-30px + var(--parallax-y, 0px))) rotate(10deg); opacity: 0.8; }
}

/* === 第八幕：眼角膜捐献 === */
.cornea-scene {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #0a1628 50%, var(--bg-deep) 100%);
    overflow: hidden;
}

.cornea-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, rgba(167, 139, 250, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    animation: corneaGlow 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes corneaGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.cornea-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.cornea-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.big-eye {
    position: relative;
    width: 280px;
    height: 180px;
}

.eye-sclera {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(96, 165, 250, 0.4), inset 0 -10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.eye-iris {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, var(--purple-deep) 0%, var(--purple-dark) 40%, #1e1b4b 80%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.iris-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 50%;
    animation: irisSpin 15s linear infinite;
}

.iris-pattern2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 1px dashed rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    animation: irisSpin 10s linear infinite reverse;
}

@keyframes irisSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.eye-pupil-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.eye-reflection {
    position: absolute;
    top: 25%;
    left: 30%;
    font-size: 20px;
    opacity: 0.8;
    filter: drop-shadow(0 0 5px #fff);
    animation: reflectionBlink 4s ease-in-out infinite;
}

@keyframes reflectionBlink {
    0%, 90%, 100% { opacity: 0.8; }
    95% { opacity: 0.2; }
}

.cornea-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 220px;
    border: 2px solid rgba(96, 165, 250, 0.4);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.8; }
}

.light-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 140px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.6), transparent);
    transform-origin: top center;
    animation: rayPulse 3s ease-in-out infinite;
}

.ray.r1 { transform: translate(-50%, 0) rotate(0deg); animation-delay: 0s; }
.ray.r2 { transform: translate(-50%, 0) rotate(60deg); animation-delay: 0.5s; }
.ray.r3 { transform: translate(-50%, 0) rotate(120deg); animation-delay: 1s; }
.ray.r4 { transform: translate(-50%, 0) rotate(180deg); animation-delay: 1.5s; }
.ray.r5 { transform: translate(-50%, 0) rotate(240deg); animation-delay: 2s; }
.ray.r6 { transform: translate(-50%, 0) rotate(300deg); animation-delay: 2.5s; }

@keyframes rayPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.cornea-caption {
    font-size: 14px;
    color: var(--text-mid);
    letter-spacing: 2px;
    text-align: center;
    margin-top: 30px;
}

.cornea-text p {
    font-size: 17px;
    line-height: 2.1;
    margin-bottom: 16px;
    opacity: 0.9;
}

/* === 第九幕：告别信 === */
.letter-scene {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #12122a 50%, var(--bg-deep) 100%);
    overflow: hidden;
}

.letter-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(167, 139, 250, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(96, 165, 250, 0.05) 0%, transparent 30%);
    z-index: 0;
}

.letter-container {
    display: flex;
    justify-content: center;
    perspective: 1500px;
}

.letter-paper {
    position: relative;
    max-width: 750px;
    width: 100%;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 50%, #fef08a 100%);
    border-radius: 4px;
    padding: 50px 60px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(167, 139, 250, 0.2),
        inset 0 0 60px rgba(251, 191, 36, 0.1);
    color: #1e1b4b;
    transform: rotate(-1deg);
    transition: transform 0.5s ease;
}

.letter-paper:hover {
    transform: rotate(0deg) scale(1.01);
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: 4px;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    font-size: 15px;
    color: var(--purple-dark);
    letter-spacing: 2px;
}

.letter-body p {
    font-size: 16px;
    line-height: 2;
    color: #1e1b4b;
    margin-bottom: 16px;
    text-indent: 2em;
    opacity: 0.9;
}

.letter-body p:first-of-type {
    text-indent: 0;
    font-size: 18px;
    font-weight: 600;
}

.letter-ending {
    text-indent: 0 !important;
    margin-top: 30px !important;
    font-weight: 600;
    color: var(--purple-deep);
}

.letter-three {
    text-indent: 0 !important;
    margin: 20px 0 !important;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-left: 4px solid var(--purple-deep);
    border-radius: 0 8px 8px 0;
}

.letter-three span {
    display: block;
    font-size: 17px;
    line-height: 2.2;
    color: var(--purple-dark);
    font-weight: 600;
    text-indent: 0;
}

.letter-three .line-one { animation: lineReveal 1s ease-out 0.2s both; }
.letter-three .line-two { animation: lineReveal 1s ease-out 0.5s both; }
.letter-three .line-three {
    animation: lineReveal 1s ease-out 0.8s both;
    font-size: 20px;
    color: var(--purple-deep);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

@keyframes lineReveal {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.letter-sign {
    text-indent: 0 !important;
    text-align: right;
    font-size: 18px !important;
    font-weight: 700;
    margin-top: 30px !important;
    color: var(--purple-deep);
}

.letter-date {
    text-indent: 0 !important;
    text-align: right;
    font-size: 13px !important;
    color: var(--purple-dark);
    opacity: 0.7 !important;
    font-style: italic;
}

.letter-butterfly-seal {
    position: absolute;
    bottom: -20px;
    right: 40px;
    font-size: 48px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    animation: sealFloat 3s ease-in-out infinite;
}

@keyframes sealFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

/* === 页脚 === */
.site-footer {
    background: var(--bg-deep);
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
}

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

.footer-butterfly {
    font-size: 32px;
    margin-bottom: 20px;
    animation: footerButterfly 4s ease-in-out infinite;
}

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

.footer-quote {
    font-size: 16px;
    color: var(--purple-light);
    font-style: italic;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.footer-beian {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-beian a {
    color: var(--text-mid);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-beian a:hover {
    color: var(--purple-light);
}

.beian-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.beian-sep {
    color: var(--text-dim);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.footer-credit {
    font-size: 13px;
    color: var(--purple-light);
    letter-spacing: 1px;
    margin-top: 10px;
    opacity: 0.9;
}

/* === 响应式适配 === */
@media (max-width: 768px) {
    .scene {
        padding: 60px 16px;
    }

    .story-content,
    .story-content.reverse,
    .cornea-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-content.reverse .story-text {
        order: 1;
    }

    .story-content.reverse .story-visual {
        order: 2;
    }

    .hero-title {
        letter-spacing: 6px;
    }

    .music-player {
        top: 15px;
        right: 15px;
    }

    .music-butterfly {
        width: 48px;
        height: 48px;
    }

    .music-label {
        display: none;
    }

    .letter-paper {
        padding: 30px 25px;
    }

    .letter-header {
        flex-direction: column;
        gap: 8px;
    }

    .letter-body p {
        font-size: 15px;
    }

    .big-eye {
        width: 220px;
        height: 140px;
    }

    .eye-iris {
        width: 85px;
        height: 85px;
    }

    .scene-title {
        letter-spacing: 3px;
    }

    .quote-block {
        padding: 15px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        letter-spacing: 4px;
        font-size: 13px;
    }

    .divider-line {
        width: 40px;
    }

    .year-tag {
        font-size: 12px;
        letter-spacing: 2px;
        padding: 4px 14px;
    }

    .story-text p {
        font-size: 15px;
    }
}
