/* 流观山海 · 首页v3 */
@view-transition { navigation: auto; }   /* 同站跳转（各集 ⇄ 首页）浏览器自己交叉淡化 */
:root { --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; --seal: #b8322a; --seal-text: #f6e9cf; --gold: #ffd36a; --gold-soft: #f0d08a; --cream: #f6efe0; --ink: #0d0c0b; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: var(--cream); font-family: 'Noto Serif SC', serif; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
#app { position: fixed; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
#map, #fxc { position: absolute; left: 0; top: 0; }
#map { opacity: 0; transition: opacity .6s cubic-bezier(.4,0,.6,1); }
#map.on { opacity: 1; }
.ret body { background: url(media/home_peek.webp) center / cover no-repeat, url(data:image/jpeg;base64,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) center / cover no-repeat #b0ae8f; }   /* 垫图没解码好的那一下先用内嵌的小图顶着，不黑 */
.ret #map { opacity: 1; transition: none; }
#fxc, #fx { pointer-events: none; }
#fx { position: absolute; inset: 0; }
.ink { position: absolute; display: block; pointer-events: none; }
#cloud { left: 0; top: 0; }
#ink2 { transition: filter .9s cubic-bezier(.4,0,.6,1), opacity .8s; }
#ink2.lit { filter: brightness(1.22) drop-shadow(0 0 10px rgba(255,211,106,.5)); }
#ink2 { will-change: transform; }
/* 开场时：站名先到左上，按钮等拨云完再出 */
#top nav, .bt small { transition: opacity 1s cubic-bezier(.4,0,.6,1); }
#top.pre nav, #top.pre .bt small { opacity: 0; }
#top.pre { background: none; }
.seal2.stampIn { animation: stamp .16s cubic-bezier(.5,0,.75,0) both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.32) } 35% { opacity: 1 } 100% { opacity: .95; transform: scale(1) } }
.shake { animation: shake .1s steps(3) 1; }
@keyframes shake { 0% { translate: 2px -1px } 50% { translate: -1px 2px } 100% { translate: 0 0 } }
.fadeout { opacity: 0 !important; transition: opacity .9s cubic-bezier(.4,0,.6,1) !important; }

/* 界面 */
.ui { opacity: 0; transition: opacity 1s cubic-bezier(.4,0,.6,1); }
.ui.on { opacity: 1; }
#top { position: absolute; left: 0; right: 0; top: 0; height: 120px; padding: 0 clamp(16px, 3.4vw, 64px); display: flex; align-items: center; justify-content: space-between; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,15,9,.5), rgba(20,15,9,0)); }
#top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--cream); text-decoration: none; text-shadow: 0 2px 12px rgba(0,0,0,.75); }
.seal2 { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--seal); border-radius: 6px; padding: .18em .16em; font: 400 22px/1 'Ma Shan Zheng', serif; color: var(--seal-text); box-shadow: inset 0 0 0 1.5px rgba(246,233,207,.8); }
.seal2 i { font-style: normal; writing-mode: vertical-rl; }
.bt b { display: block; font: 400 clamp(26px, 2.8vw, 44px)/1 'Ma Shan Zheng', serif; letter-spacing: .14em; font-weight: 400; }
.bt small { display: block; margin-top: 6px; font: 600 12px 'Noto Serif SC', serif; letter-spacing: .3em; opacity: .8; }
nav { display: flex; gap: 10px; align-items: center; }
nav button { white-space: nowrap; font: 400 17px 'Ma Shan Zheng', 'Noto Serif SC', serif; letter-spacing: .2em; color: var(--cream); background: rgba(20,15,9,.35); border: 1px solid rgba(240,208,138,.35); border-radius: 18px; padding: 7px 14px; cursor: pointer; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
nav button .note { width: .78em; height: .92em; vertical-align: -.08em; }
nav button span { font-family: 'Noto Serif SC', serif; font-weight: 600;  font-size: 11px; letter-spacing: .1em; opacity: .75; margin-left: 6px; }
nav button[aria-pressed="true"] { border-color: var(--gold-soft); color: var(--gold); }
#btnRm { font-size: 12px; opacity: .8; }
#hint { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); font: 400 clamp(18px, 1.9vw, 26px) 'Ma Shan Zheng', serif; letter-spacing: .3em; color: #fff6e6; text-shadow: 0 2px 14px rgba(8,6,4,.9); pointer-events: none; white-space: nowrap; }
#hint small { display: block; margin-top: 8px; font: 600 clamp(13px, 1.3vw, 16px) 'Noto Serif SC', serif; letter-spacing: .2em; opacity: .85; }
#bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px clamp(16px, 3.4vw, 64px) calc(20px + env(safe-area-inset-bottom)); font: 600 15px 'Noto Serif SC', serif; letter-spacing: .3em; color: rgba(246,239,224,.9); text-shadow: 0 2px 10px rgba(0,0,0,.8); pointer-events: none;
  background: linear-gradient(0deg, rgba(20,15,9,.55), rgba(20,15,9,0)); }
