/* =========================================================
   《沁园春·长沙》沉浸式电影导读
   主题：深秋湘江 · 金红与墨青 · 豪放雄浑
   前景：红叶飘落层 · 氛围：江风（Web Audio 合成）
   ========================================================= */

@import"https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;500;600;700;900&family=ZCOOL+XiaoWei&display=swap";

:root {
    font-family: "Noto Serif SC", Songti SC, SimSun, serif;
    color: #f0e6d8;
    background: #33291f;
    font-synthesis: none;
    --paper: #e8dcc8;
    --ink: #241c14;
    --cinnabar: #c05a2e;
    --gold: #d4a76a;
    --river: #4f8a74
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    background: #33291f
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden
}

button,
a {
    font: inherit
}

button {
    color: inherit
}

.experience {
    position: relative;
    min-height: 100%;
    background: #423225
}

.scene-wrap {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background: #423225
}

.scene-wrap:before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: linear-gradient(#2e21163d, #2e211661), var(--scene-image, url(../generated/qinyuanchun/hero.avif));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(24px) saturate(.85) brightness(.9);
    transform: scale(1.08)
}

.scene-wrap:after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(24, 16, 10, .58), transparent 26%, transparent 74%, rgba(24, 16, 10, .58)), linear-gradient(0deg, rgba(26, 18, 12, .5), transparent 40%, rgba(30, 20, 12, .12))
}

.scene-wrap canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%
}

.grain {
    position: fixed;
    z-index: 1;
    inset: 0;
    opacity: .12;
    pointer-events: none;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")
}

/* 前景红叶层 */
.leaf-layer {
    position: fixed;
    z-index: 5;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.site-header {
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 26px;
    pointer-events: none
}

.seal {
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    border: 1px solid rgba(232, 219, 199, .5);
    color: #f0e6d8;
    background: #5a3327c4;
    box-shadow: inset 0 0 0 3px #f0e6d814, 0 8px 30px #120c071f;
    text-decoration: none;
    font-family: Ma Shan Zheng, cursive;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: .08em;
    pointer-events: auto
}

.header-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #e6d9c4b8;
    font-size: 10px;
    letter-spacing: .16em
}

.header-meta span:first-child {
    color: #f0e6d8;
    font-size: 12px
}

.poem-switch {
    display: flex;
    gap: 4px;
    margin-left: auto;
    padding: 4px;
    border: 1px solid rgba(232, 219, 199, .24);
    border-radius: 99px;
    background: #241a0f40;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px)
}

.poem-switch a {
    border-radius: 99px;
    padding: 7px 10px;
    color: #e6d9c4b8;
    text-decoration: none;
    font-size: 9px;
    letter-spacing: .08em;
    white-space: nowrap
}

.poem-switch a:hover,
.poem-switch a:focus-visible {
    color: #f2d8ae;
    background: #ffffff12
}

.poem-switch a[aria-current="page"] {
    color: #241a0f;
    background: #e6d9c4d9
}

.soundless-control {
    border: 1px solid rgba(232, 219, 199, .32);
    border-radius: 99px;
    padding: 9px 14px;
    background: #241a0f47;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    cursor: pointer;
    pointer-events: auto;
    font-size: 11px;
    letter-spacing: .12em;
    transition: .2s ease
}

.soundless-control:hover,
.soundless-control.active {
    color: #241c14;
    background: #e8dcc8
}

.qyc-audio {
    --audio-border: rgba(232, 219, 199, .32);
    --audio-color: rgba(232, 219, 199, .82);
    --audio-bg: rgba(36, 26, 15, .28);
    --audio-active-color: #241c14;
    --audio-active-bg: #e8dcc8;
    --audio-focus: #e8dcc8;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px)
}

.chapter-nav {
    position: fixed;
    z-index: 8;
    top: 50%;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-50%)
}

.chapter-nav a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(232, 219, 199, .22);
    border-radius: 50%;
    color: #e6d9c48c;
    background: #1a130b2e;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    text-decoration: none;
    font-size: 10px;
    transition: .25s ease
}

.chapter-nav a:hover,
.chapter-nav a.active {
    color: #241c14;
    background: #e8dcc8;
    transform: scale(1.12)
}

.scene-note {
    position: fixed;
    z-index: 8;
    right: 70px;
    bottom: 26px;
    width: min(340px, calc(100vw - 40px));
    padding: 17px 19px;
    border: 1px solid rgba(232, 219, 199, .22);
    border-radius: 3px;
    color: #f0e6d8;
    background: #241b12c7;
    box-shadow: 0 18px 60px #0c07034d;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px)
}

.scene-note.open {
    opacity: 1;
    transform: none
}

