/* ============================================================
   艺典教育考试系统 · 设计系统
   浅蓝科技风：雾蓝底 + 天青主色 + 柔和光晕。数字等宽，UI 无衬线。
   ============================================================ */
:root {
  /* 底色：从最浅的页面底到卡片面 */
  --void: #e2edfb;
  --paper: #edf4fd;
  --paper-2: #e4eefb;
  --surface: #ffffff;
  --surface-2: #f7fbff;

  /* 文字（整体加深一档，避免界面发灰偏浅） */
  --ink: #081627;
  --ink-2: #1d3a5f;
  --ink-3: #3f5b7a;
  --ink-4: #5f7ca0;

  /* 描边（略微加重，卡片边界更清晰） */
  --line: rgba(30, 100, 180, 0.28);
  --line-2: rgba(30, 100, 180, 0.42);

  /* 主色：天青 → 蓝 */
  --brand: #0ea5e9;
  --brand-2: #0284c7;
  --brand-3: #2563eb;
  --brand-soft: rgba(14, 165, 233, 0.1);
  --brand-ink: #ffffff;

  /* 语义色 */
  --seal: #e11d48;
  --seal-soft: rgba(225, 29, 72, 0.09);
  --green: #059669;
  --green-soft: rgba(5, 150, 105, 0.1);
  --amber: #b45309;
  --amber-soft: rgba(217, 119, 6, 0.11);
  --gold: #0891b2;
  --violet: #7c3aed;

  --glow: 0 0 0 1px rgba(14, 165, 233, 0.18), 0 6px 18px -8px rgba(14, 165, 233, 0.45);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(16, 36, 61, 0.05), 0 2px 8px -4px rgba(16, 36, 61, 0.08);
  --shadow-2: 0 16px 36px -22px rgba(16, 36, 61, 0.28);
  --shadow-3: 0 28px 64px -30px rgba(16, 36, 61, 0.34);

  --sans: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* 统一亮色风格：声明只支持浅色，手机浏览器的「网页深色模式」不再对页面强制变黑 */
html { color-scheme: light; background: var(--paper); }
body {
  font-family: var(--sans);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 620px at 12% -12%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(900px 520px at 92% -8%, rgba(37, 99, 235, 0.10), transparent 58%),
    radial-gradient(760px 700px at 50% 118%, rgba(14, 165, 233, 0.08), transparent 62%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(14, 165, 233, 0.18); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.serif { font-family: var(--serif); letter-spacing: .2px; }
.hidden { display: none !important; }

/* 细网格纹理：只用在浅蓝大面板上，避免干扰阅读 */
.grid-tex {
  background-image:
    linear-gradient(rgba(30, 100, 180, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 100, 180, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* ---------- 启动占位 ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; gap: 14px; color: var(--ink-3); }
.boot-mark {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(30, 100, 180, 0.14); border-top-color: var(--brand);
  box-shadow: 0 0 18px -4px rgba(14, 165, 233, 0.5);
  animation: spin 0.9s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ 登录页 ============================ */
.login {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
  background: transparent;
}
.login-brand {
  position: relative; overflow: hidden; padding: 56px 60px;
  background:
    radial-gradient(70% 55% at 20% 8%, rgba(56, 189, 248, 0.30), transparent 62%),
    radial-gradient(60% 50% at 88% 86%, rgba(147, 197, 253, 0.42), transparent 62%),
    linear-gradient(150deg, #e6f4ff 0%, #eaf1ff 52%, #f4f9ff 100%);
  color: var(--ink); display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line);
}
.login-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 100, 180, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 100, 180, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(120% 90% at 30% 20%, rgba(0,0,0,.9), transparent 78%);
}
.login-brand::after {
  content: ""; position: absolute; left: -10%; right: -10%; height: 1px; top: 38%;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.5), transparent);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
  animation: scan 7s ease-in-out infinite; pointer-events: none;
}
@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50% { transform: translateY(240px); opacity: .85; }
}
.login-brand h1 {
  font-family: var(--sans); font-size: 30px; letter-spacing: 2px; margin: 0 0 16px;
  font-weight: 700; color: #0b2a4a;
}
.login-brand p.lead { font-size: 14px; line-height: 2; color: var(--ink-2); max-width: 400px; margin: 0; }
.brand-mark {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, #7dd3fc, #38bdf8 55%, #2563eb);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px -12px rgba(37, 99, 235, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #fff;
}
.login-feats { display: grid; gap: 14px; margin-top: 34px; }
.login-feat { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.login-feat i {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(14, 165, 233, 0.3);
  font-style: normal; font-size: 11px; color: var(--brand-2);
}
/* 右下角徽标 */
.seal {
  position: absolute; right: 54px; bottom: 48px; width: 96px; height: 96px; border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.3); color: var(--brand-3);
  display: grid; place-items: center; font-family: var(--sans); font-size: 13px; line-height: 1.45;
  letter-spacing: 2px; text-align: center; transform: rotate(-3deg);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 30px -18px rgba(37, 99, 235, 0.6), inset 0 0 22px rgba(56, 189, 248, 0.16);
}
.seal::after {
  content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(37, 99, 235, 0.24); border-radius: 11px;
}
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.login-card { width: 100%; max-width: 396px; }
.login-card h2 { font-family: var(--sans); font-size: 24px; margin: 0 0 6px; letter-spacing: 1px; font-weight: 600; }
.login-card .sub { color: var(--ink-3); font-size: 13px; margin: 0 0 26px; }
/* 记住账号密码 */
.login-remember {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 16px;
  font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none;
}
.login-remember input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.login-remember .small { font-size: 11.5px; }

.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab {
  background: none; border: 0; padding: 0 0 12px; font-size: 14.5px; color: var(--ink-3);
  cursor: pointer; position: relative; font-weight: 500;
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
  border-radius: 2px;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; letter-spacing: .2px; }
/* 「考试科目」下拉框标题：蓝色加大突出 */
.field .cat-main-label { color: var(--brand-2); font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.field .hint { font-size: 11.5px; color: var(--ink-4); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink);
  border-radius: var(--r-sm); transition: border-color .16s, box-shadow .16s, background .16s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(14, 165, 233, 0.45); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
  background: #fff;
}
.textarea { resize: vertical; min-height: 84px; line-height: 1.75; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' stroke='%236784a5' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.select option { background: #fff; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-size: 14px;
  font-weight: 500; cursor: pointer; transition: transform .14s, background .16s, box-shadow .16s, border-color .16s, color .16s;
  white-space: nowrap; background: transparent; color: var(--ink-2);
}
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 46%, #2563eb 100%);
  color: var(--brand-ink); border-color: transparent; font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 18px -10px rgba(37, 99, 235, .7);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 12px 24px -12px rgba(37, 99, 235, .8);
}
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--brand-soft); border-color: rgba(14, 165, 233, 0.45); color: var(--brand-2); }
.btn-soft { background: var(--brand-soft); color: var(--brand-2); border-color: rgba(14, 165, 233, 0.28); }
.btn-soft:hover:not(:disabled) { background: rgba(14, 165, 233, 0.18); }
.btn-danger { background: var(--seal-soft); color: #be123c; border-color: rgba(225, 29, 72, 0.24); }
.btn-danger:hover:not(:disabled) { background: rgba(225, 29, 72, 0.16); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--brand-2); padding: 0; cursor: pointer; font-size: inherit; }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 8px; background: transparent; color: var(--ink-3); border: 1px solid transparent; }
.btn-icon:hover { background: var(--brand-soft); color: var(--brand-2); border-color: var(--line-2); }
/* 已加入错题本：常亮蓝边 */
.btn-starred { background: rgba(14, 165, 233, .12); color: var(--brand-2); border-color: rgba(14, 165, 233, .45); box-shadow: var(--glow); }
.btn-starred:hover:not(:disabled) { background: rgba(14, 165, 233, .2); }