#bottom em { font-style: normal; color: var(--gold-soft); }
#bottom .tip { margin-left: 3em; opacity: .7; }
#btnAll { position: absolute; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); display: none; font: 400 16px 'Ma Shan Zheng', 'Noto Serif SC', serif; letter-spacing: .2em; color: var(--cream); background: rgba(20,15,9,.45); border: 1px solid rgba(240,208,138,.35); border-radius: 16px; padding: 6px 12px; }
body.port #btnAll { display: block; }
body.port #bottom .tip { display: none; }
body.port #btnRm { display: none; }
body.port nav button span { display: none; }
body.port nav { gap: 6px; } body.port nav button { font-size: 15px; letter-spacing: .08em; padding: 7px 10px; }   /* 竖屏窄：「声音：关」不换行 */
#skip { position: fixed; right: 16px; bottom: 14px; font: 400 16px 'Ma Shan Zheng', 'Noto Serif SC', serif; letter-spacing: .2em; color: rgba(233,223,203,.8); background: rgba(0,0,0,.3); border: 1px solid rgba(233,223,203,.3); border-radius: 14px; padding: 4px 12px; cursor: pointer; display: none; z-index: 5; }
#skip.on { display: block; }

/* 帛书残片信息卡 */
#card { position: absolute; width: clamp(380px, calc(287px + 16vh), 540px); height: calc(clamp(380px, calc(287px + 16vh), 540px) * 1.3316); z-index: 8; opacity: 0; transform-origin: 50% 50%; color: #1d140b; }   /* H-50（10-17 用户定）：宽屏按屏幕高度放大，1080 高 460×613、768 高 410×546、900 高 431；不比原来的 380×506 小，超大屏到 540 为止。手机竖屏另有一套（body.port）。动画交给 home.js 的弹簧（FLIP），不再用 CSS 过渡；阴影放在里面的绢图上，动的时候不重算滤镜 */
#card .silk { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: drop-shadow(0 18px 36px rgba(0,0,0,.55)); }
#card.swap .body, #card.swap .btns, #card.swap .stamp { animation: cardSwap .22s cubic-bezier(.2,.7,.2,1); }
@keyframes cardSwap { from { opacity: 0; } to { opacity: 1; } }
/* 帛书卡的版心（H-42）：量的是两张绢图里看得见的干净纸面（左、上约 13%，右、下约 11% 以内是撕边、烧边、毛边），再往里留一圈空；全用百分比，手机上跟着卡的大小缩 */
#card .body { position: absolute; left: 16.5%; right: 14.5%; top: 16%; bottom: 28%; display: flex; flex-direction: row-reverse; gap: 20px; align-items: flex-start; overflow: hidden; }
#card .vt { writing-mode: vertical-rl; height: 100%; flex: none; box-sizing: border-box; }
#card .head { display: flex; flex-direction: row-reverse; gap: 6px; }
#card .nm { font: 400 42px/1.14 var(--yuanf); letter-spacing: .06em; color: #1d140b; height: auto; }
#card .nm.hollow { color: rgba(29,20,11,.16); -webkit-text-stroke: 1.7px rgba(29,20,11,.86); paint-order: stroke fill; }   /* 没看过的名字：双钩加粗、里面垫一层淡墨（和舆图上没看过的签一致） */
#card .src { font: 600 12px 'Noto Serif SC', serif; letter-spacing: .2em; color: rgba(29,20,11,.7); padding-top: 6px; height: auto; }
#card .yuan { font: 400 20px/1.5 var(--yuanf); letter-spacing: .1em; }
#card .yuan.dim { color: rgba(29,20,11,.42); }   /* 没看过：字清楚，只是墨淡（不模糊），标点同一个浓淡 */
#card .bai { font: 400 13px/1.85 var(--baif); letter-spacing: .06em; color: rgba(55,40,25,.75); padding-top: 34px; }
#card .bai .pu { font-family: 'Noto Serif SC', serif; font-weight: 400; }   /* 站酷小薇没有竖排标点（逗号会歪到一边），标点用思源宋体 */
#card .zhu { font: 400 16px/1.4 var(--yuanf); color: #a32b1f; letter-spacing: .06em; padding-top: 50px; margin-left: auto; }
#card .zhu small { font-size: .7em; opacity: .8; }
#card .stamp { position: absolute; right: 15%; top: 57%; width: 30px; height: 30px; background: #a8302a; color: #f3e3c6; display: grid; place-items: center; writing-mode: vertical-rl; font: 400 12px/1 var(--yuanf); mix-blend-mode: multiply; box-shadow: inset 0 0 0 1.5px #a8302a, inset 0 0 0 2.6px rgba(243,227,198,.75); }
#card .stamp.big { width: 46px; height: 46px; font-size: 18px; right: auto; left: 16.5%; top: auto; bottom: 25.5%; transform: rotate(-4deg); }
#card .btns { position: absolute; left: 17%; right: 16%; bottom: 15.5%; display: flex; gap: 10px; }
#card .btns a, #card .btns span { flex: 1; text-align: center; font: 400 18px/1.2 'Ma Shan Zheng', 'Noto Serif SC', serif; letter-spacing: .3em; padding: 8px 0; text-decoration: none; cursor: pointer; }
#card .btns .go { background: #1d140b; color: #f3e3c6; }
#card .btns .rd { border: 1.2px solid #1d140b; color: #1d140b; }
#card .btns .off { opacity: .4; border: 1.2px dashed rgba(29,20,11,.5); color: rgba(29,20,11,.7); cursor: default; }
#card .x { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12%; white-space: nowrap; font: 400 15px 'Ma Shan Zheng', serif; color: rgba(29,20,11,.55); cursor: pointer; letter-spacing: .2em; background: none; border: 0; padding: 0; margin: 0; -webkit-appearance: none; appearance: none; }
#card .bai.none { opacity: .55; padding-top: 120px; }
/* 手机帛书卡（H-49，10-17 用户定）：文言照旧竖排在上；白话、朱批改横排、字大一号，排在下面；卡内上下滑（底边淡出表示下面还有）；「收起」做成 44×44 以上的按钮，和「入卷」「读原文」一排 */
body.cardm #card { width: min(350px, 90vw); height: min(calc(min(350px, 90vw) * 1.5), calc(100vh - 220px), calc(100dvh - 220px)); }
body.cardm:not(.port) #card { height: calc(100vh - 16px); height: calc(100dvh - 16px); width: min(350px, calc((100vh - 16px) * .94)); }   /* 横着的手机、很矮的窗口（高不到 560）：也用手机那套卡（白话横排、卡内滑），高度贴着屏幕 */
body.cardm #card .body { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: ". yuan head" "bai bai bai" "zhu zhu zhu" "seal seal seal"; column-gap: 14px; row-gap: 14px; align-content: start; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
body.cardm #card .body::-webkit-scrollbar { display: none; }
body.cardm #card .body.more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); }
body.cardm #card .body.up { -webkit-mask-image: linear-gradient(180deg, transparent, #000 40px); mask-image: linear-gradient(180deg, transparent, #000 40px); }   /* H-51：滑下去以后卡顶也淡出，滑到顶不淡 */
body.cardm #card .body.up.more { -webkit-mask-image: linear-gradient(180deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
body.cardm #card .head { grid-area: head; }
body.cardm #card .yuan { grid-area: yuan; height: 14.4em; font-size: 17px; }   /* 一列最多 13 个字（鹿蜀那句），不断句 */
body.cardm #card .nm { font-size: 36px; }
body.cardm #card .src { font-size: 13px; }
body.cardm #card .bai, body.cardm #card .zhu { writing-mode: horizontal-tb; height: auto; padding: 0; margin: 0; }
body.cardm #card .bai { grid-area: bai; font-size: 15px; line-height: 1.75; letter-spacing: .04em; color: rgba(55,40,25,.85); }
body.cardm #card .bai.none { text-align: center; padding: 6px 0 0; font-size: 16px; }
body.cardm #card .zhu { grid-area: zhu; font-size: 15px; line-height: 1.6; }
body.cardm #card .zhu small { font-size: .82em; }
body.cardm #card .btns { right: calc(16% + 62px); bottom: 14.5%; }
body.cardm #card .btns a, body.cardm #card .btns span { padding: 0; height: 44px; line-height: 44px; font-size: 17px; letter-spacing: .2em; }
body.cardm #card .x { left: auto; right: 16%; transform: none; bottom: 14.5%; width: 54px; height: 44px; display: grid; place-items: center; font-size: 17px; letter-spacing: .1em; color: rgba(29,20,11,.75); border: 1.2px solid rgba(29,20,11,.35); box-sizing: border-box; }
body.cardm #card .body { bottom: calc(14.5% + 58px); }
body.cardm #card.wait .body { bottom: calc(14.5% + 58px); }
#card .stamp.inb { display: none; }   /* 手机上印章挪进正文里（跟着上下滑，不压字）：小印盖在正文末尾，「待绘」大印放在左上空处 */
body.cardm #card > .stamp { display: none; }
body.cardm #card .stamp.inb { display: grid; position: static; }
body.cardm #card .stamp.inb:not(.big) { grid-area: seal; justify-self: end; }
body.cardm #card .stamp.big.inb { grid-area: 1 / 1; justify-self: start; align-self: start; margin: 4px 0 0 4px; }

