/* 社区需求侦察站 · 教学版 — 视觉系统
   一期固定暗调（冷墨黑 + 窗灯橙 + 等宽台账字体），不跟随系统浅色偏好。
   单一圆角规则：交互元素全圆 pill；卡片/面板 4px；输入 4px。
   零外部字体/图标请求：系统字体栈 + CSS 几何来源图例 + CSS 控件 glyph。
   所有动效声明式，统一在 prefers-reduced-motion 下降级。 */

:root {
  --bg: #121418; --surface: #1a1e25; --surface2: #232832;
  --ink: #e7e9e3; --ink2: #b3b9b0; --ink3: #8a9189;
  --accent: #e07a3c; --accent2: #f0a878; --accent-ink: #17191c;
  --line: rgba(231, 233, 227, .12); --line2: rgba(231, 233, 227, .22);
  --ok: #5f9d7e; --probe: #d99a4e; --gap: #b65a52;
  --r-pill: 999px; --r-card: 4px; --r-in: 4px;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, monospace;
  --maxw: 1180px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --topbar-bg: rgba(18, 20, 24, .82);
}

/* ---------- 白天 / 黑夜切换：白天主题（参考原型纸面 + 墨绿强调，陶土/赭石仅作语义警示） ---------- */
:root[data-theme="light"] {
  --bg: #f1eee6; --surface: #fbfaf6; --surface2: #e8e2d5;
  --ink: #222a25; --ink2: #566058; --ink3: #626b61;
  --accent: #39756d; --accent2: #2b5b52; --accent-ink: #f4f6f1;
  --line: rgba(34, 42, 37, .14); --line2: rgba(34, 42, 37, .28);
  --ok: #2f7d5a; --probe: #a9742a; --gap: #a8473c;
  --shadow: 0 16px 44px rgba(60, 52, 40, .16);
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(58rem 38rem at 10% -6%, rgba(57, 117, 109, .10), transparent 60%),
    radial-gradient(46rem 34rem at 100% 0%, rgba(169, 116, 42, .07), transparent 55%);
}
:root[data-theme="light"] body::after { background-image: radial-gradient(rgba(34, 42, 37, .05) 1px, transparent 1px); }
:root[data-theme="light"] .rationale textarea,
:root[data-theme="light"] .reflection-field textarea { background: #fffdf8; }
:root[data-theme="light"] .glossary-popover { background: #fffdf8; }
:root[data-theme="light"] .teacher-panel { background: #f6f3ec; }
:root[data-theme="light"] .class-timer { background: #efe9dc; }
:root[data-theme="light"] .sticky-bar { background: rgba(251, 250, 246, .92); }
:root[data-theme="light"] .score-lead { background: rgba(57, 117, 109, .10); }
/* 顶栏跟随纸面；卡片照片恢复饱和（暗渐变仍托住白字）；按下态/徽标用墨绿半透明，避免橙底撞色 */
:root[data-theme="light"] { --topbar-bg: rgba(241, 238, 230, .9); }
:root[data-theme="light"] .scn img { opacity: 1; }
:root[data-theme="light"] .home-visual img { opacity: 1; }
:root[data-theme="light"] .iconbtn[aria-pressed="true"] { background: rgba(57, 117, 109, .14); }
:root[data-theme="light"] .mode-badge { background: rgba(57, 117, 109, .10); }

/* 主题切换按钮（半圆对比图标 + 文字，纯 CSS，无图标库） */
.theme-ico {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}
.iconbtn:has(.theme-ico) { grid-auto-flow: column; gap: 7px; }
.iconbtn .theme-label { font-family: var(--mono); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh;
}
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before {
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(224, 122, 60, .12), transparent 60%),
    radial-gradient(50rem 36rem at 100% 0%, rgba(95, 157, 126, .06), transparent 55%);
}
body::after {
  background-image: radial-gradient(rgba(231, 233, 227, .035) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .6;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent2); }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 3px; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent2); margin: 0 0 14px; }
.visually-hidden { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  min-height: 58px; padding: 8px clamp(16px, 4vw, 40px);
  background: var(--topbar-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; gap: 1px; background: none; border: 0; padding: 0; text-align: left; line-height: 1.1; }
.brand b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.brand small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--ink3); text-transform: uppercase; }
.topbar .progress-line { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.progress-line .track { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress-line .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.progress-line .stepname { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.progress-line .sn-label { font-size: 12px; color: var(--ink2); }
.progress-line .sn-count { font-family: var(--mono); font-size: 12px; color: var(--accent2); letter-spacing: .06em; }
.topbar .tools { display: flex; gap: 8px; }
.iconbtn {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  color: var(--ink2); font-size: 12px; transition: border-color .2s, color .2s, transform .12s;
}
.iconbtn:has(.ledger-count) { grid-auto-flow: column; gap: 7px; }
.ledger-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 10px; line-height: 1;
}
.iconbtn:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.iconbtn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent2); background: rgba(224, 122, 60, .12); }
.mode-badge {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--accent2);
  background: rgba(224, 122, 60, .08); font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s, border-color .2s, opacity .2s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px rgba(224, 122, 60, .22); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(224, 122, 60, .32); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--line2); }
.btn--ghost:active { transform: scale(.98); }
.btn--weak { background: transparent; color: var(--ink3); border-color: transparent; box-shadow: none; min-height: 42px; padding: 0 14px; font-weight: 600; }
.btn--weak:hover { color: var(--ink2); background: var(--surface2); transform: none; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn .hint { font-family: var(--mono); font-size: 11px; font-weight: 500; opacity: .8; }

/* ---------- 通用面板/卡片 ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .2s, transform .15s, box-shadow .2s; }
.panel-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); margin: 0 0 10px; }

.opt {
  display: block; width: 100%; text-align: left; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  position: relative; transition: border-color .2s, transform .12s, background .2s;
}
.opt:hover { transform: translateY(-2px); border-color: var(--line2); }
.opt:active { transform: scale(.99); }
.opt.is-sel { border-color: var(--accent); background: rgba(224, 122, 60, .07); box-shadow: inset 4px 0 0 var(--accent); }
.opt h3 { margin: 0 0 5px; font-size: 16px; font-weight: 700; }
.opt p { margin: 0; color: var(--ink2); font-size: 13px; line-height: 1.6; }
.opt .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink3); text-transform: uppercase; }

/* ---------- 来源图例 glyph（CSS 几何） ---------- */
.glyph { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; flex: none; }
.glyph--speak { border-radius: 50%; background: var(--accent2); }
.glyph--observe { border: 2px solid var(--ok); border-radius: 2px; }
.glyph--record { background:
  linear-gradient(var(--probe), var(--probe)) 0 2px / 100% 2px no-repeat,
  linear-gradient(var(--probe), var(--probe)) 0 6px / 100% 2px no-repeat,
  linear-gradient(var(--probe), var(--probe)) 0 10px / 70% 2px no-repeat; }
.glyph--group { background: var(--ink2); transform: rotate(45deg); border-radius: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink2); }

