/* ===== 设计系统：简约 / 清爽 / 年轻感 ===== */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --ink: #14161f;
  --ink-2: #5a6172;
  --ink-3: #949bb0;
  --line: #ecEEF5;
  --line-strong: #dfe3ef;
  --brand: #5b5bf7;
  --brand-2: #8b5cf6;
  --brand-soft: #eef0ff;
  --ok: #10b981;
  --ok-soft: #e7f8f2;
  --warn: #f59e0b;
  --warn-soft: #fef5e7;
  --bad: #f43f5e;
  --bad-soft: #fdeef1;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(20, 22, 31, .04);
  --shadow-2: 0 14px 40px rgba(20, 22, 31, .07);
  --shadow-3: 0 20px 60px rgba(91, 91, 247, .16);
  --grad: linear-gradient(135deg, #5b5bf7 0%, #8b5cf6 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC",
          "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Noto Sans CJK SC",
          "Source Han Sans SC", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
a, button, .opt, .choice, label, select, input { touch-action: manipulation; }
body::before {
  content: "";
  position: fixed;
  inset: -260px -180px auto -180px;
  height: 620px;
  background:
    radial-gradient(520px 320px at 18% 30%, rgba(91, 91, 247, .16), transparent 65%),
    radial-gradient(520px 320px at 78% 18%, rgba(139, 92, 246, .14), transparent 65%);
  z-index: -1;
  pointer-events: none;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(223, 227, 239, .8);
}
.topbar-in { height: 62px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(91, 91, 247, .32);
}
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: 26px;
}
.card-lg { padding: 32px; }
.card-tight { padding: 18px 20px; }
.card-hero {
  border-radius: 28px; padding: 40px; box-shadow: var(--shadow-2);
  background: linear-gradient(180deg, #ffffff 0%, #fcfcff 100%);
}
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- 按钮 ---------- */
.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; transition: .18s ease;
  background: var(--surface-2); color: var(--ink); border-color: var(--line-strong);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(91, 91, 247, .28); }