/* ============================ 主框架 ============================ */
.shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  border-right: 1px solid var(--line);
  color: var(--ink-3); padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .8) inset;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.side-brand .logo {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(140deg, #7dd3fc, #38bdf8 55%, #2563eb);
  border: 1px solid rgba(255, 255, 255, 0.7); display: grid; place-items: center; color: #fff;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .8);
}
.side-brand b { color: var(--ink); font-size: 15px; letter-spacing: .4px; font-weight: 700; display: block; line-height: 1.3; }
.side-brand span { display: block; font-size: 10px; letter-spacing: 1.4px; color: var(--ink-4); margin-top: 2px; font-family: var(--mono); }
.nav-group { font-size: 10.5px; letter-spacing: 1.4px; color: var(--ink-4); padding: 14px 10px 6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: var(--ink-2); cursor: pointer; font-size: 13.5px; background: none; border: 0; width: 100%; text-align: left;
  transition: background .15s, color .15s, box-shadow .15s;
}
.nav-item svg { width: 16px; height: 16px; opacity: .8; flex: 0 0 auto; }
.nav-item:hover { background: rgba(14, 165, 233, .08); color: var(--brand-2); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(14, 165, 233, .16), rgba(14, 165, 233, .02));
  color: var(--brand-3); font-weight: 600; box-shadow: inset 2px 0 0 var(--brand);
}
.nav-item.active svg { opacity: 1; color: var(--brand-2); }
/* 考生端四个主入口加大加粗，一眼可辨 */
.nav-item.hi { font-size: 14px; font-weight: 650; color: var(--ink); padding: 11px 12px; }
.nav-item.hi svg { width: 18px; height: 18px; opacity: 1; color: var(--brand-2); }
.nav-item.hi:hover { background: rgba(14, 165, 233, .12); }
/* 当前页分栏：字体再加大一档，位置一眼可辨 */
.nav-item.active { font-size: 15px; font-weight: 700; }
.nav-item.active svg { width: 19px; height: 19px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, #e0f2fe, #bfdbfe);
  color: var(--brand-3); font-size: 13px; flex: 0 0 auto; border: 1px solid rgba(37, 99, 235, .18);
  font-weight: 600;
}
.side-user .who { min-width: 0; }
.side-user .who b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { font-size: 11px; color: var(--ink-4); }

/* 考试 / 练习进行中：侧栏导航位置显示的锁定提示条 */
.exam-lock-tip {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 8px; padding: 10px 12px;
  background: var(--brand-soft, #eff6ff);
  border: 1px dashed rgba(37, 99, 235, .35);
  border-radius: 10px;
  color: var(--brand-3, #2563eb); font-size: 14px; line-height: 1.55; font-weight: 500;
}
/* 时钟图标约束尺寸（SVG 无宽高默认会撑得很大） */
.exam-lock-tip svg { width: 44px; height: 44px; flex: 0 0 44px; opacity: .9; }

/* 注册页法律声明勾选行 */
.legal-check {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 4px 0 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7;
  cursor: pointer; user-select: none;
}
.legal-check input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--brand); }
.legal-check a { color: var(--brand-2); font-weight: 600; text-decoration: none; }
.legal-check a:hover { text-decoration: underline; }
/* 法律声明弹层正文 */
.legal-body { max-height: 52vh; overflow: auto; font-size: 13px; line-height: 1.9; color: var(--ink-2); white-space: normal; word-break: break-word; }

.main { min-width: 0; display: flex; flex-direction: column; }

