/* Mira OS 官网 · 样式表（浅色为基调，仅实证章节使用深色） */
:root {
  --bg: #FFFFFF;
  --subtle: #F7F7F8;
  --muted: #EFEFF2;
  --ink: #09090B;
  --ink-2: #4A4A52;
  --ink-3: #6E6E77;
  --line: rgba(9, 9, 11, .10);
  --line-2: rgba(9, 9, 11, .18);
  --accent: #2563EB;
  --accent-soft: rgba(37, 99, 235, .10);
  --emerald: #059669;
  --amber: #F59E0B;
  --red: #EF4444;
  --led: var(--accent);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(9, 9, 11, .04), 0 12px 32px rgba(9, 9, 11, .06);
  --font: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body[data-led="amber"] { --led: var(--amber); }
body[data-led="red"] { --led: var(--red); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
/* 末行不留单字：卡片说明、解锁条件这类块级 span 也要继承，标题仍用 balance，写了 nowrap 的元素不受影响 */
body { text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
p, li, dd, td, th, label, figcaption { text-wrap: pretty; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* 屏幕切换 */
.screen { display: none; position: relative; min-height: 100vh; min-height: 100dvh; }
.screen.is-active { display: block; }

/* 品牌 */
.brand-row { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-row:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; flex: none; }
.brand-name { font-weight: 700; letter-spacing: .18em; font-size: 14px; }
.brand-sub { font-size: 13px; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line-2); }

/* 按钮与标签 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #1D4ED8; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .78);
  font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.chip-btn:hover { border-color: var(--ink); text-decoration: none; }
.chip-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.chip-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-ink:hover { background: var(--accent); border-color: var(--accent); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--ink-2); background: #fff;
}
.tag-amber { color: #92400E; background: #FFFBEB; border-color: rgba(245, 158, 11, .45); }
.tag-ink { color: #fff; background: var(--ink); border-color: var(--ink); }
.tag-blue { color: var(--accent); background: var(--accent-soft); border-color: rgba(37, 99, 235, .3); }
.tag-red { color: #991B1B; background: #FEF2F2; border-color: rgba(239, 68, 68, .4); }
.tag-green { color: #065F46; background: #ECFDF5; border-color: rgba(5, 150, 105, .35); }

/* 状态环（LED） */
.status-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .78); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.js-led {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none;
  border: 2px solid var(--led); box-shadow: 0 0 8px var(--led);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.noscript { max-width: 720px; margin: 40px auto; padding: 0 20px; display: grid; gap: 12px; }

/* 开机演示（首屏）：厂商卡首帧即完整显示，脚本就绪前停在第一帧，由开机步骤加 is-run 开始播放（位移落定，结尾再淡出） */
.boot { background: radial-gradient(900px 520px at 50% 45%, #FFFFFF 0%, #F3F4F7 70%, #ECEDF1 100%); overflow: hidden; }
.boot.is-active { display: grid; place-items: center; height: 100vh; height: 100dvh; }
.boot-stage { grid-area: 1 / 1; display: none; text-align: center; padding: 24px; }
.boot-stage.is-on { display: grid; justify-items: center; gap: 18px; }
.vendor-mark { width: 44px; height: 44px; }
.vendor-name { font-size: 15px; letter-spacing: .32em; color: var(--ink-2); padding-left: .32em; }
.boot-vendor.is-on { animation: vendorIn 2.2s var(--ease) both; animation-play-state: paused; }
.boot-vendor.is-on.is-run { animation-play-state: running; }
@keyframes vendorIn { 0% { transform: translateY(6px); } 22%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.boot-title { position: relative; }
.title-logo { display: flex; align-items: baseline; gap: .28em; font-size: clamp(44px, 9vw, 104px); line-height: 1; letter-spacing: .3em; padding-left: .3em; }
.title-logo span { font-weight: 200; color: var(--ink); }
.title-logo b { font-weight: 700; color: var(--accent); letter-spacing: .14em; }
.title-sub { font-size: 13px; letter-spacing: .28em; color: var(--ink-3); padding-left: .28em; }
.boot-title.is-on .title-logo { animation: titleIn 1.6s var(--ease) both; }
.boot-title.is-on .title-sub { animation: titleIn 1.6s .5s var(--ease) both; }
@keyframes titleIn { from { opacity: 0; letter-spacing: .6em; filter: blur(6px); } to { opacity: 1; filter: none; } }
.shards { position: absolute; inset: -40% -30%; pointer-events: none; }
.shards i {
  position: absolute; width: 160px; height: 14px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, .55), rgba(147, 197, 253, 0));
  transform: rotate(var(--r)) skewX(-24deg); opacity: 0;
}
.boot-title.is-on .shards i { animation: shard 2.6s var(--d) var(--ease) both; }
.shards i:nth-child(1) { left: 8%; top: 30%; --r: -18deg; --d: .05s; }
.shards i:nth-child(2) { left: 70%; top: 22%; --r: 24deg; --d: .2s; width: 220px; }
.shards i:nth-child(3) { left: 22%; top: 70%; --r: 12deg; --d: .35s; height: 8px; }
.shards i:nth-child(4) { left: 62%; top: 72%; --r: -30deg; --d: .15s; width: 120px; }
.shards i:nth-child(5) { left: 40%; top: 14%; --r: 6deg; --d: .45s; height: 6px; width: 260px; }
.shards i:nth-child(6) { left: 84%; top: 52%; --r: -8deg; --d: .3s; width: 90px; }
.shards i:nth-child(7) { left: 2%; top: 56%; --r: 34deg; --d: .55s; width: 110px; height: 6px; }
.shards i:nth-child(8) { left: 46%; top: 84%; --r: -14deg; --d: .25s; width: 180px; height: 10px; }
@keyframes shard { 0% { opacity: 0; translate: -60px 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 60px 0; } }

.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--muted); stroke-width: 4; }
.ring-bar { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; }
.ring-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 300; color: var(--ink); }
.compile-title { font-size: 15px; letter-spacing: .12em; color: var(--ink-2); }
.compile-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 140px; font-size: 13px; color: var(--ink-3); text-align: left; }
.compile-log li { display: flex; gap: 8px; align-items: baseline; }
.compile-log li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); flex: none; transform: translateY(-2px); }
.compile-log li.pending::before { background: var(--accent); }
.boot-skip {
  position: absolute; right: 24px; bottom: 24px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7); color: var(--ink-2); font-size: 13px;
}
.boot-skip:hover { border-color: var(--ink); color: var(--ink); }
/* 浏览器拦截自动播放时显示：点一下开启声音（不推进开机步骤） */
.boot-sound {
  position: absolute; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 0 16px 0 14px; border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .4); background: rgba(255, 255, 255, .82); color: var(--accent);
  font-size: 13px; font-weight: 600;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.boot-sound::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); animation: soundPulse 1.6s ease-in-out infinite;
}
.boot-sound:hover { border-color: var(--accent); background: #fff; }
@keyframes soundPulse { 50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .9s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }

/* 主菜单 */
.menu.is-active { height: 100vh; height: 100dvh; overflow: hidden; background: #F4F5F7; }
.menu-media {
  position: absolute; inset: -2%; overflow: hidden;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .6s var(--ease);
}
.menu-media video, .menu-media .still {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--mx, 50%) var(--my, 50%);
}
.menu-media .still { opacity: 0; transition: opacity 1.1s var(--ease); }
.menu-media .still.is-on { opacity: 1; }
body[data-stage="2"] #stillAware.is-on { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }

.led { position: absolute; left: 0; top: 0; width: 24px; height: 24px; transform: translate(-50%, -50%); pointer-events: none; }
.led::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 28%, var(--led) 42%, var(--led) 62%, transparent 74%);
  mix-blend-mode: color; opacity: 0; transition: opacity .35s var(--ease);
}
.led i {
  position: absolute; inset: -60%; border-radius: 50%;
  background: radial-gradient(circle, var(--led) 0%, transparent 62%);
  mix-blend-mode: screen; opacity: .28; animation: ledPulse 2.8s ease-in-out infinite;
}
body[data-led="amber"] .led::before, body[data-led="red"] .led::before { opacity: .92; }
body[data-led="red"] .led i { animation-duration: .9s; opacity: .45; }
body.flicker .led::before { animation: flicker 1.4s steps(2, jump-none) 1; }
@keyframes ledPulse { 0%, 100% { opacity: .16; } 50% { opacity: .42; } }
@keyframes flicker { 0%, 100% { opacity: 0; } 20%, 60% { opacity: .9; } 40%, 80% { opacity: .2; } }
body.flicker { --led: var(--amber); }

