@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(assets/fonts/Inter-normal-400-latin.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(assets/fonts/Inter-normal-500-latin.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(assets/fonts/Inter-normal-600-latin.woff2) format('woff2'); }

:root {
  --ink: #0f2150; --ink-2: #2b3c66; --ink-3: #5d6d8a;
  --blue: #1e4fa3; --blue-2: #1aa7e0; --water: #e2ecfa;
  --green: #13a13a; --green-ink: #0d7a2b; --green-btn: #0f7a2e; --green-2: #6fd83a; --amber: #8a5200; --red: #c0392b;
  --input-line: #8593a9;  /* 计划值 #8c9ab0 只有 2.85:1，不到 3:1，略调深 */
  --paper: #f7f9fc; --paper-2: #edf2f8; --white: #fff;
  --hero-start: #0f2150; --hero-end: #1e4fa3;  /* 首页 hero 渐变：文字区不淡到 --blue-2，白字对比度 check-contrast 检查 */
  --line: #d9e0ea; --line-2: #e3e9f1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15,33,80,.06), 0 4px 16px rgba(15,33,80,.06);
  --font: Inter, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; } /* iOS 聚焦不放大 */
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 28px; } h2, .h2 { font-size: 21px; } h3, .h3 { font-size: 17px; }
.muted { color: var(--ink-3); } .small { font-size: 14px; } .tiny { font-size: 12.5px; }
.hidden { display: none !important; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 58px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font-size: 17px; letter-spacing: .02em; }
.brand span { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 15px; }
.nav a.on, .nav a:hover { background: var(--paper-2); text-decoration: none; }
.nav.mobile { display: none; }
.top-r { display: flex; align-items: center; gap: 8px; }
.lang { border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 4px 9px; cursor: pointer; font-size: 13px; }

