/* =========================================================
   明思刷题 · 全局样式（雾光）
   设计令牌集中在 :root，页面里不再写内联样式
   ========================================================= */

:root {
  --bg: #F5F6FB;
  --surface: #FFFFFF;
  --surface-2: #FAFAFD;
  --ink: #141522;
  --ink-2: #5B5F73;
  --ink-3: #9A9EB2;
  --line: #EDEEF4;
  --line-2: #E4E6EF;

  --brand: #4F46E5;
  --brand-2: #7C5CE6;
  --brand-soft: #EEEDFE;
  --brand-deep: #3A32C4;

  --mint: #0EA5A5;
  --mint-soft: #E4F7F6;
  --amber: #D97706;
  --amber-soft: #FDF3E3;
  --rose: #E1447A;
  --rose-soft: #FDEDF3;
  --green: #15803D;
  --green-soft: #E8F6ED;

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-pill: 99px;

  --sh-1: 0 1px 2px rgba(20, 21, 34, .04), 0 6px 18px rgba(20, 21, 34, .045);
  --sh-2: 0 2px 6px rgba(79, 70, 229, .07), 0 16px 36px rgba(79, 70, 229, .09);
  --sh-pop: 0 12px 40px rgba(20, 21, 34, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 14px;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }

svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
svg.sm { width: 16px; height: 16px; }
svg.xs { width: 14px; height: 14px; }

/* ---------------- 排版 ---------------- */
.h1 { font-size: 24px; font-weight: 700; letter-spacing: -.035em; line-height: 1.3; }
.h2 { font-size: 18px; font-weight: 680; letter-spacing: -.028em; }
.h3 { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.sub { font-size: 13px; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.tiny { font-size: 12px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.right { text-align: right; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

/* ---------------- 按钮 ---------------- */
.btn {
  border: 0; cursor: pointer;
  background: #fff; color: var(--ink);
  border-radius: var(--r-pill);
  padding: 0 18px;
  min-height: 40px;
  font-size: 13px; font-weight: 560;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 1px 2px rgba(20, 21, 34, .06), 0 4px 14px rgba(20, 21, 34, .05);
  transition: .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(20, 21, 34, .08), 0 8px 22px rgba(20, 21, 34, .08); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, .3); }
.btn-primary:hover { box-shadow: 0 6px 22px rgba(79, 70, 229, .4); }
.btn-quiet { background: #F2F3F9; color: var(--ink-2); box-shadow: none; }
.btn-quiet:hover { background: #EAEBF3; transform: none; box-shadow: none; }
.btn-quiet.on { background: var(--amber-soft); color: var(--amber); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: #F2F3F9; transform: none; box-shadow: none; }
.btn-danger { background: var(--rose-soft); color: var(--rose); box-shadow: none; }
.btn-danger:hover { background: #FBDDE7; transform: none; }
.btn-sm { min-height: 32px; padding: 0 13px; font-size: 12px; }
.btn-lg { min-height: 46px; padding: 0 26px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 22px 24px;
}
.card-tight { padding: 16px 18px; }
.card-flat { box-shadow: none; border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3 { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.card-head .link { font-size: 12.5px; color: var(--brand); font-weight: 560; }

/* ---------------- 徽标 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: #F2F3F9; color: var(--ink-2);
  white-space: nowrap;
}
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-mint { background: var(--mint-soft); color: var(--mint); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-rose { background: var(--rose-soft); color: var(--rose); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------------- 进度 ---------------- */
.track { height: 8px; background: #EFF0F7; border-radius: var(--r-pill); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s ease; }
.track.mint i { background: linear-gradient(90deg, #14B8A6, #34D399); }
.track.thin { height: 5px; }
.track-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.track-legend b { color: var(--ink); font-weight: 620; font-variant-numeric: tabular-nums; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 12.5px; font-weight: 560; color: var(--ink-2); margin-bottom: 7px; }
.field .req { color: var(--rose); margin-left: 2px; }
input[type="text"], input[type="password"], input[type="number"], input[type="email"],
input[type="search"], select, textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  transition: .15s;
  min-height: 42px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
input::placeholder, textarea::placeholder { color: #B9BDCB; }
textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9EB2' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.hint { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }
.err-msg { font-size: 12px; color: var(--rose); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; min-height: 0; accent-color: var(--brand); }
.check-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; }
.scope-box { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
[hidden] { display: none !important; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.table th {
  text-align: left; font-weight: 560; font-size: 11.5px; color: var(--ink-3);
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: transparent; letter-spacing: .02em;
}
table.table td { padding: 14px 18px; border-bottom: 1px solid #F5F6FA; vertical-align: middle; background: transparent; color: var(--ink-2); }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover td { background: #FBFBFE; }
table.table .cell-stem { max-width: 520px; line-height: 1.6; }
table.table .nowrap { white-space: nowrap; }
/* 表头的 .right 会被上面的 th 规则压掉，单独提一下优先级 */
table.table th.right, table.table td.right { text-align: right; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
/* 表格行内的“重置密码”折叠块 */
.row-reset { margin-top: 2px; }
.row-reset summary { list-style: none; cursor: pointer; color: var(--brand); text-align: right; font-size: 11.5px; }
.row-reset summary::-webkit-details-marker { display: none; }
.row-reset[open] summary { margin-bottom: 6px; }
.row-reset form { display: flex; gap: 6px; justify-content: flex-end; }
.row-reset input[type="text"] { width: 96px; min-height: 30px; font-size: 12px; padding: 5px 9px; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager-info { font-size: 12px; color: var(--ink-3); }
.pager-btns { display: flex; gap: 5px; }
.pg {
  min-width: 32px; height: 32px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 12.5px; color: var(--ink-2);
  background: #F5F6FB;
}
.pg:hover { background: #EDEEF7; color: var(--ink); }
.pg.on { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(79, 70, 229, .3); }
.pg.disabled { color: #C8CBD8; background: transparent; cursor: default; }
/* 卡片内的分页贴成卡片底栏 */
.card > .pager { margin: 18px -24px -22px; border-radius: 0 0 var(--r-lg) var(--r-lg); background: transparent; }

/* ---------------- 提示 ---------------- */
.alert { border-radius: var(--r-sm); padding: 11px 14px; font-size: 13px; margin-bottom: 14px; display: flex; gap: 9px; align-items: flex-start; line-height: 1.6; }
.alert-error { background: var(--rose-soft); color: #B02A58; }
.alert-success { background: var(--green-soft); color: var(--green); }
.alert-info { background: var(--brand-soft); color: var(--brand-deep); }
.alert-warn { background: var(--amber-soft); color: var(--amber); }

.toasts { position: fixed; top: 18px; right: 18px; z-index: 999; display: flex; flex-direction: column; gap: 9px; }
.toast {
  background: #fff; border-radius: var(--r-sm); padding: 11px 16px;
  font-size: 13px; box-shadow: var(--sh-pop);
  display: flex; align-items: center; gap: 9px;
  animation: toastIn .22s ease;
  max-width: 360px;
}
.toast.ok { color: var(--green); }
.toast.err { color: var(--rose); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); }
.empty-ico { width: 52px; height: 52px; border-radius: 16px; background: #F2F3F9; color: var(--ink-3); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.empty p { font-size: 13px; margin-bottom: 14px; }

/* =========================================================
   学生端布局：顶栏通栏，无侧栏
   ========================================================= */
.app-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.app-top-inner {
  max-width: 1120px; margin: 0 auto;
  height: 64px; padding: 0 24px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -.03em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, .28);
}
.brand-mark svg { width: 17px; height: 17px; stroke-width: 2.2; }
.nav { display: flex; gap: 2px; font-size: 13px; }
.nav a { padding: 7px 13px; border-radius: var(--r-pill); color: var(--ink-2); transition: .15s; }
.nav a:hover { background: #F2F3F9; color: var(--ink); }
.nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.app-top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #C7D2FE, #DDD6FE);
  color: #3730A3; font-size: 12.5px; font-weight: 650;
  display: flex; align-items: center; justify-content: center;
}
.uname { font-size: 13px; font-weight: 550; }
.user-menu { position: relative; }
.user-menu-panel {
  position: absolute; right: 0; top: 44px; min-width: 160px;
  background: #fff; border-radius: var(--r-sm); box-shadow: var(--sh-pop);
  padding: 6px; display: none; z-index: 60;
}
.user-menu.open .user-menu-panel { display: block; }
.user-menu-panel a, .user-menu-panel button {
  display: flex; width: 100%; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; border: 0; background: none;
  font-size: 13px; color: var(--ink-2); cursor: pointer; text-align: left;
}
.user-menu-panel a:hover, .user-menu-panel button:hover { background: #F2F3F9; color: var(--ink); }

.app-main { max-width: 1120px; margin: 0 auto; padding: 26px 24px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
.page-head p { font-size: 13px; color: var(--ink-3); margin-top: 3px; }

.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: #C8CBD8; }

/* 网格 */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }

/* 统计卡 */
.stat { background: #fff; border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--sh-1); }
.stat-top { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.stat-ico { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-ico.v { background: var(--brand-soft); color: var(--brand); }
.stat-ico.m { background: var(--mint-soft); color: var(--mint); }
.stat-ico.a { background: var(--amber-soft); color: var(--amber); }
.stat-ico.r { background: var(--rose-soft); color: var(--rose); }
.stat-val { font-size: 29px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-val small { font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.stat-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }

/* 涨跌 / 状态药丸 */
.delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 560;
  color: var(--mint); background: var(--mint-soft);
  padding: 3px 9px; border-radius: var(--r-pill);
  margin-top: 12px;
}
.delta.a { color: var(--amber); background: var(--amber-soft); }
.delta.r { color: var(--rose); background: var(--rose-soft); }
.delta.v { color: var(--brand); background: var(--brand-soft); }
.delta.n { color: var(--ink-3); background: #F2F3F9; }

/* 列表项 */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }

/* 学科 / 模块 / 题集卡 */
.tile {
  background: #fff; border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--sh-1); display: block; transition: .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(20, 21, 34, .06), 0 18px 40px rgba(79, 70, 229, .1); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.tile-ico { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile-ico.v { background: var(--brand-soft); color: var(--brand); }
.tile-ico.m { background: var(--mint-soft); color: var(--mint); }
.tile-ico.a { background: var(--amber-soft); color: var(--amber); }
.tile-name { font-size: 13.5px; font-weight: 620; letter-spacing: -.01em; }
.tile-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.tile-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); margin-bottom: 9px; font-variant-numeric: tabular-nums; }
.tile-row b { color: var(--ink); font-weight: 620; }
.tile-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 首屏 hero（学习中心） */
.dash-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding: 14px 0 34px;
}
.dash-hero .pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--brand); font-size: 12px; font-weight: 600;
  padding: 6px 13px; border-radius: var(--r-pill);
  box-shadow: 0 2px 10px rgba(79, 70, 229, .1); margin-bottom: 18px;
}
.dash-hero .pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .16); }
.dash-hero h1 { font-size: 34px; line-height: 1.22; letter-spacing: -.045em; font-weight: 700; margin-bottom: 14px; }
.dash-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-hero .lede { font-size: 14px; color: var(--ink-2); line-height: 1.8; max-width: 400px; margin-bottom: 24px; }
.dash-hero .hacts { display: flex; gap: 11px; flex-wrap: wrap; }
.dash-hero .hacts .btn { min-height: 44px; padding: 0 22px; font-size: 13.5px; }

.glass { background: #fff; border-radius: 28px; padding: 26px 28px; box-shadow: var(--sh-2); }
.g-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.g-top span { font-size: 11.5px; color: var(--ink-3); }
.g-top strong { display: block; font-size: 13.5px; font-weight: 620; margin-top: 5px; }
.cd { font-size: 30px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd small { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-left: 3px; -webkit-text-fill-color: var(--ink-3); }
.prow { padding-top: 18px; margin-top: 16px; border-top: 1px solid var(--line); }
.g-top + .prow { margin-top: 0; border-top: 0; }
.plab { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 10px; color: var(--ink-2); }
.plab b { color: var(--ink); font-weight: 620; font-variant-numeric: tabular-nums; }

/* 小节标题 */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 34px 0 16px; }
.sec-head h2 { font-size: 16px; font-weight: 680; letter-spacing: -.02em; }
.sec-head .link { font-size: 12.5px; color: var(--brand); font-weight: 560; }
.sec-head .tiny { font-size: 12px; }

/* 通知条 */
.notice {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, #EEEDFE, #F6F1FE);
  border-radius: var(--r); padding: 14px 18px; margin-bottom: 16px;
}
.notice-ico { width: 34px; height: 34px; border-radius: 11px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(79, 70, 229, .14); }
.notice h4 { font-size: 13.5px; font-weight: 650; letter-spacing: -.02em; }
.notice p { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.notice .btn { margin-left: auto; }

/* =========================================================
   答题页：全屏，无导航
   ========================================================= */
.quiz-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.quiz-top-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 18px; }
.quiz-crumb { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.quiz-crumb b { color: var(--ink-2); font-weight: 560; }
.quiz-crumb .sep { color: #CFD2DE; }
.quiz-title { font-size: 13.5px; font-weight: 620; letter-spacing: -.02em; }
.quiz-title span { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 8px; }
.quiz-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.timer {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
  color: var(--brand); background: var(--brand-soft);
  padding: 7px 14px; border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}

.quiz-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 22px; align-items: start; }

.q-card { background: #fff; border-radius: 28px; padding: 34px 40px; box-shadow: var(--sh-1); }
.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.q-index { font-size: 12.5px; font-weight: 650; color: var(--brand); background: transparent; padding: 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.q-index i { font-style: normal; color: var(--ink-3); font-weight: 400; }
.q-stem { font-size: 17.5px; font-weight: 600; line-height: 1.72; letter-spacing: -.015em; margin: 16px 0 24px; white-space: pre-wrap; }
.opts { display: flex; flex-direction: column; gap: 13px; }
.opt {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-2); border: 1.5px solid transparent;
  border-radius: 14px; padding: 17px 18px;
  cursor: pointer; transition: .16s; text-align: left; width: 100%;
}
.opt:hover { background: #F4F5FB; border-color: #DCDDF0; }
.opt-key {
  width: 27px; height: 27px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 650; color: var(--ink-3); flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(20, 21, 34, .08);
  transition: .16s;
}
.opt-text { font-size: 14px; line-height: 1.6; flex: 1; }
.opt-tick { color: var(--brand); opacity: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: .16s; }
.opt-tick svg { width: 18px; height: 18px; stroke-width: 2.6; }
.opt.on { background: var(--brand-soft); border-color: var(--brand); box-shadow: 0 3px 12px rgba(79, 70, 229, .12); }
.opt.on .opt-key { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(79, 70, 229, .35); }
.opt.on .opt-tick { opacity: 1; }
.opt.right { background: var(--green-soft); border-color: #34C77B; }
.opt.right .opt-key { background: #fff; color: var(--green); }
.opt.wrong { background: var(--rose-soft); border-color: #F08CA8; }
.opt.wrong .opt-key { background: #fff; color: var(--rose); }
.opt.dim { opacity: .55; }

.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.q-foot .hint { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin: 0; }
.q-foot .hint.mark { color: var(--amber); }
.q-nav { display: flex; gap: 9px; margin-left: auto; }
.q-nav .btn { min-height: 42px; padding: 0 22px; }

/* 题干下方：考点 / 难度 */
.q-meta { display: flex; align-items: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.q-meta .k { font-size: 11.5px; color: var(--ink-3); }
.q-meta .v { font-size: 11.5px; color: var(--ink-2); background: var(--bg); padding: 3px 10px; border-radius: var(--r-pill); }

/* 答题卡 */
.sheet { background: #fff; border-radius: 28px; box-shadow: var(--sh-1); padding: 22px; position: sticky; top: 84px; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.sheet-head h3 { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.sheet-sub { font-size: 11.5px; color: var(--ink-3); margin-bottom: 16px; }
.sheet-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sheet-num {
  aspect-ratio: 1; border-radius: 9px; border: 0;
  font-size: 11.5px; font-weight: 500; color: var(--ink-2);
  background: #F4F5FA; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .13s; font-variant-numeric: tabular-nums;
}
.sheet-num:hover { background: #E9EBF4; color: var(--ink); }
.sheet-num.done { background: var(--brand); color: #fff; font-weight: 600; }
.sheet-num.mark { background: var(--amber-soft); color: var(--amber); font-weight: 650; }
.sheet-num.now { background: var(--brand-soft); color: var(--brand); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--brand); }
.legend { display: flex; flex-wrap: wrap; gap: 13px; font-size: 11px; color: var(--ink-2); margin-bottom: 15px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: block; background: #EFF0F7; }
.legend i.d { background: var(--brand); }
.legend i.c { background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand); }
.legend i.m { background: var(--amber); }
.sheet .tip { margin-top: 14px; font-size: 11px; color: var(--ink-3); line-height: 1.65; background: var(--surface-2); border-radius: 11px; padding: 11px 13px; }

/* 答题页底部间距 */
.quiz-wrap { padding-bottom: 40px; }

/* =========================================================
   结果页
   ========================================================= */
.score-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.score-ring {
  width: 108px; height: 108px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), #EFF0F7 0);
  position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.score-ring b { position: relative; font-size: 30px; font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-ring b small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.score-ring span { position: relative; font-size: 11px; color: var(--ink-3); margin-top: 4px; }

.kp-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.kp-name { width: 130px; font-size: 12.5px; color: var(--ink-2); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-bar { flex: 1; height: 8px; background: #EFF0F7; border-radius: var(--r-pill); overflow: hidden; }
.kp-bar i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, #F2799C, #F5A3BB); }
.kp-bar i.ok { background: linear-gradient(90deg, #14B8A6, #34D399); }
.kp-val { width: 78px; text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }

.hist { display: flex; align-items: flex-end; gap: 8px; height: 86px; }
.hist-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.hist-bar i { width: 100%; max-width: 34px; background: linear-gradient(180deg, #C7BFFA, var(--brand)); border-radius: 6px 6px 3px 3px; min-height: 4px; }
.hist-bar span { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.review-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.review-stem { font-size: 13.5px; line-height: 1.75; flex: 1; }
.review-answer { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; margin-top: 8px; }
.review-answer b { color: var(--ink); font-weight: 620; }
.review-analysis { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; margin-top: 10px; }

/* =========================================================
   管理端布局：侧栏 + 顶栏
   ========================================================= */
.console { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: #fff; border-right: 1px solid var(--line);
  padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-size: 14.5px; font-weight: 700; letter-spacing: -.03em; }
.side-group { margin-bottom: 18px; }
.side-group h5 { font-size: 10.5px; font-weight: 600; color: #B4B8C6; letter-spacing: .06em; padding: 0 10px; margin-bottom: 6px; text-transform: uppercase; }
.side-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px; font-size: 13px; color: var(--ink-2);
  margin-bottom: 2px; transition: .14s;
}
.side-link svg { width: 17px; height: 17px; color: #A7ABBC; }
.side-link:hover { background: #F4F5FA; color: var(--ink); }
.side-link.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-link.on svg { color: var(--brand); }
.side-foot { margin-top: auto; padding: 10px; font-size: 11.5px; color: var(--ink-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  position: sticky; top: 0; z-index: 40;
}
.topbar h1 { font-size: 14.5px; font-weight: 650; letter-spacing: -.02em; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.main-body { padding: 24px 28px 56px; max-width: 1240px; width: 100%; }

/* 筛选条：白卡包裹 */
.filter-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: #fff; border-radius: var(--r); padding: 15px 17px;
  margin-bottom: 16px; box-shadow: var(--sh-1);
}
.filter-bar select, .filter-bar input {
  width: auto; min-width: 128px; min-height: 34px;
  padding: 8px 12px; font-size: 12px;
  border: 0; background-color: #F5F6FB; border-radius: 9px;
}
.filter-bar select { padding-right: 32px; }
.filter-bar input:focus, .filter-bar select:focus { border: 0; box-shadow: 0 0 0 2px var(--brand-soft); }
.filter-bar .grow { flex: 1; min-width: 160px; }
.filter-bar .sp { flex: 1; }

/* 抽屉式表单（新增内容时展开） */
.panel { background: #fff; border-radius: var(--r); box-shadow: var(--sh-1); padding: 18px 20px; margin-bottom: 16px; }
.panel summary { cursor: pointer; font-size: 13.5px; font-weight: 620; list-style: none; display: flex; align-items: center; gap: 8px; }
.panel summary::-webkit-details-marker { display: none; }
.panel[open] summary { margin-bottom: 16px; }

/* =========================================================
   登录 / 首页
   ========================================================= */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { max-width: 1120px; width: 100%; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; }
.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 24px 60px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 32px; }
.auth-card h1 { font-size: 21px; font-weight: 700; letter-spacing: -.035em; margin-bottom: 6px; }
.auth-card .lede { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 20px; line-height: 1.8; }
.auth-foot a { color: var(--brand); font-weight: 550; }

/* =========================================================
   游客首页（独立版式：容器 + 交替分区，不与后台组件混用）
   ========================================================= */
.guest { background: var(--bg); }
.guest-wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* 顶栏 */
.guest-top { background: #fff; border-bottom: 1px solid var(--line); }
.guest-top .guest-wrap { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.guest-top .brand { font-size: 15px; letter-spacing: -.02em; }
.guest-top-note { font-size: 12.5px; color: var(--ink-3); }

/* 首屏 */
.guest-hero { background: #fff; padding: 76px 0 84px; }
.guest-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 76px; align-items: start; }
.guest-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  background: #F2F3F9; color: var(--ink-2); font-size: 12.5px;
}
.guest-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.guest-hero h1 { margin-top: 22px; font-size: 46px; line-height: 1.26; font-weight: 640; letter-spacing: -.04em; }
.guest-hero h1 em { font-style: normal; color: var(--brand); }
.guest-lede { margin-top: 20px; max-width: 470px; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.guest-stats { display: flex; gap: 46px; margin-top: 36px; flex-wrap: wrap; }
.guest-stats b { display: block; font-size: 27px; font-weight: 640; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.guest-stats span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.guest-actions { display: flex; align-items: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.guest-actions .btn { border-radius: 12px; }
.guest-actions .btn-ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.guest-actions .btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px #D4D7E4; }

/* 登录卡 */
.guest-login { background: #fff; border-radius: var(--r-lg); padding: 30px 30px 26px; box-shadow: var(--sh-2); }
.guest-login h2 { font-size: 16px; font-weight: 640; letter-spacing: -.02em; }
.guest-login-sub { margin-top: 5px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.guest-login .field { margin-top: 16px; }
.guest-login .field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; }
.guest-login .field input {
  width: 100%; min-height: 44px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #FCFDFE;
  font-size: 14px; font-family: inherit; color: var(--ink);
}
.guest-login .field input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); outline: none; }
.guest-login-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.guest-login-row a { font-size: 12.5px; color: var(--brand); font-weight: 550; }
.guest-login .btn-block { margin-top: 20px; border-radius: 12px; min-height: 45px; }
.guest-login-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.75; color: var(--ink-3); }
.guest-login-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #CBD5E1; }

/* 分区标题 */
.guest-sec { padding: 82px 0 76px; }
.guest-sec-white { background: #fff; }
.guest-sec-head { max-width: 660px; }
.guest-sec-head h2 { font-size: 26px; font-weight: 640; letter-spacing: -.035em; line-height: 1.35; }
.guest-sec-head p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

/* 三卡 */
.guest-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.guest-card { background: #fff; border-radius: var(--r-lg); padding: 26px 24px 28px; box-shadow: var(--sh-1); }
.guest-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.guest-ico svg { width: 19px; height: 19px; }
.guest-card h3 { font-size: 15px; font-weight: 640; letter-spacing: -.02em; }
.guest-card p { margin-top: 9px; font-size: 13.5px; line-height: 1.78; color: var(--ink-2); }

/* 四步 */
.guest-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }
.guest-step { position: relative; padding-right: 30px; }
.guest-step b { display: block; font-size: 12px; font-weight: 560; color: var(--brand); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.guest-step h3 { margin-top: 10px; font-size: 15px; font-weight: 640; letter-spacing: -.02em; }
.guest-step p { margin-top: 7px; font-size: 13px; line-height: 1.72; color: var(--ink-3); max-width: 210px; }
.guest-step:not(:last-child)::after { content: ""; position: absolute; right: 14px; top: 7px; width: 58px; height: 1px; background: var(--line-2); }

/* 页脚 */
.guest-foot { background: var(--bg); border-top: 1px solid var(--line); padding: 32px 0 40px; }
.guest-foot .guest-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.guest-foot p { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
.guest-foot-links { display: flex; gap: 22px; }
.guest-foot-links a { font-size: 12.5px; color: var(--ink-3); }
.guest-foot-links a:hover { color: var(--ink-2); }

/* =========================================================
   组卷
   ========================================================= */
.page-head h1 .badge { vertical-align: 3px; }
.strong-link { font-weight: 620; letter-spacing: -.02em; }
.strong-link:hover { color: var(--brand); }

.builder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; }
.builder-main, .builder-picked { padding: 0; }
.builder-side { position: sticky; top: 16px; }

.builder-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.builder-head h2 { font-size: 15px; font-weight: 660; letter-spacing: -.02em; }
.builder-head p { margin-top: 3px; }
.builder-random { display: flex; align-items: center; gap: 6px; }
.builder-random input { width: 54px; min-height: 32px; padding: 4px 6px; font-size: 12.5px; text-align: center; }
.builder-filter { margin: 0 20px 12px; gap: 8px; }
.builder-filter select, .builder-filter input { min-height: 34px; font-size: 12.5px; min-width: 110px; }

/* 题库列表 */
.pick-list { border-top: 1px solid var(--line); }
.pick-row { display: flex; align-items: flex-start; gap: 11px; padding: 12px 20px; border-bottom: 1px solid #F6F7FB; cursor: pointer; transition: background .14s; }
.pick-row:hover { background: #FBFBFE; }
.pick-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.pick-row.is-picked { background: #FAFAFE; }
.pick-row.is-picked .pick-stem { color: var(--ink-3); }
.pick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pick-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pick-stem { font-size: 13px; color: var(--ink); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-score { font-size: 12px; color: var(--ink-3); white-space: nowrap; margin-top: 2px; }
.builder-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); background: #FCFCFE; }
.builder-foot .btn { margin-left: auto; }
/* 组卷卡片是零内边距，分页不能再吃负外边距（那条规则是给有内边距的卡片用的） */
.builder-main > .pager { margin: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.check-all { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.check-all input { width: 15px; height: 15px; accent-color: var(--brand); }

/* 已选清单 */
.type-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px; }
.type-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); background: #F4F5FA; border-radius: var(--r-pill); padding: 4px 9px; }
.type-chip b { color: var(--ink); font-weight: 650; }
.type-chip i { font-style: normal; color: var(--ink-3); font-size: 11px; }

.picked-list { border-top: 1px solid var(--line); max-height: calc(100vh - 240px); overflow: auto; }
.picked-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px 10px 10px; border-bottom: 1px solid #F6F7FB; }
.picked-row:hover { background: #FBFBFE; }

/* 拖拽排序：手柄只在未发布时出现，落点在行的上/下边线 */
.picked-grip {
  width: 14px; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  color: #B6BACB; cursor: grab; transition: color .14s, background .14s;
}
.picked-grip svg { width: 14px; height: 14px; }
.picked-row:hover .picked-grip { color: var(--brand); }
.picked-row.is-dragging { opacity: .4; }
.picked-row.drop-before { box-shadow: inset 0 2px 0 var(--brand); }
.picked-row.drop-after { box-shadow: inset 0 -2px 0 var(--brand); }
.picked-no { width: 18px; font-size: 11.5px; color: var(--ink-3); text-align: right; flex-shrink: 0; margin-top: 3px; }
.picked-body { flex: 1; min-width: 0; }
.picked-meta { font-size: 10.5px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.picked-stem { display: block; font-size: 12.5px; color: var(--ink); line-height: 1.5; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked-row.is-gone .picked-stem { color: var(--ink-3); text-decoration: line-through; }
.picked-ops { display: flex; align-items: center; gap: 1px; flex-shrink: 0; }
.score-input { width: 46px; min-height: 28px; padding: 2px 4px; font-size: 12px; text-align: center; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; }
.icon-btn { width: 23px; height: 23px; border: 0; background: transparent; border-radius: 6px; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: #F0F1F8; color: var(--ink); }
.icon-btn.danger:hover { background: var(--rose-soft); color: var(--rose); }
.empty-sm { padding: 26px 20px; }
.empty-sm p { margin-bottom: 0; }

.danger-text { color: var(--rose); }
.danger-text:hover { background: var(--rose-soft); }

/* =========================================================
   试卷（预览 + 打印）
   ========================================================= */
.paper-body { background: #EDEEF4; }
.paper-toolbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.paper-toolbar-inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; }
.paper-toolbar-title { font-size: 13px; font-weight: 620; display: flex; align-items: center; gap: 8px; margin-right: auto; }

.paper-sheet {
  width: 21cm; min-height: 27cm; margin: 24px auto 44px;
  background: #fff; padding: 2.2cm 2.5cm 2.4cm;
  box-shadow: 0 12px 40px rgba(20, 21, 34, .14);
  font-family: "Songti SC", "SimSun", "STSong", serif;
  font-size: 10.5pt; line-height: 1.9; color: #000;
}
.paper-head { text-align: center; padding-bottom: 12px; border-bottom: 1px solid #BFBFBF; }
.paper-head h1 { font-size: 18pt; font-weight: 700; letter-spacing: .04em; font-family: "Heiti SC", "SimHei", sans-serif; }
.paper-meta { margin-top: 8px; font-size: 10.5pt; }
.paper-fields { margin-top: 10px; font-size: 10.5pt; letter-spacing: .02em; }
.paper-note { margin-top: 8px; font-size: 9.5pt; text-align: left; }

.paper-sec { font-family: "Heiti SC", "SimHei", sans-serif; font-size: 12pt; font-weight: 700; margin: 22px 0 10px; }
.paper-q { margin-bottom: 12px; break-inside: avoid; }
.paper-stem { padding-left: 2em; text-indent: -2em; }
.paper-no { margin-right: 2px; }
.paper-opts { padding-left: 2em; display: flex; flex-direction: column; gap: 2px; }
.paper-opts.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.paper-opts.inline { flex-direction: row; gap: 34px; }
.paper-lines { margin: 6px 0 4px 2em; }
.paper-lines i { display: block; height: 30px; border-bottom: 1px dashed #C9CCD8; }
.paper-empty { text-align: center; color: #888; margin: 40px 0; }

.paper-answers { margin-top: 30px; padding-top: 18px; border-top: 1px solid #BFBFBF; break-before: page; }
.paper-answers-title { text-align: center; font-family: "Heiti SC", "SimHei", sans-serif; font-size: 14pt; font-weight: 700; margin-bottom: 14px; }
.paper-answer { margin-bottom: 12px; break-inside: avoid; }
.paper-answer-line { padding-left: 2em; text-indent: -2em; font-weight: 600; }
.paper-answer-score { font-weight: 400; color: #555; margin-left: 10px; font-size: 9.5pt; }
.paper-answer-sub { padding-left: 2em; font-size: 9.5pt; color: #333; line-height: 1.8; }

/* PDF 直出按钮：生成期间给个不可点的状态 */
.btn.is-busy { opacity: .55; pointer-events: none; }

/* PDF 直出：页面边距只由 @page 决定，纸张本身不再叠一圈内边距 */
body.paper-print { background: #fff; }
body.paper-print .paper-sheet {
  width: auto; min-height: 0; margin: 0; padding: 0;
  box-shadow: none; border-radius: 0;
}

@page { size: A4; margin: 20mm 22mm 20mm 25mm; }

/* =========================================================
   批量导入
   ========================================================= */
.import-result { box-shadow: inset 3px 0 0 var(--brand), var(--sh-1); }
.ir-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ir-head h2 { font-size: 17px; font-weight: 660; letter-spacing: -.025em; }
.ir-head .tiny { margin-top: 5px; }

.ir-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ir-stat { background: #fff; padding: 13px 16px; }
.ir-stat span { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 3px; }
.ir-stat strong { font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.ir-stat.ok strong { color: var(--brand); }
.ir-stat.bad strong { color: var(--rose); }

.ir-block { margin-top: 22px; }
.ir-warn { background: var(--amber-soft); border-radius: var(--r); padding: 14px 16px; }
.ir-warn .h3 { color: var(--amber); }
.ir-list { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.ir-list li { display: flex; gap: 8px; }
.ir-list .tiny { flex-shrink: 0; width: 58px; color: var(--amber); }

.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 28px 20px; border: 1.5px dashed #D3D6E6; border-radius: var(--r); background: #FAFBFF; cursor: pointer; text-align: center; transition: border-color .16s, background .16s; }
.drop-zone:hover, .drop-zone.is-over { border-color: var(--brand); background: #F5F6FF; }
.drop-zone svg { width: 28px; height: 28px; stroke: var(--brand); margin-bottom: 7px; }
.drop-zone strong { font-size: 13.5px; font-weight: 600; }
.drop-zone input[type="file"] { display: none; }
.dz-file { font-size: 12px; color: var(--brand); font-weight: 560; margin-top: 7px; word-break: break-all; }
.dz-file:empty { display: none; }

.steps-compact { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 11px; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.steps-compact li { counter-increment: step; position: relative; padding-left: 26px; }
.steps-compact li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps-compact b { color: var(--ink); font-weight: 600; }

.hist-name { font-size: 13px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================
   考试：安排 / 成绩单 / 批阅 / 我的考试
   ========================================================= */
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { position: relative; cursor: pointer; }
.pick-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-chip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: #fff;
  font-size: 12.5px; color: var(--ink-2); transition: .15s;
}
.pick-chip span i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.pick-chip span::before {
  content: ""; width: 13px; height: 13px; border-radius: 4px; flex-shrink: 0;
  border: 1.5px solid #CBCEDE; background: #fff; transition: .15s;
}
.pick-chip input:checked + span::before {
  border-color: var(--brand); background-color: var(--brand);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
  background-size: 10px 10px; background-position: center; background-repeat: no-repeat;
}
.pick-chip:hover span { border-color: #CDCEE6; }
.pick-chip input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.pick-chip input:checked + span i { color: var(--brand); }
.pick-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(79, 70, 229, .16); }

.check-line { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check-line input { width: 16px; height: 16px; accent-color: var(--brand); }

/* 主观题批阅 */
.grade-card { padding: 22px 24px; }
.grade-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.grade-head .badge { margin-right: 6px; }
.grade-score { display: flex; align-items: center; gap: 7px; }
.grade-score .score-input { width: 76px; text-align: center; }
.grade-stem { font-size: 15px; font-weight: 600; line-height: 1.72; margin: 15px 0 16px; white-space: pre-wrap; }
.grade-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grade-label { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 6px; }
.answer-text {
  background: var(--surface-2); border-radius: var(--r-sm);
  padding: 13px 15px; font-size: 13px; line-height: 1.85; color: var(--ink);
  white-space: pre-wrap; word-break: break-word; min-height: 76px;
}
.answer-text.is-ref { background: #F7F8FD; color: var(--ink-2); font-size: 12.5px; }
.answer-text.is-blank { color: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.grade-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 成绩单里的主观题回顾 */
.review-text { margin-top: 10px; }
.review-text.is-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.review-text .answer-text { min-height: 0; }

/* 我的考试 */
.exam-list { display: flex; flex-direction: column; gap: 12px; }
.exam-card {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border-radius: var(--r-lg); padding: 20px 24px;
  box-shadow: var(--sh-1); border-left: 3px solid var(--line-2);
  transition: box-shadow .16s, transform .16s;
}
.exam-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.exam-card.tone-brand { border-left-color: var(--brand); }
.exam-card.tone-amber { border-left-color: var(--amber); }
.exam-card-main { flex: 1; min-width: 0; }
.exam-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.exam-title { font-size: 16.5px; font-weight: 680; letter-spacing: -.025em; }
.exam-metas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 9px; font-size: 12.5px; color: var(--ink-3); }
.exam-metas span { display: inline-flex; align-items: center; gap: 5px; }
.exam-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; text-align: right; }
.exam-score { display: flex; align-items: baseline; gap: 4px; }
.exam-score b { font-size: 25px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.exam-score span { font-size: 12px; color: var(--ink-3); }
.exam-countdown, .exam-wait { display: flex; flex-direction: column; align-items: flex-end; }
.exam-countdown b { font-size: 19px; font-weight: 700; color: var(--brand); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.exam-wait b { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.exam-countdown span, .exam-wait span { font-size: 11.5px; color: var(--ink-3); }

/* 考前须知 */
.exam-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.exam-intro-main { background: #fff; border-radius: var(--r-lg); padding: 32px 34px; box-shadow: var(--sh-1); }
.exam-intro-main h1 { font-size: 27px; font-weight: 700; letter-spacing: -.04em; margin: 14px 0 3px; }
.exam-intro-main .sub { font-size: 13px; color: var(--ink-3); }
.exam-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 24px; }
.exam-facts > div { background: #fff; padding: 14px 16px; }
.exam-facts span { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.exam-facts b { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.exam-rules { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.exam-rules li { position: relative; padding-left: 24px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.exam-rules li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .5; }
.exam-intro-side { background: #fff; border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--sh-1); position: sticky; top: 88px; text-align: center; }
.exam-side-score { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.exam-side-score span { font-size: 12px; color: var(--ink-3); }
.exam-side-score b { font-size: 34px; font-weight: 700; letter-spacing: -.045em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.exam-side-score small { font-size: 12px; color: var(--ink-3); }
.exam-side-score.is-live b { color: var(--brand); }
.exam-side-score.is-wait b { font-size: 21px; letter-spacing: -.03em; }

/* 考试答题页：主观题输入 + 倒计时告警 */
.answer-wrap { margin: 4px 0 10px; }
.answer-box {
  width: 100%; min-height: 190px; resize: vertical;
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  padding: 16px 18px; font-size: 14.5px; line-height: 1.9;
  font-family: inherit; color: var(--ink); background: #FCFCFE;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.answer-box:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.answer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.timer.is-low { background: var(--rose-soft); color: var(--rose); animation: timerPulse 1.6s ease-in-out infinite; }
@keyframes timerPulse { 50% { opacity: .6; } }
.sheet .tip.is-warn { color: var(--amber); }

/* =========================================================
   统计分析：班级对比 / 分数段 / 题目得分率
   ========================================================= */
.cmp-table td { vertical-align: middle; }
.cmp-table .track { min-width: 104px; }
.cmp-name { font-weight: 600; font-size: 13.5px; }
.cmp-note { color: var(--ink-2); line-height: 1.9; margin-top: 14px; }
.up-text { color: var(--green); }
.down-text { color: var(--rose); }
.track.rose i { background: linear-gradient(90deg, #E8648C, #F2799C); }

.dist-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.dist-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.dist-key i { width: 10px; height: 10px; border-radius: 3px; display: block; }

.dist-row { display: grid; grid-template-columns: 122px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 8px 0; }
.dist-name { font-size: 13px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist-bar { display: flex; height: 14px; border-radius: var(--r-pill); overflow: hidden; background: #F1F2F8; }
.dist-bar i { display: block; height: 100%; transition: width .4s ease; }
.dist-bar i + i { box-shadow: inset 1px 0 0 rgba(255,255,255,.85); }
.dist-sum { display: flex; align-items: center; gap: 9px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.dist-sum span + span::before { content: '·'; margin-right: 9px; color: var(--line-2); }
.dist-sum .b90, .dist-sum .b80, .dist-sum .b70, .dist-sum .b60, .dist-sum .b00 { background: transparent; font-weight: 560; }
.dist-sum .b90 { color: #0E9F6E; }
.dist-sum .b80 { color: #4F46E5; }
.dist-sum .b70 { color: #6673E8; }
.dist-sum .b60 { color: #B47B06; }
.dist-sum .b00 { color: #D9547C; }
.dist-sum .zero { color: #C9CBD8; font-weight: 400; }
.dist-sum b { font-weight: 620; color: var(--ink-2); margin-left: 4px; padding-left: 9px; border-left: 1px solid var(--line); }
.dist-sum .zero { color: #C9CBD8; }

.b90 { background: #34D399; }
.b80 { background: #4F46E5; }
.b70 { background: #7C8CF8; }
.b60 { background: #F0B429; }
.b00 { background: #F2799C; }

.q-table .q-stem { font-size: 13px; line-height: 1.6; max-width: 420px; }
.q-table tr.is-low td { background: #FFF9FA; }
.q-table tr.is-low .track.thin { background: #FCE7EE; }

.weak-item { padding: 12px 0; border-top: 1px solid var(--line); }
.card-head + .weak-item { border-top: 0; padding-top: 0; }
.weak-no { font-size: 13px; font-weight: 620; }
.weak-stem { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin: 7px 0 5px; }

.rank-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.rank-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sep-dot { color: #C3C6D6; }
.exam-ref { font-size: 13.5px; font-weight: 600; line-height: 1.6; }

/* =========================================================
   操作日志（只读流水）
   ========================================================= */
.log-table { min-width: 900px; table-layout: fixed; }
table.log-table th { padding: 10px 14px; }
table.log-table td { padding: 11px 14px; }

.log-time b { display: block; font-size: 12.5px; font-weight: 620; color: var(--ink); white-space: nowrap; }
.log-time span { display: block; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.log-actor { display: flex; align-items: center; gap: 9px; min-width: 0; }
.log-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 650;
  background: #EFF0F7; color: var(--ink-2);
}
.log-actor.is-staff .log-avatar { background: var(--brand-soft); color: var(--brand); }
.log-actor-txt { flex: 1; min-width: 0; }
.log-actor-txt b {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.log-actor-txt span {
  display: block; font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lg {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600;
  padding: 4px 9px; border-radius: var(--r-pill); white-space: nowrap;
}
.lg-auth { background: #ECEEF7; color: var(--ink-2); }
.lg-content { background: var(--mint-soft); color: var(--mint); }
.lg-question { background: var(--brand-soft); color: var(--brand); }
.lg-paper { background: #F3EEFE; color: #6C46C8; }
.lg-exam { background: var(--amber-soft); color: var(--amber); }
.lg-user { background: var(--rose-soft); color: var(--rose); }
.lg-other { background: #F1F2F8; color: var(--ink-3); }
.lg.is-danger { background: var(--rose-soft); color: #C02B5E; box-shadow: inset 0 0 0 1px rgba(225, 68, 122, .16); }

.log-target { display: flex; align-items: center; gap: 6px; min-width: 0; }
.log-target a, .log-target-name {
  font-size: 12.5px; font-weight: 560; color: var(--ink);
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.log-target a { border-bottom: 1px solid transparent; transition: .15s; }
.log-target a:hover { color: var(--brand); border-bottom-color: var(--brand-soft); }
.log-target .badge { flex-shrink: 0; font-size: 10.5px; padding: 1px 7px; }

.log-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.log-chip {
  display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%;
  font-size: 11.5px; color: var(--ink-2);
  background: #F7F8FC; border-radius: 7px; padding: 2px 7px;
}
.log-chip em { font-style: normal; color: var(--ink-3); }

.log-dash { font-size: 12px; color: #C9CBD8; }
.log-ip {
  font-size: 11.5px; color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -.02em;
}
.log-range { display: flex; align-items: center; gap: 6px; }
.log-tilde { color: var(--ink-3); font-size: 12px; }
.log-foot { margin-top: 14px; line-height: 1.8; }

/* ---------------- 配比组卷 ---------------- */
.bp-scope { margin-bottom: 16px; }
.bp-card { padding: 0; overflow: hidden; }

.bp-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; padding: 18px 20px 12px;
}
.bp-head h2 { font-size: 15px; font-weight: 660; letter-spacing: -.02em; }
.bp-head p { margin-top: 4px; }
.bp-total {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.bp-total input {
  width: 66px; min-height: 34px; padding: 4px 6px;
  text-align: center; font-size: 13px; font-variant-numeric: tabular-nums;
}

.bp-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 20px 14px; }
.bp-presets > .tiny:first-child { margin-right: 2px; }
.bp-preset {
  font-size: 12px; padding: 4px 11px; border-radius: var(--r-pill);
  background: #F4F5FA; color: var(--ink-2); transition: background .14s, color .14s;
}
.bp-preset:hover { background: var(--brand-soft); color: var(--brand-deep); }
.bp-preset.is-on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.bp-hint { margin-left: auto; }

table.bp-table { width: 100%; min-width: 640px; border-collapse: collapse; }
table.bp-table th {
  padding: 10px 18px; font-size: 11.5px; font-weight: 600; color: var(--ink-3);
  text-align: left; background: #FCFCFE; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
table.bp-table td { padding: 11px 18px; border-bottom: 1px solid #F6F7FB; font-size: 13px; vertical-align: middle; }
table.bp-table th.right, table.bp-table td.right { text-align: right; }
table.bp-table tbody tr:last-child td { border-bottom: 0; }
.bp-kp b { font-weight: 600; }
.bp-rate { font-size: 11.5px; color: var(--ink-3); margin-left: 8px; white-space: nowrap; }
.bp-stock { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bp-stock b { color: var(--ink); }
.bp-weight { width: 118px; white-space: nowrap; color: var(--ink-3); font-size: 12px; }
.bp-weight input {
  width: 64px; min-height: 32px; padding: 4px 6px; text-align: center;
  font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums;
}
.bp-alloc { width: 84px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bp-alloc b { font-size: 14px; }
.bp-state { width: 88px; }

.bp-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 14px 20px; background: #FCFCFE; border-top: 1px solid var(--line);
}
.bp-sum { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bp-sum b { color: var(--ink); }
.bp-topup { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.bp-topup input { width: 15px; height: 15px; accent-color: var(--brand); }
.bp-foot .btn { margin-left: auto; }
.bp-note { padding: 0 4px; line-height: 1.9; }

/* 窄屏：五列在 480 内放得下，靠压缩内边距而不是横向滚动 */
@media (max-width: 640px) {
  .bp-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bp-hint { margin-left: 0; flex-basis: 100%; }
  table.bp-table { min-width: 0; }
  table.bp-table th { padding: 9px 11px; }
  table.bp-table td { padding: 10px 11px; }
  .bp-kp .bp-rate { display: block; margin: 3px 0 0; }
  .bp-weight { width: 78px; }
  .bp-weight input { width: 48px; padding: 4px 2px; }
  .bp-alloc { width: 58px; }
  .bp-state { width: 62px; }
  .bp-foot .btn { margin-left: 0; width: 100%; }
}

/* =========================================================
   响应式
   ========================================================= */
/* 组卷：侧栏占 220px，1180 以下就拆单列 */
@media (max-width: 1180px) {
  .builder { grid-template-columns: minmax(0, 1fr); }
  .builder-side { position: static; }
  .pick-list, .picked-list { max-height: none; }
  .builder-filter select { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .builder-filter .grow { flex: 1 1 120px; }
}

@media (max-width: 1000px) {
  .exam-intro { grid-template-columns: minmax(0, 1fr); }
  .exam-intro-side { position: static; }
  .exam-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-wrap { grid-template-columns: minmax(0, 1fr); }
  .sheet { position: static; }
  .grid-side { grid-template-columns: minmax(0, 1fr); }
  .guest-hero { padding: 46px 0 52px; }
  .guest-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .guest-hero h1 { font-size: 33px; margin-top: 16px; }
  .guest-lede { font-size: 14px; margin-top: 14px; max-width: none; }
  .guest-stats { gap: 32px; margin-top: 26px; }
  .guest-stats b { font-size: 23px; }
  .guest-actions { margin-top: 28px; }
  .guest-login { max-width: 520px; }
  .guest-sec { padding: 48px 0 44px; }
  .guest-sec-head h2 { font-size: 21px; line-height: 1.4; }
  .guest-sec-head p { font-size: 13.5px; }
  .guest-cards3 { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .guest-card { padding: 20px 20px 22px; }
  .guest-ico { margin-bottom: 14px; }
  .guest-steps { grid-template-columns: 1fr 1fr; gap: 26px 20px; margin-top: 26px; }
  .guest-step { padding-right: 0; }
  .guest-step:not(:last-child)::after { display: none; }
  .guest-step p { max-width: none; font-size: 12.5px; }
  .guest-foot { padding: 26px 0 34px; }
  .guest-foot .guest-wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dash-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 6px; }
  .dash-hero h1 { font-size: 27px; }
}

/* 统计表列多，窄屏宁可横向滚动，也不要把班级名挤成竖排 */
@media (max-width: 760px) {
  .cmp-table { min-width: 600px; }
  .cmp-name { white-space: nowrap; }
  /* 成绩单 hero 三块并排会把标题和按钮挤成窄条，改为竖排 */
  .score-hero { flex-direction: column; align-items: stretch; gap: 18px; }
  .score-hero .score-ring { align-self: flex-start; }
  .score-hero .grid { justify-content: space-between; }
}

@media (max-width: 860px) {
  .console { grid-template-columns: minmax(0, 1fr); }
  .paper-sheet { width: auto; min-height: 0; margin: 12px; padding: 20px 18px 26px; border-radius: 12px; }
  .paper-toolbar-inner { flex-wrap: wrap; gap: 8px; }
  .side { position: static; height: auto; display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); align-items: center; }
  .side-brand { display: none; }
  .side-group { display: flex; gap: 4px; margin: 0; align-items: center; }
  .side-group h5 { display: none; }
  .side-link { white-space: nowrap; margin: 0; }
  .side-foot { display: none; }
  .main-body { padding: 18px 16px 48px; }
  .topbar { padding: 0 16px; }
  .app-top-inner { padding: 0 14px; gap: 12px; }
  .nav { display: none; }
  .app-main { padding: 18px 14px 56px; }
  .quiz-wrap { padding: 14px 14px 36px; }
  .q-card { padding: 22px 18px; border-radius: 22px; }
  .sheet { border-radius: 22px; padding: 18px; }
  .sheet-grid { grid-template-columns: repeat(auto-fill, minmax(38px, 44px)); }
  .q-stem { font-size: 16px; }
  .opt { padding: 14px; gap: 11px; }
  .glass { border-radius: 22px; padding: 22px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quiz-crumb { display: none; }
  .grade-cols, .review-text.is-split { grid-template-columns: minmax(0, 1fr); }
  .exam-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 20px; }
  .exam-card-side { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .exam-countdown, .exam-wait { align-items: flex-start; }
  .exam-intro-main { padding: 24px 20px; }
  .exam-intro-main h1 { font-size: 22px; }
  .exam-rules li { font-size: 12.5px; }
}

@media (max-width: 520px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .log-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-stats .stat { padding: 14px 15px; }
  .log-stats .stat-val { font-size: 20px; }
  .log-range { flex: 1 1 150px; min-width: 0; }
  .log-range input { flex: 1; min-width: 0; }
  .ir-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ir-head { flex-direction: column; }
  .h1, .page-head h1 { font-size: 19px; }
  .stat-val { font-size: 22px; }
  .score-hero { gap: 18px; }
  .kp-name { width: 92px; }
  .dist-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .dist-sum { gap: 12px; }
  .notification, .notice { flex-wrap: wrap; }
  .notice .btn { margin-left: 0; width: 100%; }
  .guest-wrap { padding: 0 18px; }
  .guest-hero h1 { font-size: 29px; }
  .guest-stats { gap: 24px; }
  .guest-steps { grid-template-columns: 1fr; gap: 22px; }
  .guest-login { padding: 24px 20px 22px; }
}

/* 打印：成绩单、试卷 */
@media print {
  body { background: #fff; }
  .app-top, .quiz-top, .side, .topbar, .btn, .pager, .toasts { display: none !important; }
  .app-main, .main-body { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  a { text-decoration: none; color: #000; }
  .console { grid-template-columns: 1fr; }
  .paper-sheet { width: auto; min-height: 0; margin: 12px; padding: 20px 18px 26px; border-radius: 12px; }
  .paper-toolbar-inner { flex-wrap: wrap; gap: 8px; }
}
