/* =========================================================
   随堂练 · 每日练习册
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f2f3f5;
  --card: #ffffff;
  --ink: #1d2129;
  --ink-2: #4e5969;
  --muted: #86909c;
  --line: #e5e6eb;
  --primary: #1677ff;
  --primary-2: #4096ff;
  --primary-soft: #e8f3ff;
  --teal: #0d9488;
  --ok: #00b42a;
  --ok-soft: #e8ffea;
  --warn: #d25f00;
  --warn-soft: #fff7e8;
  --danger: #f53f3f;
  --danger-soft: #ffece8;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, .1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.student { background: var(--bg); }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }
::selection { background: #bcdcff; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  height: 56px; padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.logo {
  width: 30px; height: 30px; border-radius: 4px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff; font-weight: 700; font-size: 15px;
}
.brand-txt b { display: block; font-size: 15px; letter-spacing: 0; }
.brand-txt span { display: block; font-size: 9.5px; color: var(--muted); letter-spacing: .12em; margin-top: 1px; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 3px;
  font-size: 13px; color: var(--ink-2); font-weight: 400;
  transition: background .16s, color .16s;
}
.nav a:hover { background: #f2f7ff; color: var(--primary); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.top-account { display: flex; align-items: center; gap: 8px; flex: none; font-size: 12.5px; color: var(--muted); }
.top-account span { display: inline-flex; align-items: center; gap: 6px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 布局 ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 20px 24px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.page-head p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: start; }
.dashboard-grid { grid-template-columns: 1.38fr 1fr; }
.grid-2.wide-left { grid-template-columns: 1fr; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.card + .card { margin-top: 12px; }
.card h2 { font-size: 15px; margin-bottom: 4px; }
.card h3 { font-size: 14px; margin-bottom: 4px; }
.card-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; gap: 26px;
  padding: 26px 28px;
  border-radius: var(--radius); color: #fff;
  background: var(--primary);
  margin-bottom: 16px;
}
.hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -90px; top: -190px;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 62%);
  border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; width: 260px; height: 260px; left: 36%; bottom: -190px;
  background: radial-gradient(circle, rgba(14, 165, 233, .35), transparent 65%);
  border-radius: 50%;
}
.hero-main { position: relative; z-index: 1; max-width: 620px; }
.hero h1 { font-size: 22px; letter-spacing: 0; margin-bottom: 8px; }
.hero p { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .85); }
.hero-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.hero .btn.primary { background: #fff; color: var(--primary); }
.hero .btn.primary:hover { background: #f2f7ff; }
.hero .btn.ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); color: #fff; }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .18); }
.hero-art { position: relative; z-index: 1; display: grid; gap: 10px; align-content: center; flex: none; width: 252px; }
.mock-card {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px; padding: 12px 14px; backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 10px;
}
.mock-card .dot { width: 26px; height: 26px; border-radius: 3px; background: rgba(255, 255, 255, .92); color: #0958d9; font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.mock-card b { font-size: 12.5px; display: block; }
.mock-card span { font-size: 11px; color: rgba(255, 255, 255, .72); }
.mock-card:nth-child(2) { transform: translateX(18px); }
.mock-card:nth-child(3) { transform: translateX(4px); }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 17px 18px;
  display: flex; align-items: center; gap: 13px;
}
.stat .ico { width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center; flex: none; }
.stat .ico.i1 { background: #e8f3ff; color: #1677ff; }
.stat .ico.i2 { background: #ecfdf5; color: #059669; }
.stat .ico.i3 { background: #fff7ed; color: #ea580c; }
.stat .ico.i4 { background: #f0f9ff; color: #0284c7; }
.stat b { font-size: 22px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; background: #fff; color: var(--ink);
  padding: 7px 14px; border-radius: 3px; font-size: 13px; font-weight: 500;
  transition: background .16s, border-color .16s, color .16s;
  white-space: nowrap; line-height: 1.3;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: #4096ff; }
.btn.ghost { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--primary); background: #f2f7ff; color: var(--primary); }
.btn.soft { background: var(--primary-soft); color: var(--primary); }
.btn.soft:hover { background: #d4e8ff; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.danger:hover { background: #ffded6; }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 3px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.icon-btn {
  width: 32px; height: 32px; border-radius: 3px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; color: var(--muted);
}
.icon-btn:hover { color: var(--danger); border-color: #fecdd3; background: #fff1f2; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; background: #f1f5f9; color: #475569;
  white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: #047857; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--primary-soft); color: #0958d9; }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 表单 ---------- */
label.field { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type="text"], input[type="number"], input[type="search"], textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 3px;
  padding: 7px 10px; font-size: 13px; background: #fff; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .1); }
