/* ==========================================================================
   KET 极速诊断 · 设计系统
   浅色主题 / 中文优先 / 无任何 UI 框架依赖（与主站纪律一致：不引组件库）
   ========================================================================== */

:root {
  /* 文字 */
  --ink: #16202b;
  --ink-2: #48586a;
  --ink-3: #7b8a99;
  --ink-4: #a8b4c0;

  /* 面 */
  --bg: #f6f8fa;
  --card: #ffffff;
  --card-2: #fbfcfd;
  --line: #e4e9ef;
  --line-2: #eef2f6;

  /* 品牌 */
  --brand: #1f6feb;
  --brand-2: #1558c8;
  --brand-soft: #eaf2ff;
  --brand-ink: #0c3f96;

  /* 语义色（诊断灯：绿=稳 / 青=良 / 琥珀=压线 / 红=风险） */
  --t-excellent: #15a05a;
  --t-good: #0d92c9;
  --t-watch: #d98b00;
  --t-risk: #d9463c;
  --t-excellent-soft: #e7f7ee;
  --t-good-soft: #e6f5fb;
  --t-watch-soft: #fdf3e0;
  --t-risk-soft: #fdeceb;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(22, 32, 43, .05), 0 4px 14px rgba(22, 32, 43, .05);
  --shadow-2: 0 2px 6px rgba(22, 32, 43, .07), 0 12px 32px rgba(22, 32, 43, .08);
  --maxw: 1080px;
  --maxw-read: 780px;

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
          system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-en: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 27px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-read { max-width: var(--maxw-read); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); }
