/* ==========================================================================
   信考通 · 高中信息技术在线考试
   设计语言：柔和（soft）· 细腻（delicate）· 克制（restrained）
   - 基础色：暖白背景 + 靛蓝主色，避免高饱和刺眼
   - 层次：以 1px 淡描边 + 极轻阴影建立，而不是重投影
   - 节奏：8pt 间距体系，18/14/10 三级圆角
   - 布局：PC 顶部导航 + 1180 容器；考试页左右分栏（题目 + 答题卡）
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #f5f6f8;
  --bg-2: #eef0f4;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f4f6f9;

  --ink: #1f2630;
  --ink-2: #55606e;
  --ink-3: #8b95a5;
  --ink-4: #b4bdca;

  --line: #e6e9ef;
  --line-2: #f0f2f6;
  --line-3: #d9dee6;

  --brand: #2b62d9;
  --brand-2: #2b62d9;
  --brand-ink: #1e4cb0;
  --brand-soft: #edf2fc;
  --brand-soft-2: #dde7fa;
  --brand-line: #c3d4f5;

  --green: #2fa37c;
  --green-soft: #eaf6f1;
  --green-line: #bfe5d6;

  --amber: #d18a2c;
  --amber-soft: #fbf4e7;
  --amber-line: #f0dfb8;

  --rose: #d05a72;
  --rose-soft: #fbeef1;
  --rose-line: #f2cdd6;

  --r-xl: 14px;
  --r-lg: 12px;
  --r-md: 10px;
  --r-sm: 7px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(24, 32, 56, 0.05);
  --sh-2: 0 2px 6px rgba(24, 32, 56, 0.05), 0 10px 26px -16px rgba(24, 32, 56, 0.18);
  --sh-3: 0 10px 40px -16px rgba(24, 32, 56, 0.24);
  --sh-brand: none;

  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --tab-h: 62px;
}

/* ---------- 2. Reset ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Segoe UI", Inter, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand-soft-2); }

/* 滚动条：细而淡 */
* { scrollbar-width: thin; scrollbar-color: #d3dbeb transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #d8dfee; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #c3cde3; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. Typography & utils ---------- */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.grow { flex: 1; min-width: 0; }
.stat-grid > *, .bank-sec .bank-grid > *, .paper-grid > *, .practice-grid > *, .home-cols > * { min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

/* ---------- 4. Layout ---------- */
.page { min-height: 100vh; padding-bottom: 40px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 30px 0 20px; gap: 16px; }
.page-title { font-size: 24px; font-weight: 650; letter-spacing: -0.2px; }
.page-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 5. Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 64px; display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: transparent; box-shadow: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-mark .brand-logo { width: 34px; height: 34px; }
.brand-name { font-size: 15.5px; font-weight: 680; letter-spacing: 0.2px; }
.brand-sub { font-size: 10.5px; color: var(--ink-4); letter-spacing: 0.6px; margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 8px 14px; border-radius: 10px;
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--surface-3); }
.nav-link.on { color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); transition: all 0.18s var(--ease);
}
.user-chip:hover { border-color: var(--brand-line); box-shadow: var(--sh-1); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 650;
  background: var(--brand);
}
.avatar.lg { width: 54px; height: 54px; font-size: 19px; border-radius: 18px; }
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }
.user-chip .u-name { font-size: 13px; font-weight: 560; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 560; white-space: nowrap;
  border: 1px solid transparent; transition: all 0.18s var(--ease);
  user-select: none;
}
.btn:active { transform: translateY(0.5px) scale(0.995); }
.btn-primary {
  color: #fff; background: var(--brand);
}
.btn-primary:hover { background: #2455c2; }
.btn-primary:disabled { background: #c5cddb; box-shadow: none; cursor: not-allowed; }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { background: var(--brand-soft-2); }
.btn-ghost { background: var(--surface); border-color: var(--line-3); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand-line); color: var(--brand-ink); background: #fbfcff; }
.btn-danger { background: var(--rose-soft); color: #c84865; }
.btn-danger:hover { background: #fbe2e9; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 12.5px; border-radius: 10px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 14.5px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn.narrow { min-width: 104px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- 7. Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  min-width: 0; /* 网格/弹性布局子项允许收缩，避免 nowrap 文本把轨道撑宽（移动端横向滚动条） */
}
.card-pad { padding: 20px 22px; }
.card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title { font-size: 15px; font-weight: 640; letter-spacing: -0.1px; }
.card-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.section { margin-top: 26px; }
.section-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 16px; font-weight: 640; display: flex; align-items: center; gap: 8px; }
.section-title::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px;
  background: var(--brand);
}
.link-more { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 3px; transition: color 0.16s; white-space: nowrap; flex-shrink: 0; }
.link-more:hover { color: var(--brand); }

/* ---------- 8. Chips / badges / progress ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 12.5px; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); transition: all 0.18s var(--ease);
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  white-space: nowrap;
}
.chip:hover { border-color: var(--brand-line); color: var(--brand-ink); }
.chip.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.chip .n { font-size: 11px; opacity: 0.7; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 7px;
  font-size: 11px; font-weight: 560; letter-spacing: 0.1px;
}
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge-green { background: var(--green-soft); color: #1f9470; }
.badge-amber { background: var(--amber-soft); color: #b97b1e; }
.badge-rose { background: var(--rose-soft); color: #c04b66; }
.badge-gray { background: var(--surface-3); color: var(--ink-3); }

.bar { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width 0.6s var(--ease); }
.bar.green > i { background: var(--green); }
.bar.thin { height: 4px; }

/* ---------- 9. Inputs ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; font-weight: 520; }
.input {
  width: 100%; height: 44px; padding: 0 14px;
  border-radius: var(--r-md); border: 1px solid var(--line-3);
  background: var(--surface-2); font-size: 14px; outline: none;
  transition: all 0.18s var(--ease);
}
.input::placeholder { color: var(--ink-4); }
.input:hover { border-color: #d3dbee; }
.input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3.5px rgba(43, 98, 217, 0.11); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.65; font-family: inherit; }
.input-search {
  height: 40px; padding-left: 38px; border-radius: var(--r-pill);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393a0b7' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") no-repeat 14px center;
  border: 1px solid var(--line); outline: none; width: 260px;
  transition: all 0.18s var(--ease);
}
.input-search:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3.5px rgba(43, 98, 217, 0.1); }

/* ---------- 10. 登录（视觉与 register.html 完全一致） ---------- */
.auth-wrap {
  position: relative; min-height: 100vh;
  /* 登录卡片加了图形验证后比原来高，矮屏要能滚动；safe center 保证内容超高时从顶部排 */
  overflow-x: hidden; overflow-y: auto;
  display: flex; align-items: safe center; justify-content: center;
  padding: 28px 20px; background: #f4f6fb;
}
.auth-wrap::before, .auth-wrap::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(6px);
}
.auth-wrap::before {
  width: 520px; height: 520px; left: -180px; top: -200px;
  background: radial-gradient(circle, #dbe6fb 0%, rgba(219, 230, 251, 0) 68%);
}
.auth-wrap::after {
  width: 620px; height: 620px; right: -220px; bottom: -260px;
  background: radial-gradient(circle, #e2ecfd 0%, rgba(226, 236, 253, 0) 70%);
}
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 1108px;
  display: grid; grid-template-columns: minmax(340px, 428px) 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px -24px rgba(23, 38, 70, 0.28), 0 2px 8px rgba(23, 38, 70, 0.05);
  overflow: hidden;
}

/* 左侧品牌栏 */
.auth-brand {
  position: relative; padding: 38px 32px; color: #fff;
  background: linear-gradient(158deg, #3a74e6 0%, #2b62d9 46%, #1f4cbb 100%);
  display: flex; flex-direction: column; gap: 24px; overflow: hidden;
}
.auth-brand::after {
  content: ""; position: absolute; right: -90px; bottom: -110px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.1);
}
.auth-brand::before {
  content: ""; position: absolute; right: -40px; top: -70px; width: 190px; height: 190px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.07);
}
.auth-logo {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.5px;
}
.auth-logo img { width: 38px; height: 38px; object-fit: contain; display: block; }
.auth-logo .name { font-size: 19px; }
.auth-brand h1 {
  position: relative; z-index: 1; margin: 6px 0 0;
  font-size: 26px; line-height: 1.35; font-weight: 700; letter-spacing: 0.2px;
}
.auth-brand .lead {
  position: relative; z-index: 1; margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86); font-size: 13.5px; line-height: 1.75;
}
.auth-feats { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; margin-top: 2px; }
.auth-feat { display: flex; gap: 11px; align-items: flex-start; }
.auth-feat .ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; margin-top: 1px;
  background: rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center;
}
.auth-feat .ico svg { width: 14px; height: 14px; }
.auth-feat b { font-size: 13.5px; font-weight: 600; }
.auth-feat .d { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); line-height: 1.6; }
.auth-note {
  position: relative; z-index: 1; margin-top: auto; font-size: 12.5px;
  color: rgba(255, 255, 255, 0.86); background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px;
  padding: 11px 13px; line-height: 1.7;
}
.auth-note b { font-weight: 600; }

