/* ============================================================
   秋君Qj 课件工厂 · 设计系统 lesson.css
   布局骨架:实验操作型(化学) —— 满屏舞台 + 玻璃HUD
   token 与《同类课件风格提示词.md》一一对应,改主题只动 :root
   ============================================================ */
:root {
  --blue: #1F6FFF;
  --blue-2: #4D9AFF;
  --blue-soft: #EAF3FF;
  --ink: #16294A;
  --body: #5B6B85;
  --ok: #22B573;
  --warn: #B7791F;
  --warn-bg: #FFF7DC;
  --danger: #F5484D;
  --panel: #e7edf6;
  --panel-border: rgba(255, 255, 255, 0.65);
  --panel-blur: 18px;
  --shadow: 0 8px 32px rgba(23, 58, 110, 0.14);
  --r-lg: 22px;
  --r-md: 14px;
  --heat: linear-gradient(90deg, #2B7FFF, #35C75A, #FFC53D, #FF7A45, #F5484D);
  --btn-grad: linear-gradient(135deg, #4D9AFF, #1F6FFF);
  --font: "HarmonyOS Sans SC", "MiSans", "Alibaba PuHuiTi 3.0", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { font-family: var(--font); color: var(--ink); background: #DCE9F8; }

.viewport { position: relative; width: 100%; height: 100vh; }
.stage { position: absolute; inset: 0; overflow: hidden; }

/* ---------- 场景层(背景 + 状态图层) ---------- */
.scene { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 68% 8%, #F6FAFF 0%, #DCE9F8 46%, #B9D2EE 100%); }
.scene::after { /* 地台光影,模拟实验室纵深 */
  content: ""; position: absolute; inset: auto 0 0 0; height: 22%;
  background: linear-gradient(180deg, transparent, rgba(23, 58, 110, 0.10));
}
.scene-layer { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; transition: opacity .9s ease; }
.scene-layer.is-faded { opacity: 0; }
.scene-layer.is-top { opacity: 1; }

/* ---------- 顶栏 ---------- */
/* 标题区（09-23 用户指示：移左上角紧凑化，减少对场景的遮挡） */
.topbar { position: absolute; top: 24px; left: 28px; z-index: 6;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.subject-chip { flex: none; padding: 5px 12px; border-radius: 999px;
  background: var(--panel); backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border); box-shadow: var(--shadow);
  color: var(--blue); font-size: 13px; font-weight: 700; white-space: nowrap; }
/* 标题柔白垫板（2026-09-20 用户指示：字下垫白，防底板图吃字） */
.title-wrap { background: rgba(236,241,248,.9); border: 1px solid #DCE6F2; border-radius: 14px;
  padding: 8px 14px 10px; box-shadow: 0 4px 14px rgba(31,60,90,.16); backdrop-filter: blur(4px);
  max-width: 320px; }
.title-wrap h1 { font-size: 20px; font-weight: 800; letter-spacing: .3px; color: #14345c; }
.title-wrap p { margin-top: 4px; font-size: 12.5px; line-height: 1.55; color: #34455c; }
.topbar-actions { position: fixed; top: 24px; right: 28px; margin-left: 0; display: flex; gap: 10px; z-index: 60; }
.ghost-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px;
  padding: 0 18px; border: 1px solid var(--panel-border); border-radius: 999px;
  background: var(--panel); backdrop-filter: blur(var(--panel-blur));
  box-shadow: var(--shadow); color: var(--ink); font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; }
.ghost-btn:hover { border-color: var(--blue-2); color: var(--blue); }
.ghost-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ---------- 操作按钮簇 ---------- */
.action-cluster { position: absolute; left: 28px; bottom: 96px; display: flex; gap: 12px; z-index: 2; }
.pill-btn { display: inline-flex; align-items: center; gap: 9px; height: 46px;
  padding: 0 22px; border: none; border-radius: 999px; font-family: inherit;
  font-size: 16px; font-weight: 700; cursor: pointer; }
.pill-btn.primary { background: var(--btn-grad); color: #fff;
  box-shadow: 0 6px 18px rgba(31, 111, 255, 0.35); }
.pill-btn.primary:hover { filter: brightness(1.06); }
.pill-btn.secondary { background: var(--panel); backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border); box-shadow: var(--shadow); color: var(--ink); }
.pill-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 右侧控制塔 ---------- */
.control-tower { position: absolute; top: 88px; right: 28px; bottom: 96px; width: 400px; z-index: 2;
  padding: 20px 20px 16px; border-radius: var(--r-lg);
  background: var(--panel); backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden auto; }
.tower-section { background: #e7edf5; border: 1px solid #DCE6F2;
  border-radius: var(--r-md); padding: 14px 16px; }
.tower-title { display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.tower-title .live { display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ok); }
.tower-title .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 181, 115, .18); }

/* 进度滑杆 */
.progress-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.progress-head .pct { font-size: 34px; font-weight: 800; color: var(--blue);
  font-variant-numeric: tabular-nums; }
.slider-row { display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--body); font-variant-numeric: tabular-nums; }
input.progress { -webkit-appearance: none; appearance: none; flex: 1; height: 8px;
  border-radius: 999px; background: var(--blue); outline: none; cursor: pointer; }
input.progress.heat { background: var(--heat); }
input.progress::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; border: 3px solid var(--blue);
  box-shadow: 0 2px 8px rgba(23, 58, 110, 0.3); }
input.progress::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue); box-shadow: 0 2px 8px rgba(23, 58, 110, 0.3); }

/* 阶段缩略图 */
.stage-thumbs { display: flex; align-items: flex-start; gap: 4px; }
.thumb { flex: 1; min-width: 0; background: none; border: none; font-family: inherit;
  cursor: pointer; text-align: center; padding: 0 2px; }
.thumb .ring { width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 50%;
  border: 2px solid #D5E3F5; background: #e7edf5 center/cover no-repeat;
  display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #9FB4D0;
  transition: all .25s ease; }
.thumb .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.thumb .t-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.thumb .t-pct { font-size: 12px; color: var(--body); font-variant-numeric: tabular-nums; }
.thumb.active .ring { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(31, 111, 255, .15); color: var(--blue); }
.thumb.active .t-name { color: var(--blue); }