.en { font-family: var(--font-en); }
.hidden { display: none !important; }
.mt0 { margin-top: 0; }
.mt1 { margin-top: 8px; }
.mt2 { margin-top: 16px; }
.mt3 { margin-top: 24px; }
.mt4 { margin-top: 36px; }
.mb0 { margin-bottom: 0; }
.mb2 { margin-bottom: 16px; }
.mb3 { margin-bottom: 24px; }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap1 { gap: 8px; }
.gap2 { gap: 16px; }
.wrapf { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------------- 顶栏（全站常驻，风格对齐 LinguaWrite） ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 58px; display: flex; align-items: center; gap: 8px; min-width: 0;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(140deg, var(--brand) 0%, #4c8ff5 100%);
  color: #fff; display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
  letter-spacing: -.02em; box-shadow: 0 2px 8px rgba(31, 111, 235, .28);
}
.brand-sub { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.bn { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 9px;
}
.nav a:hover { background: var(--card-2); color: var(--ink); text-decoration: none; }
.nav a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.tb-link {
  font-size: 13px; color: var(--ink-2); padding: 7px 11px; border-radius: 9px; white-space: nowrap;
}
.tb-link:hover { background: var(--card-2); color: var(--ink); text-decoration: none; }
.tb-link.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

/* ---------------- 卡片 / 区块 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1);
}
.card + .card { margin-top: 16px; }
.card-flat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.section { margin-top: 34px; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-title .num {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 12.5px; font-weight: 800; display: grid; place-items: center;
}
.section-title h2 { margin: 0; font-size: 19px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; cursor: pointer;
  transition: background .15s, transform .08s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(31, 111, 235, .2);
}
.btn:hover { background: var(--brand-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-lg { font-size: 16px; padding: 14px 28px; border-radius: 12px; }
.btn-sm { font-size: 13px; padding: 7px 13px; border-radius: 8px; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--card-2); color: var(--ink); border-color: var(--ink-4); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); box-shadow: none; }
.btn-soft:hover { background: #dceaff; }
.btn-danger { background: var(--t-risk); }
.btn-danger:hover { background: #c0332a; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- 徽章 / 标签 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 5px 9px; border-radius: 7px;
  background: var(--line-2); color: var(--ink-2);
}
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge-t-excellent { background: var(--t-excellent-soft); color: var(--t-excellent); }
.badge-t-good { background: var(--t-good-soft); color: var(--t-good); }
.badge-t-watch { background: var(--t-watch-soft); color: var(--t-watch); }
.badge-t-risk { background: var(--t-risk-soft); color: var(--t-risk); }
.badge-outline { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.chip {
  display: inline-block; font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
  background: var(--line-2); color: var(--ink-2); margin: 0 5px 5px 0;
}
.chip-warn { background: var(--t-watch-soft); color: var(--t-watch); }
.chip-bad { background: var(--t-risk-soft); color: var(--t-risk); }
.chip-good { background: var(--t-excellent-soft); color: var(--t-excellent); }

/* ---------------- 提示条 ---------------- */
.note {
  border-radius: var(--radius-sm); padding: 12px 15px; font-size: 13.5px;
  border: 1px solid var(--line); background: var(--card-2); color: var(--ink-2);
  display: flex; gap: 10px; align-items: flex-start;
}
.note .ico { flex: none; font-weight: 800; }
.note-info { background: var(--brand-soft); border-color: #cfe1ff; color: var(--brand-ink); }
.note-warn { background: var(--t-watch-soft); border-color: #f2ddb4; color: #8a5c00; }
.note-bad { background: var(--t-risk-soft); border-color: #f6cfcc; color: #9c2b23; }
.note-good { background: var(--t-excellent-soft); border-color: #c8ecd9; color: #0d6b3d; }
.note + .note { margin-top: 10px; }

/* ---------------- 表单 ---------------- */
label.field { display: block; margin-bottom: 14px; }
label.field > span.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 111, 235, .13);
}
textarea { resize: vertical; line-height: 1.7; }
.inline-field { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-field > * { flex: 1 1 180px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.switch input { width: auto; }

/* ---------------- 表格 ---------------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.tbl th { font-weight: 700; color: var(--ink-2); background: var(--card-2); font-size: 12.5px; white-space: nowrap; }
table.tbl tbody tr:hover { background: var(--card-2); }
table.tbl td.num { font-family: var(--mono); white-space: nowrap; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------- 进度条 ---------------- */
.bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .4s ease; }
.bar.b-excellent > i { background: var(--t-excellent); }
.bar.b-good > i { background: var(--t-good); }
.bar.b-watch > i { background: var(--t-watch); }
.bar.b-risk > i { background: var(--t-risk); }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-row .bar { flex: 1 1 auto; }
.bar-row .bar-val { flex: none; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); min-width: 52px; text-align: right; }

/* ---------------- 大分数 ---------------- */
.score-hero { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.score-dial { flex: none; position: relative; width: 168px; height: 168px; }
.score-dial .val {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.score-dial .val b { display: block; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-family: var(--mono); }
.score-dial .val span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }

/* ---------------- 空态 / 加载 ---------------- */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.loading { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13.5px; padding: 20px 0; }
.spin {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); border-top-color: var(--brand); animation: sp .7s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------------- 顶部细进度条 ---------------- */
.timerbar { position: sticky; top: 58px; z-index: 35; background: #fff; border-bottom: 1px solid var(--line); }
.timerbar-in {
  max-width: var(--maxw-read); margin: 0 auto; padding: 9px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.clock { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.clock.warn { color: var(--t-watch); }
.clock.danger { color: var(--t-risk); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.progressline { height: 3px; background: var(--line-2); }
.progressline > i { display: block; height: 100%; background: var(--brand); transition: width .3s ease; }

/* ---------------- 题目卡 ---------------- */
.qcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); }
.qmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.qstem { font-size: 17px; line-height: 1.85; color: var(--ink); font-family: var(--font-en); margin-bottom: 16px; white-space: pre-line; }
.qstem .blank { display: inline-block; min-width: 76px; border-bottom: 2px solid var(--brand); margin: 0 4px; vertical-align: baseline; }

.passage {
  background: var(--card-2); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px;
}
.passage .plabel { font-size: 12px; font-weight: 700; color: var(--brand-ink); letter-spacing: .03em; margin-bottom: 8px; }
.passage p { margin: 0 0 9px; font-family: var(--font-en); font-size: 15.5px; line-height: 1.85; }
.passage p:last-child { margin-bottom: 0; }
.passage mark { background: #fff3b8; padding: 0 2px; border-radius: 2px; }

.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px;
  cursor: pointer; background: #fff; transition: border-color .12s, background .12s, box-shadow .12s;
}
.opt:hover { border-color: #c3d7f5; background: var(--card-2); }
.opt .k {
  flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: var(--line-2); color: var(--ink-2); font-size: 12.5px; font-weight: 800;
}
.opt .v { flex: 1 1 auto; font-size: 15px; font-family: var(--font-en); line-height: 1.6; }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(31,111,235,.1); }
.opt.sel .k { background: var(--brand); color: #fff; }
.opt.correct { border-color: var(--t-excellent); background: var(--t-excellent-soft); }
.opt.correct .k { background: var(--t-excellent); color: #fff; }
.opt.wrongpick { border-color: var(--t-risk); background: var(--t-risk-soft); }
.opt.wrongpick .k { background: var(--t-risk); color: #fff; }
.opt.disabled { cursor: default; }

.gap-input {
  font-family: var(--font-en); font-size: 17px; padding: 11px 14px;
  letter-spacing: .02em;
}

/* ---------------- 听力播放器 ---------------- */
.player { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px; background: var(--card-2); }
.player .prow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.player .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex: none; }
.player .dot.on { background: var(--t-risk); animation: blink 1s steps(2, start) infinite; }
.transcript { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.transcript .line { margin-bottom: 7px; font-family: var(--font-en); font-size: 14.5px; }
.transcript .spk { display: inline-block; min-width: 86px; color: var(--brand-ink); font-weight: 700; font-size: 12.5px; font-family: var(--font); }

/* ---------------- 报告页专用 ---------------- */
.verdict {
  border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); background: #fff;
  display: flex; gap: 26px; flex-wrap: wrap; align-items: center;
}
.verdict.t-excellent { border-color: #c8ecd9; background: linear-gradient(180deg, #f3fbf6, #fff); }
.verdict.t-good { border-color: #cbe8f5; background: linear-gradient(180deg, #f3fafd, #fff); }
.verdict.t-watch { border-color: #f2ddb4; background: linear-gradient(180deg, #fdf9f0, #fff); }
.verdict.t-risk { border-color: #f6cfcc; background: linear-gradient(180deg, #fdf5f4, #fff); }

.qa3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qa3 .q { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--card-2); }
.qa3 .q .k { font-size: 12px; font-weight: 800; color: var(--brand-ink); letter-spacing: .04em; margin-bottom: 7px; }
.qa3 .q .v { font-size: 14.5px; line-height: 1.7; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; }
.stat .k { font-size: 12px; color: var(--ink-3); margin-bottom: 5px; }
.stat .v { font-size: 22px; font-weight: 800; font-family: var(--mono); letter-spacing: -.02em; }
.stat .s { font-size: 12px; color: var(--ink-3); }

.wk { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.wk-head { padding: 15px 18px; background: var(--card-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wk-head .t { display: flex; align-items: center; gap: 11px; }
.wk-num { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff;
  font-weight: 800; font-size: 14px; display: grid; place-items: center; flex: none; }
.wk-body { padding: 16px 18px; }
.wk-task { border-left: 3px solid var(--line); padding: 3px 0 3px 13px; margin: 0 0 13px; }
.wk-task.p-high { border-color: var(--t-risk); }
.wk-task.p-medium { border-color: var(--t-watch); }
.wk-task.p-low { border-color: var(--brand); }
.wk-task.p-maintain { border-color: var(--line); }
.wk-day { display: grid; grid-template-columns: 118px 60px 1fr; gap: 10px; align-items: baseline;
  padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.wk-day .dn { font-weight: 700; color: var(--ink-2); }
.wk-day .dm { font-family: var(--mono); font-size: 12.5px; color: var(--brand-ink); }
.wk-day ul { margin: 0; padding-left: 17px; }
.wk-day li { margin-bottom: 3px; }

.checkline { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.checkline:last-child { border-bottom: 0; }
.checkline input { width: auto; margin-top: 4px; flex: none; }
.checkline.done .ct { color: var(--ink-3); text-decoration: line-through; }
.checkline .ct { flex: 1 1 auto; font-size: 13.5px; }

details.acc { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; background: #fff; margin-bottom: 10px; }
details.acc > summary {
  cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 14px; list-style: none;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "▾"; margin-left: auto; color: var(--ink-3); font-size: 12px; }
details.acc[open] > summary { border-bottom: 1px solid var(--line); }
details.acc .acc-body { padding: 15px 16px; }

/* ---------------- 其它 ---------------- */
.radar-wrap { display: flex; justify-content: center; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
ul.plain li:last-child { border-bottom: 0; }
ol.steps { padding-left: 20px; margin: 0; }
ol.steps li { margin-bottom: 9px; font-size: 14px; }
.kv { display: flex; gap: 10px; font-size: 13.5px; padding: 5px 0; }
.kv .k { flex: none; width: 96px; color: var(--ink-3); }
.kv .v { flex: 1 1 auto; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.big-cta {
  border-radius: var(--radius-lg); padding: 30px;
  background: linear-gradient(135deg, #eaf2ff 0%, #f7faff 55%, #fff 100%);
  border: 1px solid #cfe1ff;
}

/* ---------------- 首页 hero（居中，对齐 LinguaWrite） ---------------- */
.hero { padding: 38px 0 24px; text-align: center; }
.hero h1 { font-size: 30px; letter-spacing: -.025em; margin-bottom: 10px; }
.hero .lede { font-size: 15.5px; color: var(--ink-3); max-width: 620px; margin: 0 auto; line-height: 1.7; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 22px; justify-content: center; }
.pill {
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}

/* ---------------- 选择卡片（对齐 LinguaWrite 的 .lvl） ---------------- */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 12px; }
.pick {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  background: var(--card); cursor: pointer; font-family: inherit; color: var(--ink);
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.pick:hover { border-color: #c3d7f5; background: var(--card-2); }
.pick.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(31, 111, 235, .1); }
.pick .dot {
  width: 15px; height: 15px; border-radius: 50%; flex: none; margin-top: 4px;
  border: 2px solid var(--line); background: #fff;
}
.pick.on .dot { border-color: var(--brand); box-shadow: inset 0 0 0 3.5px var(--brand); }
.pick .pt { min-width: 0; }
.pick .pt b { display: block; font-size: 14.5px; font-weight: 700; }
/* 只作用于描述行（直接子级）：.pk 徽章在 <b> 里面，不能被块级化 */
.pick .pt > span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.55; }
.pk {
  display: inline-block; font-size: 11px; font-weight: 800; line-height: 1;
  padding: 3px 8px; border-radius: 999px; background: var(--brand); color: #fff;
  margin-left: 6px; vertical-align: 1px;
}
.btn-block-lg { width: 100%; font-size: 16px; padding: 15px 24px; border-radius: 12px; }
/* 入口屏居中窄列：卡片铺满 1080px 会显得比例失衡（对齐 LinguaWrite 的 .onboard） */
.narrow { max-width: 700px; margin-left: auto; margin-right: auto; }
.lbl-sec { font-size: 12px; font-weight: 800; color: var(--ink-3); letter-spacing: .07em; margin-bottom: 12px; }
/* 页内返回入口（考试页顶栏用） */
.backlink {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 13.5px; color: var(--ink-2); padding: 6px 10px; border-radius: 8px;
}
.backlink:hover { background: var(--card-2); color: var(--ink); text-decoration: none; }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: #fff; font-size: 13.5px; padding: 11px 20px; border-radius: 10px;
  box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 100; max-width: 90vw;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--t-risk); }

.foot { margin: 48px 0 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
.foot .row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.modal-bg {
  position: fixed; inset: 0; background: rgba(18, 26, 35, .5); z-index: 90;
  display: grid; place-items: center; padding: 20px;
}
.modal { background: #fff; border-radius: var(--radius); padding: 24px; max-width: 520px; width: 100%; box-shadow: var(--shadow-2); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .qa3, .grid3, .grid4 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .hero { padding: 30px 0 20px; }
  .hero h1 { font-size: 25px; }
  .hero .lede { font-size: 14.5px; }
  .score-hero { gap: 18px; }
  .score-dial { width: 136px; height: 136px; }
  .score-dial .val b { font-size: 36px; }
}
/* 窄屏：顶栏导航只留图标，避免挤成一团 */
@media (max-width: 760px) {
  .topbar-in { padding: 0 12px; gap: 4px; height: 54px; }
  .bn, .brand-sub { display: none; }
  .nav { margin-left: 2px; }
  .nav a { white-space: nowrap; flex-shrink: 0; padding: 8px 8px; font-size: 12.5px; }
  .nav a .lb { display: none; }
  .tb-right { flex-shrink: 0; }
  .brand { flex-shrink: 0; }
  .tb-link { padding: 7px 9px; font-size: 12.5px; }
  .timerbar { top: 54px; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .wrap, .wrap-read { padding: 0 15px; }
  .card, .qcard { padding: 17px; }
  .topbar-in { padding: 0 12px; }
  .timerbar-in { padding: 8px 15px; }
  .wk-day { grid-template-columns: 1fr; gap: 3px; }
  .wk-day .dm { display: none; }
  .kv .k { width: 80px; }
  .qstem { font-size: 16px; }
  .pick-grid { grid-template-columns: 1fr; }
}

@media print {
  .topbar, .timerbar, .btn, .nav, .foot { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #d8dde3; break-inside: avoid; }
}

/* ============================================================
   linguatest.cn 站点群互跳条（三站统一：主站 / LinguaWrite / KET）
   位置：页头最上方；当前站为选中态（白底深蓝字，非链接）
   ============================================================ */
.xsite-bar{background:#16385f;border-bottom:1px solid rgba(255,255,255,.08)}
.xsite-in{max-width:1080px;margin:0 auto;padding:0 24px;height:36px;display:flex;align-items:center;gap:6px}
.xsite-lab{font-size:11px;color:rgba(255,255,255,.5);margin-right:4px;letter-spacing:.06em}
.xsite-link{display:inline-flex;align-items:center;height:25px;padding:0 12px;border-radius:13px;
  font-size:12.5px;line-height:1;white-space:nowrap;color:rgba(255,255,255,.82);text-decoration:none;
  transition:background .15s,color .15s}
.xsite-link:hover{background:rgba(255,255,255,.14);color:#fff}
.xsite-link.cur{background:#fff;color:#16385f;font-weight:600;cursor:default}
.xsite-link.cur:hover{background:#fff}
@media(max-width:640px){
  .xsite-in{padding:0 12px;gap:4px;height:32px}
  .xsite-lab{display:none}
  .xsite-link{height:24px;padding:0 9px;font-size:12px}
}

/* 手机端横向滚动兜底（2026-09-28） */
html, body { overflow-x: clip; }

/* 兄弟站外推位（2026-10-19）：浅黄高亮 + 外链箭头，与站内互跳项区分 */
.xsite-link.xsite-ext{color:#ffd66e;background:rgba(255,214,110,.14)}
.xsite-link.xsite-ext:hover{background:rgba(255,214,110,.3);color:#ffe49a}
.xsite-arrow{font-size:10px;margin-left:4px;opacity:.85}
/* 互跳项增至 7 个：窄屏让互跳条自身横向滚动，避免末项被 overflow-x:clip 裁掉 */
@media(max-width:640px){.xsite-bar{overflow-x:auto;-webkit-overflow-scrolling:touch}.xsite-arrow{margin-left:3px;font-size:9px}}