/* ---------- 顶栏滚动公告（后台「系统设置」可改，支持超链接） ---------- */
.notice-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 32px;
  background: linear-gradient(90deg, var(--brand-soft), rgba(37, 99, 235, 0.07) 55%, var(--brand-soft));
  border-bottom: 1px solid rgba(14, 165, 233, 0.22);
}
.notice-horn { flex: 0 0 auto; display: inline-flex; color: var(--brand-2); }
.notice-horn svg { width: 15px; height: 15px; }
.notice-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.notice-move { display: inline-flex; white-space: nowrap; animation: notice-scroll 22s linear infinite; }
.notice-txt { font-size: 13px; color: var(--ink-2); padding-right: 80px; }
.notice-txt b { color: var(--brand-2); }
.notice-txt a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.notice-txt a:hover { color: var(--brand-3); }
@keyframes notice-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .notice-move { animation: none; } }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 251, 255, .86); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line); padding: 16px 32px; display: flex; align-items: center; gap: 16px;
}
.topbar h1 { font-family: var(--sans); font-size: 19px; margin: 0; font-weight: 700; letter-spacing: .2px; color: var(--ink); }
/* 顶栏标题里的科目名：蓝色加大突出 */
.topbar h1 .tb-cat { color: var(--brand-2); font-size: 21px; margin-left: 5px; }
.topbar .crumb { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.topbar .spacer { flex: 1; }
.content { padding: 26px 32px 56px; max-width: 1180px; width: 100%; }

/* ---------- 卡片 / 统计 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1);
}
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: .2px; }
.card-head .spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g-2-1 { grid-template-columns: 1.6fr 1fr; }

.stat {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-1);
  position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, .6), transparent);
}
.stat .k { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 27px; font-weight: 700; letter-spacing: -.5px; margin-top: 6px; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 3px; }
.stat .bar { height: 3px; border-radius: 3px; background: rgba(30, 100, 180, .1); margin-top: 12px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-3)); border-radius: 3px; }

.hero {
  background:
    radial-gradient(70% 120% at 88% 0%, rgba(56, 189, 248, .34), transparent 62%),
    linear-gradient(115deg, #e8f4ff 0%, #e3efff 52%, #eaf7ff 100%);
  color: var(--ink); border-radius: var(--r-lg); padding: 26px 28px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-2); border: 1px solid rgba(37, 99, 235, .14);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 100, 180, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 100, 180, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(100% 100% at 80% 0%, #000, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .32), transparent 68%);
}
.hero h2 { font-family: var(--sans); font-size: 22px; margin: 0 0 8px; letter-spacing: .4px; font-weight: 700; position: relative; color: #0b2a4a; }
.hero p { margin: 0; color: var(--ink-2); font-size: 13.5px; position: relative; }
.hero .row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .btn-primary { box-shadow: 0 10px 22px -14px rgba(37, 99, 235, .9); }
.hero .btn-ghost { border-color: rgba(37, 99, 235, .28); color: var(--brand-3); background: rgba(255, 255, 255, .72); }
.hero .btn-ghost:hover { background: #fff; border-color: rgba(37, 99, 235, .5); color: var(--brand-2); }

/* ---------- 徽标 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .2px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-single { background: rgba(14, 165, 233, .1); color: #0369a1; border-color: rgba(14, 165, 233, .26); }
.badge-multiple { background: rgba(124, 58, 237, .09); color: #6d28d9; border-color: rgba(124, 58, 237, .24); }
.badge-judge { background: rgba(217, 119, 6, .1); color: #b45309; border-color: rgba(217, 119, 6, .24); }
.badge-essay { background: rgba(5, 150, 105, .1); color: #047857; border-color: rgba(5, 150, 105, .24); }
.badge-star { background: rgba(37, 99, 235, .09); color: #1d4ed8; border-color: rgba(37, 99, 235, .26); }
.badge-ok { background: var(--green-soft); color: var(--green); border-color: rgba(5, 150, 105, .24); }
.badge-warn { background: var(--amber-soft); color: var(--amber); border-color: rgba(217, 119, 6, .24); }
.badge-danger { background: var(--seal-soft); color: #be123c; border-color: rgba(225, 29, 72, .22); }
.badge-mute { background: rgba(30, 100, 180, .07); color: var(--ink-3); border-color: var(--line); }
/* 限时考试剩余 ≤5 分钟：倒计时变红并轻微呼吸 */
.badge.is-urgent { background: var(--seal-soft); color: #be123c; border-color: rgba(225, 29, 72, .3); animation: clockPulse 1.4s ease-in-out infinite; }
@keyframes clockPulse { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
.diff { display: inline-flex; gap: 3px; align-items: center; }
.diff i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  transition: all .15s; user-select: none;
}
.chip:hover { border-color: rgba(14, 165, 233, .45); color: var(--brand-2); }
.chip.on {
  background: linear-gradient(135deg, rgba(14, 165, 233, .14), rgba(37, 99, 235, .1));
  border-color: rgba(14, 165, 233, .5); color: var(--brand-3); font-weight: 600; box-shadow: var(--glow);
}
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* 编辑题目弹层：正确答案预览行 */
.q-ans-line {
  margin: 2px 0 10px; padding: 9px 13px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 165, 233, .1), rgba(37, 99, 235, .07));
  border: 1px solid rgba(14, 165, 233, .3); font-size: 14px; color: var(--ink-2);
}
.q-ans-line b { color: var(--brand-3); font-size: 15px; }
.chip[disabled] { opacity: .45; cursor: not-allowed; background: var(--paper-2); }
.chip[disabled]:hover { border-color: var(--line-2); color: var(--ink-2); }