/* 卷目 */
#toc { position: absolute; inset: 0; z-index: 9; background: rgba(13,12,11,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow: auto; opacity: 0; transform: translateY(14px); transition: opacity .42s cubic-bezier(.2,.8,.2,1), transform .42s cubic-bezier(.2,.8,.2,1); }
#toc.on { opacity: 1; transform: none; }
#toc:not(.on) { transition-duration: .24s; }   /* 收起比打开快 */
#toc .in { max-width: 920px; margin: 0 auto; padding: 96px 24px 60px; }
#toc h2 { font: 400 40px var(--titlef); letter-spacing: .16em; margin: 0 0 6px; font-weight: 400; }
#toc .sub { font: 600 13px 'Noto Serif SC', serif; letter-spacing: .2em; opacity: .6; margin-bottom: 30px; }
#toc h3 { font: 400 26px var(--titlef); color: var(--gold-soft); margin: 26px 0 10px; font-weight: 400; letter-spacing: .12em; }
#toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
#toc li { background: rgba(246,239,224,.05); border: 1px solid rgba(240,208,138,.14); padding: 12px 14px; display: flex; align-items: baseline; gap: 10px; }
#toc li b { font: 400 22px var(--yuanf); font-weight: 400; }
#toc li small { font: 600 12px 'Noto Serif SC', serif; opacity: .6; letter-spacing: .1em; flex: 1; }
#toc li a { font: 400 15px 'Ma Shan Zheng', 'Noto Serif SC', serif; color: var(--gold-soft); text-decoration: none; letter-spacing: .15em; margin-left: 6px; }
#toc li.wait b { opacity: .45; }
#toc .credit { margin: 40px 0 0; font: 600 12px/1.8 'Noto Serif SC', serif; letter-spacing: .08em; opacity: .55; }   /* 配乐署名（H-40） */
#toc .credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240,208,138,.4); }
#toc .close { position: fixed; right: 24px; top: 28px; font: 400 18px 'Ma Shan Zheng', 'Noto Serif SC', serif; letter-spacing: .3em; color: var(--cream); background: none; border: 1px solid rgba(240,208,138,.4); border-radius: 18px; padding: 6px 14px; cursor: pointer; }