/* ---------- 首页 ---------- */
.home { padding: clamp(40px, 7vw, 84px) 0 60px; }
.home-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.home h1 { font-size: clamp(40px, 7vw, 84px); line-height: .96; letter-spacing: -.03em; font-weight: 900; margin: 0 0 20px; }
.home h1 em { font-style: normal; color: var(--accent); }
.home .lead { color: var(--ink2); font-size: clamp(16px, 1.6vw, 19px); max-width: 46ch; margin: 0 0 26px; }
.home .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note-sticker {
  margin-top: 30px; max-width: 42ch; padding: 16px 18px; background: var(--surface2);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-card);
  transform: rotate(-.5deg);
}
.note-sticker .panel-label { margin-bottom: 6px; }
.note-sticker p { margin: 0; font-size: 13px; color: var(--ink2); line-height: 1.6; }
.home-visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.home-visual img { width: 100%; height: 100%; object-fit: cover; }
.home-visual .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; background: linear-gradient(transparent, rgba(8, 9, 12, .9)); }
.home-visual .cap span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: #f0a878; text-transform: uppercase; }
.home-visual .cap strong { display: block; font-size: 22px; margin-top: 6px; color: #f4f6f1; }

.scenarios-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 64px 0 22px; flex-wrap: wrap; }
.scenarios-head h2 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -.02em; margin: 0; font-weight: 800; }
.scenarios-head p { margin: 0; color: var(--ink2); font-size: 13px; max-width: 40ch; }
.scenarios { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, minmax(180px, auto)); gap: 16px; }
.scn { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); display: flex; flex-direction: column; justify-content: flex-end; min-height: 180px; opacity: 0; transform: translateY(18px); animation: rise .6s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms + .1s); transition: transform .2s, border-color .2s, box-shadow .2s; text-align: left; padding: 0; }
.scn:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: var(--shadow); }
.scn:nth-child(1) { grid-row: 1 / span 2; }
.scn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .5s; }
.scn:hover img { opacity: .7; transform: scale(1.04); }
.scn .body { position: relative; z-index: 2; padding: 20px; background: linear-gradient(transparent, rgba(10, 11, 14, .92) 42%); }
.scn .body .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #f0a878; text-transform: uppercase; }
.scn h3 { margin: 6px 0 6px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.01em; color: #f4f6f1; }
.scn p { margin: 0 0 12px; color: rgba(244, 246, 241, .82); font-size: 13px; line-height: 1.55; }
.scn .go { font-family: var(--mono); font-size: 12px; color: #f4f6f1; display: inline-flex; align-items: center; gap: 6px; }
.scn .go::after { content: "→"; transition: transform .2s; }
.scn:hover .go::after { transform: translateX(4px); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- 任务视图骨架 ---------- */
.task { padding: clamp(24px, 4vw, 44px) 0 96px; }
.task-head { margin-bottom: 26px; }
.task-head h2 { font-size: clamp(26px, 4vw, 46px); letter-spacing: -.02em; margin: 0; font-weight: 800; }
.task-head .seed { color: var(--ink2); margin: 10px 0 0; max-width: 60ch; font-size: 15px; }
.process-note { max-width: 760px; margin: 0 0 18px; padding: 12px 14px; color: var(--ink2); background: var(--surface2); border-left: 3px solid var(--accent); border-radius: var(--r-card); font-size: 13px; line-height: 1.65; }
.stage-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; }
.layout-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); align-items: start; }
.mission dl { display: grid; gap: 12px; margin: 0; }
.mission .row { padding: 12px 14px; background: var(--surface2); border-radius: var(--r-card); border-left: 2px solid var(--accent); }
.mission dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent2); margin-bottom: 4px; }
.mission dd { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.6; }

