:root {
  /* 明亮清新色板 */
  --bg: #f3fbfb;
  --panel: #ffffff;
  --ink: #14323d;
  --muted: #5f7884;
  --line: #e2f0f1;
  --primary: #0ea5e9;
  --primary-d: #0284c7;
  --accent: #f59e0b;
  --ok: #10b981;
  --ok-bg: #e7fbf2;
  --err: #f43f5e;
  --err-bg: #ffeef1;
  --choice: #8b5cf6;
  --material: #fb923c;
  /* 鲜明功能色 */
  --c-teal: #14b8a6;
  --c-sky: #0ea5e9;
  --c-pink: #ec4899;
  --c-amber: #f59e0b;
  --c-coral: #fb7185;
  --c-violet: #8b5cf6;
  --c-lime: #84cc16;
  --shadow: 0 14px 38px rgba(20, 80, 110, 0.12);
  --shadow-sm: 0 6px 18px rgba(20, 80, 110, 0.09);
  --radius: 16px;
  --grad-brand: linear-gradient(120deg, #06b6d4 0%, #3b82f6 52%, #8b5cf6 100%);
  --grad-choice: linear-gradient(135deg, #14b8a6, #0ea5e9);
  --grad-material: linear-gradient(135deg, #fb923c, #f59e0b);
  --grad-ok: linear-gradient(135deg, #10b981, #22c55e);
  --grad-soft: linear-gradient(135deg, #e6fbff, #eafbf2);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(820px 520px at 8% -10%, rgba(20, 184, 166, 0.18), transparent 58%),
    radial-gradient(760px 460px at 96% -2%, rgba(236, 72, 153, 0.15), transparent 55%),
    radial-gradient(680px 460px at 50% 112%, rgba(14, 165, 233, 0.16), transparent 60%),
    linear-gradient(160deg, #e3f9fb 0%, #ecfbf0 42%, #f6effb 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
/* ===== 框架布局：侧边栏 + 内容区 ===== */
.layout { display: flex; align-items: stretch; min-height: 100vh; }
/* 侧边栏（框架骨架 + 鲜明配色） */
.sidebar {
  width: 236px; flex: 0 0 236px; align-self: flex-start; position: sticky; top: 0;
  height: 100vh; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, #0e7490 0%, #0e7490 6%, #155e75 52%, #1e3a8a 100%);
  color: #eafcff; padding: 20px 14px;
  box-shadow: 5px 0 28px rgba(8, 47, 73, 0.30); z-index: 30;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; }
.side-brand .brand-badge {
  width: 44px; height: 44px; border-radius: 13px; font-size: 23px;
  background: rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.side-brand .b-t { font-size: 15.5px; font-weight: 800; letter-spacing: .3px; line-height: 1.3; }
.side-brand .b-s { font-size: 11.5px; opacity: .8; margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.nav-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: none; background: transparent; color: #d6f3fb; cursor: pointer;
  font-size: 14.5px; font-weight: 600; padding: 11px 13px; border-radius: 12px;
  text-align: left; transition: background .15s, color .15s, transform .12s; position: relative;
}
.nav-btn .ico { font-size: 18px; width: 22px; text-align: center; }
.nav-btn .lab { flex: 1; }
.nav-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-btn.active {
  background: linear-gradient(120deg, rgba(255, 255, 255, .96), rgba(224, 247, 250, .9));
  color: #0e5a6e; font-weight: 800; box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.nav-btn.active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--accent);
}
.nav-btn .badge {
  background: var(--err); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.side-foot #apiStatus { color: #eafcff; }
.side-tip { font-size: 11.5px; opacity: .72; margin-top: 10px; text-align: center; }
/* 内容区 */
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
header.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 13px 22px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 16px rgba(20, 80, 110, .07);
}
header.topbar #pageTitle { font-size: 17px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
header.topbar #pageTitle::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--grad-brand); display: inline-block; }
header.topbar .top-hint { font-size: 12px; color: var(--muted); }
.bottomnav { display: none; }
main { max-width: 940px; width: 100%; margin: 20px auto 40px; padding: 0 18px; flex: 1; }

/* 首页彩色 hero 横幅 */
.hero {
  border-radius: var(--radius);
  background: linear-gradient(120deg, #06b6d4 0%, #3b82f6 55%, #8b5cf6 100%);
  color: #fff; padding: 26px 26px; margin-bottom: 18px;
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.32);
  position: relative; overflow: hidden;
  animation: fadeUp .42s ease both;
}
.hero h2 { margin: 0 0 8px; font-size: 23px; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.hero p { margin: 0 0 18px; opacity: .92; font-size: 14px; max-width: 560px; }
.hero .btn {
  background: #fff; color: var(--primary-d); box-shadow: 0 6px 16px rgba(0,0,0,.14);
}
.hero .btn:hover { background: #f0fbff; }
.hero .blob {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .22;
  width: 160px; height: 160px;
}
.hero .b1 { background: #5eead4; right: -30px; top: -40px; }
.hero .b2 { background: #f9a8d4; right: 90px; bottom: -70px; width: 120px; height: 120px; }
.hero .b3 { background: #fcd34d; right: 200px; top: 30px; width: 90px; height: 90px; }

/* cards & layout */
.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.8);
  animation: fadeUp .42s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.muted { color: var(--muted); font-size: 13px; }
h2.sec { font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
h2.sec::before {
  content: ""; width: 5px; height: 18px; border-radius: 3px;
  background: var(--grad-brand); display: inline-block;
}
h3 { font-size: 15px; margin: 0 0 8px; }

/* dashboard stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; }
.stat {
  background: var(--panel); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px 16px; text-align: center;
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.8);
  transition: transform .18s, box-shadow .18s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: var(--bar, var(--primary));
}
.stat .ico {
  font-size: 26px; line-height: 1; margin-bottom: 6px;
  width: 50px; height: 50px; margin: 0 auto 8px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bar-bg, #e6f8fb); box-shadow: 0 6px 14px var(--bar-shadow, rgba(14,165,233,.2));
}
.stat .num { font-size: 30px; font-weight: 800; color: var(--bar, var(--primary)); }
.stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat.s-choice { --bar: #8b5cf6; --bar-bg: #f1eaff; --bar-shadow: rgba(139,92,246,.25); }
.stat.s-material { --bar: #fb923c; --bar-bg: #fff0e3; --bar-shadow: rgba(251,146,60,.25); }
.stat.s-module { --bar: #0ea5e9; --bar-bg: #e6f6ff; --bar-shadow: rgba(14,165,233,.25); }
.stat.s-wrong { --bar: #f43f5e; --bar-bg: #ffeef1; --bar-shadow: rgba(244,63,94,.25); }

/* type chips */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #e6f8fb; color: var(--primary); margin: 0 6px 6px 0;
}
.chip.choice { background: #f1eaff; color: var(--choice); }
.chip.material { background: #fff0e3; color: var(--material); }

/* feature cards (首页功能入口) */
.feature-card {
  flex: 1; min-width: 210px; border-radius: 16px; padding: 20px 18px 16px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); cursor: default; transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column; gap: 8px;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c7ecf2; }
.feature-card .fic {
  width: 50px; height: 50px; border-radius: 15px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 26px; color: #fff;
  box-shadow: 0 8px 18px rgba(14,165,233,.32);
}
.feature-card.c1 .fic { background: var(--grad-choice); }
.feature-card.c2 .fic { background: var(--grad-material); }
.feature-card.c3 .fic { background: var(--grad-ok); }
.feature-card h3 { font-size: 16px; margin: 4px 0 0; }
.feature-card p.muted { margin: 0; flex: 1; }
.feature-card .arr {
  align-self: flex-end; color: var(--primary); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
}
.feature-card .btn { align-self: flex-start; }

/* buttons */
.btn {
  border: none; background: var(--grad-brand); color: #fff;
  padding: 11px 20px; border-radius: 11px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .12s, box-shadow .12s, filter .12s;
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.3);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(6,182,212,.36); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: #e6f8fb; color: var(--primary); box-shadow: none; }
.btn.ghost:hover { background: #d2f2f8; }
.btn.warn { background: var(--err); box-shadow: 0 6px 16px rgba(244,63,94,.3); }
.btn.warn:hover { filter: brightness(1.05); }
.btn.ok { background: var(--grad-ok); box-shadow: 0 6px 16px rgba(16,185,129,.3); }
.btn.ok:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sm { padding: 7px 13px; font-size: 13px; box-shadow: none; }

/* question block */
.q-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.q-stem { font-size: 16px; font-weight: 600; margin-bottom: 14px; white-space: pre-wrap; }
.opt {
  position: relative; display: block; width: 100%; text-align: left;
  border: 1.5px solid var(--line); background: #fcfffe; border-radius: 11px;
  padding: 12px 44px 12px 14px; margin-bottom: 10px; font-size: 15px; cursor: pointer;
  transition: border-color .12s, background .12s, transform .08s;
}
.opt:hover { border-color: var(--primary); background: #eafaff; }
.opt:active { transform: scale(.995); }
.opt.sel { border-color: var(--primary); background: #e2f6ff; box-shadow: inset 3px 0 0 var(--primary); }
.opt.correct { border-color: var(--ok); background: var(--ok-bg); color: #0a6b4b; font-weight: 600; box-shadow: inset 3px 0 0 var(--ok); }
.opt.wrong { border-color: var(--err); background: var(--err-bg); color: #b21530; font-weight: 600; box-shadow: inset 3px 0 0 var(--err); }
.opt .lab { display: inline-block; width: 22px; font-weight: 700; color: var(--primary); }
.opt.correct .lab, .opt.wrong .lab { color: inherit; }
.opt::after {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 16px; font-weight: 800; opacity: 0; transition: opacity .15s;
}
.opt.sel::after { content: "✔"; color: var(--primary); opacity: 1; }
.opt.correct::after { content: "✔"; color: var(--ok); opacity: 1; }
.opt.wrong::after { content: "✘"; color: var(--err); opacity: 1; }

/* material block */
.material-box {
  background: #f3fcfb; border: 1px solid var(--line);
  border-left: 4px solid var(--material); border-radius: 9px;
  padding: 12px 14px; margin-bottom: 12px; font-size: 14px; white-space: pre-wrap;
}
.material-box .mt { font-weight: 700; color: var(--material); display: block; margin-bottom: 4px; }
.subq { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.subq .sq { font-weight: 600; margin-bottom: 8px; }
.ref-box {
  background: var(--ok-bg); border: 1px solid #b6ecd6; border-left: 4px solid var(--ok);
  border-radius: 9px; padding: 12px 14px; margin-top: 10px; font-size: 14px; white-space: pre-wrap;
}
.analysis-box {
  background: linear-gradient(180deg, #fff8ec, #fff3dd);
  border: 1px solid #f7dca0; border-left: 4px solid var(--accent);
  border-radius: 9px; padding: 12px 14px; margin-top: 14px; font-size: 14px; white-space: pre-wrap;
}
.analysis-box::before { content: "💡 "; font-size: 14px; }
.feedback { font-weight: 700; margin: 12px 0 0; }
.feedback.ok { color: var(--ok); }
.feedback.no { color: var(--err); }

/* progress */
.progress {
  font-size: 13px; color: var(--muted); margin-bottom: 12px;
  background: var(--grad-soft); border: 1px solid #cdeef2; border-radius: 10px; padding: 9px 13px;
}

/* wrong list */
.wrong-item {
  border: 1px solid var(--line); border-left: 5px solid var(--muted);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fff;
  transition: transform .15s, box-shadow .15s;
}
.wrong-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.wrong-item.t-choice { border-left-color: var(--choice); }
.wrong-item.t-material { border-left-color: var(--material); }
.wrong-item .wt { font-weight: 700; font-size: 15px; margin-bottom: 6px; white-space: pre-wrap; }
.wrong-item .meta { font-size: 12px; color: var(--muted); margin: 6px 0; }
.empty {
  text-align: center; color: var(--muted); padding: 46px 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty .big { font-size: 46px; }
.wrong-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.wrong-toolbar .count {
  background: var(--err-bg); color: var(--err); font-weight: 700; font-size: 13px;
  padding: 5px 12px; border-radius: 999px;
}

/* modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 50, 60, .5);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 50; overflow: auto; backdrop-filter: blur(3px);
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 720px; width: 100%;
  padding: 22px; box-shadow: var(--shadow); animation: fadeUp .3s ease both;
}
.modal h3 { margin-top: 0; }
.modal-close {
  position: sticky; top: 0; float: right; border: none; background: #e6f8fb; color: var(--muted);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1;
}
.modal-close:hover { background: #d2f2f8; color: var(--ink); }

/* settings */
.setting-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.setting-row label { font-weight: 600; font-size: 14px; }
.setting-row input, .setting-row select {
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px;
  transition: border-color .12s, box-shadow .12s; background: #fff;
}
.setting-row input:focus, .setting-row select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,.16);
}
.hint { font-size: 12px; color: var(--muted); }
.loader { display: inline-block; width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 6px; }
.loader.dark { border-color: var(--primary); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag-api { background: #e7fbf2; color: #0a9d66; border: 1px solid #b6ecd6; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tag-api::before { content: "🤖"; }
.hidden { display: none !important; }
kbd { background:#e6f8fb; border:1px solid var(--line); border-radius:6px; padding:1px 6px; font-size:12px; }
.footer-note { text-align:center; color:var(--muted); font-size:12px; margin-top:20px; }

/* 原卷配图 */
.q-img {
  max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px;
  display: block; margin: 0 auto 12px; max-height: 380px; background: #fff;
  box-shadow: var(--shadow-sm);
}

/* 完成页装饰 */
.done-banner {
  text-align: center; padding: 14px 0 4px;
  background: linear-gradient(135deg, #e7fbf2, #e6f6ff);
  border: 1px solid #c7ecd6;
}
.done-banner .em { font-size: 40px; }

/* ===== 层次感增强 ===== */
/* 头部/导航浮层 */
header.topbar { box-shadow: 0 12px 34px rgba(6, 182, 212, 0.30); }
nav.tabs {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 18px rgba(20, 80, 110, 0.10);
}
/* 练习题号网格导航（主-次层次 + 进度感） */
.qnav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  background: linear-gradient(180deg, #ffffff, #f2fbfb);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  animation: fadeUp .42s ease both;
}
.qnav .qlabel { width: 100%; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.qn {
  min-width: 32px; height: 32px; padding: 0 6px; border-radius: 9px;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s, border-color .15s, color .15s;
}
.qn.cur { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(6,182,212,.32); transform: translateY(-2px); }
.qn.ok { background: #e7fbf2; color: #0a9d66; border-color: #b6ecd6; }
.qn.no { background: #ffeef1; color: #d11a3a; border-color: #f6c2cb; }
.qn.done { background: #e6f6ff; color: var(--primary); border-color: #b9e4fb; }
/* 题目内部分区层次：信息条 → 题干块 → 材料块 → 解析块 */
.q-meta {
  background: linear-gradient(180deg, #f4fbfb, #ffffff);
  border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 14px;
}
.card .q-stem {
  background: #fbfeff; border: 1px solid #eef6f8; border-radius: 12px;
  padding: 14px 16px;
}
/* 错题集按类型分组（组级 → 条目级） */
.wrong-group { margin-bottom: 18px; }
.group-title {
  display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800;
  color: var(--ink); margin: 4px 2px 10px;
}
.group-title::before { content: ""; width: 6px; height: 18px; border-radius: 3px; display: inline-block; background: var(--grad-choice); }
.group-title.material::before { background: var(--grad-material); }
.group-title .gt-count { font-size: 12px; font-weight: 700; color: var(--muted); background: #eef6f8; padding: 2px 9px; border-radius: 999px; }

/* ===== 学生账号 / 老师后台 ===== */
.tabs2 { display: flex; gap: 8px; margin-bottom: 14px; }
.atab {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  padding: 9px 18px; border-radius: 11px; cursor: pointer; font-weight: 600; transition: .15s;
}
.atab.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(6,182,212,.3); }
.auth-user {
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
  border: 1px solid #bbf7d0; border-radius: 14px; padding: 16px;
}
.auth-user p { margin: 8px 0; }
.table-wrap { overflow-x: auto; margin-top: 10px; border-radius: 12px; border: 1px solid var(--line); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 540px; }
table.grid th, table.grid td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid thead th { background: linear-gradient(135deg, #f0f9ff, #ecfeff); color: #0e7490; font-weight: 700; position: sticky; top: 0; }
table.grid tbody tr:nth-child(even) { background: #f8fafc; }
table.grid tbody tr:hover { background: #ecfeff; }
#roCsv { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }

/* ===== 手机端适配 ===== */
@media (max-width: 640px) {
  .layout { display: block; }
  .sidebar { display: none; }
  header.topbar { padding: 12px 14px; position: static; }
  header.topbar #pageTitle { font-size: 15px; }
  header.topbar .top-hint { display: none; }
  main { margin: 14px auto 84px; padding: 0 12px; }
  .bottomnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20, 80, 110, .12);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomnav .nav-btn { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11px; flex: 1; border-radius: 10px; color: var(--muted); }
  .bottomnav .nav-btn .ico { font-size: 21px; width: auto; }
  .bottomnav .nav-btn .lab { font-size: 11px; }
  .bottomnav .nav-btn.active { background: var(--grad-soft); color: var(--primary-d); box-shadow: none; }
  .bottomnav .nav-btn.active::before { display: none; }
  .bottomnav .nav-btn { position: relative; }
  .bottomnav .badge { position: absolute; top: 3px; right: 50%; margin-right: -24px; min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; }
  .card { padding: 16px 14px; border-radius: 14px; }
  .q-stem { font-size: 15.5px; }
  .opt { padding: 14px 42px 14px 12px; font-size: 15px; }
  .btn { padding: 12px 16px; font-size: 14px; }
  .btn.sm { padding: 9px 12px; }
  .stat { padding: 14px 10px; }
  .stat .num { font-size: 24px; }
  .material-box { font-size: 13.5px; padding: 10px 12px; }
  .modal-mask { padding: 16px 8px; }
  .q-img { max-height: 300px; }
  .feature-card { min-width: 100%; }
  .row { gap: 8px; }
  .qnav { gap: 6px; padding: 10px; }
  .qn { min-width: 29px; height: 30px; font-size: 12px; }
  .card .q-stem { padding: 12px; }
  .group-title { font-size: 14px; }
}

/* 答题评价徽章 */
.eval-badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.6;color:#fff;white-space:nowrap}
.eval-badge.lv0{background:#9aa3b2}
.eval-badge.lv1{background:#ef6c5a}
.eval-badge.lv2{background:#f0a93b}
.eval-badge.lv3{background:#3aa0ff}
.eval-badge.lv4{background:#2bb673}
.eval-text{margin-top:4px;font-size:12px;color:var(--muted);line-height:1.5;max-width:260px}
.auth-login{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.auth-login input{flex:1 1 140px;min-width:120px}

/* 模拟测验 · 结果 / 建议 / 回顾 */
.feature-card.c4 .fic { background: var(--grad-module); }
.result-card{text-align:center}
.result-card .em{font-size:40px}
.score-big{font-size:42px;font-weight:800;color:var(--accent);margin:6px 0}
.score-big .score-tot{font-size:18px;color:var(--muted);font-weight:600}
.sug-box{background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid #ffe2c2;border-radius:14px;padding:14px 16px;line-height:1.7}
.rev-list{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.rev-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:10px;background:#f7f9fc;border-left:4px solid #cdd6e4;font-size:14px}
.rev-item.ok{border-left-color:var(--ok)}
.rev-item.no{border-left-color:var(--err)}
.rev-item .rev-no{width:22px;height:22px;border-radius:50%;background:#e6ebf3;color:#46506b;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.rev-item .rev-st{flex:1;color:#46506b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rev-item .rev-r{font-size:12px;font-weight:700;flex:0 0 auto}
.rev-item.ok .rev-r{color:var(--ok)}
.rev-item.no .rev-r{color:var(--err)}

/* 课题成果标注 / 材料题文字作答 */
.project-banner{background:linear-gradient(135deg,#eef4ff,#f6f0ff);border:1px solid #d6e2ff;border-left:4px solid var(--accent);font-size:14px;line-height:1.6}
.project-banner b{color:var(--accent)}
.material-box{background:#f8fafc;border:1px solid #e6ebf3;border-radius:12px;padding:10px 12px;margin:10px 0;font-size:14px;line-height:1.7}
.material-box .mt{display:inline-block;font-weight:700;color:var(--accent);margin-right:6px}
.mat-input{width:100%;min-height:84px;resize:vertical;padding:10px 12px;border:1px solid #d4dbe8;border-radius:10px;font-size:14px;line-height:1.6;font-family:inherit;box-sizing:border-box}
.mat-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(99,102,241,.15)}
.kw-line{margin-top:8px;font-size:13px;line-height:1.8}
.kw{display:inline-block;padding:1px 8px;border-radius:999px;margin:2px 4px 2px 0;font-size:12px;border:1px solid transparent}
.kw.hit{background:#e7f7ee;color:#15803d;border-color:#b6e6c8}
.kw.miss{background:#fdeaea;color:#b91c1c;border-color:#f3c2c2}
.score-inline{font-weight:800;color:var(--accent)}
