/* v11 课件引擎样式。颜色、字号、动效词汇只在这里定。页面自己的样式写在各页 css 里，一律用 #pXX 开头。 */
:root {
  --bg: #050505; --ink: #0d0c0a; --panel: #15130f; --panel-2: #1d1a15; --line: #2a2722; --line-2: #3a362f;
  --fg: #f3efe6; --fg-2: #bdb7aa; --mute: #7d786e;
  --gold: #f5c400; --gold-2: #ffd84a; --gold-dim: rgba(245, 196, 0, .16); --ok: #7cd992; --red: #ff6a3d;
  --k-disp: 'Anton', 'Inter Tight', 'PingFang SC', sans-serif;
  --k-latin: 'Inter Tight', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --k-cjk: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  --k-mono: 'SF Mono', Menlo, Consolas, monospace;
  --ez: cubic-bezier(.2, .8, .2, 1);
  --t-rise: 280ms; --t-swap: 320ms; --t-fly: 520ms; --t-draw: 600ms; --t-focus: 360ms; --t-stamp: 220ms;
  --stag: 90ms;
  --toc-w: 250px;
  /* BRP 庞巴迪那套：纸白、品牌黄、墨黑，加纸面颗粒 */
  --paper: #F4F2EC; --yel: #F5C400; --blk: #0B0B0D;
  --ez-out: cubic-bezier(.16, 1, .3, 1); --ez-io: cubic-bezier(.76, 0, .24, 1);
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.7 0 0 0 -.68'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.7 0 0 0 -.72'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@font-face { font-family: 'Anton'; src: url('../fonts/anton.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('../fonts/intertight.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font-family: var(--k-cjk); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- 外壳：目录 + 顶栏 + 画布 ---------- */
.shell { position: fixed; inset: 0; display: flex; }
.toc { width: var(--toc-w); flex: none; background: #0a0908; border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: margin-left 260ms var(--ez); z-index: 5; }
.shell.toc-off .toc { margin-left: calc(var(--toc-w) * -1); }
.toc-h { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.toc-home { display: inline-block; font-size: 20px; line-height: 1; color: var(--fg-2); text-decoration: none; }
.toc-home:hover { color: var(--gold); }
.toc-title { font-size: 18px; font-weight: 600; margin-top: 8px; }
.toc-list { flex: 1; overflow-y: auto; padding: 8px 0 24px; scrollbar-width: thin; }
.toc-g { margin-top: 10px; }
.toc-gh { display: block; padding: 6px 18px; font-size: 13px; color: var(--mute); letter-spacing: .04em; }
.toc-i { display: flex; gap: 10px; align-items: baseline; padding: 5px 18px 5px 22px; font-size: 15px; color: var(--fg-2); border-left: 2px solid transparent; }
.toc-i b { font-family: var(--k-latin); font-weight: 500; font-size: 12px; color: var(--mute); width: 28px; flex: none; }
.toc-i:hover { color: var(--fg); background: rgba(255, 255, 255, .03); }
.toc-i.cur { color: var(--gold); border-left-color: var(--gold); background: var(--gold-dim); }
.toc-i.cur b { color: var(--gold); }
.main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar { height: 46px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #080706; z-index: 4; }
.bar .b { flex: none; white-space: nowrap; height: 30px; padding: 0 12px; border-radius: 6px; font-size: 13px; color: var(--fg-2); border: 1px solid var(--line-2); }
.bar .b:hover { color: var(--fg); border-color: var(--fg-2); }
.tabs { display: flex; gap: 4px; margin-left: 8px; min-width: 0; overflow: hidden; }
.tab { flex: none; white-space: nowrap; height: 30px; padding: 0 14px; border-radius: 6px; font-size: 14px; color: var(--fg-2); display: inline-flex; align-items: center; }
.tab:hover { color: var(--fg); }
.tab.cur { color: #111; background: var(--gold); font-weight: 600; }
.bar .sp { flex: 1; }
/* 课堂小互动入口（原幸运点名，全屏左边）：开着时黄底，和当前模块标签一个样子 */
.bar .b-lucky.on { color: #111; background: var(--gold); border-color: var(--gold); font-weight: 600; }
/* 课堂小互动面板：盖住顶栏下面的舞台，顶栏留着（按钮在那儿收起） */
.lucky { position: absolute; left: 0; right: 0; top: 46px; bottom: 0; z-index: 6; background: var(--blk); opacity: 0; visibility: hidden; transition: opacity 200ms, visibility 0s 200ms; }
.lucky.on { opacity: 1; visibility: visible; transition: opacity 200ms; }
.lucky iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.lucky-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--mute); }
.lucky.ready .lucky-wait { display: none; }
.count { flex: none; white-space: nowrap; font-family: var(--k-latin); font-size: 13px; color: var(--mute); min-width: 150px; text-align: right; }
/* 窗口窄的时候：模块标签只留「模块一 / 二 / 三」，不折行 */
@media (max-width: 900px) { .tab .tn { display: none; } .count { min-width: 0; } }
.view { position: relative; flex: 1; overflow: hidden; background: var(--blk); touch-action: pan-y; }
/* 窗口不是 16:9 时画布外面露出来的那圈：和黑底页一样的墨黑 + 同样的颗粒（颗粒跟着画布一起缩放），看不出画布的边 */
.view::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--tex-grain-light); background-size: calc(260px * var(--sc, 1)); opacity: .09; }
.canvas { position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px; transform: translate(-50%, -50%) scale(var(--sc, 1)); transform-origin: 50% 50%; background: var(--blk); overflow: hidden; contain: layout paint; }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; z-index: 3; pointer-events: none; }
.prog i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--pr, 0)); transition: transform 300ms var(--ez); opacity: .8; }
.shell.bare .toc, .shell.bare .bar { display: none; }
/* 嵌入模式（首页大包装）：舞台跟着页面滚，占满一屏 */
.shell.embed { position: relative; inset: auto; height: 100vh; height: 100dvh; }