/* 现象说明卡 */
.phen-desc { font-size: 14.5px; line-height: 1.7; color: var(--body); margin-top: 4px; }
.phen-name { font-size: 21px; font-weight: 800; color: var(--blue); margin: 2px 0 6px; }
.tip-strip { display: flex; align-items: center; gap: 9px; margin-top: 12px;
  padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); }
.tip-strip svg { flex: none; width: 17px; height: 17px; stroke: var(--warn); fill: none; stroke-width: 2; stroke-linecap: round; }
.tip-strip .tip-label { flex: none; font-size: 13px; font-weight: 800; color: var(--warn); }
.tip-strip .tip-text { font-size: 13px; color: #8A6A2F; line-height: 1.5; }

/* 化学表达式 */
.equation { text-align: center; padding: 6px 0 2px; }
.equation .eq { font-size: 22px; font-weight: 700; letter-spacing: 1px;
  font-variant-numeric: tabular-nums; }
.equation .eq-note { margin-top: 6px; font-size: 12.5px; color: var(--body); }

/* 读数行 */
.readouts { display: flex; flex-direction: column; }
.readout-row { display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 2px; border-bottom: 1px dashed #E3EDF8; }
.readout-row:last-child { border-bottom: none; }
.readout-row .r-label { font-size: 14px; color: var(--body); }
.readout-row .r-value { font-size: 22px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.readout-row .r-value em { font-style: normal; font-size: 12.5px; font-weight: 600;
  color: var(--body); margin-left: 4px; }
.readout-note { font-size: 11.5px; color: #93A5C2; margin-top: 6px; }

/* ---------- 底部材料托盘 ---------- */
.material-tray { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 2;
  max-width: min(72vw, 860px); display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-radius: var(--r-lg);
  background: var(--panel); backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border); box-shadow: var(--shadow); }
.tray-title { flex: none; font-size: 13px; font-weight: 800; color: var(--blue); }
.tray-title small { display: block; font-weight: 600; color: var(--body); font-size: 11.5px; }
.tray-item { display: flex; align-items: center; gap: 7px; }
.tray-item .n { width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft);
  color: var(--blue); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.tray-item .m { font-size: 14px; font-weight: 700; }
.tray-item .m i { font-style: normal; display: inline-block; width: 9px; height: 9px;
  border-radius: 50%; margin-right: 5px; }

/* ---------- 全屏按钮 / 水印 ---------- */
.fullscreen-control { position: absolute; top: 24px; right: 28px; z-index: 5;
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--panel-border);
  background: var(--panel); backdrop-filter: blur(var(--panel-blur));
  box-shadow: var(--shadow); font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--ink); cursor: pointer; }
.topbar-actions .fullscreen-control { position: static; }
.fullscreen-control svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.watermark { position: absolute; right: 30px; bottom: 26px; font-size: 11px; z-index: 2;
  color: rgba(22, 41, 74, 0.45); letter-spacing: .4px; pointer-events: none; }

/* ---------- 原理弹层 ---------- */
.principle-mask { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center;
  background: rgba(16, 34, 66, 0.35); backdrop-filter: blur(4px); }
.principle-card { width: min(560px, 84vw); border-radius: var(--r-lg); padding: 26px 28px;
  background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow); }
/* duo 模式：原理卡放左屏中部（默认居中会被右屏盖一半） */
body.duo-mode .principle-mask { position: fixed; z-index: 70; }
body.duo-mode .principle-card { position: fixed; left: calc((100vw - 52vw) / 2 - 280px); top: 50%; transform: translateY(-50%); margin-left: 0; }
.principle-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.principle-card p { font-size: 15px; line-height: 1.8; color: var(--body); }
.principle-card .close { margin-top: 18px; }

/* ---------- 窄屏兜底(投影 16:9 为主,此为保命规则) ---------- */
@media (max-width: 1100px) {
  .control-tower { width: 340px; }
  .title-wrap h1 { font-size: 26px; }
}

