/* 反诈知识测评 · 清华大学行健书院
   行健蓝只用于结构和操作：页头、主按钮、已选答案、关键数字；其余为白色与浅灰。 */
:root {
  --brand: #062c7b;
  --brand-hover: #0b3a94;
  --brand-line: #1f4288;
  --brand-50: #f3f6fc;
  --brand-100: #e7edf8;
  --brand-200: #c7d4ee;
  --brand-300: #93aad8;
  --bg: #fafbfd;
  --paper: #ffffff;
  --ink: #17213a;
  --ink-2: #39445c;
  --muted: #5f6b82;
  --line: #e3e8f1;
  --line-strong: #cfd8e6;
  --ok: #17734a;
  --ok-bg: #edf7f1;
  --ok-line: #b4dcc5;
  --bad: #b8372b;
  --bad-bg: #fdf1ef;
  --bad-line: #efc4be;
  --warn: #8a5a00;
  --warn-bg: #fff6e3;
  --warn-line: #f0d9a6;
  --header-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.7; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.35; font-weight: 700; color: var(--ink); }
h2 { font-size: 19px; line-height: 1.45; font-weight: 700; }
h3 { font-size: 16px; line-height: 1.6; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* ---------- 页头：深蓝底，原样展示白色 logo ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--brand); border-bottom: 1px solid var(--brand-line); }
.header-inner { max-width: 1120px; height: var(--header-h); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; color: #fff; text-decoration: none; }
.brand-logo { display: block; width: 190px; height: auto; flex-shrink: 0; }
.brand-title { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .3); font-size: 16px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; min-width: 0; }
.header-actions form { margin: 0; }
.identity { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; min-width: 0; }
.identity-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.class-chip { display: inline-block; padding: 1px 9px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 99px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.class-chip.light { border-color: var(--brand-200); color: var(--brand); background: var(--brand-50); margin-right: 8px; }
.header-button { background: none; border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 6px; padding: 3px 12px; font-size: 13px; }
.header-button:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 布局 ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 32px 24px 128px; }
.page-wide { max-width: 1180px; padding-bottom: 64px; }
.page-center { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 72px; }
.narrow { max-width: 760px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head .muted { margin-top: 6px; max-width: 46em; }
.round-pill { display: inline-block; margin-bottom: 8px; padding: 2px 12px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }

/* ---------- 提示 ---------- */
.flashes { width: 100%; max-width: 1120px; margin: 0 auto 18px; }
.page-center .flashes { max-width: 400px; }
.flash { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; margin-bottom: 8px; overflow-wrap: anywhere; }
.flash.error { background: var(--bad-bg); border-color: var(--bad-line); color: #96281d; }
.flash.success { background: var(--ok-bg); border-color: var(--ok-line); color: #135c3a; }
.flash.warning { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }

/* ---------- 表单与按钮 ---------- */
.stack-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-size: 16px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23062c7b' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field input::placeholder { color: #9aa4b6; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.button.primary { background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-hover); }
.button.secondary { background: #fff; color: var(--brand); border-color: var(--brand-200); }
.button.secondary:hover { background: var(--brand-50); border-color: var(--brand-300); }
.button.danger { background: var(--bad); color: #fff; }
.button.danger-outline { background: #fff; color: var(--bad); border-color: var(--bad-line); }
.button.danger-outline:hover { background: var(--bad-bg); }
.button.block { width: 100%; }
.button.small { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.button:disabled { opacity: .6; cursor: progress; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand); font-size: inherit; }
.link-button.danger { color: var(--bad); }
.text-link { font-size: 14px; }

/* ---------- 登录 ---------- */
.login-card { width: 100%; max-width: 400px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 14px; padding: 32px 30px 30px; box-shadow: 0 10px 30px rgba(6, 44, 123, .07); }
.login-card h1 { color: var(--brand); font-size: 26px; }
.login-lead { margin: 8px 0 24px; color: var(--muted); font-size: 14px; }
.login-note { margin-top: 16px; max-width: 400px; color: var(--muted); font-size: 13px; text-align: center; }
.error-code { color: var(--brand-300); font-size: 40px; font-weight: 700; line-height: 1.1; margin-bottom: 6px; }

/* ---------- 第一轮作答 ---------- */
.progress-count { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; column-gap: 2px; text-align: right; flex-shrink: 0; }
.progress-count strong { font-size: 34px; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.progress-count span { color: var(--muted); font-size: 16px; }
.progress-count small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.progress-track { height: 6px; margin-bottom: 26px; background: var(--brand-100); border-radius: 99px; overflow: hidden; }
.progress-track > div { width: 0; height: 100%; background: var(--brand); border-radius: 99px; transition: width .25s ease; }
.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 24px; align-items: start; }
.questions { min-width: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--brand); font-size: 18px; }
.section-title:not(:first-child) { margin-top: 36px; }
.section-title small { color: var(--muted); font-size: 13px; font-weight: 400; }
.q-card { min-width: 0; margin: 0 0 14px; padding: 20px 22px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 20px); }
.q-legend { float: left; width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 0; margin-bottom: 14px; font-size: 16px; font-weight: 600; line-height: 1.75; }
.q-index { flex-shrink: 0; min-width: 28px; height: 28px; margin-top: 1px; padding: 0 6px; border-radius: 7px; background: var(--brand-50); color: var(--brand); font-size: 14px; font-weight: 700; line-height: 28px; text-align: center; }
.q-card.answered .q-index { background: var(--brand); color: #fff; }
.q-stem { min-width: 0; overflow-wrap: anywhere; }
.q-kind { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.options { clear: both; display: grid; gap: 10px; }
.options-tf { grid-template-columns: 1fr 1fr; }
.option { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font-size: 15px; line-height: 1.65; cursor: pointer; transition: border-color .15s, background-color .15s; }
.option:hover { border-color: var(--brand-300); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-label { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border: 1.5px solid var(--brand-300); border-radius: 50%; color: var(--brand); font-size: 13px; font-weight: 700; line-height: 21px; text-align: center; }
.option-text { min-width: 0; overflow-wrap: anywhere; }
.option.is-checked, .option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.option.is-checked .option-label, .option:has(input:checked) .option-label { background: var(--brand); border-color: var(--brand); color: #fff; }
.option:has(input:focus-visible) { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.options-tf .option { align-items: center; }

.exam-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.answer-sheet { padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.answer-sheet summary { display: flex; align-items: baseline; justify-content: space-between; font-weight: 700; cursor: pointer; list-style: none; }
.answer-sheet summary::-webkit-details-marker { display: none; }
.answer-sheet summary small { color: var(--muted); font-size: 12px; font-weight: 400; }
.sheet-section { margin-top: 14px; }
.sheet-section h3 { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.number-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.number-link { height: 32px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); font-size: 13px; text-decoration: none; font-variant-numeric: tabular-nums; }
.number-link:hover { border-color: var(--brand-300); color: var(--brand); }
.number-link.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.sheet-legend { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.swatch { width: 12px; height: 12px; border: 1px solid var(--line-strong); border-radius: 3px; display: inline-block; }
.swatch.done { background: var(--brand); border-color: var(--brand); }
.swatch:not(.done) { margin-left: 10px; }

.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.action-inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar-info { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.bar-count { flex-shrink: 0; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.bar-count strong { margin: 0 1px 0 4px; color: var(--brand); font-size: 16px; font-variant-numeric: tabular-nums; }
.save-status { min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.save-status.saving { color: var(--warn); }
.save-status.failed { color: var(--bad); font-weight: 600; }
.action-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.action-buttons .button { min-width: 112px; }

/* ---------- 弹窗 ---------- */
.dialog { width: calc(100% - 32px); max-width: 440px; padding: 26px; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 24px 64px rgba(6, 30, 80, .28); }
.dialog::backdrop { background: rgba(6, 20, 60, .45); }
.dialog h2 { font-size: 20px; }
.dialog p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.dialog .danger-text { color: var(--bad); font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ---------- 首次得分与错题回顾 ---------- */
.score-panel { display: flex; align-items: center; gap: 28px; margin-bottom: 28px; padding: 24px 28px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.score-main { display: grid; flex-shrink: 0; padding-right: 28px; border-right: 1px solid var(--line); }
.score-label { color: var(--muted); font-size: 13px; }
.score-value { color: var(--brand); font-size: 56px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.score-value small { margin-left: 4px; color: var(--muted); font-size: 16px; font-weight: 400; letter-spacing: 0; }
.score-headline { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.list-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 18px; }
.count { display: inline-block; min-width: 26px; padding: 0 8px; border-radius: 99px; background: var(--brand-100); color: var(--brand); font-size: 13px; line-height: 22px; text-align: center; }
.review-card { margin-bottom: 14px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.review-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.review-stem { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.review-options { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.review-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.65; }
.review-option .option-label { width: 22px; height: 22px; line-height: 19px; font-size: 12px; border-color: var(--line-strong); color: var(--muted); }
.review-option.is-answer { background: var(--ok-bg); border-color: var(--ok-line); color: #135c3a; }
.review-option.is-answer .option-label { background: var(--ok); border-color: var(--ok); color: #fff; }
.review-option.is-wrong { background: var(--bad-bg); border-color: var(--bad-line); color: #8f271d; }
.review-option.is-wrong .option-label { background: var(--bad); border-color: var(--bad); color: #fff; }
.tag { flex-shrink: 0; margin-left: auto; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 22px; white-space: nowrap; }
.tag-ok { background: #d3ecdd; color: #135c3a; }
.tag-bad { background: #f7d9d4; color: #8f271d; }
.review-note { margin-top: 8px; color: var(--bad); font-size: 13px; }
.explanation { margin-top: 14px; padding: 12px 14px; background: var(--brand-50); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.explanation h4 { margin-bottom: 2px; color: var(--brand); font-size: 13px; }
.continue-panel { margin-top: 24px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--brand-200); border-radius: var(--radius); }
.continue-panel > p:first-of-type { margin-bottom: 14px; color: var(--ink-2); }
.form-status:empty { display: none; }
.continue-panel .form-status { margin-bottom: 10px; font-size: 13px; color: var(--warn); }

/* ---------- 完成 ---------- */
.done-card { width: 100%; max-width: 460px; padding: 36px 30px 30px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 14px; text-align: center; box-shadow: 0 10px 30px rgba(6, 44, 123, .07); }
.done-mark { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 30px; line-height: 60px; }
.done-card h1 { color: var(--brand); }
.done-who { margin-top: 8px; color: var(--ink-2); }
.done-score { display: grid; justify-items: center; margin: 22px 0 6px; }
.done-summary { color: var(--ink-2); }
.done-time { margin-top: 4px; font-size: 13px; }
.done-tip { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: left; }

/* ---------- 管理后台 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 28px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat-key { border-color: var(--brand-200); background: var(--brand-50); }
.stat-key strong { color: var(--brand); }
.stat .stat-time { font-size: 18px; line-height: 1.9; }
.panel { margin-bottom: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 16px 20px 12px; }
.panel-head .muted { font-size: 13px; }
.panel-foot { padding: 10px 20px 14px; font-size: 13px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 9px 14px; background: var(--brand-50); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover { background: #fbfcfe; }
.data-table tr.is-current td { background: var(--brand-50); }
.data-table tfoot th, .data-table tfoot td { border-top: 2px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; }
.data-table .empty { padding: 28px; color: var(--muted); text-align: center; }
.data-table td a { text-decoration: none; font-weight: 600; }
.class-table td:first-child { white-space: nowrap; }
.score-cell { font-size: 17px; font-weight: 700; color: var(--brand); }
.check { width: 44px; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); vertical-align: middle; }
.row-actions { white-space: nowrap; }
.row-actions a { margin-right: 14px; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; line-height: 20px; white-space: nowrap; }
.badge-answering { background: var(--warn-bg); color: var(--warn); }
.badge-reviewing, .badge-retrying { background: var(--brand-100); color: var(--brand); }
.badge-done { background: var(--ok-bg); color: var(--ok); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 0 20px 16px; }
.filters .field { width: 160px; }
.filters .field-grow { flex: 1; min-width: 160px; }
.filters .field input, .filters .field select { min-height: 40px; padding-top: 7px; padding-bottom: 7px; font-size: 14px; }
.filter-actions { display: flex; align-items: center; gap: 12px; }
.filter-actions .button { min-height: 40px; }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); background: #fcfdff; font-size: 13px; }
.empty-panel { padding: 28px; background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.detail-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); text-align: right; }

/* ---------- 平板 ---------- */
@media (max-width: 960px) {
  .exam-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  :root { --header-h: 56px; }
  body { font-size: 15px; }
  h1 { font-size: 24px; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .brand { gap: 10px; }
  .brand-logo { width: 150px; }
  .brand-title { padding-left: 10px; font-size: 14px; letter-spacing: 0; }
  .site-header.has-identity .brand-title { display: none; }
  .identity .class-chip { display: none; }
  .identity-name { max-width: 5em; }
  .header-button { padding: 2px 9px; }
  .page { padding: 20px 16px 132px; }
  .page-wide { padding-bottom: 48px; }
  .page-center { justify-content: flex-start; padding-top: 28px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .page-head .button { align-self: flex-start; }
  .progress-count { display: none; }
  .progress-track { margin-bottom: 18px; }
  .exam-layout { display: flex; flex-direction: column; gap: 14px; }
  .exam-sidebar { position: static; order: -1; width: 100%; }
  .number-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
  .number-link { height: 30px; font-size: 12px; }
  .section-title { font-size: 17px; }
  .section-title:not(:first-child) { margin-top: 28px; }
  .q-card { padding: 16px 14px 14px; }
  .q-legend { gap: 10px; font-size: 15px; }
  .option { padding: 10px 12px; font-size: 15px; }
  .action-inner { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .bar-info { width: 100%; gap: 12px; }
  .save-status { font-size: 12px; }
  .action-buttons { width: 100%; }
  .action-buttons .button { flex: 1; min-width: 0; }
  .score-panel { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; }
  .score-main { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .review-card { padding: 16px 14px; }
  .login-card, .done-card { padding: 26px 20px 22px; }
  .stat strong { font-size: 24px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; padding: 0 16px 14px; }
  .filters .field { width: auto; }
  .filters .field-grow { grid-column: 1 / -1; }
  .filter-actions { grid-column: 1 / -1; }
  .panel-head, .bulk-bar { padding-left: 16px; padding-right: 16px; }
  .class-table th, .class-table td { padding: 9px 8px; }
  .class-table th:first-child, .class-table td:first-child { padding-left: 16px; }
  /* 学生名单在手机上改为卡片 */
  .student-table thead { display: none; }
  .student-table, .student-table tbody, .student-table tr, .student-table td { display: block; }
  .student-table tbody { padding: 4px 12px 12px; }
  .student-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
  .student-table td { display: flex; align-items: center; gap: 8px; padding: 3px 0; border: 0; }
  .student-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 400; flex-shrink: 0; }
  .student-table td[data-label="状态"] { grid-column: 1 / -1; }
  .student-table td.num { justify-content: flex-start; text-align: left; }
  .student-table td.check { grid-column: 1 / -1; width: auto; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .student-table td.row-actions { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line); }
  .student-table td.empty { grid-column: 1 / -1; justify-content: center; }
  .student-table td.empty::before { content: none; }
  .student-table tr:hover { background: none; }
}

@media (max-width: 380px) {
  .brand-logo { width: 132px; }
  .brand-title { display: none; }
  .options-tf { gap: 8px; }
  .score-value { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