/* 手机：两指一捏看整张，下面接卷目 */
#ov { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: linear-gradient(180deg, rgba(26,20,13,0), #1a140d 40px); padding: 46px 18px calc(24px + env(safe-area-inset-bottom)); }
#ov h4 { font: 400 22px var(--titlef); color: var(--gold-soft); margin: 0 0 12px; font-weight: 400; letter-spacing: .1em; }
#ov .row { display: flex; align-items: baseline; gap: 12px; background: rgba(246,239,224,.06); padding: 10px 14px; margin-bottom: 8px; }
#ov .row b { font: 400 20px var(--yuanf); font-weight: 400; }
#ov .row small { font: 600 12px 'Noto Serif SC', serif; opacity: .6; }
#ov .row.wait b { opacity: .45; }
#ov .back { font: 600 12px 'Noto Serif SC', serif; letter-spacing: .2em; color: var(--gold-soft); margin-top: 6px; opacity: .8; }

#veil { position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 50%, rgba(250,246,236,.98), rgba(236,228,210,.98)); transition: opacity .9s cubic-bezier(.4,0,.6,1); }
#veil.on { opacity: 1; }
.quote { position: absolute; writing-mode: vertical-rl; font: 400 26px var(--titlef); letter-spacing: .12em; color: var(--gold); text-shadow: 0 0 10px rgba(0,0,0,.8), 0 0 18px rgba(255,200,120,.5); pointer-events: none; transition: opacity .5s, transform 1.6s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { html:not([data-reduced-motion="false"]) .ui, html:not([data-reduced-motion="false"]) #toc { transition: opacity .3s !important; transform: none !important; } }
/* 卷名牌「南山经」：照 26_全景 的样子（思源宋体 600、泥金字、深色双线框），贴在屏幕右边、四周留边距，推近和拖动都不会被切 */
#juanTag { position: absolute; right: clamp(16px, 3.2vw, 62px); top: 25%; writing-mode: vertical-rl; font: 600 clamp(22px, 1.95vw, 38px)/1.16 'Noto Serif SC', serif; letter-spacing: .1em; color: #f3d38e;
  padding: .42em .3em; background: rgba(42,33,24,.94); border: 1.4px solid #c9a24a; box-shadow: inset 0 0 0 3px rgba(42,33,24,.94), inset 0 0 0 3.8px #c9a24a, 0 4px 14px rgba(0,0,0,.35); pointer-events: none; }
#juanTag.on.off { opacity: 0; }
#juanTag.img { padding: 0; background: none; border: 0; box-shadow: none; }
#juanTag.img canvas { display: block; width: clamp(48px, 4vw, 80px); height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
body.port #juanTag.img canvas { width: 44px; }
body.port #juanTag { top: 21%; font-size: 20px; }
/* 深色底上的文言（卷目、看整张、回来时那句原文）：同色细描边垫在字下面，稍微加粗一点，不糊；浅纸底（帛书卡）保持原粗细 */
#toc h2, #toc h3, #toc li b, #ov h4, #ov .row b, .quote { -webkit-text-stroke: .5px currentColor; paint-order: stroke fill; }
body.port.cardOpen #juanTag { opacity: 0; }   /* 手机开着卡时卷名牌让开，不压在卡角上 */
#card.wait .body { bottom: 36%; }   /* 待绘卡：正文停在「待绘」大印上面，不被印盖住 */
#toc li[data-id] { cursor: pointer; }
#toc li[data-id]:hover, #toc li[data-id]:focus-visible { border-color: rgba(240,208,138,.6); background: rgba(240,208,138,.08); outline: none; }   /* 卷目里每只神兽都能点开卡（待绘的也能） */
/* J-59：按钮和五个字以内的短标签用马善政（入卷、读原文、收起、卷目、看整张、跳过、减少动效）；整句、说明、细读的字不换 */

/* 站内开关与系统偏好共用减少动态行为；保留布局变换。 */
html[data-reduced-motion="true"] *, html[data-reduced-motion="true"] *::before, html[data-reduced-motion="true"] *::after { animation: none !important; transition-duration: .01ms !important; }
html[data-reduced-motion="true"] .ui, html[data-reduced-motion="true"] #toc { transform: none !important; }
/* 帛书卡里的字不要 CSS 过渡：上面那条「减少动效」规则给所有元素开了 .01ms 过渡（transition-property 默认 all），fitCard 改字号后立刻量到的还是旧字号，会一路缩到 0.43 倍（10-17 体检发现）；卡片本身的动画是 JS 弹簧，不靠 CSS 过渡 */
#card .body, #card .body * { transition: none !important; }
/* 卷目：看过的那一行盖「已归」小印；从一集收卷回来，那一行亮一下、印从大到小压下去（10-17 旧集统一，西王母 / 帝江 / 刑天） */
#toc li { position: relative; }
#toc li .gotseal { display: inline-grid; place-items: center; writing-mode: vertical-rl; background: var(--seal); color: var(--seal-text); font: 400 11px/1 'Ma Shan Zheng', serif; padding: .3em .22em; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--seal), inset 0 0 0 2px rgba(246,233,207,.75); margin-left: 2px; align-self: center; transform: rotate(-6deg); opacity: .92; }
#toc li.just { animation: tocGlow 2.4s cubic-bezier(.4,0,.6,1) .5s 1 both; }
@keyframes tocGlow { 0% { background: rgba(246,239,224,.05); border-color: rgba(240,208,138,.14); } 25% { background: rgba(240,208,138,.22); border-color: rgba(240,208,138,.9); box-shadow: 0 0 24px rgba(255,211,106,.35); } 100% { background: rgba(240,208,138,.08); border-color: rgba(240,208,138,.5); box-shadow: none; } }
#toc li.just .gotseal { animation: tocStamp .16s cubic-bezier(.5,0,.75,0) 1.3s both; }
@keyframes tocStamp { 0% { opacity: 0; transform: rotate(-6deg) scale(1.6); } 35% { opacity: 1; } 100% { opacity: .92; transform: rotate(-6deg) scale(1); } }
#toc li.just.again .gotseal { animation: none; }
#toc li[data-ep] { cursor: default; }