input::placeholder, textarea::placeholder { color: #a3aec2; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help-text { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 6px; }

/* ---------- 手动录入 ---------- */
.seg { display: inline-flex; gap: 3px; padding: 4px; background: #f1f5f9; border-radius: 3px; margin-bottom: 18px; }
.seg-btn { border: none; background: transparent; padding: 8px 16px; border-radius: 3px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-btn:hover { color: var(--primary); }
.seg-btn.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(15, 23, 42, .13); }
.opt-editor { display: grid; gap: 8px; margin-bottom: 10px; }
.opt-editor-row { display: flex; align-items: center; gap: 9px; }
.opt-editor-row .opt-key {
  width: 27px; height: 27px; border-radius: 3px; background: #f1f5f9; border: none;
  color: #475569; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none;
}
.opt-editor-row .opt-input { flex: 1; }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  border: 1px solid var(--line); background: #fff; border-radius: 3px;
  padding: 8px 12px; font-size: 13px; transition: border-color .14s, background .14s;
}
.choice-chip:hover { border-color: #bcdcff; background: #f8faff; }
.choice-chip .k {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid #cbd5e1;
  font-size: 11px; font-weight: 800; color: #64748b; display: grid; place-items: center; flex: none;
}
.choice-chip .t { color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.choice-chip.sel { border-color: #1677ff; background: var(--primary-soft); }
.choice-chip.sel .k { background: var(--primary); border-color: var(--primary); color: #fff; }
.choice-chip.sel .t { color: var(--primary); font-weight: 600; }
.modal-actions {
  position: sticky; bottom: -26px; z-index: 2;
  display: flex; justify-content: flex-end; gap: 8px;
  margin: 20px -26px -26px; padding: 14px 26px;
  background: #fff; border-top: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
}
.paste-panel {
  margin-bottom: 16px; padding: 13px 14px;
  border: 1px dashed #bcdcff; border-radius: 4px; background: #f8faff;
}
.paste-panel textarea { background: #fff; }

/* ---------- 空状态 ---------- */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 46px 20px; text-align: center; color: var(--muted);
}
.empty .circle {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 4px;
}
.empty b { color: var(--ink); font-size: 15px; }
.empty p { font-size: 13px; max-width: 380px; line-height: 1.7; }

/* ---------- 练习列表（问卷星式紧凑卡片） ---------- */
.prac-list { display: grid; gap: 10px; }
.prac-card {
  background: #fff; border: 1px solid #ebebeb; border-radius: 2px;
  padding: 13px 16px 0; transition: border-color .16s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}
.prac-card:hover { border-color: #d9e3fb; }
.qs-top { display: flex; gap: 14px; align-items: flex-start; }
.qs-date { flex: none; width: 78px; }
.qs-date b { display: block; font-size: 14px; font-weight: 600; color: #333; letter-spacing: 0; }
.qs-date span { font-size: 11.5px; color: #999; }
.qs-main { flex: 1; min-width: 0; }
.qs-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.qs-name h3 { font-size: 14px; font-weight: 600; color: #333; }
.qs-tag {
  font-size: 12px; line-height: 1.4; color: #ff6a00;
  border: 0; border-radius: 0; padding: 0;
}
.qs-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #999; }
.qs-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.qs-status.ok { color: #1a9c68; }
.qs-status.draft { color: #d99a2b; }
.qs-status.trashed { color: #d9534f; }
.qs-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #999; margin-top: 4px; }
.qs-info { flex: none; display: flex; gap: 12px; font-size: 11.5px; color: #999; white-space: nowrap; padding-top: 2px; }
.qs-ops {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  border-top: 1px solid #f2f2f2; margin-top: 10px; padding: 5px 0;
}
.qs-ops .spacer { flex: 1; }
.qs-act {
  border: 0; background: transparent; font: inherit; font-size: 13px;
  color: #666; padding: 5px 7px; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; text-decoration: none;
}
.qs-act:hover { background: #f5f5f5; color: #333; }
.qs-act.primary { color: #2d6cdf; }
.qs-act.primary:hover { background: #eef3fe; }
.qs-act.warn { color: #ff8a00; }
.qs-act.warn:hover { background: #fff5e8; color: #ff8a00; }
.qs-act.danger { color: #d9534f; }
.qs-act.danger:hover { background: #fdeeed; }
.qs-act.star { font-size: 15px; color: #c3c7cd; }
.qs-act.star.on { color: #e8a838; }
.qs-act.pub, .qs-act.stop { color: #333; padding-left: 0; }
.qs-act.pub:hover, .qs-act.stop:hover { background: transparent; color: #1677ff; }
.pub-ico {
  width: 18px; height: 18px; border-radius: 50%; background: #333; color: #fff;
  display: grid; place-items: center; flex: none;
  font-size: 9px; font-style: normal; line-height: 1;
}
.qs-act.pub:hover .pub-ico, .qs-act.stop:hover .pub-ico { background: #1677ff; }
.prac-side-actions { display: flex; gap: 6px; margin-bottom: 8px; }
.prac-side-actions .prac-create { flex: 1; margin-bottom: 0; }
.prac-create-ghost {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border: 1px solid #2d6cdf; border-radius: 2px;
  background: #fff; color: #2d6cdf; font-size: 13px;
}
.prac-create-ghost:hover { background: #eef3fe; }
.prac-side-foot {
  display: flex; gap: 12px; margin-top: 8px; padding: 9px 10px 0;
  border-top: 1px solid #f0f0f0;
}
.prac-side-link {
  border: 0; background: transparent; padding: 2px 0;
  font-size: 12px; color: #999;
}
.prac-side-link:hover { color: #2d6cdf; }
.prac-create {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; border: 0; background: #2d6cdf; color: #fff;
  border-radius: 2px; padding: 9px 8px; margin-bottom: 8px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.prac-create:hover { background: #245bc0; }
.qs-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.qs-toolbar h2 { font-size: 15px; font-weight: 600; margin-right: 2px; }

/* 问卷星式练习列表：左侧分类 */
.prac-shell { display: grid; grid-template-columns: 196px 1fr; gap: 16px; align-items: start; }
.prac-side {
  background: #fff; border: 1px solid #ebebeb; border-radius: 2px;
  padding: 10px 8px; display: grid; gap: 1px; position: sticky; top: 84px;
}
.prac-side-item {
  display: flex; align-items: center; gap: 7px; width: 100%;
  border: 0; background: transparent; border-radius: 2px;
  padding: 8px 10px; font: inherit; font-size: 13px; color: #333;
  cursor: pointer; text-align: left; overflow: hidden;
}
.prac-side-item:hover { background: #f5f5f5; }
.prac-side-item.on { background: #ededed; color: #333; font-weight: 600; }
.prac-side-item b { margin-left: auto; font-size: 12px; font-weight: 400; color: #999; }
.prac-side-item.on b { color: #333; }
.prac-side-label { font-size: 12px; color: #999; padding: 10px 10px 3px; }

@media (max-width: 860px) {
  .prac-shell { grid-template-columns: 1fr; }
  .prac-side { position: static; display: flex; flex-wrap: wrap; }
  .prac-side-label { padding: 6px 8px; }
  .qs-top { flex-wrap: wrap; }
  .qs-info { width: 100%; padding-top: 4px; }
}

.date-chip {
  width: 46px; height: 46px; border-radius: 4px; flex: none;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, #f2f7ff, #e8f3ff); color: #0958d9;
  border: 1px solid #d4e8ff; line-height: 1;
}
.date-chip b { font-size: 16px; display: block; letter-spacing: -.5px; }
.date-chip span { font-size: 9.5px; letter-spacing: .06em; color: #1677ff; margin-top: 3px; display: block; }

/* ---------- 题干 / 解析富文本（支持粘贴图片） ---------- */
.rich-input {
  border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px;
  font-size: 14px; line-height: 1.75; background: #fff; outline: none;
  overflow-y: auto; max-height: 340px; word-break: break-word;
}
.rich-input:focus { border-color: #bcdcff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .1); }
.rich-input:empty::before { content: attr(data-ph); color: #9aa3af; pointer-events: none; }
.rich-img {
  display: block; max-width: 100%; height: auto;
  border-radius: 6px; margin: 6px 0; border: 1px solid #eef0f3;
}
.rich-input img { cursor: pointer; }
.rich-input img.is-selected { outline: 2px solid #2d6cdf; outline-offset: 2px; }
.rich-tools {
  position: fixed; z-index: 9999; display: flex; align-items: center; gap: 4px;
  background: #1f2329; color: #fff; border-radius: 6px; padding: 4px 6px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .28); font-size: 12px; user-select: none;
}
.rich-tools button {
  border: 0; background: rgba(255, 255, 255, .16); color: #fff; border-radius: 4px;
  padding: 3px 8px; font: inherit; line-height: 1.4; cursor: pointer;
}
.rich-tools button:hover { background: rgba(255, 255, 255, .3); }
.rich-tools button[data-rz="del"] { background: rgba(217, 83, 79, .9); }
.rich-tools span { min-width: 34px; text-align: center; opacity: .85; }

/* 题干 / 解析格式工具条 */
.rt-bar {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 3px 3px 0 0;
  background: #fafbfc; padding: 3px 4px;
}
.rt-bar + .rich-input { border-radius: 0 0 3px 3px; }
.rt-bar button {
  height: 26px; min-width: 26px; padding: 0; border: 0; background: transparent;
  border-radius: 3px; color: #4e5969; font-size: 13px; display: grid; place-items: center;
}
.rt-bar button:hover { background: var(--primary-soft); color: var(--primary); }
.rt-bar button.wide { width: auto; padding: 0 7px; font-size: 12px; }
.rt-bar .rt-sep { width: 1px; height: 15px; background: var(--line); margin: 0 4px; }

/* 选项录入：圆圈选正确答案 */
.opt-radios { display: grid; gap: 2px; }
.opt-radios .opt-editor-row { padding: 2px 0; }
.opt-radio {
  width: 16px; height: 16px; padding: 0; flex: none;
  border: 1px solid #c9cdd4; border-radius: 50%; background: #fff;
  display: grid; place-items: center;
}
.opt-radio.on { border-color: var(--primary); }
.opt-radio.on i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: block; }
.opt-editor-row input.opt-input {
  border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  padding: 5px 2px; background: transparent; font-size: 14px;
}
.opt-editor-row input.opt-input:focus { border-bottom-color: var(--primary); box-shadow: none; }
.opt-correct-tip { font-size: 12px; color: #fa8c16; }

/* ---------- 问卷星式题目编辑白纸 ---------- */
.modal.bq-sheet {
  max-width: 1000px; height: 90vh; max-height: 90vh;
  padding: 0; display: flex; flex-direction: column; overflow: hidden;
}
.modal.bq-sheet .modal-body { flex: 1; min-height: 0; display: flex; }
.bq-editor-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bq-editor-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 40px 26px 22px; }
.bq-qline { display: flex; gap: 10px; align-items: flex-start; }
.bq-qno { flex: none; min-width: 26px; padding-top: 5px; font-size: 15px; font-weight: 600; color: #1f2329; }
.bq-req { font-style: normal; color: #fa5151; margin-right: 1px; }
.bq-qmain { flex: 1; min-width: 0; }
.bq-stem { font-size: 15px; }
.bq-content-row { margin: 12px 0 0 48px; }
.bq-opt-block { margin: 14px 0 0 48px; }
.opt-radios { gap: 2px; }
.bq-opt-row { gap: 9px; min-height: 38px; }
.bq-opt-row input.opt-input {
  flex: 0 1 auto; width: auto; min-width: 56px; max-width: calc(100% - 120px);
  font-size: 15px; field-sizing: content;
}
.opt-radio { width: 17px; height: 17px; }
.opt-radio.is-box { border-radius: 2px; }
.opt-radio.is-box.on i { border-radius: 1px; }
.bq-opt-del {
  width: 22px; height: 22px; flex: none; padding: 0; border: 0; border-radius: 3px;
  background: transparent; color: #c9cdd4; display: grid; place-items: center; opacity: 0;
}
.bq-opt-row:hover .bq-opt-del { opacity: 1; }
.bq-opt-del:hover { background: #fdeeed; color: #d9534f; }
.bq-opt-static { font-size: 15px; color: #1f2329; }
.bq-opt-tools { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.bq-mini {
  display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 2px;
  background: #eef3fe; color: #2d6cdf; font-size: 12.5px; padding: 4px 8px;
}
.bq-mini:hover { background: #dfeafe; }
.bq-static-link { font-size: 12.5px; color: #86909c; }
.bq-batch { margin-top: 10px; }
.bq-meta-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 12px 0 0 48px; font-size: 12.5px; color: #4e5969;
}
.bq-score-label { display: inline-flex; align-items: center; gap: 6px; }
.bq-score-label input { width: 58px; height: 27px; padding: 2px 7px; font-size: 12.5px; }
.bq-link {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: transparent; padding: 2px 0;
  font-size: 12.5px; color: #2d6cdf;
}
.bq-link:hover { text-decoration: underline; }
.bq-analysis-box { display: none; margin: 12px 0 0 48px; padding: 12px 14px; background: #f7f8fa; border-radius: 3px; }
.bq-analysis-box.is-open { display: block; }
.bq-analysis-head { font-size: 13px; color: #1f2329; margin-bottom: 6px; }
.bq-analysis-box .rt-bar { background: #fff; border-color: #e5e6eb; }
.bq-analysis-input { background: #fff; min-height: 60px; max-height: 260px; font-size: 13px; }
.bq-paste { margin: 16px 0 0 48px; }
.bq-paste-box { margin-top: 8px; }
.bq-sheet-foot {
  flex: none; display: flex; align-items: center; gap: 16px;
  padding: 9px 20px; border-top: 1px solid #e5e6eb; background: #fff;
}
.bq-foot-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #4e5969; }
.bq-foot-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bq-foot-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #4e5969; }
.bq-foot-check input { width: 14px; height: 14px; margin: 0; accent-color: #1677ff; }
.bq-type-sel { width: auto; min-width: 96px; padding: 3px 22px 3px 8px; font-size: 12.5px; border-radius: 2px; }
.bq-type-static { font-size: 12.5px; color: #4e5969; }
.bq-foot-btn { border: 0; background: transparent; padding: 4px; font-size: 12.5px; color: #4e5969; }
.bq-foot-btn:hover { color: #1677ff; }
.bq-done {
  border: 0; border-radius: 2px; background: #1677ff; color: #fff;
  padding: 6px 18px; font-size: 13px; font-weight: 600;
}
.bq-done:hover { background: #4096ff; }

/* 内嵌录题：直接在建题页面上录入，不弹窗 */
.bq-inline-editor {
  margin: 14px 0 10px;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(22, 119, 255, .07);
}
.bq-inline-editor .bq-editor-wrap { display: block; }
.bq-inline-editor .bq-editor-scroll { overflow: visible; padding: 20px 22px 14px 10px; }
.bq-inline-editor .bq-sheet-foot { background: #fafbfc; border-top: 1px solid #e5e6eb; }

@media (max-width: 720px) {
  .modal.bq-sheet { height: 94vh; }
  .bq-editor-scroll { padding: 18px 14px 18px 10px; }
  .bq-inline-editor .bq-editor-scroll { padding: 16px 12px 10px 6px; }
  .bq-opt-block, .bq-meta-row, .bq-analysis-box, .bq-paste, .bq-content-row { margin-left: 40px; }
  .bq-sheet-foot { padding: 8px 10px; gap: 8px; }
  .bq-foot-right { gap: 10px; }
}

/* ---------- 文件上传 ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 30px 18px; border: 1.5px dashed #bcdcff; border-radius: 4px;
  background: #f9faff; text-align: center; cursor: pointer;
  transition: background .16s, border-color .16s;
}
.dropzone:hover, .dropzone.drag { background: var(--primary-soft); border-color: #4096ff; }
.dropzone .up-ico { width: 46px; height: 46px; border-radius: 4px; background: #d4e8ff; color: #1677ff; display: grid; place-items: center; margin-bottom: 3px; }
.dropzone b { font-size: 14px; }
.dropzone span { font-size: 12px; color: var(--muted); }
.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 12px; font-size: 11.5px; color: #94a3b8; letter-spacing: .06em;
}
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- 预览 ---------- */
.preview-box { margin-top: 18px; }
.preview-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.preview-head h3 { margin-right: 4px; }
.issue-list { margin-top: 12px; display: grid; gap: 6px; }
.issue {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px;
  background: var(--warn-soft); color: #92400e; border-radius: 3px; padding: 8px 11px; line-height: 1.5;
}
.issue b { flex: none; }

/* ---------- 表格 ---------- */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data th { background: #f8fafc; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; position: sticky; top: 0; z-index: 1; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #f8faff; }
table.data td.wrap { white-space: normal; min-width: 260px; }
table.data .num { font-variant-numeric: tabular-nums; }

/* ---------- 二维码 ---------- */
.qr-card { text-align: center; }
.qr-box {
  width: 200px; height: 200px; margin: 14px auto 12px;
  border-radius: 4px; background: #fff; padding: 12px;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.qr-box canvas, .qr-box img { max-width: 100%; height: auto !important; }
.qr-link {
  font-size: 11.5px; color: var(--muted); word-break: break-all; line-height: 1.6;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px;
  margin-bottom: 10px; text-align: left;
}
/* 扫码登录：分隔线 / 手机确认页账号卡 */
.auth-or {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 12px; font-size: 12px; color: var(--muted);
}
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.qr-account {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 13px; color: var(--ink-2); line-height: 1.5; text-align: left;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 3px; padding: 11px 13px;
}
.qr-account svg { flex: none; color: var(--primary); }
.qr-account b { color: var(--ink); word-break: break-all; }
.notice {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.65; padding: 11px 13px; border-radius: 3px;
  background: #fffbeb; color: #92400e; border: 1px solid #fde68a;
}
.notice.info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.notice.ok { background: var(--ok-soft); color: #047857; border-color: #a7f3d0; }
.notice b { flex: none; }

/* ---------- 题目列表（老师端） ---------- */
.q-bank { display: grid; gap: 9px; margin-top: 14px; }
.q-item {
  border: 1px solid var(--line); border-radius: 4px; padding: 13px 15px;
  display: flex; gap: 12px; align-items: flex-start; background: #fff;
}
.q-item .q-no {
  width: 24px; height: 24px; border-radius: 3px; background: #f1f5f9; color: #64748b;
  font-size: 11.5px; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 1px;
}
.q-item .q-info { flex: 1; min-width: 0; }
.q-item .q-title { font-size: 13.5px; line-height: 1.6; margin-bottom: 5px; }
.q-item .q-tags { display: flex; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); align-items: center; }
.q-item .q-tags .ans { color: #047857; background: var(--ok-soft); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.q-item .q-tags .pts { color: #b45309; background: var(--warn-soft); border-radius: 6px; padding: 1px 6px; }

/* ---------- 提交情况 ---------- */
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.acc-row:last-child { border-bottom: none; }
.acc-row .t { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-bar { height: 7px; border-radius: 999px; background: #eef2f7; overflow: hidden; margin-top: 5px; }
.acc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1677ff, #4096ff); }
.acc-row .pct { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fadeIn .18s ease;
}
.modal {
  position: relative; width: 100%; max-width: 700px; max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 4px; padding: 26px;
  box-shadow: var(--shadow-lg); animation: popIn .2s ease;
}
.modal h3 { font-size: 18px; margin-bottom: 4px; padding-right: 30px; }
.modal-x {
  position: absolute; top: 13px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: #f1f5f9; color: #64748b; font-size: 20px; line-height: 1;
  display: grid; place-items: center;
}
.modal-x:hover { background: #e2e8f0; color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 200;
  transform: translate(-50%, 20px);
  background: #0f172a; color: #fff; font-size: 13px; font-weight: 500;
  padding: 11px 18px; border-radius: 3px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #be123c; }
.toast.ok { background: #065f46; }

/* ---------- 学生端 ---------- */
.student-wrap { width: min(680px, 100%); margin: 0 auto; padding-bottom: 108px; min-height: 100vh; }
.s-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: #fff;
  border-bottom: 1px solid var(--line);
}
.s-top .s-logo { width: 28px; height: 28px; border-radius: 4px; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.s-top b { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-top span { font-size: 11px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-top #elapsed { display: inline; font-size: inherit; color: inherit; overflow: visible; }
.s-top .s-exit { flex: none; }
.s-top .s-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.s-progress { height: 4px; background: #e8ecf5; }
.s-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1677ff, #4096ff); transition: width .25s ease; }
.s-main { padding: 18px 16px 24px; }

.entry { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 26px 16px; }
.entry-card {
  width: 100%; max-width: 452px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08); overflow: hidden;
  border: 1px solid var(--line);
  animation: riseIn .3s ease;
}
.entry-banner {
  padding: 22px 22px 18px; color: #fff;
  background: var(--primary);
  position: relative; overflow: hidden;
}
.entry-banner::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -110px;
  background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%); border-radius: 50%;
}
.entry-banner .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .08em; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); padding: 4px 9px; border-radius: 999px; margin-bottom: 12px; }
.entry-banner h1 { font-size: 21px; line-height: 1.45; letter-spacing: -.3px; }
.entry-banner .meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.entry-body { padding: 24px 26px 26px; }
.entry-body .field + .field { margin-top: 14px; }
.entry-note { display: flex; gap: 8px; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 16px; }

.sheet-head { margin-bottom: 18px; }
.sheet-head h2 { font-size: 19px; letter-spacing: -.2px; }
.sheet-head p { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.6; }

.hist-list { display: grid; gap: 10px; margin: 16px 0; }
.hist-item {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: 4px; padding: 13px 15px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hist-item:hover { border-color: #bcdcff; background: #f8faff; }
.hist-score { width: 48px; height: 48px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; font-variant-numeric: tabular-nums; }
.hist-info { flex: 1; min-width: 0; }
.hist-info b { font-size: 13.5px; display: block; }
.hist-info span { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }
.hist-arrow { color: #94a3b8; flex: none; }

.q-card {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 18px 18px 14px; margin-bottom: 12px; scroll-margin-top: 86px;
  animation: riseIn .22s ease;
}
.q-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.q-idx { width: 26px; height: 26px; border-radius: 3px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 800; display: grid; place-items: center; flex: none; }
.q-type { font-size: 11.5px; color: var(--muted); background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.q-score { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.q-stem { font-size: 15.5px; line-height: 1.7; font-weight: 500; margin-bottom: 14px; white-space: pre-wrap; }
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 4px;
  padding: 11px 13px; transition: border-color .14s, background .14s, box-shadow .14s;
}
.opt:hover { border-color: #bcdcff; background: #f8faff; }
.opt.sel { border-color: #1677ff; background: var(--primary-soft); box-shadow: inset 0 0 0 1px #1677ff; }
.opt-key {
  width: 23px; height: 23px; border-radius: 50%; border: 1px solid #cbd5e1;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
  color: #64748b; flex: none; margin-top: 1px;
}
.opt.sel .opt-key { background: var(--primary); border-color: var(--primary); color: #fff; }
.opt-text { font-size: 14px; line-height: 1.6; }
.blank-input { margin-top: 2px; font-size: 15px; }
.q-blank-hint { font-size: 12px; color: var(--muted); margin-top: 7px; }

.s-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 50;
  width: min(680px, calc(100% - 24px));
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
}
.s-bar .count { font-size: 12.5px; color: var(--muted); padding-left: 6px; flex: none; }
.s-bar .count b { color: var(--primary); font-size: 15px; font-variant-numeric: tabular-nums; }
.s-bar .btn { flex: 1; touch-action: manipulation; }
.s-bar .btn.sheet { flex: none; }

/* 答题卡 */
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 9px; margin-top: 16px; }
.sheet-cell {
  height: 44px; border-radius: 3px; border: 1px solid var(--line); background: #fff;
  font-weight: 700; font-size: 13.5px; color: var(--ink-2);
  display: grid; place-items: center; transition: .14s;
}
.sheet-cell.done { background: var(--primary-soft); border-color: #bcdcff; color: var(--primary); }
.sheet-cell:hover { border-color: #4096ff; }
.sheet-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 16px; }
.sheet-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sheet-legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line); background: #fff; display: inline-block; }
.sheet-legend .on { background: var(--primary-soft); border-color: #bcdcff; }

/* 结果 */
.result-hero {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 24px; display: flex; align-items: center; gap: 22px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.score-ring {
  --size: 124px; --p: 0; --ring: #1677ff;
  width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), #e8ecf5 0);
  display: grid; place-items: center; position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.score-ring .val { position: relative; text-align: center; line-height: 1; }
.score-ring .val b { font-size: 33px; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; }
.score-ring .val span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.result-info { min-width: 0; }
.result-info h2 { font-size: 19px; margin-bottom: 6px; }
.result-info p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.result-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.result-tag { background: #f8fafc; border: 1px solid var(--line); border-radius: 3px; padding: 6px 10px; font-size: 12px; color: var(--ink-2); }
.result-tag b { color: var(--ink); }

.review-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px 17px; margin-bottom: 10px; }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-head .status { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.review-head .status.ok { background: var(--ok-soft); color: #047857; }
.review-head .status.bad { background: var(--danger-soft); color: var(--danger); }
.review-stem { font-size: 14px; line-height: 1.65; margin-bottom: 10px; white-space: pre-wrap; }
.ans-line { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.6; margin-top: 5px; flex-wrap: wrap; }
.ans-line .k { color: var(--muted); flex: none; width: 62px; }
.ans-line .v { color: var(--ink-2); font-weight: 600; }
.ans-line .v.ok { color: #047857; }
.ans-line .v.bad { color: var(--danger); }
.analysis {
  margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: #475569;
  background: #f8fafc; border-left: 3px solid #bcdcff; border-radius: 0 8px 8px 0; padding: 9px 12px;
}
.analysis b { color: var(--primary); }

/* 帮助页 */
.help-list { display: grid; gap: 12px; }
.help-step { display: flex; gap: 12px; }
.help-step .n { width: 26px; height: 26px; border-radius: 3px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 800; display: grid; place-items: center; flex: none; }
.help-step b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.help-step p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 14px; font-size: 13px; line-height: 1.65; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
code.inline { background: #f1f5f9; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 12px; font-family: ui-monospace, Consolas, monospace; }

/* 动画 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 11px 16px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 2px; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; padding: 8px 11px; font-size: 13px; }
  .container { padding: 18px 16px 60px; }
  .hero { padding: 26px 22px; border-radius: 4px; }
  .hero h1 { font-size: 23px; }
  .hero-art { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .prac-card { flex-wrap: wrap; }
  .prac-actions { justify-content: flex-start; width: 100%; }
  .page-head { align-items: flex-start; }
}
@media (max-width: 560px) {
  .stat-grid { gap: 10px; }
  .stat { padding: 14px; gap: 10px; }
  .stat b { font-size: 19px; }
  .stat .ico { width: 34px; height: 34px; border-radius: 3px; }
  .card { padding: 18px; border-radius: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .result-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .score-ring { --size: 108px; align-self: center; }
  .result-info { text-align: center; width: 100%; }
  .result-info .result-tags { justify-content: center; }
}

/* ---------- 建题工作台 ---------- */
body.builder-mode { background: #f4f6fb; }
.bld { min-height: 100vh; display: flex; flex-direction: column; }
.bld-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.bld-back {
  width: 38px; height: 38px; border-radius: 3px; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px; color: var(--muted);
  flex: none; background: #fff;
}
.bld-back:hover { color: var(--primary); border-color: #bcdcff; }
.bld-title { flex: 1; min-width: 0; }
.bld-title input { border: none; background: transparent; padding: 0; font-size: 16px; font-weight: 700; width: 100%; max-width: 520px; }
.bld-title input:focus { box-shadow: none; border-color: transparent; }
.bld-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.bld-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bld-saved {
  font-size: 11.5px; color: #059669; background: #ecfdf5;
  border: 1px solid #a7f3d0; border-radius: 999px; padding: 4px 9px;
}
.bld-body {
  flex: 1; display: grid; grid-template-columns: 264px minmax(0, 1fr);
  gap: 20px; max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 18px 22px 80px; align-items: start;
}
.bld-palette {
  position: sticky; top: 80px; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 10px; display: flex; flex-direction: column;
  gap: 8px; max-height: calc(100vh - 100px);
}
.pal-scroll { overflow: auto; display: grid; gap: 8px; min-height: 0; flex: 1; }
.pal-title { font-size: 11px; color: #94a3b8; font-weight: 700; letter-spacing: .08em; margin-bottom: 4px; }
.pal-item {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 4px 7px; border: 1px solid transparent; border-radius: 3px;
  background: #fff; text-align: left; transition: .14s;
}
.pal-item:hover { background: #f8faff; border-color: #bcdcff; }
.pal-item.is-on { background: #e8f3ff; border-color: #bcdcff; }
.pal-item.is-on b { color: var(--primary); }
.pal-glyph {
  width: 24px; height: 24px; border-radius: 3px; background: #e8f3ff;
  color: #0958d9; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; flex: none;
}
.pal-item:nth-child(3n) .pal-glyph { background: #ecfdf5; color: #047857; }
.pal-item:nth-child(3n+1) .pal-glyph { background: #fff7ed; color: #c2410c; }
.pal-text b { display: block; font-size: 12px; line-height: 1.25; }
.pal-text i { display: block; font-size: 10px; line-height: 1.2; color: var(--muted); font-style: normal; margin-top: 1px; }
.pal-batch {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-radius: 3px; background: linear-gradient(135deg, #1677ff, #0958d9);
  color: #fff; border: none; text-align: left;
  box-shadow: 0 8px 20px rgba(22, 119, 255, .28);
}
.pal-batch b { display: block; font-size: 13px; }
.pal-batch i { display: block; font-size: 10.5px; opacity: .8; font-style: normal; }
.pal-batch svg { flex: none; }

.bld-canvas { min-width: 0; }
.bld-canvas-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 14px; margin-bottom: 14px; flex-wrap: wrap;
}
.bld-canvas-head h1 { font-size: 20px; }
.bld-canvas-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.bld-list { display: grid; gap: 10px; }
.bq-card {
  display: flex; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 14px 16px; transition: .15s;
}
.bq-card:hover { border-color: #bcdcff; box-shadow: 0 8px 22px rgba(22, 119, 255, .06); }
.bq-order { display: flex; flex-direction: column; gap: 2px; }
.mini-btn {
  border: 1px solid var(--line); background: #fff; color: #94a3b8;
  width: 24px; height: 24px; border-radius: 6px; font-size: 11px;
  display: grid; place-items: center; padding: 0;
}
.mini-btn:hover:not(:disabled) { color: var(--primary); border-color: #bcdcff; background: #f8faff; }
.mini-btn:disabled { opacity: .35; cursor: not-allowed; }
.mini-btn.wide { width: auto; padding: 0 9px; font-size: 11.5px; height: 24px; }
.mini-btn.danger:hover { color: var(--danger); border-color: #fecdd3; background: #fff1f2; }
.bq-body { flex: 1; min-width: 0; }
.bq-head { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.bq-no {
  width: 24px; height: 24px; border-radius: 3px; background: #e8f3ff;
  color: #0958d9; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center; flex: none;
}
.bq-type { font-size: 11px; background: #f1f5f9; color: #475569; border-radius: 6px; padding: 2px 7px; font-weight: 600; }
.bq-type.is-block { background: #f0f9ff; color: #0369a1; }
.bq-score { font-size: 11px; color: #b45309; background: #fffbeb; border-radius: 6px; padding: 2px 6px; }
.bq-summary { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.bq-card.is-block { background: #fbfdff; border-style: dashed; }
.bq-pagebreak { border-top: 2px dashed #bcdcff; margin: 6px 0; text-align: center; }
.bq-pagebreak span { position: relative; top: -9px; background: #fff; color: #1677ff; font-size: 11px; padding: 0 10px; }
.bld-add-row {
  width: 100%; margin-top: 12px; padding: 14px; border: 1.5px dashed #bcdcff;
  border-radius: 4px; background: #f9faff; color: #1677ff;
  font-weight: 600; font-size: 13px; display: flex; align-items: center;
  justify-content: center; gap: 7px;
}
.bld-add-row:hover { background: #e8f3ff; }
.bld-blank {
  background: #fff; border: 1px dashed #bcdcff; border-radius: 4px;
  padding: 42px 20px; text-align: center; display: flex; flex-direction: column;
  gap: 8px; align-items: center; color: var(--muted);
}
.bld-blank-art { width: 56px; height: 56px; border-radius: 4px; background: #e8f3ff; color: #1677ff; display: grid; place-items: center; }
.bld-blank b { color: var(--ink); font-size: 15px; }
.bld-blank p { font-size: 12.5px; line-height: 1.7; max-width: 420px; }
.bld-empty { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }

.batch-summary { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.batch-list { display: grid; gap: 7px; margin-top: 10px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 3px; padding: 8px; }
.batch-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.batch-no { width: 20px; color: #94a3b8; text-align: right; flex: none; }
.batch-stem { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-ans { color: #047857; font-size: 11px; flex: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 学生端新增作答控件 ---------- */
.page-indicator { font-size: 12px; color: var(--muted); margin-bottom: 10px; text-align: center; }
.page-indicator b { color: var(--primary); }
.block-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; margin-bottom: 12px; }
.block-card.block-notice { background: #fffbeb; border-color: #fde68a; }
.block-card .block-title { font-size: 12px; font-weight: 800; color: #92400e; letter-spacing: .06em; margin-bottom: 6px; }
.block-card.paragraph { background: #f8faff; }
.block-card summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); }
.block-content { font-size: 13px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; margin-top: 8px; }
.block-pagebreak { border-top: 2px dashed #bcdcff; margin: 16px 0; text-align: center; }
.block-pagebreak span { position: relative; top: -9px; background: #f8fafc; padding: 0 12px; font-size: 11px; color: #94a3b8; }
.blank-list { display: grid; gap: 8px; }
.blank-row { display: flex; align-items: center; gap: 9px; }
.blank-no {
  width: 24px; height: 24px; border-radius: 3px; background: #e8f3ff;
  color: #0958d9; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center; flex: none;
}
.blank-row input { flex: 1; }
.blank-pts { font-size: 11px; color: var(--muted); flex: none; width: 42px; text-align: right; }
.text-answer { width: 100%; min-height: 110px; }
.code-answer { font-family: Consolas, Menlo, monospace; font-size: 13px; background: #0f172a; color: #e2e8f0; border-color: #1e293b; }
.code-answer:focus { box-shadow: 0 0 0 4px rgba(30, 41, 59, .2); }
.sub-block { margin-bottom: 12px; }
.sub-prompt { font-size: 13.5px; line-height: 1.6; margin-bottom: 6px; color: var(--ink-2); }
.sub-answer { min-height: 80px; }
.cloze-mark { color: #1677ff; font-weight: 700; background: #e8f3ff; border-radius: 4px; padding: 0 3px; }
.file-zone { display: grid; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; background: #f8fafc; font-size: 12.5px; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-size { color: var(--muted); font-size: 11px; flex: none; }
.file-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1.5px dashed #bcdcff; border-radius: 3px; padding: 14px;
  background: #f9faff; color: #1677ff; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.file-add:hover { background: #e8f3ff; }
.draw-box { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.draw-box canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.draw-tools { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: #f8fafc; }
.draw-tools span { flex: 1; font-size: 11.5px; color: var(--muted); }
.draw-preview img { max-width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; display: block; margin-bottom: 8px; }

/* ---------- 我的全部记录 ---------- */
.my-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.my-stat {
  flex: 1; min-width: 92px; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 10px 12px; font-size: 11.5px; color: var(--muted);
}
.my-stat b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 2px; }
.my-list { display: grid; gap: 9px; }
.my-filter {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 9px 12px; margin-bottom: 11px; color: var(--muted);
}
.my-filter select {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font: inherit; font-size: 13px; color: var(--ink); outline: none; padding: 2px 0;
}
.my-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 11px 13px; text-align: left; font: inherit; color: inherit;
  transition: .15s;
}
.my-item:hover { border-color: #bcdcff; box-shadow: 0 8px 22px rgba(22, 119, 255, .07); }
.my-info { flex: 1; min-width: 0; }
.my-info b {
  display: block; font-size: 13.5px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.my-info span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.my-score { flex: none; text-align: right; min-width: 66px; }
.my-score b { font-size: 20px; color: #1677ff; }
.my-score > span { font-size: 11px; color: var(--muted); }
.my-score i { display: block; font-size: 10px; color: #059669; font-style: normal; margin-top: 2px; }
.my-arrow { flex: none; color: #cbd5e1; display: flex; }
.my-item:hover .my-arrow { color: var(--primary); }

/* 记录 / 错题本标签页 */
.my-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.my-tab {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: .15s;
}
.my-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.my-tab i { font-style: normal; font-size: 11px; opacity: .85; margin-left: 3px; }
.my-cloud {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px;
}
.wb-group {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 13px 15px; margin-bottom: 11px;
}
.wb-group-head { display: flex; align-items: center; gap: 11px; }
.wb-group-head b { display: block; font-size: 13.5px; }
.wb-group-head span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.wb-q { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.wb-pts { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--danger); }

/* ---------- 批改 ---------- */
.review-head .status.pending { background: #fffbeb; color: #b45309; }
.review-head .status.part { background: #e8f3ff; color: #0958d9; }
.review-opts { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 8px; white-space: pre-wrap; }
.ans-img { max-width: 100%; max-height: 260px; border: 1px solid var(--line); border-radius: 3px; display: block; }
.ans-file { display: inline-block; background: #e8f3ff; color: #0958d9; border-radius: 3px; padding: 3px 8px; font-size: 12px; margin: 2px 4px 2px 0; text-decoration: none; }
.ans-text { white-space: pre-wrap; font-size: 12.5px; line-height: 1.7; }
.grade-line {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 9px 11px; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 3px; font-size: 12.5px; color: #92400e;
}
.grade-line input { width: 76px; padding: 6px 8px; border-radius: 3px; background: #fff; }

@media (max-width: 960px) {
  .bld-body { grid-template-columns: 1fr; padding: 14px 14px 70px; }
  .bld-palette { position: static; max-height: none; }
  .pal-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pal-group { min-width: 0; }
  .bld-actions .bld-saved { display: none; }
}
@media (max-width: 560px) {
  .bld-top { padding: 10px 12px; gap: 8px; }
  .bld-actions { gap: 5px; }
  .bld-actions .btn { padding: 7px 9px; font-size: 12px; }
  .pal-scroll { grid-template-columns: 1fr 1fr; }
}

@media print {
  body { background: #fff; }
  .topbar, .s-bar, .btn, .hero-actions, .sheet-head .btn, .bld-top, .bld-palette, .bld-add-row,
  .adm-top, .adm-side, .adm-float { display: none !important; }
  .container, .s-main, .bld-body, .bld-canvas { max-width: 100%; padding: 0; }
  .card, .review-card, .result-hero, .bq-card { box-shadow: none; border-color: #ddd; }
  .bld-body { display: block; }
  .adm, .adm-body, .adm-canvas { height: auto; overflow: visible; background: #fff; }
  .adm-paper { border: 0; box-shadow: none; max-width: 100%; padding: 0; }
}

/* =========================================================
   后台通用布局（成绩后台 / 建题工作台）
   ========================================================= */
body.adm-mode { background: #f1f2f5; }
.adm { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.adm-top {
  flex: none; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  min-height: 56px; padding: 8px 16px;
  background: #fff; color: #1d2129; border-bottom: 1px solid #e5e6eb;
}
.adm-logo {
  width: 26px; height: 26px; border-radius: 3px; background: #1677ff; color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none;
}
.adm-top-info { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #4e5969; }
.adm-top-info b { color: #1d2129; font-size: 13.5px; }
.adm-sep { width: 1px; height: 12px; background: #e5e6eb; }
.adm-tools { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.adm-tool {
  border: 0; background: transparent; color: #4e5969; font-size: 12.5px;
  padding: 6px 10px; border-radius: 6px; transition: .15s;
}
.adm-tool:hover { background: #f2f3f5; color: #1677ff; }
.adm-spacer { flex: 1; }
.adm-ghost, .adm-done {
  flex: none; height: 32px; padding: 0 16px; border-radius: 6px; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.adm-ghost { border: 1px solid #e5e6eb; color: #4e5969; background: #fff; }
.adm-ghost:hover { border-color: #1677ff; color: #1677ff; }
.adm-done { border: 0; background: #1677ff; color: #fff; }
.adm-done:hover { background: #4096ff; }

.adm-body { flex: 1; min-height: 0; display: flex; }
.adm-side {
  flex: none; width: 226px; background: #f7f8fa; border-right: 1px solid #e5e7eb;
  display: flex; flex-direction: column; min-height: 0;
}
.adm-side-title { padding: 14px 16px 8px; font-size: 12px; color: #86909c; }
.adm-side-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 8px 8px; display: grid; gap: 4px; align-content: start; }
.adm-side-item {
  display: flex; gap: 9px; align-items: flex-start; text-align: left;
  border: 0; background: transparent; border-radius: 3px; padding: 9px 10px;
  font: inherit; color: #1d2129;
}
.adm-side-item:hover { background: #eef0f3; }
.adm-side-item.is-on { background: #e8f1ff; color: #1677ff; }
.adm-side-glyph {
  width: 20px; height: 20px; border-radius: 5px; background: #e5e7eb; color: #4e5969;
  display: grid; place-items: center; font-size: 11px; flex: none; margin-top: 1px;
}
.adm-side-item.is-on .adm-side-glyph { background: #1677ff; color: #fff; }
.adm-side-txt { min-width: 0; }
.adm-side-txt b { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-side-txt i { display: block; font-size: 10.5px; color: #86909c; font-style: normal; margin-top: 3px; }
.adm-side-cloud {
  flex: none; display: flex; align-items: center; gap: 7px;
  border: 0; border-top: 1px solid #e5e7eb; background: #fff; padding: 11px 14px;
  font-size: 11.5px; color: #4e5969; text-align: left;
}
.adm-side-cloud:hover { background: #f2f3f5; }

.adm-canvas { flex: 1; min-width: 0; overflow: auto; padding: 18px 20px 60px; background: #f1f2f5; }
.adm-paper {
  max-width: 1080px; margin: 0 auto; background: #fff; min-height: 100%;
  border: 1px solid #e5e7eb; border-radius: 4px; padding: 22px 26px 40px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.adm-paper-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f0f1f3; }
.adm-paper-head h1 { font-size: 19px; font-weight: 700; }
.adm-paper-head p { font-size: 12px; color: #86909c; margin-top: 5px; }
.adm-page-tag { margin-left: auto; font-size: 11.5px; color: #1677ff; background: #e8f1ff; border-radius: 4px; padding: 3px 8px; flex: none; }
.adm-stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 18px; }
.adm-stat { background: #f7f8fa; border-radius: 6px; padding: 12px 14px; }
.adm-stat b { display: block; font-size: 20px; color: #1d2129; }
.adm-stat span { display: block; font-size: 11.5px; color: #86909c; margin-top: 3px; }
.adm-table-wrap { overflow: auto; border: 1px solid #f0f1f3; border-radius: 6px; }
.adm-sub-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.adm-sub-tools input {
  flex: 0 0 220px; height: 34px; padding: 0 12px;
  border: 1px solid #e6eaf2; border-radius: 3px; background: #fff;
  font-size: 13px; outline: none;
}
.adm-sub-tools input:focus { border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .1); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.adm-table th {
  background: #fafbfc; color: #86909c; font-weight: 500; text-align: left;
  padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid #f0f1f3;
}
.adm-table td { padding: 11px 12px; border-bottom: 1px solid #f6f7f8; vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: #fafcff; }
.adm-rank { width: 54px; font-weight: 700; color: #86909c; }
.adm-rank.r1 { color: #f5222d; }
.adm-rank.r2 { color: #fa8c16; }
.adm-rank.r3 { color: #d48806; }
.adm-score { font-size: 16px; color: #1677ff; }
.adm-total { font-size: 11px; color: #86909c; margin-left: 3px; }
.adm-pending { font-size: 10.5px; color: #d46b08; margin-top: 2px; }
.adm-link { border: 0; background: transparent; color: #1677ff; font-size: 12.5px; padding: 2px 4px; border-radius: 4px; }
.adm-link:hover { background: #e8f1ff; }
.adm-table-empty { padding: 40px 12px; text-align: center; color: #86909c; font-size: 12.5px; }
.adm-sub-head { font-size: 13.5px; font-weight: 600; margin: 22px 0 10px; padding-left: 8px; border-left: 3px solid #1677ff; }
.adm-acc { display: grid; grid-template-columns: minmax(0, 1fr) 160px 64px; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px dashed #f0f1f3; }
.adm-acc-q { font-size: 12.5px; color: #1d2129; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-acc-bar { height: 6px; background: #f0f2f5; border-radius: 99px; overflow: hidden; }
.adm-acc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1677ff, #69b1ff); border-radius: 99px; }
.adm-acc-v { font-size: 12px; color: #4e5969; text-align: right; }
.adm-acc-v span { display: block; font-size: 10.5px; color: #a9aeb8; }
.adm-note { margin-top: 22px; font-size: 11.5px; color: #86909c; background: #f7f8fa; border-radius: 6px; padding: 10px 12px; line-height: 1.7; }

/* ---------- 成绩页签（问卷星式） ---------- */
.data-tabs {
  flex: none; display: flex; align-items: center; gap: 26px;
  padding: 0 20px; background: #fff; border-bottom: 1px solid #e5e6eb;
  overflow-x: auto;
}
.data-tab {
  border: 0; background: transparent; padding: 12px 0 10px; flex: none;
  font-size: 13px; color: #4e5969; display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.data-tab:hover { color: #1677ff; }
.data-tab.is-on { color: #1677ff; font-weight: 600; border-bottom-color: #1677ff; }

/* ---------- 成绩总览（蓝色头图 + 人员筛选） ---------- */
.ov-hero {
  position: relative; margin: 16px 0 0; padding: 26px 20px 44px;
  border-radius: 6px; color: #fff; overflow: visible;
  background: linear-gradient(135deg, #1a73ff 0%, #3d8bff 55%, #5aa2ff 100%);
}
.ov-date { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 1.5px; }
.ov-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 12.5px; }
.ov-people { display: flex; align-items: center; gap: 8px; position: relative; }
.ov-pick {
  border: 0; background: rgba(255, 255, 255, .16); color: #fff;
  border-radius: 3px; padding: 5px 10px; font-size: 12.5px; max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ov-pick:hover { background: rgba(255, 255, 255, .28); }
.ov-pick-menu {
  position: absolute; top: 32px; left: 34px; z-index: 30; width: 220px;
  background: #fff; border-radius: 6px; box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  padding: 8px; color: #1d2129;
}
.ov-pick-menu[hidden] { display: none; }
.ov-pick-menu input {
  width: 100%; height: 30px; border: 1px solid #e5e6eb; border-radius: 3px;
  padding: 0 8px; font-size: 12.5px; margin-bottom: 6px; outline: none;
}
.ov-pick-menu input:focus { border-color: #1677ff; }
.ov-pick-list { max-height: 240px; overflow: auto; display: grid; gap: 2px; }
.ov-pick-list button {
  display: flex; justify-content: space-between; gap: 10px;
  border: 0; background: transparent; text-align: left;
  padding: 7px 8px; border-radius: 3px; font-size: 12.5px; color: #1d2129;
}
.ov-pick-list button:hover { background: #f2f7ff; color: #1677ff; }
.ov-pick-list button.is-on { background: #e8f1ff; color: #1677ff; font-weight: 600; }
.ov-pick-list i { font-style: normal; color: #86909c; }
.ov-total { opacity: .88; }
.ov-chip {
  position: absolute; left: 14px; bottom: -13px;
  background: #1677ff; color: #fff; border-radius: 3px; padding: 5px 12px;
  font-size: 12px; box-shadow: 0 4px 10px rgba(22, 119, 255, .35);
}
.ov-table-wrap {
  position: relative; margin: -26px 10px 0; background: #fff; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .08); overflow: hidden;
}
.ov-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ov-table th {
  background: #fff; color: #86909c; font-weight: 500; text-align: left;
  padding: 13px 18px; border-bottom: 1px solid #f0f1f3; white-space: nowrap;
}
.ov-table th.ov-sort { color: #4e5969; }
.ov-table td { padding: 12px 18px; border-bottom: 1px solid #f6f7f8; vertical-align: middle; }
.ov-table tr:last-child td { border-bottom: 0; }
.ov-table tbody tr:hover { background: #f7fbff; }
.ov-name { border: 0; background: transparent; color: #1677ff; font-size: 12.5px; font-weight: 500; padding: 0; }
.ov-name:hover { text-decoration: underline; }
.ov-sid { margin-left: 6px; font-size: 10.5px; color: #a9aeb8; }
.ov-sheet { border: 0; background: transparent; color: #1677ff; font-size: 12.5px; padding: 0; }
.ov-sheet:hover { text-decoration: underline; }

/* ---------- 答题来源分析 ---------- */
.src-panel { margin-top: 14px; }
.src-tabs { display: flex; gap: 28px; border-bottom: 1px solid #f0f1f3; }
.src-tab {
  border: 0; background: transparent; padding: 8px 2px 12px; margin-bottom: -1px;
  font-size: 13px; color: #4e5969; border-bottom: 2px solid transparent;
}
.src-tab:hover { color: #1677ff; }
.src-tab.is-on { color: #1d2129; font-weight: 600; border-bottom-color: #1677ff; }

.src-card { background: #fff; padding: 18px 4px 6px; }
.src-table { width: 100%; border-collapse: collapse; font-size: 12.5px; border: 1px solid #e5e6eb; }
.src-table th {
  background: #fafbfc; color: #4e5969; font-weight: 500; text-align: left;
  padding: 9px 12px; border: 1px solid #e5e6eb; white-space: nowrap;
}
.src-table td { padding: 9px 12px; border: 1px solid #e5e6eb; vertical-align: middle; }
.src-icon { color: #1677ff; display: inline-flex; }
.src-icon-btn { border: 0; background: transparent; color: #1677ff; padding: 0; display: inline-flex; }
.src-icon-btn:hover { color: #0958d9; }

.src-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 4px; font-size: 12.5px; color: #4e5969; flex-wrap: wrap; }
.src-more { border: 0; background: transparent; color: #1677ff; font-size: 12.5px; padding: 0; }
.src-more:hover { text-decoration: underline; }

.src-switch { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 0; flex-wrap: wrap; }
.src-type {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #e5e6eb; background: #fff; color: #4e5969;
  border-radius: 3px; padding: 4px 10px; font-size: 12px;
}
.src-type:hover { border-color: #1677ff; color: #1677ff; }
.src-type.is-on { border-color: #1677ff; color: #1677ff; background: #f2f7ff; }

.src-chart {
  border: 1px solid #f0f1f3; border-radius: 4px; padding: 20px;
  min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.src-figure { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.src-legend { display: grid; gap: 8px; font-size: 12.5px; color: #4e5969; }
.src-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.src-empty { color: #86909c; font-size: 12.5px; }

.src-bars { width: 100%; display: grid; gap: 14px; align-content: center; }
.src-bar-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 60px; gap: 10px; align-items: center; font-size: 12px; }
.src-bar-label { color: #4e5969; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-bar-track { height: 14px; background: #f2f3f5; border-radius: 2px; overflow: hidden; }
.src-bar-track i { display: block; height: 100%; border-radius: 2px; }

.src-cols { display: flex; align-items: flex-end; justify-content: center; gap: 16px; width: 100%; height: 260px; padding: 0 8px; }
.src-col { flex: 1; max-width: 72px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.src-col b { font-size: 10.5px; color: #86909c; font-weight: 500; }
.src-col i { width: 100%; border-radius: 2px 2px 0 0; min-height: 2px; }
.src-col span { font-size: 10.5px; color: #86909c; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.src-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.src-zoom { display: flex; align-items: center; justify-content: center; padding: 12px 0; }

/* ---------- 下载成绩表格 ---------- */
.dl-panel { margin-top: 14px; }
.dl-daytabs { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #f0f1f3; flex-wrap: wrap; }
.dl-daytab {
  border: 1px solid #e5e6eb; background: #fff; color: #4e5969;
  border-radius: 3px; padding: 5px 14px; font-size: 12.5px; line-height: 1.5;
}
.dl-daytab:hover { border-color: #1677ff; color: #1677ff; }
.dl-daytab.is-on { background: #1677ff; border-color: #1677ff; color: #fff; }
.dl-count { margin-left: auto; font-size: 12px; color: #86909c; }

.dl-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 0; flex-wrap: wrap; }
.dl-tool { border: 0; background: transparent; color: #4e5969; font-size: 12.5px; padding: 6px 8px; border-radius: 4px; }
.dl-tool:hover { background: #f2f3f5; color: #1677ff; }
.dl-spacer { flex: 1; }
.dl-link { border: 0; background: transparent; color: #1677ff; font-size: 12.5px; padding: 6px 8px; }
.dl-link.danger { color: #f53f3f; }
.dl-link:hover { text-decoration: underline; }
.dl-export {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: #1677ff; color: #fff; font-size: 12.5px;
  padding: 7px 14px; border-radius: 3px;
}
.dl-export:hover { background: #4096ff; }
.dl-export-wrap { position: relative; display: inline-flex; }
.dl-export-menu {
  position: absolute; right: 0; top: 36px; z-index: 40; min-width: 200px;
  background: #fff; border-radius: 6px; padding: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}
.dl-export-menu[hidden] { display: none; }
.dl-export-menu button {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; color: #1d2129;
  font-size: 12.5px; padding: 8px 10px; border-radius: 4px; white-space: nowrap;
}
.dl-export-menu button:hover { background: #f2f7ff; color: #1677ff; }

.dl-table-wrap { overflow: auto; }
.dl-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dl-table th {
  background: #fafbfc; color: #4e5969; font-weight: 500; text-align: left;
  padding: 10px 12px; white-space: nowrap; border-top: 1px solid #f0f1f3; border-bottom: 1px solid #f0f1f3;
}
.dl-table td { padding: 11px 12px; border-bottom: 1px solid #f6f7f8; vertical-align: middle; }
.dl-table tbody tr:hover { background: #fafcff; }
.dl-table .num { font-variant-numeric: tabular-nums; }
.dl-sub { font-size: 10.5px; color: #86909c; margin-top: 2px; }
.dl-check { width: 40px; text-align: center; }
.dl-check input { width: 14px; height: 14px; accent-color: #1677ff; }
.dl-ops { white-space: nowrap; }
.dl-ops .adm-link.danger { color: #f53f3f; }
.dl-ops .adm-link.danger:hover { background: #ffece8; }
.dl-empty { padding: 60px 12px; text-align: center; color: #86909c; }

.dl-foot { display: flex; align-items: center; gap: 14px; padding: 14px 2px; }
.dl-total { font-size: 12px; color: #86909c; }
.dl-pager { margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.dl-pager button {
  width: 28px; height: 28px; border: 1px solid #e5e6eb; background: #fff; border-radius: 3px;
  color: #4e5969; font-size: 14px; line-height: 1;
}
.dl-pager button:hover:not(:disabled) { border-color: #1677ff; color: #1677ff; }
.dl-pager button:disabled { color: #c9cdd4; cursor: not-allowed; }
.dl-pager span { font-size: 12.5px; color: #4e5969; }
.dl-per { font-size: 12px; color: #86909c; }

.dl-bottom { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fafbfc; border-top: 1px solid #f0f1f3; border-radius: 0 0 4px 4px; flex-wrap: wrap; }
.dl-btn { border-radius: 3px; font-size: 12.5px; padding: 7px 14px; border: 1px solid transparent; background: #fff; }
.dl-btn.soft { border-color: #e5e6eb; color: #4e5969; }
.dl-btn.soft:hover { border-color: #f53f3f; color: #f53f3f; }
.dl-btn.ghost { border-color: #e5e6eb; color: #4e5969; }
.dl-btn.ghost:hover { border-color: #1677ff; color: #1677ff; }

.adm-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 120px 20px; color: #86909c; font-size: 13px; }

.adm-float {
  position: fixed; right: 14px; top: 96px; z-index: 20;
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 3px; padding: 5px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}
.adm-float button {
  width: 34px; height: 34px; border: 0; background: transparent; border-radius: 6px;
  color: #4e5969; display: grid; place-items: center;
}
.adm-float button:hover { background: #f2f3f5; color: #1677ff; }
.adm-float [data-float="top"] svg { transform: rotate(-90deg); }

/* ---------- 云端状态 ---------- */
.cloud-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: #4e5969; background: #f7f8fa;
  border-radius: 3px; padding: 10px 12px; margin-bottom: 14px;
}
.cloud-line.ok { background: #ecfdf5; color: #047857; }
.cloud-line.fail { background: #fff1f2; color: #be123c; }
.cloud-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; flex: none; }
.cloud-dot.ok { background: #059669; }
.cloud-dot.fail { background: #e11d48; }
.cloud-dot.sending { background: #f59e0b; animation: cloudPulse 1s infinite; }
.cloud-dot.off { background: #cbd5e1; }
@keyframes cloudPulse { 50% { opacity: .35; } }
.cloud-state {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  background: #f7f8fa; border-radius: 3px; padding: 10px 12px; margin: 14px 0 18px; color: #4e5969;
}
.cloud-state.ok { background: #ecfdf5; color: #047857; }
.cloud-help { margin-top: 14px; font-size: 12px; color: #4e5969; }
.cloud-help summary { cursor: pointer; color: #1677ff; margin-bottom: 8px; }
.cloud-help ol { margin: 6px 0; padding-left: 20px; line-height: 1.9; }
.cloud-sql {
  background: #0f172a; color: #e2e8f0; font-size: 11px; line-height: 1.6;
  border-radius: 3px; padding: 12px; max-height: 220px; overflow: auto; white-space: pre; margin: 8px 0;
}

@media (max-width: 960px) {
  .adm-side { width: 186px; }
  .adm-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-acc { grid-template-columns: minmax(0, 1fr) 110px 58px; }
}
@media (max-width: 760px) {
  .adm-top { gap: 8px; }
  .adm-tool { padding: 5px 7px; }
  .adm-side { display: none; }
  .adm-float { display: none; }
  .adm-paper { padding: 16px 14px 30px; }
}
@media (max-width: 560px) {
  .adm-top-info { display: none; }
  .adm-canvas { padding: 12px 10px 40px; }
}

/* =========================================================
   建题工作台（截图样式：深色顶栏 / 左侧题型树 / 试卷纸张）
   ========================================================= */
.adm-back {
  width: 28px; height: 28px; border-radius: 6px; flex: none;
  display: grid; place-items: center; color: #4e5969; background: #f2f3f5;
}
.adm-back svg { transform: rotate(180deg); }
.adm-back:hover { color: #1677ff; background: #e8f1ff; }
.adm-title-wrap { flex: 1; min-width: 140px; }
.adm-title-wrap input {
  width: 100%; max-width: 360px; background: transparent; border: 0; color: #1d2129;
  font-size: 13.5px; font-weight: 600; padding: 4px 6px; border-radius: 4px;
}
.adm-title-wrap input:hover { background: #f2f3f5; }
.adm-title-wrap input:focus { background: #f2f3f5; outline: 1px solid #1677ff; box-shadow: none; }
.adm-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid #e5e7eb; background: #fff; }
.adm-tab {
  border: 0; background: transparent; font-size: 12.5px; color: #4e5969;
  padding: 8px 14px; border-radius: 6px 6px 0 0; border-bottom: 2px solid transparent;
}
.adm-tab:hover { color: #1677ff; }
.adm-tab.is-on { color: #1677ff; font-weight: 600; border-bottom-color: #1677ff; background: #f7f8fa; }

.bld-side { width: 246px; }
.bld-side .adm-side-scroll { padding: 10px 8px; display: block; }
.bld-side .pal-group { display: block; margin-bottom: 10px; }
.pal-title {
  display: flex; align-items: center; gap: 6px; width: 100%;
  border: 0; background: transparent; font-size: 12px; font-weight: 600;
  color: #1d2129; padding: 4px 4px 7px; text-align: left;
}
.pal-caret { font-size: 10px; color: #86909c; transition: .15s; }
.pal-group.is-collapsed .pal-caret { transform: rotate(-90deg); }
.pal-group.is-collapsed .pal-grid { display: none; }
.pal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pal-item {
  display: flex; align-items: center; gap: 6px; padding: 7px 6px; border-radius: 6px;
  border: 0; background: transparent; text-align: left; font: inherit; color: #1d2129;
  min-width: 0;
}
.pal-item:hover { background: #e8f1ff; border-color: transparent; }
.pal-item.is-on { background: #e8f1ff; border-color: transparent; }
.pal-glyph {
  min-width: 18px; height: 18px; padding: 0 3px; border-radius: 4px;
  background: #e5e7eb; color: #4e5969; display: grid; place-items: center;
  font-size: 9.5px; flex: none; font-weight: 600; line-height: 1; white-space: nowrap;
}
.pal-item:hover .pal-glyph { background: #1677ff; color: #fff; }
.pal-text { min-width: 0; }
.pal-text b {
  display: block; font-size: 11px; font-weight: 400; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pal-text i { display: none; }

.pal-outline { display: grid; gap: 2px; }
.pal-outline-item {
  display: flex; gap: 8px; align-items: center; border: 0; background: transparent;
  text-align: left; padding: 7px 6px; border-radius: 6px; font: inherit; color: #1d2129; min-width: 0;
}
.pal-outline-item:hover { background: #e8f1ff; }
.pal-outline-item span { flex: none; width: 24px; font-size: 10.5px; color: #86909c; text-align: right; }
.pal-outline-item b { font-size: 11.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-bank { display: grid; gap: 6px; }
.pal-bank-btn { text-align: left; border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; padding: 10px 11px; font: inherit; }
.pal-bank-btn:hover { border-color: #1677ff; }
.pal-bank-btn b { display: block; font-size: 12.5px; }
.pal-bank-btn i { display: block; font-size: 10.5px; color: #86909c; font-style: normal; margin-top: 2px; }
.pal-empty { font-size: 11.5px; color: #86909c; padding: 12px 6px; }

.adm-batch {
  flex: none; margin: 8px; height: 34px; border: 1px dashed #c9cdd4; background: #fff;
  border-radius: 6px; color: #4e5969; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.adm-batch:hover { border-color: #1677ff; color: #1677ff; }

.bld-paper { position: relative; }
.bld-page-head {
  text-align: center; font-size: 12px; color: #86909c;
  padding: 2px 0 12px; border-bottom: 1px solid #f0f1f3; margin-bottom: 14px;
}
.bld-pagebreak { text-align: center; padding: 16px 0; border-top: 1px dashed #d9dde3; color: #86909c; font-size: 12px; }

.bld-list { display: block; }
.bld-list .bq-card {
  position: relative; display: block; border: 0; border-bottom: 1px solid #f0f1f3;
  border-radius: 0; background: transparent; padding: 18px 8px 16px 34px; margin: 0;
}
.bld-list .bq-card:hover { background: #fafcff; box-shadow: none; border-color: #f0f1f3; }
.bld-list .bq-card.is-block { background: #fafbfc; border-style: solid; }
.bq-tools { position: absolute; right: 6px; top: 12px; display: flex; gap: 4px; opacity: 0; transition: .15s; z-index: 2; }
.bq-card:hover .bq-tools { opacity: 1; }
.bq-tools .mini-btn { background: #fff; border: 1px solid #e5e7eb; }
.bq-line { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.bld-list .bq-no {
  position: absolute; left: 6px; top: 17px;
  width: auto; height: auto; background: transparent; border-radius: 0;
  color: #f5222d; font-weight: 700; font-size: 14px; display: block;
}
.bq-type { font-size: 11px; color: #86909c; background: #f2f3f5; border-radius: 3px; padding: 1px 6px; }
.bq-score { font-size: 11.5px; color: #fa8c16; }
.bld-list .bq-stem { font-size: 14.5px; line-height: 1.9; color: #1d2129; white-space: pre-wrap; }
.bq-opts { margin-top: 10px; display: grid; gap: 1px; }
.bq-opt { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #1d2129; line-height: 1.9; }
.bq-opt-dot {
  width: 17px; height: 17px; border: 1px solid #c9cdd4; border-radius: 50%;
  flex: none; display: grid; place-items: center;
}
.bq-opt.is-box .bq-opt-dot { border-radius: 2px; }
.bq-opt.is-right .bq-opt-dot { border-color: #1677ff; }
.bq-opt.is-right .bq-opt-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1677ff; }
.bq-opt.is-box.is-right .bq-opt-dot::after { border-radius: 1px; }
.bq-opt em { font-style: normal; font-size: 12.5px; color: #fa8c16; }
.bq-answer { margin-top: 9px; font-size: 12.5px; color: #1677ff; }
.bq-answer span { color: #86909c; margin-right: 8px; }
.bq-analysis {
  margin-top: 10px; font-size: 14px; color: #1d2129; line-height: 1.9;
}
.bq-analysis b { display: block; color: #1d2129; font-weight: 400; }

/* ---------- 创建练习页（问卷星式） ---------- */
.create-page { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 16px; align-items: start; }
.create-side { background: #fff; border: 1px solid #ebebeb; border-radius: 2px; padding: 8px; }
.create-side-title { font-size: 13px; font-weight: 600; color: #333; padding: 6px 10px 8px; }
.create-scene {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: transparent; padding: 8px 10px; border-radius: 2px;
  font-size: 13px; color: #333; text-align: left;
}
.create-scene span { display: inline-flex; color: #8a919c; }
.create-scene:hover { background: #f5f5f5; }
.create-scene.is-on { background: #1677ff; color: #fff; }
.create-scene.is-on span { color: #fff; }
.create-scene .ck { margin-left: auto; font-style: normal; font-size: 12px; }
.create-side-label { font-size: 12px; color: #999; padding: 12px 10px 4px; }
.create-head h1 { font-size: 16px; font-weight: 600; color: #333; }
.create-head p { font-size: 12.5px; color: #999; margin-top: 5px; }
.create-head a { color: #1677ff; }
.create-row { display: flex; gap: 14px; margin-top: 14px; }
.create-blank {
  flex: 1; min-width: 0; background: #fff; border: 1px solid #ebebeb; border-radius: 2px;
  padding: 26px 38px 28px; text-align: center;
}
.create-blank-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 18px; }
.create-blank-title span { color: #1677ff; margin-left: 4px; }
.create-blank input { max-width: 520px; margin: 0 auto; padding: 9px 12px; font-size: 13px; border: 1px solid #d9d9d9; border-radius: 2px; }
.create-blank-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.create-submit { border: 0; background: #1677ff; color: #fff; border-radius: 2px; padding: 8px 26px; font-size: 13.5px; }
.create-submit:hover { background: #4096ff; }
.create-ai { font-size: 12.5px; color: #1677ff; }
.create-import {
  flex: none; width: 208px; background: #fff; border: 1px solid #ebebeb; border-radius: 2px;
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
}
.create-import b { font-size: 14px; color: #333; }
.create-import span { font-size: 12px; color: #999; line-height: 1.75; }
.create-import-ico { margin-top: auto; align-self: center; color: #c9d6e8; }
.create-import:hover { border-color: #bcdcff; }
.create-templates { margin-top: 22px; }
.create-tpl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.create-tpl-head b { font-size: 14px; color: #333; }
.create-tpl-search { display: flex; flex: 1; max-width: 430px; }
.create-tpl-search input { flex: 1; border-radius: 2px 0 0 2px; font-size: 12.5px; padding: 6px 10px; }
.create-tpl-search button {
  width: 36px; flex: none; border: 1px solid #e5e6eb; border-left: 0; border-radius: 0 2px 2px 0;
  background: #fff; color: #86909c; display: grid; place-items: center;
}
.create-tpl-tabs { display: flex; gap: 18px; margin: 12px 0; font-size: 12.5px; border-bottom: 1px solid #f0f0f0; }
.create-tpl-tabs button { border: 0; background: transparent; padding: 7px 0; color: #666; border-bottom: 2px solid transparent; }
.create-tpl-tabs button.is-on { color: #1677ff; border-bottom-color: #1677ff; }
.create-tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.create-tpl {
  text-align: left; background: #fff; border: 1px solid #ebebeb; border-radius: 2px;
  padding: 13px 14px; display: flex; flex-direction: column; gap: 12px; cursor: pointer;
}
.create-tpl:hover { border-color: #bcdcff; box-shadow: 0 2px 8px rgba(22, 119, 255, .06); }
.create-tpl b { font-size: 13px; font-weight: 500; color: #333; }
.create-tpl-meta { display: flex; justify-content: space-between; font-size: 12px; color: #999; font-style: normal; }
.create-tpl-meta em, .create-tpl-meta i { font-style: normal; }
.create-tpl-meta i { color: #1677ff; }

/* 建题纸张标题 / 空状态（问卷星式） */
.qs-paper-head {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; position: relative; padding: 8px 0 6px;
  border-bottom: 0;
}
.qs-paper-head h1 { font-size: 20px; font-weight: 600; color: #1677ff; }
.qs-paper-paste { position: absolute; right: 0; top: 6px; }
.bld-desc {
  border: 0; background: transparent; color: #333; font-size: 13px;
  padding: 2px 6px; border-radius: 3px; max-width: 100%;
}
.bld-desc.is-empty { color: #b8bdc7; }
.bld-desc:hover { background: #f5f7fa; }
.qs-paper-links { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.qs-paper-links button { border: 0; background: transparent; padding: 0; font-size: 12.5px; color: #1677ff; }
.qs-paper-links button:hover { text-decoration: underline; }
.qs-paper-links i { font-style: normal; color: #d9d9d9; }
.bld-empty-qs { padding: 16px 0 24px; }
.bqe-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.bqe-btn { border: 1px solid #d9d9d9; background: #fff; color: #333; font-size: 13px; padding: 7px 16px; border-radius: 2px; }
.bqe-btn:hover { border-color: #1677ff; color: #1677ff; }
.bqe-btn.primary { background: #1677ff; border-color: #1677ff; color: #fff; }
.bqe-btn.primary:hover { background: #4096ff; color: #fff; }

@media (max-width: 860px) {
  .create-page { grid-template-columns: 1fr; }
  .create-side { display: none; }
  .create-row { flex-direction: column; }
  .create-import { width: auto; }
  .create-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bld-add-row {
  width: 100%; margin-top: 18px; padding: 12px; border-radius: 6px;
  border: 1px dashed #c9cdd4; background: transparent; color: #4e5969; font-size: 12.5px;
  display: block;
}
.bld-add-row:hover { border-color: #1677ff; color: #1677ff; background: #f7fbff; }
.adm-ghost.dark { border-color: #e5e7eb; color: #4e5969; background: #fff; height: 30px; padding: 0 12px; font-size: 12.5px; }
.adm-ghost.dark:hover { border-color: #1677ff; color: #1677ff; }
.set-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1d2129; margin-top: 12px; }
.set-check input { width: 16px; height: 16px; }
.bld-blank { padding: 50px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 9px; color: #86909c; }
.bld-blank b { color: #1d2129; font-size: 15px; }
.bld-blank p { font-size: 12.5px; line-height: 1.7; max-width: 420px; }

/* =========================================================
   建题页视觉：对齐问卷星
   ========================================================= */
body.builder-mode { background: #fff; }
body.builder-mode .adm-top { min-height: 48px; padding: 6px 14px; border-bottom: 1px solid #e8e8e8; }
body.builder-mode .adm-canvas { background: #fff; padding: 0 0 80px; }
body.builder-mode .adm-paper {
  max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  padding: 14px 40px 40px;
}

/* 左侧题型面板 */
body.builder-mode .bld-side { width: 232px; background: #f7f8fa; border-right: 1px solid #e8e8e8; }
body.builder-mode .adm-tabs { background: #fff; padding: 4px 10px 0; border-bottom: 1px solid #e8e8e8; }
body.builder-mode .adm-tab { font-size: 13px; color: #1f2329; padding: 9px 12px; border-radius: 0; }
body.builder-mode .adm-tab.is-on { background: transparent; }
body.builder-mode .bld-side .adm-side-scroll { padding: 12px 12px 6px; }
body.builder-mode .bld-side .pal-group { margin-bottom: 4px; padding-bottom: 4px; }
body.builder-mode .pal-title { font-size: 13px; color: #1f2329; padding: 6px 2px; }
body.builder-mode .pal-caret { color: #86909c; }
body.builder-mode .pal-grid { gap: 1px 8px; }
body.builder-mode .pal-item { padding: 5px 3px; border-radius: 2px; }
body.builder-mode .pal-item:hover, body.builder-mode .pal-item.is-on { background: #e8f1ff; }
body.builder-mode .pal-glyph {
  min-width: 16px; width: 16px; height: 16px; padding: 0; background: transparent;
  color: #5a6b81; font-size: 0;
}
body.builder-mode .pal-item:hover .pal-glyph { background: transparent; color: #1677ff; }
body.builder-mode .pal-text b { font-size: 12.5px; color: #1f2329; }
body.builder-mode .adm-batch {
  margin: 8px 12px 12px; height: 32px; border: 1px solid #dcdfe6; border-radius: 2px;
  background: #fff; color: #4e5969; font-size: 13px;
}

/* 纸张顶部：练习标题 / 说明 / 链接 */
body.builder-mode .qs-paper-head {
  align-items: stretch; text-align: left; gap: 4px; padding: 6px 0 16px;
  border-bottom: 1px solid #ebebeb;
}
body.builder-mode .qs-paper-head h1 { text-align: center; font-size: 20px; font-weight: 600; color: #1677ff; }
body.builder-mode .bld-desc { align-self: flex-start; font-size: 13px; color: #1f2329; padding: 2px 0; }
body.builder-mode .bld-desc.is-empty { color: #8a919c; }
body.builder-mode .qs-paper-links { align-self: flex-start; margin-top: 2px; }
body.builder-mode .qs-paper-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
body.builder-mode .qs-paper-paste { position: static; }
body.builder-mode .bld-foot-actions { padding: 2px 0 8px; }
body.builder-mode .bq-foot-link { white-space: nowrap; }
body.builder-mode .bld-page-head {
  text-align: center; font-size: 13px; color: #86909c;
  padding: 14px 0; margin: 0 0 14px; border-bottom: 1px solid #ebebeb;
}

/* 内嵌录题：去掉卡片外壳，工具条与输入框按问卷星样式 */
body.builder-mode .bq-inline-editor {
  margin: 6px 0 26px; border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
body.builder-mode .bq-inline-editor .bq-editor-scroll { padding: 0; }
body.builder-mode .bq-inline-editor .rt-bar {
  border: 1px solid #dcdfe6; border-radius: 2px; background: #fff;
  padding: 2px 6px; margin-bottom: 8px;
}
body.builder-mode .bq-inline-editor .rt-bar + .rich-input { border-radius: 2px; }
body.builder-mode .bq-inline-editor .bq-stem {
  border: 1px solid #dcdfe6; border-radius: 2px; background: #fff;
  padding: 10px 12px; font-size: 14px;
}
body.builder-mode .bq-inline-editor .bq-mini {
  background: transparent; border-radius: 0; padding: 2px 0; color: #2d6cdf; font-size: 12.5px;
}
body.builder-mode .bq-inline-editor .bq-mini:hover { background: transparent; text-decoration: underline; }
body.builder-mode .bq-inline-editor .bq-static-link {
  border: 1px solid #dcdfe6; border-radius: 2px; background: #fff;
  padding: 2px 10px; color: #4e5969; font-size: 12px;
}
body.builder-mode .bq-inline-editor .bq-sheet-foot {
  background: #f7f8fa; border-top: 1px solid #e5e6eb; border-bottom: 1px solid #e5e6eb;
  padding: 10px 12px; margin-top: 18px;
}
body.builder-mode .bq-inline-editor .bq-done { border-radius: 2px; }

/* 题目列表下方的三个按钮 */
.bld-foot-actions { padding: 2px 0 8px; }
.bld-foot-actions .bqe-btn { padding: 6px 18px; }
.bqe-btn { border-color: #91caff; color: #1677ff; }
.bqe-btn.primary { background: #e8f1ff; border-color: #91caff; color: #1677ff; }
.bqe-btn.primary:hover { background: #d6e8ff; color: #1677ff; border-color: #1677ff; }

/* 大纲 / 题库：问卷星式树状列表 */
.pal-outline-tree, .pal-bank-tree { padding: 0 2px; }
.pal-outline-root, .pal-bank-root {
  display: flex; gap: 5px; align-items: center;
  font-size: 13px; font-weight: 600; color: #1f2329; padding: 6px 2px;
}
.pal-outline-root span, .pal-bank-root span { color: #86909c; font-size: 11px; }
.pal-outline-page { font-size: 12.5px; color: #4e5969; padding: 8px 2px 3px 14px; }
.pal-outline-item {
  display: flex; gap: 6px; align-items: baseline; width: 100%;
  border: 0; background: transparent; text-align: left;
  padding: 4px 4px 4px 24px; border-radius: 2px; font: inherit;
}
.pal-outline-item:hover { background: #e8f1ff; }
.pal-outline-item span { flex: none; font-size: 12px; color: #86909c; }
.pal-outline-item b {
  font-size: 12.5px; font-weight: 400; color: #1f2329;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pal-bank-row {
  display: flex; gap: 6px; align-items: center; width: 100%;
  border: 0; background: transparent; padding: 5px 4px 5px 22px;
  border-radius: 2px; color: #2d6cdf; font: inherit; text-align: left;
}
.pal-bank-row:hover { background: #e8f1ff; }
.pal-bank-row.is-on { background: #e8f1ff; }
.pal-bank-row span { font-size: 12.5px; }
.pal-bank-more {
  width: 100%; border: 0; background: transparent; text-align: left;
  padding: 6px 4px 6px 22px; font-size: 12.5px; color: #2d6cdf;
}
.pal-bank-more:hover { text-decoration: underline; }

/* 顶栏「设置」下拉 */
.adm-menu-wrap { position: relative; }
.adm-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 156px; padding: 4px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e5e6eb; border-radius: 4px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .1);
}
.adm-menu[hidden] { display: none; }
.adm-menu button, .adm-menu a {
  display: block; width: 100%; text-align: left; padding: 7px 10px;
  border: 0; border-radius: 3px; background: transparent;
  font-size: 13px; color: #1f2329; text-decoration: none; cursor: pointer;
}
.adm-menu button:hover, .adm-menu a:hover { background: #f2f3f5; color: #1677ff; }

/* 工具栏颜色按钮 */
.rt-bar .rt-color {
  width: 22px; height: 24px; border: 1px solid transparent; border-radius: 3px;
  background: transparent; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
}
.rt-bar .rt-color:hover { border-color: #dcdfe6; background: #f7f8fa; }
.rt-bar .rt-color i { width: 12px; height: 12px; border-radius: 2px; display: block; }

/* =========================================================
   首页概览（清爽白底版）
   ========================================================= */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.2px; }
.dash-head p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.dash-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.dash-stat {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #eef0f3; border-radius: 8px; padding: 16px 18px;
}
.dash-stat-ico { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.dash-stat-ico.i1 { background: #eaf2ff; color: #1677ff; }
.dash-stat-ico.i2 { background: #e9f9ef; color: #00a854; }
.dash-stat-ico.i3 { background: #fff4e8; color: #ea7a1a; }
.dash-stat-ico.i4 { background: #f3eeff; color: #7c4dff; }
.dash-stat b { display: block; font-size: 22px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-stat div > span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.dash-cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-card { padding: 18px 20px; border-radius: 8px; border-color: #eef0f3; }
.dash-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash-card-head h2 { font-size: 15px; font-weight: 600; }
.dash-card-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dash-more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.dash-more:hover { color: var(--primary); }
.dash-more svg { transform: rotate(180deg); }
.dash-card .prac-card { border-color: #f0f2f5; border-radius: 6px; box-shadow: none; }
.dash-card .prac-card:hover { border-color: #d6e4ff; }

@media (max-width: 960px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .dash-head h1 { font-size: 19px; }
  .dash-stat { padding: 13px 14px; }
  .dash-stat b { font-size: 19px; }
}