.scene-note-kicker {
    display: block;
    margin-bottom: 4px;
    color: #d4a76a;
    font-size: 10px;
    letter-spacing: .15em
}

.scene-note strong {
    font-size: 20px;
    font-weight: 600
}

.scene-note p {
    margin: 7px 0 0;
    color: #e6d9c4b8;
    font-size: 12px;
    line-height: 1.75
}

.story {
    position: relative;
    z-index: 3
}

.chapter {
    position: relative;
    display: flex;
    min-height: 110vh;
    align-items: center;
    padding: 12vh clamp(24px, 7vw, 110px);
    pointer-events: none
}

.chapter:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 20% 50%, rgba(20, 12, 6, .46), transparent 50%);
    transition: opacity .8s ease;
    pointer-events: none
}

.chapter.active:before {
    opacity: 1
}

.chapter.align-right {
    justify-content: flex-end
}

.chapter.align-right:before {
    background: radial-gradient(circle at 80% 50%, rgba(20, 12, 6, .5), transparent 50%)
}

.copy {
    position: relative;
    z-index: 1;
    width: min(535px, 48vw);
    pointer-events: auto
}

.hero {
    min-height: 120vh;
    align-items: flex-start;
    padding-top: 19vh
}

.hero-copy {
    width: min(620px, 58vw);
    text-shadow: 0 3px 24px rgba(18, 12, 6, .55);
    opacity: 0;
    transition: opacity 1s ease
}

.chapter.hero.active .hero-copy {
    opacity: 1
}

.kicker,
.chapter-number {
    margin: 0 0 16px;
    color: #d4a76a;
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase
}

h1,
h2,
p {
    margin-top: 0
}

h1 {
    margin-bottom: 7px;
    font-family: ZCOOL XiaoWei, "Noto Serif SC", serif;
    font-size: clamp(58px, 8.5vw, 128px);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: .88
}

h1 em {
    color: #d4743a;
    font-style: normal
}

.author {
    margin: 18px 0 36px;
    color: #e6d9c4b3;
    font-size: 13px;
    letter-spacing: .28em
}

blockquote {
    margin: 0 0 34px;
    padding: 0;
    font-family: Ma Shan Zheng, cursive;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.75
}

blockquote span {
    display: block;
    opacity: 0;
    transform: translateY(10px);
    animation: line-in 1.1s ease forwards
}

blockquote span:nth-child(1) { animation-delay: .5s }
blockquote span:nth-child(2) { animation-delay: .85s }
blockquote span:nth-child(3) { animation-delay: 1.2s }
blockquote span:nth-child(4) { animation-delay: 1.55s }
blockquote span:nth-child(5) { animation-delay: 1.9s }
blockquote span:nth-child(6) { animation-delay: 2.25s }
blockquote span:nth-child(7) { animation-delay: 2.6s }
blockquote span:nth-child(8) { animation-delay: 2.95s }
blockquote span:nth-child(9) { animation-delay: 3.3s }
blockquote span:nth-child(10) { animation-delay: 3.65s }
blockquote span:nth-child(11) { animation-delay: 4s }
blockquote span:nth-child(12) { animation-delay: 4.35s }
blockquote span:nth-child(13) { animation-delay: 4.7s }
blockquote span:nth-child(14) { animation-delay: 5.05s }
blockquote span:nth-child(15) { animation-delay: 5.4s }
blockquote span:nth-child(16) { animation-delay: 5.75s }

.enter {
    border: 0;
    border-bottom: 1px solid rgba(232, 219, 199, .45);
    padding: 10px 0;
    color: #f0e6d8;
    background: none;
    cursor: pointer;
    letter-spacing: .08em
}

.enter i {
    display: inline-block;
    margin-left: 12px;
    font-style: normal;
    animation: bob 1.8s ease-in-out infinite
}

