/* 流观山海 · 科普页模板（九尾狐做样板，2026-10-17 用户定：长卷做骨架 + 卷首白描晕成设色 + 题跋里的朱圈句读、眉批）
 * 字体照 设计稿/全站字体规范.md：原文 = 文鼎 PL 中楷；题签 = 思源宋体 900；白话 = 站酷小薇；界面、骨架字 = 思源宋体 600；按钮和短标签 = 马善政
 * 颜色：暗底上「金是原文、白是白话、朱是古注」；纸上换成浓墨 / 淡墨 / 朱 */
:root {
  --ink: #0d0c0b; --ling: #16201d; --ling2: #1f2b27; --paper: #ece0c2; --paper2: #f3ead4; --seal: #b8322a; --seal-text: #f6e9cf; --zhu: #e0503f; --zhu-ink: #a32b1f;
  --gold: #ffd36a; --gold2: #f0d08a; --cream: #f6efe0; --bai: rgba(246,239,224,.82);
  --yuanf: 'AR PL UKai CN', 'Noto Serif SC', serif; --titlef: 'Ma Shan Zheng', 'Noto Serif SC', serif; --baif: 'ZCOOL XiaoWei', 'AR PL UKai CN', 'Noto Serif SC', serif;   /* 小薇缺的字（昉、雘、鷟……）先落到文鼎，跟首页一样 */ --uif: 'Noto Serif SC', serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.rm { scroll-behavior: auto; }
body { margin: 0; background: var(--ling); color: var(--cream); font: 600 16px var(--uif); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.vt { writing-mode: vertical-rl; }
/* 绫子底：深青、极淡斜纹 */
.ling { position: relative; background: radial-gradient(ellipse 80% 70% at 50% 40%, var(--ling2), #111816 80%), var(--ling); }
.ling::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .16; background: repeating-linear-gradient(45deg, rgba(240,208,138,.05) 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, rgba(240,208,138,.04) 0 2px, transparent 2px 11px); }
.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .24  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.seal { display: inline-grid; place-items: center; background: var(--seal); color: var(--seal-text); font: 400 1em/1 var(--titlef); padding: .24em .2em; border-radius: 3px; box-shadow: inset 0 0 0 .06em var(--seal), inset 0 0 0 .1em rgba(246,233,207,.8); writing-mode: vertical-rl; }
.btn { display: inline-block; font: 400 20px var(--titlef); letter-spacing: .3em; text-decoration: none; padding: .55em 1.2em .55em 1.5em; background: var(--cream); color: #1d140b; border: 0; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s var(--ease), box-shadow .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.45); }
.btn.ghost { background: none; color: var(--gold2); border: 1px solid rgba(240,208,138,.5); box-shadow: none; }
.sechd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 0 0 4vh; }
.sechd h2 { margin: 0; white-space: nowrap; font: 400 clamp(30px, 2.6vw, 46px) var(--titlef); letter-spacing: .2em; color: var(--cream); }
.sechd small { font: 600 13px var(--uif); letter-spacing: .4em; color: rgba(240,208,138,.7); }

/* 顶栏 */
.mast { position: fixed; left: 0; right: 0; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 3.4vw, 56px); pointer-events: none; background: linear-gradient(180deg, rgba(10,14,12,.6), rgba(10,14,12,0)); transition: background .4s; }
.mast > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.brand .seal { font-size: 13px; }
.brand b { font: 400 clamp(22px, 2vw, 30px)/1 var(--titlef); letter-spacing: .14em; font-weight: 400; }
.brand small { display: block; font: 600 11px var(--uif); letter-spacing: .3em; opacity: .7; margin-top: 4px; }
.mast nav { display: flex; gap: 10px; align-items: center; }
.mast nav a, .mast nav button { font: 400 17px var(--titlef); letter-spacing: .2em; text-decoration: none; color: var(--cream); padding: 7px 14px; border: 1px solid rgba(240,208,138,.38); border-radius: 18px; background: rgba(13,12,11,.35); cursor: pointer; }
.mast nav button { font-size: 13px; opacity: .8; }
.mast nav button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold2); }
.mast nav .play { background: var(--cream); color: #1d140b; border-color: var(--cream); }

/* 一、卷首：白描随往下滚晕成设色（钉住一屏半） */
.hero { position: relative; height: 190vh; }
.h-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; gap: clamp(30px, 6vw, 120px); padding: 80px 6vw 50px; overflow: hidden; }
.h-stick::before { content: ''; position: absolute; left: 36%; top: -10%; width: 70vw; height: 120%; transform: translateX(-50%); pointer-events: none; background: radial-gradient(ellipse 42% 52% at 50% 42%, rgba(255,226,170,.13), rgba(255,226,170,0) 70%); }
.mount { position: relative; flex: none; height: min(72vh, 760px); aspect-ratio: 486 / 610; padding: 2.4%; background: linear-gradient(135deg, #c3ae82, #a8915f); box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.4); }
.mount .p { position: relative; width: 100%; height: 100%; background: #efe6cf; overflow: hidden; }
.mount .lines, .mount .color { position: absolute; left: 6%; right: 6%; bottom: 6%; top: 12%; background-size: contain; background-repeat: no-repeat; background-position: 50% 100%; }
.mount .lines { opacity: .9; }
.mount .color { -webkit-mask-image: radial-gradient(circle at 52% 60%, #000 var(--r, 0%), transparent calc(var(--r, 0%) + 16%)); mask-image: radial-gradient(circle at 52% 60%, #000 var(--r, 0%), transparent calc(var(--r, 0%) + 16%)); }
.mount .say { position: absolute; right: 7%; top: 6%; writing-mode: vertical-rl; font: 400 clamp(22px, 2vw, 34px)/1.3 var(--yuanf); letter-spacing: .16em; color: #2c1f12; }
.mount .seal.pm { position: absolute; left: 6%; top: 11%; font-size: 13px; transform: rotate(-4deg); }   /* K-4：印原来跟在竖题后面，压在狐尾上；挪到左上空白纸面 */
.mount .stat { position: absolute; left: 6%; top: 6%; font: 600 12px var(--uif); letter-spacing: .3em; color: #6b4a2a; }
.h-ti { position: relative; display: flex; flex-direction: row-reverse; gap: clamp(20px, 2.6vw, 44px); align-items: flex-start; }
.tiqian { writing-mode: vertical-rl; background: #efe4c8; color: #1d140b; font: 900 clamp(48px, 5.2vw, 92px)/1.06 var(--uif); letter-spacing: .08em; padding: .34em .22em .5em; position: relative;
  box-shadow: inset 0 0 0 3px #efe4c8, inset 0 0 0 4.5px #6b4a2a, inset 0 0 0 7px #efe4c8, inset 0 0 0 8px rgba(107,74,42,.7), 0 18px 40px rgba(0,0,0,.45); }
.tiqian small { display: block; font: 600 .2em/1 var(--uif); letter-spacing: .3em; margin-top: 1.1em; color: #6b4a2a; }
.tiqian .seal { position: absolute; left: -.4em; bottom: .3em; font-size: .18em; transform: rotate(-4deg); }
.h-ti .say { writing-mode: vertical-rl; font: 400 clamp(28px, 2.6vw, 46px)/1.5 var(--yuanf); letter-spacing: .16em; color: var(--gold); text-shadow: 0 0 18px rgba(255,200,110,.3); -webkit-text-stroke: .5px currentColor; }
.h-ti .hk { writing-mode: vertical-rl; padding-top: 3.2em; }
.h-ti .hk b { display: block; font: 400 clamp(20px, 1.6vw, 28px) var(--titlef); color: var(--cream); letter-spacing: .3em; font-weight: 400; }
.h-ti .hk small { display: block; font: 400 clamp(14px, 1vw, 17px) var(--yuanf); color: var(--zhu); letter-spacing: .14em; margin-right: .8em; padding-top: 1.4em; }
.h-ti .acts { writing-mode: vertical-rl; display: flex; gap: 12px; align-self: flex-end; }
.h-ti .acts .btn { writing-mode: vertical-rl; padding: 1.2em .55em; }
.hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 400 clamp(17px, 1.3vw, 21px) var(--titlef); letter-spacing: .4em; padding-left: .4em; color: var(--gold2); text-shadow: 0 2px 12px rgba(0,0,0,.8); text-align: center; z-index: 2; white-space: nowrap; }   /* K-6：原来 12px 淡灰，看不出 */
.hint i { display: block; width: 22px; height: 22px; margin: 6px auto 0; border-right: 2px solid var(--gold2); border-bottom: 2px solid var(--gold2); transform: rotate(45deg); animation: hintbob 1.8s cubic-bezier(.45,.05,.55,.95) infinite; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
@keyframes hintbob { 0%, 100% { transform: translateY(-4px) rotate(45deg); opacity: .65; } 50% { transform: translateY(6px) rotate(45deg); opacity: 1; } }

/* 二、原文题跋：竖排金字、朱圈句读、白话跟在每句左边、郭璞注写在被注那一句的左边 */
.yuan { position: relative; min-height: 100vh; padding: 14vh 6vw 12vh; display: grid; grid-template-columns: 1fr auto; gap: 4vw; align-items: center; overflow: hidden; }
.yuan .bgart { position: absolute; left: -4vw; bottom: 0; width: 52vw; height: 90%; background: url(media/qingqiu.webp) left bottom / contain no-repeat; opacity: .16; filter: saturate(.6); pointer-events: none; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.yuan .lede { position: relative; align-self: end; max-width: 30em; font: 400 clamp(17px, 1.2vw, 20px)/1.9 var(--baif); color: var(--bai); }
.yuan .lede b { display: block; font: 400 clamp(30px, 2.6vw, 46px)/1.2 var(--titlef); color: var(--cream); letter-spacing: .2em; margin-bottom: .6em; font-weight: 400; }
.cols { position: relative; display: flex; flex-direction: row-reverse; gap: clamp(12px, 1.4vw, 26px); align-items: flex-start; }
.cols .hd { writing-mode: vertical-rl; font: 400 clamp(18px, 1.3vw, 22px) var(--titlef); letter-spacing: .5em; color: var(--gold2); opacity: .85; display: flex; gap: .8em; align-items: center; }
.cols .hd .seal { font-size: 13px; }
.ju { display: flex; flex-direction: row-reverse; gap: 6px; }
.ju .t { writing-mode: vertical-rl; font: 400 clamp(32px, 2.9vw, 52px)/1.32 var(--yuanf); letter-spacing: .12em; color: var(--gold); text-shadow: 0 0 16px rgba(255,200,110,.25); -webkit-text-stroke: .5px currentColor; height: min(68vh, 12.6em); }
.ju .g { writing-mode: vertical-rl; font: 400 clamp(17px, 1.25vw, 21px)/1.8 var(--baif); letter-spacing: .08em; color: var(--bai); padding-top: 2.4em; height: min(68vh, 30em); }
.ju .g .pu { font-family: var(--uif); font-weight: 400; }
.ju rt { font: 600 .32em var(--uif); color: rgba(240,208,138,.85); letter-spacing: 0; -webkit-text-stroke: 0; }
.ju .note { cursor: pointer; text-decoration: underline dotted rgba(224,80,63,.8) 2px; text-underline-offset: .25em; }
.dou { position: relative; }
.dou::after { content: ''; position: absolute; left: -.06em; bottom: -.12em; width: .28em; height: .28em; border: 2px solid var(--zhu); border-radius: 50%; transform: scale(0); transition: transform .35s var(--ease) var(--dd, 0s); }
.in .dou::after, .rm .dou::after { transform: scale(1); }
.zhupi { writing-mode: vertical-rl; display: flex; flex-direction: column; gap: 0; padding-top: 3em; }
.zhupi .z { font: 400 clamp(22px, 1.8vw, 32px)/1.3 var(--yuanf); letter-spacing: .1em; color: var(--zhu); text-shadow: 0 0 12px rgba(224,80,63,.3); }
.zhupi .z::before { content: ''; display: block; width: .42em; height: .42em; border: 2px solid currentColor; border-radius: 50%; margin: 0 auto .45em; }
.zhupi .by { font: 600 13px var(--uif); letter-spacing: .3em; color: rgba(224,80,63,.85); margin-top: .8em; }
.zhupi .zg { font: 400 clamp(15px, 1.05vw, 18px)/1.8 var(--baif); color: var(--bai); margin-right: .6em; }
.pop { position: fixed; z-index: 60; max-width: 260px; background: var(--paper2); color: #2c1f12; padding: 12px 14px 12px 16px; font: 400 16px/1.7 var(--baif); box-shadow: 0 14px 30px rgba(0,0,0,.45); border-left: 3px solid var(--seal); }
.pop b { display: block; font: 400 18px var(--yuanf); color: var(--zhu-ink); margin-bottom: 2px; }

/* 三、它的故事：左边钉住一个大朝代字，右边一段段白话往上滚 */
.story { position: relative; padding: 16vh 6vw 10vh; background: linear-gradient(180deg, #111816, #15110d 30%, #15110d); }
.story .wrap { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: minmax(340px, 44%) 1fr; gap: 5vw; }
.story .pin { position: sticky; top: 16vh; height: 70vh; display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 22px; align-items: flex-start; }
.story .pin .era { writing-mode: vertical-rl; font: 400 clamp(90px, 9vw, 168px)/1 var(--titlef); color: var(--gold); letter-spacing: .06em; text-shadow: 0 0 30px rgba(255,200,110,.18); transition: opacity .45s; }
.story .pin .head { writing-mode: vertical-rl; font: 400 clamp(20px, 1.6vw, 28px) var(--titlef); color: var(--cream); letter-spacing: .3em; padding-top: .4em; transition: opacity .45s; }
.story .pin .prog { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; }
/* 故事配图：一幅小竖轴（绫边 + 纸心），跟着左边朝代大字换，淡入；跟下面长卷的大图不重样（取的是局部） */
.smount { position: relative; margin: 0; flex: none; height: min(58vh, 560px); aspect-ratio: 3 / 4; padding: 10px; background: linear-gradient(135deg, #c3ae82, #a8915f); box-shadow: 0 24px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4); }
.smount::before, .smount::after { content: ''; position: absolute; left: -6px; right: -6px; height: 12px; border-radius: 5px; background: linear-gradient(180deg, #7a4d2a, #3a2414); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.smount::before { top: -8px; } .smount::after { bottom: -8px; }
.smount .sp { position: relative; width: 100%; height: 100%; overflow: hidden; background: #1a140d; box-shadow: inset 0 0 0 1px rgba(60,40,20,.4); }
.spi { position: absolute; inset: 0; background-repeat: no-repeat; opacity: 0; transition: opacity .35s ease-in; }   /* K-5：先淡出、再淡入，两幅不叠在一起（原来叠着淡、旧的还在放大漂，两张画的月亮会叠出一个会动的重影） */
.spi.on { opacity: 1; transition: opacity .7s var(--ease) .3s; }
.smount figcaption { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font: 600 12px var(--uif); letter-spacing: .3em; color: rgba(240,208,138,.7); }
.ppic { display: none; }
.rm .spi, .rm .spi.on { transition: none; }
.story .pin .prog i { width: 22px; height: 3px; background: rgba(240,208,138,.25); }
.story .pin .prog i.on { background: var(--gold2); }
.story .intro { font: 400 clamp(19px, 1.4vw, 24px)/1.9 var(--baif); color: var(--cream); margin: 0 0 10vh; max-width: 28em; }
.story .intro h2 { font: 400 clamp(36px, 3.2vw, 58px)/1.2 var(--titlef); letter-spacing: .16em; margin: 0 0 .5em; font-weight: 400; }
.para { min-height: 58vh; padding: 4vh 0; max-width: 34em; }
.para .tag { font: 600 13px var(--uif); letter-spacing: .3em; color: rgba(240,208,138,.75); }
.para h3 { margin: .3em 0 .7em; font: 400 clamp(26px, 2vw, 34px) var(--titlef); letter-spacing: .14em; color: var(--cream); font-weight: 400; }
.para p { margin: 0; font: 400 clamp(18px, 1.3vw, 22px)/2 var(--baif); color: rgba(246,239,224,.9); }
.para blockquote { margin: 1.4em 0 0; padding: .2em 0 .2em 1.1em; border-left: 2px solid rgba(240,208,138,.5); }
.para blockquote q { display: block; font: 400 clamp(21px, 1.55vw, 27px)/1.6 var(--yuanf); color: var(--gold); letter-spacing: .06em; quotes: '「' '」'; }
.para blockquote cite { display: block; margin-top: .5em; font: 600 13px var(--uif); font-style: normal; letter-spacing: .2em; color: rgba(240,208,138,.7); }
.para .go { display: inline-block; margin-top: 1.2em; font: 400 16px var(--titlef); letter-spacing: .24em; color: var(--zhu); text-decoration: none; }
.storyend { max-width: 34em; padding: 10vh 0 4vh; }
.storyend .t { font: 400 clamp(26px, 2.1vw, 38px)/1.6 var(--yuanf); color: var(--gold); }
.storyend .g { font: 400 clamp(22px, 1.7vw, 30px)/1.6 var(--titlef); color: var(--cream); margin-top: .3em; letter-spacing: .1em; }
.storyend .d { margin-top: 1.6em; font: 600 13px/1.8 var(--uif); color: rgba(224,80,63,.9); letter-spacing: .1em; }

/* 四、流变长卷（宽屏）：10-17 K-7 改——不再钉住、不再把上下滚劫持成左右；上下滑永远是上下走。
   长卷是一条横着的卷子：触控板横划、鼠标拖、点两边卷轴上的箭头、点底下标尺的朝代，都能左右看；第一次进屏时从左轴里「展开」一次。中文从右往左读，卷首在最右。 */
.roll { position: relative; padding: 12vh 0 9vh; }
.r-stick { position: relative; }
.r-stick .sechd { margin: 0 6vw 4vh; }
.band { position: relative; height: min(64vh, 640px); }
.band .win { position: absolute; left: calc(4vw + 30px); right: calc(4vw + 30px); top: 0; bottom: 0; overflow-x: auto; overflow-y: hidden; direction: rtl; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; clip-path: inset(0 0 0 var(--shut, 0px)); transition: clip-path 1.9s cubic-bezier(.45,.05,.25,1); }
.band .win::-webkit-scrollbar { display: none; }
.band .win.drag { cursor: grabbing; }
.band .win.drag a { pointer-events: none; }
.track { display: flex; flex-direction: row; direction: rtl; align-items: stretch; height: 100%; width: max-content; }
.track > * { direction: ltr; }
.axis.l { transition: transform 1.9s cubic-bezier(.45,.05,.25,1); transform: translateX(var(--shut, 0px)); }
.rm .band .win, .rm .axis.l { transition: none; }
/* 两边卷轴上的箭头：‹ 往左看下去（后来的朝代），› 往右回去 */
.navb { position: absolute; top: 50%; z-index: 4; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 1px solid rgba(240,208,138,.55); background: rgba(20,16,10,.78); color: var(--gold); font: 400 26px/44px var(--uif); text-align: center; cursor: pointer; padding: 0; box-shadow: 0 6px 18px rgba(0,0,0,.45); transition: opacity .3s, transform .3s var(--ease); }
.navb:hover { transform: scale(1.08); }
.navb[disabled] { opacity: .25; cursor: default; transform: none; }
.navb.prev { left: calc(4vw - 6px); } .navb.next { right: calc(4vw - 6px); }
.axis { position: absolute; top: -26px; bottom: -26px; width: 34px; z-index: 2; background: linear-gradient(90deg, #2a170b, #7a4d2a 45%, #3a2414); box-shadow: 0 30px 60px rgba(0,0,0,.5); border-radius: 4px; }
.axis::before, .axis::after { content: ''; position: absolute; left: -6px; right: -6px; height: 34px; border-radius: 7px; background: linear-gradient(90deg, #6f9f86, #cbe4d2 45%, #4f7d65); box-shadow: inset 0 0 0 1px rgba(20,40,30,.5); }
.axis::before { top: -18px; } .axis::after { bottom: -18px; }
.axis.l { left: 4vw; } .axis.r { right: 4vw; }
.axis.l + .shade, .shadeL { position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; z-index: 1; }
.shadeL { left: calc(4vw + 30px); background: linear-gradient(90deg, rgba(40,25,10,.45), rgba(40,25,10,0)); }
.shadeR { position: absolute; top: 0; bottom: 0; width: 60px; right: calc(4vw + 30px); z-index: 1; pointer-events: none; background: linear-gradient(270deg, rgba(40,25,10,.45), rgba(40,25,10,0)); }
.sheet { position: relative; flex: none; height: 100%; background: var(--paper); color: #1d140b; display: flex; flex-direction: row-reverse; align-items: stretch; gap: 2.6vw; padding: 5vh 2.8vw;
  background-image: linear-gradient(90deg, rgba(120,88,40,.07), rgba(120,88,40,0) 5%, rgba(120,88,40,0) 95%, rgba(120,88,40,.09)); }
.sheet + .sheet { border-right: 1px solid rgba(110,80,40,.25); }
.sheet.head { padding-right: 4vw; }
.sheet.head .t { writing-mode: vertical-rl; font: 900 clamp(34px, 2.8vw, 50px)/1.1 var(--uif); letter-spacing: .1em; }
.sheet.head .g { writing-mode: vertical-rl; font: 400 clamp(17px, 1.25vw, 21px)/1.9 var(--baif); color: rgba(60,42,24,.8); max-height: 100%; }
.sheet.head .seal { font-size: 16px; align-self: flex-end; }
.era { gap: 2vw; padding-left: 5.5vw; }   /* 每段左边多留纸：题跋贴着自己那幅画，跟左边下一段的画分开 */
.era .pw { position: relative; flex: none; height: 100%; aspect-ratio: 1672 / 941; }
.era .roller { display: none; }
.era .pic { width: 100%; height: 100%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(60,40,20,.25), inset 0 0 60px rgba(60,40,20,.22); }   /* 褪色已经烤在图里（roll_*.webp），移动的层上不挂滤镜（K-5：Safari 会留残影） */
.era .col { display: flex; flex-direction: row-reverse; gap: 12px; align-items: flex-start; height: 100%; }
.era .col .seal { font-size: 22px; padding: .3em .2em; }
.era .bk { writing-mode: vertical-rl; font: 600 15px var(--uif); letter-spacing: .22em; color: #6b4a2a; }
.era .t { writing-mode: vertical-rl; font: 400 clamp(23px, 1.95vw, 32px)/1.25 var(--yuanf); letter-spacing: .12em; }
.era .g { writing-mode: vertical-rl; font: 400 clamp(16px, 1.2vw, 20px)/1.7 var(--baif); color: rgba(60,42,24,.8); letter-spacing: .06em; }
.era a.go { writing-mode: vertical-rl; font: 400 16px var(--titlef); letter-spacing: .3em; text-decoration: none; color: var(--zhu-ink); border: 1px solid rgba(163,43,31,.5); padding: .6em .25em; align-self: flex-end; }
.sheet.tail { align-items: center; padding: 5vh 4vw; }
.sheet.tail .t { writing-mode: vertical-rl; font: 400 clamp(26px, 2.2vw, 38px)/1.4 var(--yuanf); letter-spacing: .14em; }
.sheet.tail .g { writing-mode: vertical-rl; font: 400 clamp(24px, 1.9vw, 32px)/1.4 var(--titlef); color: var(--zhu-ink); letter-spacing: .14em; }
.sheet.tail .btn { writing-mode: vertical-rl; padding: 1.1em .5em; background: #1d140b; color: #f3e3c6; }
.ruler { position: relative; margin: 5vh 8vw 0; height: 40px; }
.ruler .bar { position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: rgba(240,208,138,.3); }
.ruler .fill { position: absolute; right: 0; top: 13px; height: 3px; background: var(--gold2); width: 0; }
.ruler span { position: absolute; top: 0; transform: translateX(-50%); font: 400 20px var(--titlef); color: rgba(246,239,224,.5); letter-spacing: .1em; padding: 20px 10px 0; transition: color .3s; cursor: pointer; }
.ruler span:hover { color: var(--gold2); }
.ruler span.on { color: var(--gold); }
.ruler span::before { content: ''; position: absolute; left: 50%; top: 10px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--ling); border: 1px solid rgba(240,208,138,.6); }
.ruler span.on::before { background: var(--gold); }

/* 五、出处、相关神兽、页脚 */
.books { position: relative; padding: 14vh 6vw 10vh; background: #f0e6cf; color: #2c1f12; }
.books .sechd h2 { color: #1d140b; } .books .sechd small { color: #8a6a3e; }
.books ol { max-width: 1200px; margin: 0; padding: 0; list-style: none; columns: 2 420px; column-gap: 5vw; counter-reset: b; }
.books li { break-inside: avoid; padding: 14px 0; border-bottom: 1px solid rgba(110,80,40,.22); display: grid; grid-template-columns: 2.4em 1fr; gap: 4px 10px; counter-increment: b; }
.books li::before { content: counter(b, cjk-ideographic); font: 400 16px var(--titlef); color: var(--zhu-ink); grid-row: span 2; }
.books li b { font: 400 clamp(18px, 1.3vw, 21px) var(--yuanf); color: #1d140b; font-weight: 400; }
.books li b small { font: 600 12px var(--uif); color: #8a6a3e; letter-spacing: .2em; margin-left: .8em; }
.books li span { font: 400 16px/1.7 var(--baif); color: #4a3a28; }
.books .note { margin-top: 4vh; font: 600 13px/1.9 var(--uif); color: #8a6a3e; max-width: 60em; }
.related { position: relative; padding: 14vh 6vw 12vh; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4vw; max-width: 1400px; }
.card { position: relative; background: var(--paper2); color: #2c1f12; padding: 22px 22px 20px; min-height: 340px; display: flex; flex-direction: column; text-decoration: none; box-shadow: 0 18px 40px rgba(0,0,0,.4); transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card .why { font: 600 12px var(--uif); letter-spacing: .3em; color: #8a6a3e; }
.card h3 { margin: 6px 0 0; font: 900 32px var(--uif); letter-spacing: .1em; color: #1d140b; }
.card .pic { flex: 1; margin: 14px 0; min-height: 120px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.card.wait .pic { filter: grayscale(1) contrast(1.1); opacity: .55; }
.card .pic.none { display: grid; place-items: center; border: 1px dashed rgba(110,80,40,.35); font: 400 15px var(--titlef); letter-spacing: .4em; color: rgba(110,80,40,.6); }
.card .q { font: 400 18px/1.5 var(--yuanf); }
.card .from { font: 600 12px var(--uif); letter-spacing: .2em; color: #8a6a3e; margin-top: 4px; }
.card .st { position: absolute; right: 18px; top: 18px; font-size: 13px; }
.card.have .st { background: #1d140b; box-shadow: none; color: var(--gold2); }
.foot { padding: 8vh 6vw 10vh; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(240,208,138,.18); }
.foot .end { font: 400 clamp(22px, 1.8vw, 30px) var(--titlef); letter-spacing: .2em; }
.foot .end small { display: block; font: 600 13px var(--uif); letter-spacing: .3em; color: rgba(246,239,224,.55); margin-top: 8px; }

/* 文字动效（进屏时一次）：原文逐字浮现；朱批一个字一个字写出；段落淡入上浮 */
.c { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(6px); transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d0, 0ms)); }
.vt .c, .ju .t .c, .h-ti .say .c { transform: translateX(-6px); }
.in .c { opacity: 1; filter: none; transform: none; }
.w { display: inline-block; clip-path: inset(0 0 100% 0); transition: clip-path .32s cubic-bezier(.45,.05,.25,1); transition-delay: calc(var(--i) * 140ms + var(--d0, 0ms)); }
.in .w { clip-path: inset(0 0 -10% 0); }
.rise { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }
/* 减少动效：全部直接显示，不钉不滑 */
.rm .c, .rm .w, .rm .rise { opacity: 1 !important; filter: none !important; transform: none !important; clip-path: none !important; transition: none !important; }
.rm .hint i { animation: none; }

/* 手机（和减少动效）：长卷退成竖排，一幅幅往下「放下来」——画从上轴往下展开，卷轴落到画的底边 */
@media (max-width: 760px) {
  .brand b { font-size: 22px; } .brand small { display: none; } .mast nav a, .mast nav button { font-size: 15px; padding: 6px 11px; } .mast nav .rmb { display: none; }
  .hero { height: 170vh; } .h-stick { flex-direction: column; justify-content: flex-start; gap: 22px; padding: 84px 18px 30px; }
  .mount { height: auto; width: min(74vw, 46vh); }
  .h-ti { width: 100%; justify-content: center; gap: 16px; } .tiqian { font-size: 46px; } .h-ti .say { font-size: 26px; } .h-ti .hk { display: none; } .h-ti .acts { display: none; }
  .yuan { display: block; padding: 12vh 18px 10vh; } .yuan .bgart { display: none; } .yuan .lede { margin-bottom: 6vh; }
  .cols { flex-direction: column; gap: 22px; } .cols .hd { writing-mode: horizontal-tb; letter-spacing: .4em; }
  .ju { flex-direction: column; gap: 6px; } .ju .t, .ju .g { writing-mode: horizontal-tb; height: auto; padding-top: 0; } .ju .t { font-size: 30px; line-height: 1.5; } .ju .g { font-size: 18px; }
  .ju rt { font-size: .38em; }
  .dou::after { left: auto; right: -.32em; bottom: .08em; }
  .zhupi { writing-mode: horizontal-tb; padding-top: 0; } .zhupi .z { font-size: 24px; } .zhupi .z::before { display: inline-block; margin: 0 .4em 0 0; vertical-align: .1em; } .zhupi .zg { margin: .3em 0 0; font-size: 17px; }
  .story { padding: 12vh 18px 8vh; } .story .wrap { display: block; } .story .pin { display: none; }
  .ppic { display: block; aspect-ratio: 16 / 10; margin: 0 0 18px; background-repeat: no-repeat; border: 6px solid #b9a57c; outline: 1px solid rgba(0,0,0,.4); box-shadow: 0 14px 30px rgba(0,0,0,.45); }   /* 手机：小横幅放在每段文字上方 */
  .story .intro { font-size: 19px; } .para { min-height: 0; padding: 5vh 0; } .para p { font-size: 18px; } .para blockquote q { font-size: 21px; }
}
/* 长卷竖排版：手机（窄于 760）或减少动效时，脚本给 <html> 加 vroll */
.vroll .roll { padding: 12vh 0 6vh; }  .vroll .r-stick { position: static; height: auto; overflow: visible; }
.vroll .r-stick .sechd { position: static; margin: 0 18px 5vh; }  .vroll .band { position: static; height: auto; }  .vroll .band .win { position: static; overflow: visible; direction: ltr; clip-path: none; cursor: auto; }  .vroll .navb { display: none; }
.vroll .axis, .vroll .shadeL, .vroll .shadeR, .vroll .ruler { display: none; }
.vroll .track { position: static; display: block; transform: none !important; padding: 0 14px; }
.vroll .sheet { display: block; height: auto; padding: 0; margin: 0 0 30px; background: none; border: 0 !important; }
.vroll .sheet.head, .vroll .sheet.tail { background: var(--paper); padding: 26px 20px; }
.vroll .sheet.head .t, .vroll .sheet.head .g, .vroll .sheet.tail .t, .vroll .sheet.tail .g { writing-mode: horizontal-tb; }  .vroll .sheet.head .t { font-size: 30px; margin-bottom: .4em; }  .vroll .sheet.head .g { font-size: 17px; }  .vroll .sheet.head .seal { display: none; }
.vroll .sheet.tail .t { font-size: 24px; }  .vroll .sheet.tail .g { font-size: 22px; margin: .4em 0 1em; }  .vroll .sheet.tail .btn { writing-mode: horizontal-tb; padding: .55em 1.2em; }
/* 一幅「挂轴」：上轴 → 画慢慢放下来 → 下轴落到底；字在画下面 */
.vroll .era { position: relative; padding: 18px 0 0; display: flex; flex-direction: column; }
.vroll .era .pw { order: -1; }   /* 竖排时画在上、字在下：上轴挂着，画往下放 */
.vroll .era .pw { width: 100%; height: auto; }
.vroll .era .pic { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.45,.05,.25,1); }
.vroll .era::before { content: ''; position: absolute; left: -8px; right: -8px; height: 16px; border-radius: 6px; background: linear-gradient(180deg, #7a4d2a, #3a2414); box-shadow: 0 6px 14px rgba(0,0,0,.45); z-index: 2; }
.vroll .era::before { top: 2px; }
.vroll .era .roller { display: block; position: absolute; left: -8px; right: -8px; top: -8px; height: 16px; border-radius: 6px; background: linear-gradient(180deg, #7a4d2a, #3a2414); box-shadow: 0 6px 14px rgba(0,0,0,.45); z-index: 2; transition: top 1.3s cubic-bezier(.45,.05,.25,1); }
.vroll .era.in .roller { top: calc(100% - 8px); }   /* 下轴跟着画往下落 */
.vroll .era.in .pic { clip-path: inset(0 0 0 0); }
.vroll .era .col { display: block; height: auto; background: var(--paper); padding: 18px 20px 20px; }
.vroll .era .col .seal { writing-mode: horizontal-tb; font-size: 17px; padding: .25em .5em; margin-right: 10px; vertical-align: middle; }
.vroll .era .bk, .vroll .era .t, .vroll .era .g, .vroll .era a.go { writing-mode: horizontal-tb; }  .vroll .era .bk { display: inline; font-size: 13px; }  .vroll .era .t { font-size: 23px; margin: .5em 0 .2em; }  .vroll .era .g { font-size: 17px; }
.vroll .era a.go { display: inline-block; padding: .4em 1em; margin-top: .8em; }
.vroll.rm .era .pic { clip-path: none; }  .vroll.rm .era .roller { top: calc(100% - 8px); transition: none; }
@media (max-width: 760px) {
  .books { padding: 12vh 18px 8vh; } .books ol { columns: 1; } .related { padding: 12vh 18px 10vh; } .cards { grid-template-columns: 1fr 1fr; gap: 14px; } .card { min-height: 260px; padding: 16px; } .card h3 { font-size: 26px; }
  .foot { padding: 6vh 18px 9vh; }
}
@media (min-width: 761px) { .vroll .track { max-width: 980px; margin: 0 auto; } .vroll .r-stick .sechd { max-width: 980px; margin: 0 auto 5vh; } }   /* 宽屏开着减少动效：长卷竖着排，但别一幅画铺满整个屏宽 */
.vroll .track { direction: ltr; width: auto; height: auto; }   /* 竖排版：卷子不横滚，方向恢复从左往右排字 */
.band:not(.opened) .navb { opacity: 0; pointer-events: none; }   /* 卷子还没展开时先不出箭头 */

/* K-9（10-18）：白话里的标点一律用思源宋体——站酷小薇的句号是个贴底的小圆点，看着像英文句点；原来只给原文那一节设了，故事段、长卷、注都漏了 */
.pu { font-family: var(--uif); font-weight: 600; }
/* K-10（10-18）：故事每段配原文——这一页的「宝」，给足留白：竖排金字、句末朱圈，白话、出处跟在下面 */
.para { min-height: 0; padding: 7vh 0 9vh; }
.para p { margin-bottom: 1.6em; }
.yw, .song { margin: 2.6em 0 0; padding: 2.4em 0 0; border-top: 1px solid rgba(240,208,138,.16); }
.ywt { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 1.1em .55em; font: 400 clamp(25px, 1.85vw, 32px)/1.2 var(--yuanf); letter-spacing: .12em; color: var(--gold); text-shadow: 0 0 14px rgba(255,200,110,.22); -webkit-text-stroke: .4px currentColor; }
.ywt .cl { writing-mode: vertical-rl; white-space: nowrap; }
.ywt .qd { display: inline-block; width: .34em; height: .34em; margin: .12em 0 0; border: 2px solid var(--zhu); border-radius: 50%; box-sizing: border-box; vertical-align: middle; opacity: 0; transform: scale(0); transition: opacity .3s, transform .35s var(--ease) .9s; }   /* 句读：句末一个朱圈，跟着那一句浮完再圈上 */
.in .ywt .qd, .rm .ywt .qd { opacity: 1; transform: none; }
.ywt rt { font: 600 .34em var(--uif); color: rgba(240,208,138,.85); -webkit-text-stroke: 0; }
.songt { gap: 1.1em .9em; }
.songt .sti { font: 400 .62em var(--titlef); letter-spacing: .45em; color: var(--zhu); -webkit-text-stroke: 0; text-shadow: none; margin-left: .6em; }
.yw figcaption, .song figcaption { margin-top: 1.4em; max-width: 34em; }
.ywg { display: block; font: 400 clamp(17px, 1.2vw, 20px)/1.9 var(--baif); color: rgba(246,239,224,.85); }
.yw cite, .song cite, .snotes cite { display: block; margin-top: .5em; font: 600 13px var(--uif); font-style: normal; letter-spacing: .18em; color: rgba(240,208,138,.7); }
.song small { display: block; margin-top: .6em; font: 600 12px var(--uif); color: rgba(246,239,224,.5); letter-spacing: .1em; }
.snotes { margin: 2.4em 0 0; padding: 0; list-style: none; counter-reset: n; max-width: 34em; }
.snotes li { position: relative; padding: .5em 0 .5em 2.2em; font: 400 clamp(15px, 1.05vw, 17px)/1.85 var(--baif); color: rgba(246,239,224,.75); counter-increment: n; }
.snotes li::before { content: '注' counter(n, cjk-ideographic); position: absolute; left: 0; top: .55em; font: 400 13px var(--titlef); color: var(--zhu); letter-spacing: .05em; }
.snotes cite { margin-top: .2em; font-size: 12px; }
@media (max-width: 760px) { .ywt { font-size: 22px; gap: 1em .45em; } .para { padding: 5vh 0 7vh; } }
