/* =====================================================================
 * 产品培训答题库 · 样式
 * 基调：微信小程序答题页的骨架（顶栏 / 卡片选项 / 底部操作条）
 *      + 办公培训风（信息密度高、字大、配色克制）
 * ===================================================================== */
:root {
  --navy: #1F2A44;
  --navy-2: #2C3A5A;
  --bg: #F2F4F8;
  --card: #FFFFFF;
  --line: #E3E8F0;
  --text: #1B1F27;
  --text-2: #454E5E;
  --muted: #8A93A3;
  --blue: #2C62D9;
  --blue-bg: #EDF3FE;
  --green: #07C160;
  --green-bg: #E8F9EF;
  --green-line: #9FE0BF;
  --red: #FA5151;
  --red-bg: #FDEEEE;
  --red-line: #F5B4B4;
  --amber: #FA9D3B;
--amber-bg: #FFF4E3;
--amber-line: #F7CE9A;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(27, 31, 39, .06), 0 6px 18px rgba(27, 31, 39, .05);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* ★ 必须有这一条：.drawer/.modal-mask/.tb-btn 都设了 display:flex / inline-flex，
   会把 HTML 的 hidden 属性顶掉 —— 表现就是抽屉和遮罩一直挂在页面上。 */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; color: inherit; }
b { font-weight: 600; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: 52px; padding: 0 8px;
  display: flex; align-items: center; gap: 4px;
  background: var(--navy); color: #fff;
  box-shadow: 0 1px 8px rgba(15, 22, 38, .18);
}
.tb-title { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 4px; }
.tb-main { font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-sub  { font-size: 11px; color: rgba(255,255,255,.62); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px;
  color: #fff; font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.tb-btn:active { background: rgba(255,255,255,.12); }
.tb-user { font-size: 13px; font-weight: 500; background: rgba(255,255,255,.14); padding: 0 12px; border-radius: 16px; }

/* ---------------- 主内容 ---------------- */
.view {
  max-width: 720px; margin: 0 auto;
  padding: 64px 14px 30px;
}
.view.has-actionbar { padding-bottom: 86px; }
@media (min-width: 900px) { .view { padding-top: 70px; } }

.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  margin: 20px 2px 10px;
}
.section-title::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--blue); }
.section-title .rest { margin-left: auto; font-weight: 400; }