/* 练习设置：题数汇总与说明 */
.prac-sum {
  margin: 12px 0 14px; padding: 9px 14px; border-radius: 10px;
  background: rgba(14, 165, 233, .06); border: 1px solid rgba(14, 165, 233, .16);
  font-size: 12.5px; color: var(--ink-2);
}
.prac-sum b { color: var(--brand-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.prac-hint { margin-top: 10px; font-size: 11.5px; color: var(--ink-4); line-height: 1.7; }
/* 类目弹窗：整卷题数与满分汇总 */
.cat-total {
  margin-top: 10px; padding: 8px 12px; font-size: 12.5px; color: var(--ink-2);
  background: var(--brand-soft); border: 1px solid var(--line-2); border-radius: 8px;
}
.cat-total b { color: var(--brand-3); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-3); padding: 11px 14px;
  background: #f4f9ff; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
table.tbl tbody tr:hover { background: rgba(14, 165, 233, .05); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
.td-stem { max-width: 520px; }
.td-stem .stem { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.65; }
.td-act { display: flex; gap: 6px; justify-content: flex-end; }
.checkbox { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.pager .spacer { flex: 1; }

/* ---------- 练习记录列表（桌面一行排开，手机自动换行成卡片） ---------- */
.rk-list { display: flex; flex-direction: column; }
.rk-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.rk-row:last-child { border-bottom: 0; }
.rk-row:hover { background: rgba(14, 165, 233, .05); }
.rk-main { flex: 1 1 200px; min-width: 150px; display: flex; flex-direction: column; gap: 4px; }
.rk-title { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-sub { font-size: 12px; color: var(--ink-3); }
.rk-stats { display: flex; align-items: baseline; gap: 20px; flex: 0 0 auto; }
.rk-score { font-size: 16.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-score i { font-style: normal; font-size: 11.5px; font-weight: 600; margin-left: 2px; }
.rk-cell { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); }
.rk-cell i { font-style: normal; font-size: 11px; color: var(--ink-4); }
.rk-cell b { font-weight: 600; color: var(--ink-2); }
.rk-btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .rk-row { padding: 11px 12px; gap: 8px 14px; }
  .rk-main { flex: 1 1 100%; min-width: 0; }
  .rk-title { white-space: normal; font-size: 13.5px; line-height: 1.5; }
  .rk-stats { gap: 16px; }
  .rk-btn { margin-left: auto; }
  .rk-list-lg .rk-sub { line-height: 1.5; }
}

/* ---------- 网格子项最小宽度：防止图表 / 长内容把手机端页面撑出横向滚动 ---------- */
.grid > .card, .grid > .stat, .grid > div, .grid > form { min-width: 0; }
.spark { max-width: 100%; }
.spark-lab { font-size: 9.5px; color: var(--ink-4); white-space: nowrap; }
@media (max-width: 560px) {
  /* 窄屏下 14 个日期标签放不下：隔列显示，标签允许跨列绘制（不裁切） */
  .spark-col:nth-child(even) .spark-lab { visibility: hidden; }
}

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 52px 20px; color: var(--ink-3); }
.empty .ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft);
  display: grid; place-items: center; margin: 0 auto 14px; border: 1px solid var(--line-2); color: var(--brand-2);
}
.empty b { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }

/* ============================ 考试 ============================ */
.exam { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 20px; align-items: start; }
.q-card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden;
  /* 手机上横向手势给「滑动翻题」用，纵向滚动不受影响 */
  touch-action: pan-y;
}
.q-head { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: #f7fbff; }
.q-head .idx { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.q-head .idx-cur {
  display: inline-block; min-width: 26px; text-align: center; padding: 1px 8px; margin: 0 2px;
  border-radius: 8px; font-size: 15px; font-weight: 700; line-height: 1.5;
  color: var(--brand-ink); letter-spacing: 0;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #2563eb 100%);
  box-shadow: 0 3px 10px -4px rgba(14, 100, 233, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.q-body { padding: 24px 26px 26px; }
.q-stem { font-size: 17px; line-height: 1.9; margin: 0 0 22px; white-space: pre-wrap; color: var(--ink); font-weight: 500; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; gap: 13px; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 11px;
  cursor: pointer; background: #fff; color: var(--ink-2);
  transition: border-color .16s, background .16s, transform .12s, box-shadow .16s;
  align-items: flex-start; text-align: left; width: 100%; font-size: 14px; line-height: 1.7;
}
.opt:hover { border-color: rgba(14, 165, 233, .45); background: #f4fbff; color: var(--ink); }
.opt:active { transform: scale(.996); }
.opt .lab {
  flex: 0 0 auto; width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center;
  border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); font-weight: 600;
  background: #f5f9ff; transition: all .16s;
}
.opt.sel { border-color: var(--brand); background: rgba(14, 165, 233, .08); color: var(--brand-3); box-shadow: 0 0 0 1px rgba(14, 165, 233, .22); }
.opt.sel .lab { background: linear-gradient(135deg, var(--brand), var(--brand-3)); border-color: transparent; color: #fff; }
.opt.right { border-color: rgba(5, 150, 105, .5); background: rgba(5, 150, 105, .08); color: #065f46; }
.opt.right .lab { background: var(--green); border-color: var(--green); color: #fff; }
.opt.wrong { border-color: rgba(225, 29, 72, .45); background: rgba(225, 29, 72, .06); color: #9f1239; }
.opt.wrong .lab { background: var(--seal); border-color: var(--seal); color: #fff; }
.q-foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: #f7fbff; }
.q-foot .spacer { flex: 1; }

/* 答题工具条：加入错题本 / 看解析 */
.q-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.q-tools-tip { margin-left: auto; }
.q-analysis { margin-top: 14px; }

.sheet {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: sticky; top: 86px; box-shadow: var(--shadow-1);
}
.sheet h4 { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
/* 答题卡分页：页码 + 前一页/后一页按钮 */
.sheet h4 .sheet-page { color: var(--brand-2); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.sheet h4 .sheet-pg { padding: 3px 8px; font-size: 11.5px; flex: 0 0 auto; }
.sheet h4 .spacer { flex: 1; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 6px; }
.sheet-cell {
  aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2); background: #fff;
  font-size: 11.5px; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; transition: all .14s;
  font-variant-numeric: tabular-nums; padding: 0; line-height: 1;
}
.sheet-cell:hover { border-color: var(--brand); color: var(--brand-2); transform: translateY(-1px); }
.sheet-cell.done {
  background: var(--green); border-color: var(--green); color: #fff; font-weight: 600;
}
/* 练习即时判定：答对绿√、答错红✕（与交卷后回顾一致） */
.sheet-cell.ok { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.sheet-cell.wrong { background: var(--seal); border-color: var(--seal); color: #fff; font-weight: 700; }
.sheet-cell.ok:hover, .sheet-cell.wrong:hover { color: #fff; filter: brightness(1.06); }
.sheet-cell.done:hover { color: #fff; filter: brightness(1.06); }
.sheet-cell.cur { outline: 2px solid var(--brand); outline-offset: 2px; }
.sheet-cell.done.cur { outline-color: var(--brand-3); }
.sheet-legend { display: flex; gap: 14px; margin-top: 14px; font-size: 11.5px; color: var(--ink-3); flex-wrap: wrap; }
.sheet-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.sheet-legend .lg-done { background: var(--green); border: 1px solid var(--green); }
.sheet-legend .lg-todo { background: #fff; border: 1px solid var(--line-2); }
.sheet-legend .lg-cur { background: #fff; border: 2px solid var(--brand); }
.sheet-legend .lg-ok { background: var(--green); }
.sheet-legend .lg-wrong { background: var(--seal); }

/* 顶栏倒计时徽章（紧跟「考试中 · 科目名」标题，字体稍大便于看清） */
.clock-chip { white-space: nowrap; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; margin-left: 10px; vertical-align: 2px; font-size: 13.5px; padding: 3px 10px; }
.clock-chip .dot { margin-right: 5px; }
.clock-chip.is-urgent { background: var(--seal-soft); color: #be123c; border-color: rgba(225, 29, 72, .3); animation: clockPulse 1.4s ease-in-out infinite; }

/* 结果页答题卡回顾：答对绿√、答错红✕、未答灰色题号，点击单题查看 */
.rgrid { max-width: 680px; }
.rcell {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff;
  padding: 0; line-height: 1; transition: transform .15s ease, filter .15s ease;
}
.rcell:hover { transform: scale(1.12); filter: brightness(1.06); }
.rcell.ok { background: var(--green); }
.rcell.wrong { background: var(--seal); }
.rcell.skip { background: #fff; border: 1px solid var(--line-2); color: var(--ink-4); font-weight: 500; font-size: 12px; }
.rcell.cur { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 逐题回顾：对题浅绿背景、错题浅红背景、未答浅灰背景 */
.review.rv-ok { background: var(--green-soft); border-radius: 12px; }
.review.rv-wrong { background: var(--seal-soft); border-radius: 12px; }
.review.rv-skip { background: rgba(100, 116, 139, .07); border-radius: 12px; }
.review-nav { display: flex; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); align-items: center; }
#review-box .review { border-top: none; padding: 18px 20px; }
.sheet-tip { margin-top: 12px; font-size: 11.5px; color: var(--ink-4); line-height: 1.6; }

.progress-line { height: 4px; background: rgba(30, 100, 180, .1); border-radius: 4px; overflow: hidden; }
.progress-line i {
  display: block; height: 100%; border-radius: 4px; transition: width .35s ease;
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
}

/* 结果 */
.result-hero { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: 28px 30px; }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { transform: rotate(-90deg); filter: drop-shadow(0 4px 10px rgba(14, 165, 233, .22)); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-size: 30px; font-weight: 700; letter-spacing: -1px; display: block; line-height: 1; color: var(--ink); }
.ring .val span { font-size: 11px; color: var(--ink-3); }
.result-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.result-meta div span { display: block; font-size: 11.5px; color: var(--ink-3); }
.result-meta div b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }

.review { border-top: 1px solid var(--line); padding: 18px 24px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.review-stem { font-size: 15.5px; line-height: 1.85; margin: 0 0 14px; white-space: pre-wrap; color: var(--ink); }
.review-line { font-size: 13.5px; margin: 6px 0; display: flex; gap: 8px; }
.review-line .k { color: var(--ink-3); flex: 0 0 auto; min-width: 58px; }
.review-line .v { color: var(--ink); }
.analysis-box {
  margin-top: 12px; background: #f2f9ff; border: 1px solid rgba(14, 165, 233, .2);
  border-left: 3px solid var(--brand); border-radius: 8px; padding: 12px 14px;
  font-size: 13px; line-height: 1.85; color: var(--ink-2);
}
.analysis-box b { color: var(--brand-2); font-weight: 600; letter-spacing: .2px; }
.analysis-body { margin-top: 4px; white-space: pre-wrap; }
.answer-input { width: 100%; min-height: 110px; }

/* ============================ 导入 ============================ */
.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 12.5px; color: var(--ink-3); }
.step { display: flex; align-items: center; gap: 8px; }
.step b { width: 21px; height: 21px; border-radius: 50%; background: rgba(30, 100, 180, .1); color: var(--ink-3); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.step.on { color: var(--ink); }
.step.on b { background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; }
.step.done b { background: var(--green); color: #fff; }
.step-sep { width: 26px; height: 1px; background: var(--line-2); }

.dropzone {
  border: 1.5px dashed rgba(14, 165, 233, .35); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .7);
  padding: 46px 24px; text-align: center; cursor: pointer; transition: all .18s;
}
.dropzone:hover, .dropzone.over {
  border-color: var(--brand); background: #f2faff;
  box-shadow: 0 10px 30px -20px rgba(14, 165, 233, .7);
}
.dropzone .ico {
  width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-2);
  display: grid; place-items: center; margin: 0 auto 14px; border: 1px solid rgba(14, 165, 233, .24);
}
.dropzone b { display: block; font-size: 15px; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.dropzone p { margin: 0; color: var(--ink-3); font-size: 12.5px; }
.dropzone.is-locked { border-style: solid; border-color: var(--line-2); background: #f8fbff; cursor: not-allowed; }
.dropzone.is-locked .ico { background: #eef4fb; color: var(--ink-4); border-color: var(--line-2); }
.dropzone.is-locked b { color: var(--ink-3); }

/* 导入：目标科目选择 */
.imp-target {
  padding: 16px 18px; margin-bottom: 18px; border-radius: var(--r);
  border: 1px solid rgba(14, 165, 233, .22); background: linear-gradient(180deg, #f6fbff, #fff);
}
.imp-target > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; letter-spacing: .2px; }
.imp-target .req {
  display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600; background: rgba(225, 29, 72, .1); color: #be123c;
  border: 1px solid rgba(225, 29, 72, .22); vertical-align: 1px;
}
.imp-cat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.imp-cat .select, .imp-cat .input { height: 40px; }
.imp-target .hint { font-size: 11.5px; color: var(--ink-4); margin-top: 8px; }
.imp-note {
  margin-bottom: 15px; padding: 11px 16px; border-radius: var(--r);
  background: rgba(14, 165, 233, .055); border: 1px solid rgba(14, 165, 233, .2);
  border-left: 3px solid var(--brand);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.75;
}
.imp-note b { color: var(--brand-2); font-weight: 600; }

/* 答题页：本卷含旧错题提示 */
.recall-tip {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 10px 16px; border-radius: var(--r);
  background: rgba(245, 158, 11, .07); border: 1px solid rgba(245, 158, 11, .28);
  border-left: 3px solid #d97706;
  font-size: 12.5px; color: #8a5307; line-height: 1.6;
}
.recall-tip svg { width: 16px; height: 16px; flex: none; color: #d97706; }
.recall-tip b { color: #b45309; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .imp-cat { grid-template-columns: 1fr; } }

.counts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.count-pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.count-pill b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ============================ 日历（锁定日期） ============================ */
.cal { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.cal-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f7fbff; }
.cal-head b { font-size: 13px; font-weight: 600; }
.cal-head .spacer { flex: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 10px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--ink-4); padding: 3px 0 6px; }
.cal-day {
  aspect-ratio: 1; border-radius: 7px; border: 1px solid transparent; background: transparent;
  display: grid; place-items: center; font-size: 12.5px; cursor: pointer; color: var(--ink-2);
  font-variant-numeric: tabular-nums; transition: all .13s;
}
.cal-day:hover { background: var(--brand-soft); border-color: var(--line-2); color: var(--brand-2); }
.cal-day.mute { color: var(--ink-4); cursor: default; }
.cal-day.today { border-color: var(--line-2); }
.cal-day.locked { background: var(--seal-soft); color: #be123c; border-color: rgba(225, 29, 72, .32); font-weight: 600; }
.cal-day.locked:hover { background: rgba(225, 29, 72, .16); }
.cal-day.picked { background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; border-color: transparent; font-weight: 600; }
.lock-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lock-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 7px; background: var(--seal-soft); color: #be123c; font-size: 11.5px; border: 1px solid rgba(225, 29, 72, .22); }
.lock-tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font-size: 13px; line-height: 1; opacity: .7; }
.lock-tag button:hover { opacity: 1; }

/* ============================ 弹层 / 提示 ============================ */
.overlay {
  position: fixed; inset: 0; background: rgba(16, 36, 61, .38); backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 60; padding: 24px; animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  width: 100%; max-width: 620px;
  max-height: 88vh; display: flex; flex-direction: column; animation: pop .18s cubic-bezier(.2,.8,.3,1);
}
.modal.wide { max-width: 880px; }
.modal.narrow { max-width: 460px; }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.modal-head .spacer { flex: 1; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: #f7fbff; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.modal-foot .spacer { flex: 1; }

.toast-root { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 10px; font-size: 13px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  animation: toastIn .22s ease; display: flex; align-items: center; gap: 8px; max-width: 78vw;
}
.toast.err { background: #fff1f4; border-color: rgba(225, 29, 72, .3); color: #9f1239; }
.toast.ok { background: #ecfdf5; border-color: rgba(5, 150, 105, .3); color: #065f46; }
.toast.warn { background: #fffbeb; border-color: rgba(180, 83, 9, .3); color: #92400e; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } }

/* ---------- 微信扫码 ---------- */
.wx-panel { text-align: center; padding: 10px 0 4px; }
.wx-frame { width: 100%; height: 350px; border: 0; border-radius: 10px; background: #fff; }
.wx-mock {
  width: 190px; height: 190px; margin: 0 auto 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background:
    linear-gradient(90deg, transparent 46%, #10243d 46% 54%, transparent 54%) 0 0 / 100% 100% no-repeat,
    repeating-conic-gradient(from 0deg, #10243d 0deg 6deg, #ffffff 6deg 12deg);
  position: relative; overflow: hidden; background-color: #ffffff;
}
.wx-mock::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 22% 22%, #ffffff 0 18%, transparent 18%),
    radial-gradient(circle at 78% 22%, #ffffff 0 18%, transparent 18%),
    radial-gradient(circle at 22% 78%, #ffffff 0 18%, transparent 18%),
    linear-gradient(#ffffff, #ffffff);
  mask-image: radial-gradient(circle at 50% 50%, transparent 0 78%, #000 100%);
}
.wx-note { font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.wx-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--amber); background: var(--amber-soft); padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(217, 119, 6, .24); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .exam { grid-template-columns: 1fr; }
  .sheet { position: static; }
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}
@media (max-width: 860px) {
  .sheet { padding: 14px; }
  /* 答题卡各题型全宽堆叠：题号横向铺满一行再排下一题型，不再左右分列 */
  .sheet-group { margin: 0 0 14px; }
  .sheet-group-title { font-size: 11.5px; margin-bottom: 6px; }
  .sheet-grid { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 6px; }
  .sheet-cell { width: auto; font-size: 11px; }
  /* 顶栏紧凑排列：标题 + 副标题一行，按钮紧跟其后，绝不挤压标题 */
  .topbar { flex-wrap: wrap; gap: 6px 10px; padding-top: 10px; padding-bottom: 10px; }
  .notice-bar { padding-left: 16px; padding-right: 16px; }
  .tb-left { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
  .topbar h1 { font-size: 15.5px; flex: 0 0 auto; white-space: nowrap; }
  .topbar h1 .tb-cat { font-size: 17px; }
  .topbar .crumb { flex: 1; min-width: 0; margin-top: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .btn { padding: 6px 10px; font-size: 13px; gap: 4px; border-radius: 8px; flex: 0 0 auto; }
  .topbar .btn svg { width: 13px; height: 13px; }
  .btn-logout { padding: 6px 10px !important; }
  /* 手机端顶栏退出按钮也要带「退出系统」四个字，不再只显示图标 */
  .shell { grid-template-columns: 1fr; align-content: start; }
  .sidebar { position: static; height: auto; align-self: start; flex-direction: row; overflow-x: auto; padding: 10px; gap: 4px; }
  .side-brand, .nav-group, .side-foot { display: none; }
  .nav-item { white-space: nowrap; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
  .g2, .g3, .g-2-1, .g4, .g5 { grid-template-columns: 1fr; }
  .result-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .q-tools-tip { margin-left: 0; }
}

/* 窄屏手机：顶栏只留标题 + 两个按钮 + 剩余天数，副标题隐藏，确保一行放下 */
@media (max-width: 560px) {
  .topbar { gap: 6px 8px; padding-left: 12px; padding-right: 12px; }
  .notice-bar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .notice-txt { font-size: 12px; padding-right: 60px; }
  .tb-left { flex: 0 1 auto; }
  .topbar .crumb { display: none; }
  .topbar .spacer { flex: 1 1 0; min-width: 0; }
  .topbar .btn { padding: 6px 9px; font-size: 12.5px; }
  .topbar .badge { font-size: 11px; padding: 2px 7px; }
  .content { padding-left: 12px; padding-right: 12px; padding-top: 14px; }
}

/* ============================================================
   考试类目：学员端类目卡 / 管理端配置
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 15px 17px; border: 1px solid rgba(30, 100, 180, 0.26); border-radius: var(--r);
  background: linear-gradient(180deg, #f4faff 0%, #e9f3fe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px -5px rgba(16, 36, 61, 0.18);
  position: relative; overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #38bdf8, #2563eb); opacity: .85;
}
.cat-card:hover {
  border-color: rgba(14, 165, 233, 0.55); box-shadow: 0 16px 34px -24px rgba(16, 36, 61, .5);
  transform: translateY(-1px);
}
.cat-card.is-empty { opacity: .7; }
.cat-top { display: flex; align-items: center; gap: 10px; }
.cat-name { flex: 1; font-size: 15.5px; font-weight: 700; letter-spacing: .2px; color: var(--ink); }
.cat-meta { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

/* 类目卡片下的章节（小类目）行 */
.chap-list { border-top: 1px dashed rgba(30, 100, 180, 0.30); padding-top: 10px; margin-top: 2px; display: flex; flex-direction: column; gap: 7px; }
.chap-head { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.chap-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid rgba(30, 100, 180, 0.20); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.72); }
.chap-name { flex: 1; font-size: 13.5px; color: var(--ink); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 管理端类目表格：章节行缩进 */
.cat-subrow td { background: rgba(240, 248, 255, 0.6); }
.cat-tree-branch { display: inline-block; width: 22px; color: var(--ink-4); font-weight: 400; }
.cat-kids-toggle { margin-left: 10px; padding: 2px 10px; font-size: 12px; border-radius: 999px; vertical-align: 2px; }

/* 手机端：考试类目表改为卡片，避免表头挤压成竖条 */
@media (max-width: 760px) {
  .cat-tbl thead { display: none; }
  .cat-tbl, .cat-tbl tbody { display: block; }
  .cat-tbl tr {
    display: block; position: relative;
    border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; margin: 0 0 12px; background: var(--surface);
  }
  .cat-tbl td { display: block; border-bottom: 0; padding: 5px 0; text-align: left; }
  .cat-tbl td.num { text-align: left; }
  .cat-tbl td[data-th]::before { content: attr(data-th) "："; font-size: 12px; color: var(--ink-4); margin-right: 6px; }
  .cat-tbl td:first-child::before { content: none; }
  .cat-tbl tr.cat-subrow { border-style: dashed; background: #f8fbff; margin: 10px 0 12px 22px; width: calc(100% - 22px); }
  .cat-tbl td[data-th="操作"]::before { content: none; }
}

/* ---------------- 题干富文本编辑器 ---------------- */
.rt-bar { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 7px 9px; margin-bottom: -1px; border: 1px solid var(--line-2); border-radius: var(--r-sm) var(--r-sm) 0 0; background: linear-gradient(180deg, #f7fbff, #eef6ff); }
.rt-btn {
  min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 7px; background: #fff; color: var(--ink-2);
  font-size: 13.5px; cursor: pointer; transition: background .15s, color .15s;
}
.rt-btn:hover { background: var(--brand-soft); color: var(--brand-2); border-color: rgba(14, 165, 233, 0.45); }
.rt-btn svg { width: 16px; height: 16px; }
.rt-size { width: 74px; height: 30px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; color: var(--ink-2); font-size: 12.5px; }
#rt-color { width: 30px; height: 30px; padding: 2px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; cursor: pointer; }
.rt-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 3px; }
.rt-area {
  min-height: 150px; max-height: 380px; overflow-y: auto; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: #fff; font-size: 14.5px; line-height: 1.8; color: var(--ink); outline: none;
  word-break: break-word;
}
.rt-area:focus { border-color: rgba(14, 165, 233, 0.6); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12); }
.rt-area:empty::before { content: attr(data-placeholder); color: var(--ink-4); pointer-events: none; }
.rt-area img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; box-shadow: 0 2px 10px -6px rgba(16, 36, 61, .35); }
.rt-area p { margin: 0 0 8px; }
/* 考生端题干里的图片同样自适应 */
.q-stem img, .review-stem img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; }

.empty-state { text-align: center; padding: 30px 16px; }
.empty-state b { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink); }

.cfg-row {
  display: grid; grid-template-columns: 1fr 196px; gap: 10px; align-items: center;
  padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #f9fcff;
}
.cfg-row.off { opacity: .55; }
.cfg-row .cfg-label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.cfg-row .cfg-label input { width: 15px; height: 15px; accent-color: var(--brand); }
.cfg-row .cfg-nums { display: flex; align-items: center; gap: 4px; }
.cfg-row .cfg-nums .input { padding: 6px 4px; font-size: 13px; }
.cfg-row .cfg-nums .input.cfg-score { background: #eef6ff; }

.cat-pick {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
  max-height: 200px; overflow: auto; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #f9fcff;
}
.cat-pick label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.cat-pick label:hover { background: var(--brand-soft); color: var(--brand-2); }
.cat-pick input { width: 15px; height: 15px; accent-color: var(--brand); }

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-pick { grid-template-columns: 1fr; }
}

/* ============================================================
   登录页：轮播背景 / 手机端横幅 / 图形验证码
   ============================================================ */

.login-brand { isolation: isolate; }
.lb-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; }
.lb-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 6s linear;
}
.lb-slide.on { opacity: 1; transform: scale(1); }
.lb-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 28, 56, .28) 0%, rgba(8, 28, 56, .18) 42%, rgba(6, 22, 46, .82) 100%);
}
.lb-body { position: relative; z-index: 2; }
.lb-bottom {
  position: absolute; left: 60px; right: 60px; bottom: 40px; z-index: 3;
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.lb-cap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lb-cap b {
  color: #fff; font-size: 17px; font-weight: 600; letter-spacing: .5px;
  text-shadow: 0 2px 16px rgba(4, 18, 38, .55);
}
.lb-cap a {
  align-self: flex-start; font-size: 12.5px; color: #fff; text-decoration: none;
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .38); backdrop-filter: blur(6px);
  transition: background .16s, transform .16s;
}
.lb-cap a:hover { background: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.lb-dots { display: flex; gap: 7px; margin-left: auto; }
.lb-dot {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .28); cursor: pointer; transition: all .18s;
}
.lb-dot:hover { background: rgba(255, 255, 255, .55); }
.lb-dot.on { width: 20px; border-radius: 999px; background: #fff; border-color: #fff; }

/* 有轮播图时的文案反白 */
.login-brand.has-art::before, .login-brand.has-art::after { display: none; }
.login-brand.has-art h1 { color: #fff; text-shadow: 0 3px 20px rgba(4, 18, 38, .5); }
.login-brand.has-art p.lead { color: rgba(255, 255, 255, .93); text-shadow: 0 1px 12px rgba(4, 18, 38, .5); }
.login-brand.has-art .login-feat { color: rgba(255, 255, 255, .92); }
.login-brand.has-art .login-feat i {
  background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); color: #fff;
  backdrop-filter: blur(4px);
}
.login-brand.has-art .seal {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5);
  color: #fff; backdrop-filter: blur(6px);
}
.login-brand.has-art .seal::after { border-color: rgba(255, 255, 255, .35); }
.login-brand.has-art .lb-bottom { display: flex; }
.login-brand:not(.has-art) .lb-art { display: none; }

/* 手机端：顶部横幅（简介 / 特色卖点直接压在轮换图上，背景色只包住文字本身） */
.login-mobile-art { display: none; }
.login-mobile-hero { display: none; }

/* 注册页管理员微信号：蓝色可点击复制 */
.wx-copy {
  color: var(--brand-2); font-weight: 600; cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.wx-copy:hover { color: var(--brand); }
.wx-copy:active { opacity: .65; }
.wx-copy-tip { color: var(--ink-3); }

/* 图形验证码 */
.cap-row { display: grid; grid-template-columns: 1fr 132px; gap: 10px; align-items: end; }
.cap-row .field { margin-bottom: 16px; }
.cap-img {
  height: 42px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #f3f8ff; overflow: hidden; cursor: pointer; transition: border-color .16s, box-shadow .16s;
}
.cap-img:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 165, 233, .1); }
.cap-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   账号批量导入
   ============================================================ */

.udrop {
  display: grid; justify-items: center; gap: 6px; padding: 26px 18px; text-align: center;
  border: 1.5px dashed var(--line-2); border-radius: var(--r); background: #f8fbff;
  cursor: pointer; transition: border-color .16s, background .16s;
}
.udrop:hover, .udrop.over { border-color: var(--brand); background: #eef8ff; }
.udrop .ico { width: 34px; height: 34px; color: var(--brand-2); }
.udrop .ico svg { width: 100%; height: 100%; }
.udrop b { font-size: 13.5px; font-weight: 600; }
.imp-loading { display: flex; align-items: center; gap: 10px; padding: 18px 0; font-size: 13px; color: var(--ink-3); }
.imp-err { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(190, 62, 62, .08); color: var(--seal); font-size: 12.5px; }
.imp-sum { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 10px; }
.imp-sum .count-pill { padding: 6px 12px; font-size: 12px; }
.import-table { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.import-table table { font-size: 12.5px; }
.import-table thead th { position: sticky; top: 0; background: #f7fbff; z-index: 1; }
.import-table tr.row-bad td { background: rgba(190, 62, 62, .05); }
.imp-note { font-size: 12px; color: var(--ink-3); line-height: 1.8; margin-bottom: 14px; }

/* ============================================================
   管理端：登录轮播
   ============================================================ */

.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bn-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column;
}
.bn-card.is-off { opacity: .68; }
.bn-thumb {
  position: relative; aspect-ratio: 16 / 9; background: #e8f2fd center/cover no-repeat;
  display: grid; place-items: center; color: var(--ink-4); font-size: 12px;
}
.bn-off {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(12, 30, 52, .72); color: #fff; font-size: 11px;
}
.bn-sort {
  position: absolute; right: 10px; top: 10px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: rgba(255, 255, 255, .86); color: var(--brand-3);
  font-size: 11px; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.bn-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.bn-body b { font-size: 13.5px; font-weight: 600; }
.bn-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-act { display: flex; gap: 8px; margin-top: 6px; }
.bn-pick { display: flex; gap: 14px; align-items: flex-start; }
.bn-pick .bn-thumb { width: 220px; flex: 0 0 220px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.bn-pick-side { display: flex; flex-direction: column; gap: 6px; }
.bn-pick-side .hint { max-width: 220px; }

@media (max-width: 1080px) {
  .login-panel { flex-direction: column; justify-content: flex-start; padding: 0 20px 40px; }
  /* 手机端登录页：简介 / 特色卖点压在轮换图上显示，背景色只包住文字本身（不做整块底）。
     没传轮播图时 hero 自带淡蓝渐变底，同样清晰 */
  .login-mobile-hero {
    display: flex; flex-direction: column; justify-content: flex-end; position: relative;
    width: calc(100% + 40px); margin: 0 -20px 18px;
    min-height: 200px; padding: 46px 16px 16px;
    background: linear-gradient(150deg, #bfe3fb 0%, #cfe6ff 55%, #e3f1ff 100%);
    overflow: hidden;
  }
  .login-mobile-art {
    display: block; position: absolute; inset: 0;
    background: transparent center/cover no-repeat;
  }
  .login-mobile-art::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8, 28, 56, .05), rgba(8, 28, 56, .5));
  }
  /* 轮播图标题：顶部，加大加粗 */
  .login-mobile-art .lma-link {
    position: absolute; left: 18px; top: 14px; bottom: auto; z-index: 2; color: #fff;
    font-size: 24px; font-weight: 600; letter-spacing: .5px;
    text-decoration: none; text-shadow: 0 2px 10px rgba(4, 18, 38, .45);
  }
  /* 简介与特色卖点：贴底部、行距收紧 */
  .login-mobile-intro { position: relative; z-index: 2; margin-top: auto; }
  .lma-line { margin: 0 0 5px; line-height: 1.7; }
  .lma-line:last-child { margin-bottom: 0; }
  .lma-chip {
    display: inline; background: none; padding: 0;
    color: #fff; font-weight: 500; font-size: 12.5px; line-height: 1.7;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    text-shadow: 0 2px 6px rgba(4, 18, 38, .32);
  }
  .lma-chip i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; margin-right: 5px; border-radius: 5px;
    background: none; border: 1px solid rgba(255, 255, 255, .55);
    font-style: normal; font-size: 10px; font-weight: 700; color: #fff;
    text-shadow: 0 1px 3px rgba(4, 18, 38, .32);
  }
  .login-card { margin-top: 4px; }
}
@media (max-width: 520px) {
  .cap-row { grid-template-columns: 1fr 118px; }
  .bn-pick { flex-direction: column; }
  .bn-pick .bn-thumb { width: 100%; flex: none; }
}

/* ---------------- 后台：系统设置 ---------------- */
.set-grid { display: flex; gap: 14px; align-items: flex-start; }
.set-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.set-col > .card { margin: 0; }
.set-switch { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.set-radio { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); transition: border-color .16s, background .16s; }
.set-radio:hover { border-color: var(--brand-3); }
.set-radio input { accent-color: var(--brand); }
.set-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.set-intro-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.set-dot { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.set-intro-row .input { flex: 1; }
.set-foot { display: flex; gap: 10px; margin-top: 16px; }
/* 保存栏放顶部并吸顶：设置页较长，滚动时保持可见 */
.set-foot-top {
  position: sticky; top: 78px; z-index: 30;
  align-items: center; margin: 0 0 14px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-1);
}
@media (max-width: 1080px) { .set-grid { flex-direction: column; } }
/* 手机上并排的表单字段收成单列，避免挤压 */
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------------- 考试：退出按钮 / 网络提示 / 继续上次 ---------------- */
.exam-netbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--amber-soft); border: 1px solid rgba(217, 119, 6, 0.35); color: var(--amber); }
.exam-netbar[hidden] { display: none; }
.exam-netbar svg { width: 16px; height: 16px; flex: 0 0 16px; }
.exam-netbar[data-state="gone"] { background: var(--seal-soft); border-color: rgba(225, 29, 72, 0.35); color: var(--seal); }
.resume-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(180deg, #fff, var(--brand-soft)); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.rc-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.rc-ico svg { width: 19px; height: 19px; }
.rc-body b { font-size: 14px; }
.rc-body .small { margin-top: 3px; }

/* ---------------- 答题卡：按题型分组标题 ---------------- */
.sheet-group { margin-bottom: 12px; }
.sheet-group:last-child { margin-bottom: 0; }
.sheet-group-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.sheet-group-title::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--brand); }
.sheet-group-title span { font-weight: 500; color: var(--ink-3, #94a3b8); }

/* ---------------- 第43轮：分析题 + 科目三版块 ---------------- */
.badge-analysis { background: rgba(225, 29, 72, .09); color: #be123c; border-color: rgba(225, 29, 72, .24); }
.sel-summary { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2, #f8fafc); padding: 10px 14px; }
.sel-line { display: flex; gap: 12px; align-items: baseline; font-size: 13px; padding: 3px 0; }
.sel-line > span { color: var(--ink-3, #64748b); flex: 0 0 92px; }
.sel-line > b { font-weight: 600; color: var(--ink); }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: stretch; }
.mod-card .card-pad { display: flex; flex-direction: column; min-height: 232px; }
.mod-head { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mod-head h3 { font-size: 15px; margin: 0; }
.mod-head .badge { margin-left: auto; }
.mod-no { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; }
.mod-desc { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 12px; }
.mod-stat { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; border-radius: 9px; background: var(--brand-soft); margin-bottom: 10px; }
.mod-stat > div { display: flex; flex-direction: column; gap: 2px; }
.mod-stat span { font-size: 11.5px; color: var(--ink-3, #64748b); }
.mod-stat b { font-size: 13px; color: var(--ink); }
.mod-scope { font-size: 12px; color: var(--ink-3, #64748b); margin-bottom: 12px; }
.mod-card .btn-block { margin-top: auto; }
@media (max-width: 1080px) { .mod-grid { grid-template-columns: 1fr; } .mod-card .card-pad { min-height: 0; } }

/* 第45轮：版块标题后显示当前科目名 */
.mod-head .mod-cat-name { font-size: 12.5px; color: var(--ink-2); font-weight: 500; padding: 2px 8px; background: var(--paper-2, #f8fafc); border: 1px solid var(--line); border-radius: 6px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 账号列表：科目明细的悬停图标 */
.u-cat-eye { display:inline-flex; vertical-align:-3px; width:14px; height:14px; color:var(--ink-3); cursor:help; }
.u-cat-eye svg { width:14px; height:14px; }

/* 账号列表第二行（科目范围 / 角色）：紧贴账号，压低行距 */
.u-sub { font-size: 12px; line-height: 1.3; margin-top: 1px; white-space: nowrap; }
.u-sub.muted { color: var(--ink-3); }

/* 系统设置 · 数据维护：概览小格 */
.maint-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-bottom: 14px; }
.maint-kv > div { background: var(--bg-soft, rgba(14,165,233,.06)); border-radius: 8px; padding: 8px 10px; }
.maint-kv span { display: block; font-size: 12px; color: var(--ink-3); }
.maint-kv b { font-size: 14px; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .maint-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 账号列表：两行式单元格，行高收紧 */
table.tbl.tbl-tight td { padding: 8px 12px; }

/* 第53轮：考试 / 练习答题页防截图水印（斜排考生信息铺满背景） */
.wm-layer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; background-repeat: repeat; }
/* 答题内容禁止选中复制，配合水印提高截图识字 / 复制的成本 */
.exam { -webkit-user-select: none; user-select: none; }
/* 问答题的作答框要能正常输入和选字 */
.exam textarea, .exam input { -webkit-user-select: text; user-select: text; }