.btn-primary:hover { box-shadow: var(--shadow-3); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- 选择卡片 ---------- */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice {
  position: relative; cursor: pointer; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 18px 18px 16px; background: var(--surface);
  transition: .18s ease;
}
.choice:hover { border-color: #c9cdf7; transform: translateY(-2px); box-shadow: var(--shadow-1); }
.choice.on { border-color: var(--brand); background: linear-gradient(180deg, #f7f8ff, #fff); box-shadow: 0 0 0 4px rgba(91, 91, 247, .1); }
.choice .t { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.choice .d { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.choice .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); margin-left: auto; display: grid; place-items: center; }
.choice.on .dot { border-color: var(--brand); background: var(--brand); }
.choice.on .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.badge-ok { background: var(--ok-soft); color: #0f9d76; }
.badge-warn { background: var(--warn-soft); color: #b9761b; }
.badge-bad { background: var(--bad-soft); color: #d43a58; }
.badge-plain { background: #f1f2f7; color: var(--ink-2); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--bad); margin-left: 3px; }
select, input[type=text], input[type=password], input[type=date], textarea {
  font-family: var(--font); font-size: 14.5px; color: var(--ink);
  padding: 11px 13px; border-radius: var(--radius-md); border: 1.5px solid var(--line-strong);
  background: var(--surface); transition: .16s ease; width: 100%;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 91, 247, .12); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4, .choice-grid { grid-template-columns: 1fr; } }

/* ---------- 进度 ---------- */
.progress { height: 8px; border-radius: 999px; background: #e9ebf5; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s ease; }

/* ---------- 题目 ---------- */
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-1); animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q-head { display: flex; gap: 12px; align-items: flex-start; }
.q-no {
  flex: none; min-width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13.5px;
}
.q-text { font-size: 16px; font-weight: 600; line-height: 1.6; }
.q-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0 0; }
.options { display: grid; gap: 10px; margin-top: 18px; }
.opt {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 13px 15px; background: var(--surface); transition: .16s ease; font-size: 14.5px;
}
.opt:hover { border-color: #c9cdf7; background: var(--surface-2); }
.opt.on { border-color: var(--brand); background: linear-gradient(180deg, #f6f7ff, #fff); box-shadow: 0 0 0 3px rgba(91, 91, 247, .1); }
.opt .key {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: #f1f2f7; color: var(--ink-2); font-size: 12.5px; font-weight: 700;
}
.opt.on .key { background: var(--brand); color: #fff; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.scale .opt { flex-direction: column; text-align: center; gap: 6px; padding: 16px 8px; }
.scale .opt .key { background: transparent; font-size: 16px; width: auto; height: auto; }
.scale .opt small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 720px) {
  .scale { grid-template-columns: 1fr; gap: 8px; }
  .scale .opt { flex-direction: row; text-align: left; padding: 12px 14px; gap: 12px; }
  .scale .opt .key { width: 26px; height: 26px; border-radius: 8px; background: #f1f2f7; font-size: 12.5px; }
}

/* ---------- 分数与图表 ---------- */
.score-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.score-num { font-size: 58px; font-weight: 800; line-height: 1; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.kpi .k { font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }
.kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.kpi .s { font-size: 12.5px; color: var(--ink-3); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 132px 1fr 54px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar-track { height: 10px; background: #eef0f7; border-radius: 999px; position: relative; overflow: hidden; }
.bar-track > i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--grad); transition: width .5s ease; }
.bar-track .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #c7cbe0; left: 70%; }
.bar-row .val { text-align: right; font-weight: 700; }
.hist { display: flex; align-items: flex-end; gap: 8px; height: 168px; padding-top: 8px; }
.hist .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.hist .col i { width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #8b5cf6, #5b5bf7); min-height: 3px; transition: height .5s ease; }
.hist .col span { font-size: 11.5px; color: var(--ink-3); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }

/* ---------- 表格 ---------- */
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.data th {
  text-align: left; padding: 12px 14px; color: var(--ink-2); font-weight: 600;
  background: #f7f8fc; position: sticky; top: 0; z-index: 2;
}
table.data th:first-child { border-radius: 12px 0 0 12px; }
table.data th:last-child { border-radius: 0 12px 12px 0; }
table.data td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fafbff; }
.table-scroll { overflow: auto; max-height: 620px; border-radius: 14px; }
.num { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- 报告 ---------- */
.report h2 { font-size: 17px; margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand); line-height: 1.3; }
.comment { white-space: pre-line; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.advice { margin: 8px 0 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.dl .item { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.dl .item .k { font-size: 12px; color: var(--ink-3); }
.dl .item .v { font-weight: 600; font-size: 14px; margin-top: 2px; }

/* ---------- 发展建议：步骤 / 路线图 ---------- */
.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n {
  flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; margin-top: 2px;
}
.step .tx { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.step .tx strong { color: var(--ink); }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick .item { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface-2); }
.quick .item .h { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quick .item .b { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.7; }
.road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.road .col { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.road .col .ph { font-weight: 700; color: var(--brand); font-size: 13px; letter-spacing: .03em; }
.road .col .th { font-weight: 700; font-size: 15px; margin: 6px 0 4px; }
.road .col .gl { font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; }
.road .col ul { margin: 0; padding-left: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 760px) {
  .quick, .road { grid-template-columns: 1fr; }
  .step .tx { font-size: 13.5px; }
}

/* ---------- 登录页 ---------- */
.login-wrap { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 28px 20px 60px; }
.login-card {
  display: grid; grid-template-columns: 1.02fr .98fr; width: 100%; max-width: 880px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  overflow: hidden; box-shadow: var(--shadow-2);
}
.login-brand {
  position: relative; padding: 40px 36px; color: #fff;
  background: linear-gradient(150deg, #5b5bf7 0%, #7c5cf8 45%, #8b5cf6 100%);
}
.login-brand::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255, 255, 255, .14);
}
.login-brand .mark {
  width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .2);
  display: grid; place-items: center; font-weight: 800; font-size: 17px; backdrop-filter: blur(4px);
}
.login-brand h2 { font-size: 23px; margin: 20px 0 8px; line-height: 1.35; }
.login-brand .sub { font-size: 13.5px; opacity: .85; }
.login-brand ul { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.login-brand li { font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start; opacity: .95; }
.login-brand li::before { content: "✓"; font-size: 12px; opacity: .9; }
.login-form { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-form h3 { font-size: 21px; }
.login-form .hint { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 24px; }
@media (max-width: 760px) {
  .login-wrap { padding: 14px 14px 40px; min-height: auto; }
  .login-card { grid-template-columns: 1fr; border-radius: 22px; }
  .login-brand { padding: 26px 22px; }
  .login-brand h2 { font-size: 19px; margin-top: 14px; }
  .login-brand ul { display: none; }
  .login-form { padding: 26px 22px 30px; }
}

/* ---------- 提示条 ---------- */
.alert { border-radius: 14px; padding: 14px 16px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert-info { background: var(--brand-soft); color: #4348c4; }
.alert-ok { background: var(--ok-soft); color: #0f7f61; }
.alert-warn { background: var(--warn-soft); color: #96601a; }
.alert-bad { background: var(--bad-soft); color: #b83050; }

/* ---------- 后台 ---------- */
.tabs { display: flex; gap: 6px; background: #eef0f7; padding: 5px; border-radius: 999px; }
.tab { border: none; background: transparent; cursor: pointer; font-family: var(--font); font-size: 14px;
  font-weight: 600; color: var(--ink-2); padding: 9px 18px; border-radius: 999px; transition: .16s ease; }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { min-width: 150px; }
.filterbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-1); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #14161f; color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: .24s ease; z-index: 99;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 打印 ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body::before, .topbar, .no-print { display: none !important; }
  .wrap-narrow, .wrap { max-width: none; padding: 0; }
  .card { box-shadow: none; border: none; padding: 0; }
  .report h2 { page-break-after: avoid; }
  table.data th { position: static; }
  table.data tr { page-break-inside: avoid; }
}

/* ================= 手机端适配（学生主要用手机作答） ================= */
.survey-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.survey-bar .in {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  height: 74px; padding: 0 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  max-width: 760px; margin: 0 auto;
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .wrap, .wrap-narrow, .wrap-wide {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }
  .topbar-in { height: 56px; }
  .brand { font-size: 14.5px; }
  .brand small { font-size: 10.5px; }
  .brand-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 13px; }
  .topbar .btn-sm { padding: 7px 12px; }

  .card { padding: 18px; border-radius: 18px; }
  .card-lg { padding: 22px 20px; }
  .card-hero { padding: 26px 20px; border-radius: 22px; }
  .card-hero h1 { font-size: 25px !important; }
  .card-tight { padding: 15px 16px; }

  .btn { padding: 13px 20px; font-size: 15.5px; min-height: 46px; }
  .btn-block { width: 100%; }
  .choice { padding: 16px; }
  .choice .t { font-size: 15.5px; }

  /* 表单：16px 可避免 iOS 聚焦时自动放大 */
  select, input[type=text], input[type=password], input[type=date], textarea { font-size: 16px; padding: 13px; min-height: 48px; }
  .field label { font-size: 13px; }

  .q-card { padding: 18px 16px; border-radius: 18px; }
  .q-no { min-width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }
  .q-text { font-size: 16.5px; line-height: 1.55; }
  .q-meta { margin-top: 8px; gap: 6px; }
  .badge { font-size: 11.5px; padding: 3px 9px; }
  .opt { padding: 14px 15px; font-size: 15.5px; min-height: 52px; }
  .options { gap: 9px; }
  .scale { gap: 8px; }

  .score-hero { gap: 16px; }
  .score-num { font-size: 42px; }
  .kpi { padding: 15px; border-radius: 15px; }
  .kpi .v { font-size: 22px; }
  .bar-row { grid-template-columns: 96px 1fr 46px; font-size: 12.5px; gap: 9px; }
  .hist { height: 132px; gap: 5px; }
  .hist .col span { font-size: 10px; }

  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
  .tab { padding: 9px 14px; font-size: 13.5px; white-space: nowrap; }
  .filters { gap: 9px; }
  .filters .field { min-width: 0; flex: 1 1 44%; }
  .grid-2, .grid-3, .grid-4, .choice-grid { grid-template-columns: 1fr; gap: 12px; }
  .row-between { flex-wrap: wrap; }

  /* 报告表格在手机上转成卡片 */
  .report table.data thead { display: none; }
  .report table.data, .report table.data tbody { display: block; }
  .report table.data tr {
    display: block; border: 1px solid var(--line); border-radius: 14px;
    padding: 13px 14px; margin-bottom: 10px; background: var(--surface);
  }
  .report table.data td { display: block; border: none; padding: 4px 0; font-size: 14px; }
  .report table.data td.num { text-align: left; font-size: 15px; }
  .report table.data td[data-l]::before {
    content: attr(data-l) "："; color: var(--ink-3); font-weight: 600; font-size: 12.5px; margin-right: 2px;
  }
  .report table.data tr:hover td { background: transparent; }
  .report h2 { font-size: 16.5px; }
  .report .dl { grid-template-columns: 1fr 1fr; }
  .comment { font-size: 13px; }
  .advice { font-size: 13px; padding-left: 16px; }
  .table-scroll { max-height: none; }

  /* 顶栏动作按钮：手机上折成第二行，避免挤压 */
  .topbar-in { flex-wrap: wrap; height: auto; min-height: 56px; padding: 9px 0; row-gap: 9px; }
  .topbar-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .topbar-actions .btn { flex: 1; text-align: center; min-height: 40px; padding: 9px 10px; font-size: 13px; }
}

@media (max-width: 420px) {
  .card-hero h1 { font-size: 23px !important; }
  .report .dl { grid-template-columns: 1fr; }
  .row .btn, .row a.btn { flex: 1; text-align: center; }
}
