:root {
  --c-primary: #1a4b8c;
  --c-primary-dark: #123667;
  --c-primary-light: #e8f0fa;
  --c-accent: #1a73c8;
  --c-bg: #eef1f5;
  --c-card: #ffffff;
  --c-text: #1f2733;
  --c-text-2: #5b6672;
  --c-text-3: #8d97a3;
  --c-border: #dde3ea;
  --c-ok: #15925b;
  --c-ok-bg: #e7f6ee;
  --c-err: #c0392b;
  --c-err-bg: #fdecea;
  --c-warn: #b7791f;
  --c-warn-bg: #fdf5e3;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(26, 75, 140, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.6;
}

.hidden { display: none !important; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 56px;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  position: relative;
  z-index: 20;
}
.topbar .logo {
  width: 26px; height: 26px; border-radius: 6px;
  background: #fff; color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.topbar h1 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: .5px; }
.topbar .sub { font-size: 12px; opacity: .75; }
.topbar .spacer { flex: 1; }
.topbar .badge {
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
}

/* ---------- 布局 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 20px 40px; }
.wrap.narrow { max-width: 860px; }

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin-bottom: 18px;
}
.card h2 { font-size: 16px; margin: 0 0 4px; font-weight: 600; }
.card h2 + .hint { margin-top: 0; }
.hint { color: var(--c-text-2); font-size: 13px; margin: 0 0 18px; }
.section-title {
  font-size: 14px; font-weight: 600; color: var(--c-primary);
  padding-left: 10px; border-left: 3px solid var(--c-accent);
  margin: 22px 0 12px;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--c-text-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--c-border); border-radius: 6px;
  font-size: 14px; font-family: inherit; color: var(--c-text);
  background: #fff; outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(26,115,200,.12); }
.field .err { color: var(--c-err); font-size: 12px; margin-top: 5px; display: none; }
.field.invalid input { border-color: var(--c-err); }
.field.invalid .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn {
  height: 42px; padding: 0 22px; border-radius: 6px;
  border: 1px solid var(--c-border); background: #fff; color: var(--c-text);
  font-size: 14px; font-family: inherit; cursor: pointer;
  transition: all .15s;
}
.btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.btn-lg { height: 46px; padding: 0 34px; font-size: 15px; }
.btn-ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- 选项卡（科目选择） ---------- */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pick {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; background: #fff; transition: all .15s;
}
.pick:hover { border-color: var(--c-accent); }
.pick.active { border-color: var(--c-accent); border-width: 2px; background: var(--c-primary-light); padding: 13px 15px; }
.pick .t { font-weight: 600; font-size: 14px; }
.pick .d { font-size: 12px; color: var(--c-text-2); margin-top: 3px; }

/* ---------- 须知 ---------- */
.notice-list { margin: 0; padding-left: 20px; color: var(--c-text-2); font-size: 13.5px; }
.notice-list li { margin-bottom: 7px; }
.notice-list b { color: var(--c-text); }

/* ---------- 设备检测 ---------- */
.device-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.cam-box {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background: #101820; border-radius: var(--radius); overflow: hidden;
}
.cam-box video, .cam-box canvas {
  width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1);
}
.cam-box canvas { transform: none; }
.cam-box .live {
  position: absolute; top: 8px; left: 8px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: 12px;
}
.dot-rec { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4f; animation: blink 1.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.cam-box .flash {
  position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none;
}
.cam-box .flash.go { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }

.check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--c-border);
  border-radius: 6px; margin-bottom: 10px; font-size: 13px;
}
.check-item .ico {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; background: var(--c-text-3);
}
.check-item.ok .ico { background: var(--c-ok); }
.check-item.bad .ico { background: var(--c-err); }
.check-item .st { margin-left: auto; font-size: 12px; color: var(--c-text-3); }
.check-item.ok .st { color: var(--c-ok); }
.check-item.bad .st { color: var(--c-err); }

/* ---------- 考试界面 ---------- */
.exam-grid { display: grid; grid-template-columns: 1fr 268px; gap: 18px; align-items: start; }