.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.poke { position: absolute; left: 0; top: 0; width: 0; height: 0; border: 0; background: transparent; border-radius: 40% 40% 12px 12px; cursor: pointer; }
.poke:focus-visible { outline: 2px dashed var(--accent); outline-offset: -6px; }

.menu-hud { position: absolute; top: 20px; right: 24px; display: flex; gap: 8px; z-index: 3; }
.menu-panel {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  width: min(460px, 40vw); padding: 56px 40px 32px 56px;
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .58) 70%, rgba(255, 255, 255, 0) 100%);
}
.menu-kicker { font-size: 12px; letter-spacing: .3em; color: var(--ink-3); margin-top: -6px; }
.menu-list { display: grid; gap: 2px; margin-top: 18px; }
.menu-item {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px;
  width: 100%; padding: 10px 14px 10px 18px; border: 0; border-radius: 10px; background: transparent; text-align: left;
  transition: background-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.menu-item::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleY(0); transition: transform .25s var(--ease);
}
.menu-item:focus-visible, .menu-item.is-hot { background: rgba(255, 255, 255, .72); transform: translateX(6px); outline: none; }
.menu-item:focus-visible::before, .menu-item.is-hot::before { transform: scaleY(1); }
/* 悬停只给有鼠标的设备；触屏上 iOS 会把点过的项一直留在悬停态，改用按下时的短暂反馈 */
@media (hover: hover) {
  .menu-item:hover { background: rgba(255, 255, 255, .72); transform: translateX(6px); }
  .menu-item:hover::before { transform: scaleY(1); }
}
.menu-item:active { background: rgba(255, 255, 255, .86); }
.mi-zh { font-size: 23px; font-weight: 300; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.mi-en { font-size: 11px; letter-spacing: .26em; color: var(--ink-3); white-space: nowrap; }
.mi-note { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); }
.mi-note:empty { display: none; }
.menu-item[aria-disabled="true"] { cursor: not-allowed; }
.menu-item[aria-disabled="true"] .mi-zh, .menu-item[aria-disabled="true"] .mi-en { color: rgba(9, 9, 11, .28); }
.mi-hire .mi-zh { font-weight: 500; }
.mi-hire .mi-zh::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-radius: 50%; background: var(--accent); transform: translateY(-4px); }
.menu-foot { margin-top: auto; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

.mood, .invite { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; }
.mood-k, .invite-k { font-size: 14px; font-weight: 600; }
.invite-d { font-size: 13px; color: var(--ink-2); }
.mood-row, .invite-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* 字幕 */
.subs {
  position: fixed; left: 50%; bottom: 28px; z-index: 40; transform: translate(-50%, 12px);
  display: flex; align-items: baseline; gap: 12px; width: max-content; max-width: min(760px, calc(100vw - 32px));
  padding: 10px 18px; border-radius: 14px; background: rgba(9, 9, 11, .78); color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.subs.show { opacity: 1; transform: translate(-50%, 0); }
.subs-name { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .24em; color: rgba(255, 255, 255, .7); flex: none; }
.subs-name .js-led { width: 8px; height: 8px; border-width: 2px; }
.subs-text { font-size: 16px; line-height: 1.55; text-wrap: pretty; }
body.no-subs .subs { display: none; }

.toast {
  position: fixed; left: 50%; top: 20px; z-index: 60; transform: translate(-50%, -8px);
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confirm { border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow); }
.confirm::backdrop { background: rgba(9, 9, 11, .28); }
.confirm p { margin-bottom: 18px; color: var(--ink-2); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* 内容页框架 */
.page { background: var(--bg); }
.page.is-active { display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  min-height: 60px; padding: 10px 24px; background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.brand-sm .brand-name { font-size: 13px; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crumbs a { color: var(--ink-3); }
.crumbs b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.page-main { flex: 1; width: 100%; outline: none; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 48px 24px 72px; }
.wrap-narrow { width: min(820px, 100%); }
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 22px 24px 90px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); background: var(--subtle);
}
.eyebrow { font-size: 12px; letter-spacing: .24em; color: var(--ink-3); text-transform: uppercase; }
.page-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 820px; }
.page-head h1, .page-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; }
.page-head p { color: var(--ink-2); font-size: 17px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h3 { font-size: 18px; margin-bottom: 8px; }
.panel p { color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plain-list { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; color: var(--ink-2); }
.plain-list strong { color: var(--ink); }
.note { font-size: 13px; color: var(--ink-3); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* 章节选择 */
.chapter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.chapter-card {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chapter-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.chapter-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--muted); }
.cc-body { display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; }
.cc-num { font-size: 11px; letter-spacing: .24em; color: var(--ink-3); }
.cc-title { font-size: 19px; font-weight: 600; }
.cc-desc { font-size: 13px; color: var(--ink-2); }
.cc-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.cc-bar { height: 3px; border-radius: 3px; background: var(--muted); overflow: hidden; }
.cc-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); }
.chapter-card.is-locked { cursor: not-allowed; }
.chapter-card.is-locked img { filter: grayscale(1) contrast(.8) brightness(1.08); opacity: .55; }
.chapter-card.is-locked:hover { transform: none; border-color: var(--line); box-shadow: none; }
.chapter-card.is-done .cc-num::after { content: " · 已完成"; color: var(--emerald); letter-spacing: .08em; }
.chapter-card.is-dark { background: #0B1220; color: #E6EAF2; border-color: #1E293B; }
.chapter-card.is-dark .cc-desc, .chapter-card.is-dark .cc-num, .chapter-card.is-dark .cc-meta { color: #94A3B8; }

/* 章节标题卡 */
.ch-title {
  position: relative; min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); display: grid; align-items: end;
  overflow: hidden; background: var(--subtle);
}
.ch-title img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ch-title::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, 0) 75%); }
.ch-title.is-dark::after { background: linear-gradient(90deg, rgba(8, 12, 22, .9) 0%, rgba(8, 12, 22, .55) 50%, rgba(8, 12, 22, .1) 80%); }
.ch-title-inner { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: start; padding: 0 56px 96px; max-width: 720px; }
.ch-title .ch-num { font-size: 13px; letter-spacing: .4em; color: var(--ink-3); }
.ch-title h1 { font-size: clamp(34px, 5.4vw, 68px); font-weight: 300; letter-spacing: .06em; }
.ch-title .ch-sub { font-size: 17px; color: var(--ink-2); max-width: 520px; }
.ch-title.is-dark .ch-num, .ch-title.is-dark .ch-sub { color: #A5B4CC; }
.ch-title.is-dark h1 { color: #F1F5F9; }
.ch-title .ch-title-inner { animation: chIn 1s var(--ease) both; }
@keyframes chIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 章节舞台 */
.ch-body { padding-top: 40px; }
.step { margin-top: 40px; }
.step:first-child { margin-top: 0; }
.step-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 16px; }
.step-head h2 { font-size: clamp(21px, 2.4vw, 28px); }
.step-head .note { flex-basis: 100%; }
.is-reveal { animation: reveal .6s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 底特律式抉择 */
.choice { margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--subtle); border: 1px solid var(--line); }
.choice-q { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.choice-list { display: grid; gap: 10px; }
.choice-btn {
  display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; width: 100%; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff; text-align: left;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.choice-btn:hover { border-color: var(--accent); transform: translateX(4px); }
.choice-btn .ck { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--ink-3); }
.choice-btn strong { display: block; font-weight: 600; }
.choice-btn span.cd { display: block; font-size: 13px; color: var(--ink-3); }
.choice-btn.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.choice-btn.is-picked .ck { background: var(--accent); color: #fff; border-color: var(--accent); }
.choice-btn[disabled] { cursor: default; transform: none; }
.choice-btn[disabled]:not(.is-picked) { opacity: .5; }
.reply { margin-top: 14px; display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.reply b { font-size: 11px; letter-spacing: .24em; color: var(--accent); flex: none; }

/* 流程图 */
.flow { margin-top: 48px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #FFFFFF 0%, #F7F7F8 100%); }
.flow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.flow-head h2 { font-size: 20px; }
.flow-pct { font-size: 14px; color: var(--ink-2); }
.flow-pct b { font-size: 28px; font-weight: 300; color: var(--accent); margin-right: 4px; }
.flow-rows { display: grid; gap: 0; justify-items: center; }
.flow-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; width: 100%; padding: 14px 0; }
.flow-row + .flow-row::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 22px; background: var(--line-2); }
.flow-row.on-path + .flow-row.on-path::before { background: var(--accent); width: 2px; }
.fnode {
  min-width: 128px; max-width: 220px; padding: 9px 14px; border-radius: 10px; text-align: center; font-size: 13px; line-height: 1.4;
  border: 1px dashed var(--line-2); color: var(--ink-3); background: rgba(255, 255, 255, .6);
}
.fnode.seen { border-style: solid; border-color: var(--ink); color: var(--ink); background: #fff; }
.fnode.path { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fnode.choice-node.seen { border-radius: 999px; }
.fnode.end.seen { background: var(--ink); color: #fff; }
.flow-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.flow-note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink-3); }

/* 第一章：碎片 */
.islands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.island {
  display: grid; gap: 8px; align-content: start; padding: 16px; text-align: left; min-height: 128px;
  border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #F4F6FA 100%);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.island:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.island .role { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.island .role i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.island .bubble { font-size: 14px; color: var(--ink-2); padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: #fff; border: 1px solid var(--line); }
.island .hint { font-size: 12px; color: var(--ink-3); }
.island.is-open { border-color: var(--ink); }
.island.is-open .role i { background: var(--amber); }
.island.me { background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #EEF3FF 100%); }
.shift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shift-card h3 { font-size: 17px; margin-bottom: 12px; }
.shift-card.future { border-color: rgba(37, 99, 235, .35); background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FF 100%); }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--muted); gap: 4px; margin-bottom: 16px; }
.toggle button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; color: var(--ink-2); }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(9, 9, 11, .12); }
.quote { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--subtle); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.quote cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; color: var(--ink-3); }
.bike { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.bike div { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink-2); }
.bike b { display: block; color: var(--ink); margin-bottom: 4px; }