/* 情境短片 */
.stage { position: relative; aspect-ratio: 16 / 9; background: #05060a; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.stage .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.stage .frame.on { opacity: 1; }
.stage.playing .frame.on.fx-zoom-in { animation: kb-in 6s ease-in-out infinite alternate; }
.stage.playing .frame.on.fx-pan-left { animation: kb-pan 7s ease-in-out infinite alternate; }
.stage.playing .frame.on.fx-zoom-out { animation: kb-out 6s ease-in-out infinite alternate; }
@keyframes kb-in { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes kb-out { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes kb-pan { from { transform: scale(1.1) translateX(2%); } to { transform: scale(1.1) translateX(-2%); } }
.stage .lb { position: absolute; left: 0; right: 0; height: 7%; background: rgba(0, 0, 0, .8); z-index: 3; }
.stage .lb.t { top: 0; } .stage .lb.b { bottom: 0; }
.stage .sub { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); width: min(86%, 760px); text-align: center; z-index: 4; font-size: clamp(15px, 2vw, 24px); font-weight: 700; line-height: 1.5; text-shadow: 0 3px 14px rgba(0, 0, 0, .8); padding: 8px 14px; border-radius: var(--r-card); background: rgba(0, 0, 0, .3); }
.stage .pbar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); z-index: 5; }
.stage .badge { position: absolute; top: 11%; left: 16px; z-index: 4; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #f4f6f1; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .22); padding: 5px 10px; border-radius: var(--r-pill); }
.stage-ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* 档案 */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.stat-grid .cell { background: var(--surface); padding: 18px; }
.stat-grid .v { font-family: var(--mono); font-size: clamp(24px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.stat-grid .l { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink3); text-transform: uppercase; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { font-size: 12px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface2); border: 1px solid var(--line); color: var(--ink2); }

/* 摸清家底：热点图 + 手记内联 */
.hotmap { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: #0a0b0e; }
.hotmap img { width: 100%; height: 100%; object-fit: cover; }
.hotspot { position: absolute; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #fff; background: var(--surface2); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 15px; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); transition: transform .15s, background .2s; }
.hotspot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: .7; animation: pulse 1.8s ease-out infinite; }
.hotspot:hover { transform: translate(-50%, -50%) scale(1.1); }
.hotspot.got { background: var(--accent); border-color: var(--accent2); }
.hotspot.got::after { animation: none; opacity: 0; }
@keyframes pulse { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.clue-list { display: grid; gap: 10px; }
.clue { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); text-align: left; transition: border-color .2s, background .2s; min-height: 44px; }
.clue .n { font-family: var(--mono); font-size: 12px; color: var(--accent2); }
.clue.is-sel { border-color: var(--accent); background: rgba(224, 122, 60, .06); }
.clue h4 { margin: 0 0 3px; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.clue .src { font-family: var(--mono); font-size: 11px; color: var(--ink3); letter-spacing: .04em; }
.clue p { margin: 6px 0 0; font-size: 12.5px; color: var(--ink2); line-height: 1.6; }
.threshold { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0; font-family: var(--mono); font-size: 12px; color: var(--ink2); flex-wrap: wrap; }
.threshold .ok { color: var(--ok); }

/* 覆盖环 */
.ring-wrap { display: flex; align-items: center; gap: 20px; padding: 16px; background: var(--surface2); border-radius: var(--r-card); border: 1px solid var(--line); margin-bottom: 18px; }
.ring { --a: 0deg; --b: 0deg; --c: 0deg; width: 116px; height: 116px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--accent) 0 var(--a), var(--line2) var(--a) 120deg, var(--ok) 120deg var(--b), var(--line2) var(--b) 240deg, var(--probe) 240deg var(--c), var(--line2) var(--c) 360deg);
  display: grid; place-items: center; transition: background .5s; }
.ring::before { content: ""; width: 78px; height: 78px; border-radius: 50%; background: var(--surface2); grid-area: 1/1; }
.ring b { grid-area: 1/1; font-family: var(--mono); font-size: 22px; }
.ring-legend { display: grid; gap: 6px; font-size: 12px; }
.ring-legend span { display: flex; align-items: center; gap: 8px; color: var(--ink2); }
.ring-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.ring-legend .miss { opacity: .5; }
.sampling-note { max-width: 760px; margin: -8px 0 16px; color: var(--ink3); font-size: 12px; line-height: 1.6; }

/* 质检仪 */
.q.is-sel.q-ok { box-shadow: inset 4px 0 0 var(--ok); }
.q.is-sel.q-probe { box-shadow: inset 4px 0 0 var(--probe); }
.q.is-sel.q-gap { box-shadow: inset 4px 0 0 var(--gap); background: repeating-linear-gradient(45deg, rgba(182, 90, 82, .08) 0 8px, transparent 8px 16px), rgba(182, 90, 82, .05); }
.q .verdict { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; }
.q-ok .verdict { color: var(--ok); } .q-probe .verdict { color: var(--probe); } .q-gap .verdict { color: var(--gap); }
.hl { background: var(--gap); color: #fff; border-radius: 3px; padding: 0 3px; }
.q .fb { margin: 8px 0 0; font-size: 12.5px; color: var(--ink2); line-height: 1.6; }

/* 陈述分类 I4a */
.stmt { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 10px; }
.stmt .txt { font-size: 14.5px; margin: 0 0 10px; }
.stmt .bins { display: flex; gap: 8px; flex-wrap: wrap; }
.bin { min-height: 44px; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface2); font-size: 12px; color: var(--ink2); transition: all .15s; display: inline-flex; align-items: center; }
.bin:hover { border-color: var(--line2); color: var(--ink); }
.bin.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.stmt .verdict { margin-top: 9px; font-size: 12px; }
.verdict--ok { color: var(--ok); } .verdict--err { color: var(--gap); }
.stmt .explain { margin: 6px 0 0; font-size: 12.5px; color: var(--ink2); line-height: 1.6; }

/* 证据关联 I4b */
.find { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 12px; }
.find.is-sel { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.find h3 { margin: 0 0 4px; font-size: 16px; }
.find .st { margin: 0 0 12px; font-size: 13px; color: var(--ink2); line-height: 1.6; }
.find .conf { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.conf--full { color: var(--ok); } .conf--part { color: var(--probe); } .conf--guess { color: var(--gap); }
.evlink { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.evlink label { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 12.5px; color: var(--ink2); padding: 6px 8px; border-radius: var(--r-in); cursor: pointer; transition: background .15s; }
.evlink label:hover { background: var(--surface2); }
.evlink input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.evlink label.linked { color: var(--ink); background: rgba(224, 122, 60, .06); }
.evlink label.linked .dot { background: var(--accent); }
.evlink .ev-missing { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 8px; border: 1px dashed var(--line2); border-radius: var(--r-in); color: var(--ink3); background: rgba(255, 255, 255, .018); }
.evlink .ev-missing .dot { background: transparent; border: 1px solid var(--ink3); }
.evlink .ev-missing .ev-state { color: var(--probe); }
.evlink .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); flex: none; }
.evlink .valid { color: var(--ok); } .evlink .invalid { color: var(--gap); }
.ev-state { font-family: var(--mono); font-size: 10px; color: var(--ink3); }

/* 提交确认行 */
.confirm-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.confirm-row .note { font-size: 12px; color: var(--ink3); }

/* S7 四阶段学习工作台 */
.s7-workflow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 900px;
  margin: 0 0 24px; padding: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
}
.s7-step {
  display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 10px 12px;
  border: 0; background: var(--surface); color: var(--ink3); text-align: left;
}
.s7-step span { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid var(--line2); border-radius: 50%; font-family: var(--mono); font-size: 11px; }
.s7-step b { font-size: 12px; line-height: 1.35; }
.s7-step.done span { border-color: var(--ok); color: var(--ok); }
.s7-step.on { background: rgba(224, 122, 60, .1); color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.s7-step.on span { border-color: var(--accent); color: var(--accent2); }
.s7-step:disabled { opacity: .4; cursor: not-allowed; }
.s7-focus { max-width: 820px; padding: clamp(16px, 3vw, 26px); background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-card); }
.s7-focus__meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--ink3); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.s7-focus__meta b { color: var(--accent2); }
.stmt--focus { margin: 0; padding: clamp(16px, 3vw, 26px); background: var(--surface2); }
.stmt--focus .txt { font-size: clamp(18px, 2.4vw, 24px); line-height: 1.6; }
.s7-focus__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.finding-choices { display: grid; gap: 14px; max-width: 820px; }
.finding-choice { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.finding-choice.is-sel { border-color: var(--accent); }
.finding-choice .opt { border: 0; border-radius: 0; box-shadow: none; }
.choice-state { display: inline-block; margin-top: 10px; color: var(--accent2); font-family: var(--mono); font-size: 11px; }
.rationale { display: grid; gap: 7px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.rationale > span, .reflection-field > span { font-size: 13px; font-weight: 700; color: var(--ink); }
.rationale textarea, .reflection-field textarea {
  width: 100%; resize: vertical; padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--r-in);
  background: #11141a; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.65;
}
.rationale small, .reflection-field small { color: var(--ink3); font-size: 11px; }
.rationale small.ok { color: var(--ok); }
.evidence-focus .tag, .confidence-card .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); }
.evidence-focus h3, .confidence-card h3 { margin: 4px 0 6px; font-size: clamp(20px, 2.5vw, 28px); }
.evidence-focus > p, .confidence-card > p { margin: 0; color: var(--ink2); font-size: 14px; line-height: 1.65; }
.evidence-focus blockquote { margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--ok); background: var(--surface2); color: var(--ink2); font-size: 13px; }
.evlink .ev-copy { display: grid; gap: 2px; min-width: 0; }
.evlink .ev-copy b { color: inherit; font-size: 13px; }
.confidence-list { display: grid; gap: 14px; max-width: 820px; }
.confidence-card { padding: clamp(16px, 3vw, 22px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.confidence-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.confidence-picks .bin { justify-content: center; min-height: 46px; }
.confidence-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 14px; padding: 12px 14px; background: var(--surface2); border-radius: var(--r-in); font-size: 13px; }
.confidence-compare small { grid-column: 1 / -1; color: var(--ink3); }

/* 结果页 */
.report-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.score-col { position: sticky; top: 74px; padding: 22px; }
.score-lead { padding: 12px 14px; margin: 0 0 16px; background: rgba(224, 122, 60, .1); border: 1px solid var(--accent); border-radius: var(--r-card); font-size: 13px; color: var(--ink2); line-height: 1.5; }
.score-lead b { color: var(--accent2); }
.score-rings { display: grid; gap: 16px; }
.sr { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.sr .dial { --p: 0deg; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--accent) 0 var(--p), var(--line2) var(--p) 360deg); display: grid; place-items: center; transition: background .8s cubic-bezier(.16, 1, .3, 1); }
.sr .dial::before { content: ""; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); grid-area: 1/1; }
.sr .dial b { grid-area: 1/1; font-family: var(--mono); font-size: 16px; }
.sr .meta .l { font-size: 12px; color: var(--ink2); }
.sr .meta .g { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.score-advice { font-size: 12.5px; color: var(--ink2); line-height: 1.6; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.total { font-family: var(--mono); text-align: center; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.total b { font-size: 40px; letter-spacing: -.03em; }
.total span { display: block; font-size: 11px; color: var(--ink3); letter-spacing: .06em; margin-top: 4px; }
.total--minor { margin-top: 14px; padding-top: 10px; }
.total--minor b { font-size: 20px; color: var(--ink2); }
.report-body { padding: 24px; }
.report-body h3 { font-size: 13px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); margin: 22px 0 10px; }
.report-body h3:first-child { margin-top: 0; }
.blind { display: grid; gap: 8px; }
.blind li { list-style: none; display: flex; gap: 10px; font-size: 13px; color: var(--ink2); line-height: 1.6; padding: 10px 12px; background: var(--surface2); border-radius: var(--r-card); border-left: 2px solid var(--probe); }
.blind li::before { content: attr(data-k); font-family: var(--mono); font-size: 10px; color: var(--probe); flex: none; padding-top: 2px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.disclaimer { font-size: 12px; color: var(--ink3); margin-top: 16px; padding: 12px; border-left: 3px solid var(--line2); background: var(--surface2); border-radius: var(--r-in); }
.concept-review { display: grid; gap: 8px; }
.concept-review .cr { display: flex; gap: 10px; font-size: 12.5px; padding: 8px 10px; border-radius: var(--r-in); background: var(--surface2); }
.concept-review .cr-body { display: grid; gap: 4px; min-width: 0; }
.concept-review .cr-body small { color: var(--ink3); font-size: 11.5px; line-height: 1.55; }
.revision-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.revision-summary > div { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 7px; padding: 10px 12px; background: var(--surface2); border-radius: var(--r-in); }
.revision-summary span { grid-column: 1 / -1; color: var(--ink3); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.revision-summary b, .revision-summary strong { font-family: var(--mono); font-size: 18px; }
.revision-summary i { color: var(--ink3); font-size: 11px; font-style: normal; }
.revision-summary strong.up { color: var(--ok); }
.revision-summary strong.down { color: var(--probe); }
.revision-note { margin: 10px 0 0; color: var(--ink3); font-size: 12px; line-height: 1.6; }
.reflection-field { display: grid; gap: 8px; }
.finding-report { padding: 12px 0; border-bottom: 1px solid var(--line); }
.finding-report__head { display: flex; justify-content: space-between; gap: 10px; }
.finding-report__head span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.finding-report__statement { margin: 6px 0; color: var(--ink2); font-size: 13px; }
.finding-report__rationale { margin: 6px 0; color: var(--ink2); font-size: 12.5px; line-height: 1.6; }
.finding-report__rationale b { color: var(--ink); }
.finding-report ul { margin: 0; padding-left: 18px; color: var(--ink2); font-size: 12.5px; }
.print-sheet-head, .print-review { display: none; }

/* 自学折叠层 + 学习目标条 */
.expand { margin-top: 12px; }
.expand summary { cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent2); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.expand summary::-webkit-details-marker { display: none; }
.expand summary::before { content: "+"; font-size: 14px; }
.expand[open] summary::before { content: "–"; }
.expand .body { margin-top: 8px; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r-card); font-size: 13px; color: var(--ink2); line-height: 1.7; }
.expand .ex { margin: 0 0 8px; } .expand .ex:last-child { margin-bottom: 0; }
.expand .ex .lab { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); margin-bottom: 3px; }
body:not(.self) .expand { display: none; }
.self-goal { display: none; margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--ok); background: rgba(95, 157, 126, .1); border-radius: var(--r-in); font-size: 13px; color: var(--ink2); line-height: 1.6; }
body.self .self-goal { display: block; }
.self-goal::before { content: "本步目标 · "; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.glossary-term {
  display: inline; margin: 0; padding: 0 2px; border: 0; border-bottom: 1px dashed var(--accent2);
  border-radius: 2px; background: rgba(224, 122, 60, .08); color: inherit;
  font: inherit; line-height: inherit; text-align: inherit; cursor: help;
}
.glossary-term:hover { background: rgba(224, 122, 60, .18); color: var(--ink); }
.glossary-popover {
  position: fixed; z-index: 45; width: min(360px, calc(100vw - 24px)); padding: 16px;
  border: 1px solid var(--accent); border-radius: var(--r-card); background: #11141a;
  color: var(--ink); box-shadow: var(--shadow);
}
.glossary-popover[hidden], body:not(.self) .glossary-popover { display: none !important; }
.glossary-popover__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.glossary-popover__head span { color: var(--accent2); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.glossary-popover h2 { margin: 3px 0 0; font-size: 18px; }
.glossary-popover p { margin: 12px 0 0; color: var(--ink2); font-size: 13px; line-height: 1.7; }
.glossary-popover .x { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface2); }

/* 手记抽屉 */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
body.drawer .scrim, body.teacher .scrim { opacity: 1; pointer-events: auto; }
.drawer-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 90vw); z-index: 41; background: var(--surface); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .3s cubic-bezier(.16, 1, .3, 1); overflow-y: auto; padding: 20px; }
body.drawer .drawer-panel { transform: translateX(0); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel-head .x { flex: none; background: none; border: 1px solid var(--line); border-radius: var(--r-pill); width: 44px; height: 44px; color: var(--ink2); }
.drawer-panel h3 { font-size: 16px; margin: 0 0 4px; }
.drawer-panel .sub { font-family: var(--mono); font-size: 11px; color: var(--ink3); margin: 0; }
.ledger-item { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 8px; background: var(--surface2); }
.ledger-item .k { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--accent2); text-transform: uppercase; }
.ledger-item .v { font-size: 13px; margin-top: 4px; }
.ledger-item .src { font-size: 11px; }
.ledger-classification { line-height: 1.55; }
.ledger-classification .src { display: block; margin: 3px 0 0 18px; color: var(--ink3); }
.ledger-empty { color: var(--ink3); font-size: 13px; padding: 20px 0; text-align: center; }