/* ============ sim3d 物理仿真 HUD（阶段2追加） ============ */
.sim3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.sim3d-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: var(--body); text-align: center; padding: 30px; }
.param-label { font-size: 13px; color: var(--body); margin: 8px 0 5px; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.st-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line, #d8e2ee);
  background: #e7edf5; color: var(--blue); font-size: 17px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 6px rgba(31, 60, 90, 0.08); }
.st-btn:hover { border-color: var(--blue-2); }
.st-val { font-family: "JetBrains Mono", Consolas, monospace; font-variant-numeric: tabular-nums;
  font-size: 16px; color: #1f2937; min-width: 44px; text-align: center; }
.st-unit { font-size: 12px; color: var(--body); }
.sample-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.sample-table th { background: var(--blue-soft); color: var(--blue); font-size: 12px;
  padding: 6px 8px; text-align: center; font-weight: 700; }
.sample-table td { padding: 6px 8px; text-align: center; font-size: 13px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25); color: #1f2937; }
.sample-table td.mono { font-family: "JetBrains Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
.chart-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.chart-tab { flex: 1; height: 32px; border-radius: 999px; border: 1px solid #d8e2ee;
  background: #e7edf5; color: var(--body); font-size: 12.5px; cursor: pointer; }
.chart-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.chart-canvas { width: 100%; border-radius: 12px; background: #fbfdff; border: 1px solid #e3ecf5; }
.chart-formula { font-family: "JetBrains Mono", Consolas, monospace; font-size: 13px;
  color: var(--blue); margin-top: 8px; text-align: center; font-weight: 600; }
.chart-note { font-size: 12px; color: var(--body); margin-top: 4px; line-height: 1.6; }
.stage-list { display: flex; flex-direction: column; gap: 6px; }
.stage-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 10px; border: 1px solid #e0e9f2; background: #fff; cursor: pointer; text-align: left; }
.stage-item.active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.stage-item .n { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft);
  color: var(--blue); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.stage-item.active .n { background: var(--blue); color: #fff; }
.stage-item .t { font-size: 13px; color: #1f2937; }
.live { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--blue-soft);
  color: var(--blue); font-weight: 700; }

/* ---------- sim3d 短屏压缩：1366×768 下核心图表须页面首屏可见（必修4，双列网格版） ---------- */
@media (max-height: 820px) {
  .control-tower { top: 76px; bottom: 88px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
  .control-tower .tower-section { margin: 0; padding: 10px 12px; }
  .control-tower .tower-title { font-size: 14px; margin-bottom: 5px; }
  /* 前三段双列排布：参数|时间 同行，读数第二行；图表/采样/阶段跨双列（DOM 序 4-6） */
  .control-tower .tower-section:nth-of-type(n + 4) { grid-column: 1 / -1; }
  .param-label { margin: 3px 0 2px; font-size: 12px; }
  .st-btn { width: 28px; height: 28px; font-size: 15px; }
  .st-val { font-size: 14px; min-width: 38px; }
  .readout-row { padding: 5px 0; }
  .readout-row .r-label { font-size: 12.5px; }
  .readout-row .r-value { font-size: 15px; }
  .sim3d-chart-canvas, .chart-canvas { height: 200px; }
  .chart-note { display: none; }
  .chart-formula { margin-top: 5px; font-size: 12px; }
  .sample-table th { padding: 4px 5px; }
  .sample-table td { padding: 4px 5px; font-size: 12px; }
  .stage-list { gap: 4px; }
  .stage-item { padding: 4px 7px; }
}

/* ---------- drill 档（装片闯关）：步骤卡/选项/结算（阶段5） ---------- */
.drill-progress { max-width: 720px; margin: 18px auto 6px; padding: 0 24px; }
.drill-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.6); overflow: hidden;
  border: 1px solid rgba(148,163,184,0.35); }
.drill-bar-fill { height: 100%; background: var(--blue, #1677FF); border-radius: 999px;
  transition: width .35s ease; }
.drill-progress-label { font-family: "JetBrains Mono", Consolas, monospace; font-variant-numeric: tabular-nums;
  font-size: 12.5px; color: #5b6b7c; margin-top: 6px; text-align: center; }
.drill-card { max-width: 720px; margin: 14px auto; padding: 26px 30px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border: 1px solid #E3EDF8; border-radius: 18px; box-shadow: 0 12px 32px rgba(31,60,90,0.10); }
.drill-step-name { margin-bottom: 10px; }
.drill-step-badge { display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; border-radius: 12px; background: var(--blue, #1677FF);
  color: #fff; font-size: 22px; font-weight: 800; }
.drill-prompt { font-size: 18px; font-weight: 700; color: #1F2937; margin: 6px 0 16px; }
.drill-option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 16px; margin: 8px 0; border-radius: 12px; border: 1.5px solid #d8e2ee;
  background: #fff; color: #1F2937; font-size: 14.5px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.drill-option:hover { border-color: var(--blue, #1677FF); box-shadow: 0 4px 14px rgba(22,119,255,0.14); transform: translateY(-1px); }
.drill-option-n { flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--blue-soft, #EAF3FF); color: var(--blue, #1677FF);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.drill-option.is-correct { border-color: #22b573; background: #f0fbf5; }
.drill-option.is-wrong { border-color: #e5484d; background: #fef1f1; }
.drill-tip { margin-top: 12px; font-size: 13px; color: #5b6b7c; line-height: 1.7; }
.drill-tip-warn { color: #c0392b !important; font-weight: 600; }
.shake-no { animation: drillshake .3s; }
.shake-ok { animation: drillpop .3s; }
@keyframes drillshake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
@keyframes drillpop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.012)} }
.drill-done { max-width: 720px; margin: 14px auto; padding: 40px 30px; text-align: center;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border: 1px solid #E3EDF8; border-radius: 18px; box-shadow: 0 12px 32px rgba(31,60,90,0.10); }
.drill-done-title { font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--blue, #1677FF); }
.drill-score { font-family: "JetBrains Mono", Consolas, monospace; font-variant-numeric: tabular-nums;
  font-size: 56px; font-weight: 800; color: #1F2937; margin: 8px 0 2px; }
.drill-stars { font-size: 22px; color: #f5a623; margin-bottom: 8px; }
.drill-done-msg { font-size: 14px; color: #5b6b7c; margin-bottom: 18px; }
.hidden { display: none !important; }

/* ---------- sim3d 底板图层（backgroundImage 模式：canvas 透明，底板垫底） ---------- */
.sim3d-bg { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none; user-select: none; }
.sim3d-canvas { position: relative; z-index: 1; }

/* ---------- Track B：公式条 / 五步流程条 / 3D 锚点标注（原站为底+差异化柔白设计） ---------- */
.formula-bar { position: static; margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.formula-chip { background: #e7edf6; border: 1px solid #D5E3F5; border-radius: 10px; padding: 6px 12px;
  font: 700 13px "JetBrains Mono", Consolas, monospace; color: var(--blue, #1677FF);
  box-shadow: 0 2px 8px rgba(31,60,90,.08); white-space: nowrap; }
.sim3d-driver .material-tray { display: none; }
.stage-bar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; width: max-content; max-width: calc(100vw - 56px); display: flex; gap: 4px;
  background: #e7edf6; border: 1px solid #DCE6F2; border-radius: 14px; padding: 8px 10px; z-index: 2;
  box-shadow: 0 10px 26px rgba(31,60,90,.12); overflow-x: auto; }
.stage-chip { display: flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 6px 10px;
  border-radius: 10px; cursor: pointer; text-align: left; }
.stage-chip:hover { background: rgba(31,111,255,.08); }
.stage-chip .n { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #cfdcf0; color: #1F3D66;
  font: 700 11px/20px Consolas, monospace; text-align: center; }
.stage-chip .stage-txt { display: flex; flex-direction: column; align-items: flex-start; }
.stage-chip .t { font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--body, #1F2937); white-space: nowrap; }
.stage-chip .d { font-size: 10.5px; line-height: 1.2; color: #5b6b7c; white-space: nowrap; }
.stage-chip.active { background: var(--blue, #1677FF); }
.stage-chip.active .n { background: #fff; color: var(--blue, #1677FF); }
.stage-chip.active .t { color: #fff; }
.stage-chip.active .d { color: rgba(255,255,255,.85); }
.auto-badge { margin-left: 8px; font-size: 10px; font-weight: 700; color: var(--blue, #1677FF);
  background: rgba(22,119,255,.1); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.callouts { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.callout { position: absolute; transform: translate(-50%, -100%);
  background: rgba(255,255,255,.92); border: 1px solid rgba(116,169,225,.5); border-radius: 10px;
  padding: 6px 10px; text-align: center; box-shadow: 0 4px 14px rgba(31,60,90,.16); }
.callout .co-t { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: #14345c; white-space: nowrap; }
.callout .co-s { font-size: 10.5px; line-height: 1.2; color: #5b6b7c; white-space: nowrap; }
.guide-mask { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center;
  background: rgba(15,35,58,.45); }
.guide-card { width: min(560px, 92%); max-height: 80%; overflow: auto; background: #e7edf6;
  border: 1px solid #DCE6F2; border-radius: 18px; padding: 22px 24px; box-shadow: 0 18px 44px rgba(31,60,90,.22); }
.guide-title { font-size: 16px; font-weight: 800; color: #14345c; margin-bottom: 12px; }
.guide-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #cfdcf0; }
.guide-row:last-of-type { border-bottom: 0; }
.guide-n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--blue, #1677FF);
  color: #fff; font: 700 12px/22px Consolas, monospace; text-align: center; }
.guide-b { min-width: 0; }
.guide-name { font-size: 13.5px; font-weight: 700; color: #1F2937; }
.guide-tip { font-size: 11.5px; color: #5b6b7c; margin-top: 2px; }
.guide-card .pill-btn { margin-top: 6px; }

/* ---------- 窄屏响应式（2026-09-20 用户反馈窄窗元素互叠）：≤900px 全驱动切竖排滚动 ---------- */
@media (max-width: 900px) {
  .ghost-btn span, .pill-btn span { white-space: nowrap; }
  .viewport { height: auto; min-height: 100vh; }
  .stage { position: static; height: auto; }
  .topbar { position: static; flex-wrap: wrap; padding: 12px 14px 0; gap: 10px; }
  .title-wrap { max-width: 100%; }
  .topbar-actions { margin-left: 0; }
  .driver-sim3d .scene { position: relative; inset: auto; height: 56vh; }
  .driver-drill .scene, .driver-crossfade .scene, .driver-video .scene { position: static; inset: auto; height: auto; padding: 0 14px; }
  .action-cluster { position: static; margin: 12px 14px; flex-wrap: wrap; }
  .control-tower { position: static; width: auto; margin: 12px 14px; }
  .material-tray { position: static; transform: none; margin: 12px 14px; flex-wrap: wrap; }
  .stage-bar { position: static; margin: 12px 14px; flex-wrap: wrap; }
  .callouts, .watermark { display: none; }
}

/* ---------- drill 宽屏：内容在"左缘—引导塔"之间居中（2026-09-20 用户指示往居中靠） ---------- */
@media (min-width: 901px) {
  .driver-drill .scene { right: 456px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; background: transparent; }
}

/* ---------- 解冻首批：交互控件 / IA 教学卡 / toast ---------- */
.ctl-row { margin: 8px 0; }
.ctl-btn { display: block; width: 100%; margin: 6px 0; padding: 10px 14px;
  border: 1px solid #c9d8ea; border-radius: 10px; background: #f4f8fc; color: #16294a;
  font-family: inherit; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.ctl-btn:hover { border-color: #1f6fff; color: #1f6fff; background: #eaf3ff; }
.ctl-btn.on { border-color: #1f6fff; background: #eaf3ff; color: #1f6fff; }
.ia-mask { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(13, 27, 42, 0.45); backdrop-filter: blur(3px); }
.ia-card { width: min(520px, 86vw); background: #fff; border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 18px 60px rgba(13, 27, 42, 0.35); }
.ia-title { font-size: 20px; font-weight: 800; color: #16294a; margin-bottom: 10px; }
.ia-msg { font-size: 15px; line-height: 1.7; color: #425061; }
.ia-teach { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff7dc;
  color: #8a6a2f; font-size: 13px; line-height: 1.6; }
.ia-card button { margin-top: 16px; }
.ia-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 95;
  background: rgba(22, 41, 74, 0.92); color: #fff; font-size: 14px; padding: 10px 18px;
  border-radius: 999px; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.ia-toast.show { opacity: 1; }

/* ---- 实时状态面板（spec.statusPanel；v1 同款一眼可读态） ---- */
.status-panel .sp-row { display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px dashed rgba(31, 111, 255, .14); }
.status-panel .sp-stage-row { border-bottom: 1px solid rgba(31, 111, 255, .25); }
.status-panel .sp-label { font-size: 13px; color: var(--body); }
.status-panel .sp-value { font-size: 16px; font-weight: 800; color: var(--ink); }
.status-panel .sp-stage { color: var(--blue); font-size: 17px; }
.status-panel .sp-checks-title { margin: 10px 0 4px; font-size: 13px; font-weight: 800; color: var(--blue); }
.status-panel .sp-check { display: flex; align-items: center; gap: 8px; padding: 5px 0;
  font-size: 13px; color: var(--body); }
.status-panel .sp-check .dot { width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #b9c8dc; background: #fff; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; }
.status-panel .sp-check.done { color: var(--ink); font-weight: 600; }
.status-panel .sp-check.done .dot { border-color: var(--blue); background: var(--blue); }
.status-panel .sp-check.done .dot::after { content: "✓"; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }

/* ---- 塔区可折叠（09-23 用户指示：右侧面板重构，数据区默认收纳） ---- */
.tower-section.collapsible .tower-title { cursor: pointer; user-select: none; margin-bottom: 0; }
.tower-section.collapsible.open .tower-title { margin-bottom: 10px; }
.tower-section.collapsible .fold-arrow { font-size: 12px; color: var(--body);
  transition: transform .18s ease; display: inline-block; margin-right: 6px; }
.tower-section.collapsible.open .fold-arrow { transform: rotate(90deg); }
.tower-section.collapsible:not(.open) .collapsible-body { display: none; }

/* ---- 左侧状态塔（spec.statusPanel.side="left"；避开标题卡与左下按钮簇） ---- */
.tower-left { position: absolute; left: 28px; top: 224px; bottom: 176px; width: 330px; z-index: 2;
  padding: 18px 18px 14px; border-radius: var(--r-lg);
  background: var(--panel); backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden auto; }
.tower-left .tower-section { background: #e7edf5; border: 1px solid #DCE6F2;
  border-radius: var(--r-md); padding: 14px 16px; }

/* ---- 情景化检查（kind=check：下拉 + 主检查钮 + 修复钮 + 提示） ---- */
.ctl-select { width: 100%; height: 40px; padding: 0 10px; margin: 4px 0 8px;
  border: 1px solid #c9d8ea; border-radius: 10px; background: #fff;
  color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ctl-btn-primary { background: var(--btn-grad); color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(31, 111, 255, 0.3); }
.ctl-btn-primary:disabled { filter: saturate(.5) brightness(.96); cursor: wait; }
.ctl-hint { margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  background: var(--warn-bg); color: #8A6A2F; font-size: 12.5px; line-height: 1.5; }

/* ============================================================
   暗色仪器主题（2026-09-23 用户选定方案B：石墨精密仪器 HUD）
   覆盖层——只改色彩/材质/描边，不动布局与结构
   ============================================================ */
:root {
  --dk-panel: rgba(16, 22, 30, .88);
  --dk-panel2: #0E141B;
  --dk-line: rgba(130, 170, 210, .16);
  --dk-tx: #D9E6F2;
  --dk-dim: #8AA0B8;
  --dk-cyan: #3EC8FF;
  --dk-amber: #FFB454;
  --dk-ok: #3DDC97;
}
/* 面板基底 */
.topbar .title-wrap, .control-tower, .tower-left, .status-panel,
.card.status, .card.time, .card.ro, .panel {
  background: var(--dk-panel) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid var(--dk-line) !important;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5) !important;
}
.tower-section { background: var(--dk-panel2) !important; border: 1px solid var(--dk-line) !important; }
.tower-title { color: var(--dk-cyan) !important; }
.tower-title .live { color: var(--dk-ok) !important; }
.tower-title .live::before { background: var(--dk-ok) !important; box-shadow: 0 0 0 3px rgba(61, 220, 151, .18) !important; }
/* 标题卡 */
.topbar .title-wrap { border-radius: 12px; }
.topbar .title-wrap h1 { color: #F2F7FC !important; }
.topbar .title-wrap p { color: var(--dk-dim) !important; }
.subject-chip { background: transparent !important; border: 1px solid rgba(255, 180, 84, .5) !important;
  color: var(--dk-amber) !important; box-shadow: none !important; }
.ghost-btn { background: var(--dk-panel) !important; border-color: var(--dk-line) !important; color: var(--tx, #D9E6F2) !important; }
/* 状态面板 */
.sp-row { border-bottom-color: rgba(130, 170, 210, .1) !important; }
.sp-label, .readout-row .r-label { color: var(--dk-dim) !important; }
.sp-value, .readout-row .r-value { color: var(--dk-tx) !important; }
.sp-stage { color: var(--dk-cyan) !important; }
.sp-checks-title { color: var(--dk-dim) !important; }
.sp-check { color: var(--dk-dim) !important; }
.sp-check .dot { border-color: rgba(130, 170, 210, .4) !important; background: transparent !important; }
.sp-check.done { color: var(--dk-tx) !important; }
.sp-check.done .dot { border-color: var(--dk-ok) !important; background: var(--dk-ok) !important; }
.readout-note { color: rgba(138, 160, 184, .7) !important; }
/* 控件 */
.param-label, .lab2 { color: var(--dk-dim) !important; }
.ctl-select { background: var(--dk-panel2) !important; border-color: var(--dk-line) !important; color: var(--dk-tx) !important; }
.ctl-btn { background: transparent !important; border: 1px solid var(--dk-line) !important; color: var(--dk-tx) !important; }
.ctl-btn:hover { border-color: var(--dk-cyan) !important; color: var(--dk-cyan) !important; }
.ctl-btn-primary, .ctl-btn.on { background: linear-gradient(180deg, #1B2B3A, #12202C) !important;
  border: 1px solid var(--dk-cyan) !important; color: var(--dk-cyan) !important; }
.ctl-btn-primary:disabled { filter: saturate(.4) brightness(.85) !important; }
.ctl-btn.on { border-color: var(--dk-cyan) !important; }
.ctl-hint { background: rgba(255, 180, 84, .1) !important; color: var(--dk-amber) !important; }
.st-btn { background: var(--dk-panel2) !important; border-color: var(--dk-line) !important; color: var(--dk-cyan) !important; }
.st-val { color: var(--dk-amber) !important; }
.st-unit { color: var(--dk-dim) !important; }
input.progress { background: var(--dk-cyan) !important; }
input.progress::-webkit-slider-thumb { background: var(--dk-panel2) !important; border-color: var(--dk-cyan) !important; }
/* 按钮 */
.pill-btn.primary { background: linear-gradient(180deg, #1B2B3A, #12202C) !important;
  border: 1px solid var(--dk-cyan) !important; color: var(--dk-cyan) !important; box-shadow: 0 0 18px rgba(62, 200, 255, .18) !important; }
.pill-btn.secondary { background: var(--dk-panel) !important; border: 1px solid var(--dk-line) !important;
  color: var(--dk-tx) !important; backdrop-filter: blur(14px) !important; }
/* 步骤轴 */
.stage-bar { background: var(--dk-panel) !important; border-color: var(--dk-line) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45) !important; }
.stage-chip .n { background: #1B2734 !important; color: var(--dk-dim) !important; border: 1px solid var(--dk-line) !important; border-radius: 4px !important; }
.stage-chip .t { color: var(--dk-tx) !important; }
.stage-chip .d { color: var(--dk-dim) !important; }
.stage-chip.active { background: rgba(62, 200, 255, .12) !important; box-shadow: inset 0 0 0 1px rgba(62, 200, 255, .45) !important; }
.stage-chip.active .n { background: var(--dk-cyan) !important; color: #06202E !important; border-color: transparent !important; }
.stage-chip.active .t { color: var(--dk-cyan) !important; }
.stage-chip.active .d { color: var(--dk-dim) !important; }
/* 事故卡 / toast */
.ia-mask { background: rgba(4, 8, 14, .55) !important; }
.ia-card { background: var(--dk-panel) !important; border: 1px solid var(--dk-line) !important; }
.ia-title { color: var(--dk-amber) !important; }
.ia-msg { color: var(--dk-tx) !important; }
.ia-teach { background: rgba(255, 180, 84, .1) !important; color: var(--dk-amber) !important; }
.ia-toast { background: var(--dk-panel) !important; color: var(--dk-tx) !important;
  border: 1px solid rgba(62, 200, 255, .35) !important; }
/* 公式条/水印 */
.formula-chip { background: var(--dk-panel2) !important; border: 1px solid var(--dk-line) !important; color: var(--dk-tx) !important; }
.courseware-license-watermark { color: rgba(138, 160, 184, .55) !important;
  background: rgba(16, 22, 30, .5) !important; border-color: var(--dk-line) !important; }

/* 教学信息块（状态面板内：方程式+判断/安全条目） */
.sp-notes { margin-top: 10px; border-top: 1px dashed rgba(130, 170, 210, .18); padding-top: 9px; }
.sp-eq { font-family: Consolas, monospace; font-size: 12.5px; color: var(--dk-amber, #FFB454);
  background: rgba(255, 180, 84, .08); border: 1px solid rgba(255, 180, 84, .25);
  border-radius: 6px; padding: 6px 8px; margin-bottom: 8px; letter-spacing: .5px; }
.sp-note { font-size: 12px; line-height: 1.55; color: var(--dk-dim, #8AA0B8); padding: 4px 0; }
.sp-note b { color: var(--dk-cyan, #3EC8FF); font-weight: 700; margin-right: 6px; }

/* ---------- 微观粒子视图（放大镜 + 半反应教学卡） ---------- */
.micro-lens {
  position: absolute; z-index: 30; pointer-events: auto; cursor: pointer;
  /* 方形 scissor 视口 + 径向渐变裁圆：圆内透出 WebGL、圆外画成暗底+铜环 */
  background: radial-gradient(circle at 50% 50%,
    rgba(11, 22, 38, 0) 0 44.5%,
    rgba(11, 22, 38, 0) 44.5%,
    #b9c2c9 45% 46.2%,
    #6f8291 46.2% 47.4%,
    #0b1626 47.6% 100%);
  border-radius: 8px;
  filter: drop-shadow(0 10px 22px rgba(6, 14, 24, .45));
}
.micro-lens-title {
  position: absolute; left: 50%; top: -26px; transform: translateX(-50%);
  white-space: nowrap; padding: 3px 10px; border-radius: 999px;
  background: rgba(11, 22, 38, .82); border: 1px solid rgba(62, 200, 255, .35);
  color: var(--dk-cyan, #3EC8FF); font: 700 11px/1.4 "Noto Sans SC", sans-serif;
  letter-spacing: .06em; pointer-events: none;
}
.micro-lens-hint {
  position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%);
  white-space: nowrap; color: #43586b; font: 500 10.5px/1.4 "Noto Sans SC", sans-serif;
  background: rgba(233, 240, 246, .8); border-radius: 999px; padding: 2px 9px;
  border: 1px solid rgba(130, 160, 184, .3); pointer-events: none;
}
.micro-card {
  position: absolute; z-index: 60; left: 16px; top: 168px; width: 308px;
  background: var(--dk-panel, #101823); border: 1px solid var(--dk-line, #223246);
  border-radius: 10px; padding: 12px 14px 13px;
  box-shadow: 0 16px 40px rgba(4, 10, 18, .5);
  animation: microCardIn .18s ease-out;
}
@keyframes microCardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.micro-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.micro-card-kicker { font: 700 10px/1 "JetBrains Mono", Consolas, monospace; letter-spacing: .14em;
  color: var(--dk-cyan, #3EC8FF); text-transform: uppercase; }
.micro-card-close { border: 0; background: transparent; color: var(--dk-dim, #8AA0B8);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.micro-card-close:hover { color: #fff; }
.micro-card-title { font: 700 14.5px/1.35 "Noto Sans SC", sans-serif; color: var(--dk-tx, #E8F1FA); margin-bottom: 7px; }
.micro-card-eq { font: 700 14px/1.3 Consolas, monospace; letter-spacing: .5px;
  color: var(--dk-amber, #FFB454); background: rgba(255, 180, 84, .08);
  border: 1px solid rgba(255, 180, 84, .25); border-radius: 6px; padding: 7px 9px; margin-bottom: 8px; }
.micro-card-line { position: relative; padding: 3px 0 3px 14px; font-size: 12px; line-height: 1.55; color: var(--dk-dim, #8AA0B8); }
.micro-card-line::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--dk-cyan, #3EC8FF); }
.micro-quiz { margin-top: 9px; border-top: 1px dashed rgba(130, 170, 210, .18); padding-top: 9px; }
.micro-quiz-q { font: 700 12.5px/1.4 "Noto Sans SC", sans-serif; color: var(--dk-tx, #E8F1FA); margin-bottom: 7px; }
.micro-quiz-opt { display: block; width: 100%; text-align: left; margin: 5px 0; padding: 7px 10px;
  border-radius: 7px; border: 1px solid var(--dk-line, #223246); background: rgba(20, 30, 44, .6);
  color: var(--dk-tx, #E8F1FA); font: 500 12px/1.4 "Noto Sans SC", sans-serif; cursor: pointer; }
.micro-quiz-opt:hover { border-color: rgba(62, 200, 255, .55); }
.micro-quiz-opt.right { border-color: #35c98e; color: #7fe3bd; background: rgba(53, 201, 142, .1); }
.micro-quiz-opt.wrong { border-color: #e2635a; color: #ff9d96; background: rgba(226, 99, 90, .1); }
.micro-quiz-ex { margin-top: 7px; padding: 7px 9px; border-radius: 6px; font-size: 11.5px; line-height: 1.55; }
.micro-quiz-ex.ok { background: rgba(53, 201, 142, .1); color: #9fe8ca; border: 1px solid rgba(53, 201, 142, .3); }
.micro-quiz-ex.no { background: rgba(255, 180, 84, .08); color: var(--dk-amber, #FFB454); border: 1px solid rgba(255, 180, 84, .28); }

/* ================= 1:1 双面板版式（spec.microBoard 触发） ================= */
/* 布局覆盖：旧 HUD 全退场，左屏=宏观 3D（48%），右屏=微观解析板（52%） */
body.duo-mode .topbar { background: transparent !important; border: none !important; box-shadow: none !important; z-index: 60 !important; }
body.duo-mode .topbar .title-wrap, body.duo-mode .topbar .subject-chip { display: none !important; }
body.duo-mode .control-tower, body.duo-mode .controls,
body.duo-mode .action-cluster,
body.duo-mode .stage-bar, body.duo-mode .callouts, body.duo-mode .tower-left { display: none !important; }
body.duo-mode .scene { left: 0; right: 52%; top: 0; bottom: 0; width: auto; height: auto; }

/* ---------- 右屏骨架 ---------- */
.mb-root { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 30;
  display: flex; flex-direction: column; padding: 14px 18px 16px;
  background: linear-gradient(180deg, #115468 0%, #0d4154 34%, #0a3344 62%, #082835 100%);
  font-family: "Microsoft YaHei", sans-serif; overflow: hidden; }
.mb-head { display: flex; align-items: center; gap: 10px; }
.mb-title { color: #eaf6fb; font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.mb-state { background: #2f9fe0; color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 13px; border-radius: 999px; }
.mb-ghosts { margin-left: auto; display: flex; gap: 8px; }
.mb-ghost { padding: 5px 13px; border-radius: 999px; border: 1px solid rgba(234,246,251,.4);
  background: transparent; color: rgba(234,246,251,.92); font-size: 12px; font-weight: 600; cursor: pointer; }
.mb-ghost:hover { background: rgba(234,246,251,.12); }
.mb-canvas { flex: 1; width: 100%; min-height: 0; display: block; }

/* 半反应双卡 */
.mb-rxn-row { display: flex; gap: 12px; margin-top: 4px; }
.mb-rxn { flex: 1; background: rgba(6,28,38,.78); border-radius: 12px; padding: 9px 14px 8px;
  box-shadow: inset 0 0 0 1px rgba(140,220,255,.10); }
.mb-rxn-k { font-size: 11px; font-weight: 700; }
.mb-neg .mb-rxn-k { color: #7fd4ff; } .mb-pos .mb-rxn-k { color: #ffb454; }
.mb-rxn-eq { margin-top: 4px; font: 700 17px/1.2 Consolas, monospace; color: #fff; letter-spacing: .5px; }
.mb-rxn-s { margin-top: 2px; font-size: 10px; color: rgba(223,243,251,.55); }

/* 数据条 */
.mb-data { display: flex; align-items: flex-start; margin-top: 10px; gap: 14px; }
.mb-pct-num { font-size: 44px; font-weight: 800; color: #fff; line-height: 1; }
.mb-pct-lab { font-size: 11px; color: rgba(223,243,251,.65); margin-top: 4px; }
.mb-barwrap { flex: 1; margin-top: 12px; }
.mb-range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #37d67a, #ffd257 55%, #ff6b57); outline: none; cursor: pointer; }
.mb-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab; }
.mb-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab; }
.mb-scale { display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 10px; color: rgba(223,243,251,.6); text-align: center; }
.mb-scale span { flex: 1; }
.mb-sum { margin-left: auto; width: 232px; font-size: 12px; color: #eaf6fb; line-height: 1.75; }
.mb-sum b { color: #7fd4ff; font-weight: 700; margin-right: 4px; }

/* 标签页行 */
.mb-tabs { display: flex; gap: 12px; margin-top: 12px; }
.mb-tab { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.mb-tab-action { background: #eaf6fb; color: #0a3344; border: 0; }
.mb-tab-on { background: rgba(127,212,255,.18); color: #eaf6fb; border: 1px solid rgba(127,212,255,.55); }
.mb-tab-off { border: 1px solid rgba(234,246,251,.45); color: rgba(234,246,251,.9); background: transparent; }

/* 观察要点卡（暂停时浮现） */
.mb-note { position: absolute; left: 26px; bottom: 118px; width: 268px; z-index: 5;
  background: rgba(6,28,38,.92); border: 1px solid rgba(140,220,255,.22); border-radius: 12px;
  padding: 10px 13px; opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: all .18s ease-out; }
.mb-note.show { opacity: 1; pointer-events: auto; transform: none; }
.mb-note-t { font-size: 11px; font-weight: 700; color: #7fd4ff; letter-spacing: .08em; margin-bottom: 5px; }
.mb-note-row { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px;
  color: rgba(223,243,251,.75); padding: 2.5px 0; }
.mb-note-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(223,243,251,.25);
  margin-top: 4px; flex: none; }
.mb-note-row.ok { color: #eaf6fb; }
.mb-note-row.ok .mb-note-dot { background: #37d67a; box-shadow: 0 0 6px rgba(55,214,122,.7); }

/* ---------- 左屏浮层 chips ---------- */
.macro-overlay { position: absolute; left: 0; top: 0; width: 48%; height: 100%;
  z-index: 25; pointer-events: none; font-family: "Microsoft YaHei", sans-serif; }
.mo-title { position: absolute; left: 20px; top: 16px; padding: 12px 18px 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8,38,74,.88) 0%, rgba(10,52,96,.78) 55%, rgba(12,68,118,.55) 100%);
  border: 1px solid rgba(80,180,255,.35);
  box-shadow: 0 4px 18px rgba(4,18,34,.45), inset 0 0 22px rgba(40,140,230,.18); }
.mo-title::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, #3EC8FF, rgba(62,200,255,0)); border-radius: 3px 0 0 3px; }
.mo-title h1 { color: #EAF6FF !important; text-shadow: 0 0 14px rgba(62,200,255,.55) !important; }
.mo-title p { color: #FFD257 !important; text-shadow: none !important; }
.mo-title h1 { font-size: 32px; font-weight: 800; color: #17324a; letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255,255,255,.9), 0 0 22px rgba(255,255,255,.7); margin: 0; }
.mo-title p { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: #b03227; letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255,255,255,.95), 0 0 18px rgba(255,255,255,.85), 0 0 30px rgba(255,255,255,.6); }
.mo-ghosts { position: absolute; right: 16px; top: 18px; display: flex; gap: 8px; pointer-events: auto; }
.mo-ghost { padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(23,50,74,.35);
  background: rgba(255,255,255,.55); color: #17324a; font-size: 12px; font-weight: 600; cursor: pointer; }
.mo-ghost:hover { background: rgba(255,255,255,.8); }
.mo-chip { position: absolute; background: rgba(255,255,255,.9); border-radius: 12px;
  padding: 9px 13px; box-shadow: 0 4px 14px rgba(20,40,60,.18); pointer-events: auto; }
.mo-chip .mo-k { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.mo-chip .mo-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f7ac0; }
.mo-chip .mo-v { margin-top: 3px; font-size: 14px; font-weight: 800; color: #1d3a52; }
.mo-chip .mo-n { margin-top: 2px; font-size: 10.5px; color: #5f7488; }
.mo-phe { left: 22px; top: 200px; width: 196px; }
.mo-phe .mo-v { font-size: 12.5px; font-weight: 700; }
.mo-acid { left: 42%; bottom: 200px; padding: 8px 13px; flex-direction: row; align-items: center; gap: 8px; }
.mo-acid .mo-ico img.mo-img { width: 40px; height: 40px; }
.mo-acid .mo-v { font-size: 13px; margin: 0; }
.mo-neg { left: 22px; bottom: 56px; width: 118px; }
.mo-neg .mo-k { color: #1f7ac0; }
.mo-pos { right: 22px; bottom: 56px; width: 124px; }
.mo-pos .mo-k { color: #e07a2f; } .mo-pos .mo-k::before { background: #e07a2f; }

/* 窄屏降级：双面板改上下叠放 */
@media (max-width: 900px) {
  body.duo-mode .scene { right: 0; bottom: 58%; }
  .mb-root { width: 100%; top: 42%; }
}

/* 稀硫酸 chip 分子小图标（放电中显示——竞品帧行为） */
.mo-mols { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; }
.mo-mol { width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8f7ff, #6cc3ee); opacity: 0; transition: opacity .3s; }
.mo-mol:nth-child(2) { width: 7px; height: 7px; }
.mo-mol:nth-child(3) { width: 8px; height: 8px; }
.mo-mols .mo-mol { opacity: 0; }
.mo-chip .mo-mols .mo-mol { opacity: 0; }
.mo-chip.live .mo-mols .mo-mol { opacity: .95; }

/* duo 左屏底图取景：照片器具区偏左，cover 裁切对准烧瓶架 */
body.duo-mode .sim3d-bg { object-position: center center; }
/* 左屏照片特效层（代码指针/气泡，整图换装版） */
.macro-fx { position: absolute; left: 0; top: 0; width: 48%; height: 100%; z-index: 26; pointer-events: none; }

/* chips 带小图版式：左图右文（负极/正极金属片小图 + 稀硫酸分子小图常显） */
.mo-chip { display: flex; align-items: center; gap: 9px; }
.mo-chip .mo-tx { flex: 1; min-width: 0; }
.mo-phe, .mo-acid { display: block; }
/* 原图标准小图（竖版）：徽章行在上 / 大球形图标居中 / 名称在下 —— 对照用户参考图 */
.mo-chip.mo-neg, .mo-chip.mo-pos { flex-direction: column; align-items: flex-start;
  width: 118px; padding: 10px 12px 9px; gap: 2px; }
.mo-neg .mo-k, .mo-pos .mo-k { display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: #33475a; }
.mo-ico { flex: none; line-height: 0; filter: drop-shadow(0 2px 4px rgba(20,40,60,.25));
  order: 2; margin: 4px auto 2px; }   /* 参考图顺序: 徽章行1 > 图标2 > 名称3 > 副注4 */
.mo-ico svg { display: block; width: 58px; height: auto; }
.mo-badge { flex: none; width: 17px; height: 17px; border-radius: 50%; color: #fff;
  font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; }
.b-neg { background: #1f7ac0; }
.b-pos { background: #e07a2f; }
.mo-neg .mo-k::before, .mo-pos .mo-k::before { display: none; }   /* 徽章替代旧圆点 */
.mo-neg .mo-tx, .mo-pos .mo-tx { display: contents; }   /* 让 k/v/n 参与外层列排序 */
.mo-neg .mo-k, .mo-pos .mo-k { order: 1; }
.mo-neg .mo-v, .mo-pos .mo-v { order: 3; margin-top: 1px; }
.mo-neg .mo-n, .mo-pos .mo-n { order: 4; }
/* 稀硫酸 chip：文字上、分子群下（对照参考图） */
.mo-acid { width: auto; }
.mo-acid .mo-mols { display: flex; gap: 5px; margin: 6px 0 1px; }
.mo-acid .mo-mol { width: 15px; height: 15px; }
.mo-acid .mo-mol:nth-child(2) { width: 11px; height: 11px; margin-top: 5px; }
.mo-acid .mo-mol:nth-child(3) { width: 13px; height: 13px; margin-top: 2px; }
/* 分子小图：常显（此前仅放电中亮）；放电中加呼吸 */
.mo-mols .mo-mol { opacity: .95; }
.mo-chip.live .mo-mol { animation: moMolPulse 1.6s ease-in-out infinite; }
.mo-chip.live .mo-mol:nth-child(2) { animation-delay: .3s; }
.mo-chip.live .mo-mol:nth-child(3) { animation-delay: .6s; }
@keyframes moMolPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* chips 真实材质小图（自 CLI 出图裁切，与场景同源） */
.mo-ico img.mo-img { display: block; width: 58px; height: 58px; border-radius: 50%; }

.mb-caption { margin-top: 7px; font-size: 10.5px; line-height: 1.5; color: rgba(223,243,251,.72); }
.mb-caption::before { content: "▸ "; color: #7fd4ff; }

/* ---------- duo 模式：右上按钮簇（实验原理/全屏）---------- */
body.duo-mode .topbar { z-index: 60 !important; }
body.duo-mode .topbar-actions { top: 64px; right: 16px; }