.scroll-mark {
    position: absolute;
    bottom: 10vh;
    left: clamp(24px, 7vw, 110px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e6d9c48c;
    font-size: 10px;
    letter-spacing: .14em;
    opacity: 0;
    transition: opacity 1s ease
}

.chapter.hero.active .scroll-mark {
    opacity: 1
}

.scroll-mark span {
    display: block;
    width: 42px;
    height: 1px;
    background: #e6d9c480
}

.card {
    padding: clamp(26px, 4vw, 54px);
    border: 1px solid rgba(232, 219, 199, .17);
    color: #f5ecdd;
    background: linear-gradient(145deg, #231a10e6, #45321fba);
    box-shadow: 0 28px 90px #0c07033b;
    opacity: .42;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
    -webkit-backdrop-filter: blur(8px) saturate(.82);
    backdrop-filter: blur(8px) saturate(.82)
}

.chapter.active .card {
    opacity: 1;
    transform: none
}

.card h2,
.reading h2 {
    margin-bottom: 5px;
    font-family: ZCOOL XiaoWei, "Noto Serif SC", serif;
    font-size: clamp(34px, 4.8vw, 64px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.22
}

.pinyin {
    margin-bottom: 24px;
    color: #c8a878;
    font-size: 10px;
    letter-spacing: .19em;
    text-transform: uppercase
}

.translation {
    margin-bottom: 21px;
    color: #f0e6d8;
    font-size: 17px;
    line-height: 1.75
}

.commentary {
    margin-bottom: 0;
    color: #e6d9c4b8;
    font-size: 14px;
    line-height: 2
}

/* 红碧对照：万山红遍 ↔ 漫江碧透 */
.contrast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 219, 199, .18);
    color: #d4a76a;
    font-size: 12px
}

.contrast i {
    color: #e6d9c859;
    font-style: normal
}

.contrast b {
    color: #f0e6d8;
    font-weight: 600
}

/* 节奏条 */
.rhythm {
    display: flex;
    gap: 9px;
    margin-top: 28px
}

.rhythm span {
    flex: 1;
    padding: 12px 8px;
    border: 1px solid rgba(232, 219, 199, .2);
    text-align: center;
    font-family: Ma Shan Zheng, cursive;
    font-size: 22px
}

.rhythm span.wide {
    flex: 1.6
}

/* 三列意象：鹰击长空 · 鱼翔浅底 · 万类霜天竞自由 */
.triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 26px 0;
    background: #e8dcc82e
}

.triple div {
    padding: 15px 10px;
    background: #1d150ce0;
    text-align: center
}

.triple b {
    display: block;
    margin-bottom: 3px;
    color: #e0c9a4;
    font-family: Ma Shan Zheng, cursive;
    font-size: 25px;
    font-weight: 400
}

.triple span {
    color: #e6d9c48c;
    font-size: 10px;
    letter-spacing: .1em
}

/* 问天阶梯：怅寥廓 → 问苍茫大地 → 谁主沉浮 */
.ask-stair {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px
}

.ask-stair span {
    width: max-content;
    padding: 11px 14px;
    border: 1px solid rgba(232, 219, 199, .2);
    color: #e0c9a4;
    background: #1d150ce0;
    font-family: Ma Shan Zheng, cursive;
    font-size: 21px
}

.ask-stair span:nth-child(2) {
    margin-left: 34px
}

.ask-stair span:nth-child(3) {
    margin-left: 68px;
    border-color: #c05a2e88;
    color: #f0e6d8;
    background: #4a2a16e6
}

/* 时间轴：峥嵘岁月 */
.timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 22px;
    border-left: 1px solid rgba(232, 219, 199, .28)
}

.timeline div {
    position: relative;
    margin-bottom: 16px
}

.timeline div:last-child {
    margin-bottom: 0
}

.timeline div:before {
    content: "";
    position: absolute;
    top: 6px;
    left: -26px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c05a2e
}

.timeline b {
    display: block;
    color: #e0c9a4;
    font-size: 13px;
    font-weight: 600
}

.timeline span {
    color: #e6d9c48c;
    font-size: 11px;
    letter-spacing: .12em
}

/* 四格：恰 · 正 · 书生 · 挥斥 */
.youth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 26px
}

.youth-grid div {
    padding: 13px 12px;
    border: 1px solid rgba(232, 219, 199, .18);
    background: #1d150ce0
}

.youth-grid b {
    display: block;
    margin-bottom: 3px;
    color: #e0c9a4;
    font-family: Ma Shan Zheng, cursive;
    font-size: 21px;
    font-weight: 400
}

.youth-grid span {
    color: #e6d9c48c;
    font-size: 10px;
    letter-spacing: .1em
}

.final-line-card-q {
    display: block;
    margin-top: 30px;
    padding-left: 21px;
    border-left: 2px solid #c05a2e;
    color: #d4a76a;
    font-family: ZCOOL XiaoWei, serif;
    font-size: 20px;
    line-height: 1.8
}

.reading {
    min-height: 120vh;
    align-items: flex-end;
    padding-bottom: 9vh;
    background: linear-gradient(0deg, rgba(24, 17, 10, .94) 0, rgba(24, 17, 10, .72) 50%, transparent 100%)
}

.reading-panel {
    width: 100%;
    padding: clamp(28px, 5vw, 66px);
    border-top: 1px solid rgba(232, 219, 199, .2);
    background: #231a10b8;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: auto
}

.reading-heading {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    gap: 50px
}

.reading-heading h2 {
    margin: 0;
    font-size: clamp(39px, 6vw, 82px)
}

.reading-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 44px;
    background: #e8dcc826
}