/* 教师浮层 */
.teacher-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 94vw); z-index: 41; background: #0d0f13; border-left: 1px solid var(--accent); transform: translateX(100%); transition: transform .3s cubic-bezier(.16, 1, .3, 1); overflow-y: auto; padding: 22px; }
body.teacher .teacher-panel { transform: translateX(0); }
.teacher-panel .panel-head { align-items: center; }
.teacher-panel .panel-head b { font-size: 15px; }
.t-step { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 12px; background: var(--surface); }
.t-step.cur { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.t-step .num { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--accent2); text-transform: uppercase; }
.t-step h4 { margin: 4px 0 8px; font-size: 14px; }
.t-step .blk { margin: 8px 0; font-size: 12.5px; line-height: 1.65; }
.t-step .blk .lab { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 3px; }
.t-step .concept .lab { color: var(--ink2); }
.t-step .ask { color: var(--accent2); } .t-step .ask .lab { color: var(--accent2); }
.t-step .pit { color: var(--probe); } .t-step .pit .lab { color: var(--probe); }
.t-step .meta { font-family: var(--mono); font-size: 10px; color: var(--ink3); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.t-sec { margin-top: 18px; }
.t-sec h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); margin: 0 0 8px; }
.t-sec li { font-size: 12.5px; color: var(--ink2); line-height: 1.6; margin-bottom: 6px; }
.t-mis .symptom { color: var(--ink); font-weight: 600; }
.t-mis .reply { color: var(--ink2); }
.teacher-console { margin-bottom: 18px; padding: 14px; background: var(--surface2); border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: var(--r-card); }
.teacher-console__status { display: grid; gap: 3px; margin-bottom: 12px; }
.teacher-console__status span { color: var(--accent2); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.teacher-console__status b { font-size: 16px; }
.class-timer { display: grid; gap: 10px; margin: 12px 0; padding: 12px; background: #0d0f13; border: 1px solid var(--line); border-radius: var(--r-in); }
.class-timer > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.class-timer span { color: var(--ink3); font-size: 11px; }
.class-timer b { color: var(--ink); font-family: var(--mono); font-size: 28px; letter-spacing: .04em; }
.timer-presets, .timer-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.timer-presets button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink2); font-size: 11px; }
.timer-actions .btn { min-height: 38px; padding: 0 16px; }
.btn--present { width: 100%; background: var(--accent); color: var(--accent-ink); }
.teacher-console__hint { margin: 8px 0 0; color: var(--ink3); font-size: 11.5px; line-height: 1.55; }
.teacher-all { margin-top: 14px; }
.teacher-all > summary { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-in); color: var(--ink2); font-size: 12px; cursor: pointer; }
.teacher-all > div { margin-top: 10px; }