/* 布局 */
main { max-width: 1120px; margin: 0 auto; padding: 28px 16px 64px; min-height: calc(100vh - 140px); }
.narrow { max-width: 760px; margin: 0 auto; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-bottom: .4em; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
footer { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
footer .in { max-width: 1120px; margin: 0 auto; padding: 18px 16px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--blue); background: var(--blue); color: #fff; border-radius: 8px; padding: 9px 18px; cursor: pointer; font-weight: 500; font-size: 15px; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.ghost { background: var(--white); color: var(--blue); }
.btn.green { background: var(--green-btn); border-color: var(--green-btn); }
.btn.danger { background: var(--white); color: var(--red); border-color: var(--red); }
.btn.sm { padding: 5px 11px; font-size: 13.5px; }
.btn.lg { padding: 12px 26px; font-size: 16px; }
/* 长文案按钮：允许换行、左对齐、不超过容器（考试结果页「先复习…」、总览主按钮） */
.btn.wrap { white-space: normal; text-align: left; max-width: 100%; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.main-btn { justify-content: flex-start; }

/* 表单 */
label.f, div.f { display: block; }
label.f > span, .f > label > span, fieldset.plain legend span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 5px; font-weight: 500; }
.input { width: 100%; border: 1px solid var(--input-line); border-radius: 8px; padding: 9px 12px; background: var(--white); }
.input:focus { border-color: var(--blue); }
.input[aria-invalid="true"] { border-color: var(--red); }
/* 键盘焦点（第 5 轮 R10①）：双色——2px 蓝色外框 + 4px 白色内圈，深色底（首页 hero、考试栏）和白底上都看得见 */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: 0 0 0 4px #fff; }
/* 跳到正文：平时藏在屏幕外，Tab 到它时出现在左上角 */
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 14px; }
.skip:focus { top: 8px; }
main:focus, #app h1:focus { outline: none; box-shadow: none; }
.req-mark { color: var(--red); font-weight: 600; }
.field-err { color: var(--red); font-size: 14px; margin-top: 4px; }
.field-err:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
fieldset.plain, fieldset.typesel { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.typesel legend { font-size: 14px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; padding: 0; }
.typesel-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 10px; }
.typebtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.typebtn b { font-size: 16px; } .typebtn span { font-size: 13px; color: var(--ink-3); }
.typebtn.on { border-color: var(--blue); background: #f2f7ff; }
.check.inline { display: inline-flex; margin-right: 8px; }
.kiosk-bar { background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 500; margin-bottom: 14px; font-size: 14.5px; }
.cn-note { border-left-color: var(--amber); }
.employer-card { border-left: 4px solid var(--blue-2); }
.warn-note { border-left-color: var(--amber); background: #fdf0dc; color: var(--amber); }
.stat.warn b { color: var(--amber); }
.m-progress { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { margin-top: 4px; width: 17px; height: 17px; flex: none; }
.err { color: var(--red); font-size: 14px; }
.ok { color: var(--green-ink); }

/* 标签 */
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.tag.blue { background: var(--water); color: var(--blue); }
.tag.green { background: #e3f5e7; color: var(--green-ink); }
.tag.amber { background: #fdf0dc; color: var(--amber); }
.tag.red { background: #fbe5e2; color: var(--red); }

/* 进度条 */
.bar { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 99px; }
.bar.green > i { background: var(--green); }

/* 首页 */
.hero { background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%); color: #fff; border-radius: 16px; padding: 48px 40px; position: relative; overflow: hidden; }
.hero h1 { font-size: 38px; margin-bottom: 10px; }
.hero p { font-size: 17px; max-width: 640px; color: #fff; }
.hero .hero-lead { font-size: 18px; margin: 0 0 18px; }
.hero .hero-cta { margin-bottom: 18px; }
.hero .hero-more { font-size: 15px; margin: 0; opacity: .92; }
.hero .kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); font-weight: 600; margin-bottom: 10px; }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero-flow { position: absolute; right: -40px; top: 0; bottom: 0; width: 420px; opacity: .18; pointer-events: none; }
.steps { counter-reset: s; }
.card.step { position: relative; padding-left: 62px; }
.card.step::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--water); color: var(--blue); font-weight: 600; display: grid; place-items: center; }
.level { border-top: 4px solid var(--blue); }
.level.l2 { border-top-color: var(--blue-2); } .level.l3 { border-top-color: var(--green); }
.level ul { padding-left: 18px; margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; }
.note { background: var(--paper-2); border-left: 3px solid var(--ink-3); padding: 12px 16px; border-radius: 6px; font-size: 14px; color: var(--ink-2); }
.err-note { border-left-color: var(--red); background: #fbe5e2; color: var(--red); }
.err-note a { color: var(--red); text-decoration: underline; }
.stat.bad b { color: var(--red); }
/* 进行中考卷横幅 */
.open-banner { border-left: 4px solid var(--amber); margin-bottom: 16px; }
/* 试行期通过记录：虚线框，和证书卡明显区分 */
.trial-rec { border: 2px dashed var(--input-line); box-shadow: none; background: var(--paper); }
/* 三段进度条：已完成 / 已上线未完成 / 即将上线（底色） */
.bar3 { height: 8px; border-radius: 99px; overflow: hidden; display: flex; background: repeating-linear-gradient(45deg, var(--paper-2) 0 6px, var(--line-2) 6px 12px); }
.bar3 > i { display: block; height: 100%; }
.bar3 > i.d { background: var(--blue); }
.bar3 > i.l { background: #b9d3f2; }
/* 心跳失败提示 */
.beat-warn { position: sticky; top: 64px; z-index: 12; background: #fdf0dc; color: var(--amber); border: 1px solid #f3d6a6; border-radius: 8px; padding: 8px 12px; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
/* 站内确认框 */
.dlg-wrap { position: fixed; inset: 0; background: rgba(15,33,80,.45); z-index: 200; display: grid; place-items: center; padding: 16px; }
.dlg { background: var(--white); border-radius: 12px; padding: 22px 22px 18px; max-width: 460px; width: 100%; box-shadow: 0 10px 40px rgba(15,33,80,.25); max-height: calc(100vh - 32px); overflow-y: auto; }
.dlg h2 { font-size: 19px; }
.dlg-b { font-size: 15px; color: var(--ink-2); }
.dlg-btns { justify-content: flex-end; margin-top: 18px; }
/* 考试模式：隐藏顶部和底部导航、退出按钮 */
body.exam-mode .nav, body.exam-mode #logout { display: none !important; }
/* 表单里的小标题（非 label 的字段名） */
.f .lbl { font-size: 14px; color: var(--ink-2); margin-bottom: 5px; font-weight: 500; }
.survey { border: 1px dashed var(--input-line); border-radius: 8px; padding: 12px 14px; }
.survey > * + * { margin-top: 12px; }
.survey-t { font-weight: 600; font-size: 14.5px; padding: 0 4px; }
.jl-paid { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.tiers { background: var(--paper); border-radius: 8px; padding: 12px 16px; margin: 14px 0; }
.tiers ul { padding-left: 18px; margin: 6px 0 8px; font-size: 14px; }
.input.sm { padding: 5px 8px; font-size: 14px; width: auto; }
table.data td.wrap-s { white-space: normal; min-width: 140px; }
table.data tr.overdue td { background: #fdf0ee; }
.q-img { margin: 4px 0 12px; }
.q-img img { max-width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.q-img figcaption { margin-top: 4px; }

/* 统计块 */
.stat b { display: block; font-size: 26px; font-weight: 600; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-3); }

/* 打卡日历 */
.heat { display: grid; grid-template-rows: repeat(7, 13px); grid-auto-flow: column; grid-auto-columns: 13px; gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.heat i { width: 13px; height: 13px; border-radius: 3px; background: var(--paper-2); }
.heat i.l1 { background: #b9d3f2; } .heat i.l2 { background: #6fa3e0; } .heat i.l3 { background: var(--blue); }
.heat i.ck { outline: 2px solid var(--green); outline-offset: -2px; }
.heat i.fut { background: transparent; }

/* 课程列表 */
.lesson-row { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: var(--paper); text-decoration: none; }
.lesson-row .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-weight: 600; flex: none; font-size: 14px; }
.lesson-row .n.done { background: var(--green); color: #fff; }
.lesson-row .t { flex: 1; min-width: 0; }
.lesson-row .t b { display: block; font-weight: 500; }
.lesson-row .meta { display: flex; gap: 6px; align-items: center; flex: none; }
/* 「即将开放」行：不再整行降透明度（正文要 ≥4.5:1），只把序号圈改成虚线框 */
.lesson-row.coming .n { background: var(--white); border: 1px dashed var(--input-line); color: var(--ink-3); }
.lesson-row.coming:hover { background: none; }

/* 正文 */
.lesson-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.lesson-wrap > * { min-width: 0; }
/* 上一章 / 下一章：短标签 + 一行省略号截断的标题，允许换行 */
.lesson-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.btn.navbtn { flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; min-width: 0; max-width: 100%; text-align: left; padding: 10px 14px; }
.btn.navbtn.nb-r { align-items: flex-end; text-align: right; justify-self: end; }
.navbtn .nb-k { font-weight: 600; }
.navbtn .nb-t { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 400; opacity: .9; }
.side { position: sticky; top: 78px; }
.prose { font-size: 16.5px; line-height: 1.8; }
.prose h2 { font-size: 22px; margin: 1.8em 0 .6em; padding-top: .4em; border-top: 1px solid var(--line-2); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose code { background: var(--paper-2); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.prose blockquote { margin: 1.2em 0; padding: 12px 16px; background: var(--paper); border-left: 4px solid var(--line); border-radius: 6px; }
.prose blockquote.tip { background: #eef6ff; border-left-color: var(--blue-2); }
.prose blockquote.warn { background: #fff6e8; border-left-color: var(--amber); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .tbl { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); }
.req { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 6px 0; }
.req i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.req.ok i { background: var(--green); border-color: var(--green); }

/* 题目 */
.q { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.q:last-child { border-bottom: 0; }
.q .stem { font-weight: 500; margin-bottom: 10px; }
.q .stem .tag { margin-right: 6px; vertical-align: 1px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin: 6px 0; cursor: pointer; background: var(--white); }
/* UX 迭代第 3 轮 R3-03⑥：悬停描边只在有鼠标的设备上出现（手机点完不残留，看着像选中） */
@media (hover: hover) { .opt:hover { border-color: var(--blue-2); } }
.opt input { margin-top: 4px; flex: none; width: 17px; height: 17px; }
.opt.sel { border-color: var(--blue); background: #f2f7ff; }
.opt.right { border-color: var(--green); background: #effaf1; }
.opt.wrong { border-color: var(--red); background: #fdf0ee; }
.q.missing { background: #fff6e8; box-shadow: -12px 0 0 #fff6e8, 12px 0 0 #fff6e8; }
.q.missing .stem::after { content: ' *'; color: var(--amber); font-weight: 600; }
.q.q-ok .stem { color: var(--green-ink); }
.q.q-bad .stem { color: var(--red); }
.explain { font-size: 14.5px; background: var(--paper); padding: 10px 14px; border-radius: 8px; margin-top: 8px; color: var(--ink-2); }

/* 考试 */
.q { scroll-margin-top: 150px; }
#save-st:not(:empty)::before { content: ' · '; }
.exam-bar { position: sticky; top: 58px; z-index: 10; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; box-shadow: var(--shadow); margin-bottom: 16px; flex-wrap: wrap; }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 20px; }
.timer.low { color: var(--red); }
.qnav { display: flex; flex-wrap: wrap; gap: 5px; }
.qnav button { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; border: 1px solid var(--input-line); color: var(--ink-2); background: var(--white); cursor: pointer; padding: 0; }
.qnav button.ans { background: var(--blue); border-color: var(--blue); color: #fff; }
.qnav button:hover { border-color: var(--blue); }
.result-big { font-size: 56px; font-weight: 600; line-height: 1; }

/* 证书 */
.cert { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px; max-width: 900px; margin: 0 auto; box-shadow: var(--shadow); }
.cert-in { border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; padding: 44px 48px; text-align: center; position: relative; }
.cert-in .logo { width: 64px; height: 64px; }
.cert-in .org { letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: var(--ink-3); margin: 8px 0 22px; }
.cert-in h1 { font-size: 30px; letter-spacing: .04em; margin-bottom: 4px; }
.cert-in .sub { color: var(--ink-3); margin-bottom: 26px; }
.cert-in .who { font-size: 34px; font-weight: 600; margin: 6px 0 2px; }
.cert-in .who-en { font-size: 16px; color: var(--ink-3); margin-bottom: 20px; }
.cert-in .course { font-size: 19px; font-weight: 500; }
.cert-meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 36px; text-align: left; gap: 16px; }
.cert-meta .qr svg, .cert-meta .qr img { width: 96px; height: 96px; display: block; }
.cert-meta .k { font-size: 12px; color: var(--ink-3); } .cert-meta .v { font-size: 14px; font-weight: 500; }
.verify-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.verify-badge.valid { background: #e3f5e7; color: var(--green-ink); }
.verify-badge.bad { background: #fbe5e2; color: var(--red); }
/* 撤销/过期证书：斜向大水印，放在证书主体内（可打印区域），打印也保留颜色 */
.cert.invalid .cert-in > *:not(.cert-wm) { opacity: .55; }
.cert-wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; overflow: hidden; }
.cert-wm span { transform: rotate(-24deg); font-size: clamp(34px, 8vw, 84px); font-weight: 700; letter-spacing: .06em; color: rgba(192,57,43,.34); border: 6px solid rgba(192,57,43,.34); border-radius: 14px; padding: 6px 24px; white-space: nowrap; }
.cert-invalid { color: var(--red); margin: 18px 0 0; font-size: 15px; }
.cert, .cert-wm span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* 报名页 */
.join-head { margin-bottom: 18px; }
.join-head .kicker { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.join-head p { color: var(--ink-2); }
.join-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.jl { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
.jl.l2 { border-top-color: var(--blue-2); } .jl.l3 { border-top-color: var(--green); } .jl.l0 { border-top-color: var(--green-btn); }
.jl b { display: block; font-weight: 600; } .jl span { color: var(--ink-3); font-size: 12.5px; }
.ok-note { border-left-color: var(--green); background: #e3f5e7; color: var(--green-ink); }
/* 草稿页 */
.draft-banner { background: #fdf0dc; color: var(--amber); border: 1px solid #f3d6a6; border-radius: 8px; padding: 8px 14px; font-weight: 600; margin-bottom: 16px; }
.legal h3 { margin-top: 1.4em; }
.legal p { color: var(--ink-2); }
.legal ul { color: var(--ink-2); padding-left: 1.3em; margin: .4em 0 .8em; }
.legal li { margin: .35em 0; }
.legal p, .legal li { overflow-wrap: anywhere; }
.legal-toc { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 14px 0 6px; font-size: 14px; }
.legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 24px; }
.legal-toc li { margin: .2em 0; break-inside: avoid; }
.legal section h3:focus { outline: none; }
/* 链接样式的按钮 */
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn:disabled { color: var(--ink-3); cursor: default; text-decoration: none; }
/* 管理端图表与二维码 */
.chart { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line); } .chart .grid { stroke: var(--line-2); stroke-dasharray: 3 3; }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 2; } .chart .dot { fill: var(--blue); }
.chart text { font-size: 11px; fill: var(--ink-3); }
table.data tr.total td { font-weight: 600; background: var(--paper); }
.qr-big svg { width: 240px; height: 240px; display: block; margin: 12px 0; }

/* 表格（管理端） */
.tbl-wrap { overflow-x: auto; position: relative; }   /* 表内 .sr-only（绝对定位）以此为包含块，不撑宽页面 */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
table.data th { font-weight: 500; color: var(--ink-3); font-size: 13px; background: var(--paper); }
table.data td.wrap { white-space: normal; min-width: 260px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--blue); font-weight: 500; }
.tabs a:hover { text-decoration: none; color: var(--ink); }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100% - 32px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14.5px; box-shadow: var(--shadow); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .lesson-wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .hero { padding: 26px 20px; border-radius: 12px; }
  .hero h1 { font-size: 27px; }
  .hero .hero-lead { font-size: 16px; margin-bottom: 14px; }
  .hero .hero-cta .btn { padding: 11px 18px; }
  .hero .hero-more { font-size: 14px; }
  .hero-flow { display: none; }
  .nav { display: none; }
  .nav.mobile { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .nav.mobile a[aria-current] { color: var(--blue); font-weight: 600; }
  /* 底栏避让加在 body 上，页脚完整可见（登录与未登录都有底栏） */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.exam-mode { padding-bottom: 0; }
  body.exam-mode .nav.mobile { display: none !important; }
  /* 考试栏在手机上压成一行：已答数、剩余时间、交卷 */
  .exam-bar { flex-wrap: nowrap; padding: 8px 10px; gap: 8px; top: 58px; }
  .exam-bar .eb-title, .exam-bar .eb-left { display: none; }
  .exam-bar .eb-info { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .exam-bar .eb-r { flex-wrap: nowrap; gap: 8px; }
  .exam-bar .btn { padding: 7px 12px; }
  .timer { font-size: 18px; }
  .q { scroll-margin-top: 120px; }
  .typebtn { padding: 10px 10px; }
  .typebtn b { font-size: 15px; }
  .lesson-nav { gap: 8px; }
  .btn.navbtn { padding: 9px 11px; }
  .toasts { bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* 手机章节页：标题下的紧凑进度条代替右栏 */
  .m-progress { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: -4px 0 14px; }
  .lesson-wrap .side { display: none; }
  .card.step { padding-left: 58px; }
  .card.step::before { left: 14px; top: 15px; }
  .lesson-row { flex-wrap: wrap; row-gap: 4px; }
  .lesson-row .t { flex: 1 1 calc(100% - 48px); }
  .lesson-row .meta { flex: 1 1 100%; padding-left: 48px; }
  .join-levels { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .jl { padding: 6px 8px; }
  .brand span { display: none; }
  .cert-in { padding: 26px 16px; }
  .cert-in .who { font-size: 26px; }
  .cert-meta { flex-direction: column; align-items: center; text-align: center; }
  .card { padding: 16px; }
}
@media print {
  .top, footer, .no-print, .nav.mobile { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  main { padding: 0; }
  .cert { border: 0; box-shadow: none; padding: 0; }
  @page { size: A4 landscape; margin: 12mm; }
}

/* ───── 第 4 轮 ───── */
/* 新学员总览顶部大卡 */
.first-card { border-left: 4px solid var(--blue); margin-bottom: 18px; }
.first-card .kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
/* 一次性确认卡 */
.consent-card { border-left: 4px solid var(--amber); margin-bottom: 18px; }
/* 访客预读：底部固定注册卡 */
.preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: #fff; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(15,33,80,.18); }
.preview-bar .btn { background: #fff; color: var(--ink); border-color: #fff; }
body.has-preview-bar { padding-bottom: 84px; }
body.has-preview-bar .nav.mobile { display: none !important; }
/* 常见问题 */
.faq-item { margin-bottom: 10px; padding: 0; }
.faq-item summary { cursor: pointer; padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--blue); flex: none; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary h2 { margin: 0; }
.faq-a { padding: 0 20px 14px; color: var(--ink-2); }
.faq-a p { margin: 0 0 .7em; }
/* 考试：题号抽屉（手机从底部弹出） */
.qdrawer { position: fixed; inset: 0; background: rgba(15,33,80,.45); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; }
.qd-in { background: var(--white); border-radius: 12px; padding: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 10px 40px rgba(15,33,80,.25); }
.qd-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--input-line); box-sizing: border-box; vertical-align: -1px; background: var(--white); }
.qd-key.ans { background: var(--blue); border-color: var(--blue); }
.qd-in .qnav button { width: 40px; height: 40px; font-size: 14px; }
.qnav button:not(.ans) { background: var(--white); }
/* 平板：顶栏大号语言切换 */
.kiosk-lang { background: #fff; color: var(--ink); border: 0; border-radius: 8px; font-size: 17px; font-weight: 600; padding: 8px 18px; cursor: pointer; min-height: 44px; }
.kiosk-bar.row { gap: 10px; padding: 6px 8px 6px 14px; }
.stat.good b { color: var(--green-ink); }
.ts-box:empty { display: none; }
.lead-short { display: none; }
@media (max-width: 640px) {
  .qdrawer { align-items: flex-end; padding: 0; }
  .qd-in { border-radius: 14px 14px 0 0; max-width: none; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .exam-bar #qnav-btn { padding: 7px 10px; }
  /* 报名页手机首屏：说明缩成一行、三级卡折成一行，邮箱框要在首屏里 */
  .join .lead-full { display: none; }
  .join .lead-short { display: block; margin: 0 0 10px; font-size: 14.5px; }
  .join-head { margin-bottom: 12px; }
  .join-head h1 { font-size: 22px; margin-bottom: 4px; }
  .join .join-levels { display: flex; gap: 6px; overflow-x: auto; }
  .join .jl { flex: 1 1 0; min-width: 0; padding: 4px 6px; border-top-width: 2px; }
  .join .jl b { font-size: 12.5px; } .join .jl span { font-size: 11.5px; } .join .jl .jl-paid { display: none; }
  .join .typesel legend { margin-bottom: 4px; }
  .join .typebtn { padding: 8px 10px; }
  .join .typebtn span { display: none; }
  .join form.card { padding: 14px; }
  .join form.stack > * + * { margin-top: 12px; }
  .preview-bar { justify-content: space-between; }
}

/* ───── 第 5 轮 ───── */
.hero .hero-status { display: inline-block; font-size: 14px; background: rgba(255,255,255,.14); border-radius: 99px; padding: 3px 12px; margin: 0 0 12px; }
/* 人才库分级（折叠） */
details.tiers summary { cursor: pointer; font-size: 14.5px; }
details.tiers[open] summary { margin-bottom: 6px; }
details.tiers li .tag { margin-left: 4px; }
.employer-card details.tiers { margin: 12px 0 0; }
.join-head details.tiers { text-align: left; }
/* 平板授权失效、导出本机待补传 */
.kiosk-bar .kiosk-lost { background: #fbe5e2; color: var(--red); border-radius: 6px; padding: 8px 10px; margin-top: 8px; font-weight: 600; }
.kiosk-bar .kiosk-export { color: #fff; text-decoration: underline; margin-top: 6px; font-size: 14px; }
.kiosk-bar > .row { gap: 10px; }
/* 登录页「收不到验证码？」 */
.otp-help { margin-top: 16px; background: var(--paper); box-shadow: none; }
.otp-help ul { padding-left: 18px; margin: 4px 0; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 14px; user-select: all; overflow-wrap: anywhere; }
/* 小测结果摘要卡 */
.quiz-sum { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; scroll-margin-top: 72px; }
.quiz-sum.pass { border-left-color: var(--green); }
.quiz-sum .qs-score { font-weight: 600; font-size: 17px; }
.qs-nav button { width: 40px; height: 40px; }
/* 章节小标题锚点避开顶栏 */
.prose h2, .prose h3 { scroll-margin-top: 72px; }
/* 证书页：二维码下打印完整核验地址 */
.qr-box { text-align: center; max-width: 220px; }
.verify-url { font-size: 11px; color: var(--ink-2); margin-top: 4px; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, monospace; }
.cert-foot { max-width: 900px; margin: 12px auto 0; }
/* 资料页分组、完整度缺项、手机保存按钮吸底 */
fieldset.pgroup { border: 0; border-top: 1px solid var(--line-2); padding: 14px 0 0; margin: 0; min-width: 0; }
fieldset.pgroup legend { font-weight: 600; font-size: 16px; color: var(--ink); padding: 0 8px 0 0; }
fieldset.pgroup:first-of-type { border-top: 0; padding-top: 0; }
.score-d summary { cursor: pointer; list-style: none; }
.score-d summary::-webkit-details-marker { display: none; }
.score-pop { background: var(--paper); border-radius: 6px; padding: 8px 10px; margin-top: 6px; max-width: 320px; }
.ob-name-hint { color: var(--ink-2); }
.l2-card { border-left: 4px solid var(--blue-2); }
.exhausted-card { border-left: 4px solid var(--amber); }
.l2-info ul { padding-left: 18px; margin: 4px 0 12px; }
@media (max-width: 640px) {
  .profile-form .save-bar { position: sticky; bottom: calc(56px + env(safe-area-inset-bottom)); background: var(--white); padding: 10px 0; margin: 12px 0 -4px; border-top: 1px solid var(--line-2); z-index: 5; }
  .profile-form .save-bar .btn { flex: 1; }
}
@media print {
  .verify-url { color: #000; }
}

/* 第 6 轮 R6-5：手机可用性 —— 页脚链接、返回链接、语言切换的点击区域 ≥44×44；章节宽表格横滑与提示；R6-6 回看小节；R6-3 分享卡 */
.tbl-hint { margin: 0 0 4px; text-align: right; }
.prose .tbl:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.rev { display: inline-block; margin-top: 6px; font-size: 14px; text-align: left; }
.qs-secs { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.share-inline { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.share-inline h3 { font-size: 16px; }
.share-card input[readonly], .share-inline input[readonly] { font-size: 14px; }
.src-unreg { margin-left: 4px; }
@media (max-width: 640px) {
  .lang { min-width: 44px; min-height: 44px; padding: 4px 10px; }
  #foot-r a, .back { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  #foot-r a { justify-content: center; padding: 0 4px; }
  .rev, .qs-secs .linkbtn { min-height: 44px; display: inline-flex; align-items: center; }
  .prose .tbl.wide table { width: max-content; min-width: 100%; }
  .prose .tbl.wide th, .prose .tbl.wide td { min-width: 7em; max-width: 18em; }
  /* UX 迭代第 1 轮 R1-08：三列以内的窄表英文按整词换行（只有超长连续字符串才断开），首列宽度按内容，单元格左右留白 8px */
  .prose .tbl:not(.wide) th, .prose .tbl:not(.wide) td { padding: 6px 8px; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
  .prose .tbl:not(.wide) th:last-child:not(:first-child):not(:nth-child(2)), .prose .tbl:not(.wide) td:last-child:not(:first-child):not(:nth-child(2)) { min-width: 5em; }
}

/* 第 7 轮（ChatGPT 审核 L01–L06）：段内目录、本节时长、脚注、段内自测、章节版本行、注册流程说明、关于页 */
.lesson-meta { margin: -2px 0 12px; overflow-wrap: anywhere; }
.prose .sec-toc { background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 16px; margin: 0 0 1.4em; font-size: 15px; line-height: 1.6; }
.prose .sec-toc .toc-h { margin: 0 0 6px; }
.prose .sec-toc ol { margin: 0; padding-left: 1.4em; }
.prose .sec-toc ul { margin: 0; padding-left: 0; list-style: none; }
.prose .sec-toc li { margin: .2em 0; }
.prose .sec-toc .toc-min { color: var(--ink-3); font-size: 13px; margin-left: 8px; white-space: nowrap; }
.prose sup.fn-ref { font-size: .72em; line-height: 0; margin-left: 1px; }
.prose sup.fn-ref a { padding: 0 1px; }
.prose .footnotes { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.prose .footnotes h3 { margin-top: 0; }
.prose .footnotes .fn-legend { font-size: 13px; color: var(--ink-3); }
.prose .footnotes ol { padding-left: 1.6em; }
.prose .footnotes li { margin: .5em 0; overflow-wrap: anywhere; scroll-margin-top: 72px; }
.prose .footnotes li:target, .prose .footnotes li:focus { background: var(--water); outline: none; border-radius: 4px; }
.prose .fn-todo { color: var(--amber); font-weight: 600; }
.prose .fn-back { margin-left: 4px; }
.prose sup.fn-ref { scroll-margin-top: 90px; }
.sec-check { background: #eef6ff; border-left: 4px solid var(--blue-2); border-radius: 6px; padding: 10px 14px; margin: 0 0 1.2em; font-size: 15px; line-height: 1.6; }
.sec-check ul { margin: 6px 0 0; padding-left: 1.2em; }
.sec-check li { margin: .3em 0; overflow-wrap: anywhere; }
.signup-steps { margin: 2px 0 0; overflow-wrap: anywhere; }
.signup-steps ol { margin: 0 0 6px; padding-left: 1.4em; }
.signup-steps details summary { cursor: pointer; color: var(--blue); }
.signup-steps details ul { margin: 6px 0 0; padding-left: 1.2em; }
.card .signup-steps { margin-top: 12px; }
#app:focus { outline: none; }
/* Academy: quiet reading, a compact curriculum map, independent of exam screens. */
.academy-head{max-width:780px;padding:24px 0}.academy-head h1{font-size:clamp(28px,4vw,42px);line-height:1.2;margin:12px 0}.academy-draft{margin:18px 0}.academy-intro{margin:16px 0 28px}.academy-card{display:block;text-decoration:none;color:inherit}.academy-card h2{font-size:21px;margin:10px 0}.academy-card p{font-size:14px}.academy-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.academy-map-item{padding:16px;border:1px solid var(--line,#d7dfe8);border-radius:12px;min-width:0}.academy-map-item>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.academy-map-item h4{font-size:16px;line-height:1.5;margin:10px 0}.academy-map-item a{display:block;font-size:13px;padding:7px 0}.academy-series{margin:28px 0}.academy-filters{margin:20px 0;flex-wrap:wrap}.academy-filters [aria-pressed=true]{background:var(--accent,#1c64aa);color:white}.academy-reader{max-width:780px;margin:0 auto}.academy-reader article{font-size:17px;line-height:1.95}.academy-reader article h1{font-size:clamp(25px,4vw,35px);line-height:1.45}.academy-reader article h2{margin-top:36px;font-size:23px}.academy-reader article img{display:block;max-width:100%;max-height:430px;margin:24px auto}.academy-meta,.academy-next{margin:20px 0;flex-wrap:wrap}.academy-p1-row{display:block;border-bottom:1px solid var(--line,#d7dfe8);padding:20px 0;text-decoration:none}.academy-p1-row span{display:block;margin-top:8px;font-size:13px}.academy-secondary{margin-top:10px}.academy-secondary .btn{font-size:14px;padding:8px 12px}.academy-map-item[hidden],.academy-series[hidden]{display:none}@media(max-width:700px){.academy-map{grid-template-columns:repeat(2,minmax(0,1fr))}.academy-map-item{padding:12px}.academy-head{padding-top:12px}.academy-reader article{font-size:16px}.academy-meta{font-size:13px}.academy-filters .btn{padding:8px 10px}}@media(max-width:380px){.academy-map{grid-template-columns:1fr}}@media print{.academy-head,.academy-next,.academy-meta button,.academy-draft{display:none}.academy-reader{max-width:none}.academy-reader article{font-size:12pt}}
.academy-practice{margin-top:24px}.academy-practice fieldset{border:0;padding:12px 0;margin:0}.academy-practice legend{font-weight:600;line-height:1.6}.academy-practice label{display:flex;align-items:baseline;gap:8px;padding:10px 0;line-height:1.6}.academy-feedback{white-space:pre-line;line-height:1.9;margin-top:16px}

/* 入门课（2026-10-26）：课文图片手机上宽度 100%，点开原图；入门课卡片 */
.prose img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.prose a.img-open { display: block; cursor: zoom-in; margin: 0 0 .6em; }
.prose a.img-open:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.intro-card .clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.academy-paths { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.academy-paths .card h3 { margin: 0 0 6px; }
.academy-paths ol { margin: 6px 0 0; padding-left: 1.3em; }
.academy-course-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.academy-course-list a.card { color: inherit; display: block; }
.academy-course-list a.card:hover { border-color: var(--blue-2); }

/* ───── UX 迭代第 1 轮（2026-10-26，ChatGPT UX 审查 UX-002～008、015、016、018） ───── */
/* R1-01 / R1-02：完成卡（手机标题下、电脑右栏同一套文字）：两行勾选项、自动完成说明、计时状态、打卡口径 */
.lc-card .req { align-items: flex-start; margin: 4px 0; line-height: 1.5; }
.lc-card .req i { margin-top: 2px; position: relative; }
.lc-card .req.ok { color: var(--green-ink); font-weight: 500; }
.lc-card .req.ok i::after { content: '✓'; position: absolute; inset: 0; color: #fff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 14px; text-align: center; }
.lc-card .lc-st { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 6px 0 0; }
.lc-card .lc-auto, .lc-card .lc-done { margin: 0; }
.lc-card .lc-auto { color: var(--ink-2); }
.lc-card .lc-done { font-weight: 600; }
.lc-card .lc-timer { margin: 0; color: var(--green-ink); }
.lc-card .lc-timer[data-st="hidden"], .lc-card .lc-timer[data-st="idle"] { color: var(--ink-2); }
.lc-card .lc-timer[data-st="sync"] { color: var(--amber); font-weight: 500; }
.lc-card .lc-ck { margin: 6px 0 0; }
#m-prog { scroll-margin-top: 72px; }
#m-prog:focus { outline: none; }
/* R1-03：交卷结果卡第一行是本讲总状态；页末「预习下一讲（本讲未完成）」是描边样式 */
.quiz-sum .qs-state { font-size: 17px; }
.quiz-sum .qs-state.err { color: var(--red); }
.quiz-sum .qs-state.ok { color: var(--green-ink); }
.explain .q-ans { display: block; font-weight: 600; color: var(--ink); margin-top: 4px; }
.explain .q-exp { display: block; margin-top: 2px; }
/* R1-05：手机讲内目录折成一行（≥44px，可键盘展开） */
.toc-fold { display: none; }
.prose .sec-toc.folded { padding: 0 14px; }
.prose .sec-toc.folded .toc-fold { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 14.5px; color: var(--ink); text-align: left; cursor: pointer; }
.prose .sec-toc.folded .tf-act { color: var(--blue); white-space: nowrap; flex: none; }
.prose .sec-toc.folded .toc-h { display: none; }
.prose .sec-toc.folded:not(.open) > ol, .prose .sec-toc.folded:not(.open) > ul { display: none; }
.prose .sec-toc.folded.open > ol, .prose .sec-toc.folded.open > ul { padding-bottom: 10px; }
.prose .sec-toc.folded li a { display: inline-block; padding: 6px 0; }
/* R1-06：续读提示 */
.resume-tip { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; background: #eef6ff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; font-size: 14.5px; overflow-wrap: anywhere; }
.resume-tip .rt-act { display: flex; gap: 8px; }
/* R1-06：手机讲页工具栏（替换全站底部导航，高度相同；电脑不显示） */
.lesson-bar { display: none; }
/* 弹层：目录浮层与看大图（原生 dialog）；打开时背景不滚动 */
html.dlg-open { overflow: hidden; }
dialog.sheet { border: 0; border-radius: 12px; padding: 16px; width: min(560px, calc(100vw - 32px)); max-height: 80vh; box-shadow: var(--shadow); }
dialog.sheet::backdrop, dialog.img-dlg::backdrop { background: rgba(15,33,80,.45); }
.toc-dlg-list { list-style: none; margin: 10px 0 0; padding: 0; }
.toc-dlg-list a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line-2); }
dialog.img-dlg { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; background: #0b1426; color: #fff; display: none; flex-direction: column; }
dialog.img-dlg[open] { display: flex; }
.img-dlg-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); }
.img-dlg-bar a { color: #fff; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.img-dlg-bar .btn { min-height: 44px; min-width: 64px; }
.img-dlg-view { flex: 1; overflow: auto; touch-action: pan-x pan-y; display: flex; align-items: center; }
.img-dlg-view.zoomed { display: block; }
.img-dlg-view img { display: block; width: 100%; max-width: none; height: auto; margin: auto; background: #fff; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.img-dlg-view.zoomed img { cursor: zoom-out; }
.img-dlg-hint { margin: 0; padding: 6px 12px calc(8px + env(safe-area-inset-bottom)); color: #c9d4e8; text-align: center; }
/* R1-07：课文图片右下角「点图放大」 */
.prose a.img-open { position: relative; }
.prose a.img-open .img-zoom { position: absolute; right: 8px; bottom: 8px; background: rgba(15,33,80,.78); color: #fff; font-size: 12.5px; line-height: 1; padding: 6px 8px; border-radius: 6px; pointer-events: none; }
@media (max-width: 640px) {
  body.has-lesson-bar .nav.mobile { display: none !important; }
  body.has-lesson-bar .lesson-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .lesson-bar .lb-i { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: none; border: 0; padding: 0 2px; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; }
  .lesson-bar .lb-i b { font-size: 14px; font-weight: 600; white-space: nowrap; }
  .lesson-bar .lb-i span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .lesson-bar .lb-i:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 6px; }
  /* 手机完成卡紧凑一些，首屏多留给正文 */
  .m-progress.lc-card { padding: 6px 12px 8px; margin: -4px 0 12px; font-size: 14px; }
  .m-progress.lc-card .req { margin: 2px 0; line-height: 1.4; }
  .m-progress.lc-card .lc-st { margin-top: 4px; }
  .m-progress.lc-card .lc-st .small { font-size: 13.5px; }
  .m-progress.lc-card .lc-ck { font-size: 12px; line-height: 1.45; margin-top: 4px; }
  .lesson-meta { margin-bottom: 6px; }
  .lesson-wrap { margin-top: -16px; }
  .lesson-wrap article > h1 { margin-top: 2px !important; }
  .lesson-wrap .card.prose { padding-top: 12px; }
  .prose .sec-toc.folded { margin-bottom: 12px; }
  .resume-tip .btn { min-height: 44px; }
}
/* R1-08：320 宽这类小屏，窄表字号与留白再收一点，长英文词仍整词换行、表内不横滑 */
@media (max-width: 359px) {
  .prose .tbl:not(.wide) table { font-size: 13.5px; }
  .prose .tbl:not(.wide) th, .prose .tbl:not(.wide) td { padding: 5px 6px; }
  .lesson-wrap .card.prose { padding-left: 12px; padding-right: 12px; }
}
@media print { .lesson-bar, .img-zoom { display: none !important; } }

/* ───── UX 迭代第 2 轮（2026-10-26）：讲页 ───── */
/* R2-03：课文头（课程 / 等级两行）小字；手机上与仿真台说明一样收成可展开的一行（.folded，由前端 foldBox 生成） */
#quiz-t { scroll-margin-top: 72px; }
.prose .lesson-head p { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.box-fold { display: none; }
.prose .folded { background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; padding: 0 14px; margin: 0 0 8px; }
.prose blockquote.folded { border-left: 4px solid var(--line); }
.prose .folded .box-fold { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 14.5px; color: var(--ink); text-align: left; cursor: pointer; }
.prose .folded .box-fold .tf-act { color: var(--blue); white-space: nowrap; flex: none; }
.prose .folded:not(.open) .fold-body { display: none; }
.prose .folded.open .fold-body { padding-bottom: 10px; }
.prose .folded .fold-body p { margin: 0 0 .6em; }
.prose .sec-toc.folded { margin-bottom: 8px; }
/* 课文头之后直接接第一节（去掉了分隔线）：手机上折叠行后面的第一节标题不再加上边线和大段留白 */
.prose .lesson-head + h2, .prose .folded + h2 { margin-top: 1em; }
@media (max-width: 767px) { .prose .folded + h2 { border-top: 0; padding-top: 0; margin-top: 14px; } }
/* 课前导学「10 秒自测」：答案收在「看答案」里 */
.prose details.st-ans { margin: 2px 0 6px; }
.prose details.st-ans summary { color: var(--blue); cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; }
.prose details.st-ans p { margin: 0; color: var(--ink-2); }
/* R2-03⑤⑥：目录高亮当前小节；浮层每项带分钟数 */
.sec-toc a.on, .toc-dlg-list a.on { font-weight: 600; color: var(--ink); }
.prose .sec-toc a.on { background: var(--water); border-radius: 4px; }
.toc-dlg-list a { justify-content: space-between; gap: 10px; }
.toc-dlg-list a.on { background: var(--water); }
.toc-dlg-list .toc-min { color: var(--ink-3); font-size: 13px; white-space: nowrap; flex: none; font-weight: 400; }
/* 电脑（≥1100px）：本讲目录在右栏完成卡下面，右栏不超过一屏，目录区单独滚动 */
@media (min-width: 1100px) {
  body.toc-side .side { display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 96px); }
  body.toc-side .side > .lc-card { flex: none; margin: 0; }
  .side .sec-toc { flex: 0 1 auto; min-height: 0; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 10px 10px 14px; font-size: 14px; line-height: 1.5; }
  .side .sec-toc .toc-h { margin: 0 0 6px; }
  .side .sec-toc .toc-h span { display: none; }
  .side .sec-toc ol, .side .sec-toc ul { margin: 0; padding: 0; list-style: none; }
  .side .sec-toc li { margin: 0; }
  .side .sec-toc li a { display: block; padding: 5px 6px; border-radius: 4px; color: var(--ink-2); }
  .side .sec-toc li a:hover { background: var(--paper-2); text-decoration: none; }
  .side .sec-toc li a.on { background: var(--water); color: var(--ink); }
  .side .sec-toc .toc-min { display: none; }
  .side .sec-toc .toc-quiz { border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 4px; }
}
.prose .sec-toc .toc-quiz { margin-top: .4em; }
/* R2-02⑦：页末「预习下一讲 →」不折行，第二行小字「本讲未完成 · 讲名」 */
.navbtn .nb-k { white-space: nowrap; }
.navbtn.nb-pre .nb-t { font-size: 12.5px; }
/* R2-02⑧：解析按选项分行，「X 对」那行加粗 */
.explain .q-exp .qe-l { display: block; margin-top: 2px; }
.explain .q-exp .qe-ok { color: var(--ink); }
.lc-card .lc-rule { white-space: nowrap; }

/* ───── UX 迭代第 2 轮：课程页、我的学习、登录 ───── */
/* R2-06：讲次状态与推荐的一讲 */
.lesson-row.rec { background: #eef6ff; border-radius: 8px; box-shadow: inset 3px 0 0 var(--blue); }
.lesson-row .rec-btn { pointer-events: none; }
.lesson-row .meta .tag { white-space: nowrap; }
.guest-card .signup-fold { margin-top: 10px; }
.guest-card .signup-fold > summary { cursor: pointer; color: var(--blue); display: inline-flex; align-items: center; min-height: 44px; }
/* R2-07：课程卡整张可点（按钮的 ::after 铺满卡片）；学习记录可折叠 */
.card-link { position: relative; }
.card-link .card-go::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link:hover { border-color: var(--blue-2); }
.study-rec > summary { cursor: pointer; padding: 11px 0; line-height: 22px; }
.study-rec[open] > summary { margin-bottom: 4px; }
/* R2-05⑤：「重发」「换个邮箱」是按钮 */
.login-acts { gap: 8px; }
.ob-back { display: flex; flex-direction: column; align-items: flex-start; }
.ob-back .btn { white-space: normal; text-align: left; }
/* R2-08：手机（≤640px）可点区域高 ≥44px（按钮、小号按钮、链接样式按钮、顶部与底部导航、题号、浮层关闭），相邻按钮间距 ≥8px；正文段落里的文字链接不算 */
@media (max-width: 640px) {
  .btn, .btn.sm, button.linkbtn, .nav.mobile a, #top-r .btn, .qnav button, .qd-in .qnav button, dialog .btn { min-height: 44px; }
  .btn.sm { padding-top: 8px; padding-bottom: 8px; }
  button.linkbtn { display: inline-flex; align-items: center; }
  .nav.mobile a { display: inline-flex; align-items: center; justify-content: center; }
  .qnav button, .qd-in .qnav button { width: 44px; height: 44px; }
  .qnav { gap: 8px; }
  .rt-act, .copy-row, .card-btns { gap: 8px; }
  /* 考试栏按钮变成 44px 后，上下留白收到 4px，仍压成一行（<60px） */
  .exam-bar { padding-top: 4px; padding-bottom: 4px; }
}
@media (max-width: 640px) {
  /* 折叠标题（人才库分级、没收到邮件怎么办）也按 44px 算可点区域 */
  details:not(.faq-item):not(.st-ans):not(.study-rec):not(.signup-fold) > summary:not(.tag) { padding-top: 11px; padding-bottom: 11px; }
}

/* ───── UX 迭代第 3 轮（2026-10-26） ───── */
/* R3-03①：课程卡按钮悬停不加 filter（filter 会让按钮成为 ::after 的包含块，整卡点击缩回按钮大小）；卡片本身也可点（JS） */
.card-link { cursor: pointer; }
.card-link .card-go:hover, .card-link .card-go:active { filter: none; }
.card-link .card-go:not(.ghost):hover { background: #2b5fb8; border-color: #2b5fb8; }
/* R3-03⑤：电脑右栏完成卡「…分钟（计入完成）」「…分（80 分及格）」整段不拆行 */
.lc-card .nw { white-space: nowrap; }
/* R3-03④：768～900px 单列讲页，完成卡放在标题下面（与手机同一位置），不再只出现在页底 */
@media (min-width: 641px) and (max-width: 900px) {
  .m-progress { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
  .lesson-wrap .side { display: none; }
}
/* R3-04③：手机上「课程与难度」不再是灰色折叠框，是标题下那行小字里的链接；点开后课文头照原样显示 */
.lesson-meta .head-link { font-size: inherit; color: var(--blue); }
.prose .lesson-head[hidden] { display: none; }
@media (max-width: 640px) {
  /* R3-03②③：页头 Logo、个人资料「资料完整度」折叠标题可点高度 ≥44px */
  .brand { min-height: 44px; }
  .score-d > summary.tag { display: inline-flex; align-items: center; min-height: 44px; padding-top: 0; padding-bottom: 0; cursor: pointer; }
  .lesson-meta .head-link { min-height: 44px; vertical-align: middle; }
  /* R3-04②：页末上一讲 / 下一讲改成上下两个通栏按钮，讲名完整显示（最多两行），「本讲未完成」仍是小字 */
  .lesson-nav { grid-template-columns: minmax(0, 1fr); }
  .lesson-nav > span:empty { display: none; }
  .btn.navbtn, .btn.navbtn.nb-r { width: 100%; justify-self: stretch; align-items: flex-start; text-align: left; }
  .navbtn .nb-t { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
/* R3-07①：「点图放大」放在图片正下方右侧，不再盖住图上的文字 */
.prose a.img-open { display: block; }
.prose a.img-open .img-zoom { position: static; display: block; width: fit-content; margin: 4px 0 0 auto; background: none; color: var(--blue); font-size: 13px; line-height: 1.4; padding: 2px 0; border-radius: 0; }
/* R3-07②：查看层按动态视口算高度（微信、iOS 的工具栏不遮挡）；＋ / − / 还原三个按钮；底部显示图题 */
dialog.img-dlg { height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; }
.img-dlg-zoom { display: flex; gap: 8px; }
.img-dlg-zoom .btn { min-width: 44px; min-height: 44px; padding: 0 12px; font-size: 18px; }
.img-dlg-zoom .btn.zr { font-size: 14px; }
.img-dlg-foot { padding: 6px 12px calc(8px + env(safe-area-inset-bottom)); text-align: center; }
.img-dlg-cap { margin: 0 0 2px; color: #fff; font-size: 14px; line-height: 1.5; }
.img-dlg-foot .img-dlg-hint { padding: 0; }
.img-dlg-foot a { color: #c9d4e8; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }
/* R3-07③：三列以内的窄表，首列至少约 5 个汉字宽（中文短标签不被折断），表格不超出容器 */
@media (max-width: 640px) {
  .prose .tbl:not(.wide) table { width: 100%; max-width: 100%; }
  .prose .tbl:not(.wide) th:first-child, .prose .tbl:not(.wide) td:first-child { min-width: 5em; }
}
/* 讲页音频播放条（2026-10-27） */
.lesson-audio { padding: 12px 16px; margin: 0 0 14px; }
.lesson-audio .la-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.lesson-audio audio { display: block; width: 100%; height: 44px; }
.lesson-audio-pending { margin: 0 0 14px; }
/* 入门课付费开通（2026-10-27，PAID_INTRO 开着才出现）：锁定讲次、开通卡、开通页三步、收款码、后台子页签。按钮沿用 .btn（手机 ≥44px） */
.tag.st-lock { background: #fdf0dc; color: var(--amber); }
.lock-card { border-left: 4px solid var(--amber); margin-bottom: 16px; }
.lock-card .btn { white-space: normal; text-align: center; }
.access-card { border-left: 4px solid var(--amber); }
.access-card.ok { border-left-color: var(--green); }
.access-card .btn { white-space: normal; text-align: center; }
.pay-steps { margin: 0; padding-left: 22px; }
.pay-steps > li + li { margin-top: 14px; }
.pay-steps p { margin: 0 0 6px; }
.pay-qr { display: block; width: 100%; max-width: 268px; height: auto; border-radius: 8px; border: 1px solid var(--line); margin: 6px 0; }
#txn-in { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line-2); gap: 8px; }
.plain-list li:last-child { border-bottom: 0; }
.tabs.sub { margin-bottom: 12px; }
.tabs.sub a { padding: 6px 12px; }
@media (max-width: 640px) {
  .tabs.sub a, .tabs a { min-height: 44px; display: inline-flex; align-items: center; }
  #txn-in { font-size: 16px; }
}
/* 付费流程迭代第 1 轮（2026-10-28）：R1-01 讲页收回卡；R1-05 开通页收费说明与必勾项；R1-08 收回原因常用项、后台待核对列表手机卡片 */
.lock-card.revoked { border-left-color: var(--red, #c0392b); }
.pay-terms-l { margin: 0; }
.pay-terms-l > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 4px 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.pay-terms-l > div:last-child { border-bottom: 0; }
.pay-terms-l dt { color: var(--ink-3); }
.pay-terms-l dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pay-agree { margin-top: 4px; }
.pay-agree input[aria-invalid="true"] { outline: 2px solid var(--red, #c0392b); outline-offset: 2px; }
.dlg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dlg-chips .btn { white-space: normal; text-align: left; }
#pay-claims code.txn-no { user-select: all; -webkit-user-select: all; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .pay-terms-l > div { grid-template-columns: 1fr; gap: 2px; }
  .pay-agree { min-height: 44px; align-items: center; }
  .pay-agree input { width: 22px; height: 22px; margin-top: 0; }
  .dlg-chips .btn { min-height: 44px; }
  #pay-claims, #pay-claims tbody { display: block; width: 100%; }
  #pay-claims thead { display: none; }
  #pay-claims tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  #pay-claims td { display: block; border: 0; padding: 0; white-space: normal; min-width: 0; }
  #pay-claims td.pc-txn { flex: 1 0 100%; }
  #pay-claims td.pc-txn code { font-size: 15px; word-break: break-all; }
  #pay-claims td.pc-who, #pay-claims td.pc-at { font-size: 13.5px; }
  #pay-claims td.pc-st { flex: 1 0 100%; }
  #pay-claims td.pc-act { flex: 1 0 100%; margin-top: 6px; }
  #pay-claims td.pc-act .btn { min-height: 44px; flex: 1; }
  #pay-claims td[colspan] { flex: 1 0 100%; }
}
/* 付费流程迭代第 2 轮（2026-10-28）：R2-02 课程卡状态标签（中性灰，不用绿色）；R2-03 手机上开通卡上下排；R2-07 入门课小测没到分数用中性色；
   R2-08 开通页手机顺序、识别提示、单号位数、访客登录按钮；R2-09 邮箱与单号等宽、关掉字体上下文替换（x 不显示成 ×） */
.tag.card-st { background: var(--paper-2); color: var(--ink-3); }
.access-card .acc-txt { flex: 1; min-width: 0; }
.access-card.revoked { border-left-color: var(--red, #c0392b); }
.quiz-sum.self { border-left-color: var(--blue-2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-feature-settings: "calt" 0, "liga" 0; font-variant-ligatures: none; font-variant-numeric: tabular-nums; }
.dlg h2 { font-feature-settings: "calt" 0; }
.pay-qr-hint { margin: 4px 0 0; color: var(--ink-2); }
.pay-more { margin-top: 6px; }
.pay-more > summary, .unlock-repay > summary { cursor: pointer; color: var(--blue); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.unlock-repay { margin: 0 0 8px; }
.unlock-repay[open] > summary { margin-bottom: 8px; }
.lock-guest { align-items: center; gap: 8px 12px; }
@media (max-width: 640px) {
  .access-card .acc-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .access-card .acc-row > .btn { width: 100%; min-height: 44px; }
  .pay-terms-s > div { grid-template-columns: 4.5em 1fr; gap: 4px 10px; }
  .lock-guest .btn { min-height: 44px; }
}
.txn-lab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
@media (max-width: 640px) {
  /* R2-08：手机上收款码缩到 210px 宽（原图 804px，长按识别不受影响），让提交按钮落在一屏半内 */
  .pay-qr { max-width: 210px; margin: 4px 0; }
}
