/* =========================================================
   临床实训 · 全局样式
   设计：医疗蓝官方教学风 / 大屏适配 / 全离线可用
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy: #0a2540;
  --navy-2: #113a63;
  --blue: #1268d8;
  --blue-2: #3b8bf0;
  --blue-soft: #e8f1fd;
  --blue-line: #cfe0f6;
  --teal: #0aa79a;
  --ink: #12263f;
  --ink-2: #2c4462;
  --muted: #61758e;
  --muted-2: #8aa0b8;
  --bg: #eef4fc;
  --card: #ffffff;
  --line: #dbe6f4;
  --ok: #12a150;
  --ok-soft: #e6f7ee;
  --warn: #d98a00;
  --warn-soft: #fff6e5;
  --bad: #e5484d;
  --bad-soft: #fdecec;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 34px rgba(16, 54, 104, .10);
  --shadow-sm: 0 4px 14px rgba(16, 54, 104, .08);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 12% -10%, #dbeafe 0%, rgba(219, 234, 254, 0) 62%),
    radial-gradient(900px 420px at 96% 4%, #d8f3ef 0%, rgba(216, 243, 239, 0) 60%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: .2px; }
/* 防止 CDN 重置样式覆盖标题字重 */
.view h1, .view h2, .view h3, .view h4,
.modal h1, .modal h2, .modal h3, .modal h4,
.drawer h3 { font-weight: 800; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------------- 通用按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px; border-radius: 12px;
  font-size: 15.5px; font-weight: 700; letter-spacing: .3px;
  border: 1px solid transparent; background: #fff; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ic { width: 17px; height: 17px; }

.btn-primary {
  background: linear-gradient(180deg, #2b81e8, #1268d8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 104, 216, .28);
}
.btn-primary:hover { background: linear-gradient(180deg, #3c8ff0, #1160c9); box-shadow: 0 10px 26px rgba(18, 104, 216, .34); }

.btn-outline { border-color: var(--blue-line); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue-soft); border-color: #a9cdf5; }
.btn-outline em { font-style: normal; background: var(--blue); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12.5px; line-height: 19px; }

.btn-ghost { background: rgba(18, 104, 216, .07); color: var(--blue); }
.btn-ghost:hover { background: rgba(18, 104, 216, .13); }

.btn-lg { height: 52px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* ---------------- 顶部导航 ---------------- */
.app-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; height: 70px; padding: 0 26px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, #1268d8, #0aa79a);
  color: #fff; box-shadow: 0 6px 16px rgba(18, 104, 216, .30);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; letter-spacing: .4px; }
.brand-text i { font-style: normal; font-size: 10.5px; color: var(--muted-2); letter-spacing: 1.4px; text-transform: uppercase; }

.nav-links { display: flex; gap: 6px; margin-left: 16px; }
.nav-link {
  border: 0; background: transparent; color: var(--ink-2);
  padding: 9px 16px; border-radius: 10px; font-size: 15.5px; font-weight: 700;
  transition: background .16s, color .16s;
}
.nav-link:hover { background: var(--blue-soft); color: var(--blue); }
.nav-link.active { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(18, 104, 216, .24); }

.nav-right { margin-left: auto; }
.student-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 14px;
}
.student-chip svg { width: 16px; height: 16px; }

/* ---------------- 视图 ---------------- */
.view { display: none; }
.view.active { display: block; animation: viewIn .32s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.container { max-width: 1320px; margin: 0 auto; padding: 0 26px; }

/* ---------------- 首页 Hero ---------------- */
.hero { padding: 34px 26px 10px; }
.hero-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center;
  background: linear-gradient(118deg, #0a2540 0%, #123c66 46%, #10527f 100%);
  border-radius: 26px; padding: 48px 52px; color: #fff;
  box-shadow: 0 24px 60px rgba(10, 37, 64, .26);
  position: relative; overflow: hidden;
}
.hero-inner::after {
  content: ""; position: absolute; right: -100px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(59, 139, 240, .38), transparent 68%);
  border-radius: 50%;
}
.hero-copy { position: relative; z-index: 2; }
.hero-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13.5px; letter-spacing: 1.2px; color: #cfe6ff; margin-bottom: 18px;
}
.hero-copy h1 { font-size: 42px; line-height: 1.28; letter-spacing: .6px; }
.hero-desc { margin-top: 16px; font-size: 16.5px; color: #bfd6ee; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-actions .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.hero-actions .btn-primary { background: #fff; color: #0b3c74; box-shadow: 0 12px 26px rgba(0, 0, 0, .22); }
.hero-actions .btn-primary:hover { background: #eaf3ff; }

.hero-stats { display: flex; gap: 38px; margin-top: 32px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 30px; letter-spacing: .5px; }
.hero-stats span { font-size: 13px; color: #9db8d4; letter-spacing: .6px; }

/* 监护仪 mock */
.hero-visual { position: relative; z-index: 2; }
.monitor-mock {
  background: rgba(7, 24, 41, .62); border: 1px solid rgba(120, 200, 255, .26);
  border-radius: 18px; padding: 16px 18px 14px; backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .30);
}
.mm-head { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #9ec9ee; letter-spacing: .8px; }
.mm-dot { width: 8px; height: 8px; border-radius: 50%; background: #22e6a0; box-shadow: 0 0 0 4px rgba(34, 230, 160, .16); animation: blink 1.6s infinite; }
.mm-live { margin-left: auto; font-size: 10.5px; letter-spacing: 1.6px; color: #ff8a94; border: 1px solid rgba(255, 138, 148, .5); padding: 1px 7px; border-radius: 5px; }
.mm-ecg { width: 100%; height: 96px; margin: 6px 0 4px; }
.mm-line { fill: none; stroke: #4fe6b4; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(79, 230, 180, .8)); stroke-dasharray: 460; animation: ecgDraw 3.2s linear infinite; }
.mm-vitals { display: flex; gap: 18px; font-size: 12px; color: #7fa8cd; }
.mm-vitals b { font-size: 18px; color: #eaf6ff; margin-right: 3px; letter-spacing: .5px; }
.mm-badge {
  margin-top: 12px; text-align: center; font-size: 12.5px; letter-spacing: 1.4px;
  color: #a9d6ff; border-top: 1px dashed rgba(140, 190, 235, .28); padding-top: 10px;
}

/* ---------------- 章节 ---------------- */
.section { padding: 46px 0 4px; }
.section-head { margin-bottom: 20px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.section-title { font-size: 25px; letter-spacing: .4px; }
.section-title::before {
  content: ""; display: inline-block; width: 5px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--teal)); margin-right: 11px; vertical-align: -3px;
}
.section-sub { font-size: 14.5px; color: var(--muted); margin-top: 2px; }

/* 流程卡片 */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bcd9f7; }
.guide-num {
  font-size: 26px; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(120deg, var(--blue), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.guide-card h3 { font-size: 17px; margin: 6px 0 6px; }
.guide-card p { font-size: 14px; color: var(--muted); line-height: 1.62; }

/* 分类 chips */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  transition: all .16s;
}
.chip:hover { border-color: #a9cdf5; color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(18, 104, 216, .22); }

/* 病例卡片 */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #b7d6f6; }
.case-cover { height: 108px; position: relative; overflow: hidden; }
.case-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(220px 120px at 82% 12%, rgba(255, 255, 255, .30), transparent 70%);
}
.case-cover svg { position: absolute; right: 14px; bottom: 6px; width: 96px; height: 96px; opacity: .95; }
.case-cover .cc-label {
  position: absolute; left: 18px; top: 16px; z-index: 2;
  font-size: 12px; letter-spacing: 1.6px; color: rgba(255, 255, 255, .92);
  background: rgba(0, 0, 0, .18); padding: 3px 10px; border-radius: 999px;
}
.case-cover .cc-level {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  font-size: 11.5px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .34);
}
.case-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-body h3 { font-size: 19px; }
.case-body .cb-sub { font-size: 13.5px; color: var(--muted); }
.case-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 12px; padding: 2px 9px; border-radius: 6px;
  background: var(--blue-soft); color: #1c5fa8; font-weight: 700;
}
.case-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.case-meta span { display: inline-flex; align-items: center; gap: 5px; }
.case-meta svg { width: 14px; height: 14px; }
.case-foot { margin-top: auto; padding-top: 6px; }
.case-foot .btn { width: 100%; }

/* 记录列表 */
.record-list { display: flex; flex-direction: column; gap: 10px; }
.record-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); transition: border-color .16s, transform .16s;
}
.record-row:hover { border-color: #b7d6f6; transform: translateX(2px); }
.record-score {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 20px; font-weight: 900; color: #fff; flex: 0 0 auto;
  background: linear-gradient(145deg, #2b81e8, #1268d8);
}
.record-score.warn { background: linear-gradient(145deg, #f2a93b, #d98a00); }
.record-score.bad { background: linear-gradient(145deg, #f06a6e, #d63c42); }
.record-score.ok { background: linear-gradient(145deg, #24b06a, #0f8f4a); }
.record-main { flex: 1; min-width: 0; }
.record-main b { font-size: 16px; }
.record-main .rm-sub { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.record-actions { display: flex; gap: 8px; }
.record-empty {
  background: #fff; border: 1px dashed var(--blue-line); border-radius: 16px;
  padding: 38px; text-align: center; color: var(--muted); font-size: 14.5px;
}

.app-footer {
  max-width: 1320px; margin: 52px auto 0; padding: 22px 26px 34px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px;
}

/* ---------------- 情景模拟 ---------------- */
#view-sim { padding-bottom: 40px; }
.sim-wrap { max-width: 1400px; margin: 0 auto; padding: 18px 24px 0; }

.sim-topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.sim-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.sim-title b { font-size: 19px; }
.sim-title span { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-topright { margin-left: auto; display: flex; gap: 8px; }

.sim-stepper {
  display: flex; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 7px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.step-item {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: var(--muted);
  background: transparent; transition: all .3s;
}
.step-item i {
  width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 11.5px; background: #e6eef9; color: #7d93ab;
}
.step-item.active { background: linear-gradient(180deg, #eaf3ff, #ddecff); color: var(--blue); }
.step-item.active i { background: var(--blue); color: #fff; }
.step-item.done { color: var(--ok); }
.step-item.done i { background: var(--ok); color: #fff; }

.sim-grid { display: grid; grid-template-columns: minmax(400px, 45%) 1fr; gap: 18px; align-items: start; }
.sim-left { display: flex; flex-direction: column; gap: 14px; }

.patient-stage {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px; box-shadow: var(--shadow);
}
.stage-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stage-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #0f8f6b; letter-spacing: .8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #17c98a; box-shadow: 0 0 0 4px rgba(23, 201, 138, .15); animation: blink 1.5s infinite; }
.stage-timer { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 800; color: var(--ink-2); background: var(--blue-soft); padding: 2px 12px; border-radius: 8px; }

.patient-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ph-main b { font-size: 17px; }
.ph-main span { font-size: 13px; color: var(--muted); margin-left: 8px; }
.ph-chief {
  font-size: 12.5px; color: #b3423f; background: var(--bad-soft);
  padding: 2px 10px; border-radius: 6px; font-weight: 700;
}

.scene-frame {
  position: relative; height: 316px; border-radius: 14px; overflow: hidden;
  background: #0f2740; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.patient-svg { width: 100%; height: 100%; display: block; }
.patient-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #0f2740; z-index: 1;
}
.patient-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #0f2740; z-index: 1;
}
.video-controls {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: flex; gap: 7px; padding: 6px; border-radius: 11px;
  background: rgba(6, 20, 35, .68); border: 1px solid rgba(150, 210, 255, .26);
  backdrop-filter: blur(7px);
}
.vc-btn {
  width: 38px; height: 38px; border: 0; border-radius: 9px;
  background: rgba(255, 255, 255, .14); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s, transform .15s;
}
.vc-btn:hover { background: rgba(255, 255, 255, .28); }
.vc-btn:active { transform: scale(.94); }
.vc-btn svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.vc-btn .ic-pause { display: none; }
.vc-btn.is-playing .ic-play { display: none; }
.vc-btn.is-playing .ic-pause { display: block; }
.vc-btn .ic-mute { display: none; }
.vc-btn.is-muted .ic-sound { display: none; }
.vc-btn.is-muted .ic-mute { display: block; }
.vital-card, .stage-loading { z-index: 2; }
.sym-chest, .sym-abdomen, .sym-fever { display: none; }
.patient-svg.sym-chest .sym-chest,
.patient-svg.sym-abdomen .sym-abdomen,
.patient-svg.sym-fever .sym-fever { display: inline; }

.patient-body { transform-origin: 200px 300px; animation: breathe 3.4s ease-in-out infinite; }
.patient-svg.sym-fever .patient-body { animation: shiver .42s linear infinite; transform-origin: 200px 220px; }
.eye { animation: blinkEye 5s infinite; transform-origin: center; }

.pain-ring { animation: ringPulse 2.1s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.pain-ring.r2 { animation-delay: .7s; }
.pain-ring.r3 { animation-delay: 1.35s; }
.drop { animation: dropFall 2.6s ease-in infinite; opacity: 0; }
.drop.d2 { animation-delay: 1.2s; }

@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018) translateY(-2px); } }
@keyframes shiver { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.6px); } 75% { transform: translateX(1.6px); } }
@keyframes blinkEye { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
@keyframes ringPulse {
  0% { transform: scale(.5); opacity: .95; }
  70% { transform: scale(2.5); opacity: .16; }
  100% { transform: scale(2.9); opacity: 0; }
}
@keyframes dropFall {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: .9; }
  80% { opacity: .8; }
  100% { transform: translateY(26px); opacity: 0; }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }
@keyframes ecgDraw { 0% { stroke-dashoffset: 460; } 100% { stroke-dashoffset: -460; } }
@keyframes ecgSweep { 0% { stroke-dashoffset: 220; } 100% { stroke-dashoffset: -220; } }

.vital-card {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(7, 23, 39, .72); border: 1px solid rgba(120, 200, 255, .24);
  border-radius: 12px; padding: 8px 12px 9px; backdrop-filter: blur(7px);
}
.vital-head { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9ec9ee; letter-spacing: .9px; }
.vital-head em { font-style: normal; color: #6fe3bb; }
.vital-head .live-dot { width: 6px; height: 6px; }
.ecg { display: block; width: 100%; height: 34px; margin: 2px 0 3px; }
.ecg-line { fill: none; stroke: #4fe6b4; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 46 174; animation: ecgSweep 2.6s linear infinite; filter: drop-shadow(0 0 4px rgba(79, 230, 180, .7)); }
.vital-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.vital-chips span {
  font-size: 11.5px; color: #b9d9f3; background: rgba(255, 255, 255, .08);
  padding: 1px 8px; border-radius: 5px; font-variant-numeric: tabular-nums;
}
.vital-chips span b { color: #eaf7ff; margin-right: 3px; }
.vital-chips span.abn { background: rgba(255, 92, 92, .22); color: #ffc9c9; }
.vital-chips span.abn b { color: #ffdcdc; }

.stage-loading {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: rgba(9, 28, 47, .82); backdrop-filter: blur(3px); color: #cfe6ff; font-size: 13.5px;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(140, 200, 255, .22); border-top-color: #5ac8fa;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bubble-wrap { display: flex; gap: 10px; margin-top: 12px; align-items: flex-start; }
.bubble-avatar {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center;
  background: linear-gradient(145deg, #e8f1fd, #d3e6fb); color: var(--blue);
}
.bubble-avatar svg { width: 19px; height: 19px; }
.bubble {
  background: #f4f8ff; border: 1px solid var(--blue-line); border-radius: 4px 14px 14px 14px;
  padding: 11px 14px; font-size: 15px; line-height: 1.66; min-height: 46px; flex: 1; color: var(--ink-2);
}
.bubble-text { transition: opacity .2s; }
.caret { display: inline-block; width: 2px; height: 15px; background: var(--blue); vertical-align: -2px; margin-left: 2px; animation: caretBlink .8s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* 得分面板 */
.score-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.score-head { display: flex; align-items: baseline; justify-content: space-between; }
.score-head span { font-size: 13.5px; color: var(--muted); font-weight: 700; letter-spacing: .6px; }
.score-head b { font-size: 28px; color: var(--blue); font-variant-numeric: tabular-nums; transition: color .3s; }
.score-head b i { font-style: normal; font-size: 13px; color: var(--muted-2); font-weight: 700; }
.score-head b.up { animation: scorePop .5s ease; }
@keyframes scorePop { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
.score-bar { height: 9px; border-radius: 999px; background: #e8eef8; overflow: hidden; margin: 8px 0 12px; }
.score-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2b81e8, #0aa79a); transition: width .55s cubic-bezier(.2, .8, .2, 1); }
.dim-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.dim-row { font-size: 12.5px; }
.dim-row .dr-top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 3px; }
.dim-row .dr-top b { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dim-row .dr-bar { height: 5px; border-radius: 999px; background: #edf2fa; overflow: hidden; }
.dim-row .dr-bar i { display: block; height: 100%; border-radius: 999px; transition: width .5s; }
.dim-row:nth-child(1) .dr-bar i { background: #3b8bf0; }
.dim-row:nth-child(2) .dr-bar i { background: #12b5a5; }
.dim-row:nth-child(3) .dr-bar i { background: #8b6ce8; }
.dim-row:nth-child(4) .dr-bar i { background: #f0a63b; }
.score-tip { font-size: 12px; color: var(--muted-2); margin-top: 12px; line-height: 1.5; }

/* 问题卡 */
.sim-right { display: flex; flex-direction: column; gap: 14px; }
.question-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 18px; box-shadow: var(--shadow); min-height: 420px;
}
.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.stage-badge {
  background: linear-gradient(135deg, #1268d8, #3b8bf0); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: 1px; padding: 3px 12px; border-radius: 7px;
}
.q-kicker { font-size: 12.5px; color: var(--muted-2); letter-spacing: .6px; }
.q-title { font-size: 22px; line-height: 1.45; margin: 4px 0 16px; }

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 13px;
  padding: 13px 15px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2);
  transition: border-color .16s, background .16s, transform .12s, box-shadow .16s;
  animation: fadeUp .34s ease both;
}
.option:hover { border-color: #9ec7f2; background: #f7fbff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(18, 104, 216, .09); }
.option .opt-key {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-weight: 900; font-size: 13px; margin-top: 1px;
}
.option .opt-text { flex: 1; }
.option.disabled { pointer-events: none; opacity: .5; }
.option.picked { border-color: var(--blue); background: #eef6ff; box-shadow: 0 0 0 3px rgba(18, 104, 216, .12); }
.option.good { border-color: #46c98b; background: var(--ok-soft); animation: goodPop .42s ease; }
.option.good .opt-key { background: var(--ok); color: #fff; }
.option.bad { border-color: #ef8b8f; background: var(--bad-soft); animation: shake .42s ease; }
.option.bad .opt-key { background: var(--bad); color: #fff; }
.option.partial { border-color: #f0bf6a; background: var(--warn-soft); animation: shake .3s ease; }
.option.partial .opt-key { background: var(--warn); color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes goodPop { 0% { transform: scale(1); } 45% { transform: scale(1.015); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 22% { transform: translateX(-6px); } 46% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }

.q-foot { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.q-hint { font-size: 12.5px; color: var(--muted-2); }

/* 剧情卡 */
.scene-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow); animation: fadeUp .4s ease both;
  border-top: 4px solid var(--blue);
}
.scene-card.warn { border-top-color: #f0a63b; }
.scene-card.bad { border-top-color: #e5484d; }
.scene-card.good { border-top-color: #12a150; }
.scene-tone { font-size: 12.5px; font-weight: 800; letter-spacing: 1.4px; color: var(--muted); }
.scene-card h3 { font-size: 22px; margin: 6px 0 10px; }
.scene-card > p { font-size: 15.5px; color: var(--ink-2); line-height: 1.75; }
.scene-kp {
  margin: 16px 0 18px; padding: 13px 16px; border-radius: 12px;
  background: #f4f8ff; border-left: 4px solid var(--blue); font-size: 14.5px; color: #24507f;
}
.scene-card .btn { width: 100%; }

/* ---------------- 抽屉 ---------------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; background: #fff;
  z-index: 120; box-shadow: -20px 0 50px rgba(10, 37, 64, .18);
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 18px; }
.drawer-body { padding: 16px 20px 30px; overflow: auto; flex: 1; }
.drawer-mask { position: fixed; inset: 0; background: rgba(10, 37, 64, .32); z-index: 110; }

.trace-item { position: relative; padding: 0 0 18px 22px; border-left: 2px solid #e6eef9; }
.trace-item:last-child { border-left-color: transparent; }
.trace-item::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: #cfdcec; border: 2px solid #fff; box-shadow: 0 0 0 2px #e6eef9;
}
.trace-item.good::before { background: var(--ok); box-shadow: 0 0 0 2px #c9edd9; }
.trace-item.partial::before { background: var(--warn); box-shadow: 0 0 0 2px #ffe8bf; }
.trace-item.bad::before { background: var(--bad); box-shadow: 0 0 0 2px #f8cccd; }
.trace-item .ti-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.trace-item .ti-stage { background: var(--blue-soft); color: #1c5fa8; padding: 1px 8px; border-radius: 5px; font-weight: 700; }
.trace-item .ti-score { margin-left: auto; font-weight: 800; }
.trace-item.good .ti-score { color: var(--ok); }
.trace-item.partial .ti-score { color: var(--warn); }
.trace-item.bad .ti-score { color: var(--bad); }
.trace-item .ti-q { font-size: 14px; font-weight: 700; margin: 5px 0 3px; }
.trace-item .ti-a { font-size: 13.5px; color: var(--ink-2); background: #f6f9fe; border-radius: 8px; padding: 6px 10px; }
.trace-item .ti-time { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; }
.trace-empty { text-align: center; color: var(--muted-2); font-size: 14px; padding: 40px 0; }

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 28, 48, .46); backdrop-filter: blur(3px);
}
.modal.open { display: flex; animation: viewIn .22s ease both; }
.modal-card {
  background: #fff; border-radius: 20px; width: 460px; max-width: 100%;
  box-shadow: 0 30px 70px rgba(8, 28, 48, .30); overflow: hidden;
  animation: modalIn .26s cubic-bezier(.2, .8, .2, 1) both;
}
.modal-card.wide { width: 620px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-x {
  margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 0;
  background: #f1f5fb; color: var(--muted); font-size: 21px; line-height: 1; display: grid; place-items: center;
}
.modal-x:hover { background: #e6eef9; color: var(--ink); }
.modal-body { padding: 20px 22px; max-height: 66vh; overflow: auto; }
.modal-foot { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }

.start-case {
  background: linear-gradient(135deg, #eef6ff, #e9fbf8); border: 1px solid var(--blue-line);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 18px;
}
.start-case b { display: block; font-size: 17px; }
.start-case > span { font-size: 13.5px; color: var(--muted); }
.start-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.field { display: block; }
.field > span { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field input {
  width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--line);
  padding: 0 14px; font-size: 15.5px; color: var(--ink); background: #fbfdff; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus { border-color: #7fb6f2; box-shadow: 0 0 0 4px rgba(18, 104, 216, .10); }
.field-hint { font-size: 12.5px; color: var(--muted-2); margin-top: 10px; line-height: 1.6; }

.mk-tag { font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px; padding: 3px 11px; border-radius: 6px; background: var(--bad-soft); color: var(--bad); }
.mk-tag.warn { background: var(--warn-soft); color: var(--warn); }
.mk-tag.ok { background: var(--ok-soft); color: var(--ok); }
.mk-title { font-size: 21px; margin-bottom: 12px; }
.mk-opt {
  font-size: 14.5px; color: var(--ink-2); background: #f6f9fe; border-radius: 10px;
  padding: 11px 14px; border-left: 4px solid #9ec7f2; line-height: 1.6;
}
.mk-block { margin-top: 16px; }
.mk-block h4 { font-size: 13px; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.mk-block p { font-size: 14.8px; line-height: 1.75; color: var(--ink-2); }
.mk-block.accent { background: #f3f9ff; border: 1px solid var(--blue-line); border-radius: 12px; padding: 13px 15px; }
.mk-block.accent h4 { color: var(--blue); }

.g-step { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.g-step:last-of-type { border-bottom: 0; }
.g-step > b {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 14px;
}
.g-step h4 { font-size: 15.5px; margin-bottom: 3px; }
.g-step p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------------- Toast ---------------- */
.toast-layer { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(12, 34, 56, .94); color: #fff; padding: 10px 20px; border-radius: 12px;
  font-size: 14.5px; font-weight: 700; box-shadow: 0 12px 30px rgba(8, 28, 48, .3);
  animation: toastIn .28s ease both; display: flex; align-items: center; gap: 8px;
}
.toast.good { background: rgba(15, 143, 74, .96); }
.toast.bad { background: rgba(206, 52, 58, .96); }
.toast.out { animation: toastOut .26s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ---------------- 报告 ---------------- */
.report-toolbar {
  position: sticky; top: 70px; z-index: 40;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 12px 26px;
}
.rt-title { font-weight: 800; font-size: 16px; color: var(--ink-2); }
.rt-actions { margin-left: auto; display: flex; gap: 8px; }
.report-scroll { padding: 26px 20px 60px; display: flex; justify-content: center; }
.report-sheet {
  width: 900px; max-width: 100%; background: #fff; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(16, 54, 104, .14);
  padding: 46px 52px 52px; color: #1b3049;
}
.rs-head { border-bottom: 3px solid var(--navy); padding-bottom: 18px; margin-bottom: 22px; position: relative; }
.rs-brand { font-size: 12.5px; letter-spacing: 3px; color: var(--blue); font-weight: 800; }
.rs-head h1 { font-size: 29px; letter-spacing: 2px; margin: 8px 0 6px; }
.rs-no { font-size: 12.5px; color: var(--muted); letter-spacing: .6px; }
.rs-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; margin-bottom: 24px; }
.rs-meta div { background: #f6f9fe; border-radius: 10px; padding: 9px 13px; }
.rs-meta span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .6px; }
.rs-meta b { font-size: 15px; }

.score-hero {
  display: grid; grid-template-columns: 200px 230px 1fr; gap: 22px; align-items: center;
  background: linear-gradient(120deg, #f2f8ff, #eefbf8); border: 1px solid var(--blue-line);
  border-radius: 16px; padding: 20px 24px; margin-bottom: 28px;
}
.big-score { text-align: center; }
.big-score b { font-size: 62px; line-height: 1; letter-spacing: -1px; color: var(--blue); font-variant-numeric: tabular-nums; }
.big-score span { font-size: 15px; color: var(--muted); font-weight: 700; }
.big-score em { display: block; font-style: normal; font-size: 14px; font-weight: 800; letter-spacing: 1.6px; color: var(--teal); margin-top: 4px; }

.dim-bars { display: flex; flex-direction: column; gap: 11px; }
.db-row .db-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; color: var(--ink-2); font-weight: 700; }
.db-row .db-top em { font-style: normal; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.db-bar { height: 8px; background: #e6eef9; border-radius: 999px; overflow: hidden; }
.db-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2b81e8, #0aa79a); }

.report-sheet h2 {
  font-size: 17.5px; margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--blue);
  letter-spacing: .6px;
}
.trace-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.trace-table th {
  background: #f2f7fd; color: var(--ink-2); font-weight: 800; text-align: left;
  padding: 9px 10px; border-bottom: 2px solid #d9e6f6; font-size: 12.5px; letter-spacing: .4px;
}
.trace-table td { padding: 9px 10px; border-bottom: 1px solid #edf2f9; vertical-align: top; }
.trace-table td.num { color: var(--muted); font-variant-numeric: tabular-nums; width: 38px; }
.verdict { display: inline-block; padding: 1px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.verdict.good { background: var(--ok-soft); color: var(--ok); }
.verdict.partial { background: var(--warn-soft); color: var(--warn); }
.verdict.bad { background: var(--bad-soft); color: var(--bad); }
.sc-pos { color: var(--ok); font-weight: 800; }
.sc-neg { color: var(--bad); font-weight: 800; }
.sc-zero { color: var(--muted); font-weight: 800; }

.err-card {
  border: 1px solid #f4d2d3; border-left: 4px solid var(--bad); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; background: #fffafa;
}
.err-card.warn { border-color: #f6e0b8; border-left-color: var(--warn); background: #fffdf7; }
.err-card .ec-top { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.err-card .ec-top b { color: var(--ink); font-size: 13.5px; }
.err-card .ec-opt { font-size: 13.8px; color: var(--ink-2); background: #fff; border: 1px solid #f0e2e2; border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; }
.err-card .ec-reason { font-size: 13.6px; color: var(--bad); margin-bottom: 6px; }
.err-card.warn .ec-reason { color: #a06a00; }
.err-card .ec-kp { font-size: 13.6px; color: #24507f; background: #f4f8ff; border-radius: 8px; padding: 8px 11px; line-height: 1.7; }

.std-list { display: flex; flex-direction: column; gap: 8px; }
.std-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.8px; padding: 9px 12px; border-radius: 10px; background: #f8fbff; border: 1px solid #e6effa; }
.std-row .sr-mark { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 900; color: #fff; background: #b9c8d9; margin-top: 1px; }
.std-row.done .sr-mark { background: var(--ok); }
.std-row.fail .sr-mark { background: var(--bad); }
.std-row .sr-stage { font-size: 11.5px; color: var(--muted); margin-right: 6px; }

.advice-box { background: #f7faff; border: 1px solid var(--blue-line); border-radius: 14px; padding: 16px 20px; }
.advice-box h4 { font-size: 14px; color: var(--blue); margin-bottom: 6px; letter-spacing: .6px; }
.advice-box p { font-size: 14px; line-height: 1.78; color: var(--ink-2); }
.advice-box + .advice-box { margin-top: 12px; }
.advice-box.warn { background: #fffdf6; border-color: #f3e1bd; }
.advice-box.warn h4 { color: #b07600; }

.rs-sign { margin-top: 40px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* 报告分页：内容块整体不跨页，放不下时自动另起一页 */
.rs-note { font-size: 13px; color: #61758e; margin-bottom: 10px; line-height: 1.7; }
.report-block, .report-section { break-inside: avoid; page-break-inside: avoid; }
.report-section { break-before: auto; }
.report-section > h2 { break-after: avoid; page-break-after: avoid; }
.opt-letter {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  text-align: center; border-radius: 5px; background: #e8f1fd; color: #1268d8;
  font-size: 11.5px; font-weight: 900; margin-right: 6px; vertical-align: 1px;
}

/* 报告雷达图 */
.radar-wrap { display: flex; align-items: center; justify-content: center; }
.radar-wrap svg { width: 230px; height: 200px; }

/* ---------------- 记录页 ---------------- */
#view-records { padding-bottom: 60px; }
.records-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 34px 0 20px; flex-wrap: wrap; }

/* ---------------- 大屏 / 响应式 ---------------- */
@media (min-width: 1700px) {
  body { font-size: 17.5px; }
  .hero-inner { padding: 58px 62px; }
  .hero-copy h1 { font-size: 48px; }
  .scene-frame { height: 360px; }
  .q-title { font-size: 24px; }
  .option { font-size: 16.5px; }
}

@media (max-width: 1180px) {
  .sim-grid { grid-template-columns: 1fr; }
  .scene-frame { height: 340px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
}

@media (max-width: 860px) {
  .nav-inner { height: 62px; padding: 0 16px; gap: 12px; }
  .brand-text i { display: none; }
  .nav-links { margin-left: 0; }
  .nav-link { padding: 7px 11px; font-size: 14px; }
  .student-chip { display: none; }
  .hero { padding: 16px 14px 6px; }
  .hero-inner { padding: 30px 24px; border-radius: 20px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-stats { gap: 24px; }
  .container { padding: 0 14px; }
  .guide-grid, .case-grid { grid-template-columns: 1fr; }
  .score-hero { grid-template-columns: 1fr; }
  .report-sheet { padding: 26px 20px 34px; }
  .rs-meta { grid-template-columns: 1fr 1fr; }
  .sim-wrap { padding: 12px 12px 0; }
  .drawer { width: 92vw; }
  .sim-stepper { overflow-x: auto; }
  .step-item { min-width: 96px; font-size: 13px; }
  .trace-table { font-size: 12px; }
  .trace-table th, .trace-table td { padding: 7px 6px; }
}

/* ---------------- 打印 / PDF ---------------- */
/* ---------------- 联网教学入口 ---------------- */
.nav-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #9aabc0; margin-right: 6px; vertical-align: 1px; transition: .2s;
}
.nav-dot.on { background: #18c98a; box-shadow: 0 0 0 3px rgba(24, 201, 138, .18); }

.hero-online {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 11px 13px; max-width: 500px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 13px;
  background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); color: #fff;
}
.hero-online .online-dot { margin-top: 0; flex: 0 0 auto; }
.hero-online .ho-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hero-online .ho-main b { font-size: 12.5px; letter-spacing: .4px; }
.hero-online .ho-main span { font-size: 11.5px; color: rgba(255, 255, 255, .68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-online .btn-outline {
  border-color: rgba(255, 255, 255, .34); color: #fff; background: rgba(255, 255, 255, .06);
}
.hero-online .btn-outline:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }

.online-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #9aabc0;
  margin-top: 5px; flex: 0 0 auto; transition: .2s;
}
.online-dot.on { background: #18c98a; box-shadow: 0 0 0 4px rgba(24, 201, 138, .15); }

.online-card { width: 640px; max-width: 94vw; }
.online-status {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #f8fbff;
}
.online-status .os-main { flex: 1; min-width: 0; }
.online-status b { font-size: 14px; color: var(--ink); }
.online-status p { margin: 3px 0 0; font-size: 12px; color: var(--muted); line-height: 1.65; }
.online-links { display: grid; gap: 9px; margin-top: 14px; }
.online-link {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  text-decoration: none; color: inherit; transition: .16s;
}
.online-link:hover { border-color: var(--blue-line); box-shadow: 0 6px 18px rgba(16, 54, 104, .07); }
.online-link .ol-ico {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue);
  font-size: 13px; font-weight: 900;
}
.online-link span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.online-link b { font-size: 13px; color: var(--ink); }
.online-link i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.online-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.online-start {
  margin-top: 14px; padding: 14px; border-radius: 12px;
  background: #f4f9ff; border: 1px dashed var(--blue-line);
}
.online-start b { font-size: 13.5px; color: var(--ink); }
.online-start p { margin: 6px 0 10px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.online-start .online-hint { margin: 10px 0 0; font-size: 11.5px; }
.online-tip { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

@media print {
  @page { size: A4 portrait; margin: 10mm; }
  html, body { background: #fff !important; }
  .app-nav, .report-toolbar, .app-footer, .toast-layer, .drawer, .drawer-mask, .modal, .no-print { display: none !important; }
  body.printing .view { display: none !important; }
  body.printing #view-report { display: block !important; }
  .report-scroll { padding: 0; display: block; }
  .report-sheet {
    width: 100%; max-width: none; box-shadow: none; border-radius: 0; padding: 0;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .report-block, .report-section { break-inside: avoid; page-break-inside: avoid; }
  .report-sheet h2 { break-after: avoid; page-break-after: avoid; }
  .err-card, .std-row, .advice-box, .rs-meta div, .score-hero, .rs-head { break-inside: avoid; page-break-inside: avoid; }
  .trace-table { break-inside: auto; page-break-inside: auto; }
  .trace-table thead { display: table-header-group; }
  .trace-table tr { break-inside: avoid; page-break-inside: avoid; }
  .rs-sign { break-inside: avoid; page-break-inside: avoid; }
}

/* ---------------- 学员账号 ---------------- */
.acct-tabs {
  display: flex; gap: 8px; background: #eef3fa; border-radius: 12px;
  padding: 4px; margin-bottom: 16px;
}
.acct-tab {
  flex: 1; border: 0; background: transparent; border-radius: 9px;
  padding: 9px 0; font-size: 14px; color: #5a6b80; cursor: pointer;
}
.acct-tab.active {
  background: #fff; color: #0a2540; font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 54, 104, .12);
}
#modal-account .field { margin-bottom: 12px; }
#modal-account input[readonly] { background: #eef3fa; }