/* 嵌入态 */
body.embed .topbar, body.embed .sitefoot { display: none; }
body.embed .home { padding-top: 24px; }

/* 导航：上一步 + 粘性下一步底栏 */
.nav-prev { margin-top: 22px; }
.sticky-bar {
  position: sticky; bottom: 12px; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; margin-top: 18px;
  background: rgba(13, 15, 19, .95); backdrop-filter: blur(12px);
  border: 1px solid var(--line2); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.sticky-bar .sb-status { font-family: var(--mono); font-size: 12px; color: var(--ink2); }
.sticky-bar .sb-status.ok { color: var(--ok); }
.sticky-bar .sb-btn { flex: none; }

.sitefoot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 22px 0; margin-top: 40px; }
.sitefoot .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--ink3); letter-spacing: .04em; }

.review-alerts {
  display: grid;
  gap: 10px;
  max-width: 820px;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 0 0 20px;
  padding: 14px 16px;
  background: rgba(217, 154, 78, .1);
  border: 1px solid var(--probe);
  border-radius: var(--r-card);
}
.review-alerts__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.review-alerts__badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--probe);
  padding: 2px 8px;
  border-radius: var(--r-in);
  font-weight: 700;
}
.review-alerts__head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.review-alerts__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.review-alerts__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-in);
  font-size: 13px;
  color: var(--ink2);
}
.btn--review {
  flex: none;
  min-width: 88px;
  background: var(--probe);
  color: var(--accent-ink);
  border: 0;
  padding: 8px 12px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-pill);
}

