/* 赣才优服考试宝数智化平台 —— 视觉系统
   纸白底 / 朱红主色 / 宋体标题，桌面侧边栏 + 手机底部标签栏双布局 */

:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --red: #b01c25;
  --red-dark: #8f151d;
  --red-bg: #fbedec;
  --red-line: #e8c9c6;
  --green: #2e7d52;
  --green-bg: #edf5f0;
  --green-line: #bfd8c9;
  --gold: #b08a3e;
  --gold-dark: #6b5417;
  --gold-bg: #fbf5e8;
  --gold-line: #e8ddbe;
  --line: #e5e1d7;
  --line-soft: #efece4;
  --line-strong: #d0ccbe;
  --ink: #1a1a1a;
  --ink-2: #44403a;
  --ink-3: #5c5c5c;
  --ink-4: #8c8779;
  --ink-5: #a8a395;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --side: 232px;
  --shadow: 0 2px 10px rgba(26, 26, 26, .05);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14.5px; color: var(--ink); }
::selection { background: var(--red-bg); color: var(--red); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

/* ---------------- 壳层 ---------------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--side); flex: 0 0 var(--side); background: var(--card);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 40;
}
.brand { padding: 18px 18px 16px; border-bottom: 1px solid var(--line-soft); }
.brand-mark { display: flex; align-items: center; gap: 9px; }
.seal {
  width: 30px; height: 30px; background: var(--red); color: #fff; flex: 0 0 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16.5px; font-weight: 700; letter-spacing: 0;
}
.brand-name { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; letter-spacing: .3px; }
.nav { padding: 10px 10px; overflow-y: auto; flex: 1; }
.nav-group { font-size: 11px; color: var(--ink-5); letter-spacing: 1.2px; padding: 12px 8px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; margin-bottom: 2px;
  color: var(--ink-2); font-size: 14px; border-left: 2px solid transparent;
}
.nav-item:hover { background: var(--paper); }
.nav-item.on { background: var(--red-bg); border-left-color: var(--red); color: var(--red); font-weight: 600; }
.nav-item .ico { width: 15px; text-align: center; opacity: .8; font-size: 13.5px; }
.nav-item .count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); }
.nav-item.on .count { color: var(--red); }
.side-foot { border-top: 1px solid var(--line-soft); padding: 12px 14px; }
.who { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 28px; height: 28px; background: var(--red-bg); color: var(--red); flex: 0 0 28px;
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--red-line);
}
.who-name { font-size: 13.5px; font-weight: 600; }
.who-role { font-size: 11.5px; color: var(--ink-4); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--paper); }
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 32px 18px;
}
.eyebrow { font-size: 12px; color: var(--red); letter-spacing: .6px; }
.page-title { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: .5px; margin-top: 5px; }
.page-sub { font-size: 13px; color: var(--ink-3); margin-top: 6px; max-width: 720px; line-height: 1.7; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.rule { height: 1px; background: var(--line); }
.content { padding: 20px 32px 34px; flex: 1; }
.content.flush { padding: 0; }

/* ---------------- 按钮 / 徽标 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; font-size: 13.5px; background: var(--card);
  border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.btn:hover { border-color: var(--ink-4); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.ghost { border-color: var(--line); color: var(--ink-3); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--red); border-color: var(--red-line); background: var(--card); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--red); font-size: 13px; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link.muted { color: var(--ink-4); }

.badge { display: inline-flex; align-items: center; padding: 2px 7px; font-size: 11px; font-weight: 600; border: 1px solid; }
.badge.red { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.badge.green { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.badge.gold { color: var(--gold-dark); background: var(--gold-bg); border-color: var(--gold-line); }
.badge.gray { color: var(--ink-4); background: var(--paper); border-color: var(--line); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red); } .dot.green { background: var(--green); }
.dot.gold { background: var(--gold); } .dot.gray { background: var(--ink-5); }

/* ---------------- KPI ---------------- */
.kpi {
  display: flex; align-items: center; background: var(--card);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0 32px; min-height: 84px; gap: 0; overflow-x: auto;
}
.kpi-cell { flex: 1 1 0; min-width: 108px; padding: 14px 0; }
.kpi-cell + .kpi-cell { padding-left: 24px; }
.kpi-num { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.kpi-num.red { color: var(--red); } .kpi-num.gold { color: var(--gold); } .kpi-num.green { color: var(--green); }
.kpi-label { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.kpi-sep { width: 1px; height: 36px; background: var(--line-soft); flex: 0 0 1px; }

/* ---------------- 布局网格 ---------------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.grid-2 > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.sm { gap: 10px; }
.span-2 { grid-column: 1 / -1; }

/* ---------------- 卡片 ---------------- */
.card { background: var(--card); border: 1px solid var(--line); }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; min-height: 44px;
}
.card-head .t { font-size: 14px; font-weight: 600; }
.card-head .t.lg { font-size: 14.5px; }
.card-head .r { font-size: 12px; color: var(--ink-4); }
.card-line { height: 1px; background: var(--line); }
.card-body { padding: 14px 16px 16px; }
.card-body.tight { padding: 8px 16px 10px; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-4);
}

/* ---------------- 表格 ---------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tb { width: 100%; border-collapse: collapse; min-width: 560px; }
table.tb th {
  text-align: left; font-size: 11.5px; font-weight: 500; color: var(--ink-4);
  background: var(--paper); padding: 7px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tb td {
  font-size: 13.5px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2); vertical-align: middle;
}
table.tb tr:last-child td { border-bottom: 0; }
table.tb tr.click:hover td { background: #fdfcfa; cursor: pointer; }
table.tb td.strong { color: var(--ink); font-weight: 500; }
table.tb td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.tb th.num, table.tb td.num.right { text-align: right; }
table.tb td.nowrap { white-space: nowrap; }

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--ink-4); }
.input, .select, .textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong);
  background: var(--card); outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--red); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.hint { font-size: 12px; color: var(--ink-4); }

/* ---------------- 提示条 ---------------- */
.notice { padding: 9px 11px; font-size: 12px; line-height: 1.65; border: 1px solid; }
.notice.gold { background: var(--gold-bg); border-color: var(--gold-line); color: var(--gold-dark); }
.notice.red { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.notice.green { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }
.notice.gray { background: var(--paper); border-color: var(--line); color: var(--ink-3); }

/* ---------------- 进度条 ---------------- */
.bar { height: 4px; background: var(--line-soft); width: 100%; }
.bar > i { display: block; height: 100%; background: var(--red); }
.bar.thin { height: 3px; }
.bar > i.gold { background: var(--gold); }
.bar > i.green { background: var(--green); }

/* ---------------- 场次大厅 ---------------- */
.hall { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.session {
  background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s; position: relative;
}
.session:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.session-top { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.session-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-4); letter-spacing: .3px; }
.session-title {
  font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.45; letter-spacing: .2px;
}
.session-brief { font-size: 12.5px; color: var(--ink-3); }
.session-facts { display: flex; gap: 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.fact { flex: 1; padding: 9px 4px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line-soft); }
.fact b { display: block; font-family: var(--mono); font-size: 14.5px; font-weight: 700; }
.fact span { font-size: 10.5px; color: var(--ink-4); }
.fact b.red { color: var(--red); }
.session-foot { padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.session-foot .st { font-size: 12px; color: var(--ink-4); }
.ribbon {
  position: absolute; top: 0; right: 0; font-size: 10.5px; padding: 3px 8px; letter-spacing: .5px;
  background: var(--paper); color: var(--ink-4); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ribbon.live { background: var(--red); color: #fff; border-color: var(--red); }
.ribbon.done { background: var(--paper); color: var(--ink-4); }

.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 6px 12px; font-size: 13px; border: 1px solid var(--line); background: var(--card); color: var(--ink-3);
}
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.chip:hover:not(.on) { border-color: var(--line-strong); }
.search { position: relative; flex: 1; min-width: 160px; max-width: 320px; }
.search input { width: 100%; padding: 7px 11px 7px 28px; border: 1px solid var(--line); background: var(--card); outline: none; font-size: 13.5px; }
.search input:focus { border-color: var(--red); }
.search::before { content: "⌕"; position: absolute; left: 10px; top: 6px; color: var(--ink-5); font-size: 15.5px; }

/* ---------------- 选项 ---------------- */
.opt {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.opt:hover { border-color: var(--line-strong); }
.opt .k {
  width: 22px; height: 22px; flex: 0 0 22px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-4);
  font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.opt .x { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; flex: 1; }
.opt .x small { display: block; font-size: 11px; margin-top: 2px; }
.opt.sel { background: var(--red-bg); border-color: var(--red); }
.opt.sel .k { background: var(--red); border-color: var(--red); color: #fff; }
.opt.sel .x { color: var(--ink); font-weight: 500; }
.opt.correct { background: var(--green-bg); border-color: var(--green); }
.opt.correct .k { background: var(--green); border-color: var(--green); color: #fff; }
.opt.wrong { background: var(--red-bg); border-color: var(--red); }
.opt.wrong .k { background: var(--red); border-color: var(--red); color: #fff; }
.opt.correct small { color: var(--green); font-weight: 600; }
.opt.wrong small { color: var(--red); font-weight: 600; }
.opt-static { cursor: default; }
.opt-static:hover { border-color: var(--line); }

/* ---------------- 考试 / 刷题 全屏壳 ---------------- */
.exam { position: fixed; inset: 0; background: var(--paper); display: flex; flex-direction: column; z-index: 60; }
.exam-top {
  display: flex; align-items: center; gap: 16px; padding: 10px 22px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.exam-timer { display: flex; flex-direction: column; }
.exam-timer span { font-size: 10.5px; color: var(--ink-4); letter-spacing: .4px; }
.exam-timer b { font-family: var(--mono); font-size: 19px; color: var(--red); font-weight: 700; letter-spacing: -.5px; }
.exam-timer b.warn { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.exam-title { flex: 1; min-width: 0; text-align: center; }
.exam-title .n { font-family: var(--serif); font-size: 15.5px; font-weight: 700; }
.exam-title .m { font-size: 11.5px; color: var(--ink-4); margin-top: 1px; }
.exam-prog { text-align: right; }
.exam-prog span { font-size: 10.5px; color: var(--ink-4); }
.exam-prog b { font-family: var(--mono); font-size: 14.5px; display: block; }
.exam-body { flex: 1; display: flex; min-height: 0; }
.exam-main { flex: 1; overflow-y: auto; padding: 26px 0; display: flex; justify-content: center; }
.exam-paper { width: 100%; max-width: 760px; padding: 0 24px; display: flex; flex-direction: column; gap: 14px; }
.exam-side {
  width: 280px; flex: 0 0 280px; border-left: 1px solid var(--line); background: var(--card);
  padding: 16px; overflow-y: auto;
}
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.palette button {
  height: 30px; border: 1px solid var(--line-soft); background: var(--paper); color: var(--ink-4);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.palette button.done { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.palette button.now { background: var(--red); border-color: var(--red); color: #fff; }
.palette button.flag { box-shadow: inset 0 -2px 0 var(--gold); }
.exam-foot {
  display: flex; align-items: center; gap: 10px; padding: 11px 22px;
  background: var(--card); border-top: 1px solid var(--line);
}
.exam-foot .spacer { flex: 1; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-4); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--line-soft); margin-right: 4px; vertical-align: -1px; }

/* ---------------- 登录 ---------------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-art {
  background: var(--red); color: #fff; padding: 56px 52px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden;
}
.login-art::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
}
.login-art::before {
  content: ""; position: absolute; right: -40px; bottom: -200px; width: 560px; height: 560px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%;
}
.login-art h1 { font-family: var(--serif); font-size: 40px; line-height: 1.35; letter-spacing: 2px; font-weight: 700; }
.login-art .sub { font-size: 14px; line-height: 2; color: rgba(255, 255, 255, .82); margin-top: 18px; max-width: 400px; }
.login-art .tag { font-size: 11.5px; letter-spacing: 2px; color: rgba(255, 255, 255, .7); }
.login-notes { display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: rgba(255, 255, 255, .78); position: relative; z-index: 1; }
.login-notes b { color: #fff; font-weight: 600; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--paper); }
.login-form { width: 100%; max-width: 352px; }
.login-form h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.login-form .tip { font-size: 13px; color: var(--ink-3); margin: 6px 0 24px; }
.login-form .field + .field { margin-top: 14px; }
.login-form .btn.primary { margin-top: 20px; padding: 12px; font-size: 14.5px; }
.quick { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.quick .t { font-size: 11.5px; color: var(--ink-5); letter-spacing: 1px; margin-bottom: 9px; }
.quick-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-btns button { font-size: 12.5px; padding: 6px 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-3); }
.quick-btns button:hover { border-color: var(--red); color: var(--red); }

/* ---------------- 弹层 ---------------- */
.mask {
  position: fixed; inset: 0; background: rgba(26, 26, 26, .42); z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--card); width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  border: 1px solid var(--line-strong); box-shadow: 0 16px 50px rgba(0, 0, 0, .22);
}
.modal.wide { max-width: 680px; }
.modal-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head .t { font-size: 15px; font-weight: 600; }
.modal-head .x { color: var(--ink-4); font-size: 18px; cursor: pointer; line-height: 1; }
.modal-body { padding: 16px 18px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 9px 16px; font-size: 13.5px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22); animation: drop .18s ease-out;
}
.toast.red { background: var(--red); } .toast.green { background: var(--green); } .toast.gold { background: var(--gold-dark); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------------- 移动端标签栏 ---------------- */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabbar-inner { display: flex; height: 54px; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11.5px; color: var(--ink-4); position: relative;
}
.tab .ti { font-size: 16.5px; line-height: 1; opacity: .75; }
.tab.on { color: var(--red); font-weight: 600; }
.tab.on .ti { opacity: 1; }
.tab.on::after { content: ""; position: absolute; top: 0; width: 18px; height: 2px; background: var(--red); }

.mobile-only { display: none; }
.scrim { display: none; }
.topbar-mobile { display: none; }

/* ---------------- 步骤条 ---------------- */
.steps { display: flex; align-items: center; gap: 0; }
.step { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-4); }
.step .n {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 11px; background: var(--card);
}
.step.on { color: var(--red); font-weight: 600; }
.step.on .n { background: var(--red); border-color: var(--red); color: #fff; }
.step.done .n { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.step-sep { width: 26px; height: 1px; background: var(--line); margin: 0 8px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr) 300px; }
  .content, .page-head, .kpi { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 900px) {
  .app { display: block; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; height: 100%; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: 0 0 30px rgba(0, 0, 0, .14); width: 250px; flex-basis: 250px;
  }
  .app.nav-open .sidebar { transform: none; }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .32); z-index: 35; }
  .topbar-mobile {
    display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
    background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
  }
  .topbar-mobile .burger { font-size: 19px; color: var(--ink-2); width: 24px; }
  .topbar-mobile .tm-title { font-family: var(--serif); font-size: 16.5px; font-weight: 700; flex: 1; }
  .topbar-mobile .tm-act { font-size: 12.5px; color: var(--red); }
  .main { min-height: calc(100vh - 52px); padding-bottom: 66px; }
  .page-head { padding: 14px 14px 12px; flex-direction: column; gap: 12px; }
  .page-title { font-size: 23px; }
  .page-sub { font-size: 12.5px; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .head-actions .btn { flex: 1; }
  .content { padding: 14px; }
  .kpi { padding: 0 14px; min-height: 72px; }
  .kpi-cell { min-width: 92px; padding: 11px 0; }
  .kpi-cell + .kpi-cell { padding-left: 14px; }
  .kpi-num { font-size: 19px; }
  .kpi-sep { height: 28px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hall { grid-template-columns: 1fr; gap: 12px; }
  .session-title { font-size: 18px; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .card-head { padding: 11px 13px; }
  .card-body { padding: 12px 13px 14px; }
  table.tb th, table.tb td { padding-left: 13px; padding-right: 13px; }
  .tabbar { display: block; }
  .mobile-only { display: block; }
  .desktop-only { display: none !important; }

  /* 考试页移动端 */
  .exam-top { padding: 8px 12px; gap: 10px; }
  .exam-timer b { font-size: 18px; }
  .exam-title { text-align: left; }
  .exam-title .n { font-size: 13.5px; }
  .exam-main { padding: 14px 0; }
  .exam-paper { padding: 0 14px; }
  .exam-body { flex-direction: column; }
  .exam-side {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; flex: none; max-height: 62vh;
    border-left: 0; border-top: 1px solid var(--line-strong); z-index: 70;
    transform: translateY(100%); transition: transform .2s; padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
  }
  .exam-side.open { transform: none; }
  .palette { grid-template-columns: repeat(7, 1fr); }
  .exam-foot { padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0)); gap: 7px; }
  .exam-foot .btn { flex: 1; padding: 10px 6px; font-size: 13.5px; }
  .exam-foot .spacer { display: none; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-form-wrap { padding: 28px 20px; align-items: flex-start; padding-top: 56px; }
  .modal { max-height: 92vh; }
  .steps { overflow-x: auto; padding-bottom: 2px; }
  .step-sep { width: 16px; margin: 0 5px; }
}

/* ---------------- 成绩证明 ---------------- */
.cert-stage { position: relative; margin: 0 auto; }
.cert-sheet {
  width: 794px; height: 1123px; background: #fffefb; position: relative; margin: 0 auto;
  transform-origin: top center; box-shadow: 0 12px 44px rgba(26, 26, 26, .13);
  color: #1a1a1a; font-family: var(--sans);
}
.cert-frame { position: absolute; inset: 24px; border: 1px solid #d8d2c2; pointer-events: none; }
.cert-frame::after { content: ""; position: absolute; inset: 6px; border: 2px solid rgba(176, 28, 37, .8); }
.cert-head { position: absolute; top: 74px; left: 0; right: 0; text-align: center; }
.cert-school { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: 10px; text-indent: 10px; }
.cert-school-en { font-size: 10.5px; letter-spacing: 3px; color: #8c8779; margin-top: 7px; }
.cert-rule { display: flex; justify-content: center; margin-top: 14px; }
.cert-rule i { width: 132px; height: 3px; background: var(--red); display: block; }
.cert-title { font-family: var(--serif); font-size: 38px; font-weight: 700; letter-spacing: 16px; text-indent: 16px; margin-top: 30px; }
.cert-title-en { font-size: 9.5px; letter-spacing: 2.6px; color: #a8a395; margin-top: 8px; }
.cert-no { position: absolute; top: 328px; right: 66px; font-size: 11px; color: #5c5c5c; letter-spacing: .5px; }
.cert-body { position: absolute; top: 372px; left: 86px; right: 86px; font-size: 16px; line-height: 2.5; text-align: justify; }
.cert-body p { text-indent: 2em; margin: 0 0 6px; }
.cert-name { font-weight: 700; border-bottom: 1px solid #1a1a1a; padding: 0 4px; }
.cert-score { font-family: var(--mono); font-size: 23px; color: var(--red); font-weight: 700; padding: 0 3px; }
.cert-sign { position: absolute; right: 96px; top: 700px; text-align: center; width: 300px; }
.cert-org { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: 3px; }
.cert-org span { display: block; font-size: 15px; margin-top: 6px; letter-spacing: 6px; text-indent: 6px; }
.cert-date { font-size: 14px; color: #44403a; margin-top: 10px; letter-spacing: 1px; }
.seal-stamp {
  position: absolute; right: -8px; top: -46px; opacity: .82; transform: rotate(-9deg);
  mix-blend-mode: multiply; pointer-events: none;
}
.cert-verify { position: absolute; left: 86px; bottom: 118px; display: flex; align-items: flex-end; gap: 14px; }
.cert-verify svg { border: 1px solid var(--line-soft); padding: 5px; background: #fff; }
.cert-verify-txt b { display: block; font-size: 12.5px; letter-spacing: 1px; }
.cert-verify-txt span { display: block; font-size: 10px; color: #8c8779; margin-top: 3px; }
.cert-verify-txt .mono { color: #5c5c5c; letter-spacing: 1px; }
.cert-foot {
  position: absolute; left: 86px; right: 86px; bottom: 58px; text-align: center;
  font-size: 10px; color: #a8a395; letter-spacing: .4px; border-top: 1px solid var(--line-soft); padding-top: 10px;
}
.cert-note { text-align: center; font-size: 12px; color: var(--ink-4); padding: 16px 0 6px; }
.cert-note b { color: var(--red); }
.cert-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); padding: 0 4px; cursor: pointer; }
.cert-switch input { accent-color: var(--red); width: 15px; height: 15px; }
.cert-batch { margin-bottom: 26px; }

/* ---------------- 公开核验页（免登录） ---------------- */
.pub-wrap { min-height: 100vh; background: var(--paper); padding: 46px 16px 40px; }
.pub-brand { display: flex; align-items: center; gap: 9px; justify-content: center; margin-bottom: 26px; color: var(--ink-2); font-size: 13.5px; }
.pub-seal {
  width: 30px; height: 30px; background: var(--red); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; font-weight: 700;
}
.pub-card {
  max-width: 470px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 34px 30px 26px;
}
.pub-badge {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px; display: flex;
  align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
}
.pub-badge.ok { background: var(--green-bg); color: var(--green); border: 2px solid var(--green); }
.pub-badge.fail { background: var(--red-bg); color: var(--red); border: 2px solid var(--red); }
.pub-head { text-align: center; font-family: var(--serif); font-size: 21px; font-weight: 700; }
.pub-sub { text-align: center; font-size: 12.5px; color: var(--ink-3); line-height: 1.9; margin: 10px 0 4px; }
.pub-rows { margin-top: 22px; border-top: 1px solid var(--line); }
.pub-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.pub-row > span { color: var(--ink-4); flex: 0 0 84px; }
.pub-row > b { flex: 1; text-align: right; font-weight: 500; line-height: 1.7; }
.pub-score { font-family: var(--mono); font-size: 17px; color: var(--red); }
.pub-meta { text-align: center; font-size: 10.5px; color: var(--ink-5); margin-top: 16px; }
.pub-foot { text-align: center; font-size: 10.5px; color: var(--ink-5); margin-top: 30px; letter-spacing: .5px; }

/* ---------------- 打印（A4 纵向） ---------------- */
@media print {
  @page { size: A4 portrait; margin: 0; }
  body { background: #fff !important; }
  .sidebar, .tabbar, .topbar-mobile, .scrim, .no-print, .page-head, .rule, .cert-note, .toast-wrap { display: none !important; }
  .app { display: block !important; }
  .main { padding: 0 !important; margin: 0 !important; }
  .content { padding: 0 !important; }
  .cert-stage { height: auto !important; margin: 0 !important; }
  .cert-sheet { transform: none !important; box-shadow: none !important; page-break-after: always; }
  .cert-batch { margin-bottom: 0 !important; }
  .pub-wrap { padding: 0; }
}

/* ---------------- 监控大屏 ---------------- */
.scr-stage {
  position: fixed; inset: 0; z-index: 90; overflow: auto;
  background:
    radial-gradient(130% 95% at 50% -12%, #10557f 0%, #0a3a63 42%, #062a4c 68%, #031a30 100%);
  color: #eaf4fc; padding: 24px 32px 28px; font-family: var(--sans);
}
.scr-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.scr-brand { display: flex; align-items: center; gap: 12px; }
.scr-brand .seal {
  width: 44px; height: 44px; color: #fff; display: flex; align-items: center;
  justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 700;
  background: linear-gradient(160deg, #2fb3e6, #0d6fa8); border-radius: 10px;
  box-shadow: 0 4px 18px rgba(47, 179, 230, .35);
}
.scr-brand b { display: block; font-family: var(--serif); font-size: 24px; letter-spacing: 4px; color: #f2faff; }
.scr-brand i { display: block; font-style: normal; font-size: 11.5px; color: #8fb8d4; letter-spacing: 2px; margin-top: 3px; }
.scr-sess { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.scr-chip {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(160, 215, 255, .22); color: #b9d9ee;
  padding: 8px 16px; font-size: 13.5px; cursor: pointer; border-radius: 999px; font-family: inherit;
  transition: all .2s;
}
.scr-chip:hover { border-color: #3fc6f0; color: #d9f1ff; }
.scr-chip.on {
  background: linear-gradient(150deg, #2fb3e6, #1273b8); border-color: transparent;
  color: #fff; font-weight: 600; box-shadow: 0 3px 14px rgba(47, 179, 230, .4);
}
.scr-tools { display: flex; align-items: center; gap: 10px; }
.scr-clock { font-size: 22px; color: #ffd166; font-weight: 700; letter-spacing: 2px; }
.scr-btn {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(160, 215, 255, .28); color: #cfe6f5;
  padding: 8px 14px; font-size: 12.5px; border-radius: 8px; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.scr-btn:hover { border-color: #3fc6f0; color: #3fc6f0; }
.scr-sub {
  display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap;
  margin: 16px 0 4px; padding: 11px 18px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(160, 215, 255, .13); border-radius: 12px; font-size: 14px; color: #cfe4f4;
}
.scr-sub .mono { color: #8fb8d4; font-size: 12px; }
.scr-main { padding: 4px 0 0; display: flex; flex-direction: column; min-height: calc(100vh - 190px); }
.scr-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 12px; }
.scr-kpi {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(160, 215, 255, .15);
  border-radius: 14px; padding: 20px 18px 16px; text-align: center; position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.scr-kpi .v { font-family: var(--mono); font-size: 46px; font-weight: 700; line-height: 1.15; color: #f2faff; }
.scr-kpi .v small { font-size: 17px; color: #9fc3dd; font-weight: 600; margin-left: 5px; }
.scr-kpi .v.gold { color: #ffd166; text-shadow: 0 0 26px rgba(255, 209, 102, .35); }
.scr-kpi .v.red { color: #ff8a8a; }
.scr-kpi .v.green { color: #3ddc97; }
.scr-kpi .l { font-size: 13.5px; color: #9fc3dd; margin-top: 6px; letter-spacing: 2px; }
.pulse {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #ffd166;
  margin-right: 10px; vertical-align: 6px; animation: scrPulse 1.6s ease-in-out infinite;
}
@keyframes scrPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, .55); }
  50% { box-shadow: 0 0 0 9px rgba(255, 209, 102, 0); }
}
.scr-grid { display: grid; grid-template-columns: 5fr 4.5fr 4.5fr; gap: 14px; margin-top: 14px; flex: 1.15; }
.scr-grid2 { display: grid; grid-template-columns: 7fr 5fr; gap: 14px; margin-top: 14px; flex: 1; }
.scr-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  border: 1px solid rgba(160, 215, 255, .13);
  border-radius: 14px; padding: 16px 22px 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.scr-panel-t { font-size: 14px; letter-spacing: 2px; color: #a9cde8; margin-bottom: 12px; }

/* 柱状图：成绩五档 */
.scr-cols { display: flex; align-items: flex-end; gap: 16px; height: 100%; min-height: 190px; padding: 4px 6px 2px; }
.scr-band {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 8px; height: 100%;
}
.scr-band .cv { font-family: var(--mono); font-size: 17px; font-weight: 700; color: #f2faff; text-align: center; line-height: 1.2; }
.scr-band .cv small { display: block; font-size: 11px; color: #8fb8d4; font-weight: 500; }
.scr-band .cbar {
  width: 100%; max-width: 52px; border-radius: 8px 8px 3px 3px; min-height: 4px;
  box-shadow: 0 0 18px rgba(63, 198, 240, .12);
}
.scr-band .cl { font-size: 12.5px; color: #9fc3dd; }

/* 环形图 */
.donut-wrap { display: flex; gap: 16px; align-items: center; }
.donut { width: 138px; flex: 0 0 138px; filter: drop-shadow(0 0 10px rgba(63, 198, 240, .18)); }
.donut-leg { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.donut-leg .li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cfe4f4; }
.donut-leg .li .dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.donut-leg .li b { margin-left: auto; font-family: var(--mono); font-size: 15px; color: #f2faff; }
.donut-leg .li small { color: #8fb8d4; font-family: var(--mono); width: 52px; text-align: right; }

/* 事实卡 */
.scr-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scr-facts .f {
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(160, 215, 255, .11);
  border-radius: 10px; padding: 12px 12px 10px; text-align: center;
}
.scr-facts .f span { display: block; font-size: 12px; color: #9fc3dd; }
.scr-facts .f b { display: block; font-family: var(--mono); font-size: 20px; color: #ffd166; margin: 6px 0 3px; font-weight: 700; }
.scr-facts .f b.green { color: #3ddc97; }
.scr-facts .f b.gold { color: #ffd166; }
.scr-facts .f small { display: block; font-size: 10.5px; color: #8fb8d4; }

/* 交卷流 / 申诉流 */
.scr-feed { display: flex; flex-direction: column; }
.scr-feed .fi {
  display: flex; align-items: center; gap: 12px; padding: 8px 2px;
  border-bottom: 1px solid rgba(160, 215, 255, .09); font-size: 13.5px;
}
.scr-feed .fi:last-child { border-bottom: 0; }
.scr-feed .nm { flex: 1; color: #e5f2fc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-feed .sc { font-family: var(--mono); font-weight: 700; flex: 0 0 auto; }
.scr-feed .sc.g { color: #3ddc97; }
.scr-feed .sc.r { color: #ff8a8a; }
.scr-feed .sc.gold { color: #ffd166; }
.scr-feed .tm { color: #8fb8d4; font-size: 12px; flex: 0 0 auto; }

@media (max-width: 900px) {
  .scr-stage { padding: 14px; }
  .scr-row { grid-template-columns: repeat(2, 1fr); }
  .scr-grid, .scr-grid2 { grid-template-columns: 1fr; flex: none; }
  .scr-kpi .v { font-size: 30px; }
  .scr-brand b { font-size: 17px; }
  .scr-cols { min-height: 150px; }
  .scr-main { min-height: 0; }
}

/* ---------------- 账号安全：改密页 ---------------- */
.pwd-meter { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; margin-top: 10px; }
.pwd-meter i { display: block; height: 100%; width: 0; background: var(--line); transition: width .18s ease, background .18s ease; }
.pwd-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin-top: 12px; }
.pwd-rules .pr { font-size: 12.5px; color: var(--ink-4); display: flex; align-items: flex-start; gap: 6px; line-height: 1.5; }
.pwd-rules .pr::before { content: '○'; font-size: 11px; color: var(--ink-5); flex: 0 0 auto; margin-top: 1px; }
.pwd-rules .pr.on { color: var(--green-dark, #1f6b45); }
.pwd-rules .pr.on::before { content: '✓'; color: var(--green); font-weight: 700; }
@media (max-width: 640px) { .pwd-rules { grid-template-columns: 1fr; } }

/* 云端启动加载态 */
.boot-wrap{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#f5f3ee;z-index:9999}
.boot-card{text-align:center;padding:34px 42px;background:#fff;border:1px solid #e2ddd4;box-shadow:0 18px 44px rgba(24,20,16,.08);min-width:250px}
.boot-t{font-family:var(--serif);font-size:19px;letter-spacing:.16em;color:#1a1a1a}
.boot-s{margin-top:8px;font-size:12.5px;color:#8a8578;letter-spacing:.04em}
.boot-bar{margin:18px auto 0;width:160px;height:2px;background:#e8e3d9;overflow:hidden;position:relative}
.boot-bar i{position:absolute;left:-40%;top:0;width:40%;height:100%;background:#B01C25;animation:bootSlide 1.1s ease-in-out infinite}
@keyframes bootSlide{0%{left:-40%}100%{left:100%}}