.exam-top {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 12px 18px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 10;
}
.exam-top .stat { font-size: 13px; color: var(--c-text-2); }
.exam-top .stat b { color: var(--c-text); font-size: 15px; font-variant-numeric: tabular-nums; }
.exam-top .timer { font-size: 22px; font-weight: 700; color: var(--c-primary); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.exam-top .timer.warn { color: var(--c-err); }
.exam-top .spacer { flex: 1; }

.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.q-no { font-size: 13px; color: var(--c-text-2); }
.tag {
  font-size: 11px; padding: 2px 9px; border-radius: 4px;
  border: 1px solid currentColor;
}
.tag.jud { color: #1a73c8; background: #eaf3fd; }
.tag.sin { color: #15925b; background: #e7f6ee; }
.tag.mul { color: #b7791f; background: #fdf5e3; }

.q-stem { font-size: 16.5px; line-height: 1.75; margin-bottom: 20px; font-weight: 500; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--c-border); border-radius: 6px;
  padding: 12px 14px; cursor: pointer; background: #fff; transition: all .12s;
  font-size: 14.5px;
}
.opt:hover { border-color: var(--c-accent); background: #f7fbff; }
.opt .key {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 1px solid var(--c-border); color: var(--c-text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; transition: all .12s;
}
.opt.sel { border-color: var(--c-accent); background: var(--c-primary-light); }
.opt.sel .key { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.opt.locked { cursor: default; }
.opt.locked:hover { border-color: var(--c-border); background: #fff; }

.q-actions { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.q-actions .spacer { flex: 1; }
.lock-tip { font-size: 12px; color: var(--c-text-3); }

/* ---------- 侧栏 ---------- */
.side-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.side-card h3 { font-size: 13px; margin: 0 0 10px; font-weight: 600; color: var(--c-text-2); }
.progress-bar { height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.progress-bar span { display: block; height: 100%; background: var(--c-accent); width: 0; transition: width .25s; }
.progress-txt { font-size: 12px; color: var(--c-text-2); display: flex; justify-content: space-between; }

.sheet-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; max-height: 178px; overflow-y: auto; }
.cell {
  aspect-ratio: 1; border-radius: 3px; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #eef1f5; color: var(--c-text-3); border: 1px solid transparent;
}
.cell.done { background: var(--c-accent); color: #fff; }
.cell.cur { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); font-weight: 700; color: var(--c-primary); }
.cell.done.cur { color: #fff; }

.watch-box { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #101820; border-radius: 6px; overflow: hidden; }
.watch-box video, .watch-box canvas { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.watch-box canvas { transform: none; }
.watch-box .live {
  position: absolute; top: 6px; left: 6px; display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 10px;
}
.watch-box .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.watch-box .flash.go { animation: flash .35s ease-out; }
.watch-meta { font-size: 11px; color: var(--c-text-3); margin-top: 8px; line-height: 1.7; }
.watch-meta .shot-n { color: var(--c-ok); font-weight: 600; }

/* ---------- 成绩单 ---------- */
.result-hero { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.score-ring {
  width: 168px; height: 168px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto; border: 8px solid;
}
.score-ring.pass { border-color: var(--c-ok); color: var(--c-ok); background: var(--c-ok-bg); }
.score-ring.fail { border-color: var(--c-err); color: var(--c-err); background: var(--c-err-bg); }
.score-ring .n { font-size: 46px; font-weight: 700; line-height: 1; }
.score-ring .u { font-size: 13px; opacity: .8; margin-top: 2px; }
.score-ring .r { font-size: 15px; font-weight: 600; margin-top: 8px; }

.kv { display: grid; grid-template-columns: 92px 1fr; row-gap: 8px; font-size: 13.5px; }
.kv .k, .kv > span:first-child { color: var(--c-text-2); }

.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shot { border: 1px solid var(--c-border); border-radius: 6px; overflow: hidden; background: #fff; }
.shot img { width: 100%; display: block; }
.shot .cap { font-size: 11px; color: var(--c-text-3); padding: 6px 8px; line-height: 1.5; }

.alert {
  padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 14px;
  border: 1px solid;
}
.alert.warn { background: var(--c-warn-bg); border-color: #f0dca8; color: var(--c-warn); }
.alert.err { background: var(--c-err-bg); border-color: #f5c6c0; color: var(--c-err); }
.alert.info { background: var(--c-primary-light); border-color: #cddff5; color: var(--c-primary); }

/* ---------- 遮罩 / 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(15, 25, 40, .55);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal {
  background: #fff; border-radius: var(--radius); width: 92%; max-width: 420px;
  padding: 24px; box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.modal h3 { margin: 0 0 8px; font-size: 16px; }
.modal p { color: var(--c-text-2); font-size: 13.5px; margin: 0 0 18px; }
.modal .btn-row { justify-content: flex-end; }

.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  background: rgba(26, 75, 140, .94); color: #fff; font-size: 13px;
  padding: 9px 20px; border-radius: 20px; z-index: 200;
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(4px); }

.footer-note { text-align: center; color: var(--c-text-3); font-size: 12px; padding: 10px 0 26px; }

@media (max-width: 920px) {
  .exam-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr; }
  .result-hero { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .pick-grid { grid-template-columns: 1fr; }
}

/* ================= 真实机考信息栏 ================= */
.topbar-link {
  color: #fff; text-decoration: none; font-size: 13px;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1);
}
.topbar-link:hover { background: rgba(255,255,255,.22); }

.exam-top {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 10;
}
.cand { display: flex; align-items: center; gap: 14px; }
/* 考生信息方框 = 监考视频（实时画面），入场核验照以缩略图叠加 */
.cand-photo {
  position: relative; width: 132px; aspect-ratio: 4 / 3; border-radius: 6px;
  background: #101820; overflow: hidden; flex: none;
  border: 1px solid var(--c-border);
}
.cand-photo video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.cand-photo img { display: none; }
.cand-photo .photo-thumb {
  display: block; position: absolute; right: 4px; bottom: 20px; z-index: 2;
  width: 44px; height: 33px; object-fit: cover;
  border: 1px solid rgba(255,255,255,.85); border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.cand-photo .photo-thumb.hidden { display: none; }
.cand-photo .live {
  position: absolute; top: 6px; left: 6px; z-index: 2; display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 10px;
}
.cand-photo .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cand-photo .flash.go { animation: flash .35s ease-out; }
.cand-photo .ph-tip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; text-align: center;
  font-size: 10px; color: #fff; background: rgba(0,0,0,.6); padding: 1px 0;
}
.cand-photo .ph-tip.done { background: rgba(21,146,91,.9); }
.cand-info .ci-l1 { display: flex; align-items: baseline; gap: 10px; }
.cand-info .ci-l1 b { font-size: 16px; font-weight: 600; }
.cand-info .ci-id { font-size: 12.5px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.cand-info .ci-l2 { font-size: 12.5px; color: var(--c-text-2); margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cand-info .ci-l2 b { color: var(--c-text); font-weight: 500; }
.ci-l2 .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-text-3); display: inline-block; }

.topstats { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topstats .ts { text-align: right; }
.topstats .ts > span { display: block; font-size: 11.5px; color: var(--c-text-3); }
.topstats .ts > b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.topstats .ts > b i { font-style: normal; }
.topstats .timer { font-size: 24px; font-weight: 700; color: var(--c-primary); letter-spacing: 1px; }
.topstats .timer.warn { color: var(--c-err); }

/* 考前信息速览 */
.exam-facts { grid-template-columns: 96px 1fr 96px 1fr; row-gap: 10px; }
.exam-facts .k { color: var(--c-text-2); }

/* 抓拍进度高亮 */
.shot-n { color: var(--c-ok); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ================= 内网架构 · 考试机端 ================= */
.conn-badge {
  font-size: 12.5px; padding: 5px 14px; border-radius: 20px; margin-right: 10px;
  border: 1px solid transparent; white-space: nowrap;
}
.conn-badge.on { color: #b8f3d0; border-color: rgba(70,200,140,.55); background: rgba(40,150,100,.28); }
.conn-badge.off { color: #ffd9d9; border-color: rgba(255,120,120,.5); background: rgba(180,60,60,.28); }

.station-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 12px 18px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.station-bar .sb-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.station-bar .sb-l b { font-size: 15px; }
.station-bar .sb-sub { font-size: 12.5px; color: var(--c-text-2); }
.station-bar .sb-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sb-dot { width: 9px; height: 9px; border-radius: 50%; background: #c94a4a; flex: none; }
.sb-dot.on { background: #15925b; box-shadow: 0 0 0 4px rgba(21,146,91,.16); }

/* 全屏守卫 */
.fs-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(12,20,32,.94); display: flex; align-items: center; justify-content: center;
}
.fs-mask.hidden { display: none; }
.fs-box {
  background: #fff; border-radius: 14px; padding: 34px 44px; text-align: center;
  max-width: 520px; box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.fs-box h3 { color: var(--c-err); font-size: 21px; margin-bottom: 12px; }
.fs-box p { color: var(--c-text-2); font-size: 14px; line-height: 1.7; margin-bottom: 22px; }

/* 考试中 · 全屏提示 */
.kiosk-tip { font-size: 12.5px; color: var(--c-text-3); }

/* ================= 考试界面 · 隐藏顶栏（考试中只保留考试信息） ================= */
body.exam-mode .topbar { display: none; }

/* ---------- 交卷按钮（警示色） ---------- */
.btn-warn { background: var(--c-err); border-color: var(--c-err); color: #fff; }
.btn-warn:hover { background: #a93226; border-color: #a93226; color: #fff; }

/* ---------- 答题卡：题号可点击跳转 ---------- */
.sheet-grid .cell { cursor: pointer; transition: transform .1s, box-shadow .1s; }
.sheet-grid .cell:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(26,75,140,.18); }
.cell.wrong { background: var(--c-err-bg); border-color: #f0b6b6; color: #9b2c2c; }
.cell.wrong.cur { color: #9b2c2c; }
.cell.blank { background: #fff; border-style: dashed; color: var(--c-text-3); }
.cell.blank.cur { border-style: solid; }
/* 已选答案但尚未点「上一题 / 下一题 / 交卷」锁定 */
.cell.picked { background: #fffbe8; border-color: #e6c25a; color: #8a6100; }
.cell.picked.cur { border-color: #d9a800; }
.sheet-tip { font-size: 11.5px; color: var(--c-text-3); margin-top: 9px; line-height: 1.9; }
.lg-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 2px;
  vertical-align: -1px; margin: 0 2px; border: 1px solid var(--c-border);
}
.lg-dot.wrong { background: var(--c-err-bg); border-color: #f0b6b6; }
.lg-dot.blank { background: #fff; border-style: dashed; }
.lg-dot.done { background: var(--c-accent); border-color: var(--c-accent); }
.lg-dot.picked { background: #fffbe8; border-color: #e6c25a; }

/* ---------- 选项锁定后的对错标记 ---------- */
.opt.right-ans { border-color: var(--c-ok) !important; background: var(--c-ok-bg) !important; }
.opt.right-ans .key { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }
.opt.wrong-ans { border-color: var(--c-err) !important; background: var(--c-err-bg) !important; }
.opt.wrong-ans .key { background: var(--c-err); border-color: var(--c-err); color: #fff; }
.opt .mark { margin-left: auto; font-size: 12px; font-weight: 700; white-space: nowrap; }
.opt .mark.ok { color: var(--c-ok); }
.opt .mark.no { color: var(--c-err); }

/* ---------- 题目下方内联错题分析（回看时展示） ---------- */
.analysis-box {
  margin-top: 20px; border-radius: 10px; padding: 16px 18px;
  background: #fdf4f4; border: 1px solid #f3d6d6; border-left: 4px solid var(--c-err);
}
.analysis-box .ab-title { font-size: 14px; font-weight: 700; color: var(--c-err); margin-bottom: 8px; }
.analysis-box .ab-ans { font-size: 13.5px; color: var(--c-text); margin-bottom: 8px; }
.analysis-box .ab-ans b { color: var(--c-ok); }
.analysis-box .ab-text { font-size: 13.5px; color: var(--c-text-2); line-height: 1.9; }

/* ---------- 错题即时弹窗 ---------- */
.wrong-mask {
  position: fixed; inset: 0; z-index: 9998; background: rgba(12,20,32,.58);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.wrong-mask.hidden { display: none; }
.wrong-box {
  background: #fff; border-radius: 14px; width: 640px; max-width: 100%;
  max-height: 88vh; overflow: auto; padding: 24px 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.wb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.wb-icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--c-err); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none;
}
.wb-head h3 { font-size: 18px; color: var(--c-err); margin: 0; }
.wb-no { margin-left: auto; font-size: 12.5px; color: var(--c-text-3); }
.wb-stem {
  font-size: 15px; line-height: 1.85; color: var(--c-text);
  padding: 13px 15px; background: #f6f8fb; border-radius: 8px; margin-bottom: 14px;
}
.wb-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 9px; font-size: 14px; }
.wb-k { width: 76px; flex: none; color: var(--c-text-3); }
.wb-v { font-weight: 600; }
.wb-v.bad { color: var(--c-err); }
.wb-v.ok { color: var(--c-ok); }
.wb-analysis { margin-top: 14px; padding: 14px 16px; background: #f2f8f5; border: 1px solid #d6eadf; border-radius: 10px; }
.wb-a-title { font-size: 13px; font-weight: 700; color: var(--c-ok); margin-bottom: 7px; }
.wb-a-text { font-size: 13.5px; line-height: 1.95; color: var(--c-text-2); }
.wb-foot { display: flex; align-items: center; gap: 10px; margin-top: 20px; }

/* ---------- 2a. 等待开考页 ---------- */
.wait-card { text-align: center; padding: 46px 40px 40px; }
.wait-badge {
  display: inline-block; padding: 7px 22px; border-radius: 22px;
  background: var(--c-primary-light); color: var(--c-primary);
  font-size: 15px; font-weight: 700; letter-spacing: 1px; margin-bottom: 18px;
}
.wait-title { font-size: 24px; margin: 0 0 10px; color: var(--c-text); }
.wait-card .hint { max-width: 560px; margin: 0 auto; }
.wait-pulse { display: flex; justify-content: center; gap: 10px; margin: 26px 0 22px; }
.wp-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--c-accent);
  animation: wp 1.2s ease-in-out infinite;
}
.wp-dot:nth-child(2) { animation-delay: .18s; }
.wp-dot:nth-child(3) { animation-delay: .36s; }
@keyframes wp { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
.wait-facts {
  max-width: 430px; margin: 0 auto; text-align: left;
  background: #f7f9fc; border: 1px solid var(--c-border); border-radius: 10px; padding: 16px 20px;
}
.wait-actions { justify-content: center; margin-top: 26px; }

/* ---------- 2b. 开考确认页 ---------- */
.confirm-head { text-align: center; margin: 6px 0 18px; }
.confirm-head h2 { font-size: 26px; margin: 0 0 6px; }
.confirm-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .confirm-grid { grid-template-columns: 1fr; } }
.confirm-cand { padding: 22px 26px; }
.confirm-name-row { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.confirm-name { font-size: 34px; font-weight: 700; color: var(--c-primary); letter-spacing: 2px; }
.confirm-seat {
  font-size: 14px; color: var(--c-text-2);
  background: var(--c-primary-light); border-radius: 16px; padding: 4px 14px;
}
.confirm-facts { grid-template-columns: 96px 1fr; row-gap: 12px; font-size: 15px; }
.confirm-facts .k { color: var(--c-text-2); }
.confirm-facts b { font-size: 15.5px; }
.confirm-cam { padding: 22px 26px; display: flex; flex-direction: column; }
.confirm-cam .cam-box { margin-bottom: 12px; }
.confirm-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
.btn-xl { height: 62px; padding: 0 74px; font-size: 21px; font-weight: 700; letter-spacing: 4px; border-radius: 12px; box-shadow: 0 4px 16px rgba(26, 75, 140, .3); }
.btn-xl:hover { transform: translateY(-1px); }

/* ---------- 成绩单打印：去掉表头（顶栏）与操作按钮，仅打印成绩内容 ---------- */
@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body { padding: 14mm 12mm; }
  .topbar,
  .footer-note,
  .btn-row,
  .toast,
  #fs-mask,
  #wrong-mask,
  .station-bar,
  .conn-badge { display: none !important; }
  main.wrap { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #d5dbe3 !important; page-break-inside: avoid; }
  .score-ring { box-shadow: none !important; }
  .album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ================= 图片题（判断 / 单选 / 多选） ================= */
/* 题干配图：居中展示，点击可放大 */
.q-figure {
  margin: 0 0 14px;
  padding: 10px;
  background: #f7f9fc;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-align: center;
}
.q-figure img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 4px;
  cursor: zoom-in;
  background: #fff;
}
.qfig-tip { margin-top: 6px; font-size: 12px; color: var(--c-text-3); }

/* 选项配图：选项内嵌小图，自动两列排布 */
.opts-figure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts-figure .opt { margin: 0; }
.opt-body { display: flex; align-items: center; gap: 10px; min-width: 0; }
.opt-has-img .opt-body { flex-direction: column; align-items: flex-start; }
.opt-img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 4px;
  border: 1px solid var(--c-border);
  background: #fff;
  cursor: zoom-in;
}
.opt-text { min-width: 0; }

/* 配图放大查看 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(12, 18, 28, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox img {
  max-width: 96vw;
  max-height: 86vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  background: #fff;
}
.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  padding: 8px 16px;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .26); }

/* 错题弹窗内的配图尺寸略小 */
.wrong-box .q-figure img { max-height: 200px; }

/* 打印成绩单时不输出配图 */
@media print {
  .lightbox, .q-figure, .opt-img { display: none !important; }
}