/* ---------- 全屏投影复盘模式 ?present=1 ---------- */
body.present {
  background: #08090c;
  color: #f3f5f0;
  overflow: hidden;
}
body.present::before, body.present::after { display: none; }
body.present .topbar, body.present .sitefoot, body.present .scrim, body.present .drawer-panel, body.present .teacher-panel { display: none !important; }
body.present #view.wrap { max-width: none; min-height: 100dvh; padding: 0; }
.present-root { height: 100dvh; min-height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; background: #08090c; }
.present-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding: 12px clamp(24px, 4vw, 64px); border-bottom: 1px solid rgba(243, 245, 240, .18); background: #0e1116;
}
.present-toolbar > div:first-child { display: grid; gap: 2px; }
.present-toolbar span { color: #f0a878; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; }
.present-toolbar b { font-size: 18px; }
.present-toolbar__actions { display: flex; gap: 10px; }
.present-toolbar button, .present-nav button, .present-timer button, .present-volume-list button {
  min-height: 44px; padding: 0 16px; border: 1px solid rgba(243, 245, 240, .25); border-radius: var(--r-pill); background: #191e26; color: #f3f5f0; font-weight: 700;
}
.present-toolbar button:hover, .present-nav button:hover { border-color: #f0a878; }
.present-toolbar button:active, .present-nav button:active { transform: scale(.98); }
.present-stage { display: grid; min-height: 0; }
.present-slide { display: grid; align-content: center; gap: clamp(28px, 4vh, 48px); min-height: 0; height: 100%; padding: clamp(28px, 4vw, 64px); }
.present-slide__head { max-width: 1100px; }
.present-kicker { margin: 0 0 10px; color: #f0a878; font-family: var(--mono); font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .1em; }
.present-slide h1, .present-empty h1 { margin: 0; font-size: clamp(44px, 5.5vw, 78px); line-height: 1.08; letter-spacing: -.025em; }
.present-slide__head > p:last-child, .present-empty > p { max-width: 64ch; margin: 14px 0 0; color: #c5cbc3; font-size: clamp(22px, 2vw, 30px); line-height: 1.55; }
.present-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.present-ring-item { display: grid; gap: 8px; padding: clamp(18px, 2vw, 30px); border-top: 4px solid #e07a3c; background: #151a21; }
.present-ring-item span { color: #c5cbc3; font-size: clamp(20px, 1.8vw, 28px); }
.present-ring-item b { color: #f3f5f0; font-family: var(--mono); font-size: clamp(48px, 6vw, 82px); line-height: 1; }
.present-ring-item b small { color: #8f9890; font-size: .38em; }
.present-ring-item strong { color: #f0a878; font-size: clamp(20px, 1.8vw, 28px); }
.present-ring-item i { color: #8f9890; font-family: var(--mono); font-size: clamp(15px, 1.2vw, 19px); font-style: normal; }
.present-callout { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 20px; padding: 18px 24px; border-left: 5px solid #e07a3c; background: #151a21; }
.present-callout span { color: #f0a878; font-family: var(--mono); font-size: clamp(16px, 1.4vw, 20px); }
.present-callout h2 { margin: 0; font-size: clamp(28px, 3vw, 44px); }
.present-callout p { grid-column: 1 / -1; margin: 8px 0 0; color: #d4d8d2; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.5; }
.present-blind-list { display: grid; gap: 14px; max-width: 1400px; }
.present-blind-list > div { display: grid; grid-template-columns: 48px 90px 1fr; align-items: center; gap: 18px; padding: 15px 20px; background: #151a21; border-left: 4px solid #d99a4e; }
.present-blind-list span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(243, 245, 240, .25); border-radius: 50%; font-family: var(--mono); font-size: 18px; }
.present-blind-list b { color: #f0a878; font-family: var(--mono); font-size: clamp(18px, 1.5vw, 24px); }
.present-blind-list p { margin: 0; color: #e1e4df; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.5; }
.present-blind-list .present-clear { grid-template-columns: 1fr; }
.present-discussion__grid { display: grid; grid-template-columns: 1fr minmax(300px, .38fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.present-questions { display: grid; gap: 14px; }
.present-q-item { display: grid; grid-template-columns: 50px 1fr; align-items: start; gap: 18px; padding: 18px 22px; background: #151a21; border-left: 4px solid #e07a3c; }
.present-q-item b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e07a3c; color: #17191c; font-family: var(--mono); font-size: 20px; }
.present-q-item p { margin: 0; color: #f3f5f0; font-size: clamp(21px, 1.9vw, 29px); line-height: 1.5; }
.present-timer { display: grid; align-content: center; gap: 14px; padding: 24px; background: #151a21; border: 1px solid rgba(243, 245, 240, .18); text-align: center; }
.present-timer > span { color: #c5cbc3; font-size: 20px; }
.present-timer > b { font-family: var(--mono); font-size: clamp(60px, 8vw, 110px); letter-spacing: -.04em; line-height: 1; }
.present-timer > div { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.present-timer > div button { min-height: 40px; padding: 0 12px; font-size: 14px; }
.present-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; min-height: 74px; padding: 10px clamp(24px, 4vw, 64px); border-top: 1px solid rgba(243, 245, 240, .18); background: #0e1116; }
.present-nav button:first-child { justify-self: start; }.present-nav button:last-child { justify-self: end; }
.present-nav span { color: #f0a878; font-family: var(--mono); font-size: 18px; }
.present-nav button:disabled { opacity: .35; cursor: not-allowed; }
.present-empty { align-self: center; width: min(1200px, calc(100% - 80px)); margin: auto; padding: 48px 0; }
.present-volume-list { display: grid; gap: 12px; max-width: 760px; margin-top: 32px; }
.present-volume-list button { display: grid; gap: 4px; min-height: 78px; padding: 14px 20px; border-radius: var(--r-card); text-align: left; }
.present-volume-list button b { font-size: 22px; }.present-volume-list button span { color: #c5cbc3; font-size: 16px; }
.present-readiness { max-width: 760px; margin-top: 32px; padding: 18px 22px; border-left: 4px solid #d99a4e; background: #151a21; color: #e1e4df; font-size: 20px; }
.present-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 900px; margin-top: 30px; }
.present-checks > div { display: grid; gap: 4px; padding: 16px 18px; border-left: 4px solid #d99a4e; background: #151a21; }
.present-checks > div.done { border-left-color: #5f9d7e; }.present-checks span { color: #c5cbc3; font-size: 15px; }.present-checks b { font-size: 22px; }
body.projector-light .present-root { background: #f0eee8; color: #1b1e22; }
body.projector-light .present-toolbar, body.projector-light .present-nav { background: #e3e0d8; border-color: rgba(27, 30, 34, .2); }
body.projector-light .present-toolbar button, body.projector-light .present-nav button, body.projector-light .present-timer button, body.projector-light .present-volume-list button { background: #f7f5ef; color: #1b1e22; border-color: rgba(27, 30, 34, .3); }
body.projector-light .present-ring-item, body.projector-light .present-callout, body.projector-light .present-blind-list > div, body.projector-light .present-q-item, body.projector-light .present-timer, body.projector-light .present-readiness, body.projector-light .present-checks > div { background: #fff; }
body.projector-light .present-toolbar span, body.projector-light .present-kicker, body.projector-light .present-ring-item strong, body.projector-light .present-callout span, body.projector-light .present-blind-list b, body.projector-light .present-nav span { color: #8b431e; }
body.projector-light .present-slide__head > p:last-child, body.projector-light .present-empty > p, body.projector-light .present-ring-item span, body.projector-light .present-callout p, body.projector-light .present-blind-list p, body.projector-light .present-q-item p, body.projector-light .present-timer > span, body.projector-light .present-volume-list button span { color: #40464d; }
body.projector-light .present-ring-item b, body.projector-light .present-callout h2, body.projector-light .present-q-item p, body.projector-light .present-timer > b { color: #1b1e22; }

/* 720p 讲台屏必须完整容纳工具栏、内容和翻页控制，不依赖滚动。 */
@media (min-width: 900px) and (max-height: 800px) {
  .present-root { grid-template-rows: 64px minmax(0, 1fr) 64px; }
  .present-toolbar { min-height: 64px; padding: 6px clamp(32px, 4vw, 52px); }
  .present-toolbar button, .present-nav button { min-height: 40px; padding-inline: 14px; }
  .present-stage { min-height: 0; overflow: hidden; }
  .present-slide {
    min-height: 0; height: 100%; gap: 18px; overflow: hidden;
    padding: 20px clamp(36px, 4vw, 52px);
  }
  .present-kicker { margin-bottom: 6px; font-size: 16px; }
  .present-slide h1, .present-empty h1 { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.04; }
  .present-slide__head > p:last-child, .present-empty > p { margin-top: 8px; font-size: clamp(19px, 1.75vw, 23px); line-height: 1.35; }
  .present-rings { gap: 18px; }
  .present-ring-item { gap: 5px; padding: 14px 20px; }
  .present-ring-item span { font-size: 20px; }
  .present-ring-item b { font-size: clamp(48px, 4.8vw, 62px); }
  .present-ring-item strong { font-size: 20px; }
  .present-ring-item i { font-size: 14px; }
  .present-callout { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 12px 18px; padding: 13px 20px; }
  .present-callout span { font-size: 15px; }
  .present-callout h2 { font-size: 30px; white-space: nowrap; }
  .present-callout p { grid-column: auto; margin: 0; font-size: 19px; line-height: 1.35; }
  .present-blind-list { gap: 10px; }
  .present-blind-list > div { padding: 12px 18px; }
  .present-blind-list p { font-size: 21px; line-height: 1.35; }
  .present-discussion__grid { gap: 34px; min-height: 0; }
  .present-questions { gap: 10px; }
  .present-q-item { grid-template-columns: 42px 1fr; gap: 14px; padding: 12px 16px; }
  .present-q-item b { width: 36px; height: 36px; font-size: 17px; }
  .present-q-item p { font-size: clamp(19px, 1.65vw, 22px); line-height: 1.35; }
  .present-timer { gap: 9px; padding: 16px 18px; }
  .present-timer > span { font-size: 18px; }
  .present-timer > b { font-size: clamp(60px, 6.8vw, 86px); }
  .present-timer > div button { min-height: 36px; }
  .present-timer > button { min-height: 38px; }
  .present-nav { min-height: 64px; padding: 6px clamp(32px, 4vw, 52px); }
  .present-empty { width: min(1120px, calc(100% - 96px)); padding: 22px 0; }
  .present-volume-list { gap: 8px; margin-top: 16px; }
  .present-volume-list button { min-height: 60px; padding: 10px 16px; }
  .present-volume-list button b { font-size: 19px; }
  .present-readiness { margin-top: 16px; padding: 13px 18px; font-size: 18px; }
  .present-checks { gap: 8px; margin-top: 16px; }
  .present-checks > div { padding: 10px 14px; }
  .present-checks b { font-size: 19px; }
}

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--r-pill); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-visual { aspect-ratio: 16 / 10; order: -1; }
  .scenarios { display: flex; grid-template-columns: none; grid-template-rows: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
  .scn { min-width: 78vw; max-width: 78vw; flex: none; scroll-snap-align: start; opacity: 1; transform: none; animation: none; }
  .scn:nth-child(1) { grid-row: auto; }
  .layout-2 { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .score-col { position: static; }
  .progress-line .sn-label { display: none; }
  .present-discussion__grid { grid-template-columns: 1fr; }
  .present-timer { grid-template-columns: 1fr auto; align-items: center; text-align: left; }
  .present-timer > div, .present-timer > button { display: none; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .topbar .brand small { display: none; }
  .topbar { gap: 10px; }
  .iconbtn { padding: 0 10px; font-size: 11px; }
  .btn { min-height: 44px; }
  .sticky-bar { flex-wrap: wrap; }
  .sticky-bar .sb-btn { width: 100%; }
  .review-alert__ack { width: 100%; }
  .review-alerts__list li { flex-direction: column; align-items: stretch; gap: 8px; }
  .review-alerts { grid-template-columns: 1fr; }
  .review-alerts__head { align-items: flex-start; flex-direction: column; }
  .s7-workflow { grid-template-columns: repeat(2, 1fr); }
  .s7-step { min-height: 52px; }
  .s7-focus__nav, .stage-actions { flex-direction: column-reverse; }
  .s7-focus__nav .btn, .stage-actions .btn { width: 100%; }
  .confidence-picks { grid-template-columns: 1fr; }
  .confidence-compare { grid-template-columns: 1fr; }
  .confidence-compare small { grid-column: auto; }
  .confidence-list ~ .sticky-bar { position: static; }
  .revision-summary { grid-template-columns: 1fr; }
  .mode-badge { display: none; }
  .present-toolbar { align-items: flex-start; flex-direction: column; }
  .present-rings, .present-checks { grid-template-columns: 1fr; }
  .present-blind-list > div { grid-template-columns: 40px 1fr; }
  .present-blind-list p { grid-column: 1 / -1; }
  .glossary-popover { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .scn { opacity: 1; transform: none; }
  .hotspot::after { animation: none; opacity: 0; }
  .stage.playing .frame.on { animation: none !important; }
}

/* ---------- 打印 ---------- */
@media print {
  @page { size: A4 portrait; margin: 12mm 12mm 14mm; }
  html, body { background: #fff; color: #111; font-size: 10pt; }
  body::before, body::after { display: none; }
  .topbar, .sitefoot, .scrim, .drawer-panel, .teacher-panel, .embed-fab, .toast,
  .report-actions, .sticky-bar, .nav-prev, .expand, .self-goal,
  .review-alerts, .task-head, .mirror, .mirror-heading, .reflection-field, .reflection-heading, .glossary-popover, .disclaimer { display: none !important; }
  #view.wrap { max-width: none; padding: 0; }
  .task { padding: 0; }
  .print-sheet-head { display: block; margin: 0 0 7mm; padding-bottom: 5mm; border-bottom: 2px solid #222; }
  .print-kicker { margin: 0 0 2mm; font-size: 8pt; letter-spacing: .12em; }
  .print-sheet-head h1 { margin: 0 0 1.5mm; font-size: 20pt; line-height: 1.2; }
  .print-disclaimer { margin: 0 0 4mm; color: #555 !important; font-size: 8pt; }
  .print-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3mm 8mm; }
  .print-meta > div { display: grid; grid-template-columns: 19mm 1fr; align-items: end; min-height: 7mm; }
  .print-meta span { color: #444 !important; font-size: 9pt; }
  .print-meta b { min-height: 6mm; padding: 0 1mm 1mm; border-bottom: 1px solid #555; font-weight: 600; }
  .print-meta--wide { grid-column: 1 / -1; }
  .report-grid { display: block; }
  .score-col { position: static; padding: 4mm; margin-bottom: 5mm; border: 1px solid #888; break-inside: avoid; page-break-inside: avoid; }
  .score-rings { grid-template-columns: repeat(3, 1fr); gap: 5mm; }
  .score-lead { margin-bottom: 3mm; padding: 2.5mm 3mm; }
  .score-advice { margin-top: 3mm; padding-top: 3mm; }
  .total { margin-top: 3mm; padding-top: 2mm; }
  .report-body { padding: 0; border: 0 !important; }
  .report-body h3 { margin: 5mm 0 2.5mm; font-size: 9pt; }
  .panel, .report-body, .score-lead, .blind li, .ledger-item, .cr { background: #fff !important; border-color: #999 !important; color: #000 !important; box-shadow: none !important; }
  .score-lead b, .panel-label, .report-body h3, .blind li::before, .sr .meta .g { color: #000 !important; }
  .sr .dial { background: #ddd !important; }
  .sr .dial::before { background: #fff !important; }
  * { color: #000 !important; }
  .blind li { border-left: 3px solid #000 !important; }
  .finding-report { padding: 3mm 0; break-inside: avoid; page-break-inside: avoid; }
  .finding-report__head span { font-size: 8pt; }
  .finding-report__statement, .finding-report__rationale, .finding-report ul { font-size: 9pt; line-height: 1.5; }
  .revision-summary > div, .concept-review .cr, .blind li, .sr { break-inside: avoid; page-break-inside: avoid; }
  .revision-summary { gap: 2mm; }
  .revision-summary > div { padding: 2mm 2.5mm; border: 1px solid #bbb; background: #fff !important; }
  .print-review { display: block; margin-top: 6mm; break-inside: avoid; page-break-inside: avoid; }
  .print-review > div:first-child { padding: 3mm; border: 1px solid #888; min-height: 18mm; }
  .print-review h3 { margin: 0 0 2mm; font-size: 9pt; }
  .print-review p { margin: 0; line-height: 1.6; }
  .teacher-feedback { margin-top: 4mm; padding: 3mm; border: 1px solid #888; min-height: 34mm; }
  .teacher-feedback span { display: block; height: 8mm; border-bottom: 1px solid #bbb; }
  .print-sign { display: flex; justify-content: space-between; gap: 10mm; margin-top: 5mm; font-size: 9pt; }
}