.fact {
    min-height: 185px;
    padding: 23px;
    background: #1d150ce6
}

.fact span {
    display: block;
    margin-bottom: 20px;
    color: #c8a878;
    font-size: 10px;
    letter-spacing: .24em
}

.fact p {
    margin: 0;
    color: #e6d9c4ad;
    font-size: 13px;
    line-height: 1.85
}

.fact b {
    color: #e0c9a4;
    font-weight: 600
}

.emotion-arc {
    display: flex;
    height: 41px;
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(232, 219, 199, .15)
}

.emotion-arc span {
    display: grid;
    width: var(--w);
    place-items: center;
    color: #f5ecddc7;
    background: color-mix(in srgb, #c05a2e calc(var(--w) * 2.2), #4a3826);
    font-size: 10px;
    letter-spacing: .08em
}

.reading footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    color: #e6d9c47a;
    font-size: 11px;
    letter-spacing: .1em
}

.reading footer p {
    margin: 0
}

.reading footer button {
    border: 1px solid rgba(232, 219, 199, .25);
    border-radius: 99px;
    padding: 10px 16px;
    background: transparent;
    cursor: pointer
}

.reading footer button:hover {
    color: #241c14;
    background: #e8dcc8
}

.focus-scene .story,
.focus-scene .chapter-nav,
.focus-scene .scene-note {
    opacity: .08;
    transition: opacity .3s ease
}

.focus-scene .site-header {
    opacity: .85
}

.loading {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    color: #e0c9a4;
    background: #33291f;
    letter-spacing: .22em;
    font-size: 11px;
    transition: opacity .6s ease
}

.loading:before {
    content: "";
    position: absolute;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(212, 167, 106, .3);
    border-top-color: #d4a76a;
    border-radius: 50%;
    animation: spin 1.4s linear infinite
}

.loading span {
    margin-top: 95px
}

.loading.done {
    visibility: hidden;
    opacity: 0;
    pointer-events: none
}

.review-mode .site-header,
.review-mode .chapter-nav,
.review-mode .scene-note,
.review-mode .story,
.review-mode .grain,
.review-mode .leaf-layer {
    display: none
}

@keyframes bob {
    50% {
        transform: translateY(5px)
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes line-in {
    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:860px) {
    .site-header {
        padding: 14px
    }

    .seal {
        width: 43px;
        height: 43px;
        font-size: 14px
    }

    .header-meta span:last-child {
        display: none
    }

    .soundless-control {
        padding: 8px 11px
    }

    .poem-switch a {
        padding: 6px 8px
    }

    .chapter-nav {
        right: 8px
    }

    .chapter-nav a {
        width: 24px;
        height: 24px;
        font-size: 9px
    }

    .chapter {
        min-height: 118vh;
        padding: 16vh 24px 12vh;
        align-items: flex-end
    }

    .hero {
        min-height: 125vh;
        align-items: flex-start;
        padding-top: 18vh
    }

    .copy,
    .hero-copy {
        width: calc(100% - 34px);
        max-width: 560px
    }

    h1 {
        font-size: clamp(52px, 16vw, 82px)
    }

    blockquote {
        font-size: clamp(21px, 6vw, 30px)
    }

    .card {
        padding: 25px;
        background: linear-gradient(145deg, #2a1f13e0, #3d2c1bbf)
    }

    .card h2 {
        font-size: clamp(31px, 9vw, 50px)
    }

    .scene-note {
        right: 14px;
        bottom: 14px
    }

    .triple {
        grid-template-columns: 1fr
    }

    .ask-stair span {
        font-size: 18px
    }

    .reading {
        padding: 10vh 14px 3vh
    }

    .reading-panel {
        padding: 26px 20px
    }

    .reading-heading {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .reading-content {
        grid-template-columns: 1fr 1fr
    }

    .emotion-arc {
        height: auto;
        flex-wrap: wrap
    }

    .emotion-arc span {
        min-width: 33%;
        min-height: 36px;
        flex-grow: 1
    }
}

@media(max-width:540px) {

    .header-meta,
    #focus-scene {
        display: none
    }



    .hero-copy {
        width: calc(100% - 15px)
    }

    .author {
        margin-bottom: 25px
    }

    .scroll-mark {
        display: none
    }

    .translation {
        font-size: 15px
    }

    .commentary {
        font-size: 13px;
        line-height: 1.9
    }

    .youth-grid {
        grid-template-columns: 1fr
    }

    .ask-stair span:nth-child(2),
    .ask-stair span:nth-child(3) {
        margin-left: 16px
    }

    .reading-content {
        grid-template-columns: 1fr
    }

    .fact {
        min-height: auto
    }

    .reading footer {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}