/* ---------- 页 ---------- */
.pg { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; contain: layout paint; transition: opacity var(--pgT, 200ms) linear, visibility 0s linear var(--pgT, 200ms); }
.pg.cur { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--pgT, 200ms) linear, visibility 0s; z-index: 2; }
.pg.instant, .pg.instant *, .pg.instant *::before, .pg.instant *::after { transition: none !important; }
.pg.back *, .pg.back *::before, .pg.back *::after { transition-delay: 0s !important; }
/* 退场不跟着进场的错开延迟拖着走 */
.pg [data-out].off { transition-delay: 0s; }
.pg-b { position: absolute; inset: 0; }
/* 整页内容往上提（Deck.page 的 lift，v12）：只挪内容层，页头不动；换步时滑过去。贴底的整块面板在页里自己用 var(--lift) 补回来 */
/* fit（v21）：内容层按步缩一点，绕 (800, 520)；和 lift 一起滑过去 */
.pg.lifted > .pg-b { translate: 0 calc(-1 * var(--lift, 0px)); scale: var(--fit, 1); transform-origin: 800px 520px; transition: translate 560ms var(--ez-io), scale 560ms var(--ez-io), opacity var(--t-rise) var(--ez); }

/* ---------- 页面主题：dark（默认，黑底金字）/ paper（纸白黑字）/ yellow（品牌黄黑字）。Deck.page({ theme: 'paper' }) ---------- */
.pg.t-dark { background: var(--bg); }
.pg.t-paper { --panel: #FFFFFF; --panel-2: #EFEEE9; --line: #E3E2DC; --line-2: #C9C8C1; --fg: #0B0B0D; --fg-2: #33363C; --mute: #63676F; --gold-dim: rgba(245, 196, 0, .32); --acc: var(--blk); background: var(--paper); color: var(--fg); }
.pg.t-yellow { --panel: #EDBD00; --panel-2: #E3B500; --line: rgba(11, 11, 13, .18); --line-2: rgba(11, 11, 13, .42); --fg: #0B0B0D; --fg-2: rgba(11, 11, 13, .82); --mute: rgba(11, 11, 13, .62); --gold-dim: rgba(11, 11, 13, .1); --acc: var(--blk); background: var(--yel); color: var(--fg); }
/* v12 黑底（ink）：用户 12/4 傍晚要求整套换回黑底，卡片少用。页面写 theme: 'ink'。
   字是纸白，强调用黄；黄色、纸色块上的字仍用墨黑。--card 是「主卡」底色（纸色），一屏最多一张。 */
.pg.t-ink { --panel: #141416; --panel-2: #1C1B1F; --line: rgba(244, 242, 236, .14); --line-2: rgba(244, 242, 236, .32); --fg: #F4F2EC; --fg-2: #C9C6BC; --mute: #8E8B83; --gold-dim: rgba(245, 196, 0, .18); --acc: var(--yel); --card: var(--paper); --card-fg: var(--blk); --card-shadow: 8px 8px 0 var(--yel); --rule: #F4F2EC; background: var(--blk); color: var(--fg); }
/* 纸面颗粒盖在最上面（不挡点击） */
.pg::after, .tex::after { content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none; background-image: var(--tex-grain-light); background-size: 260px; opacity: .06; }
.pg.t-paper::after, .pg.t-yellow::after, .tex.t-ink::after { background-image: var(--tex-grain); opacity: .2; }
.pg.t-ink::after { background-image: var(--tex-grain-light); opacity: .09; }
.tex { position: relative; }
.pg.t-paper .todo, .pg.t-yellow .todo, .chap .todo { color: #A3241B; border-color: rgba(163, 36, 27, .55); }

/* ---------- 通用标题模版：左边大号页码（换页时滚动），中间标题 + 副标题，右边分步进度 ---------- */
.pg-h { position: absolute; left: 72px; right: 72px; top: 28px; height: 96px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; column-gap: 22px; z-index: 3; color: var(--fg); }
.pg-no { display: flex; height: 1em; font: 400 96px/1 var(--k-disp); color: var(--acc, var(--gold)); }
.hn-d { display: block; height: 1em; overflow: hidden; }
.hn-st { display: flex; flex-direction: column; translate: 0 calc(var(--v) * -1em); transition: translate 1000ms var(--ez-out) calc(var(--j) * 90ms); }
.hn-st b { display: block; height: 1em; line-height: 1; font-weight: 400; text-align: center; }
.hn-i .hn-st { transition: none !important; }
.pg-h[data-in]:not(.on) .hn-st { translate: 0 0; }
.hd-tt { min-width: 0; padding-bottom: 6px; }
.pg-t { margin: 0; font-size: 42px; line-height: 1.08; font-weight: 600; -webkit-text-stroke: .018em currentColor; letter-spacing: .02em; white-space: nowrap; }
.hd-sub { margin: 8px 0 0; font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg.cur .pg-h:not([data-in]) .hd-tt > *, .pg.cur .pg-h.on .hd-tt > * { animation: hdIn 720ms var(--ez-out) both; }
.pg.cur .pg-h .hd-sub { animation-delay: 90ms !important; }
@keyframes hdIn { from { opacity: 0; translate: 0 .5em; } }
.hd-prog { list-style: none; margin: 0; padding: 0 0 10px; display: flex; gap: 5px; }
.pg .hd-prog li { position: relative; min-width: 46px; padding: 10px 12px 0 0; font-size: 16px; line-height: 1.2; font-weight: 600; color: var(--mute); white-space: nowrap; transition: color 300ms; }
.hd-prog li::before, .hd-prog li::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: var(--line-2); }
.hd-prog li::after { background: var(--acc, var(--gold)); transform-origin: 0 50%; scale: 0 1; transition: scale 700ms var(--ez-out); }
.pg .hd-prog li.on, .pg .hd-prog li.done { color: var(--fg); }
.hd-prog li.on::after, .hd-prog li.done::after { scale: 1 1; }
.hd-prog li i { display: block; margin-bottom: 2px; font: 600 12px/1.2 var(--k-mono); font-style: normal; letter-spacing: .1em; }
.pg.back .hd-prog li::after { transition-duration: 260ms; }

/* 字号阶梯：正文不小于 28，表格不小于 26，标签不小于 20 */
.t-hero { font-size: 72px; line-height: 1.15; font-weight: 700; letter-spacing: .01em; }
.t-xl { font-size: 56px; line-height: 1.2; font-weight: 700; }
.t-l { font-size: 40px; line-height: 1.3; font-weight: 600; }
.t-m { font-size: 32px; line-height: 1.45; }
.t-b { font-size: 28px; line-height: 1.5; }
.t-s { font-size: 24px; line-height: 1.5; color: var(--fg-2); }
.t-lab { font-size: 20px; line-height: 1.4; color: var(--fg-2); }
.t-gold { color: var(--gold); }
.t-dim { color: var(--fg-2); }
.t-en { font-family: var(--k-latin); }
.t-mono { font-family: var(--k-mono); }
.t-num { font-family: var(--k-disp); letter-spacing: .02em; }

/* ---------- 动效词汇：data-in / data-out / data-at / data-swap 由引擎切换 class ---------- */
/* 动效只用独立的 translate / scale / rotate 属性和 opacity，元素自己的 transform 留给定位用，两者叠加不冲突。 */
/* 逐行出（默认）：从下 24px 上移淡入。同组错开：style="--i:2" */
.pg [data-in], .pg [data-out], .pg [data-at] { transition-property: opacity, translate, scale, rotate; transition-duration: var(--t-rise); transition-timing-function: var(--ez); transition-delay: calc(var(--i, 0) * var(--stag)); }
.pg [data-in]:not(.on), .pg [data-out]:not(.on) { opacity: 0; translate: 0 24px; pointer-events: none; }
.pg [data-out].off { translate: 0 -16px; }
.pg .fx-fade:not(.on) { translate: none !important; }
.pg .fx-left:not(.on) { translate: -48px 0 !important; }
.pg .fx-right:not(.on) { translate: 48px 0 !important; }
.pg .fx-down:not(.on) { translate: 0 -32px !important; }
.pg .fx-pop:not(.on) { translate: none !important; scale: .86; }
.pg .fx-zoom:not(.on) { translate: none !important; scale: 1.06; }
.pg .fx-pop, .pg .fx-zoom { transition-duration: 360ms; }
/* 盖章：1.4 倍转 6° 落下 */
.pg .fx-stamp { transition-duration: var(--t-stamp); transition-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
.pg .fx-stamp:not(.on) { translate: none !important; scale: 1.4; rotate: -6deg; }
/* 翻入：卡片绕 X 轴翻上来；父元素加 class="persp" 才有立体感 */
.persp { perspective: 1000px; }
.pg .fx-flip { transition-duration: 420ms; transform-origin: 50% 100%; }
.pg .fx-flip:not(.on) { translate: 0 20px !important; rotate: x -75deg; }
/* 描边生长：SVG 路径加 pathLength="1" 和 class="draw" */
.pg .draw { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset var(--t-draw) var(--ez), opacity 200ms; transition-delay: calc(var(--i, 0) * var(--stag)); }
.pg .draw[data-in]:not(.on), .pg .draw[data-out]:not(.on) { stroke-dashoffset: 1; opacity: 1; translate: none; }
.pg .draw[data-out].off { opacity: 0; }
/* 聚焦 / 压暗 / 变金 / 划掉：用 data-at="3:focus" 这种写法挂上 */
.pg .focus { scale: 1.04; position: relative; z-index: 2; }
.pg .focus, .pg .dim { transition-duration: var(--t-focus); }
.pg .glow-ring { position: relative; }
.pg .glow-ring::after { content: ''; position: absolute; inset: -10px; border-radius: inherit; border: 2px solid var(--gold); background: radial-gradient(closest-side, rgba(245, 196, 0, .14), transparent); opacity: 0; transition: opacity var(--t-focus) var(--ez); pointer-events: none; }
.pg .focus.glow-ring::after, .pg .lit.glow-ring::after { opacity: 1; }
.pg .dim { opacity: .25 !important; }
.pg .hide { opacity: 0 !important; pointer-events: none; }
.pg .gold { color: var(--gold) !important; }
.pg .strike { position: relative; }
.pg .strike::after { content: ''; position: absolute; left: -4%; right: -4%; top: 54%; height: .09em; min-height: 3px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform 200ms var(--ez); }
.pg .strike.struck::after { transform: scaleX(1); }
.pg .struck { color: var(--mute); }
/* 变字：<span class="swap" data-swap="2"><b>旧</b><b>新</b></span> */
.pg .swap { display: inline-grid; vertical-align: bottom; }
.pg .swap > b { grid-area: 1 / 1; font-weight: inherit; position: relative; transition: opacity var(--t-swap) var(--ez), transform var(--t-swap) var(--ez); }
.pg .swap > b:last-child { opacity: 0; transform: translateY(.55em); }
.pg .swap.sw > b:first-child { opacity: 0; transform: translateY(-.55em); }
.pg .swap.sw > b:last-child { opacity: 1; transform: none; }
.pg .swap > b:last-child::after { content: attr(data-t); position: absolute; left: 0; top: 0; color: var(--gold-2); opacity: 0; pointer-events: none; white-space: pre; }
.pg .swap.sw > b:last-child::after { animation: swapFlash 900ms var(--ez); }
.pg.instant .swap > b:last-child::after, .pg.back .swap > b:last-child::after { animation: none; }
@keyframes swapFlash { 0%, 30% { opacity: 1; } 100% { opacity: 0; } }
.pg .swap.wide > b { white-space: nowrap; }

/* ---------- 通用部件 ---------- */
.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px 32px; }
.card-2 { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 20px 24px; }
.prompt { background: var(--gold); color: #111; border-radius: 16px; padding: 26px 32px; font-size: 28px; line-height: 1.55; font-weight: 500; }
.prompt .pl { display: block; font-size: 20px; font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; opacity: .7; }
.goldbar { background: var(--gold); color: #111; border-radius: 10px; padding: 10px 18px; font-size: 26px; font-weight: 600; display: inline-block; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 22px; color: var(--fg-2); background: var(--panel); }
.tag.g { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 26px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 28px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #111; font-family: var(--k-latin); font-weight: 700; font-size: 22px; flex: none; }
.num.o { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.todo { display: inline-block; font-size: 20px; line-height: 1.6; padding: 0 .6em; margin-left: .3em; color: #ffb86b; border: 1px dashed rgba(255, 184, 107, .6); border-radius: 4px; font-weight: 500; vertical-align: middle; }
/* 课上不显示：「待给 / 待换 / 待核 / 待定 / 待确认」虚线小签，和还没给链接的「链接待给」胶囊（首页、课件都管）。
   素材补上了就删掉那个 .todo；api.qr 给了链接，胶囊不带 .na，自己就出来了。 */
.todo, .cpl.na { display: none !important; }
.ph { border: 2px dashed var(--line-2); border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 24px; text-align: center; padding: 20px; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .02) 14px 28px); }
.ok { color: var(--ok); } .bad { color: var(--red); }
.tick, .cross { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; font-size: 34px; font-weight: 700; }
.tick { background: var(--gold); color: #111; }
.cross { border: 3px solid var(--red); color: var(--red); }

/* 表格：一行一行出，字大 */
.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 28px; line-height: 1.45; }
.tbl th { text-align: left; font-size: 24px; font-weight: 600; color: var(--fg-2); padding: 14px 22px; border-bottom: 2px solid var(--line-2); }
.tbl td { padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td:first-child { color: var(--gold); font-weight: 600; white-space: nowrap; }
.tbl tr.hl td { background: var(--gold-dim); }

/* 样机：电脑窗口 / 手机 / 横放手机 / 浏览器 */
.mock-desk { width: 740px; height: 480px; border-radius: 14px; background: #1a1814; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; display: flex; flex-direction: column; }
.mock-desk::before { content: ''; height: 34px; flex: none; background: radial-gradient(circle at 20px 17px, #ff5f57 6px, transparent 7px), radial-gradient(circle at 42px 17px, #febc2e 6px, transparent 7px), radial-gradient(circle at 64px 17px, #28c840 6px, transparent 7px), #26231e; }
.mock-desk > .scr { flex: 1; position: relative; overflow: hidden; background: #000; }
.mock-phone { width: 290px; height: 590px; border-radius: 44px; background: #0b0b0b; border: 10px solid #24221e; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px #3a362f; overflow: hidden; position: relative; }
.mock-phone > .scr { position: absolute; inset: 0; overflow: hidden; border-radius: 34px; background: #000; }
.mock-phone.land { width: 590px; height: 290px; }
.mock-desk video, .mock-phone video, .mock-desk img, .mock-phone img, .mock-desk iframe, .mock-phone iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #1a1814; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.browser > .url { height: 40px; display: flex; align-items: center; padding: 0 16px; gap: 10px; background: #26231e; font-family: var(--k-latin); font-size: 16px; color: var(--fg-2); }
.browser > .url::before { content: ''; width: 46px; height: 12px; background: radial-gradient(circle at 6px 6px, #ff5f57 5px, transparent 6px), radial-gradient(circle at 23px 6px, #febc2e 5px, transparent 6px), radial-gradient(circle at 40px 6px, #28c840 5px, transparent 6px); }
.browser > .url span { flex: 1; height: 26px; border-radius: 6px; background: #14120f; display: flex; align-items: center; padding: 0 12px; }

/* 二维码块 */
.qr { background: #fff; border-radius: 14px; padding: 12px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.qr svg { display: block; }
.qr .qr-l { color: #111; font-size: 18px; font-weight: 600; text-align: center; max-width: 220px; }

/* 图鉴版式：黑底细金线、虚线网格、编号签 */
.atlas-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(245, 196, 0, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 196, 0, .05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.atlas-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; color: var(--fg); padding: 4px 12px 4px 4px; border: 1px solid rgba(243, 239, 230, .45); border-radius: 999px; background: rgba(13, 12, 10, .85); }
.atlas-tag i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #111; font-family: var(--k-latin); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }

/* 能点的东西：轻轻呼吸，提示可以点 */
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
[data-zoom] { cursor: zoom-in; }

/* ---------- 章节画面（每个模块第一页的 S0）：品牌黄整版，左边模块名，右边本模块的页目录。翻到 S1 时整块往上抽走 ---------- */
.pg .chap { position: absolute; inset: 0; z-index: 6; background: var(--yel); color: var(--blk); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 600px; column-gap: 96px; align-items: center; padding: 0 120px; transition-duration: 820ms; transition-timing-function: var(--ez-io); }
.pg .chap:not(.on) { opacity: 1; translate: 0 -100% !important; }
.pg:not(.t-paper):not(.t-yellow) .chap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--tex-grain); background-size: 260px; opacity: .2; }
/* 进场：左边逐行顶上来；右边目录的粗线先画出来，再一行一行从右边滑进来 */

/* ---------- 灯箱 ---------- */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(5, 5, 5, .92); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 200ms, visibility 0s 200ms; cursor: zoom-out; }
.lb.on { opacity: 1; visibility: visible; transition: opacity 200ms; }
/* 小图也放大到铺满屏幕（按比例，不裁） */
.lb img, .lb video { width: 92vw; height: 90vh; object-fit: contain; transform: scale(.96); transition: transform 260ms var(--ez); }
.lb.on img, .lb.on video { transform: none; }
.lb .lb-x { position: absolute; right: 24px; top: 18px; font-size: 15px; color: var(--fg-2); }

@media (prefers-reduced-motion: reduce) {
  .pg *, .pg { transition-duration: 1ms !important; transition-delay: 0s !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* 复制链接按钮（替代二维码，v11.3） */
.cpl-w { display: inline-flex; width: auto !important; height: auto !important; }
.cpl { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 6px 0 16px; border: 2px solid var(--blk); border-radius: 14px; background: #fff; color: var(--blk); box-shadow: 4px 4px 0 var(--blk); font: 600 22px/1 var(--k-cjk); cursor: pointer; transition: translate 160ms var(--ez-out), box-shadow 160ms var(--ez-out); white-space: nowrap; }
.cpl:hover { translate: -1px -1px; box-shadow: 5px 5px 0 var(--blk); }
.cpl:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--blk); }
.cpl-i { display: grid; place-items: center; color: var(--blk); }
.cpl-t { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.cpl-b { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 9px; background: var(--yel); color: var(--blk); font-size: 20px; font-weight: 600; }
.cpl.ok .cpl-b { background: var(--blk); color: var(--yel); }

/* 分步条可以点（v11.3） */
.pg .hd-prog li[data-gs] { cursor: pointer; }
.pg .hd-prog li[data-gs]:hover { color: var(--fg); }
.pg .hd-prog li[data-gs]:hover::before { background: var(--fg); }

/* 章节画面 v11.3：左边模块名和本模块页单，右边三张图卡（UI 卡片 + 真图），点哪张跳哪页 */
.pg .chap { display: grid; grid-template-columns: minmax(0, 1fr) 640px; column-gap: 72px; align-items: center; padding: 0 120px; }
.chap-k { display: flex; align-items: center; gap: 16px; }
.chap-k b { padding: 8px 14px 9px; border-radius: 8px; background: var(--blk); color: var(--yel); font-size: 22px; line-height: 1; font-weight: 600; letter-spacing: .14em; }
.chap-k i { font: 600 18px/1 var(--k-mono); font-style: normal; letter-spacing: .12em; }
.chap-t { margin: 28px 0 14px; font: 400 128px/.94 var(--k-disp); letter-spacing: .004em; white-space: nowrap; }
.chap-t.cjk { font-family: var(--k-cjk); font-size: 100px; line-height: 1.08; font-weight: 600; -webkit-text-stroke: .02em currentColor; letter-spacing: .02em; }
.chap-sub { margin: 0; font-size: 32px; line-height: 1.35; font-weight: 600; color: rgba(11, 11, 13, .78); }
.chap-ps { list-style: none; max-width: 600px; margin: 46px 0 0; padding: 0; border-top: 4px solid var(--blk); display: grid; grid-template-columns: 1fr; }
.chap.many .chap-ps { grid-template-columns: 1fr 1fr; column-gap: 36px; }
.chap-ps li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0 12px; border-bottom: 2px solid rgba(11, 11, 13, .2); cursor: pointer; }
.chap.many .chap-ps li { padding: 10px 0 9px; }
.cr-n { flex: none; width: 1.5em; font: 400 32px/1 var(--k-disp); font-style: normal; }
.chap.many .cr-n { font-size: 26px; }
.cr-t { font-size: 28px; line-height: 1.2; font-weight: 600; white-space: nowrap; box-shadow: inset 0 -0.42em 0 transparent; transition: box-shadow 200ms; }
.chap.many .cr-t { font-size: 24px; }
.chap-ps li.first .cr-t, .chap-ps li:hover .cr-t { box-shadow: inset 0 -0.42em 0 rgba(255, 255, 255, .7); }
.chap-art { position: relative; width: 640px; height: 660px; }
.chap .ca { position: absolute; display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--blk); border-radius: 16px; background: #fff; box-shadow: 8px 8px 0 var(--blk); cursor: pointer; transition: box-shadow 200ms var(--ez-out); }
.chap .ca:hover { box-shadow: 12px 12px 0 var(--blk); }
.chap .ca-0 { left: 0; top: 0; width: 640px; height: 400px; rotate: -1.2deg; }
.chap .ca-1 { left: 4px; top: 450px; width: 296px; height: 206px; rotate: 1.6deg; }
.chap .ca-2 { left: 340px; top: 450px; width: 296px; height: 206px; rotate: -1.8deg; }
.chap .ca-bar { flex: none; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-bottom: 2px solid var(--blk); background: var(--paper); }
.chap .ca-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--blk); }
.chap .ca-bar i:nth-child(3) { background: var(--yel); box-shadow: inset 0 0 0 2px var(--blk); }
.chap .ca-bar span { flex: 1; display: flex; align-items: center; height: 26px; margin-left: 10px; padding: 0 12px; border: 1.5px solid rgba(11, 11, 13, .25); border-radius: 13px; background: #fff; font: 500 15px/1 var(--k-cjk); color: #33363C; }
.chap .ca-im { position: relative; flex: 1; min-height: 0; }
.chap .ca-im img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.chap .ca.phone { padding: 12px; background: var(--blk); }
.chap .ca.phone .ca-im { overflow: hidden; border-radius: 10px; }
.chap .ca-l { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 9px; border-radius: 8px; background: var(--blk); color: #fff; font: 600 18px/1 var(--k-cjk); }
.chap .ca-l i { font: 400 20px/1 var(--k-disp); font-style: normal; color: var(--yel); }
.chap .ca.phone .ca-l { left: 22px; bottom: 22px; }
.pg.cur .chap.on .chap-k, .pg.cur .chap.on .chap-t, .pg.cur .chap.on .chap-sub { animation: chUp 760ms var(--ez-out) both; }
.pg.cur .chap.on .chap-t { animation-delay: 70ms; }
.pg.cur .chap.on .chap-sub { animation-delay: 140ms; }
.pg.cur .chap.on .chap-ps li { animation: chRow 600ms var(--ez-out) both; animation-delay: calc(240ms + var(--k) * 60ms); }
.pg.cur .chap.on .ca { animation: chDrop 900ms var(--ez-out) both; animation-delay: calc(180ms + var(--k) * 140ms); }
/* 往回翻到章节画面：不再等进场动画，直接到位 */
.pg.back .chap.on, .pg.back .chap.on * { animation: none !important; }
/* ink 页：复制链接胶囊、待给 / 待核小签换成黑底配色（不用红、不用白卡） */
.pg.t-ink .todo { color: var(--yel); border-color: rgba(245, 196, 0, .55); }
.pg.t-ink .chap .todo { color: var(--blk); border-color: rgba(11, 11, 13, .5); }
.pg.t-ink .cpl { background: var(--panel); color: var(--fg); border: 1.5px solid var(--line-2); box-shadow: none; }
.pg.t-ink .cpl:hover { translate: 0 -1px; border-color: rgba(244, 242, 236, .55); box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.pg.t-ink .cpl:active { translate: 0 1px; box-shadow: none; }
.pg.t-ink .cpl-i { color: var(--yel); }
.pg.t-ink .cpl.ok .cpl-b { background: var(--fg); color: var(--blk); }
.pg.t-ink .cpl.na { box-shadow: none; border-style: dashed; }
.pg.t-ink .cpl.na .cpl-b { background: transparent; color: var(--yel); border: 1px dashed rgba(245, 196, 0, .6); }
@keyframes chUp { from { opacity: 0; translate: 0 44px; } }
@keyframes chRow { from { opacity: 0; translate: 0 18px; } }
@keyframes chDrop { from { opacity: 0; translate: 0 80px; rotate: 6deg; } }

/* 链接待给的复制按钮（v11.3）：灰掉，右段写「链接待给」，点了不复制 */
.cpl.na { cursor: default; box-shadow: 2px 2px 0 var(--blk); }
.cpl.na .cpl-b { background: #FBEAE6; color: #B4442F; }
