/* ============================================================
   quiz.css —— v79 刷题练习（学生端 / 教师端 · 管理端）
   全部走语义变量（--ink/--ink2/--ink3/--line/--card/--tint/--tint-ink/--tint-line
   + --green/--red/--orange/--purple/--blue），自动适配 classic / jade / deepblue / festival 主题。
   ============================================================ */

/* ---------- 通用：状态色 ---------- */
.qz-acc-good { color: #12855f; }
.qz-acc-mid  { color: #b4761c; }
.qz-acc-low  { color: #cf4040; }
.qz-acc-none { color: var(--ink3); }
.qz-t-good { color: #12855f; }
.qz-t-bad  { color: #cf4040; }

/* ---------- 学生端 · 概览条 ---------- */
.qz-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px;
}
.qz-strip-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 12px 14px; text-align: center; box-shadow: var(--sh);
}
.qz-strip-item b { display: block; font-size: 24px; line-height: 1.2; color: var(--tint-ink); }
.qz-strip-item span { font-size: 12px; color: var(--ink3); }

/* ---------- 错题重练卡 ---------- */
.qz-wrong-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; margin-bottom: 14px; border-left: 4px solid var(--orange);
}
.qz-wrong-l { display: flex; align-items: center; gap: 12px; }
.qz-wrong-ico { font-size: 26px; }
.qz-wrong-l b { display: block; font-size: 15px; }
.qz-wrong-l small { color: var(--ink3); font-size: 12.5px; }

/* ---------- 模块卡片 ---------- */
.qz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.qz-mod { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.qz-mod-hd { display: flex; align-items: center; gap: 11px; }
.qz-mod-title { flex: 1; min-width: 0; }
/* 学科标签：按模块所属学科动态展示（替代原固定「自由刷题」分组标签） */
.qz-subj {
  flex: none; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--tint); color: var(--tint-ink); border: 1px solid var(--tint-line); white-space: nowrap;
}
.qz-mod-ico {
  width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 21px; border-radius: 12px; background: var(--tint); border: 1px solid var(--tint-line);
}
.qz-mod-title b { display: block; font-size: 16px; }
.qz-mod-title small { color: var(--ink3); font-size: 12.5px; }
.qz-mod-desc { color: var(--ink2); font-size: 12.5px; line-height: 1.6; }
.qz-mod-prog { margin-top: auto; }
.qz-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.qz-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .3s; }
.qz-mod-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 6px; font-size: 12px; color: var(--ink3);
}
.qz-acc { font-weight: 800; }
.qz-mod-ft { display: flex; gap: 8px; }
.qz-mod-ft .btn { flex: 1; justify-content: center; }

/* ---------- 起始设置 ---------- */
.qz-setup { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.qz-field label { display: block; font-size: 13px; font-weight: 800; color: var(--ink2); margin-bottom: 7px; }
.qz-field select {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 14px; font-family: inherit;
}
.qz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink2); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.qz-chip:hover { border-color: var(--tint-line); }
.qz-chip.on { background: var(--tint); border-color: var(--tint-line); color: var(--tint-ink); }

/* ---------- 答题 ---------- */
.qz-run-head { margin-bottom: 8px; }
.qz-progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 12px; }
.qz-progress i { display: block; height: 100%; background: var(--grad); transition: width .25s; }