/* 第二章：接通 */
.hub { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; gap: 14px 28px; align-items: center; }
.hub-core {
  grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #EAF0FF 70%); border: 1px solid rgba(37, 99, 235, .3);
  text-align: center; font-size: 13px; color: var(--ink-2); box-shadow: 0 0 0 10px rgba(37, 99, 235, .04);
}
.hub-core b { display: block; font-size: 16px; color: var(--ink); letter-spacing: .12em; }
.hub-core .js-led { width: 18px; height: 18px; border-width: 3px; margin: 0 auto 8px; }
.hub.all-on .hub-core { box-shadow: 0 0 0 10px rgba(37, 99, 235, .1), 0 0 40px rgba(37, 99, 235, .25); }
.node-card { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.node-card .nk { font-weight: 600; }
.node-card .nv { font-size: 13px; color: var(--ink-2); }
.node-card .btn { justify-self: start; margin-top: 4px; }
.node-card.is-on { border-color: rgba(37, 99, 235, .45); background: linear-gradient(180deg, #FFFFFF, #F5F8FF); }
.node-card.is-on .btn { background: var(--accent-soft); color: var(--accent); border-color: transparent; cursor: default; }
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jobs div { padding: 12px 14px; border-radius: 12px; background: var(--subtle); font-size: 14px; }
.jobs b { display: block; font-size: 11px; letter-spacing: .2em; color: var(--accent); }

/* 第三章：岗位卡 */
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rcard {
  position: relative; display: grid; gap: 10px; align-content: start; min-height: 168px; padding: 18px; text-align: left;
  border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.rcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.rcard:hover { transform: translateY(-2px); border-color: var(--c); }
.rcard .rk { font-weight: 600; }
.rcard .rv { font-size: 14px; color: var(--ink-2); }
.rcard .rh { font-size: 12px; color: var(--ink-3); }
.rcard.is-open { border-color: var(--c); }
.ticket { display: grid; gap: 10px; padding: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; }
.ticket-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.ticket-row b { color: var(--ink); }
.ticket.is-blocked { border-color: rgba(239, 68, 68, .5); background: #FFF8F8; }
.ticket.is-ok { border-color: rgba(5, 150, 105, .45); background: #F6FFFB; }

/* 第四章：24 小时工厂 */
.clock { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.clock-face { position: relative; width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) var(--deg, 0deg), var(--muted) 0); }
.clock-face::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.clock-read { position: relative; z-index: 1; text-align: center; }
.clock-read b { display: block; font-size: 40px; font-weight: 300; letter-spacing: .04em; }
.clock-read span { font-size: 12px; color: var(--ink-3); letter-spacing: .14em; }
.range { width: 100%; accent-color: var(--accent); }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.events { display: grid; gap: 8px; margin-top: 16px; }
.event { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink-3); transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.event b { font-size: 12px; letter-spacing: .06em; color: var(--ink-3); }
.event.is-live { border-color: rgba(37, 99, 235, .45); background: #F5F8FF; color: var(--ink); }
.event.is-live b { color: var(--accent); }
.pv-nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pv-node { padding: 12px 14px; border-radius: 12px; background: var(--subtle); font-size: 14px; color: var(--ink-2); }
.pv-node strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* 第五章：30 秒拍板（情景演示） */
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; border-radius: 12px; background: #FFFBEB; border: 1px solid rgba(245, 158, 11, .45); color: #78350F; font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tab { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab.seen:not([aria-selected="true"])::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--emerald); transform: translateY(-2px); }
.scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.scene-ask .who { font-size: 13px; color: var(--ink-3); }
.scene-ask .ask { font-size: 18px; font-weight: 600; margin: 6px 0 14px; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.source-row { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--subtle); border-left: 3px solid var(--amber); }
.source-sys { font-size: 12px; font-weight: 600; color: #92400E; letter-spacing: .04em; }
.source-fact { font-size: 14px; color: var(--ink-2); }
.verdict .vt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.verdict .vt b { font-size: 16px; }
.verdict .vt span { font-size: 12px; color: var(--ink-3); }
.verdict .vv { margin: 10px 0 8px; font-size: 16px; color: var(--ink); }
.verdict .vd { font-size: 14px; color: var(--ink-2); }
.gate { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 16px; padding: 18px; border-radius: 14px; border: 1px solid rgba(245, 158, 11, .5); background: #FFFDF7; }
.gate-ring { position: relative; width: 84px; height: 84px; }
.gate-ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.gate-ring circle { fill: none; stroke-width: 5; }
.gate-ring .gr-track { stroke: #FDE7B0; }
.gate-ring .gr-bar { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 226.19; stroke-dashoffset: 0; }
.gate-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 300; }
.gate-desc { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.gate-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gate-status { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; background: #F6FFFB; border: 1px solid rgba(5, 150, 105, .35); color: #065F46; }
.gate-status.is-idle { background: var(--subtle); border-color: var(--line-2); color: var(--ink-2); }
.video-box { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.video-box video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--subtle); }
.video-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; font-size: 14px; color: var(--ink-2); }
.video-chapters { display: flex; flex-wrap: wrap; gap: 6px; }

/* 第六章：实证（唯一的深色章节） */
.dark-zone { background: #070B14; color: #E2E8F0; }
.dark-zone .wrap { position: relative; }
.dark-zone .note, .dark-zone .page-head p, .dark-zone .eyebrow { color: #94A3B8; }
.dark-zone .tag-blue { color: #93C5FD; }
.dark-bg { position: absolute; inset: 0; background: url("../img/stage_dark_wave.webp") center / cover no-repeat; opacity: .35; pointer-events: none; }
.ledger-label { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, .3); background: rgba(15, 23, 42, .7); font-size: 14px; color: #CBD5E1; }
.ledger-label .tag { background: #F8FAFC; color: #0F172A; border-color: #F8FAFC; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 20px; border-radius: var(--radius); overflow: hidden; background: rgba(148, 163, 184, .22); }
.metric { padding: 22px 20px; background: rgba(10, 15, 28, .92); }
.metric-num { font-size: clamp(30px, 3.6vw, 44px); font-weight: 300; color: #fff; letter-spacing: .01em; }
.metric.hl .metric-num { color: #93C5FD; }
.metric-desc { margin-top: 8px; font-size: 13px; color: #A5B4CC; }
.dark-zone .tabs .tab { background: transparent; color: #CBD5E1; border-color: rgba(148, 163, 184, .4); }
.dark-zone .tabs .tab[aria-selected="true"] { background: #F8FAFC; color: #0F172A; border-color: #F8FAFC; }
.factory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.factory-col { padding: 18px; border-radius: 12px; background: rgba(15, 23, 42, .8); border: 1px solid rgba(148, 163, 184, .22); }
.factory-col h3 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.factory-col p { font-size: 14px; color: #B6C2D6; }
.dark-zone .flow { background: rgba(15, 23, 42, .85); border-color: rgba(148, 163, 184, .25); }
.dark-zone .flow-head h2 { color: #F1F5F9; }
.dark-zone .flow-pct, .dark-zone .flow-note { color: #94A3B8; }
.dark-zone .fnode { background: transparent; color: #64748B; border-color: rgba(148, 163, 184, .35); }
.dark-zone .fnode.seen { color: #E2E8F0; border-color: #CBD5E1; background: rgba(15, 23, 42, .9); }
.dark-zone .fnode.end.seen { background: #F8FAFC; color: #0F172A; }
.dark-zone .flow-row + .flow-row::before { background: rgba(148, 163, 184, .35); }
.dark-zone .btn-ghost { background: transparent; color: #E2E8F0; border-color: rgba(148, 163, 184, .5); }
.dark-zone .btn-primary { background: #F8FAFC; color: #0F172A; }
.dark-zone .btn-primary:hover { background: #93C5FD; }

/* 第七章：护栏 */
.bench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
.bench-list { display: grid; gap: 8px; }
.bench-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; text-align: left; font-size: 15px; }
.bench-btn:hover { border-color: var(--ink); }
.bench-btn .tag { flex: none; }
.bench-out { display: grid; gap: 12px; align-content: start; }
.defense-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; }
.df-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.df-idx { font-size: 13px; font-weight: 700; color: var(--accent); }
.df-step strong { display: block; font-size: 15px; }
.df-step span { display: block; font-size: 13px; color: var(--ink-3); }
.df-arrow { display: grid; place-items: center; color: var(--ink-3); }
.df-step.is-hit { border-color: var(--red); background: #FFF6F6; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.df-step.is-hit .df-idx { color: var(--red); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.trust-card { display: grid; gap: 12px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #FFFFFF, #F9FAFB); }
.trust-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.trust-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.trust-state { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 4px 10px; border-radius: 999px; background: var(--muted); }
.trust-card h3 { font-size: 17px; margin-bottom: 6px; }
.trust-card p { font-size: 14px; color: var(--ink-2); }
.team-strip { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; margin-top: 16px; padding: 14px; border-radius: var(--radius); background: var(--subtle); border: 1px solid var(--line); }
.team-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.team-strip h3 { font-size: 16px; margin-bottom: 6px; }
.team-strip p { font-size: 14px; color: var(--ink-2); }

/* 终章 */
.epi { position: relative; min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); display: grid; align-items: center; overflow: hidden; background: #EEF1F6; }
.epi > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; }
.epi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .55) 42%, rgba(255, 255, 255, 0) 70%); }
.epi-inner { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; max-width: 560px; padding: 48px 56px; }
.epi-inner h1 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 300; letter-spacing: .04em; }
.epi-line { font-size: 18px; color: var(--ink-2); min-height: 1.6em; }
.epi-profile { font-size: 15px; color: var(--accent); }
.lock-box { display: grid; gap: 14px; justify-items: start; }

/* 问卷 */
.survey { display: grid; gap: 18px; }
.survey-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--ink-3); }
.survey-bar { height: 4px; border-radius: 4px; background: var(--muted); overflow: hidden; }
.survey-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); transition: width .4s var(--ease); }
.survey-q { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; }
.profile { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius); border: 1px solid rgba(37, 99, 235, .35); background: linear-gradient(180deg, #FFFFFF, #F4F7FF); }
.profile h2 { font-size: clamp(24px, 3vw, 32px); }
.profile .tally { display: flex; flex-wrap: wrap; gap: 8px; }

/* 额外内容 */
.extras-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.x-card { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); min-height: 140px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.x-card:hover { border-color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.x-card .xk { font-size: 11px; letter-spacing: .24em; color: var(--ink-3); }
.x-card .xt { font-size: 18px; font-weight: 600; }
.x-card .xd { font-size: 14px; color: var(--ink-2); }
.dossier { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.dossier-photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--subtle); }
.dossier-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dossier-photo .led { width: 26px; height: 26px; }
.facts { display: grid; grid-template-columns: 120px 1fr; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { color: var(--ink); }
.ind-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ind-card { position: relative; overflow: hidden; padding: 0; border-radius: 12px; border: 2px solid transparent; background: var(--subtle); text-align: left; aspect-ratio: 3 / 4; }
.ind-card img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ind-card .ind-scrim { position: absolute; inset: auto 0 0 0; padding: 10px; background: linear-gradient(0deg, rgba(9, 9, 11, .78), rgba(9, 9, 11, 0)); color: #fff; }
.ind-card .ind-name { font-size: 14px; font-weight: 600; }
.ind-card[aria-selected="true"] { border-color: var(--accent); }
.industry-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.industry-copy h3 { font-size: 20px; margin-bottom: 8px; }
.industry-copy > p { color: var(--ink-2); }
.industry-rows { display: grid; gap: 10px; margin-top: 14px; }
.ind-row { font-size: 14px; color: var(--ink-2); padding: 10px 12px; border-radius: 10px; background: var(--subtle); }
.ind-row strong { color: var(--ink); }
.mock-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.mock-head span:last-child { color: var(--accent); }
.mock-steps { display: grid; gap: 10px; }
.mock-step { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink-2); }
.mock-step strong { display: block; color: var(--ink); margin-bottom: 2px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--subtle); font-size: 13px; color: var(--ink-2); }
.compare-table tbody td:first-child { font-weight: 600; white-space: nowrap; }
.compare-table .col-mira { background: #F5F8FF; color: var(--ink); font-weight: 500; }
.compare-table thead .col-mira { color: var(--accent); }
.lines { display: grid; gap: 18px; }
.line-group h3 { font-size: 15px; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.line-group h3 span { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.line-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.line-item { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; text-align: left; }
.line-item .play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 11px; color: var(--ink-2); }
.line-item:hover .play { border-color: var(--accent); color: var(--accent); }
.line-item.is-locked { color: var(--ink-3); background: var(--subtle); border-style: dashed; cursor: default; }
.line-item.is-locked .play { border-style: dashed; }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scope-card { display: grid; gap: 10px; align-content: start; }
.scope-card.real { border-color: #1E293B; background: #0B1220; color: #E2E8F0; }
.scope-card.real p, .scope-card.real li { color: #B6C2D6; }
.scope-card.real h3, .scope-card.real strong { color: #fff; }
.scope-card.demo { border-color: rgba(245, 158, 11, .45); background: #FFFDF5; }

/* 选项 */
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.opt label, .opt .opt-k { font-weight: 600; font-size: 15px; }
.opt .opt-v { font-size: 13px; color: var(--ink-3); min-width: 3em; text-align: right; }
.opt input[type="range"] { width: 100%; accent-color: var(--accent); }
.switch { justify-self: start; position: relative; width: 48px; height: 28px; border-radius: 999px; border: 0; background: var(--muted); transition: background-color .2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(9, 9, 11, .25); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* 让 Mira 上岗 */
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px; align-items: start; }
.cta-points { display: grid; gap: 12px; margin-top: 22px; }
.cta-points div { padding: 14px 16px; border-radius: 12px; background: var(--subtle); font-size: 15px; color: var(--ink-2); }
.cta-points strong { color: var(--ink); }
.partner-card { display: grid; gap: 14px; }
.partner-card h3 { font-size: 19px; }
.partner-card > p { font-size: 14px; color: var(--ink-2); }
/* 预约提问卡：Mira 发问，点「愿意」跳转到预约页 */
.hire-ask { gap: 16px; }
.hire-ask .hire-k { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent); }
.hire-q { display: flex; gap: 14px; align-items: center; }
.hire-q img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 30% 20%; flex: none; }
.hire-q h3 { margin: 0; font-size: 20px; line-height: 1.45; }
.hire-yes { justify-self: start; min-width: 168px; min-height: 48px; font-size: 16px; }
.hire-mira { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.hire-mira img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 30% 20%; flex: none; }
.hire-mira p { font-size: 14px; color: var(--ink-2); }

/* 退出 */
.bye { min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.bye-inner { display: grid; gap: 14px; justify-items: center; max-width: 520px; }
.bye-inner h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 300; letter-spacing: .08em; }

/* 响应式：平板 */
@media (max-width: 1080px) {
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 三项指标排两列时，第一项（交付次数）占满一行，其余两项并排，不留空格子 */
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics .metric.hl { grid-column: 1 / -1; }
  .ind-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ind-card { aspect-ratio: 4 / 3; }
  .cta-grid, .scene, .bench, .industry-stage { grid-template-columns: 1fr; }
}

/* 响应式：手机（390px 等） */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .brand-sub { display: none; }
  .title-sub span { display: block; }
  .title-sub .title-dot { display: none; }
  .boot-sound { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .boot-skip { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .hire-q h3 { font-size: 18px; }
  .hire-yes { justify-self: stretch; }

  .subs { bottom: 16px; padding: 9px 14px; gap: 10px; }
  .subs-text { font-size: 15px; }
  .topbar { padding: 8px 14px; gap: 10px; min-height: 54px; }
  .crumbs { display: none; }
  .topbar .status-chip { display: none; }
  .wrap { padding: 32px 16px 56px; }
  .page-head { margin-bottom: 22px; }
  .page-head h1, .page-head h2 { font-size: 24px; }
  .page-head p { font-size: 15px; }
  .grid-2, .grid-3, .shift-grid, .islands, .jobs, .trust-grid, .scope-grid, .extras-grid, .line-list, .factory-grid, .pv-nodes, .bike { grid-template-columns: 1fr; }
  .chapter-grid { grid-template-columns: 1fr; }
  .cards4 { grid-template-columns: 1fr; }
  .rcard { min-height: 0; }
  .island { min-height: 0; }
  .hub { grid-template-columns: 1fr; }
  .hub-core { grid-column: 1; grid-row: auto; width: 132px; height: 132px; justify-self: center; }
  .clock { grid-template-columns: 1fr; justify-items: center; }
  .clock-face { width: 180px; height: 180px; }
  .clock > div:last-child { width: 100%; }
  .event { grid-template-columns: 1fr; gap: 2px; }
  .metrics { grid-template-columns: 1fr; }
  .defense-flow { grid-template-columns: 1fr; }
  .df-arrow { transform: rotate(90deg); }
  .team-strip { grid-template-columns: 1fr; }
  .dossier { grid-template-columns: 1fr; }
  .dossier-photo { max-width: 320px; }
  .facts { grid-template-columns: 92px 1fr; }
  .ind-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opt { grid-template-columns: 1fr auto; }
  .opt input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
  .gate { grid-template-columns: 1fr; justify-items: start; }
  .ch-title-inner { padding: 0 20px 72px; }
  .ch-title h1 { font-size: 34px; }
  .ch-title .ch-sub { font-size: 15px; }
  .ch-title::after { background: linear-gradient(0deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, .1) 80%); }
  .ch-title.is-dark::after { background: linear-gradient(0deg, rgba(8, 12, 22, .95) 0%, rgba(8, 12, 22, .6) 50%, rgba(8, 12, 22, .1) 85%); }
  .epi { align-items: end; }
  .epi::after { background: linear-gradient(0deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, .05) 85%); }
  .epi-inner { padding: 32px 20px 56px; }
  .epi-inner h1 { font-size: 28px; }
  .epi-line { font-size: 16px; }
  .flow { padding: 18px 12px; }
  .fnode { min-width: 0; flex: 1 1 120px; max-width: 100%; }
  .site-footer { padding: 18px 16px 84px; }
}

/* 主菜单（手机竖屏）：Mira 铺满全屏，底部一层浅色渐变托住单列菜单，提问与问卷邀请排在菜单上方；
   品牌在左上、状态在右上。面板铺满全屏但本身不接收点击，空白处点到的是 Mira 本人。
   渐变高度按菜单实际高度（7 行 + 页脚 + 底边距）定，矮屏与高屏在下面各自调整 */
@media (max-width: 760px) and (orientation: portrait) {
  .menu-panel {
    inset: 0; width: auto; padding: 0 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px; justify-content: flex-end; pointer-events: none;
    background: linear-gradient(0deg, rgba(244, 245, 247, .97) 0, rgba(244, 245, 247, .9) 330px, rgba(244, 245, 247, 0) 470px);
  }
  .menu-panel > * { pointer-events: auto; }
  .menu-panel > .brand-row { position: absolute; top: calc(17px + env(safe-area-inset-top)); left: 28px; pointer-events: none; }
  .menu-kicker { display: none; }
  .menu-list { order: 2; gap: 0; margin-top: 0; }
  .menu-item {
    min-height: 44px; padding: 0 12px 0 16px; align-content: center;
    grid-template-columns: auto auto minmax(0, 1fr); column-gap: 12px;
  }
  .menu-item:focus-visible, .menu-item.is-hot { transform: none; }
  .mi-zh { font-size: 19px; line-height: 1.3; }
  .mi-en { font-size: 10px; letter-spacing: .22em; line-height: 1.3; }
  .mi-note { grid-column: auto; justify-self: end; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
  .mi-hire .mi-zh::after { width: 6px; height: 6px; margin-left: 8px; transform: translateY(-3px); }
  .mood, .invite { order: 1; }
  .mood { padding: 0 0 2px 16px; gap: 8px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .mood-k { font-size: 13px; color: var(--ink-2); }
  .mood .chip-btn { min-height: 38px; padding: 0 15px; font-size: 14px; background: rgba(255, 255, 255, .92); }
  .invite { padding: 12px 14px; gap: 8px; background: rgba(255, 255, 255, .92); }
  .invite .btn-sm { min-height: 40px; }
  .menu-foot { order: 3; display: none; margin-top: 0; padding-left: 16px; font-size: 11px; }
  .menu-hud { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  body.on-menu .subs { top: calc(56px + env(safe-area-inset-top)); bottom: auto; }
}
@media (max-width: 760px) and (orientation: portrait) and (min-height: 700px) {
  .menu-foot { display: block; }
}
@media (max-width: 760px) and (orientation: portrait) and (min-height: 800px) {
  .menu-panel {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(244, 245, 247, .97) 0, rgba(244, 245, 247, .9) 370px, rgba(244, 245, 247, 0) 520px);
  }
  .menu-item { min-height: 48px; }
  .mi-zh { font-size: 20px; }
}
@media (max-width: 760px) and (orientation: portrait) and (max-height: 620px) {
  .menu-panel {
    gap: 8px;
    background: linear-gradient(0deg, rgba(244, 245, 247, .97) 0, rgba(244, 245, 247, .9) 285px, rgba(244, 245, 247, 0) 390px);
  }
  .menu-item { min-height: 40px; }
  .mi-zh { font-size: 18px; }
  .mood { gap: 6px; }
  .mood .chip-btn { min-height: 36px; }
}
/* 矮屏竖屏与横屏手机：问卷邀请收成一行（标题在左，按钮在右），省掉说明句（问卷页顶部同样写着答案只保存在本地），
   这样邀请出现时 Mira 的脸仍然完整露出 */
@media (max-width: 760px) and (orientation: portrait) and (max-height: 660px), (orientation: landscape) and (max-height: 480px) {
  .invite { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 10px 12px 10px 16px; }
  .invite-k { line-height: 1.4; }
  .invite-d { display: none; }
  .invite .btn-sm { min-height: 38px; padding: 0 12px; }
}

/* 矮屏（笔记本浏览器窗口、横屏手机）：主菜单收紧行距，仍放不下时面板内可滚动，任何一项都点得到 */
@media (min-width: 761px) and (max-height: 720px), (orientation: landscape) and (max-height: 720px) {
  .menu-panel { padding: 32px 32px 20px 44px; gap: 12px; overflow-y: auto; }
  .menu-list { margin-top: 4px; }
  .menu-item { padding: 6px 14px 6px 18px; }
  .mi-zh { font-size: 21px; line-height: 1.4; }
}
/* 横屏手机。viewport-fit=cover 让画面铺到屏幕边缘，菜单文字、状态和字幕要避开左右安全区（刘海、灵动岛）；
   没有刘海的设备上 env() 为 0，max() 取原来的边距 */
@media (orientation: landscape) and (max-height: 480px) {
  .menu-panel {
    width: calc(min(420px, 48vw) + env(safe-area-inset-left)); gap: 8px;
    padding: 14px 24px max(10px, env(safe-area-inset-bottom)) max(28px, calc(env(safe-area-inset-left) + 8px));
  }
  .menu-kicker, .menu-foot { display: none; }
  .menu-item { padding: 5px 12px 5px 16px; grid-template-columns: auto auto minmax(0, 1fr); }
  .mi-note { grid-column: auto; justify-self: end; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mi-zh { font-size: 17px; line-height: 1.5; }
  .mi-en { font-size: 10px; }
  /* 近况问题和三个选项放得下就排成一行，放不下自动换行 */
  .mood { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 0 0 16px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .mood-k { font-size: 13px; color: var(--ink-2); }
  .mood-row { gap: 6px; }
  .mood .chip-btn { min-height: 34px; background: rgba(255, 255, 255, .92); }
  .menu-hud { top: 10px; right: max(12px, env(safe-area-inset-right)); }
  body.on-menu .subs {
    left: auto; right: max(16px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom));
    max-width: 50vw; transform: translate(0, 12px);
  }
  body.on-menu .subs.show { transform: translate(0, 0); }
  .subs { max-width: min(760px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); }
  .toast { max-width: calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
  .boot-sound { left: max(24px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .boot-skip { right: max(24px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
/* 横屏 iPhone 浏览器里实际只有 340 到 390px 高：再收紧一档，问卷邀请也像近况提问一样去掉卡片框，菜单不用滚动 */
@media (orientation: landscape) and (max-height: 400px) {
  .menu-panel { padding-top: 10px; gap: 6px; }
  .menu-item { padding-top: 4px; padding-bottom: 4px; }
  .mi-zh { font-size: 16px; }
  .invite { padding: 0 0 0 16px; background: none; border: 0; border-radius: 0; box-shadow: none; }
}
/* 横屏手机上的内容页：顶栏、正文、页脚、章节标题避开左右安全区（宽度以 760px 为界，各自沿用原来的边距） */
@media (orientation: landscape) and (max-height: 480px) and (min-width: 761px) {
  .topbar, .wrap, .site-footer { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .ch-title-inner, .epi-inner { padding-left: max(56px, calc(env(safe-area-inset-left) + 16px)); padding-right: max(56px, calc(env(safe-area-inset-right) + 16px)); }
}
@media (orientation: landscape) and (max-height: 480px) and (max-width: 760px) {
  .topbar { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .wrap, .site-footer { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .ch-title-inner, .epi-inner { padding-left: max(20px, calc(env(safe-area-inset-left) + 8px)); padding-right: max(20px, calc(env(safe-area-inset-right) + 8px)); }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .boot-vendor.is-on { animation: none; }
}
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
body.reduce-motion .boot-vendor.is-on { animation: none; }
body.reduce-motion .menu-media { transform: none; }
body.reduce-motion .dust { display: none; }

/* 补充：第一章现在 / 未来卡片切换、选项开关行、终章台词已在画面里显示时不重复字幕 */
.shift-card { transition: opacity .3s var(--ease); }
.shift-card.is-dim { opacity: .5; }
.opt.is-sw .switch { justify-self: end; }
body:has(.epi) .subs { display: none; }
@media (max-width: 760px) {
  .opt.is-sw { grid-template-columns: 1fr auto; row-gap: 2px; }
  .opt.is-sw .opt-k { grid-column: 1; grid-row: 1; }
  .opt.is-sw .note { grid-column: 1; grid-row: 2; }
  .opt.is-sw .switch { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}
