/* ============================================================
   公文格式考核系统 — 视觉系统
   纸感 → 墨色 → 朱红点缀
   ============================================================ */

:root {
  --paper: #F5F1E8;
  --paper-2: #EDE7D9;
  --card: #FFFFFF;
  --ink: #1C1917;
  --ink-2: #514840;
  --ink-3: #8B8175;
  --line: #E3D9C9;
  --line-2: #F0EADD;
  --red: #A6322A;
  --red-2: #C2443A;
  --red-soft: #F8EAE7;
  --green: #2E7D57;
  --green-soft: #E6F2EB;
  --amber: #A9761F;
  --amber-soft: #FAF0D9;
  --blue: #2B6173;
  --blue-soft: #E6EFF2;

  --r: 14px;
  --r-sm: 9px;
  --sh-1: 0 1px 2px rgba(28, 25, 23, .05);
  --sh-2: 0 2px 4px rgba(28, 25, 23, .05), 0 12px 28px -14px rgba(28, 25, 23, .18);
  --sh-3: 0 18px 50px -18px rgba(28, 25, 23, .30);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(166, 50, 42, .035), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(43, 97, 115, .030), transparent 46%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px max(24px, calc((100vw - var(--maxw)) / 2));
  background: rgba(245, 241, 232, .82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }

.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(155deg, var(--red-2), var(--red) 55%, #8B2822);
  color: #FBF7EF;
  font-family: var(--serif);
  font-size: 22px;
  border-radius: 11px;
  box-shadow: 0 4px 12px -4px rgba(166, 50, 42, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
  line-height: 1;
  padding-bottom: 2px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 15.5px; letter-spacing: .02em; }
.brand-text i { font-style: normal; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }

.nav { display: flex; gap: 2px; margin-left: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.nav a:hover { background: rgba(255, 255, 255, .75); color: var(--ink); }
.nav a.active { color: var(--red); font-weight: 600; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 1px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.nav-dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 5px;
  vertical-align: middle;
  background: var(--red);
  border-radius: 50%;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  border-radius: 999px;
  flex-shrink: 0;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.user-chip:hover { border-color: #D3C4AC; box-shadow: var(--sh-1); }
.user-chip:active { transform: scale(.985); }

.avatar {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--paper-2);
  color: var(--ink-2);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.avatar.on { background: var(--red-soft); color: var(--red); }

.user-meta { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.user-meta b { font-size: 13px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta i { font-style: normal; font-size: 10.5px; color: var(--ink-3); }

/* ---------------- 布局 ---------------- */
.view {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px 64px;
  animation: rise .38s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.foot {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 22px 24px 34px;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line-2);
  max-width: var(--maxw);
  margin: 0 auto;
}
.foot-sep { opacity: .5; }

/* ---------------- 通用元件 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .14s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(166, 50, 42, .45), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn-primary:hover { box-shadow: 0 6px 18px -6px rgba(166, 50, 42, .58); }
.btn-primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #CDBBA0; color: var(--ink); background: #FFFDF8; }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn-quiet:hover { background: rgba(28, 25, 23, .05); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 12px 26px; font-size: 15px; border-radius: 10px; }
.btn-danger { background: #fff; border-color: #E4BFBA; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 5px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.tag-pass { background: var(--green-soft); color: var(--green); }
.tag-fail { background: var(--red-soft); color: var(--red); }
.tag-none { background: var(--paper-2); color: var(--ink-3); }
.tag-warn { background: var(--amber-soft); color: var(--amber); }
.tag-info { background: var(--blue-soft); color: var(--blue); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 14px;
}
.sec-head h2 {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sec-head h2::before {
  content: "";
  width: 3px; height: 15px;
  background: var(--red);
  border-radius: 2px;
}
.sec-head p { font-size: 12.5px; color: var(--ink-3); }

.empty {
  padding: 46px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .5);
}

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 44px 44px;
  border-radius: 20px;
  background:
    radial-gradient(120% 160% at 88% 0%, rgba(166, 50, 42, .30), transparent 52%),
    radial-gradient(100% 140% at 0% 100%, rgba(43, 97, 115, .22), transparent 55%),
    linear-gradient(160deg, #26221E, #1A1714 70%);
  color: #F6F1E6;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
  pointer-events: none;
  opacity: .7;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(246, 241, 230, .58);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--red-2);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.22;
  letter-spacing: .01em;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  color: #E9B7A8;
  position: relative;
}
.hero .lede {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(246, 241, 230, .68);
  max-width: 480px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.hero .btn-ghost {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: #F6F1E6;
  backdrop-filter: blur(4px);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 13px;
  overflow: hidden;
  min-width: 232px;
}
.hero-stat {
  padding: 15px 18px;
  background: rgba(26, 23, 20, .55);
}
.hero-stat b {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #FBF6EA;
  letter-spacing: -.02em;
}
.hero-stat span { font-size: 11px; color: rgba(246, 241, 230, .5); letter-spacing: .04em; }

/* ---------------- 合格证进度 ---------------- */
.license {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px 24px;
  margin-top: 20px;
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}
.license-seal {
  width: 58px; height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px dashed #DCCBB2;
  color: var(--ink-3);
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  transition: all .4s;
}
.license-seal > span {
  display: block;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}
.license-seal.done {
  border: 2px solid var(--red);
  color: var(--red);
  background: var(--red-soft);
  transform: rotate(-6deg);
  font-weight: 700;
}
.license-body { flex: 1; min-width: 0; }
.license-title { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.license-title b { font-size: 14.5px; }
.license-title span { font-size: 12px; color: var(--ink-3); }
.license-bar { display: flex; gap: 5px; }
.license-seg {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.license-seg.on { background: linear-gradient(90deg, var(--red), #C9564A); }
.license-legend { display: flex; gap: 5px; margin-top: 12px; }
.license-legend div { flex: 1; font-size: 10.5px; color: var(--ink-3); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.license-legend div.on { color: var(--red); font-weight: 600; }

/* ---------------- 科目卡片 ---------------- */
.subjects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px;
}
.subject {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.subject::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c, var(--red));
  opacity: .85;
}
.subject:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: #D8C9B2;
}
.subject-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}
.subject-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--c, var(--red));
  font-weight: 600;
}
.subject h3 { font-size: 18px; margin-bottom: 4px; letter-spacing: .01em; }
.subject-doc { font-size: 12px; color: var(--ink-3); margin-bottom: 13px; }
.subject-points {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.75;
  flex: 1;
}
.subject-points li { display: flex; gap: 7px; }
.subject-points li::before {
  content: "·";
  color: var(--c, var(--red));
  font-weight: 700;
  flex-shrink: 0;
}
.subject-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}
.subject-score { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.subject-score b {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
.subject-score i { font-style: normal; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subject-actions { display: flex; gap: 7px; align-items: center; flex-shrink: 0; }

/* ---------------- 考试页 ---------------- */
.exam-bar {
  position: sticky;
  top: 59px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  margin-bottom: 20px;
  background: rgba(255, 253, 248, .93);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--sh-1);
}
.exam-title { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.exam-title b { font-size: 14.5px; }
.exam-title i { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

.timer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.timer.warn { background: var(--amber-soft); color: var(--amber); }
.timer.danger { background: var(--red-soft); color: var(--red); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .62; }
}

.exam-progress { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 90px; }
.exam-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--paper-2);
  border-radius: 4px;
  overflow: hidden;
  min-width: 40px;
}
.exam-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), #CB6154);
  border-radius: 4px;
  transition: width .3s cubic-bezier(.2, .7, .3, 1);
}
.exam-progress span { font-size: 12px; color: var(--ink-3); font-family: var(--mono); white-space: nowrap; }

.exam-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 20px;
  align-items: start;
}

.question-card {
  padding: 30px 32px 26px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.q-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.q-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: .04em;
}
.q-tag {
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 5px;
}
.q-text {
  font-size: 17.5px;
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: .005em;
  margin-bottom: 22px;
  flex: 0 0 auto;
}
.q-text .q-type {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  margin-right: 7px;
  letter-spacing: .06em;
}

.opts { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFEFB;
  font-size: 14.5px;
  line-height: 1.6;
  transition: border-color .16s, background .16s, box-shadow .16s, transform .12s;
}
.opt:hover { border-color: #CFBE9F; background: #FFFDF7; }
.opt:active { transform: scale(.995); }
.opt-key {
  width: 23px; height: 23px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all .16s;
  margin-top: 1px;
}
.opt.on {
  border-color: var(--red);
  background: #FFF8F6;
  box-shadow: 0 0 0 3px rgba(166, 50, 42, .10);
}
.opt.on .opt-key { background: var(--red); color: #fff; }
.opt.correct { border-color: var(--green); background: var(--green-soft); }
.opt.correct .opt-key { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: var(--red-soft); }
.opt.wrong .opt-key { background: var(--red); color: #fff; }
.opt:disabled { cursor: default; }
.opt:disabled:hover { transform: none; }

.q-explain {
  margin-top: 16px;
  padding: 13px 16px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.75;
  color: #1F5138;
}
.q-explain.bad { border-left-color: var(--red); background: var(--red-soft); color: #6E221C; }
.q-explain b { display: block; margin-bottom: 3px; font-size: 12px; letter-spacing: .05em; }

.q-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.q-nav-mid { display: flex; gap: 8px; align-items: center; }

/* 答题卡 */
.sheet {
  position: sticky;
  top: 138px;
  padding: 16px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sheet-head b { font-size: 13px; }
.sheet-head span { font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.sheet-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #FFFEFB;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  transition: all .14s;
  position: relative;
}
.sheet-cell:hover { border-color: #C6B49A; color: var(--ink); }
.sheet-cell.done { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.sheet-cell.cur { box-shadow: 0 0 0 2px var(--ink); }
.sheet-cell.flag::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
}
.sheet-cell.done.flag::after { background: #FFD9A0; }
.sheet-cell.ok { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.sheet-cell.bad { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.sheet-legend {
  display: flex;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: 10.5px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.sheet-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.sheet-legend .l-done { background: var(--red); }
.sheet-legend .l-cur { background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.sheet-legend .l-flag { background: var(--amber); }

/* ---------------- 成绩单 ---------------- */
.report-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px 38px;
}
.ring-wrap { position: relative; width: 154px; height: 154px; flex-shrink: 0; }
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .bg { stroke: var(--paper-2); }
.ring .fg { transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.ring-inner b {
  font-family: var(--mono);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}
.ring-inner span { font-size: 11px; color: var(--ink-3); letter-spacing: .08em; }

.report-meta h2 { font-size: 22px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.verdict {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .06em;
}
.verdict.pass { background: var(--green); color: #fff; }
.verdict.fail { background: var(--red); color: #fff; }
.report-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.report-kv { display: flex; gap: 28px; flex-wrap: wrap; }
.report-kv div { display: flex; flex-direction: column; gap: 2px; }
.report-kv b { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.report-kv span { font-size: 11px; color: var(--ink-3); letter-spacing: .03em; }

.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 20px; }
.module {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFDF8;
}
.module-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.module-top b { font-size: 13px; }
.module-top span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.module-bar { height: 5px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.module-bar i { display: block; height: 100%; border-radius: 3px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }

.review-list { display: flex; flex-direction: column; gap: 8px; }
.review-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.review-item.ok { border-left: 3px solid var(--green); }
.review-item.no { border-left: 3px solid var(--red); }
.review-q {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.6;
}
.review-q:hover { background: #FFFDF8; }
.review-mark {
  flex-shrink: 0;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.review-item.ok .review-mark { background: var(--green); }
.review-item.no .review-mark { background: var(--red); }
.review-q .q-body { flex: 1; }
.review-q i {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--mono);
  flex-shrink: 0;
  margin-top: 3px;
}
.review-body {
  display: none;
  padding: 0 16px 14px 46px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.review-item.open .review-body { display: block; }
.review-body .ans-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.review-body .ans-row b { font-family: var(--mono); }
.review-body .you { color: var(--red); }
.review-body .right { color: var(--green); }
.review-body .why { color: var(--ink-2); background: var(--paper); padding: 8px 12px; border-radius: 7px; }

/* ---------------- 名单页 ---------------- */
.paste-box {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.paste-box textarea {
  display: block;
  width: 100%;
  min-height: 168px;
  padding: 18px 20px;
  border: none;
  outline: none;
  resize: vertical;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
  background: transparent;
}
.paste-box textarea::placeholder { color: #B7AC9C; line-height: 1.9; }
.paste-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--paper);
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.paste-hint { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.paste-hint code {
  font-family: var(--mono);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  color: var(--ink-2);
}
.paste-count { font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }
.paste-count b { color: var(--red); font-size: 14px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.stat-card {
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.stat-card b {
  display: block;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.stat-card span { font-size: 11.5px; color: var(--ink-3); }
.stat-card.good b { color: var(--green); }
.stat-card.bad b { color: var(--red); }

.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: auto;
  box-shadow: var(--sh-1);
  max-height: 70vh;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
table.data th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .05em;
  background: #FCFAF4;
  border-bottom: 1px solid var(--line);
}
table.data td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #FFFDF8; }
table.data tr.absent { background: #FFFBF3; }
table.data tr.absent:hover { background: #FFF7E8; }
table.data .c-name { font-weight: 600; }
table.data .c-sid { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
table.data .c-idx { font-family: var(--mono); color: var(--ink-3); font-size: 12px; width: 40px; }
.cell-score {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13.5px;
}
.cell-score.pass { color: var(--green); }
.cell-score.fail { color: var(--red); }
.cell-none { color: #C3B9A9; font-size: 12px; }

/* ---------------- 错题本 ---------------- */
.wrong-group { margin-bottom: 26px; }
.wrong-item { padding: 16px 20px; }
.wrong-item + .wrong-item { border-top: 1px solid var(--line-2); }
.wrong-q { font-size: 14px; line-height: 1.7; font-weight: 600; margin-bottom: 10px; }
.wrong-ans { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 9px; }
.wrong-ans b { font-family: var(--mono); }
.wrong-why { font-size: 12.5px; line-height: 1.75; color: var(--ink-2); background: var(--paper); padding: 9px 13px; border-radius: 7px; }

/* ---------------- 规范速查 ---------------- */
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.spec-card { padding: 0; overflow: hidden; }
.spec-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  background: #FCFAF4;
}
.spec-card-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--red)); }
.spec-card-head h3 { font-size: 15px; }
.spec-card-head span { font-size: 11.5px; color: var(--ink-3); margin-left: auto; font-family: var(--mono); }
.spec-rows { padding: 6px 0; }
.spec-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 9px 20px;
  font-size: 13px;
  line-height: 1.7;
}
.spec-row:hover { background: #FFFDF8; }
.spec-row dt { color: var(--ink-3); font-size: 12px; }
.spec-row dd { margin: 0; color: var(--ink); }

/* ---------------- 数据页 ---------------- */
.panel { padding: 22px 24px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 15px; margin-bottom: 6px; }
.panel-desc { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; line-height: 1.8; }
.panel-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.mode-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  margin-bottom: 16px;
  font-size: 13px;
}
.mode-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; }
.mode-dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(46, 125, 87, .14); }
.mode-row b { font-size: 13px; }
.mode-row span { color: var(--ink-3); font-size: 12px; }

.code-block {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  background: #221E1A;
  color: #E8DFCF;
  padding: 15px 18px;
  border-radius: 9px;
  overflow-x: auto;
  white-space: pre;
  margin: 12px 0 0;
}
.code-block .cm { color: #8B8070; }

/* ---------------- 弹窗 / Toast ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 25, 23, .42);
  backdrop-filter: blur(3px);
  animation: fade .2s both;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(440px, 100%);
  padding: 26px 28px 22px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .42);
  animation: pop .26s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes pop {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
}
.modal h3 { font-size: 17px; margin-bottom: 8px; }
.modal p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; margin-bottom: 18px; }
.modal-field { margin-bottom: 13px; }
.modal-field label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 5px; letter-spacing: .03em; }
.modal-field input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  outline: none;
  background: #FFFEFB;
  transition: border-color .16s, box-shadow .16s;
}
.modal-field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(166, 50, 42, .10); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 300;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  background: #26221E;
  color: #F6F1E6;
  font-size: 13.5px;
  border-radius: 10px;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s, transform .24s;
  max-width: min(90vw, 460px);
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* ---------------- 响应式 ---------------- */
/* ============================================================
   名单准入 · 新增组件
   ============================================================ */

/* 页头 */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 20px;
}
.page-head h2 { font-size: 23px; letter-spacing: -.02em; }
.page-head p { font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.page-head p b { color: var(--ink); font-family: var(--mono); font-size: 14px; }
.head-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* 准入横幅 */
.gate {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--r);
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.gate-warn { background: var(--amber-soft); border-color: #EBD9AE; }
.gate-info { background: var(--blue-soft); border-color: #C9DDE4; }
.gate-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--ink-3);
}
.gate-warn .gate-icon { background: var(--amber); }
.gate-info .gate-icon { background: var(--blue); }
.gate-body { flex: 1; min-width: 0; }
.gate-body b { display: block; font-size: 14px; margin-bottom: 2px; }
.gate-body span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* 名单空态 */
.empty-hero {
  text-align: center;
  padding: 34px 24px 30px;
  background: #fff;
  border: 1px dashed #DCCFBB;
  border-radius: var(--r);
  margin-bottom: 16px;
}
.empty-badge {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}
.empty-hero h3 { font-size: 17px; margin-bottom: 7px; }
.empty-hero p {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 auto 16px;
  line-height: 1.8;
}

/* 粘贴区扩展 */
.paste-panel { margin-bottom: 20px; }
.paste-panel[hidden] { display: none; }
.paste-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 20px 0;
  flex-wrap: wrap;
}
.paste-head b { font-size: 13.5px; }
.paste-head span { font-size: 11.5px; color: var(--ink-3); }
.paste-panel textarea { min-height: 168px; padding-top: 14px; }
.paste-actions { display: flex; gap: 8px; align-items: center; }

/* 推进度 */
.progress-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.pc-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 10px; }
.pc-top b { font-size: 13.5px; }
.pc-top span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pc-top span b { font-family: var(--mono); font-size: 15px; color: var(--red); }
.pc-bar { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.pc-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), #C8613F 70%, var(--amber));
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.pc-foot { display: flex; gap: 18px; margin-top: 9px; font-size: 11.5px; color: var(--ink-3); flex-wrap: wrap; }

/* 未考名单 */
.absent-box {
  border: 1px solid #EBD9AE;
  background: var(--amber-soft);
  border-radius: var(--r);
  padding: 15px 18px;
  margin-bottom: 16px;
}
.absent-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 11px;
}
.ah-text b { display: block; font-size: 14px; color: #7A5310; margin-bottom: 2px; }
.ah-text span { font-size: 12px; color: #8C6B33; line-height: 1.6; }
.absent-list { display: flex; flex-wrap: wrap; gap: 7px; }
.absent-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: #fff;
  border: 1px solid #E7D3A8;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: #7A5310;
}
.absent-chip i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #A9884F;
  font-weight: 400;
}
.all-done {
  padding: 14px 18px;
  border-radius: var(--r);
  margin-bottom: 16px;
  background: var(--green-soft);
  border: 1px solid #CBE3D6;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

/* 筛选 */
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-gap { flex: 1; min-width: 8px; }
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: all .16s;
}
.filter-tab:hover { border-color: #D3C4AC; }
.filter-tab i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--paper-2);
  color: var(--ink-3);
  padding: 0 5px;
  border-radius: 99px;
  line-height: 1.6;
}
.filter-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-tab.on i { background: rgba(255, 255, 255, .22); color: #fff; }

/* 名单表 */
.roster-table th.c-sub, .roster-table td.c-sub { text-align: center; width: 54px; }
.roster-table .c-name { width: 1%; white-space: nowrap; }
.roster-table .c-sid { width: 1%; white-space: nowrap; }
.roster-table th.c-prog, .roster-table td.c-prog { text-align: center; width: 66px; }
.prog-num {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.prog-num i { font-style: normal; opacity: .5; }
.prog-num.full { color: var(--green); font-weight: 600; }
.table-empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 30px 0 !important; }

/* 选人弹窗 */
.modal-pick { max-width: 520px; width: min(520px, calc(100vw - 32px)); }
.idm-search {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  outline: none;
  background: var(--paper);
  transition: border-color .16s, background .16s;
}
.idm-search:focus { border-color: var(--red); background: #fff; }
.idm-list {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 6px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.idm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-align: left;
  border: 1px solid transparent;
  background: #fff;
  transition: all .14s;
}
.idm-item:hover { border-color: var(--line); }
.idm-item.on {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 0 2px rgba(166, 50, 42, .1);
}
.idm-txt { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.idm-txt b { font-size: 14px; white-space: nowrap; }
.idm-txt i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.idm-meta { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; flex-shrink: 0; }
.idm-meta.has { color: var(--green); }
.idm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.idm-foot > span { font-size: 11.5px; color: var(--ink-3); }
.idm-foot .modal-actions { margin: 0; }

/* 顶栏身份待认领 */
.user-chip.warn { border-color: #E3C58B; background: var(--amber-soft); }
.user-chip.warn .avatar { background: var(--amber); color: #fff; }

@media (max-width: 980px) {
  .exam-body { grid-template-columns: 1fr; }
  .sheet { position: static; order: 2; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 34px 30px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); min-width: 0; }
  .report-head { grid-template-columns: 1fr; gap: 22px; padding: 26px; text-align: center; }
  .ring-wrap { margin: 0 auto; }
  .report-meta h2 { justify-content: center; }
  .report-kv { justify-content: center; }
}

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 9px 16px; }
  .nav { order: 3; flex: 1 1 100%; width: 100%; margin: 0; padding-bottom: 2px; }
  .user-chip { margin-left: auto; }
  .user-meta { display: none; }
  .user-chip { padding: 4px; }
  .view { padding: 18px 16px 50px; }
  .exam-bar { top: 108px; flex-wrap: wrap; }
  .exam-title { order: 1; }
  .timer { order: 2; margin-left: auto; }
  .exam-progress { order: 3; width: 100%; flex-basis: 100%; }
  .question-card { padding: 22px 18px; }
  .q-text { font-size: 16px; }
  .opt { padding: 12px 13px; font-size: 14px; }
  .sheet-grid { grid-template-columns: repeat(8, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .license { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .foot { flex-wrap: wrap; text-align: center; font-size: 11px; padding: 16px 20px 26px; line-height: 1.7; }
  .license-legend div { font-size: 10px; }
  .paste-hint { line-height: 1.9; }
  .nav a { padding: 6px 9px; font-size: 13px; }
  .spec-grid { grid-template-columns: 1fr; }
  .nav a.active::after { left: 9px; right: 9px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .head-actions { width: 100%; }
  .gate { flex-wrap: wrap; }
  .gate .btn { width: 100%; }
  .gate-body span { font-size: 12px; }
  .idm-list { max-height: 44vh; }
  .idm-txt i { display: none; }
  .filter-row .btn { font-size: 11.5px; padding: 5px 9px; }
  .absent-head { flex-direction: column; gap: 10px; }
  .absent-head .btn { width: 100%; }
  .pc-foot { gap: 10px; }
  .roster-table th.c-sub, .roster-table td.c-sub { width: 46px; }
  .roster-table th.c-prog, .roster-table td.c-prog { width: 56px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row > .stat-card:last-child:nth-child(odd) { grid-column: span 2; }
  .paste-head { padding: 12px 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- 管理端（admin.html） ---------------- */
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
/* 深色顶栏，一眼区分"这是组织者页面" */
body[data-page="admin"] .topbar {
  background: rgba(42, 38, 34, .94);
  border-bottom-color: rgba(255, 255, 255, .08);
}
body[data-page="admin"] .brand-text b { color: #FBF7EF; }
body[data-page="admin"] .brand-text i { color: rgba(242, 235, 222, .5); }
body[data-page="admin"] .nav a { color: rgba(242, 235, 222, .7); }
body[data-page="admin"] .nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
body[data-page="admin"] .nav a.active { color: #FFE9E5; }
body[data-page="admin"] .nav a.active::after { background: #E4705F; }
body[data-page="admin"] .user-chip {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}
body[data-page="admin"] .user-chip:hover { background: rgba(255, 255, 255, .15); }
body[data-page="admin"] .user-meta b { color: #FBF7EF; }
body[data-page="admin"] .user-meta i { color: rgba(242, 235, 222, .55); }
body[data-page="admin"] .avatar {
  background: rgba(255, 255, 255, .15);
  color: #FBF7EF;
  border-color: transparent;
}
body[data-page="admin"] .avatar.on { background: #E4705F; color: #fff; }

.brand-mark.admin {
  background: linear-gradient(155deg, #524941, #2A2622 58%, #16130F);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .14);
}

/* 口令登录 */
.al-wrap { display: grid; place-items: center; min-height: 58vh; padding: 48px 20px; }
.al-card {
  width: min(430px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px 26px;
  box-shadow: var(--sh-2);
  text-align: center;
}
.al-mark {
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(155deg, #524941, #2A2622 58%, #16130F);
  color: #FBF7EF;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1;
  padding-bottom: 3px;
  box-shadow: 0 10px 24px -12px rgba(28, 25, 23, .8);
}
.al-card h2 { font-family: var(--serif); font-size: 23px; margin: 0 0 10px; letter-spacing: .01em; }
.al-desc { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin: 0 0 22px; }
.al-desc code { font-size: 12px; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
.al-form { display: flex; gap: 8px; }
.al-form input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit; font-size: 14px;
  background: var(--paper);
  color: var(--ink);
}
.al-form input:focus { outline: 2px solid rgba(166, 50, 42, .26); outline-offset: 1px; border-color: var(--red); }
.al-form .btn { flex-shrink: 0; }
.al-hint { font-size: 12px; color: var(--ink-3); margin: 16px 0 0; line-height: 1.65; }
.al-back { display: inline-block; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.al-back:hover { color: var(--red); }

.foot-link { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.foot-link:hover { color: var(--red); }

@media (max-width: 520px) {
  .al-card { padding: 28px 22px 22px; }
  .al-form { flex-direction: column; }
  .al-form .btn { width: 100%; }
}

@media print {
  .topbar, .foot, .exam-bar, .q-nav, .sheet, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