/* ---------------- 首页 ---------------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #35476F 100%);
  color: #fff; border-radius: var(--radius); padding: 20px 18px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: 20px; font-weight: 600; letter-spacing: .3px; }
.hero p { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 6px; line-height: 1.7; }
/* 封面里的型号小字 */
.hero-sub { font-size: 12px !important; color: rgba(255,255,255,.55) !important; margin-top: 3px !important; letter-spacing: .4px; }
/* 署名行：网页制作 / 审核 */
.hero-credit { font-size: 12px !important; color: rgba(255,255,255,.55) !important; margin-top: 4px !important; }
.hero-stats { display: flex; gap: 18px; margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stat b { display: block; font-size: 19px; font-weight: 600; }
.hero-stat span { font-size: 11px; color: rgba(255,255,255,.62); }
/* ★ 系列封面右下角的「系列产品考试」入口（用户指定的位置）
   ★ 按钮跟统计**同一行**、放在最右边；说明文字另起一行（用户 2026-11-24：
     「把那个按钮再往上一行，应该就是跟产品题目已练会错题同一行，然后按钮放在最右边」） */
.hero-exam-btn {
  background: #fff; color: var(--navy); border: 0; border-radius: 10px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; box-shadow: 0 2px 10px rgba(0,0,0,.18);
  margin-left: auto; align-self: center; white-space: nowrap; flex: none;
}
.hero-exam-btn:active { transform: scale(.98); }
.hero-cta-t {
  font-size: 11.5px; color: rgba(255,255,255,.62); line-height: 1.6;
  text-align: right; margin-top: 9px;
}
/* ★ 考试模式里每道题的「来自哪个产品」标签 */
.q-src {
  font-size: 11px; color: #1F4CA8; background: var(--blue-bg);
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}

.board-card {
  background: var(--card); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 12px;
  box-shadow: var(--shadow); display: flex; gap: 13px; align-items: flex-start;
  cursor: pointer; transition: transform .12s ease;
}
.board-card:active { transform: scale(.985); }
.board-ic {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: var(--blue-bg); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; letter-spacing: .5px;
}
/* 板块图标 = 抠好的透明底产品照
   ★ 2026-11-24 用户要求：产品图**底下不要再垫一个浅色方块**。
   原来这里有 background:#F5F8FC + border + padding:5px → 产品浮在一个
   浅灰蓝方块里，看起来像「垫了个白块」。
   现在去掉底色/边框/内边距 → 产品直接贴在卡片上，和其它内容同一层。 */
.board-ic.img { background: transparent; border: 0; padding: 0; }
.board-ic.img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 板块页顶部：深色产品横幅 */
.board-hero {
  background: #0A0E14; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 14px; box-shadow: var(--shadow);
}
.board-hero img { width: 100%; height: 150px; object-fit: cover; display: block; }
/* ★ 高横幅变体（只给宽扁造型的板块用，比如 PMU Lite）。
   150px 高时，3.23:1 的产品最大只能占 50% 宽，看着又小又空；
   210px 高时能占 57% 宽，气势就出来了。
   对应的图必须做成 1940×420（= 970×210 @2x）→ 比例一致 → cover 不裁切。 */
.board-hero.tall img { height: 210px; }
@media (max-width: 560px) {
  .board-hero.tall img { height: 168px; }
}
.board-main { flex: 1; min-width: 0; }
.board-name { font-size: 16px; font-weight: 600; }
.board-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.board-desc { font-size: 12.5px; color: var(--text-2); margin-top: 7px; line-height: 1.6; }
.board-meta { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: #EFF2F7; color: var(--text-2); }
.tag.blue { background: var(--blue-bg); color: var(--blue); }
.tag.amber { background: #FFF4E6; color: #B96F14; }
/* 「测试」角色 = 绿底（权限等同普通用户，只是交卷待复核不发邮件） */
.tag.green { background: var(--green-bg); color: #0A8F4B; }
.board-go { color: #C3CAD6; font-size: 20px; align-self: center; }

/* 管理后台：出网被限时的横幅（AI 判分 + 站外邮件都会失效） */
.egress-warn {
  border: 1px solid var(--red-line); background: var(--red-bg); color: var(--red);
  border-radius: var(--radius); padding: 12px 15px; margin-bottom: 14px;
  font-size: 13px; line-height: 1.7;
}
.egress-warn b { color: var(--red); }

/* ---------------- 管理后台：通知设置（收通知的邮箱） ----------------
   邮箱存在**当前登录者**名下，只有自己能看到；别的管理员在同一个页面也看不到。 */
.mail-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 8px; }
.mail-label { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.mail-input {
  flex: 1 1 260px; min-width: 190px; max-width: 420px;
  height: 36px; padding: 0 12px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--text); outline: none;
}
.mail-input:focus { border-color: var(--blue); }
.mail-save {
  flex: none; height: 36px; padding: 0 20px; border: 0; border-radius: 9px;
  background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.mail-save:disabled { opacity: .55; cursor: default; }

/* ---------------- 板块页：模式入口 ---------------- */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mode-btn {
  background: var(--card); border-radius: var(--radius); padding: 15px 8px; text-align: center;
  box-shadow: var(--shadow); transition: transform .12s ease;
}
.mode-btn:active { transform: scale(.97); }
.mode-ic { width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.mode-ic.a { background: var(--blue-bg); color: var(--blue); }
.mode-ic.b { background: #F3EEFE; color: #7B4FE0; }
.mode-ic.c { background: var(--green-bg); color: var(--green); }
.mode-btn b { display: block; font-size: 14px; font-weight: 600; }
.mode-btn span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

.cat-list { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cat-row { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cat-row:last-child { border-bottom: none; }
.cat-row:active { background: #F7F9FC; }
.cat-name { flex: 1; min-width: 0; font-size: 14px; }
.cat-name small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.cat-bar { width: 74px; height: 5px; border-radius: 4px; background: #EDF0F5; overflow: hidden; flex: none; }
.cat-bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.cat-num { font-size: 12px; color: var(--muted); width: 44px; text-align: right; flex: none; }

/* ---------------- 答题卡 ---------------- */
/* ★ 考试模式顶部的提示条：告诉考生「交卷在最后一题」（用户 2026-11-24 要求） */
.exam-tip {
  display: flex; align-items: flex-start; gap: 7px;
  background: var(--blue-bg); border: 1px solid #CBDDF9; color: #1F4CA8;
  font-size: 12.5px; line-height: 1.7; padding: 10px 13px;
  border-radius: 10px; margin-bottom: 10px;
}
.exam-tip .exam-tip-ic { font-size: 14px; line-height: 1.55; flex: none; }
.exam-tip b { color: #1F4CA8; font-weight: 700; }
.qcard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.q-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.q-no { font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-bg); padding: 3px 9px; border-radius: 6px; }
.q-cat { font-size: 11.5px; color: var(--muted); }
.q-stem { font-size: 16px; line-height: 1.65; font-weight: 500; margin-bottom: 14px; word-break: break-word; }

.opts { display: flex; flex-direction: column; gap: 9px; }
.opt {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px;
  background: #FCFDFE; text-align: left; font-size: 14.5px; line-height: 1.55;
  transition: background .12s ease, border-color .12s ease;
}
.opt:active { background: #F4F7FB; }
.opt-k {
  width: 23px; height: 23px; flex: none; border-radius: 50%;
  border: 1.5px solid #C8D0DC; color: var(--muted);
  font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.opt-t { flex: 1; min-width: 0; word-break: break-word; }
.opt.correct { background: var(--green-bg); border-color: var(--green-line); }
.opt.correct .opt-k { background: var(--green); border-color: var(--green); color: #fff; }
.opt.wrong { background: var(--red-bg); border-color: var(--red-line); }
.opt.wrong .opt-k { background: var(--red); border-color: var(--red); color: #fff; }
.opt.locked { pointer-events: none; }
/* 考试模式：只标「已选」，用蓝色（区别于练习模式的绿=对 / 红=错） */
.opt.picked { background: var(--blue-bg); border-color: #AFC8F2; }
.opt.picked .opt-k { background: var(--blue); border-color: var(--blue); color: #fff; }
.opt.picked .opt-mark { color: var(--blue); }
.opt-mark { flex: none; font-size: 13px; font-weight: 600; margin-top: 3px; }
.opt.correct .opt-mark { color: var(--green); }
.opt.wrong .opt-mark { color: var(--red); }

/* ---------------- 管理后台：考试历史抽屉 ---------------- */
.hist-list { padding: 10px 12px 16px; }
.hist-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; overflow: hidden; }
.hist-head { display: flex; align-items: center; gap: 11px; padding: 11px 12px; }
.hist-head:active { background: #F7F9FC; }
.hist-no {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-bg); color: var(--blue);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.hist-info { flex: 1; min-width: 0; }
.hist-t { font-size: 13.5px; font-weight: 600; }
.hist-line { display: flex; align-items: center; gap: 9px; margin-top: 4px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.hist-score { color: var(--text); font-size: 13px; }
.hist-pct { color: var(--muted); }
.hist-used { color: var(--muted); }
.hist-wcnt { flex: none; font-size: 12px; font-weight: 600; }
.hist-wcnt.bad { color: var(--red); }
.hist-wcnt.good { color: var(--green); }
.hist-detail { border-top: 1px dashed var(--line); padding: 10px 12px 12px; background: #FBFCFE; }
.hist-q { padding: 8px 0; border-bottom: 1px solid #EEF1F6; }
.hist-q:last-child { border-bottom: none; }
.hist-qh { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.hist-qh b { color: var(--text); }
.hist-qh span { color: var(--muted); }
.hist-qs { font-size: 13px; line-height: 1.6; margin: 4px 0 6px; word-break: break-word; }
.hist-ans { font-size: 12.5px; color: var(--green); }
.hist-ans b { font-size: 13px; }
.hist-pick { font-size: 12.5px; color: var(--red); }
.hist-pick b { font-size: 13px; }

/* ---------------- 解析区 ---------------- */
.explain {
  margin-top: 13px; border-radius: 11px; padding: 13px 14px;
  background: #F6F8FC; border: 1px solid var(--line);
  animation: fade .22s ease;
}
.explain.ok { background: var(--green-bg); border-color: var(--green-line); }
.explain.no { background: var(--red-bg); border-color: var(--red-line); }
/* 参考答案：用**中性**底色。
   填空题/简答题在练习模式**不判对错**，绿色会让人以为「答对了」。 */
.explain.ref { background: #F6F8FC; border-color: var(--line); }
.explain.ref .explain-h { color: var(--text-2); }
.explain-h { font-size: 14px; font-weight: 600; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.explain.ok .explain-h { color: #0A8C46; }
.explain.no .explain-h { color: #C93A3A; }
.explain-b { font-size: 13.5px; line-height: 1.72; color: var(--text-2); }
.explain-src { font-size: 11.5px; color: var(--muted); margin-top: 9px; padding-top: 8px; border-top: 1px dashed #D5DCE6; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------------- 进度条 / chips ---------------- */
.progress { height: 4px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .25s ease; }

.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 8px; margin-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-size: 12.5px; padding: 7px 13px; border-radius: 18px;
  background: #fff; color: var(--text-2); box-shadow: 0 1px 2px rgba(27,31,39,.06); white-space: nowrap;
}
.chip.on { background: var(--navy); color: #fff; }

/* ---------------- 底部操作条 ---------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.actionbar-in { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.btn {
  flex: 1; height: 44px; border-radius: 11px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #EFF2F7; color: var(--text-2);
}
.btn:active { opacity: .82; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.green { background: var(--green); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text-2); flex: none; padding: 0 16px; }
.btn.dim { flex: none; padding: 0 18px; }
/* ★ 破坏性操作（清除所有通知）——红底，一眼能看出不是普通按钮 */
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(.95); }
.btn[disabled] { opacity: .45; pointer-events: none; }
/* ★ button 设了 display:flex 之后，宽度是「按内容收缩」而不是像块级元素那样填满父容器。
   .actionbar-in 是 flex 行所以没问题，但抽屉底、登录卡片这类块级容器里的按钮
   会缩成内容宽度，文字反而被裁掉 —— 这里补回 100%。 */
.drawer-foot .btn, .login-card .btn { width: 100%; }

/* ---------------- 成绩页 ---------------- */
.score-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; text-align: center; }
.score-ring { width: 148px; height: 148px; margin: 4px auto 12px; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .val b { font-size: 34px; font-weight: 700; line-height: 1; }
.score-ring .val b small { font-size: 15px; font-weight: 500; color: var(--muted); }
.score-ring .val span { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.score-line { font-size: 15px; font-weight: 600; }
.score-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.score-stats { display: flex; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.score-stat { flex: 1; }
.score-stat b { display: block; font-size: 17px; font-weight: 600; }
.score-stat span { font-size: 11px; color: var(--muted); }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; background: #FFF4E6; color: #B96F14; margin-top: 10px;
}

/* ---------------- 总览 ---------------- */
.ov-cat { margin-bottom: 16px; }
.ov-head {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  background: var(--navy); color: #fff; border-radius: 11px 11px 0 0; cursor: pointer;
}
.ov-head b { font-size: 14px; font-weight: 600; }
.ov-head .n { font-size: 11.5px; color: rgba(255,255,255,.6); }
.ov-head .arrow { margin-left: auto; transition: transform .2s ease; }
.ov-cat.closed .ov-head .arrow { transform: rotate(-90deg); }
.ov-cat.closed .ov-body { display: none; }
.ov-body { background: var(--card); border: 1px solid var(--line); border-top: none; border-radius: 0 0 11px 11px; padding: 14px; }
.ov-q { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ov-q:last-child { border-bottom: none; }
.ov-q:first-child { padding-top: 2px; }
.ov-stem { font-size: 14.5px; line-height: 1.6; font-weight: 500; margin-bottom: 10px; }
.ov-stem .idx { color: var(--blue); font-weight: 700; margin-right: 4px; }
.ov-opts { display: flex; flex-direction: column; gap: 6px; }
.ov-opt { display: flex; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--text-2); padding: 5px 9px; border-radius: 7px; }
.ov-opt .k { flex: none; width: 19px; height: 19px; border-radius: 50%; border: 1px solid #CDD5E0; color: var(--muted); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.ov-opt.right { background: var(--green-bg); color: #0A8C46; font-weight: 500; }
.ov-opt.right .k { background: var(--green); border-color: var(--green); color: #fff; }
.ov-exp { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-top: 9px; padding: 9px 11px; background: #F6F8FC; border-radius: 8px; }
.ov-exp .src { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }

/* ---------------- 抽屉（答题卡） ---------------- */
/* ★ 弹窗要盖在**抽屉**上面（z-index 50 < 抽屉 51 → 弹窗会被抽屉挡住，
   「我的考试记录」抽屉里点开记录就看不见弹窗了）。 */
.drawer-mask, .modal-mask { position: fixed; inset: 0; background: rgba(15,22,38,.45); z-index: 50; }
.modal-mask { z-index: 55; }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 51; width: min(320px, 86vw);
  background: var(--card); display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(15,22,38,.14);
  animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head b { flex: 1; font-size: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.drawer-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sheet b {
  aspect-ratio: 1; border-radius: 9px; background: #F1F4F9; color: var(--text-2);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.sheet b.answered { background: var(--blue-bg); color: var(--blue); }
.sheet b.right { background: var(--green); color: #fff; }
.sheet b.wrong { background: var(--red); color: #fff; }
.sheet b.cur { outline: 2px solid var(--navy); outline-offset: 1px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* ---------------- 弹窗 / toast ---------------- */
.modal-mask { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 380px; overflow: hidden; animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.modal-title { padding: 18px 18px 0; font-size: 16px; font-weight: 600; text-align: center; }
.modal-body { padding: 10px 18px 16px; font-size: 14px; color: var(--text-2); line-height: 1.7; text-align: center; }
.modal-foot { display: flex; border-top: 1px solid var(--line); }
.modal-foot button { flex: 1; height: 46px; font-size: 15px; font-weight: 500; }
.modal-foot button + button { border-left: 1px solid var(--line); }
.modal-foot .cancel { color: var(--muted); }
.modal-foot .ok { color: var(--blue); font-weight: 600; }
/* ★ 破坏性按钮（清除全部通知 / 确认交卷） */
.modal-foot .danger { color: var(--red); font-weight: 600; }
.modal-foot .danger { color: var(--red); font-weight: 600; }
/* ★ 宽版弹窗（复核明细）：屏幕正中、比整页略小、正文可滚动。
   原来的弹窗最大 380px，100 道题的复核内容根本放不下。 */
.modal-mask.big { padding: 16px; }
.modal-mask.big .modal {
  width: min(900px, 94vw); max-width: min(900px, 94vw); max-height: 88vh;
  display: flex; flex-direction: column;
}
.modal-mask.big .modal-title {
  flex: none; text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
/* 标题栏右侧的附加区（放「只看 100% 可信度」这类开关） */
.modal-title-x { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
/* 过滤开关：默认白底，点开后变绿底 */
.filt-btn {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; line-height: 1.6;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.filt-btn:hover { border-color: var(--blue); color: var(--blue); }
.filt-btn.on { background: var(--green-bg); border-color: var(--green-line); color: #0A8C46; font-weight: 600; }
/* 过滤时被藏起来的题 / 答题格 */
.filt-hide { display: none !important; }
.modal-mask.big .modal-body {
  flex: 1; overflow-y: auto; text-align: left; padding: 14px 18px;
  -webkit-overflow-scrolling: touch;
}
.modal-mask.big .modal-foot { flex: none; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60;
  background: rgba(27,31,39,.9); color: #fff; font-size: 13.5px;
  padding: 10px 18px; border-radius: 22px; max-width: 80vw; text-align: center;
}

/* ---------------- 登录 ---------------- */
.login-wrap { max-width: 360px; margin: 8vh auto 0; }
.login-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; }
.login-card h2 { font-size: 18px; text-align: center; margin-bottom: 4px; }
.login-card .sub { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 18px; }
.field { margin-bottom: 12px; }
.field input {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 13px; font-size: 15px; font-family: inherit; background: #FCFDFE;
}
.field input:focus { outline: none; border-color: var(--blue); background: #fff; }

/* ---------------- 密码可见性（显示 / 隐藏） ---------------- */
/* 隐藏浏览器原生那个眼睛图标：
   Chromium 会在 type=password 右侧画一个「显示密码」眼睛，
   但它只在「有内容且保持焦点」时显示，点一下输入框失焦 → 图标消失，
   密码停在明文却再也点不回去。留着它还会跟我们的按钮重叠成两个眼睛。
   ★ 我们的按钮是 input **外面**的独立元素，隐藏原生装饰不会影响它。 */
input[type="password"]::-webkit-textfield-decoration-container,
input[type="password"]::-webkit-inner-spin-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}

.field-pwd { position: relative; }
.field-pwd input { padding-right: 44px; }
.pwd-eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; padding: 0; border: none; background: transparent;
  color: #9AA4B2; cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pwd-eye:hover { background: var(--blue-bg); color: var(--blue); }
.pwd-eye:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.pwd-eye:active { transform: translateY(-50%) scale(.94); }
.pwd-eye.on { color: var(--blue); }
.pwd-eye .eye-shut { display: none; }
.pwd-eye.on .eye-open { display: none; }
.pwd-eye.on .eye-shut { display: block; }
.login-msg { font-size: 12.5px; min-height: 18px; text-align: center; margin: 4px 0 10px; }
.login-msg.err { color: var(--red); }
.login-note { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 14px; text-align: center; }

/* ---------------- 通用 ---------------- */
.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty .ic { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.empty b { display: block; font-size: 15px; color: var(--text-2); margin-bottom: 6px; }
.empty p { font-size: 12.5px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 10px; text-align: center; }
.tip {
  background: #FFF8EC; border: 1px solid #F5DFB8; color: #8A5A12;
  font-size: 12.5px; line-height: 1.7; padding: 11px 13px; border-radius: 10px; margin-bottom: 14px;
}
.toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tool-btn {
  flex: 1; min-width: 104px; height: 38px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.tool-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------- 人机验证控件（照抄工作台 login.html）---------------- */
.vbox {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 12px; padding: 11px 13px;
  background: #F8FAFC; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; user-select: none;
  transition: border-color .18s ease, background .18s ease;
}
.vbox:hover { border-color: var(--blue); background: #fff; }
.vbox:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.vbox-mark {
  position: relative; flex: 0 0 auto;
  width: 20px; height: 20px;
  border: 1.5px solid #B6C0CE; border-radius: 4px; background: #fff;
  transition: background .18s ease, border-color .18s ease;
}
.vbox-spin {
  position: absolute; inset: 3px; border-radius: 50%;
  border: 2.2px solid rgba(44,98,217,.22); border-top-color: var(--blue);
  opacity: 0;
}
.vbox-check { position: absolute; inset: 0; width: 100%; height: 100%; }
.vbox-check path {
  fill: none; stroke: #fff; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20;
}
.vbox-txt { flex: 1 1 auto; font-size: 13px; font-weight: 700; color: var(--text); }
.vbox-brand { font-size: 10.5px; color: #A8B2C1; letter-spacing: .3px; }
.vbox.is-checking .vbox-mark { border-color: #D3DBE6; }
.vbox.is-checking .vbox-spin { opacity: 1; animation: vbox-spin .68s linear infinite; }
.vbox.is-checking .vbox-txt { color: var(--muted); font-weight: 400; }
@keyframes vbox-spin { to { transform: rotate(360deg); } }
.vbox.is-ok { border-color: #BFE3C9; background: #F1FAF3; cursor: default; }
.vbox.is-ok .vbox-mark { background: var(--green); border-color: var(--green); }
.vbox.is-ok .vbox-check path { animation: vbox-draw .26s ease forwards; }
@keyframes vbox-draw { to { stroke-dashoffset: 0; } }
.vbox.is-ok .vbox-txt { color: #0A8C46; }
.vbox.is-ok:hover { border-color: #BFE3C9; background: #F1FAF3; }

/* 登录按钮点不动时的原因说明（不能一个点不动的按钮又不告诉人为什么） */
.gate-hint:not([hidden]) {
  display: block; margin: 8px 0 4px; text-align: center;
  font-size: 11.5px; line-height: 1.5; color: #A97A12;
}

/* 勾选行 */
.chk-row {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 12px; font-size: 12.5px; color: var(--text-2); cursor: pointer;
}
.chk-row input { width: auto; margin: 0; accent-color: var(--blue); }

/* 学习进度里可点击的章节行 */
.cat-row.cat-link { cursor: pointer; }
.cat-row.cat-link:hover { background: #F7F9FC; }
.cat-row.cat-link .cat-go { color: #C3CAD6; font-size: 18px; flex: none; margin-left: 2px; }
.cat-row.cat-link:active { background: #EFF3F9; }

/* ---------------- 管理后台 ---------------- */
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 14px; }
.adm-stat { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 6px; text-align: center; }
.adm-stat b { display: block; font-size: 21px; font-weight: 700; line-height: 1.15; }
.adm-stat span { font-size: 11px; color: var(--muted); }

/* ★ 复核页的筛选 tab：点统计块切换列表（全部 / 待复核 / 已复核） */
.adm-stat.rv-tab { cursor: pointer; transition: box-shadow .15s, background .15s; user-select: none; }
.adm-stat.rv-tab:hover { background: #F7F9FC; }
.adm-stat.rv-tab:active { background: #EFF3F9; }
.adm-stat.rv-tab.on { background: var(--blue); box-shadow: 0 2px 10px rgba(44, 98, 217, .28); }
.adm-stat.rv-tab.on b, .adm-stat.rv-tab.on span { color: #fff; }
.adm-stat.rv-tab.on span { opacity: .88; }

.adm-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.adm-table th {
  text-align: left; font-weight: 600; font-size: 11.5px; color: var(--muted);
  padding: 10px 10px; background: #F7F9FC; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.adm-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table td.nm { font-weight: 600; }
.adm-table td.nm .nm-link { color: var(--blue); text-decoration: underline; cursor: pointer; }
/* 最近成绩后面的板块名 */
.adm-table td .bd { color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.adm-table td.tm { color: var(--muted); font-size: 12px; }
.adm-table td.ops { text-align: right; }
.dot-on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); vertical-align: middle; }
.lnk { color: var(--blue); font-size: 12.5px; padding: 0 4px; }
.lnk.danger { color: var(--red); }
.lnk:active { opacity: .6; }

/* =====================================================================
 * 100 题三题型 · AI 判分 · 人工复核 · 通知
 * ---------------------------------------------------------------------
 * 这一段是「100 题 + 填空/简答 + 复核闭环」上线时新增的组件样式。
 * ===================================================================== */

/* ---------------- 顶栏图标按钮 + 未读角标 ---------------- */
.tb-btn.tb-ico { position: relative; width: 34px; height: 34px; padding: 0; font-size: 16px; line-height: 1; }
.tb-badge {
  position: absolute; top: 1px; right: 0; min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center;
  box-shadow: 0 0 0 1.5px rgba(31,42,68,.9);
}

/* ---------------- 宽版抽屉（考试记录 / 复核明细） ---------------- */
.drawer.wide { width: min(520px, 96vw); }

/* ---------------- 状态小标签 ---------------- */
.pill {
  display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.6;
  padding: 2px 8px; border-radius: 20px; background: #EFF2F7; color: var(--text-2);
  white-space: nowrap;
}
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.green { background: var(--green-bg); color: #0A8C46; }
.pill.amber { background: #FFF4E6; color: #B96F14; }
.pill.red { background: var(--red-bg); color: var(--red); }

/* ---------------- 填空题 / 简答题 作答区 ---------------- */
.fill-wrap, .short-wrap { margin-top: 4px; }
.fill-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fill-lb { flex: none; width: 52px; font-size: 12.5px; color: var(--muted); }
.fill-in {
  flex: 1; min-width: 0; height: 42px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #FBFCFE;
  font: inherit; font-size: 14.5px; color: var(--text); outline: none;
}
.fill-in:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(44,98,217,.10); }
.fill-in:disabled { background: #F4F6FA; color: var(--text-2); }
.short-in {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  background: #FBFCFE; font: inherit; font-size: 14.5px; line-height: 1.75; color: var(--text);
  resize: vertical; outline: none;
}
.short-in:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(44,98,217,.10); }
.short-in:disabled { background: #F4F6FA; color: var(--text-2); }
.q-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 9px; }
.q-note b { color: var(--amber); }
/* ★ 填空/简答里的「确认」按钮要**给正常宽度**。
   .btn 本来是给底部操作条设计的（display:flex + 内容收缩 + flex:1），
   放进 .fill-wrap 这种**块级**容器里，按钮会缩成一小块，「确认」两个字被挤成竖排一列。
   这里改成固定宽度、不换行。 */
.fill-wrap > .btn, .short-wrap > .btn {
  flex: none; width: auto; min-width: 150px; padding: 0 26px; height: 46px;
  white-space: nowrap;
}

/* ---------------- 答案对照行 ---------------- */
.ans-line { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; line-height: 1.7; padding: 3px 0; }
.ans-lb { flex: none; color: var(--muted); }
.ans-you { color: var(--text-2); word-break: break-word; }
.ans-std { color: var(--text-2); word-break: break-word; }
.ans-std b { color: var(--green); }

.ans-card { margin-top: 10px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.ans-card-h {
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 8px 12px; background: #F7F9FC; border-bottom: 1px solid var(--line);
}
.ans-card-b { padding: 10px 12px; font-size: 13.5px; line-height: 1.75; color: var(--text-2); word-break: break-word; }

/* ---------------- 成绩页：状态条 ---------------- */
.score-pills { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.grade-prog { margin-top: 12px; font-size: 13px; color: var(--muted); min-height: 20px; }

/* ---------------- 我的考试记录 / 明细 ---------------- */
/* 只在抽屉里放宽 .cat-num —— 板块页的「N 题」列保持原样，别动 */
.drawer .cat-row .ops { flex: none; }
.drawer .cat-list .cat-num { width: auto; min-width: 86px; font-size: 12px; }
.drawer .cat-list .cat-num b { color: var(--text); font-size: 13px; }

.sub-head { padding: 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.sub-head b { display: block; font-size: 15px; margin-bottom: 5px; }
.sub-head > div { font-size: 12px; color: var(--muted); line-height: 1.7; }
.sub-head .sub-score { font-size: 13.5px; color: var(--text-2); font-weight: 600; margin-top: 4px; }

.sub-list { padding-bottom: 10px; }
.sub-item { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; margin-bottom: 9px; background: #fff; }
.sub-item.ok { border-left: 3px solid var(--green); }
.sub-item.part { border-left: 3px solid var(--amber); }
.sub-item.no { border-left: 3px solid var(--red); }
.sub-item-h { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); }
.sub-item-h b { color: var(--text); font-size: 13px; }
.sub-item-s { margin-left: auto; font-weight: 700; color: var(--text); }
.sub-item-q { font-size: 13.5px; line-height: 1.65; margin: 6px 0 5px; color: var(--text); word-break: break-word; }
.sub-item-a { font-size: 12.5px; line-height: 1.7; color: var(--muted); word-break: break-word; }

/* ---------------- 通知 ---------------- */
.notice {
  position: relative;
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 34px 11px 12px;
  margin-bottom: 9px; background: #fff; cursor: pointer;
}
.notice:active { background: #F7F9FC; }
.notice.unread { background: var(--blue-bg); border-color: #C7DBFB; }
/* ★ 单条通知的删除键（右上角） */
.notice-x {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  color: var(--muted); font-size: 13px; line-height: 22px; text-align: center;
}
.notice-x:hover { background: var(--red-bg); color: var(--red); }
.notice-x:disabled { opacity: .4; }
.notice-h { display: flex; align-items: baseline; gap: 8px; }
.notice-h b { font-size: 13.5px; color: var(--text); }
.notice-h span { margin-left: auto; font-size: 11px; color: var(--muted); flex: none; }
.notice-b { font-size: 12.5px; line-height: 1.72; color: var(--text-2); margin-top: 5px; word-break: break-word; }
/* ★ 通知正文里的名字高亮 */
.notice-who { color: var(--blue); font-weight: 700; }
/* ★ 通知正文里的「AI 建议得分 xx/xx」「整体可信度 xx%」高亮 */
.notice-hl { color: var(--blue); font-weight: 700; }
.notice-tip { text-align: center; font-size: 11.5px; color: var(--muted); padding: 10px 0 4px; }

/* ---------------- 管理后台：复核 ---------------- */
.rv-tip {
  font-size: 12.5px; line-height: 1.7; color: var(--text-2);
  background: var(--blue-bg); border: 1px solid #C7DBFB; border-radius: 10px;
  padding: 9px 11px; margin-bottom: 12px;
}
/* AI 判分服务不可用（模型额度用尽/限流）时的醒目提示 */
.rv-warn {
  font-size: 12.5px; line-height: 1.75; color: #8A5200;
  background: #FFF4E6; border: 1px solid #F5C87A; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px;
}
.rv-list { padding-bottom: 12px; }
.rv-item { border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; margin-bottom: 10px; background: #fff; }
.rv-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.rv-h b { color: var(--text); font-size: 13px; }
.rv-score { margin-left: auto; display: flex; align-items: center; gap: 5px; color: var(--text-2); }
.score-in {
  width: 62px; height: 30px; padding: 0 8px; text-align: center;
  border: 1px solid var(--line); border-radius: 8px; background: #FBFCFE;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); outline: none;
}
.score-in:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,98,217,.10); }
.rv-q { font-size: 13.5px; line-height: 1.65; margin: 7px 0 6px; color: var(--text); word-break: break-word; }
.rv-a { font-size: 12.5px; line-height: 1.72; color: var(--muted); word-break: break-word; }
.rv-a b { color: var(--text-2); }
.rv-a.ok { color: var(--green); }
.rv-pts { margin: 5px 0; padding: 8px 10px; border-radius: 9px; background: #F7F9FC; }
.rv-pt { font-size: 12.5px; line-height: 1.72; color: var(--muted); }
.rv-pt.hit { color: #0A8C46; }

/* ---------------- 考试答题卡：按题型分区 ---------------- */
.card-sec { margin-bottom: 14px; }
.card-sec-h {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12.5px; color: var(--text-2); margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.card-sec-h b { font-size: 13px; color: var(--text); }
.card-sec-h span { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* ---------------- 可信度标签 ---------------- */
.conf-tag {
  display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.7;
  padding: 1px 8px; border-radius: 20px; white-space: nowrap;
}
.conf-hi { background: var(--green-bg); color: #0A8C46; }
.conf-mid { background: #FFF4E6; color: #B96F14; }
.conf-lo { background: var(--red-bg); color: var(--red); }

/* ---------------- 拥有者工具 ---------------- */
.owner-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.owner-tools .btn { width: auto; padding: 0 16px; }

/* ---------------- 打印（总览出纸质卷） ---------------- */
@media print {
  .topbar, .actionbar, .drawer, .drawer-mask, .modal-mask, .toast, .toolbar { display: none !important; }
  body { background: #fff; }
  .view { padding: 0; max-width: none; }
  .ov-cat { break-inside: avoid; page-break-inside: avoid; }
  .ov-head { background: #fff !important; color: #000 !important; border-bottom: 1px solid #000; }
  .ov-head .n { color: #555 !important; }
  .ov-body { border-color: #ccc; }
  .ov-opt.right { background: #fff; color: #000; font-weight: 600; }
  .ov-opt.right .k { background: #fff; border-color: #000; color: #000; }
}

/* =====================================================================
   考试记录详情（2026-11-24 用户要求）
   · 答题卡：答对=绿 / 答错=红 / 未答=白，点题号跳到那道题
   · 全卷逐题（选择 + 填空 + 简答全列）
   · 考生填写的内容用橙色底标出来（未作答保持原样）
   · 填空题空值时「可信度 100%」的底色改红（空值不是「很可信」）
   ===================================================================== */

/* ---------------- 答题卡 ---------------- */
.as-wrap { margin: 2px 0 14px; }
.as-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px;
  font-size: 12px; color: var(--muted); }
.as-lg { display: inline-flex; align-items: center; gap: 5px; }
.as-dot { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--line); display: inline-block; }
.as-dot.ok { background: var(--green-bg); border-color: var(--green-line); }
.as-dot.bad { background: var(--red-bg); border-color: var(--red-line); }
.as-dot.none { background: #fff; }
.as-dot.pending { background: var(--amber-bg); border-color: var(--amber-line); }
.as-hint { margin-left: auto; }
.as-group { margin-bottom: 9px; }
.as-group-t { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.as-grid { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 720px) { .as-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.as-cell {
  border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted);
  font-size: 11px; line-height: 1; text-align: center; padding: 5px 0; cursor: pointer;
  user-select: none; transition: transform .08s ease;
}
.as-cell.ok { background: var(--green-bg); border-color: var(--green-line); color: #0A8C46; font-weight: 600; }
.as-cell.bad { background: var(--red-bg); border-color: var(--red-line); color: var(--red); font-weight: 600; }
.as-cell.none { background: #fff; }
.as-cell.pending { background: var(--amber-bg); border-color: var(--amber-line); color: #B96A0B; font-weight: 600; }
.as-cell:hover { transform: translateY(-1px); border-color: var(--blue); }
.as-cell.cur { box-shadow: 0 0 0 2px var(--blue); }

/* ---------------- 全卷逐题 ---------------- */
.ex-list { padding-bottom: 6px; }
.ex-item { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; margin-bottom: 9px; background: #fff; }
.ex-item.ok { border-left: 3px solid var(--green); }
.ex-item.bad { border-left: 3px solid var(--red); }
.ex-item.none { border-left: 3px solid var(--line); }
.ex-item.pending { border-left: 3px solid var(--amber); }
.ex-item.flash { animation: exFlash 1.1s ease; }
@keyframes exFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(44, 98, 217, 0); }
  25% { box-shadow: 0 0 0 3px rgba(44, 98, 217, .35); }
}
.ex-h { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.ex-h b { color: var(--text); font-size: 13px; }
.ex-score { margin-left: auto; font-weight: 700; color: var(--text); }
.ex-q { font-size: 13.5px; line-height: 1.65; margin: 7px 0 6px; color: var(--text); word-break: break-word; }
.ex-opts { margin: 6px 0 2px; }
.ex-opt { font-size: 12.5px; line-height: 1.7; color: var(--muted); padding: 2px 0; }
.ex-opt b { color: var(--text-2); }
.ex-opt.right { color: #0A8C46; }
.ex-opt.pick { color: var(--blue); }
.ex-blank { font-size: 12.5px; line-height: 1.8; color: var(--muted); word-break: break-word; }
.ex-blank b { color: var(--text-2); }

/* 考生填写的内容：橙色底（用户 2026-11-24 要求）
   未作答（空）的保持原样，不上底色。 */
.fill-user {
  display: inline-block; background: #FFF4E6; color: #B96F14; font-weight: 600;
  padding: 1px 7px; border-radius: 5px; word-break: break-word;
}
.fill-user.pick { display: inline-block; }

/* 填空题「空值」时的可信度 100%：底色改红 ——
   没填不是「判断得很准」，是「压根没答」，绿色会误导。 */
.conf-tag.conf-empty { background: var(--red-bg); color: var(--red); }

/* ============================================================
 * 新手指引（2026-11-25）
 * ------------------------------------------------------------
 * 洞用 box-shadow 扩散挖出来：元素以外全压暗，元素本身透明。
 * ★ 整层 pointer-events:none —— 洞里的元素照常能点。
 *   「只让点某处」靠 quiz.js 里的 document 捕获阶段拦截，不靠遮罩挡事件。
 * ============================================================ */
.tut-layer {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
}
/* 高亮洞：橙色描边 + 向外扩散的半透明黑 */
.tut-hole {
  position: fixed; pointer-events: none;
  border: 3px solid #FFB020; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.31);
  transition: top .5s ease, left .5s ease, width .5s ease, height .5s ease;
}
/* 讲解气泡 */
.tut-bubble {
  position: fixed; pointer-events: auto;
  background: #fff; border-radius: 14px; padding: 14px 16px 12px;
  box-shadow: 0 10px 34px rgba(0,0,0,.30);
  font-size: 13.5px; line-height: 1.72; color: var(--navy);
  animation: tutIn .22s ease;
}
@keyframes tutIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tut-bubble-h {
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
}
.tut-bubble-h .tut-idx {
  flex: none; font-size: 11px; font-weight: 700; color: var(--muted);
  background: #F2F4F8; border-radius: 20px; padding: 2px 8px;
}
.tut-bubble-h .tut-title { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.tut-bubble-h .tut-skip {
  margin-left: auto; flex: none; border: 0; background: transparent;
  color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px 4px;
  font-family: inherit; border-radius: 6px;
}
.tut-bubble-h .tut-skip:hover { color: var(--navy); background: #F2F4F8; }
.tut-bubble-b { color: #3A4459; }
.tut-bubble-b b { color: var(--navy); }
.tut-bubble-f {
  display: flex; align-items: center; gap: 10px; margin-top: 11px;
  padding-top: 10px; border-top: 1px solid #EDF0F5;
}
.tut-bubble-f .tut-hint {
  flex: 1; font-size: 12px; color: #B96F14; font-weight: 600;
}
.tut-bubble-f .tut-next {
  flex: none; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 700;
  padding: 8px 18px; font-family: inherit;
}
.tut-bubble-f .tut-next:active { transform: scale(.98); }
/* 首页封面右下角的新手指引入口 */
.tut-entry { background: rgba(255,255,255,.16) !important; color: #fff !important; }
.tut-entry:active { background: rgba(255,255,255,.26) !important; }
@media (max-width: 520px) {
  .tut-bubble { font-size: 13px; padding: 12px 14px 10px; }
  .tut-bubble-f .tut-next { padding: 7px 15px; }
}/* ★ 教程期间「只是讲解、不是入口」的按钮：点了没反应，画面保持原样 */
.tut-noclick { pointer-events: none !important; cursor: default !important; }