.qz-card { padding: 18px; }
.qz-qmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.qz-tag {
  font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  background: var(--tint); color: var(--tint-ink); border: 1px solid var(--tint-line);
}
.qz-tag-alt { background: var(--gray-bg); color: var(--ink2); border-color: var(--line); }
.qz-stem { font-size: 16.5px; line-height: 1.75; font-weight: 700; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.qz-img { display: block; max-width: 100%; margin: 12px auto 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; }

.qz-textarea {
  width: 100%; margin-top: 12px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  font-family: inherit; font-size: 14px; line-height: 1.7; color: var(--ink); background: var(--card); resize: vertical;
}

.qz-opts { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.qz-opt {
  display: flex; align-items: flex-start; gap: 11px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink); font-size: 14.5px; line-height: 1.6; font-family: inherit; cursor: pointer;
  transition: border-color .15s, background .15s; position: relative;
}
.qz-opt:hover:not(:disabled) { border-color: var(--tint-line); background: var(--tint); }
/* v132：移除 .qz-opt b 分支 —— 选项内容支持富文本后，<b> 是正文加粗不再是字母圆标 */
.qz-opt-k {
  flex: none; width: 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--gray-bg); font-size: 13px; font-weight: 800; color: var(--ink2); font-style: normal;
}
.qz-opt span { flex: 1; word-break: break-word; }
.qz-opt.on { border-color: var(--tint-line); background: var(--tint); }
.qz-opt.on .qz-opt-k { background: var(--tint-ink); color: #fff; }
.qz-opt.right { border-color: #35c08a; background: #eafaf4; }
.qz-opt.right .qz-opt-k { background: #12855f; color: #fff; }
.qz-opt.wrong { border-color: #ff9d9d; background: #ffeef0; }
.qz-opt.wrong .qz-opt-k { background: #cf4040; color: #fff; }
.qz-opt:disabled { cursor: default; }
.qz-mark { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 900; color: #12855f; }
.qz-mark-bad { color: #cf4040; }

.qz-analysis {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gray-bg);
  border: 1px dashed var(--line); display: flex; flex-direction: column; gap: 7px;
}
.qz-analysis p { font-size: 13.5px; line-height: 1.75; color: var(--ink2); }
.qz-analysis b {
  display: inline-block; margin-right: 8px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px;
  background: var(--tint); color: var(--tint-ink); border: 1px solid var(--tint-line);
}

.qz-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.qz-actions .btn-primary, .qz-actions #qz-next, .qz-actions #qz-finish { margin-left: auto; }

/* ---------- 答题卡 ---------- */
.qz-cardpanel {
  margin-top: 14px; padding: 14px; border-radius: var(--r2); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--sh);
}
.qz-cardpanel-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qz-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 7px; }
.qz-cell {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink3); font-size: 12.5px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.qz-cell.done { background: var(--tint); border-color: var(--tint-line); color: var(--tint-ink); }
.qz-cell.ok { background: #eafaf4; border-color: #9ddcbe; color: #12855f; }
.qz-cell.bad { background: #ffeef0; border-color: #ffb3b3; color: #cf4040; }
.qz-cell.cur { outline: 2px solid var(--tint-ink); outline-offset: 1px; }

/* ---------- 结果 ---------- */
.qz-result { padding: 20px; margin-bottom: 14px; }
.qz-result-top { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.qz-score-ring {
  width: 108px; height: 108px; flex: none; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border: 6px solid var(--line); background: var(--card);
}
.qz-score-ring b { font-size: 24px; line-height: 1.15; }
.qz-score-ring span { font-size: 11.5px; color: var(--ink3); }
.qz-score-ring.qz-acc-good { border-color: #9ddcbe; }
.qz-score-ring.qz-acc-mid { border-color: #f0cd8e; }
.qz-score-ring.qz-acc-low { border-color: #ffb3b3; }
.qz-result-nums { display: grid; grid-template-columns: repeat(4, minmax(66px, 1fr)); gap: 10px; flex: 1; }
.qz-result-nums > div { text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--gray-bg); }
.qz-result-nums b { display: block; font-size: 20px; }
.qz-result-nums span { font-size: 11.5px; color: var(--ink3); }
.qz-result-tip { margin-top: 14px; padding: 10px 13px; border-radius: 10px; background: var(--orange-bg); color: #8a5a12; font-size: 13px; }
.qz-tip-good { background: #eafaf4; color: #12855f; }

.qz-review { padding: 16px; }
.qz-rlist { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.qz-ritem { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-left-width: 4px; background: var(--card); }
.qz-ritem.ok { border-left-color: #35c08a; }
.qz-ritem.bad { border-left-color: #ef7b7b; }
.qz-ritem.self { border-left-color: var(--tint-line); }
.qz-ritem-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 12.5px; color: var(--ink3); }
.qz-ritem-hd b { font-size: 13.5px; color: var(--ink); }
.qz-ribadge { padding: 1px 9px; border-radius: 999px; font-weight: 800; background: var(--gray-bg); color: var(--ink2); }
.qz-ribadge.ok { background: #eafaf4; color: #12855f; }
.qz-ribadge.bad { background: #ffeef0; color: #cf4040; }
.qz-rstem { font-size: 14.5px; line-height: 1.7; font-weight: 700; white-space: pre-wrap; word-break: break-word; }
.qz-ropts { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.qz-ropt { font-size: 13px; color: var(--ink2); padding: 3px 9px; border-radius: 7px; background: var(--gray-bg); }
.qz-ropt.right { background: #eafaf4; color: #12855f; font-weight: 700; }
.qz-ropt.wrong { background: #ffeef0; color: #cf4040; text-decoration: line-through; }
.qz-rmeta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 9px; font-size: 12.5px; color: var(--ink3); }
.qz-rana { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--ink2); }
.qz-rana b { display: inline-block; margin-right: 8px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); border: 1px solid var(--tint-line); }
.qz-final-actions { margin-top: 16px; justify-content: center; }

/* ---------- 教师端 / 管理端 ---------- */
/* v162：允许换行，窄屏（手机 375px）下标签组不再横向撑出容器 */
.qz-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qz-tab {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink2); font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.qz-tab:hover { border-color: var(--tint-line); }
.qz-tab.on { background: var(--tint); border-color: var(--tint-line); color: var(--tint-ink); }
.qz-filter { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.qz-filter select, .qz-filter input {
  padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-size: 13px; font-family: inherit;
}
.qz-origin { font-size: 12.5px; color: var(--ink3); }
.qz-prev-mod { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--gray-bg); }
.qz-prev-mod-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.qz-prev-mod-hd b { font-size: 14px; }
.qz-prev-q { font-size: 12.5px; line-height: 1.65; color: var(--ink2); padding: 5px 0; border-bottom: 1px dashed var(--line); }
.qz-prev-q:last-child { border-bottom: 0; }
.qz-prev-ans { color: #12855f; font-weight: 800; }
.qz-board-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.qz-board-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); padding: 14px; box-shadow: var(--sh); }
.qz-board-card b { display: block; font-size: 23px; color: var(--tint-ink); line-height: 1.2; }
.qz-board-card span { font-size: 12px; color: var(--ink3); }
.qz-trend { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding: 6px 0; }
.qz-trend-it { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
.qz-trend-it .bar { width: 70%; background: var(--tint-line); border-radius: 5px 5px 0 0; min-height: 3px; }
.qz-trend-it .lbl { font-size: 10px; color: var(--ink3); }

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .qz-strip { grid-template-columns: repeat(2, 1fr); }
  .qz-grid { grid-template-columns: 1fr; }
  .qz-result-top { gap: 16px; }
  .qz-score-ring { width: 88px; height: 88px; }
  .qz-score-ring b { font-size: 20px; }
  .qz-result-nums { grid-template-columns: repeat(2, 1fr); }
  .qz-stem { font-size: 15.5px; }
  .qz-actions { flex-wrap: wrap; }
  .qz-actions .btn { flex: 1; justify-content: center; }
  .qz-actions #qz-card-btn { order: 3; flex-basis: 100%; }
}

/* ============================================================
   v81 追加：老师布置的练习 / 组卷向导 / 学生明细 / 分班看板
   ============================================================ */

/* ---------- 通用小件 ---------- */
.qz-sec-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 18px 2px 10px; }
.qz-sec-title small { font-weight: 400; }
.qz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.qz-pagebar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; flex-wrap: wrap;
}

/* ---------- 提示卡（无学科标签等） ---------- */
.qz-notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 14px;
  border-left: 4px solid var(--blue);
}
.qz-notice-ico { font-size: 22px; line-height: 1; }
.qz-notice p { margin: 4px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.6; }
.qz-notice-sm { margin-bottom: 12px; }
.qz-hint, .qz-w-tip { font-size: 12.5px; color: var(--ink3); line-height: 1.6; }
.qz-w-tip { margin: 0 0 12px; }

/* ---------- 学生端 · 老师布置的练习 ---------- */
.qz-agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.qz-asg { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.qz-asg.is-new { border-left: 4px solid var(--tint-ink); }
.qz-asg-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qz-asg-hd b { font-size: 15px; }
.qz-asg-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--tint); color: var(--tint-ink); border: 1px solid var(--tint-line);
}
.qz-asg-bd { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }
.qz-asg-bd b { font-size: 14px; }
.qz-gate {
  font-size: 12.5px; padding: 7px 10px; border-radius: var(--r2); line-height: 1.5;
  background: var(--tint); color: var(--ink2); border: 1px dashed var(--tint-line);
}
.qz-gate.locked { background: rgba(212, 160, 23, .10); border-color: var(--orange); color: var(--ink2); }
.qz-gate.unlocked { background: rgba(18, 133, 95, .10); border-color: var(--green); }
.qz-asg-ft { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ---------- 学生端 · 模拟测试未解锁 ---------- */
.qz-locked { padding: 28px 20px; text-align: center; }
.qz-locked-ico { font-size: 40px; }
.qz-locked h3 { margin: 10px 0 6px; font-size: 18px; }
.qz-locked p { color: var(--ink2); font-size: 13.5px; }
.qz-locked-bar { max-width: 420px; margin: 16px auto 6px; }
.qz-locked-meta { font-size: 12.5px; color: var(--ink3); margin-top: 6px; }
.qz-locked .form-actions { justify-content: center; margin-top: 16px; }

/* ---------- 学生端 · 成绩 / 看板 ---------- */
.qz-detail-hd {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  padding: 8px 10px; margin-bottom: 10px; font-size: 12.5px; color: var(--ink2);
  background: var(--tint); border-radius: var(--r2); border: 1px solid var(--tint-line);
}
.qz-rtag {
  font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: var(--tint); color: var(--tint-ink); border: 1px solid var(--tint-line);
}
.qz-class-line { margin: 6px 0; font-size: 13.5px; color: var(--ink2); }
.qz-trend2 { display: flex; align-items: flex-end; gap: 4px; height: 110px; overflow-x: auto; padding: 6px 2px 0; }
.qz-trend2-it { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 26px; }
.qz-trend2-it i { display: block; width: 14px; background: var(--tint-ink); border-radius: 3px 3px 0 0; min-height: 4px; }
.qz-trend2-it span { font-size: 10px; color: var(--ink3); writing-mode: vertical-rl; }
.qz-asg .qz-asg-bd span.muted { font-size: 11.5px; }

/* ---------- 教师端 · 班级选择 ---------- */
.qz-cls {
  display: inline-block; font-size: 11.5px; padding: 1px 7px; margin: 1px 3px 1px 0;
  border-radius: 999px; background: var(--tint); color: var(--tint-ink); border: 1px solid var(--tint-line);
}
.qz-clsbox { border: 1px solid var(--line); border-radius: var(--r2); padding: 10px; background: var(--card); }
.qz-cls-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.qz-cls-kw {
  flex: 1; min-width: 120px; padding: 5px 9px; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--r2); background: var(--card); color: var(--ink);
}
.qz-clsgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px; max-height: 280px; overflow-y: auto; padding: 2px;
}
.qz-clscard {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r2); background: var(--card);
  transition: border-color .15s, background .15s;
}
.qz-clscard b { font-size: 13.5px; }
.qz-clscard small { font-size: 11px; color: var(--ink3); }
.qz-clscard input { position: absolute; opacity: 0; pointer-events: none; }
.qz-clscard.on { border-color: var(--tint-ink); background: var(--tint); }
.qz-clscard.no-subj { opacity: .62; }

/* ---------- 教师端 · 组卷向导 ---------- */
.qz-steps { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.qz-step {
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  background: var(--tint); color: var(--ink3); border: 1px solid var(--tint-line);
}
.qz-step.on { background: var(--tint-ink); color: #fff; border-color: var(--tint-ink); }
.qz-step.done { color: var(--tint-ink); }
.qz-wizard { padding: 18px 20px; }
.qz-field2 { display: block; margin-bottom: 14px; }
.qz-field2 > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.qz-field2 input, .qz-field2 select {
  width: 100%; padding: 8px 10px; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--r2); background: var(--card); color: var(--ink);
}
.qz-req { color: var(--red); }
.qz-wizard2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

.qz-scopelist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.qz-scope { border: 1px solid var(--line); border-radius: var(--r2); padding: 10px 12px; }
.qz-scope-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.qz-scope-hd input[type=checkbox] { width: 15px; height: 15px; }
.qz-scope-cnt { margin-left: auto; font-size: 12.5px; color: var(--ink3); display: flex; align-items: center; gap: 6px; }
.qz-scope-cnt input { width: 66px; padding: 4px 6px; font-size: 13px; border: 1px solid var(--line); border-radius: var(--r1, 6px); background: var(--card); color: var(--ink); }
.qz-scope-topics { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qz-tchip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; cursor: pointer;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink2);
}
.qz-tchip input { position: absolute; opacity: 0; pointer-events: none; }
.qz-tchip small { color: var(--ink3); }
.qz-tchip.on { background: var(--tint); border-color: var(--tint-ink); color: var(--tint-ink); }

.qz-plist { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.qz-pitem { border: 1px solid var(--line); border-radius: var(--r2); padding: 10px 12px; }
.qz-pitem-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.qz-pitem-ops { margin-left: auto; display: flex; gap: 10px; }
.qz-pstem { font-size: 13.5px; color: var(--ink); margin: 6px 0; line-height: 1.6; }
.qz-popts { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-popt { font-size: 12px; color: var(--ink2); }
.qz-popt.right { color: #12855f; font-weight: 600; }
.qz-pmeta { font-size: 12px; color: var(--ink3); margin-top: 5px; }

.qz-publishbox { display: flex; flex-direction: column; gap: 6px; }
.qz-sum { background: var(--tint); border: 1px solid var(--tint-line); border-radius: var(--r2); padding: 10px 12px; margin: 6px 0 12px; }
.qz-sum p { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0; font-size: 13px; }
.qz-sum p span { color: var(--ink3); }

/* ---------- 教师端 · 试卷预览 / 高频错题 ---------- */
.qz-paper-mini { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.qz-paper-row { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; line-height: 1.5; }
.qz-paper-no, .qz-wrong-n {
  flex: none; min-width: 34px; text-align: center; font-size: 11px; padding: 1px 6px;
  border-radius: 999px; background: var(--tint); color: var(--tint-ink); border: 1px solid var(--tint-line);
}
.qz-paper-stem { flex: 1; color: var(--ink2); }

/* ---------- 教师端 · 题库题目弹层 ---------- */
.qz-qlist { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; overflow-y: auto; }
.qz-qitem { border: 1px solid var(--line); border-radius: var(--r2); padding: 10px 12px; }
.qz-qitem-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.qz-qstem { font-size: 13.5px; margin: 6px 0; line-height: 1.6; }
.qz-qopts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink2); }
.qz-qopt.right { color: #12855f; font-weight: 600; }
.qz-qans { font-size: 12px; color: var(--ink3); margin-top: 5px; }
/* v163b：错题数统计 · 正确答案行 */
.qz-ws-ans { font-size: 12px; color: var(--ink2); margin-top: 4px; }
.qz-ws-ans b { color: #12855f; }
.qz-imp { display: flex; flex-direction: column; gap: 12px; }
.qz-imp label { display: block; font-size: 13px; color: var(--ink2); }
.qz-imp input[type=file], .qz-imp select, .qz-imp input[type=text] { width: 100%; margin-top: 5px; }
.qz-imp-res { background: var(--tint); border: 1px solid var(--tint-line); border-radius: var(--r2); padding: 10px 12px; font-size: 13px; }
.qz-imp-res ul { margin: 6px 0 0 18px; padding: 0; color: var(--ink2); }
.qz-warn { color: var(--orange); font-size: 12.5px; }

/* ---------- 正确率环形（--p: 0~100） ---------- */
.qz-ring {
  --p: 0;
  width: 96px; height: 96px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--tint-ink) calc(var(--p) * 1%), var(--line) 0);
  display: grid; place-items: center;
}
.qz-ring-in {
  width: 74px; height: 74px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.qz-ring-in b { font-size: 21px; line-height: 1.15; color: var(--ink); }
.qz-ring-in span { font-size: 11px; color: var(--ink3); }

/* ---------- 题干配图（作答 / 复盘） ---------- */
.qz-imgs, .qz-rimgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.qz-imgs img, .qz-rimgs img {
  display: block; max-width: 100%; max-height: 200px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; object-fit: contain;
}
.qz-rimgs img { max-height: 160px; }

/* ---------- 主观题作答框 ---------- */
.qz-self {
  width: 100%; margin-top: 10px; resize: vertical; min-height: 76px; line-height: 1.6;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: var(--card); color: var(--ink); font-size: 13.5px; font-family: inherit;
}
.qz-self:focus { outline: none; border-color: var(--tint-ink); box-shadow: 0 0 0 3px var(--tint); }

/* ---------- v123：主观题「提交作答 · 看参考答案」与复盘竖排 ---------- */
/* v127：教师未开放自选题量时，准备页固定显示「全部 N 题」 */
.qz-count-fixed { font-size: 13px; font-weight: 800; color: var(--ink); line-height: 2; }
.qz-count-fixed .muted { margin-left: 8px; font-size: 12px; font-weight: 400; }

.qz-selfbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.qz-selfbar .muted { font-size: 12.5px; line-height: 1.6; }
.qz-self.is-locked, .qz-self[readonly] { background: var(--gray-bg); color: var(--ink2); cursor: default; }
.qz-self-ans { white-space: pre-wrap; word-break: break-word; }
.qz-rself { margin-top: 9px; font-size: 13px; line-height: 1.75; }
.qz-rself > span { display: inline-block; margin-right: 8px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--gray-bg); color: var(--ink3); }
.qz-rself > b { font-weight: 600; color: var(--ink2); white-space: pre-wrap; word-break: break-word; }
.qz-rself.is-good > b { color: #12855f; }
.qz-rself-score { margin-top: 7px; font-size: 12.5px; color: var(--ink3); }
.qz-rself-score b { color: var(--tint-ink); }
html[data-theme="deepblue"] .qz-rself.is-good > b { color: #7fe0bd; }

/* ---------- v133：主观题独立「✍️ 答案输入区 / 📋 参考答案」双卡片 ---------- */
.qz-self-box {
  margin-top: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); overflow: hidden;
}
.qz-self-box-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; background: var(--tint); border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.qz-self-box-hd b { font-size: 13px; font-weight: 800; color: var(--tint-ink); }
.qz-self-box-tip { font-size: 11.5px; color: var(--ink3); }
.qz-self-box .qz-self {
  margin-top: 0; border: none; border-radius: 0; min-height: 92px;
  background: var(--card); display: block;
}
.qz-self-box .qz-self:focus { border: none; box-shadow: none; }
.qz-self-box .qz-self.is-locked, .qz-self-box .qz-self[readonly] { background: var(--gray-bg); }
.qz-self-box .qz-selfbar { padding: 0 12px 10px; margin-top: 0; }
.qz-self-box .qz-locktip { margin: 0 12px 10px; }

/* 参考答案卡片（与输入区同结构，灰底区分） */
.qz-self-ref {
  margin-top: 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--gray-bg); overflow: hidden;
}
.qz-self-ref .qz-self-box-hd { background: var(--gray-bg); border-bottom-color: var(--line); }
.qz-self-ref .qz-self-box-hd b { color: var(--ink2); }
.qz-self-ref-ans {
  padding: 10px 12px; font-size: 13.5px; line-height: 1.7; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.qz-self-ref-score { padding: 0 12px 10px; font-size: 12.5px; color: var(--ink3); }
.qz-self-ref-score b { color: var(--tint-ink); }
.qz-self-ref-ana {
  margin: 0 12px 10px; padding: 8px 10px; border-radius: 8px;
  background: var(--card); border: 1px dashed var(--line);
  font-size: 12.5px; line-height: 1.7; color: var(--ink2);
}
.qz-self-ref-ana b { display: block; font-size: 11.5px; color: var(--ink3); margin-bottom: 3px; }

/* 复盘（交卷明细）处双卡片：略紧凑 */
.qz-self-box-rv { margin-top: 8px; }
.qz-self-box-rv .qz-self-ref-ans { font-size: 13px; padding: 8px 12px; }
html[data-theme="deepblue"] .qz-self-box-hd b { color: var(--tint-ink); }
html[data-theme="deepblue"] .qz-self-ref { background: rgba(255,255,255,0.04); }

/* ---------- 补充：题号 / 题型 / 复盘小件 ---------- */
.qz-qno { font-size: 12.5px; font-weight: 800; color: var(--tint-ink); }
.qz-qtype {
  font-size: 11.5px; padding: 1px 9px; border-radius: 999px;
  background: var(--gray-bg); color: var(--ink2); font-weight: 700;
}
/* v94：选项乱序提示（每次进入重新打乱，防抄袭） */
.qz-shuffle {
  font-size: 11.5px; padding: 1px 9px; border-radius: 999px; font-weight: 700;
  background: var(--tint); color: var(--tint-ink); border: 1px solid var(--tint-line);
}
.qz-rana-easy { color: #8a5a12; }
.qz-rana-easy b { background: #fff4e2; color: #8a5a12; border-color: #f0cd8e; }
.qz-result-msg { margin: 8px 0 0; font-size: 13.5px; color: var(--ink2); }
.qz-review-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 6px 0 10px; padding-bottom: 4px;
}
.qz-review-hd b { font-size: 15px; }

/* ---------- 题目编辑（v82） ---------- */
.qz-q-rule { margin: 0 0 10px; }
.qz-qitem.is-editing { background: var(--tint); border-color: var(--tint-line); }
.qz-qitem-ops { margin-left: auto; display: inline-flex; gap: 10px; }
.qz-used {
  font-size: 11px; padding: 1px 8px; border-radius: 999px;
  background: var(--orange-bg); color: #8a5a12; font-weight: 700;
}
.qz-qedit { display: flex; flex-direction: column; gap: 10px; }
.qz-edit-warn {
  font-size: 12.5px; line-height: 1.6; padding: 9px 12px; border-radius: 10px;
  background: var(--orange-bg); color: #8a5a12;
}
.qz-edit-tip { font-size: 12.5px; color: var(--ink3); }
.qz-erow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-erow label, .qz-eblk { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink2); }
.qz-eblk-label { font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.qz-eopts { display: flex; flex-direction: column; gap: 7px; }
.qz-eopt { display: flex; align-items: center; gap: 8px; }
.qz-eopt-k {
  flex: none; width: 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--gray-bg); font-size: 12.5px; font-weight: 800; color: var(--ink2); font-style: normal;
}
.qz-eopt input[type=text] { flex: 1; }
.qz-eopt-fixed {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2);
  padding: 6px 9px; border: 1px dashed var(--line); border-radius: 9px;
}
.qz-echips { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-echip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink2);
}
.qz-echip.on { border-color: var(--tint-line); background: var(--tint); color: var(--tint-ink); font-weight: 700; }
.qz-eans-text, .qz-qedit textarea, .qz-qedit input[type=text] {
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px;
  background: var(--card); color: var(--ink); font-size: 13px; font-family: inherit; resize: vertical;
}
.qz-eans-text { width: 100%; }
.qz-eacts { display: flex; gap: 9px; margin-top: 2px; }
.qz-set-cur { margin: 10px 0 0; font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .qz-agrid, .qz-clsgrid, .qz-scope-hd { grid-template-columns: 1fr; }
  .qz-two, .qz-wizard2 { grid-template-columns: 1fr; }
  .qz-strip { grid-template-columns: repeat(2, 1fr); }
  .qz-scope-cnt { margin-left: 0; width: 100%; }
  .qz-clscard { position: relative; }
  .qz-steps { gap: 6px; }
  .qz-step { font-size: 11.5px; padding: 5px 9px; }
  .qz-erow { grid-template-columns: 1fr; }
}

/* ---------- v84：数据看板 · 学生明细班级筛选 ---------- */
.qz-review-hd .qz-filter { margin-bottom: 0; }
.qz-review-hd .qz-filter select { min-width: 132px; }

/* ---------- v85：选项乱序 / 练习级门槛 ---------- */
.qz-shuf {
  margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px;
  background: color-mix(in srgb, var(--blue, #2b6cb0) 12%, transparent);
  color: var(--blue, #2b6cb0); border: 1px solid color-mix(in srgb, var(--blue, #2b6cb0) 26%, transparent);
  white-space: nowrap;
}
.qz-mine {
  padding: 0 5px; border-radius: 4px; font-size: 11px;
  background: color-mix(in srgb, var(--green, #2f855a) 14%, transparent);
  color: var(--green, #2f855a);
}
.qz-passbtn { font-variant-numeric: tabular-nums; white-space: nowrap; }
.qz-set-scope { margin: 2px 0 8px; font-size: 12.5px; color: var(--text-2, #555); }
.qz-set-cur { margin-top: 8px; font-size: 12.5px; }

/* ==================== v86 班级成绩（教师）/ 我的成绩单（学生） ==================== */
.qz-inline-ctl { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qz-inline-ctl label { font-size: 12px; color: var(--ink-3, #8a93a3); }
.qz-inline-ctl select { padding: 5px 8px; border: 1px solid var(--line, #dde3ec); border-radius: 8px; background: var(--card, #fff); color: var(--ink, #232a35); font-size: 13px; }

.qz-cls-pick .qz-cls-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.qz-cls-card { padding: 14px 10px; border: 1px solid var(--line, #dde3ec); border-radius: 12px; background: var(--card, #fff); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink, #232a35); display: flex; flex-direction: column; gap: 4px; align-items: center; }
.qz-cls-card:hover { border-color: var(--blue, #2b6ecf); box-shadow: 0 2px 10px rgba(43, 110, 207, .12); }
.qz-cls-card small { font-weight: 400; font-size: 11px; color: var(--blue, #2b6ecf); }

.qz-legend { font-size: 12px; color: var(--ink-2, #5b6472); display: inline-flex; align-items: center; gap: 6px; }
.qz-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.qz-legend .lg-good { background: #92d050; }
.qz-legend .lg-low { background: #ffdf60; }
.qz-legend .lg-none { background: #e7eaf0; }

.qz-grid-wrap { max-height: 64vh; overflow: auto; }
table.qz-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.qz-grid th, .qz-grid td { border-bottom: 1px solid var(--line, #e5e8ef); padding: 7px 9px; text-align: center; white-space: nowrap; }
.qz-grid thead th { position: sticky; top: 0; background: var(--card, #fff); z-index: 2; box-shadow: 0 1px 0 var(--line, #e5e8ef); }
.qz-grid .qz-g-name { position: sticky; left: 0; z-index: 1; background: var(--card, #fff); text-align: left; min-width: 78px; font-weight: 600; }
.qz-grid thead .qz-g-name { z-index: 3; }
.qz-g-t { font-weight: 600; }
.qz-g-sub { font-weight: 400; font-size: 11px; color: var(--ink-3, #8a93a3); }
.qz-grid .qz-g-avg { font-weight: 600; }
.qz-c { min-width: 54px; font-weight: 600; border-radius: 0; }
.qz-c-good { background: #92d050; color: #1d3b00; }
.qz-c-low { background: #ffdf60; color: #6b4d00; }
.qz-c-none { color: var(--ink-3, #b0b7c3); font-weight: 400; }
.qz-grid-note { margin: 8px 2px 0; font-size: 12px; }

.qz-sum-card .qz-sum-subj { margin: 14px 0 4px; }
.qz-sum-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; margin-bottom: 6px; }
.qz-chip-score { display: inline-block; min-width: 64px; text-align: center; padding: 3px 9px; border-radius: 8px; font-weight: 700; font-size: 12px; }
.qz-chip-score.qz-c-good { background: #e3f5d0; color: #2f6b00; }
.qz-chip-score.qz-c-low { background: #fff1b8; color: #7a5b00; }
.qz-chip-score.qz-c-none { background: var(--gray-bg, #eef1f5); color: var(--ink-3, #98a1b0); }
.qz-sum-cell { white-space: nowrap; }

/* ============================================================
   v113：刷题练习（教师/管理端）列表视觉打磨
   问题：加「顺序」列后表格挤成 9 列，窄列里「随机」被压成两行竖排，
        数值列左对齐、表头无区分、操作链接贴边，整页显得凌乱。
   做法：表头浅底 + 数值列居中 + 顺序改胶囊徽标 + 操作列右对齐等距。
   ============================================================ */
#qz-body .admin-table { font-size: 13.5px; }
#qz-body .admin-table thead th {
  background: #f6f8fc;
  color: var(--ink2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
#qz-body .admin-table thead th:first-child { border-top-left-radius: 10px; }
#qz-body .admin-table thead th:last-child { border-top-right-radius: 10px; }
#qz-body .admin-table tbody td { padding: 12px; }
#qz-body .admin-table .qz-th-num,
#qz-body .admin-table .qz-num { text-align: center; }
#qz-body .admin-table .qz-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
#qz-body .admin-table .qz-th-ops,
#qz-body .admin-table .qz-ops { text-align: right; }
#qz-body .admin-table .qz-ops { white-space: nowrap; }
#qz-body .admin-table .qz-ops .btn-link + .btn-link { margin-left: 12px; }
#qz-body .admin-table .qz-asg-title { font-size: 14.5px; line-height: 1.45; }
#qz-body .admin-table .qz-cls-cell { min-width: 132px; }

/* 「顺序」胶囊徽标：随机=主题色实心淡底；固定=灰底（视觉降噪） */
.qz-shufbtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border: 1px solid var(--tint-line);
  border-radius: 999px;
  background: var(--tint);
  color: var(--tint-ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.qz-shufbtn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(43, 110, 207, .16); }
.qz-shufbtn:active { transform: none; box-shadow: none; }
.qz-shufbtn.is-fixed { background: var(--gray-bg); border-color: var(--line); color: var(--ink2); }
.qz-shufbtn.is-static { cursor: default; }
.qz-shufbtn.is-static:hover { transform: none; box-shadow: none; }
.qz-shufbtn-ico { font-size: 12px; line-height: 1; }

/* 组卷向导第 3 步：顺序两选项做成等宽大按钮，一眼能选 */
#qz-w-shuffle { gap: 10px; }
#qz-w-shuffle .qz-chip {
  flex: 1 1 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 13.5px;
}

/* 窄屏：表格横向滚动时给个提示感（保留圆角卡片） */
@media (max-width: 900px) {
  #qz-body .admin-table thead th,
  #qz-body .admin-table tbody td { padding: 10px 9px; }
  #qz-body .admin-table .qz-asg-title { font-size: 14px; }
}

/* ===== v118：独立刷新按钮 + 更新时间 ===== */
.qz-refresh { white-space: nowrap; }
.qz-refresh.is-busy, .qz-refresh[disabled] { opacity: .6; cursor: progress; }
.qz-refresh:active { transform: scale(.97); }
.qz-upd { font-size: 12px; margin: 0 4px 0 2px; }
.qz-4d + .qz-grid-note, .qz-upd + .qz-refresh { margin-left: 0; }

/* ===== v117：模块统计维度切换 + 学生四维成绩表 ===== */
.qz-dimtabs { display: inline-flex; align-items: center; gap: 6px; }
.qz-dimtabs .qz-tab { padding: 5px 13px; font-size: 12.5px; }
.qz-cell-sub { font-size: 11.5px; line-height: 1.45; color: var(--ink3); margin-top: 2px; white-space: nowrap; }
.qz-4d th { white-space: nowrap; }
.qz-4d td { vertical-align: top; }
.qz-4d td .badge { margin-left: 4px; font-size: 11px; padding: 1px 6px; }

/* ===== v122：即时判题锁定 / 过关横幅 / 错题重练明细 ===== */
/* 已作答的选项：置灰但保留对错配色，且明确不可点 */
.qz-opt.is-locked { cursor: default; }
.qz-opt.is-locked:hover { border-color: inherit; background: inherit; }
.qz-opt:disabled { opacity: 1; }
.qz-locktip {
  margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--tint); border: 1px dashed var(--tint-line);
  font-size: 13px; color: var(--ink2);
}
.qz-locktip b { color: #12855f; }
.qz-multibar {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: var(--tint);
  font-size: 12.5px; flex-wrap: wrap;
}

/* 模拟测验过关提示 */
.qz-passbanner {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 14px; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(135deg, #e9fbf3, #f3fff9);
  border: 1px solid #9fe3c6;
  box-shadow: 0 6px 20px rgba(18, 133, 95, .10);
}
.qz-passbanner-ico { font-size: 30px; line-height: 1; }
.qz-passbanner b { display: block; font-size: 18px; color: #0f7d58; letter-spacing: .3px; }
.qz-passbanner small { display: block; margin-top: 4px; font-size: 12.5px; color: #3f7a66; }
.qz-passbanner.is-fail {
  background: linear-gradient(135deg, #fff7e8, #fffdf7);
  border-color: #f3d9a6; box-shadow: none;
}
.qz-passbanner.is-fail b { color: #9a6a12; }
.qz-passbanner.is-fail small { color: #8a7247; }

/* 模块卡片「已过关」徽标 */
.qz-passed {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  font-size: 11.5px; font-weight: 600; border-radius: 999px;
  background: #e6f9f0; color: #0f7d58; border: 1px solid #a9e6ca;
  vertical-align: middle;
}

/* 错题重练明细表 */
.qz-wrongs-tbl td { vertical-align: top; }
.qz-wrongs-stem { max-width: 520px; }
.qz-wrongs-stem b { font-weight: 600; line-height: 1.5; }
.qz-wrongs-tbl .badge { white-space: nowrap; }

/* ==================== v124：教师端点学生 → 查看具体作答 ==================== */
.qz-stu-link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: var(--ink, #1f2d3d); text-align: left;
  border-bottom: 1px dashed transparent; transition: color .15s, border-color .15s;
}
.qz-stu-link b { font-weight: 600; }
.qz-stu-link:hover { color: #0f7d58; border-bottom-color: #9fe3c6; }
.qz-stu-link:focus-visible { outline: 2px solid #9fe3c6; outline-offset: 2px; border-radius: 4px; }

.qz-sa-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.qz-sa-hd b { font-size: 16px; }
.qz-sa-hd .muted { margin-left: 8px; font-size: 12.5px; }
.qz-sa-scope { font-size: 12.5px; color: var(--ink2); }
.qz-sa-strip { margin-bottom: 12px; }
.qz-sa-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--tint-line, #e4eef0);
}
.qz-sa-bar .muted { font-size: 12.5px; }
.qz-sa-tbl td { vertical-align: top; }
.qz-sa-tbl .badge { white-space: nowrap; }
.qz-sa-tbl .btn-link { white-space: nowrap; }

/* v124：弹窗内汇总条 5 项自适应一行；宽屏弹窗里逐题更好读 */
.qz-sa-strip { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.modal-xl .qz-sa-tbl td, .modal-xl .qz-ritem { font-size: 13.5px; }

/* ==================== v126：题目标签（选择题 / 非选择题） ==================== */
.qz-rtag-nc {
  background: #fff4e5; color: #a15c00;
  border-color: #f3d5a7;
}


/* ===== v129：模拟试卷导入 ===== */
.qz-pp { display: flex; flex-direction: column; }
.qz-pp-files { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.qz-pp-file {
  flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px;
  border: 1px dashed var(--tint-line, var(--line)); border-radius: var(--r2, 10px);
  padding: 10px 12px; background: var(--tint); color: var(--ink);
}
.qz-pp-file > span { font-weight: 600; font-size: 13px; color: var(--ink); }
.qz-pp-file em { font-style: normal; font-size: 12px; color: var(--ink3); }
.qz-pp-file input[type="file"] { color: var(--ink2); }
.qz-pp-manual { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.qz-pp-manual label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink2); }
.qz-pp-manual textarea {
  width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.55;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px;
  background: var(--card); color: var(--ink);
}
.qz-pp-bar { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.qz-pp-stats {
  margin: 8px 0; font-size: 13px; color: var(--ink2); background: var(--tint);
  border: 1px solid var(--tint-line, var(--line)); border-radius: 8px; padding: 8px 12px;
}
.qz-pp-stats b { color: var(--tint-ink); }
.qz-pp-warns { margin: 6px 0; font-size: 12.5px; }
.qz-pp-tablewrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.qz-pp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; color: var(--ink); }
.qz-pp-table th {
  position: sticky; top: 0; z-index: 1; background: var(--tint); text-align: left;
  font-weight: 600; color: var(--ink2); border-bottom: 1px solid var(--line);
}
.qz-pp-table th, .qz-pp-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qz-pp-table tr:hover td { background: var(--tint); }
.qz-pp-no { font-weight: 600; color: var(--tint-ink); }
.qz-pp-table textarea, .qz-pp-table input, .qz-pp-table select {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px;
  font: inherit; background: var(--card); color: var(--ink); box-sizing: border-box;
}
.qz-pp-table textarea { resize: vertical; line-height: 1.45; }
.qz-pp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.qz-pp-opts .qz-pp-opt { display: flex; gap: 6px; align-items: center; }
.qz-pp-opts .qz-pp-opt span { width: 14px; color: var(--ink3); flex: none; }
.qz-pp-tag { font-size: 11px; color: var(--orange, #d97706); margin-top: 4px; }
.qz-pp-target { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.qz-pp-target label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink2); }
.qz-pp-target input, .qz-pp-target select {
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font: inherit;
  background: var(--card); color: var(--ink);
}

/* ==================== v132 题库富文本（题干/选项 排版 + 插图） ==================== */
.qz-stem img, .qz-rstem img, .qz-qstem img, .qz-pstem img,
.qz-ropts img, .qz-qopts img, .qz-opts img, .qz-popts img, .rt-content img { max-width: 100%; height: auto; border-radius: 6px; vertical-align: middle; }
.qz-ert .rt-editor, .qz-eopt-rt .rt-editor { min-height: 76px; max-height: 300px; }
.qz-ert .rt-toolbar, .qz-eopt-rt .rt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px 6px; }
.qz-eopt.is-rich { align-items: stretch; }
.qz-eopt.is-rich .qz-eopt-k { margin-top: 6px; }
.qz-eopt-rt { flex: 1; min-width: 0; }
.qz-opt-rich p, .qz-opt-rich div, .qz-opt-rich blockquote { display: inline; margin: 0; padding: 0; background: none; border: 0; }
.qz-qopts .rt-content p, .qz-qopts .rt-content div, .qz-ropts .rt-content p, .qz-ropts .rt-content div,
.qz-popts .rt-content p, .qz-popts .rt-content div { display: inline; margin: 0; }

/* ==================== v134 题干/选项配图自适应 ==================== */
/* 大图按所在容器宽度收缩；超高图限高等比缩放，不裁切、不撑爆题面 */
.qz-stem img, .qz-rstem img, .qz-qstem img, .qz-pstem img,
.qz-ropts img, .qz-qopts img, .qz-opts img, .qz-popts img, .rt-content img {
  max-width: 100%; height: auto; width: auto; object-fit: contain;
}
/* 限高同时随窗口高度自适应：宽屏放大图、矮屏自动收，避免一屏只放一张图 */
.qz-stem img, .qz-qstem img, .qz-pstem img { max-height: min(420px, 52vh); }
.qz-rstem img { max-height: min(380px, 48vh); }
.qz-opts img, .qz-qopts img, .qz-popts img { max-height: min(160px, 26vh); }
.qz-ropts img { max-height: min(140px, 24vh); }
/* 题面附图（question.images 宫格）同样自适应 */
.qz-imgs img { max-width: 100%; height: auto; width: auto; max-height: min(320px, 40vh); object-fit: contain; }
.qz-rimgs img { max-width: 100%; height: auto; width: auto; max-height: min(260px, 34vh); object-fit: contain; }
/* 复盘明细弹窗内略收，保证一屏能看多题 */
.modal .qz-rstem img { max-height: min(300px, 46vh); }
.modal .qz-ropts img { max-height: min(130px, 20vh); }

/* ==================== v138 试卷导入配图（自动提取 / 补图 / 未能关联提示） ==================== */
.qz-pp-imgs { display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-start; }
.qz-pp-thumb { position: relative; display: inline-block; }
.qz-pp-thumb img { display: block; height: 44px; width: auto; max-width: 140px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.qz-pp-x {
  position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; line-height: 14px; text-align: center;
  border-radius: 50%; background: var(--gray-bg); color: var(--ink2); font-size: 10px; font-style: normal;
  cursor: pointer; border: 1px solid var(--line);
}
.qz-pp-x:hover { background: #ffeef0; color: #cf4040; border-color: #ff9d9d; }
.qz-pp-add {
  display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 44px; padding: 0 8px;
  border: 1px dashed var(--line); border-radius: 6px; font-size: 12px; color: var(--ink3); cursor: pointer;
}
.qz-pp-add:hover { border-color: var(--tint-line); color: var(--tint-ink); background: var(--tint); }
.qz-pp-unmatched {
  margin: 10px 0; padding: 8px 12px; border: 1px solid #ffd591; background: #fffbe6;
  border-radius: 10px; font-size: 12.5px; color: var(--ink2);
}
.qz-pp-unmatched .qz-pp-um-hd b { color: #ad6800; }
.qz-pp-unmatched .muted { display: block; margin: 2px 0 6px; }
.qz-pp-um { display: inline-flex; align-items: center; gap: 6px; margin: 4px 10px 2px 0; }
.qz-pp-um img { max-width: 90px; max-height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
html[data-theme="deepblue"] .qz-pp-unmatched { background: rgba(255, 213, 145, 0.12); border-color: rgba(255, 213, 145, 0.5); }
html[data-theme="deepblue"] .qz-pp-unmatched .qz-pp-um-hd b { color: #ffd591; }

/* ==================== v141 题库配图展示与编辑 ==================== */
.qz-qimgs img { max-height: 150px; }
.qz-eimgs img { max-height: 120px; }
.qz-eimg { position: relative; display: inline-block; }
.qz-eimg .qz-eimg-x {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--red);
  font-size: 11px; font-style: normal; line-height: 18px; text-align: center; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.qz-eimg .qz-eimg-x:hover { background: var(--red); color: #fff; }

/* ==================== v142 导入预览手动加题 ==================== */
.qz-pp-xrow { display: inline-block; margin-left: 6px; color: var(--red); font-style: normal; cursor: pointer; font-size: 12px; opacity: .5; }
.qz-pp-xrow:hover { opacity: 1; }
.qz-pp-manual {
  display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px;
  font-size: 11px; line-height: 16px; border: 1px solid var(--blue); color: var(--blue);
}

/* ==================== v159 防作弊守卫 ==================== */
/* 答题容器：禁文本选择 / iOS 长按菜单；输入框除外（学生要能编辑自己的答案） */
.qz-guard, .qz-guard * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.qz-guard textarea, .qz-guard input,
.qz-guard textarea *, .qz-guard input * {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
/* 切屏提示 */
.qz-leave-tip {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px;
  background: #fff7e6; border: 1px solid #ffe1a8; color: #a35b00;
}
/* 教师端：作答列表里的切屏徽标 */
.qz-leave-badge {
  display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 8px;
  font-size: 11px; line-height: 16px; background: #fdecec; color: #a32d2d; border: 1px solid #f09595;
}
/* v160 切屏强制终止页 */
.qz-abort-card { text-align: center; padding: 34px 20px; max-width: 560px; margin: 24px auto; }
.qz-abort-icon { font-size: 46px; line-height: 1; margin-bottom: 12px; }
.qz-abort-card h3 { margin: 0 0 10px; color: #a32d2d; }
.qz-abort-text { color: #444; margin: 0 0 8px; }
.qz-abort-hint { color: #888; font-size: 13px; margin: 0 0 18px; }