/* 右侧表单 */
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 34px 44px 28px; }
/* 标题区与第一个字段之间留出呼吸：说明文字下加淡分隔线，再空一段 */
.auth-head { margin: 0 0 24px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.auth-head h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: 0.2px; }
.auth-head p { margin: 0; color: var(--ink-3); font-size: 13px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth-field label { font-size: 15px; color: var(--ink); font-weight: 700; }
.auth-field input {
  width: 100%; height: 42px; padding: 0 12px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--ink); font-size: 14px; outline: none; transition: all 0.16s ease;
}
.auth-field input::placeholder { color: var(--ink-4); }
.auth-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 98, 217, 0.12); }
.auth-btn {
  width: 100%; height: 46px; margin-top: 8px; border: 0; border-radius: 10px; cursor: pointer;
  font-size: 15px; font-weight: 600; letter-spacing: 0.5px; font-family: inherit; color: #fff;
  background: linear-gradient(180deg, #3a74e6, #2b62d9); transition: all 0.18s ease;
}
.auth-btn:hover { filter: brightness(1.04); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }
.auth-tip {
  margin-top: 16px; padding: 11px 13px; border-radius: 10px; line-height: 1.6;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 12.5px;
  display: flex; gap: 8px; align-items: center;
}
.auth-tip b { font-weight: 700; }
.auth-foot { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.auth-foot a { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ---------- 10.1 汉字点选验证码（点击入口后弹出） ---------- */
.auth-cap { margin: 2px 0 4px; }
.auth-cap-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.auth-cap-head span { font-size: 15px; color: var(--ink); font-weight: 700; }
.auth-cap-head small { color: var(--ink-4); font-size: 11.5px; }
.cap-slot { user-select: none; -webkit-user-select: none; }

.cc-entry {
  width: 100%; height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border: 1px solid var(--line-3); border-radius: 10px;
  background: var(--surface-2); color: var(--ink-2); font-size: 13px;
  font-weight: 550; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cc-entry:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }
.cc-entry-ico { display: grid; place-items: center; color: var(--brand); flex: none; }
.cc-entry-text { flex: 1; text-align: left; }
.cc-entry-arrow { font-size: 20px; line-height: 1; color: var(--ink-4); }
.cc-entry[data-state="ok"] {
  border-color: var(--green-line); background: var(--green-soft); color: #1a7f45; cursor: default;
}
.cc-entry[data-state="ok"] .cc-entry-ico { color: #1a7f45; }
.cc-entry[data-state="ok"] .cc-entry-arrow { display: none; }
.cc-entry[data-state="ok"]:hover { border-color: var(--green-line); background: var(--green-soft); color: #1a7f45; }
/* 验证失败：回到登录页后入口显示「✗ 验证失败 点击重试」 */
.cc-entry[data-state="fail"] { border-color: #f3c2c2; background: #fdf1f1; color: #c53030; }
.cc-entry[data-state="fail"] .cc-entry-ico { color: #c53030; }
.cc-entry[data-state="fail"] .cc-entry-arrow { color: #c53030; }
.cc-entry[data-state="fail"]:hover { border-color: #e8a5a5; background: #fceaea; color: #c53030; }
.cc-entry.cc-shake { animation: cc-shake .36s ease; }
@keyframes cc-shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-6px); }
  55% { transform: translateX(5px); }
  78% { transform: translateX(-3px); }
}
.cc-hint { min-height: 17px; margin-top: 5px; font-size: 11.5px; color: var(--ink-4); }
.cc-hint.err { color: #c53030; }
.cc-hint.ok { color: #1a7f45; }

.cc-overlay {
  position: fixed; inset: 0; z-index: 9999; display: flex;
  align-items: safe center; justify-content: center; padding: 20px;
  background: rgba(16, 26, 48, .48); backdrop-filter: blur(2px); overflow-y: auto;
}
.cc-overlay[hidden] { display: none; }
.cc-panel {
  width: 390px; max-width: 100%; border-radius: 16px; background: var(--surface);
  box-shadow: var(--sh-3); overflow: hidden; user-select: none; -webkit-user-select: none;
}
/* 标题行：提示文字 + 需要依次点击的汉字（提示图 inline，不再单独占一行） */
.cc-hd { position: relative; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-2); }
.cc-hdline { display: flex; align-items: center; gap: 10px; padding-right: 26px; min-height: 40px; }
.cc-hdtext { font-size: 14px; color: var(--ink); font-weight: 550; white-space: nowrap; }
.cc-hdtext b { color: var(--brand-ink); font-weight: 700; }
.cc-thumb {
  width: 132px; max-width: 45%; height: 40px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
/* 全局 img{display:block} 会盖掉 [hidden] 的 display:none，图片即使隐藏
   仍占着 132px，把提示字挤成一条缝 —— 必须显式关掉 */
.cc-thumb[hidden] { display: none !important; }
/* 提示汉字：按顺序排列，一个都不能少（图片兜底时用 .cc-thumb） */
.cc-hintchars {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 14px; flex: 1; min-width: 0;
  height: 40px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.cc-hintchars[hidden] { display: none !important; }
.cc-hintchar {
  font-style: normal; font-size: 22px; font-weight: 700; line-height: 1;
  color: #c0392b; letter-spacing: 0;
}
.cc-hintchar:nth-child(2) { color: #1d4ed8; }
.cc-hintchar:nth-child(3) { color: #0f766e; }
.cc-hintchar:nth-child(4) { color: #b45309; }
.cc-close {
  position: absolute; right: 12px; top: 12px; width: 28px; height: 28px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-3);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.cc-close:hover { background: var(--surface-3); color: var(--ink); }
.cc-body { padding: 16px 18px 18px; }
.cc-imgbox {
  position: relative; width: 100%; aspect-ratio: 340 / 220; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: #eef1f7; cursor: pointer;
}
.cc-img { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; -webkit-user-drag: none; }
.cc-marks { position: absolute; inset: 0; pointer-events: none; }
.cc-mark {
  position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; border: 2px solid #fff; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 40, 100, .45);
}
.cc-loading {
  position: absolute; inset: 0; z-index: 3; display: flex; gap: 9px;
  align-items: center; justify-content: center; flex-direction: column;
  background: rgba(244, 246, 251, .9); color: var(--ink-3); font-size: 12.5px;
}
.cc-loading[hidden] { display: none; }
.cc-loading i { font-style: normal; }
.cc-spin {
  width: 18px; height: 18px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(43, 98, 217, .22); border-top-color: var(--brand);
  animation: cc-spin .8s linear infinite;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }
.cc-msg { min-height: 20px; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.cc-msg.err { color: #c53030; }
.cc-msg.ok { color: #1a7f45; }
/* 底部：左侧两个圆形小图标（清空 / 换一张），右侧一个大蓝色「确认」 */
.cc-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cc-round {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-3); border-radius: 50%; background: var(--surface-2);
  color: var(--ink-3); cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.cc-round:hover { border-color: var(--brand-line); color: var(--brand-ink); background: var(--brand-soft); }
.cc-spacer { flex: 1; }
.cc-btn {
  height: 42px; border-radius: 9px; font-size: 14px; font-weight: 650; cursor: pointer;
  border: 0; color: #fff; background: linear-gradient(180deg, #4b83ea, #2b62d9);
  box-shadow: 0 3px 10px rgba(43, 98, 217, .24);
}
.cc-btn.primary { width: 132px; flex: none; }
.cc-btn.primary:disabled { background: #dfe5ef; color: #8b95a5; cursor: not-allowed; box-shadow: none; }

/* ---------- 11. Home ---------- */
.hero-card {
  position: relative; overflow: hidden; margin-top: 26px;
  border-radius: var(--r-xl); padding: 30px 34px;
  background: #fff url("../img/hero-bg.jpg") center right / cover no-repeat;
  border: 1px solid var(--line);
  color: var(--ink); box-shadow: var(--sh-1);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 48%, rgba(255,255,255,0.62) 100%);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card .kick { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.4px; }
.hero-card h2 { font-size: 24px; font-weight: 660; margin-top: 6px; letter-spacing: -0.3px; color: var(--ink); }
.hero-card .desc { font-size: 13px; color: var(--ink-3); margin-top: 8px; max-width: 520px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; position: relative; z-index: 1; }
.hero-ring { position: relative; width: 118px; height: 118px; flex-shrink: 0; z-index: 1; }
.hero-ring svg { transform: rotate(-90deg); }
.hero-ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.hero-ring .val b { font-size: 25px; font-weight: 680; display: block; line-height: 1.1; color: var(--ink); }
.hero-ring .val span { font-size: 10.5px; color: var(--ink-3); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.stat-card { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.stat-card .lb { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat-card .vl { font-size: 27px; font-weight: 660; letter-spacing: -0.6px; margin-top: 6px; line-height: 1.15; }
.stat-card .vl small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.stat-card .ft { font-size: 11.5px; color: var(--ink-4); margin-top: 4px; }
.stat-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.i-brand { background: var(--brand-soft); color: var(--brand); }
.i-green { background: var(--green-soft); color: var(--green); }
.i-amber { background: var(--amber-soft); color: var(--amber); }
.i-teal { background: #e8f2f7; color: #2f7ea3; }
.i-rose { background: var(--rose-soft); color: var(--rose); }

.home-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }

/* 继续练习 */
.resume-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: var(--r-lg); background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
}
.resume-card .ic {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: #fff; display: grid; place-items: center; color: var(--brand);
  border: 1px solid var(--brand-soft-2);
}
.resume-card .t { font-size: 13.5px; font-weight: 580; }
.resume-card .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* 试卷小卡 */
.paper-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: var(--surface-2); transition: all 0.18s var(--ease);
}
.paper-row + .paper-row { margin-top: 10px; }
.paper-row:hover { border-color: var(--brand-line); background: #fbfcff; transform: translateX(2px); }
.paper-row .idx {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 640;
  background: var(--brand-soft); color: var(--brand-ink);
}
.paper-row .nm { font-size: 13.5px; font-weight: 560; }
.paper-row .meta { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 10px; }
.paper-row .meta span { display: inline-flex; align-items: center; gap: 3px; }

/* 趋势图 */
.trend { height: 132px; display: flex; align-items: flex-end; gap: 9px; padding-top: 8px; }
.trend .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.trend .b {
  width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px;
  background: #c8d6f3;
  min-height: 5px; transition: height 0.7s var(--ease), background 0.2s;
  position: relative;
}
.trend .col:hover .b { background: #8fadE8; }
.trend .col.today .b { background: var(--brand); }
.trend .lb { font-size: 10.5px; color: var(--ink-4); }
.trend .col.today .lb { color: var(--brand); font-weight: 600; }

/* ---------- 12. Papers ---------- */
.filter-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0 20px;
}
.paper-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.paper-card {
  position: relative; padding: 22px 22px 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); transition: all 0.22s var(--ease); overflow: hidden;
  display: flex; flex-direction: column;
}
.paper-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand); opacity: 0; transition: opacity 0.22s;
}
.paper-card:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); transform: translateY(-2px); }
.paper-card:hover::before { opacity: 1; }
.paper-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.paper-card h3 { font-size: 16px; font-weight: 620; letter-spacing: -0.1px; line-height: 1.45; }
.paper-card .meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px;
  font-size: 12px; color: var(--ink-3);
}
.paper-card .meta i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.paper-card .meta svg, .intro-head .m svg { opacity: 0.72; }
.intro-head .m i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.paper-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.score-pill {
  font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px;
}
.score-pill b { font-size: 14.5px; color: var(--brand-ink); font-weight: 660; }

/* ---------- 13. 考前须知 ---------- */
.intro-wrap { max-width: 880px; margin: 0 auto; padding: 26px 0 40px; }
.intro-head {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: 30px 32px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); box-shadow: var(--sh-1);
}
.intro-head h1 { font-size: 22px; font-weight: 660; letter-spacing: -0.2px; }
.intro-head .m { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.intro-head .m i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; }
.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.rule-list { display: grid; gap: 11px; }
.rule-item { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.rule-item .n {
  width: 20px; height: 20px; border-radius: 7px; flex-shrink: 0; margin-top: 1px;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 11px; font-weight: 650; display: grid; place-items: center;
}
.type-stat { display: grid; gap: 10px; }
.type-stat .row {
  justify-content: space-between; padding: 10px 12px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line-2); font-size: 12.5px;
}
.type-stat .row b { font-weight: 600; font-size: 12.5px; }
.intro-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding: 16px 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.intro-foot .hint { font-size: 12px; color: var(--ink-3); }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.check-line input { width: 15px; height: 15px; accent-color: var(--brand); }

/* ---------- 14. 考试作答 ---------- */
.exam-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.exam-top {
  position: sticky; top: 0; z-index: 70;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.exam-top-in {
  max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 62px;
  display: flex; align-items: center; gap: 18px;
}
.exam-top .nm { font-size: 14.5px; font-weight: 620; }
.exam-top .prog-line { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.timer {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--surface-3); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 620; letter-spacing: 0.4px;
  transition: all 0.25s var(--ease);
}
.timer svg { width: 14px; height: 14px; opacity: 0.6; }
.timer.danger { background: var(--rose-soft); border-color: var(--rose-line); color: #c74a66; }
.timer.danger svg { opacity: 1; animation: pulse 1.4s infinite; }
.timer.danger .num { animation: none; }

.exam-main {
  flex: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 22px 24px 26px; display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 20px;
  align-items: start;
}
.q-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 26px 30px 24px;
}
.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.q-no {
  font-size: 12.5px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.q-no b { color: var(--ink); font-size: 15px; font-weight: 680; }
.q-stem { font-size: 17px; line-height: 1.82; color: var(--ink); letter-spacing: 0.1px; white-space: pre-wrap; word-break: break-word; }
.q-stem .blank { display: inline-block; min-width: 54px; border-bottom: 1px solid var(--ink-4); margin: 0 4px; }
.q-tip { font-size: 12.8px; color: var(--ink-3); margin-top: 8px; display: flex; align-items: center; gap: 5px; }

.opts { margin-top: 20px; display: grid; gap: 11px; }
.opt {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px 17px; border-radius: var(--r-md);
  border: 1px solid var(--line-3); background: var(--surface-2);
  font-size: 15.2px; line-height: 1.68; cursor: pointer; text-align: left; width: 100%;
  transition: all 0.16s var(--ease);
}
.opt:hover { border-color: var(--brand-line); background: #fbfcff; }
.opt .k {
  width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center; font-size: 12.8px; font-weight: 620;
  background: #fff; border: 1px solid var(--line-3); color: var(--ink-3);
  transition: all 0.16s var(--ease);
}
.opt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(43, 98, 217, 0.08); }
.opt.on .k { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt.right { border-color: var(--green); background: var(--green-soft); }
.opt.right .k { background: var(--green); border-color: var(--green); color: #fff; }
.opt.wrong { border-color: var(--rose); background: var(--rose-soft); }
.opt.wrong .k { background: var(--rose); border-color: var(--rose); color: #fff; }
.opt[disabled] { cursor: default; }

/* 图片选项：图片独占一行展示（外层盒子负责换行与缩进，图片自身自适应宽度） */
.opt { flex-wrap: wrap; }
.wopt, .a-opt { flex-wrap: wrap; }
.opt-img-box {
  flex: 1 1 100%; min-width: 0; display: block;
  margin: 8px 0 2px 39px;
}
.opt-img {
  display: block; width: 100%; max-width: 340px; height: auto;
  max-height: 340px; object-fit: contain;
  border-radius: 8px; border: 1px solid var(--line-3);
  background: #fff;
}
.wopt .opt-img-box, .a-opt .opt-img-box { margin-left: 39px; }
.opt[disabled]:hover { border-color: var(--line-3); background: var(--surface-2); }
.opt.right[disabled]:hover { border-color: var(--green); background: var(--green-soft); }
.opt.wrong[disabled]:hover { border-color: var(--rose); background: var(--rose-soft); }

.code-area {
  margin-top: 18px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-3); background: #fbfcff;
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; background: #f3f5fb; border-bottom: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3);
}
.code-bar .dots { display: flex; gap: 5px; }
.code-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #dfe4f0; display: block; }
.code-area textarea {
  width: 100%; min-height: 190px; border: 0; outline: none; resize: vertical;
  padding: 14px 16px; background: transparent;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  font-size: 13px; line-height: 1.75; color: #26314d;
  tab-size: 4;
}
.q-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.q-actions .left { display: flex; gap: 10px; align-items: center; }

/* 作答页导航按钮（加大，便于点击） */
.btn-nav { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 13px; font-weight: 560; }
.btn-nav.primary { padding: 0 30px; font-weight: 620; box-shadow: 0 6px 16px rgba(43, 98, 217, 0.22); }
.btn-nav:disabled { box-shadow: none; }

/* 自动跳题开关 */
.auto-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 13px 0 11px; border-radius: 999px;
  border: 1px solid var(--line-3); background: var(--surface);
  font-size: 12.5px; font-weight: 540; color: var(--ink-3);
  cursor: pointer; white-space: nowrap; transition: all 0.16s var(--ease);
}
.auto-toggle .sw {
  position: relative; width: 28px; height: 16px; border-radius: 999px;
  background: #dfe3ee; transition: background 0.18s var(--ease); flex-shrink: 0;
}
.auto-toggle .sw::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 60, 0.25);
  transition: transform 0.18s var(--ease);
}
.auto-toggle.on { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand); }
.auto-toggle.on .sw { background: var(--brand); }
.auto-toggle.on .sw::after { transform: translateX(12px); }
.auto-toggle:hover { border-color: var(--brand-line); }
.auto-toggle .lbl-mini { display: none; }
@media (max-width: 900px) {
  .auto-toggle .lbl-full { display: none; }
  .auto-toggle .lbl-mini { display: inline; }
  .auto-toggle { padding: 0 11px 0 9px; gap: 6px; }
}

/* 答题卡 */
.sheet {
  position: sticky; top: 82px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); padding: 18px;
}
.sheet-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-hd .t { font-size: 13.5px; font-weight: 620; }
.sheet-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.sheet-btn {
  aspect-ratio: 1; border-radius: 9px; font-size: 12px; font-weight: 560;
  border: 1px solid var(--line-3); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; position: relative;
  transition: all 0.15s var(--ease);
}
.sheet-btn:hover { border-color: var(--brand-line); color: var(--brand-ink); }
.sheet-btn.done { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); font-weight: 620; }
.sheet-btn.cur { border-color: var(--brand); box-shadow: 0 0 0 2.5px rgba(43, 98, 217, 0.18); color: var(--brand-ink); font-weight: 680; }
.sheet-btn.flag::after {
  content: ""; position: absolute; top: 3px; right: 3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--amber);
}
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; font-size: 11.5px; color: var(--ink-3); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.lg-done { background: var(--brand-soft); border: 1px solid var(--brand-line); }
.lg-cur { border: 1.5px solid var(--brand); }
.lg-flag { background: var(--amber); }
.sheet-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.sheet-stat { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.sheet-stat b { color: var(--ink); font-weight: 600; }

/* 移动端底部操作条 */
.exam-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  display: none; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

/* ---------- 15. 成绩 ---------- */
.result-head {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: 30px 34px; margin-top: 24px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.result-head.fail { background: var(--surface); }
.ring { position: relative; width: 118px; height: 118px; }
.ring svg { transform: rotate(-90deg); }
.ring .txt { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .txt b { font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1; color: var(--ink); }
.ring .txt span { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.result-title { font-size: 21px; font-weight: 660; letter-spacing: -0.2px; color: var(--ink); }
.result-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.result-badges { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.result-badges .bd {
  height: 26px; padding: 0 11px; border-radius: var(--r-pill);
  background: var(--surface-3); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; flex-shrink: 0;
}
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

.result-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.type-bar-row { display: grid; grid-template-columns: 76px 1fr 62px; align-items: center; gap: 12px; padding: 9px 0; font-size: 12.5px; }
.type-bar-row .nm { color: var(--ink-2); }
.type-bar-row .vl { text-align: right; color: var(--ink-3); font-size: 12px; }
.type-bar-row .vl b { color: var(--ink); font-weight: 620; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stat { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); text-align: center; }
.mini-stat .v { font-size: 19px; font-weight: 660; letter-spacing: -0.3px; }
.mini-stat .l { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 16. 解析 ---------- */
.analysis-item { padding: 20px 22px; }
.analysis-item + .analysis-item { border-top: 1px solid var(--line-2); }
.a-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.a-stem { font-size: 15.5px; line-height: 1.8; }
.a-opts { margin-top: 12px; display: grid; gap: 7px; }
.a-opt {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 13px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px;
}
.a-opt .k { font-weight: 620; color: var(--ink-3); width: 16px; flex-shrink: 0; }
.a-opt.right { background: var(--green-soft); border-color: var(--green-line); }
.a-opt.right .k { color: #1f9470; }
.a-opt.wrong { background: var(--rose-soft); border-color: var(--rose-line); }
.a-opt.wrong .k { color: #c04b66; }
.a-ans {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13.4px; color: var(--ink-2);
}
.a-ans b { color: var(--ink); font-weight: 620; }
.a-ans .ok { color: #1f9470; }
.a-ans .no { color: #c04b66; }
.a-exp {
  margin-top: 12px; padding: 13px 15px; border-radius: var(--r-md);
  background: #f7f9fe; border-left: 3px solid var(--brand-line);
  font-size: 13.4px; line-height: 1.8; color: var(--ink-2);
}
.a-exp .t { font-size: 11.5px; color: var(--brand-ink); font-weight: 620; margin-bottom: 4px; }

/* ---------- 17. 练习 ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 4px; }
.mode-card {
  position: relative; padding: 22px; border-radius: var(--r-lg); text-align: left;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: all 0.2s var(--ease); overflow: hidden; display: block;
}
.mode-card:hover { border-color: var(--brand-line); transform: translateY(-2px); box-shadow: var(--sh-2); }
.mode-card .ic {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 14px;
}
.mode-card h3 { font-size: 15px; font-weight: 620; }
.mode-card p { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }
.mode-card .go { position: absolute; right: 20px; top: 22px; color: var(--ink-4); transition: all 0.2s; }
.mode-card:hover .go { color: var(--brand); transform: translateX(3px); }

.chapter-list { display: grid; gap: 12px; }
.chg { margin-bottom: 20px; }
.chg:last-child { margin-bottom: 0; }
.chg-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.chg-hd .chg-t { font-size: 13px; font-weight: 640; color: var(--ink-2, #35405c); letter-spacing: .2px; }
.chg-hd .chg-n { font-size: 11.5px; color: var(--ink-3); }
.chapter-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: all 0.18s var(--ease); cursor: pointer;
}
.chapter-row:hover { border-color: var(--brand-line); box-shadow: var(--sh-1); }
.chapter-row .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.chapter-row .nm { font-size: 13.5px; font-weight: 580; }
.chapter-row .ds { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.chapter-row .pg { font-size: 11.5px; color: var(--ink-3); min-width: 54px; text-align: right; }
.chapter-row.dis { background: var(--surface-2, #f7f8fc); border-style: dashed; }
.chapter-row.dis .nm { color: var(--ink-2, #4a5468); }
.chapter-row.dis .ic { opacity: .55; }
.chapter-row.dis .btn { pointer-events: none; opacity: .7; }

/* 练习作答页 */
.practice-shell { min-height: 100vh; display: flex; flex-direction: column; }
.practice-top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.practice-top .exam-top-in { max-width: 820px; }
.practice-main {
  flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 22px 24px 110px;
}
.progress-mini { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-3); }
.verdict {
  margin-top: 16px; border-radius: var(--r-md); padding: 14px 16px;
  border: 1px solid var(--green-line); background: var(--green-soft);
  animation: slideUp 0.28s var(--ease);
}
.verdict.bad { border-color: var(--rose-line); background: var(--rose-soft); }
.verdict .t { font-size: 14.5px; font-weight: 620; color: #1f9470; display: flex; align-items: center; gap: 6px; }
.verdict.bad .t { color: #c04b66; }
.verdict .d { font-size: 13.4px; color: var(--ink-2); margin-top: 8px; line-height: 1.8; }
.verdict .d b { color: var(--ink); }

.practice-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
}
.practice-foot-in { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.practice-foot .btn { flex-shrink: 0; }
.practice-foot .btn-nav { height: 48px; }
.practice-foot .btn-nav.primary { font-size: 15.5px; }

.report { max-width: 640px; margin: 40px auto; text-align: center; padding: 34px; }
.report .big { font-size: 46px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
.report .lb { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

/* ---------- 18. 错题本 ---------- */
.wrong-item { padding: 18px 20px; }
.wrong-item + .wrong-item { border-top: 1px solid var(--line-2); }
.wrong-stem { font-size: 14px; line-height: 1.75; }
.wrong-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 12px; color: var(--ink-3); align-items: center; }
/* 错题详情补全：选项 / 代码 */
.wrong-opts { margin-top: 10px; display: grid; gap: 6px; }
.wopt {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; line-height: 1.6;
  background: var(--surface);
}
.wopt > b { color: var(--ink-2); flex: none; min-width: 16px; }
.wopt.on { border-color: rgba(31, 148, 112, 0.45); background: var(--green-soft); }
.wopt.on > b { color: #1f8a67; }
.wopt .ok-tag { margin-left: auto; flex: none; font-size: 11px; font-style: normal; color: #1f8a67; display: inline-flex; align-items: center; gap: 3px; }
.empty {
  padding: 56px 20px; text-align: center;
}
.empty .ic {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.empty .t { font-size: 14.5px; font-weight: 580; }
.empty .d { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* ---------- 19. 我的 ---------- */
.profile-hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: 28px 32px; margin-top: 24px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.profile-id { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.profile-id .nm { font-size: 20px; font-weight: 660; }
.profile-id .ac { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; position: relative; z-index: 1; }
.pstat { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; }
.pstat .v { font-size: 21px; font-weight: 660; letter-spacing: -0.3px; }
.pstat .l { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* 会员信息附加行（学校 / 手机） */
.profile-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px;
  padding-top: 16px; border-top: 1px dashed var(--line); position: relative; z-index: 1;
}
.pm-row { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.pm-row .k { color: var(--ink-3); }
.pm-row .v { color: var(--ink); font-weight: 520; }

/* 资料不完整提示条 */
.profile-tip {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm);
  background: #fff7e8; border: 1px solid #f5e0bd; color: #8a5c12;
  font-size: 12.5px; line-height: 1.5; cursor: pointer; position: relative; z-index: 1;
}
.profile-tip b { color: var(--brand); font-weight: 600; white-space: nowrap; }
.profile-tip b svg { width: 12px; height: 12px; vertical-align: -2px; }

/* 消息通知列表 */
.notice-list { padding: 4px 0; }
.notice-item { display: flex; gap: 14px; padding: 16px 20px; }
.notice-item + .notice-item { border-top: 1px solid var(--line-2); }
.notice-item .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.notice-item .nt { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.notice-item .nc { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; margin-top: 5px; }
.notice-item .nd { font-size: 11.5px; color: var(--ink-4); margin-top: 6px; }
.notice-item.unread { background: var(--brand-soft); }
.nt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); display: inline-block; }
.notice-item[data-act="notice-read"] { cursor: pointer; }
.nt-state { font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 9px; white-space: nowrap; margin-left: 2px; }
.nt-state.ur { background: #ffe9e9; color: #d33a3a; }
.nt-state.rd { background: #f0f2f6; color: #8a92a3; }
.notice-bar { margin: 4px 0 14px; }
.notice-bar .btn { margin-left: auto; }

.list-card { overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 12px; padding: 15px 20px;
  font-size: 13.5px; transition: background 0.16s;
}
.list-row + .list-row { border-top: 1px solid var(--line-2); }
.list-row:hover { background: var(--surface-2); }
.list-row .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.list-row .arrow { margin-left: auto; color: var(--ink-4); }
.list-row.danger { color: #c04b66; }

.hist-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  transition: background 0.16s; cursor: pointer;
}
.hist-row + .hist-row { border-top: 1px solid var(--line-2); }
.hist-row:hover { background: var(--surface-2); }
.hist-score { font-size: 18px; font-weight: 680; letter-spacing: -0.4px; min-width: 52px; color: var(--brand-ink); }
.hist-score.low { color: #c04b66; }
.hist-score small { font-size: 11px; color: var(--ink-4); font-weight: 500; }

/* ---------- 20. 移动底部标签栏 ---------- */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(6, 1fr);
}
.tab-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; color: var(--ink-4); transition: color 0.16s;
}
/* 底部「我的」未读消息红点数字 */
.tab-badge {
  position: absolute; top: 3px; left: 55%; z-index: 2;
  min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
  border-radius: 999px; background: #e5484d; color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 600;
  box-shadow: 0 0 0 2px #fff;
}
.tab-item svg { width: 21px; height: 21px; }
.tab-item.on { color: var(--brand); font-weight: 560; }
.tab-item.on svg { stroke-width: 2.1; }

/* ---------- 21. Skeleton ---------- */
.sk { background: linear-gradient(90deg, #f0f3fa 25%, #f7f9fe 37%, #f0f3fa 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite ease; border-radius: 8px; }
.sk-line { height: 12px; margin-bottom: 10px; }
.sk-card { height: 132px; border-radius: var(--r-lg); }
.sk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- 22. Toast & Modal ---------- */
.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translate(-50%, 14px);
  padding: 11px 20px; border-radius: var(--r-pill);
  background: rgba(26, 34, 51, 0.92); color: #fff;
  font-size: 13px; z-index: 999; opacity: 0; pointer-events: none;
  transition: all 0.26s var(--ease); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(16, 24, 44, 0.5);
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: rgba(199, 74, 102, 0.95); }

.modal-mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(18, 26, 46, 0.38); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  animation: fadeIn 0.2s var(--ease);
}
.modal-mask[hidden] { display: none; }
.modal {
  width: 100%; max-width: 392px; background: var(--surface);
  border-radius: var(--r-xl); padding: 24px 24px 20px;
  box-shadow: 0 24px 60px -20px rgba(16, 24, 44, 0.45);
  animation: popIn 0.24s var(--ease);
}
.modal h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 10px; }
.modal-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }

/* ---------- 23. Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-anim { animation: pageIn 0.32s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 24. Responsive ---------- */
@media (max-width: 1080px) {
  .home-cols { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .exam-top .prog-line { white-space: nowrap; }
  .exam-top .nm { font-size: 13px; }
  .q-actions { display: none; }
  .topbar-inner { padding: 0 18px; gap: 14px; height: 58px; }
  .nav { display: none; }
  .container { padding: 0 16px; }
  .page-head { padding: 20px 0 16px; }
  .page-title { font-size: 20px; }
  .paper-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mode-card { padding: 16px; }
  .mode-card h3 { font-size: 15px; }
  .mode-card p { font-size: 12px; }
  .hero-card { grid-template-columns: 1fr; padding: 24px 22px; }
  .hero-card::before { background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.72) 100%); }
  .hero-ring { display: none; }
  .hero-card h2 { font-size: 22px; }
  .auth-wrap { padding: 18px 12px; align-items: flex-start; }
  .auth-card { grid-template-columns: 1fr; max-width: 560px; }
  .auth-brand { padding: 22px 22px; gap: 12px; }
  .auth-brand h1 { font-size: 19px; }
  .auth-brand .lead { display: none; }
  .auth-feats { display: none; }
  .auth-note { display: none; }
  .auth-form { padding: 24px 20px 22px; }
  .cc-panel { max-width: 100%; }
  .cc-body { padding: 14px 14px 16px; }
  .cc-thumb { max-width: 40%; height: 36px; }
  .cc-hintchars { height: 36px; gap: 10px; padding: 0 10px; }
  .cc-hintchar { font-size: 19px; }
  .cc-hdtext { font-size: 13px; }
  .cc-btn.primary { width: 112px; }
  .exam-main { grid-template-columns: 1fr; padding: 14px 14px 100px; }
  .sheet { display: none; }
  .exam-bottom { display: flex; }
  .q-card { padding: 20px 18px; }
  .q-stem { font-size: 16.5px; }
  .opt { font-size: 15.5px; padding: 13px 15px; }
  /* 手机上选项图去掉左侧缩进，尽量占满可用宽度 */
  .opt-img-box, .wopt .opt-img-box, .a-opt .opt-img-box { margin-left: 0; }
  .opt-img { max-height: 300px; }
  .exam-bottom .btn { height: 44px; font-size: 14.5px; }
  .exam-bottom .btn-primary { font-size: 15px; font-weight: 620; }
  .practice-foot .btn-nav { height: 46px; padding: 0 16px; font-size: 14.5px; }
  .practice-foot .btn-nav.primary { padding: 0 20px; }
  .practice-main { padding: 16px 14px 120px; }
  .practice-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .result-head { grid-template-columns: auto 1fr; padding: 22px; gap: 18px; }
  .result-actions { grid-column: 1 / -1; }
  .ring { width: 92px; height: 92px; }
  .ring .txt b { font-size: 24px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-hero { padding: 22px; }
  .tabbar { display: grid; }
  .page { padding-bottom: calc(var(--tab-h) + 24px); }
  .toast { bottom: calc(var(--tab-h) + 20px); }
  .intro-wrap { padding: 16px 0 30px; }
  .intro-head { padding: 22px; }
  .intro-foot { flex-direction: column; align-items: stretch; }
  .filter-bar { gap: 10px; }
  .input-search { width: 100%; }
  .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); }
  .a-opts { gap: 6px; }
}

@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .sheet-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ================= 综合分析材料 / 代码填空 / 操作题提示 ================= */

.q-material {
  margin-bottom: 14px; padding: 14px 16px;
  background: var(--brand-soft); border: 1px solid var(--brand-soft-2);
  border-radius: var(--r-md);
}
.q-material .m-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 620; color: var(--brand-ink);
  margin-bottom: 8px;
}
.q-material .m-tag svg { width: 13px; height: 13px; }
.q-material .m-body { font-size: 13.5px; color: var(--ink-1); line-height: 1.85; white-space: pre-wrap; }
.q-material .m-img {
  display: block; max-width: 100%; margin-top: 10px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
}

.office-hint {
  margin-top: 6px; padding: 22px 20px; text-align: center;
  background: var(--surface-2, #f6f7fb); border: 1px dashed var(--line-2, #dfe3ee);
  border-radius: var(--r-md);
}
.office-hint .oh-ic {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.office-hint .oh-ic svg { width: 22px; height: 22px; }
.office-hint .oh-t { font-size: 14px; font-weight: 640; color: var(--ink-1); }
.office-hint .oh-d { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.7; }

.code-area.readonly { opacity: 1; }
.code-pre {
  margin: 0; padding: 14px 16px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12.8px; line-height: 1.75; color: #2d3a5c;
  background: #f8f9fd; white-space: pre-wrap; word-break: break-all;
  min-height: 0;
}
.cf-list { margin-top: 14px; display: grid; gap: 10px; }
.cf-row { display: flex; align-items: center; gap: 10px; }
.cf-row .cf-no {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 12.5px; font-weight: 640;
  display: inline-flex; align-items: center; justify-content: center;
}
.cf-row .input { flex: 1; font-family: ui-monospace, Consolas, monospace; }

/* ===== 题库多图（一题多图） ===== */
.q-imgs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.q-imgs .q-img { max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--line, #E5E8EF); background: #fff; }
.q-material .m-img { display: block; max-width: 100%; max-height: 360px; margin: 10px auto 0; border-radius: 10px; }

/* ===== 判断题（无选项时按对/错作答） ===== */
.opts-judge { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .opts-judge { grid-template-columns: 1fr; } }

/* ===== 列表填空（多空下拉） ===== */
.cf-row .lf-sel {
  flex: 1; font-family: inherit; font-size: 14.5px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8a93a8 50%), linear-gradient(135deg, #8a93a8 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 34px;
}

/* ===== 品牌logo ===== */
.brand-mark { display: inline-flex; align-items: center; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; display: block; }
.hero-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; display: block; }

/* ===== 首页：题库三大题型专项 ===== */
.bank-sec .bank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bank-card {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 16px;
  background: var(--surface); display: flex; flex-direction: column; gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  font-family: inherit;
}
.bank-card:hover { transform: translateY(-2px); border-color: var(--line-3); box-shadow: var(--sh-2); }
a.bank-card { text-decoration: none; color: inherit; }
.bank-card .bic { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.bank-card .bic svg { width: 20px; height: 20px; }
.bank-card .bt { font-size: 15px; font-weight: 700; color: var(--ink); }
.bank-card .bn { font-size: 22px; font-weight: 800; line-height: 1; }
.bank-card .bn small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.bank-card .bd { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; min-height: 34px; }
.bank-card .bgo { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.bank-card .bgo svg { width: 13px; height: 13px; }
.bank-card.bc-blue  .bic { background: var(--brand-soft); color: var(--brand); }
.bank-card.bc-blue  .bn, .bank-card.bc-blue  .bgo { color: var(--brand-ink); }
.bank-card.bc-amber .bic { background: var(--amber-soft); color: var(--amber); }
.bank-card.bc-amber .bn, .bank-card.bc-amber .bgo { color: #b0751c; }
.bank-card.bc-teal  .bic { background: var(--green-soft); color: var(--green); }
.bank-card.bc-teal  .bn, .bank-card.bc-teal  .bgo { color: #1f8a67; }
.bank-card.bc-rose  .bic { background: var(--rose-soft); color: var(--rose); }
.bank-card.bc-rose  .bn, .bank-card.bc-rose  .bgo { color: var(--rose); }
/* 首页课程区：视频在上、文章在下，与后续区块留出间距 */
.home-vids { margin-bottom: 12px; }
.home-vids.vid-grid { grid-template-columns: repeat(2, 1fr); }
.home-arts .art-item { background: #fff; }
@media (max-width: 640px) {
  .home-vids.vid-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* 专项练习：手机端一行 2 个、2 行铺满（选择题/Python操作题/综合分析/错题本） */
  .bank-sec .bank-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bank-sec .bank-card { padding: 13px 12px 12px; gap: 4px; border-radius: var(--r-md); }
  .bank-sec .bank-card .bic { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 2px; }
  .bank-sec .bank-card .bic svg { width: 16px; height: 16px; }
  .bank-sec .bank-card .bt { font-size: 13.5px; }
  .bank-sec .bank-card .bn { font-size: 19px; }
  .bank-sec .bank-card .bd {
    font-size: 10.5px; line-height: 1.45; min-height: 0;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .bank-card .bd { min-height: 0; }
}
/* 选择题分类：手机端一行两个（7 类按 2 列排，比一行一个省一半滚动） */
@media (max-width: 860px) {
  #cat-sec .bank-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #cat-sec .bank-card { padding: 13px 12px 12px; gap: 4px; border-radius: var(--r-md); }
  #cat-sec .bank-card .bic { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 2px; }
  #cat-sec .bank-card .bic svg { width: 16px; height: 16px; }
  #cat-sec .bank-card .bt { font-size: 13.5px; }
  #cat-sec .bank-card .bn { font-size: 19px; }
  #cat-sec .bank-card .bd {
    font-size: 10.5px; line-height: 1.45; min-height: 0;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
  }
  #cat-sec .bank-card .bgo { font-size: 11px; margin-top: 2px; }
  #cat-sec .bank-card .badge { font-size: 10px; padding: 2px 6px; margin-top: 4px; }
}

/* ===== 学习记录页 ===== */
.rec-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.recd-hero .recd-rate { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1; }
.recd-hero .recd-rate small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 4px; }
.precd-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; }
.precd-stem { font-size: 13.5px; line-height: 1.65; color: var(--ink); margin: 8px 0; }
.precd-ans { display: grid; gap: 4px; font-size: 12.5px; }
.precd-ans .ok { color: var(--green); }
.precd-ans .bad { color: var(--rose); }

/* ===== 综合分析题（材料 + 多小题） ===== */
.zonghe-material {
  margin-bottom: 16px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.zonghe-material .m-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 620; color: var(--brand-ink);
  margin-bottom: 8px;
}
.zonghe-material .m-tag svg { width: 13px; height: 13px; }
.zonghe-material .m-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; white-space: pre-wrap; }
.zsub-block { padding: 16px 0 4px; border-top: 1px dashed var(--line); margin-top: 14px; }
.zsub-block:first-of-type { border-top: 0; margin-top: 0; }
.zsub-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.zsub-hd .zsub-no {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 12.5px; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center;
}
/* 逐空判定回显 */
.vb-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 13px; }
.vb-row .vb-no { color: var(--ink-3); min-width: 52px; }
.vb-row .vb-ok.ok { color: var(--green); font-weight: 600; }
.vb-row .vb-ok.bad { color: var(--rose); font-weight: 600; }
.vb-row .vb-ans { color: var(--ink-2); }
.vb-row code {
  font-family: ui-monospace, Consolas, monospace; font-size: 12.5px;
  background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
}

/* ===== Python 代码标号（不在代码里填空，填空统一放代码下方） ===== */
.bf-code { line-height: 2.15; }
.bf-code .mk {
  display: inline-block; min-width: 20px; padding: 0 4px; margin: 0 1px;
  border-radius: 5px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 12.5px; font-weight: 700; line-height: 1.6;
  font-family: inherit; text-align: center;
}
.cf-row .cf-no.cf-mark { font-size: 13px; }
/* 旧版内嵌输入框样式（保留兼容） */
.bf-slot { display: inline-block; margin: 0 2px; }
.bfin {
  display: inline-block; min-width: 110px; max-width: 320px; height: 28px;
  padding: 0 8px; margin: 0 1px; vertical-align: middle;
  border: 0; border-bottom: 2px solid var(--brand);
  background: var(--brand-soft); border-radius: 5px 5px 0 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12.8px; color: #1f2d4d; outline: none;
  transition: background 0.15s var(--ease);
}
.bfin::placeholder { color: var(--ink-4); }
.bfin:focus { background: #fff; border-bottom-color: var(--brand-ink); }
.bfin.bfin-right { border-bottom-color: var(--green); background: var(--green-soft); color: #1f8a67; }
.bfin.bfin-wrong { border-bottom-color: var(--rose); background: var(--rose-soft); color: #c04b66; }
.bfin[disabled] { opacity: 1; }
.cf-row .input.bfin-right { border-color: var(--green); background: var(--green-soft); }
.cf-row .input.bfin-wrong { border-color: var(--rose); background: var(--rose-soft); }

/* ===== 全局加载提示条 ===== */
.topload {
  position: fixed; top: 0; left: 0; right: 0; height: 2.5px; z-index: 999;
  overflow: hidden; opacity: 0; transition: opacity 0.18s var(--ease);
  pointer-events: none;
}
.topload.on { opacity: 1; }
.topload i {
  display: block; height: 100%; width: 34%;
  background: var(--brand);
  animation: tl-slide 1.05s ease-in-out infinite;
}
@keyframes tl-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(330%); }
}
/* 列表区域加载占位 */
.load-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 28px 0; color: var(--ink-4); font-size: 13px;
}
.load-hint .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  animation: lh 0.9s ease-in-out infinite;
}
.load-hint .dot:nth-child(2) { animation-delay: 0.15s; }
.load-hint .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes lh { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }

/* ===== 分页器 ===== */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 16px 0 4px; flex-wrap: wrap;
}
.pager .pg-btn {
  min-width: 34px; height: 32px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; cursor: pointer; transition: all 0.15s var(--ease);
}
.pager .pg-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager .pg-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .pg-btn:disabled { opacity: 0.4; cursor: default; }
.pager .pg-info { color: var(--ink-4); font-size: 12.5px; margin: 0 6px; }

/* ==========================================================================
   搜题中心（顶栏搜索框 + 搜题页 + 详情弹层）
   ========================================================================== */

/* ---- 顶栏搜索框 ---- */
.topbar-search {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 5px 0 10px; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface-2);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.topbar-search:focus-within {
  border-color: var(--brand-line); background: #fff;
  box-shadow: 0 0 0 3.5px rgba(43, 98, 217, 0.08);
}
.ts-ico { display: grid; place-items: center; color: var(--ink-4); flex: none; }
.ts-input {
  width: 172px; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: var(--ink); font-family: inherit; -webkit-appearance: none;
}
.ts-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ts-input::placeholder { color: var(--ink-4); }
.ts-cam {
  width: 27px; height: 27px; flex: none; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-3); display: grid; place-items: center;
  cursor: pointer; transition: all 0.16s var(--ease);
}
.ts-cam:hover { color: var(--brand); background: var(--brand-soft); }

/* ---- 搜题页 ---- */
.sc-wrap { padding-bottom: 20px; }
.sc-hero {
  position: relative; margin: 26px 0 20px; padding: 30px 32px 26px;
  border-radius: 20px; border: 1px solid var(--line);
  background:
    radial-gradient(1200px 220px at 8% -30%, rgba(43, 98, 217, 0.10), transparent 62%),
    radial-gradient(900px 200px at 92% -40%, rgba(47, 163, 124, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  overflow: hidden;
}
.sc-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 12px; font-weight: 560;
}
.sc-hero h1 { margin: 14px 0 8px; font-size: 27px; font-weight: 680; letter-spacing: -0.4px; }
.sc-hero p { margin: 0; max-width: 640px; color: var(--ink-3); font-size: 13.5px; line-height: 1.8; }
.sc-bar {
  position: relative; display: flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-3); border-radius: var(--r-pill); background: #fff;
  box-shadow: var(--sh-1); transition: all 0.18s var(--ease);
}
.sc-bar:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px rgba(43, 98, 217, 0.08); }
.sc-bar-ico { display: grid; place-items: center; color: var(--ink-4); flex: none; }
.sc-kw {
  flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--ink); font-family: inherit; -webkit-appearance: none;
}
.sc-kw::-webkit-search-cancel-button { -webkit-appearance: none; }
.sc-kw::placeholder { color: var(--ink-4); font-size: 14px; }
.sc-go { height: 38px; padding: 0 24px; border-radius: var(--r-pill); flex: none; }

.sc-body { display: grid; grid-template-columns: 306px minmax(0, 1fr); gap: 18px; align-items: start; }
.sc-side { display: grid; gap: 14px; position: sticky; top: 80px; }
.sc-card {
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface);
  padding: 16px; box-shadow: var(--sh-1); min-width: 0;
}
.sc-card-hd { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--ink-2); font-size: 13.5px; }
.sc-card-hd svg { color: var(--brand); }

.sc-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 148px; padding: 18px 14px; text-align: center;
  border: 1.5px dashed var(--line-3); border-radius: var(--r-lg);
  background: var(--surface-2); color: var(--ink-2); cursor: pointer;
  transition: all 0.18s var(--ease); overflow: hidden;
}
.sc-drop:hover, .sc-drop.on { border-color: var(--brand-line); background: var(--brand-soft); }
.sc-drop b { font-size: 13.5px; font-weight: 580; }
.sc-drop-ic {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; color: var(--brand); border: 1px solid var(--line);
}
.sc-drop-tip { font-size: 11.5px; color: var(--ink-4); line-height: 1.6; }
.sc-drop.has-img { padding: 8px; }
.sc-prev { width: 100%; max-height: 190px; object-fit: contain; border-radius: 10px; background: #fff; }
.sc-ocr-mask {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: rgba(255, 255, 255, 0.86); color: var(--brand-ink); font-size: 12.5px;
  backdrop-filter: blur(2px);
}
.sc-ocr-mask[hidden] { display: none; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.4px solid var(--brand-soft-2); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sc-ocr { margin-top: 12px; }
.sc-ocr-hd {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-2); font-weight: 560; margin-bottom: 7px;
}
.sc-ocr-hd .muted { font-weight: 400; font-size: 11.5px; color: var(--ink-4); }
.sc-ocr-text {
  width: 100%; resize: vertical; padding: 10px 11px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font-size: 12.5px; line-height: 1.7; font-family: inherit; outline: none;
}
.sc-ocr-text:focus { border-color: var(--brand-line); background: #fff; }
.sc-cands { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.sc-cands .chip { font-size: 11.5px; height: 26px; padding: 0 10px; max-width: 100%; }
.sc-tips { margin: 0; padding-left: 18px; color: var(--ink-3); font-size: 12.5px; line-height: 1.9; }
.sc-tips li::marker { color: var(--brand-line); }

.sc-main { min-width: 0; }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sc-tab {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  color: var(--ink-2); font-size: 13px; cursor: pointer; transition: all 0.16s var(--ease);
}
.sc-tab i { font-style: normal; font-size: 11.5px; color: var(--ink-4); }
.sc-tab:hover { border-color: var(--brand-line); color: var(--brand-ink); }
.sc-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 560; }
.sc-tab.on i { color: rgba(255, 255, 255, 0.78); }

.sc-list { display: grid; gap: 10px; }
.sc-sum { font-size: 12.5px; color: var(--ink-3); padding: 0 2px 2px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-sum b { color: var(--brand-ink); }
.sc-fuzzy { display: inline-flex; align-items: center; gap: 4px; color: var(--amber); font-size: 12px; }
/* 相似题推荐（搜不到原句时兜底展示） */
.sc-sim-hd {
  display: flex; align-items: center; gap: 6px;
  margin: 14px 0 10px; padding: 10px 14px;
  background: var(--amber-50, #FAEEDA); border: 1px solid var(--amber, #BA7517);
  border-radius: 10px; color: var(--amber, #854F0B); font-size: 13px; font-weight: 500;
}
.sc-sim-hd svg { width: 15px; height: 15px; flex: none; }

.sc-item {
  position: relative; padding: 14px 16px 15px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); cursor: pointer; box-shadow: var(--sh-1);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
  min-width: 0;
}
.sc-item:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); transform: translateY(-1px); }
.sc-item-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sc-field { font-size: 11.5px; color: var(--ink-4); }
.sc-chap { font-size: 11.5px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sc-title {
  margin: 0; font-size: 14.5px; font-weight: 560; line-height: 1.72; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-snip {
  margin: 7px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-item mark { background: #fff3bf; color: inherit; border-radius: 3px; padding: 0 1px; }
.sc-more {
  display: inline-flex; align-items: center; gap: 2px; margin-top: 9px;
  font-size: 12px; color: var(--brand); opacity: 0; transition: opacity 0.16s var(--ease);
}
.sc-item:hover .sc-more { opacity: 1; }

.sc-idle { text-align: center; padding: 54px 20px; border: 1px dashed var(--line-3); border-radius: var(--r-xl); background: var(--surface-2); }
.sc-idle-ic {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px;
  display: grid; place-items: center; background: #fff; color: var(--brand); border: 1px solid var(--line);
}
.sc-idle b { display: block; font-size: 14.5px; font-weight: 580; }
.sc-idle p { margin: 8px auto 0; max-width: 460px; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
.sc-idle-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

/* ---- 详情弹层 ---- */
.sc-mask {
  position: fixed; inset: 0; z-index: 900; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 26, 46, 0.42); backdrop-filter: blur(3px);
  animation: fadeIn 0.18s var(--ease);
}
.sc-mask[hidden] { display: none; }
.sc-detail {
  width: 100%; max-width: 780px; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(16, 24, 44, 0.5);
  animation: popIn 0.22s var(--ease);
}
.sc-detail-hd {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.sc-detail-chap { font-size: 12px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-close {
  margin-left: auto; width: 30px; height: 30px; flex: none; border: 1px solid var(--line);
  border-radius: 50%; background: #fff; color: var(--ink-3); display: grid; place-items: center; cursor: pointer;
}
.sc-close:hover { color: var(--ink); border-color: var(--line-3); }
.sc-detail-body { padding: 20px; overflow-y: auto; }
.sd-stem { font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.sd-stem.pre { white-space: pre-wrap; }
.sd-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; font-size: 12px; color: var(--ink-3); }
.sd-opts { display: grid; gap: 8px; margin-top: 14px; }
.sd-ans {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 14px;
  border-radius: var(--r-md); background: var(--green-soft); border: 1px solid var(--green-line);
  font-size: 13px;
}
.sd-ans .lab { color: #1f8a67; font-size: 12px; }
.sd-ans b { font-size: 16px; color: #177a5c; letter-spacing: 1px; }
.sd-analysis { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-3); }
.sd-analysis .lab { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.sd-analysis p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); white-space: pre-wrap; }
.sd-ans-block { margin-top: 14px; }
.sd-ans-block .lab { font-size: 12px; color: var(--ink-3); }
.sd-ans-list { display: grid; gap: 8px; margin-top: 8px; }
.sd-ans-list .cf-row { display: flex; align-items: center; gap: 10px; }
.sd-ans-list code {
  padding: 5px 10px; border-radius: var(--r-sm); background: var(--surface-3);
  border: 1px solid var(--line); font-size: 13px; color: var(--ink);
}
.sd-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sd-links .btn { text-decoration: none; }
.sd-note {
  display: flex; align-items: flex-start; gap: 7px; margin-top: 14px; padding: 10px 13px;
  border-radius: var(--r-md); background: var(--amber-soft); color: #8a5d16;
  font-size: 12.5px; line-height: 1.75;
}
.sd-note svg { flex: none; margin-top: 2px; }
.sd-sub { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.sd-sub-hd { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--brand-ink); margin-bottom: 8px; }
.sd-sub-hd .muted { font-weight: 400; color: var(--ink-4); }
.sc-detail-body .q-imgs { margin-top: 12px; }
.sc-detail-body .code-area { margin-top: 14px; }

@media (max-width: 1080px) {
  .sc-body { grid-template-columns: 264px minmax(0, 1fr); }
  .ts-input { width: 132px; }
}

@media (max-width: 900px) {
  .sc-hero { margin: 16px 0 14px; padding: 22px 18px 20px; border-radius: 16px; }
  .sc-hero h1 { font-size: 21px; margin: 10px 0 6px; }
  .sc-hero p { font-size: 12.5px; }
  .sc-bar { margin-top: 14px; padding: 5px 5px 5px 13px; }
  .sc-kw { font-size: 14px; height: 36px; }
  .sc-go { padding: 0 18px; height: 36px; }
  .sc-body { grid-template-columns: 1fr; }
  .sc-side { position: static; }
  .sc-drop { min-height: 118px; }
  .sc-title { font-size: 14px; }
  .sc-mask { padding: 0; align-items: flex-end; }
  .sc-detail { max-width: 100%; max-height: 90vh; border-radius: 18px 18px 0 0; }
  .sc-detail-body { padding: 16px; }
  .sd-stem { font-size: 14.5px; }

  /* 手机端顶栏：收紧品牌与用户区，把搜索框留在头部 */
  .topbar-inner { gap: 10px; padding: 0 14px; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark .brand-logo { width: 28px; height: 28px; }
  .brand-sub, .u-name { display: none; }
  .brand-name { font-size: 14px; }
  .topbar-right { gap: 8px; flex: 1; min-width: 0; margin-left: 0; }
  .topbar-search { flex: 1; min-width: 0; height: 34px; }
  .ts-input { width: 100%; font-size: 12.5px; }
  .user-chip { padding: 3px; border: 0; background: transparent; flex: none; }
  .avatar { width: 28px; height: 28px; font-size: 11px; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
  .ts-cam { display: none; }
}

/* ==========================================================================
   练习题号导航（跳题 + 组内搜索）
   ========================================================================== */
.qnav {
  max-width: 1060px; margin: 0 auto 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--sh-1);
  animation: fadeIn 0.18s var(--ease);
}
.qnav-hd {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.qnav-stat { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.qnav-stat b { color: var(--brand-ink); }
.qnav-hd .input-search { flex: 1; min-width: 200px; max-width: 340px; }
.c-ok { color: #1f8a67; }
.c-bad { color: #c04b66; }
.qnav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 7px; }
.qnav-n {
  height: 34px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface-2); color: var(--ink-2);
  font-size: 12.5px; font-family: inherit; cursor: pointer;
  transition: all 0.14s var(--ease);
}
.qnav-n:hover { border-color: var(--brand-line); color: var(--brand-ink); }
.qnav-n.ok { background: var(--green-soft); border-color: var(--green-line); color: #177a5c; }
.qnav-n.bad { background: var(--rose-soft, #fdeef1); border-color: #f3c9d2; color: #b03a52; }
.qnav-n.cur {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px -3px rgba(43, 98, 217, 0.5);
}
.qnav-hits { display: grid; gap: 6px; margin-top: 8px; }
.qnav-hit {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); cursor: pointer; font-family: inherit;
  transition: all 0.14s var(--ease); min-width: 0;
}
.qnav-hit:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.qnav-hit b { font-size: 12px; color: var(--brand-ink); white-space: nowrap; flex: none; }
.qnav-hit span {
  font-size: 12.5px; color: var(--ink-2); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.qnav-none { margin-top: 8px; font-size: 12.5px; color: var(--ink-4); }

@media (max-width: 900px) {
  .qnav { padding: 12px; border-radius: var(--r-lg); }
  .qnav-grid { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
  .qnav-n { height: 31px; font-size: 12px; }
  .qnav-hd .input-search { min-width: 0; }
}

/* ===== 内容合规：版权声明与投诉入口 ===== */
.legal-footer {
  margin-top: 14px; display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 11.5px; color: var(--ink-4);
}
.legal-footer b { font-weight: 500; cursor: pointer; transition: color 0.15s var(--ease); }
.legal-footer b:hover { color: var(--brand); }
.legal-doc { font-size: 12.8px; line-height: 1.85; color: var(--ink-2); max-height: 52vh; overflow-y: auto; }
.legal-doc p { margin: 0 0 11px; }
.legal-doc p:last-child { margin-bottom: 0; }
.legal-doc b { color: var(--ink-1); font-weight: 600; }

/* 伪代码类选项：保留选项文本中的换行 */
.opt > span:last-child,
.wopt > span:last-child { white-space: pre-line; }

/* ================= 课程中心（文章课程 / 视频课程） ================= */

.course-wrap { padding: 22px 0 48px; }

.course-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 28px; border-radius: var(--r-xl); border: 1px solid var(--brand-soft-2);
  background: linear-gradient(135deg, #eef3ff 0%, #f7f9ff 58%, #ffffff 100%);
}
.ch-kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--brand-ink); background: #fff; border: 1px solid var(--brand-line);
  padding: 3px 11px; border-radius: var(--r-pill);
}
.ch-kicker svg { width: 13px; height: 13px; }
.ch-title { font-size: 24px; font-weight: 680; letter-spacing: -0.4px; margin-top: 12px; }
.ch-sub { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.ch-art {
  width: 64px; height: 64px; flex: none; border-radius: 18px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--brand-soft-2); color: var(--brand);
}
.ch-art svg { width: 30px; height: 30px; }

.course-bar { display: flex; align-items: center; gap: 14px; margin: 20px 0 16px; flex-wrap: wrap; }
.seg {
  display: inline-flex; padding: 3px; border-radius: var(--r-pill);
  background: var(--surface-3); border: 1px solid var(--line);
}
.seg-btn {
  height: 34px; padding: 0 16px; border-radius: var(--r-pill); font-size: 13.5px;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px;
  transition: all 0.18s var(--ease);
}
.seg-btn .n { font-size: 11px; color: var(--ink-4); }
.seg-btn.on {
  background: var(--brand); color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px -4px rgba(43, 98, 217, 0.55);
}
.seg-btn.on .n { color: rgba(255, 255, 255, 0.82); }
.home-course-seg { margin: 2px 0 14px; }
.course-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px;
  min-width: 260px; padding: 0 14px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); transition: border-color 0.16s var(--ease);
}
.course-search:focus-within { border-color: var(--brand-line); }
.course-search .cs-ic { display: flex; color: var(--ink-4); }
.course-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; }

/* --- 文章课程：编辑排版式列表 --- */
.art-list { display: flex; flex-direction: column; gap: 12px; }
.art-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.art-item:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); transform: translateY(-1px); }
.art-no { flex: none; width: 26px; padding-top: 1px; font-size: 15px; font-weight: 700; color: var(--brand-line); letter-spacing: 0.5px; }
.art-body { flex: 1; min-width: 0; }
.art-kicker { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--brand-ink); letter-spacing: 0.3px; }
.art-top { padding: 0 6px; border-radius: var(--r-pill); background: var(--amber-soft); color: #b97b1e; font-size: 10.5px; }
.art-title { margin-top: 6px; font-size: 17px; font-weight: 640; line-height: 1.5; letter-spacing: -0.2px; }
.art-sum {
  margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--ink-4); }
.art-meta i { font-style: normal; color: var(--line-3); }
.art-arrow { flex: none; align-self: center; display: flex; color: var(--ink-4); }
.art-item:hover .art-arrow { color: var(--brand); }

/* --- 视频课程：封面网格 --- */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.vid-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.vid-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.vid-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #101623; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease); }
.vid-card:hover .vid-thumb img { transform: scale(1.04); }
.vid-thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0) 46%, rgba(10, 14, 24, 0.55) 100%);
}
.vid-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.22); }
.vid-ph svg { width: 46px; height: 46px; }
.vid-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 50px; height: 50px;
  transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.93); color: #182033; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s var(--ease);
}
.vid-card:hover .vid-play { transform: translate(-50%, -50%) scale(1.08); }
.vid-play svg { width: 18px; height: 18px; margin-left: 2px; }
.vid-dur {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 1px 6px; border-radius: 4px;
  background: rgba(8, 12, 20, 0.78); color: #fff; font-size: 11px; letter-spacing: 0.2px;
}
.vid-top {
  position: absolute; left: 8px; top: 8px; z-index: 2; padding: 1px 7px; border-radius: var(--r-pill);
  background: rgba(209, 138, 44, 0.94); color: #fff; font-size: 10.5px;
}
.vid-info { padding: 12px 14px 14px; }
.vid-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.5; min-height: 43px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vid-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--ink-4); }
.vid-meta i { font-style: normal; color: var(--line-3); }

/* --- 文章阅读页 --- */
.reader-wrap { max-width: 860px; margin: 0 auto; padding: 22px 0 48px; }
.back-link {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px;
  padding: 6px 12px 6px 7px; border-radius: var(--r-pill);
  font-size: 13px; color: var(--ink-3); transition: all 0.16s var(--ease);
}
.back-link:hover { color: var(--brand-ink); background: var(--brand-soft); }
.back-link svg { width: 15px; height: 15px; }
.reader { padding: 40px 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); }
.reader-kicker {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-ink); font-size: 12px;
}
.reader-kicker svg { width: 14px; height: 14px; }
.reader-title { margin-top: 16px; font-size: 29px; font-weight: 700; line-height: 1.4; letter-spacing: -0.6px; }
.reader-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3);
}
.reader-meta i { font-style: normal; color: var(--line-3); }
.reader-lead {
  margin-top: 18px; padding: 12px 16px; border-radius: 0 var(--r-md) var(--r-md) 0;
  border-left: 3px solid var(--brand-line); background: var(--surface-2);
  font-size: 14px; line-height: 1.8; color: var(--ink-2);
}
.reader-body { margin-top: 22px; font-size: 16px; line-height: 2; color: var(--ink); }
.reader-body p { margin: 14px 0; }
.reader-body h1, .reader-body h2, .reader-body h3 { margin: 30px 0 12px; font-weight: 660; line-height: 1.5; letter-spacing: -0.2px; }
.reader-body h1 { font-size: 23px; }
.reader-body h2 { font-size: 20px; }
.reader-body h3 { font-size: 17.5px; }
.reader-body ul { margin: 12px 0; padding-left: 24px; list-style: disc; }
.reader-body ol { margin: 12px 0; padding-left: 24px; list-style: decimal; }
.reader-body li { margin: 6px 0; }
.reader-body img { margin: 16px auto; border-radius: var(--r-md); box-shadow: var(--sh-1); }
.reader-body blockquote {
  margin: 16px 0; padding: 10px 16px; border-radius: 0 var(--r-md) var(--r-md) 0;
  border-left: 3px solid var(--brand-line); background: var(--surface-2); color: var(--ink-2);
}
.reader-body code { padding: 1px 5px; border-radius: 4px; background: var(--surface-3); font-size: 14px; }
.reader-body pre {
  margin: 16px 0; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: #f7f9fc; font-size: 13.5px; line-height: 1.75; overflow: auto;
}
.reader-body pre code { padding: 0; background: none; }
.reader-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.reader-body table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 14px; }
.reader-body th, .reader-body td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.reader-body th { background: var(--surface-2); font-weight: 600; }
.reader-end { margin-top: 36px; text-align: center; font-size: 12px; color: var(--ink-4); letter-spacing: 3px; }

/* --- 视频播放页 --- */
.vd-wrap { max-width: 960px; margin: 0 auto; padding: 22px 0 48px; }
.vplayer { overflow: hidden; border-radius: var(--r-xl); background: #0b0e14; box-shadow: var(--sh-3); }
.vplayer-el { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; outline: none; }
.vd-card { margin-top: 18px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); }
.vd-kicker {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--green-soft); color: #1f9470; font-size: 11.5px;
}
.vd-kicker svg { width: 13px; height: 13px; }
.vd-top { margin-left: 6px; padding: 0 7px; border-radius: var(--r-pill); background: var(--amber-soft); color: #b97b1e; font-size: 10.5px; }
.vd-title { margin-top: 12px; font-size: 22px; font-weight: 680; line-height: 1.45; letter-spacing: -0.4px; }
.vd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.vd-meta i { font-style: normal; color: var(--line-3); }
.vd-desc {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2);
  font-size: 14px; line-height: 1.9; color: var(--ink-2); white-space: pre-line;
}

.span-all { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .course-wrap, .reader-wrap, .vd-wrap { padding: 14px 0 32px; }
  .course-hero { padding: 20px 18px; }
  .ch-title { font-size: 19px; }
  .ch-sub { font-size: 12px; }
  .ch-art { display: none; }
  .course-bar { gap: 10px; }
  .seg { width: 100%; }
  .seg-btn { flex: 1; justify-content: center; }
  .course-search { order: 3; width: 100%; min-width: 0; margin-left: 0; }
  .vid-grid { grid-template-columns: 1fr; gap: 14px; }
  .art-item { padding: 14px 15px; gap: 12px; }
  .art-title { font-size: 15.5px; }
  .art-no { width: 22px; font-size: 13px; }
  .reader { padding: 24px 18px; border-radius: var(--r-lg); }
  .reader-title { font-size: 22px; }
  .reader-body { font-size: 16px; line-height: 1.95; }
  .vd-card { padding: 18px 16px; }
  .vd-title { font-size: 18px; }
  .vplayer { border-radius: var(--r-lg); }
}

/* ================= 会员到期时间（「我的」页） ================= */
.profile-id .ac .exp { color: var(--ink-2); }
.profile-id .ac .exp.bad { color: #c74a66; font-weight: 620; }

/* 从首页「选择题」跳进来时，给分类区块一个短暂的强调，让学生知道该点哪儿 */
.section.sec-focus { border-radius: var(--r-lg); box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.16); }

/* ================= 手机端答题页顶部栏 ================= */
/* 原来固定 62px 高 + 标题不省略：窄屏上「综合分析题专项 · …」会折成两行，
   文字顶出栏外，看起来就像左上角错位。这里改成标题单行省略、进度条压到栏底。 */
/* 注意：练习页用的是 .practice-top（复用 .exam-top-in 那套内层结构），
   所以选择器必须把 .exam-top 和 .practice-top 都写上，否则练习页拿不到这些规则。 */
@media (max-width: 560px) {
  .exam-top-in {
    position: relative;
    height: auto; min-height: 54px;
    padding: 8px 10px 10px; gap: 8px;
    overflow: hidden;
  }
  .exam-top .nm, .practice-top .nm {
    font-size: 13px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .exam-top .prog-line, .practice-top .prog-line {
    font-size: 11px; line-height: 1.35; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* 进度条不再和标题抢横向空间，改成整条贴在顶栏底部 */
  .exam-top .bar.thin, .practice-top .bar.thin {
    position: absolute; left: 0; right: 0; bottom: 0;
    width: 100% !important; height: 3px; border-radius: 0;
  }
  .exam-top-in .btn-sm { padding: 0 9px; }
  .exam-top-in .btn-sm svg { width: 15px; height: 15px; }
  .exam-top .timer { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
  .exam-top .timer svg { width: 12px; height: 12px; }
  .practice-top [data-act="qnav-toggle"] { padding: 0 9px; font-size: 12px; white-space: nowrap; }
}

/* 更窄的机型（iPhone SE 360/320）：题号按钮只留图标，把空间让给标题 */
@media (max-width: 380px) {
  .exam-top-in { gap: 6px; padding: 8px 8px 10px; }
  .exam-top .nm, .practice-top .nm { font-size: 12.5px; }
  .practice-top [data-act="qnav-toggle"] { padding: 0 8px; }
}

/* ================= 题目卡片头部：题型 / 题号 / 难度 / 操作按钮 ================= */
/* 右侧两个 chip 包成一组，窄屏换行时整组一起掉到第二行并右对齐，
   不会把「挑战」这种徽章挤成一字一行（手机端左上角错位就是这么来的）。 */
.q-tools { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
@media (max-width: 560px) {
  .q-head { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; }
  .q-head .q-no, .q-head .badge { white-space: nowrap; }
  .q-tools { flex: 0 0 auto; }
}
