/* ============ 电工学堂 · 视觉系统 ============ */
:root {
  --ink: #101b2d;
  --ink-2: #223149;
  --ink-3: #46556d;
  --paper: #f5f1e8;
  --paper-2: #efeadf;
  --card: #fffdf8;
  --line: #ddd5c5;
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #6e7787;
  --yellow: #f4c64a;
  --yellow-soft: #fbe7a6;
  --orange: #e9693c;
  --orange-soft: #fbe1d7;
  --teal: #1f8a7a;
  --teal-soft: #d8efe9;
  --blue: #2f5d9e;
  --blue-soft: #dde8f7;
  --red: #c9433b;
  --green: #237a52;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(16, 27, 45, 0.08);
  --shadow-sm: 0 8px 24px rgba(16, 27, 45, 0.06);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "Bahnschrift", "DIN Alternate", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(900px, calc(100% - 48px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ============ 通用元件 ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--orange); }
.eyebrow.light { color: rgba(255, 255, 255, 0.7); }
.eyebrow.light::before { background: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px rgba(244, 198, 74, 0.28); }
.btn-primary:hover { background: #ffd35e; box-shadow: 0 14px 30px rgba(244, 198, 74, 0.36); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2c46; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(16, 27, 45, 0.04); }
.btn-ghost.light { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost.light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5;
  background: var(--paper-2); color: var(--ink-3);
}
.tag.yellow { background: var(--yellow-soft); color: #745610; }
.tag.orange { background: var(--orange-soft); color: #9c3b1b; }
.tag.teal { background: var(--teal-soft); color: #175f54; }
.tag.blue { background: var(--blue-soft); color: #274c7f; }
.tag.red { background: #f8dcd9; color: #932e27; }
.tag.green { background: #d9ede2; color: #1b5b3d; }

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.18; letter-spacing: -0.035em; margin-top: 14px; font-weight: 800; }
.section-head p { max-width: 460px; color: var(--muted); font-size: 15px; margin-top: 12px; }
.section-head .head-right { flex: 0 0 auto; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(12, 21, 38, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  color: #fff;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 6px 16px rgba(244, 198, 74, 0.22);
  transform: rotate(-3deg);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 18px; letter-spacing: 0.02em; font-weight: 800; }
.brand-text small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.26em; color: rgba(255, 255, 255, 0.48); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-size: 14px; color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-links a.active { color: var(--ink); background: var(--yellow); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { min-height: 40px; padding: 0 18px; font-size: 13px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; background: transparent; color: #fff; align-items: center; justify-content: center; }
.mobile-nav { display: none; }

/* ============ 首页 Hero ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: #0c1526;
  padding: 76px 0 80px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.038) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.038) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 680px; height: 680px; right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(244, 198, 74, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero-copy .eyebrow { color: rgba(255, 255, 255, 0.66); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(42px, 5.4vw, 70px);
  line-height: 1.08; letter-spacing: -0.055em; font-weight: 900;
}
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 14px;
  background: var(--yellow); opacity: 0.55; z-index: -1; transform: skewX(-8deg);
}
.hero-lead { margin-top: 24px; max-width: 540px; color: rgba(255, 255, 255, 0.67); font-size: 16px; line-height: 1.85; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.58); }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(31, 138, 122, 0.16); }
.hero-meta strong { color: #fff; font-family: var(--mono); font-size: 14px; }

/* 仪表盘 */
.hero-visual { position: relative; }
.dash-card {
  position: relative; z-index: 2;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px; padding: 26px;
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dash-top strong { font-size: 14px; letter-spacing: 0.04em; }
.dash-top .live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--yellow); }
.dash-top .live i { width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; animation: blink 2s infinite; }
.dash-main { display: flex; align-items: center; gap: 22px; }
.ring {
  --p: 0; --size: 124px;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: conic-gradient(var(--yellow) calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
  display: grid; place-items: center; flex: 0 0 auto;
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #111d32; }
.ring-inner { position: relative; z-index: 2; text-align: center; }
.ring-inner strong { display: block; font-family: var(--mono); font-size: 31px; line-height: 1; letter-spacing: -0.04em; }
.ring-inner span { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.5); margin-top: 7px; letter-spacing: 0.08em; }
.dash-copy { min-width: 0; }
.dash-copy h3 { font-size: 17px; line-height: 1.4; font-weight: 700; }
.dash-copy p { color: rgba(255, 255, 255, 0.52); font-size: 12px; margin-top: 7px; line-height: 1.6; }
.dash-copy .mini-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--yellow); font-weight: 700; }
.dash-rows { margin-top: 22px; display: grid; gap: 1px; background: rgba(255,255,255,.1); border-radius: 12px; overflow: hidden; }
.dash-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #121f35; padding: 11px 14px; font-size: 12px; color: rgba(255, 255, 255, 0.63); }
.dash-row b { color: #fff; font-family: var(--mono); font-weight: 500; }
.dash-row .bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; max-width: 110px; }
.dash-row .bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.floating-note {
  position: absolute; z-index: 3; right: -18px; bottom: -26px;
  display: flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink);
  padding: 12px 16px; border-radius: 14px;
  font-size: 12px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 14px 30px rgba(0,0,0,.22); transform: rotate(2deg);
}
.floating-note svg { width: 22px; height: 22px; }
.circuit-deco { position: absolute; inset: -28px -32px auto auto; width: 150px; opacity: 0.4; z-index: 1; }
.circuit-deco path { stroke: var(--yellow); stroke-width: 1.2; fill: none; stroke-dasharray: 5 7; animation: dash 24s linear infinite; }

@keyframes dash { to { stroke-dashoffset: -400; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* 事实条 */
.fact-bar { background: var(--yellow); color: var(--ink); border-bottom: 1px solid rgba(16,27,45,.12); overflow: hidden; }
.fact-track { display: flex; align-items: center; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.fact-bar:hover .fact-track { animation-play-state: paused; }
.fact-item { display: flex; align-items: center; gap: 10px; padding: 13px 30px; font-size: 13px; font-weight: 600; white-space: nowrap; border-right: 1px solid rgba(16,27,45,.16); }
.fact-item b { font-family: var(--mono); font-size: 15px; font-weight: 800; }
.fact-item svg { width: 16px; height: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 首页模块 ============ */
.intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.intro-sticky { position: sticky; top: 110px; }
.intro-sticky h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.18; letter-spacing: -0.04em; margin-top: 16px; font-weight: 900; }
.intro-sticky p { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 380px; }
.intro-sticky .btn { margin-top: 26px; }
.value-list { display: grid; gap: 14px; }
.value-item { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: transform .2s, border-color .2s, box-shadow .2s; }
.value-item:hover { transform: translateX(6px); border-color: #c4b9a4; box-shadow: var(--shadow-sm); }
.value-num { font-family: var(--mono); font-size: 13px; color: var(--orange); font-weight: 700; padding-top: 2px; flex: 0 0 34px; }
.value-item h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.value-item p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.value-item .tag { margin-top: 12px; }

/* 学习路径 */
.path-section { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.path-section::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000, transparent 80%); opacity: .3; pointer-events: none; }
.path-section .section-head { position: relative; z-index: 1; }
.path-section .section-head p { color: rgba(255,255,255,.58); }
.path-section .eyebrow { color: rgba(255,255,255,.66); }
.path-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.path-step {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 24px; position: relative;
  transition: background .2s, transform .2s, border-color .2s;
}
.path-step:hover { background: rgba(255,255,255,.08); transform: translateY(-5px); border-color: rgba(244,198,74,.45); }
.path-step .step-top { display: flex; align-items: center; justify-content: space-between; }
.step-no { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--yellow); }
.step-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(244,198,74,.13); color: var(--yellow); display: grid; place-items: center; margin-top: 26px; }
.path-step h3 { margin-top: 16px; font-size: 18px; font-weight: 800; }
.path-step p { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.7; }
.path-step .step-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.42); font-family: var(--mono); }
.path-step .step-meta b { color: var(--teal); font-weight: 500; }
.path-foot { position: relative; z-index: 1; margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.path-foot p { font-size: 13px; color: rgba(255,255,255,.5); }
.path-foot p b { color: #fff; }

/* 课程模块网格 */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module-card { padding: 26px; display: flex; flex-direction: column; min-height: 250px; position: relative; overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; }
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c9bea9; }
.module-card .m-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.module-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.module-icon.yellow { background: var(--yellow-soft); color: #7c5c13; }
.module-icon.teal { background: var(--teal-soft); color: var(--teal); }
.module-icon.orange { background: var(--orange-soft); color: var(--orange); }
.module-icon.blue { background: var(--blue-soft); color: var(--blue); }
.module-card h3 { margin-top: 20px; font-size: 19px; font-weight: 800; letter-spacing: -0.025em; }
.module-card p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.7; flex: 1; }
.module-card .m-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.module-card .m-foot .arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.module-card:hover .m-foot .arrow { background: var(--ink); color: #fff; border-color: var(--ink); }
.module-card .index-mark { position: absolute; right: 18px; bottom: 2px; font-family: var(--mono); font-size: 74px; font-weight: 800; color: rgba(16,27,45,.035); line-height: 1; pointer-events: none; }

/* 考试结构 */
.exam-section { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.exam-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; }
.exam-panel.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.exam-panel.dark::after { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(244,198,74,.2), transparent 65%); }
.exam-head { display: flex; align-items: center; gap: 12px; }
.exam-head .num { font-family: var(--mono); font-size: 12px; color: var(--orange); letter-spacing: .12em; }
.exam-panel.dark .exam-head .num { color: var(--yellow); }
.exam-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.exam-big { font-family: var(--mono); font-size: 58px; line-height: 1; letter-spacing: -0.05em; margin-top: 24px; }
.exam-big small { font-size: 14px; font-family: var(--font); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.exam-panel.dark .exam-big small { color: rgba(255,255,255,.5); }
.exam-panel ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; position: relative; z-index: 1; }
.exam-panel li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-3); }
.exam-panel.dark li { color: rgba(255,255,255,.63); }
.exam-panel li svg { color: var(--teal); margin-top: 4px; }
.exam-panel.dark li svg { color: var(--yellow); }
.exam-panel .footnote { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); position: relative; z-index: 1; }
.exam-panel.dark .footnote { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.4); }

/* 30 天计划 */
.plan-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 56px; align-items: start; }
.plan-sticky h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -0.04em; margin-top: 14px; font-weight: 900; }
.plan-sticky > p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 340px; }
.plan-note { margin-top: 26px; padding: 18px; border-radius: 14px; background: var(--yellow-soft); border: 1px solid #efd88e; font-size: 13px; line-height: 1.75; color: #6b5314; }
.plan-note b { display: block; margin-bottom: 4px; color: #503d0c; }
.plan { display: grid; gap: 0; }
.plan-week { display: grid; grid-template-columns: 82px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.plan-week:last-child { border-bottom: 1px solid var(--line); }
.plan-week .wk { font-family: var(--mono); font-size: 12px; color: var(--orange); font-weight: 700; letter-spacing: .08em; padding-top: 3px; }
.plan-week h3 { font-size: 18px; font-weight: 800; }
.plan-week p { margin-top: 5px; font-size: 13px; color: var(--muted); }
.plan-week .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* 结尾 CTA */
.cta-band { position: relative; overflow: hidden; background: var(--yellow); color: var(--ink); padding: 62px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(16,27,45,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(16,27,45,.06) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-inner h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.04em; line-height: 1.2; font-weight: 900; }
.cta-inner p { margin-top: 10px; font-size: 14px; opacity: .72; max-width: 520px; }
.cta-actions { display: flex; gap: 10px; flex: 0 0 auto; }

/* 页脚 */
.site-footer { background: var(--ink); color: rgba(255,255,255,.55); padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr .9fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; color: rgba(255,255,255,.35); }
.seal { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.5); }
.seal i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ============ 内页头 ============ */
.page-hero { background: #0c1526; color: #fff; padding: 54px 0 58px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 80% 40%, #000, transparent 70%); }
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 12px; height: 12px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; letter-spacing: -0.045em; font-weight: 900; max-width: 760px; }
.page-hero .lead { margin-top: 16px; max-width: 620px; font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.8; }
.page-hero .hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.page-hero .hero-chips .tag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.1); }
.page-hero .hero-chips .tag.yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ============ 课程页 ============ */
.course-toolbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 72px; z-index: 40; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; font-size: 13px; color: var(--muted); font-weight: 600; }
.filter-btn:hover { background: var(--paper-2); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; }
.toolbar-search { position: relative; flex: 0 0 270px; }
.toolbar-search input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 0 14px 0 36px; font-size: 13px; outline: none; }
.toolbar-search input:focus { border-color: var(--ink); background: #fff; }
.toolbar-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }

.course-main { padding: 46px 0 90px; }
.progress-banner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 28px 30px; margin-bottom: 34px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.progress-banner h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.progress-banner p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.pb-bar { height: 8px; background: var(--paper-2); border-radius: 8px; margin-top: 16px; overflow: hidden; max-width: 520px; }
.pb-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--teal), #5ab9a9); width: 0; transition: width .6s ease; }
.pb-num { text-align: center; }
.pb-num strong { display: block; font-family: var(--mono); font-size: 38px; line-height: 1; letter-spacing: -0.04em; }
.pb-num span { font-size: 11px; color: var(--muted); }
.course-modules { display: grid; gap: 18px; }
.module-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mb-head { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.mb-head .module-icon { width: 42px; height: 42px; border-radius: 12px; }
.mb-head .mb-title { flex: 1; min-width: 0; }
.mb-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.mb-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mb-count { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.lesson-row { display: flex; align-items: center; gap: 16px; padding: 15px 24px; border-bottom: 1px solid #eee9de; transition: background .15s; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: #faf6ed; }
.lesson-status { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; color: transparent; transition: all .2s; }
.lesson-status svg { width: 12px; height: 12px; }
.lesson-row.done .lesson-status { background: var(--teal); border-color: var(--teal); color: #fff; }
.lesson-index { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 28px; flex: 0 0 auto; }
.lesson-name { flex: 1; min-width: 0; }
.lesson-name strong { display: block; font-size: 14px; font-weight: 600; }
.lesson-name span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.lesson-row .tag { flex: 0 0 auto; }
.lesson-row .row-arrow { color: var(--muted); flex: 0 0 auto; transition: transform .2s; }
.lesson-row:hover .row-arrow { transform: translateX(4px); color: var(--ink); }

/* ============ 课程详情 ============ */
.lesson-hero { background: #0c1526; color: #fff; padding: 42px 0 48px; position: relative; overflow: hidden; }
.lesson-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 75% 30%, #000, transparent 72%); }
.lesson-hero .wrap { position: relative; z-index: 1; }
.lesson-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.2; letter-spacing: -0.04em; font-weight: 900; max-width: 820px; margin-top: 12px; }
.lesson-metas { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.52); }
.lesson-metas span { display: inline-flex; align-items: center; gap: 7px; }
.lesson-progress-line { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--yellow); width: 0; transition: width .2s; }
.lesson-main { padding: 48px 0 90px; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.lesson-aside { position: sticky; top: 108px; display: grid; gap: 16px; }
.toc-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.toc-card h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.toc-card a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.5; transition: color .2s, border-color .2s; }
.toc-card a:hover, .toc-card a.active { color: var(--ink); border-color: var(--yellow); }
.aside-actions { display: grid; gap: 8px; }
.aside-note { background: var(--yellow-soft); border: 1px solid #ecd486; border-radius: 16px; padding: 18px; font-size: 12px; line-height: 1.7; color: #6a5316; }
.aside-note b { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; color: #4c3b10; }

.prose { max-width: 760px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 26px; line-height: 1.35; letter-spacing: -0.03em; margin: 46px 0 16px; font-weight: 800; scroll-margin-top: 100px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; font-weight: 700; scroll-margin-top: 100px; }
.prose p { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); margin: 12px 0; }
.prose strong { color: var(--ink); font-weight: 800; }
.prose mark { background: linear-gradient(transparent 58%, var(--yellow-soft) 58%); color: inherit; padding: 0 2px; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.prose ul li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 2px; background: var(--yellow); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 34px; font-size: 15px; line-height: 1.85; color: var(--ink-2); counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; display: grid; place-items: center; }
.prose .lead-p { font-size: 17px; color: var(--ink); line-height: 1.9; }
.prose .callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; margin: 22px 0; border: 1px solid; font-size: 14px; line-height: 1.8; }
.prose .callout .callout-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.prose .callout p { margin: 0; font-size: 14px; line-height: 1.8; }
.prose .callout strong { display: block; margin-bottom: 2px; }
.prose .callout.tip { background: #f7f2df; border-color: #ead9a3; color: #5e4a13; }
.prose .callout.tip .callout-icon { background: var(--yellow); color: var(--ink); }
.prose .callout.warn { background: #fbe9e3; border-color: #f0c9ba; color: #8a3a1e; }
.prose .callout.warn .callout-icon { background: var(--orange); color: #fff; }
.prose .callout.note { background: #e8f3f0; border-color: #bfdfd7; color: #1c5e53; }
.prose .callout.note .callout-icon { background: var(--teal); color: #fff; }
.prose .formula { background: var(--ink); color: #fff; border-radius: 16px; padding: 22px 24px; margin: 22px 0; position: relative; overflow: hidden; }
.prose .formula::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border: 1px solid rgba(244,198,74,.25); border-radius: 50%; }
.prose .formula .f-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--yellow); margin-bottom: 8px; }
.prose .formula .f-main { font-family: var(--mono); font-size: clamp(19px, 3vw, 25px); letter-spacing: .01em; line-height: 1.6; }
.prose .formula .f-note { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.7; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13.5px; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.prose th { text-align: left; background: var(--ink); color: #fff; font-weight: 600; padding: 11px 14px; font-size: 12px; letter-spacing: .02em; }
.prose td { padding: 11px 14px; border-top: 1px solid #ece6da; color: var(--ink-2); line-height: 1.6; vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: #fcf9f2; }
.prose .key-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 30px 0; background: var(--card); }
.prose .key-box .kb-head { display: flex; align-items: center; gap: 9px; padding: 13px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.prose .key-box ul { margin: 0; padding: 16px 20px; }
.prose .key-box ul li { font-size: 14px; }
.prose .divider-dots { text-align: center; color: var(--line); letter-spacing: 12px; margin: 34px 0; }
.lesson-footer { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.lesson-footer .lf-hint { font-size: 12px; color: var(--muted); }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.lesson-nav a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .2s; }
.lesson-nav a:hover { border-color: var(--ink); transform: translateY(-2px); }
.lesson-nav a.next { justify-content: flex-end; text-align: right; }
.lesson-nav small { display: block; font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.lesson-nav strong { display: block; font-size: 13px; margin-top: 2px; }
.lesson-nav .icon { color: var(--muted); }

/* ============ 题库首页 ============ */
.quiz-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; max-width: 640px; }
.qhs { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11); border-radius: 14px; padding: 16px 18px; }
.qhs strong { display: block; font-family: var(--mono); font-size: 26px; line-height: 1.1; }
.qhs span { font-size: 11px; color: rgba(255,255,255,.45); }
.quiz-main { padding: 54px 0 90px; }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode-card { position: relative; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; transition: transform .2s, border-color .2s, box-shadow .2s; overflow: hidden; }
.mode-card:hover { transform: translateY(-5px); border-color: #c9bea9; box-shadow: var(--shadow); }
.mode-card.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.mode-card.primary p { color: rgba(255,255,255,.55); }
.mode-card.primary .mode-icon { background: rgba(244,198,74,.14); color: var(--yellow); }
.mode-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.mode-card h3 { margin-top: 20px; font-size: 17px; font-weight: 800; }
.mode-card p { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.65; }
.mode-card .mode-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .05em; }
.mode-card.primary .mode-foot { color: rgba(255,255,255,.4); }
.mode-card .mode-foot .icon { width: 15px; height: 15px; }
.cat-panel { margin-top: 46px; }
.cat-list { display: grid; gap: 10px; margin-top: 20px; }
.cat-row { display: flex; align-items: center; gap: 16px; padding: 15px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, transform .2s; }
.cat-row:hover { border-color: var(--ink); transform: translateX(4px); }
.cat-row .cat-dot { width: 10px; height: 10px; border-radius: 4px; }
.cat-row .cat-name { flex: 1; font-size: 14px; font-weight: 600; }
.cat-row .cat-count { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.cat-row .cat-bar { width: 120px; height: 5px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
.cat-row .cat-bar i { display: block; height: 100%; border-radius: 5px; }
.cat-row .icon { color: var(--muted); }
.record-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.record-table th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 11px 16px; background: var(--paper-2); }
.record-table td { font-size: 13px; padding: 12px 16px; border-top: 1px solid #ece6da; }
.record-table .score { font-family: var(--mono); font-weight: 700; }
.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); font-size: 13px; }
.empty-state .icon { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--line); }
.two-col-quiz { display: grid; grid-template-columns: 1.35fr .65fr; gap: 26px; align-items: start; margin-top: 46px; }
.side-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.side-title h3 { font-size: 17px; font-weight: 800; }
.side-title a { font-size: 12px; color: var(--muted); }
.side-title a:hover { color: var(--ink); }

/* ============ 答题界面 ============ */
.quiz-page { background: var(--paper); min-height: calc(100vh - 72px); }
.quiz-topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 72px; z-index: 45; }
.quiz-topbar-row { display: flex; align-items: center; gap: 22px; padding: 12px 0; }
.quiz-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.quiz-title strong { font-size: 14px; }
.quiz-title .tag { flex: 0 0 auto; }
.quiz-timer { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 15px; padding: 7px 13px; border-radius: 9px; background: var(--ink); color: #fff; }
.quiz-timer.warning { background: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .65; } }
.quiz-progress { height: 3px; background: var(--paper-2); }
.quiz-progress i { display: block; height: 100%; background: var(--yellow); width: 0; transition: width .3s; }
.quiz-body { padding: 36px 0 70px; }
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 30px; align-items: start; }
.q-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 18px; }
.q-no { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-left: auto; }
.q-text { font-size: 20px; line-height: 1.6; font-weight: 700; letter-spacing: -0.015em; }
.options { display: grid; gap: 10px; margin-top: 24px; }
.option {
  display: flex; align-items: flex-start; gap: 14px; text-align: left;
  width: 100%; padding: 16px 18px;
  background: #fffdf8; border: 1.5px solid var(--line); border-radius: 13px;
  font-size: 15px; line-height: 1.65; transition: border-color .18s, background .18s, transform .18s;
}
.option:hover:not(.disabled) { border-color: #b9ab90; background: #fff; transform: translateX(2px); }
.option .key {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  background: var(--paper-2); color: var(--ink-3);
  transition: background .18s, color .18s;
}
.option.selected { border-color: var(--ink); background: #fbf8ef; }
.option.selected .key { background: var(--ink); color: #fff; }
.option.is-correct { border-color: var(--green); background: #eff8f3; }
.option.is-correct .key { background: var(--green); color: #fff; }
.option.is-wrong { border-color: var(--red); background: #fdf0ee; }
.option.is-wrong .key { background: var(--red); color: #fff; }
.option.disabled { cursor: default; }
.option .option-mark { margin-left: auto; flex: 0 0 auto; display: none; }
.option.is-correct .option-mark, .option.is-wrong .option-mark { display: block; }
.option.is-correct .option-mark { color: var(--green); }
.option.is-wrong .option-mark { color: var(--red); }
.q-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.q-actions .spacer { flex: 1; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: var(--muted); transition: all .18s; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn.active { color: var(--orange); border-color: var(--orange); background: var(--orange-soft); }
.explain { margin-top: 22px; border-radius: 14px; border: 1px solid #bfdfd7; background: #edf7f4; padding: 18px 20px; display: none; animation: fadeUp .3s ease; }
.explain.show { display: block; }
.explain.bad { border-color: #f0c9ba; background: #fdf2ee; }
.explain-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #1b5b4f; margin-bottom: 6px; }
.explain.bad .explain-head { color: #983d21; }
.explain p { font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.explain .exp-answer { font-size: 13px; font-weight: 700; color: var(--green); margin-top: 6px; }
.explain.bad .exp-answer { color: var(--red); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.q-side { display: grid; gap: 14px; position: sticky; top: 140px; }
.sheet-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.sheet-head h4 { font-size: 13px; font-weight: 700; }
.sheet-head span { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.sheet-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-height: 306px; overflow-y: auto; padding-right: 2px; }
.sheet-grid::-webkit-scrollbar { width: 4px; }
.sheet-grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.sheet-cell { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--line); background: transparent; font-family: var(--mono); font-size: 10px; color: var(--muted); display: grid; place-items: center; transition: all .15s; }
.sheet-cell:hover { border-color: var(--ink); color: var(--ink); }
.sheet-cell.current { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 700; }
.sheet-cell.done { background: var(--yellow-soft); border-color: #ecd486; color: #6a5316; }
.sheet-cell.right { background: var(--teal-soft); border-color: #a9d6cc; color: #17665a; }
.sheet-cell.wrong { background: #f8dcd9; border-color: #e8b4ad; color: #8f3029; }
.sheet-cell.flagged { position: relative; }
.sheet-cell.flagged::after { content: ""; position: absolute; top: 2px; right: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.sheet-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 10px; color: var(--muted); }
.sheet-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sheet-legend i { width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--line); }
.quiz-tip { background: var(--yellow-soft); border: 1px solid #ecd486; border-radius: 14px; padding: 15px; font-size: 11.5px; line-height: 1.75; color: #6a5316; }
.quiz-tip b { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.quiz-exit { text-align: center; font-size: 12px; color: var(--muted); background: none; border: 0; padding: 4px; width: 100%; }
.quiz-exit:hover { color: var(--red); }

/* 考试结果 */
.result-wrap { max-width: 880px; margin: 0 auto; padding: 56px 0 90px; }
.result-hero { text-align: center; padding: 42px 30px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; position: relative; overflow: hidden; }
.result-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--green); }
.result-hero.fail::before { background: var(--red); }
.result-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #e0f1e8; color: var(--green); font-size: 12px; font-weight: 700; }
.result-hero.fail .result-badge { background: #f8dcd9; color: var(--red); }
.result-score { font-family: var(--mono); font-size: 84px; line-height: 1; letter-spacing: -0.06em; margin: 20px 0 2px; }
.result-score small { font-size: 20px; color: var(--muted); letter-spacing: 0; }
.result-hero h2 { font-size: 24px; font-weight: 800; margin-top: 10px; }
.result-hero p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 30px; }
.result-stat { background: var(--card); padding: 16px; text-align: center; }
.result-stat strong { display: block; font-family: var(--mono); font-size: 22px; }
.result-stat span { font-size: 11px; color: var(--muted); }
.result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.review-head { display: flex; align-items: center; justify-content: space-between; margin: 44px 0 16px; }
.review-head h3 { font-size: 20px; font-weight: 800; }
.review-list { display: grid; gap: 10px; }
.review-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review-item summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; font-size: 13px; }
.review-item summary::-webkit-details-marker { display: none; }
.review-item summary .r-no { font-family: var(--mono); font-size: 10px; color: var(--muted); flex: 0 0 auto; }
.review-item summary .r-q { flex: 1; font-weight: 600; line-height: 1.55; }
.review-item summary .r-state { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.review-item .r-state.ok { background: var(--green); }
.review-item .r-state.no { background: var(--red); }
.review-body { padding: 0 18px 18px 48px; font-size: 13px; color: var(--ink-2); }
.review-body p { margin: 5px 0; line-height: 1.8; }
.review-body .tag { margin-right: 6px; }

/* 模态框 */
.modal-mask { position: fixed; inset: 0; z-index: 120; background: rgba(9, 15, 26, 0.62); display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-mask.open { display: flex; }
.modal { background: var(--card); border-radius: 20px; max-width: 430px; width: 100%; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: fadeUp .22s ease; }
.modal h3 { font-size: 20px; font-weight: 800; }
.modal p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }

/* ============ 实操页 ============ */
.practical-main { padding: 52px 0 90px; }
.subject-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.subject-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; position: relative; overflow: hidden; }
.subject-card .sub-score { font-family: var(--mono); font-size: 32px; line-height: 1; letter-spacing: -0.04em; margin-top: 18px; }
.subject-card .sub-score small { font-size: 11px; color: var(--muted); margin-left: 4px; }
.subject-card h3 { margin-top: 8px; font-size: 16px; font-weight: 800; }
.subject-card p { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.65; }
.subject-card .sub-num { position: absolute; right: 16px; top: 14px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.subject-card .sub-line { height: 4px; border-radius: 4px; margin-top: 16px; }
.tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin: 46px 0 30px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { padding: 13px 18px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); border-color: var(--yellow); }
.tab-panel { display: none; animation: fadeUp .3s ease; }
.tab-panel.active { display: block; }
.prac-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.prac-content h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.prac-content h3 { font-size: 18px; font-weight: 800; margin: 30px 0 10px; }
.prac-content > p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.step-list { display: grid; gap: 12px; margin-top: 20px; }
.step-item { display: flex; gap: 14px; padding: 17px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.step-item .s-no { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; background: var(--yellow); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.step-item h4 { font-size: 14px; font-weight: 700; }
.step-item p { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.7; }
.step-item.warn { border-color: #ecc4b7; background: #fdf6f2; }
.step-item.warn .s-no { background: var(--orange); color: #fff; }
.prac-aside { position: sticky; top: 104px; display: grid; gap: 14px; }
.check-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.check-card h3 { font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.check-card h3 span { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.check-progress { height: 5px; background: var(--paper-2); border-radius: 5px; margin: 12px 0 14px; overflow: hidden; }
.check-progress i { display: block; height: 100%; background: var(--teal); width: 0; transition: width .3s; }
.check-list { display: grid; gap: 8px; }
.check-item { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.55; color: var(--ink-3); cursor: pointer; }
.check-item input { appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--line); border-radius: 4px; flex: 0 0 auto; margin-top: 1px; display: grid; place-items: center; transition: all .15s; cursor: pointer; }
.check-item input:checked { background: var(--teal); border-color: var(--teal); }
.check-item input:checked::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check-item input:checked + span { color: var(--muted); text-decoration: line-through; }
.hazard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.hazard-item { display: flex; gap: 11px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 12.5px; line-height: 1.65; }
.hazard-item b { color: var(--orange); font-family: var(--mono); font-size: 11px; padding-top: 2px; }
.hazard-item strong { display: block; font-size: 13px; }
.hazard-item span { color: var(--muted); }
.prac-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prac-table th { background: var(--ink); color: #fff; text-align: left; padding: 10px 14px; font-size: 11px; }
.prac-table td { padding: 10px 14px; border-top: 1px solid #ece6da; vertical-align: top; line-height: 1.65; }
.prac-table td:first-child { font-weight: 700; white-space: nowrap; }
.process-timeline { display: grid; gap: 0; margin-top: 24px; }
.pt-item { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding-bottom: 22px; position: relative; }
.pt-item::before { content: ""; position: absolute; left: 18px; top: 36px; bottom: 0; width: 1px; background: var(--line); }
.pt-item:last-child::before { display: none; }
.pt-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow-soft); border: 1px solid #ecd486; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #6a5316; position: relative; z-index: 1; }
.pt-item h4 { font-size: 14px; font-weight: 700; padding-top: 8px; }
.pt-item p { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.7; }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid, .plan-grid { grid-template-columns: 1fr; gap: 36px; }
  .intro-sticky, .plan-sticky { position: static; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
  .quiz-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-quiz { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: none; position: fixed; inset: 72px 0 0; z-index: 75; background: #0c1526; padding: 18px 24px 30px; overflow-y: auto; }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.8); font-size: 16px; }
  .mobile-nav a.active { color: var(--yellow); }
  .mobile-nav .btn { margin-top: 18px; }
  .section { padding: 72px 0; }
  .course-toolbar { top: 72px; }
  .toolbar-row { flex-wrap: wrap; gap: 10px; }
  .toolbar-search { flex: 1 1 100%; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-aside { position: static; grid-template-columns: 1fr 1fr; }
  .toc-card { display: none; }
  .quiz-layout { grid-template-columns: 1fr; }
  .q-side { position: static; grid-template-columns: 1fr 1fr; }
  .quiz-tip { display: none; }
  .prac-layout { grid-template-columns: 1fr; }
  .prac-aside { position: static; grid-template-columns: 1fr 1fr; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap, .wrap-narrow { width: calc(100% - 36px); }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: clamp(38px, 10vw, 52px); }
  .hero-lead { font-size: 15px; }
  .hero-meta { gap: 12px; }
  .hero-meta span { font-size: 12px; }
  .floating-note { right: 0; bottom: -20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
  .path-grid, .module-grid, .exam-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; flex-wrap: wrap; }
  .page-hero { padding: 40px 0 44px; }
  .lesson-aside { grid-template-columns: 1fr; }
  .progress-banner { grid-template-columns: 1fr; gap: 18px; }
  .pb-num { text-align: left; }
  .lesson-row { padding: 14px 16px; gap: 10px; }
  .lesson-row .tag { display: none; }
  .mb-head { padding: 16px; }
  .lesson-hero { padding: 32px 0 38px; }
  .lesson-main { padding: 30px 0 60px; }
  .q-card { padding: 22px 18px; }
  .q-text { font-size: 17px; }
  .option { padding: 13px 14px; font-size: 14px; }
  .q-side { grid-template-columns: 1fr; }
  .sheet-grid { max-height: none; grid-template-columns: repeat(8, 1fr); }
  .quiz-topbar { top: 72px; }
  .quiz-topbar-row { gap: 10px; }
  .quiz-title .tag { display: none; }
  .quiz-timer { font-size: 13px; padding: 6px 10px; }
  .result-wrap { padding: 34px 0 60px; }
  .result-score { font-size: 66px; }
  .review-body { padding-left: 18px; }
  .hazard-grid { grid-template-columns: 1fr; }
  .prac-aside { grid-template-columns: 1fr; }
  .subject-grid { grid-template-columns: 1fr 1fr; }
  .subject-card { padding: 16px; }
  .quiz-hero-stats { grid-template-columns: 1fr; gap: 8px; }
  .qhs { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; }
  .qhs strong { font-size: 20px; }
  .lesson-nav { grid-template-columns: 1fr; }
  .lesson-footer { flex-direction: column; align-items: stretch; }
  .lesson-footer .btn { width: 100%; }
  .two-col-quiz { margin-top: 32px; }
  .record-table th:nth-child(2), .record-table td:nth-child(2) { display: none; }
}
@media (max-width: 460px) {
  .mode-grid, .subject-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { gap: 8px; }
  .dash-main { gap: 14px; }
  .ring { --size: 108px; }
  .sheet-grid { grid-template-columns: repeat(6, 1fr); }
  .tag { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
@media print {
  .site-header, .site-footer, .quiz-topbar, .q-side, .lesson-aside, .hero-cta, .cta-band { display: none !important; }
  body { background: #fff; }
  .lesson-layout { grid-template-columns: 1fr; }
}

/* ============ 动效 ============ */
.reveal { opacity: 1; }
.reveal.in { animation: dgReveal .65s cubic-bezier(.2,.7,.2,1); }
@keyframes dgReveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.value-item.reveal.in:hover { transform: translateX(6px); }
.path-step.reveal.in:hover { transform: translateY(-5px); }
.module-card.reveal.in:hover { transform: translateY(-6px); }

/* ============ 交互元素修正 ============ */
.hero h1 em { display: inline-block; position: relative; z-index: 0; }
.cat-row { width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.cat-row .cat-count { white-space: nowrap; }
.sheet-cell { padding: 0; font-family: var(--mono); cursor: pointer; }
.option { font-family: inherit; }
.option.is-correct .option-mark, .option.is-wrong .option-mark { width: 18px; height: 18px; }
.module-block, .tab-panel, .prac-layout { scroll-margin-top: 130px; }
.result-hero .result-badge .icon { stroke-width: 2; }
@media (max-width: 720px) {
  .cat-row .cat-bar { display: none; }
  .cat-row .cat-count { font-size: 10px; }
}

.sheet-legend i.legend-flag { position: relative; background: #fff; border-color: var(--orange); }
.sheet-legend i.legend-flag::after { content: ""; position: absolute; top: 1px; right: 1px; width: 3px; height: 3px; border-radius: 50%; background: var(--orange); }

/* ============ 2026-12 规则、来源与实操增强 ============ */
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border-radius: 12px; }
.table-wrap > table { margin: 0; min-width: 560px; }
.table-wrap .prac-table { min-width: 640px; }
.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; margin: 20px 0; border: 1px solid; font-size: 14px; line-height: 1.8; }
.callout .callout-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.callout p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.8; }
.callout strong { display: block; margin-bottom: 2px; }
.callout.tip { background: #f7f2df; border-color: #ead9a3; color: #5e4a13; }
.callout.tip .callout-icon { background: var(--yellow); color: var(--ink); }
.callout.warn { background: #fbe9e3; border-color: #f0c9ba; color: #8a3a1e; }
.callout.warn .callout-icon { background: var(--orange); color: #fff; }
.callout.note { background: #e8f3f0; border-color: #bfdfd7; color: #1c5e53; }
.callout.note .callout-icon { background: var(--teal); color: #fff; }

.lesson-source { display: grid; gap: 8px; margin: 18px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 12px; color: var(--ink-3); }
.lesson-source > div:first-child { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.lesson-source strong { font-weight: 600; color: var(--ink-2); font-size: 12.5px; }
.lesson-source .source-meta { color: var(--muted); font-size: 11px; }
.lesson-source .source-meta a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.exp-basis { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed rgba(16,27,45,.15); color: var(--muted) !important; font-size: 11.5px !important; }

.rule-banner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 20px 24px; margin-bottom: 26px; border: 1px solid #ecc4b7; border-radius: 16px; background: #fdf4ef; }
.rule-main .tag { margin-bottom: 8px; }
.rule-main strong { display: block; font-size: 18px; line-height: 1.5; color: #8a3a1e; }
.rule-main p { margin-top: 6px; font-size: 13px; line-height: 1.8; color: #6f4b3e; }
.rule-source { display: grid; gap: 6px; font-size: 11px; max-width: 260px; }
.rule-source a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.official-box { padding: 16px 18px; margin: 18px 0 24px; border: 1px solid #bfdfd7; border-radius: 14px; background: #eef7f4; font-size: 13px; line-height: 1.8; color: #1c5e53; }
.official-box p { margin: 6px 0; }
.official-box a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; font-size: 11.5px; }

.hazard-scene { position: relative; width: 100%; margin: 18px 0 10px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #f7f2e6; }
.hazard-svg { width: 100%; height: auto; display: block; }
.hotspot { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--orange); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.22); transform: translate(-50%, -50%); transition: background .18s, transform .18s; }
.hotspot:hover { background: var(--ink); transform: translate(-50%, -50%) scale(1.1); }
.hotspot.found { background: var(--teal); }
.hazard-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.hazard-toolbar .tag b { font-family: var(--mono); font-size: 14px; }
.hazard-detail { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 13px; line-height: 1.8; }
.hazard-detail strong { display: block; font-size: 15px; margin-bottom: 4px; }
.hazard-detail p { margin: 3px 0; }
.hazard-detail .tag { margin-top: 8px; }
.hazard-list { display: grid; gap: 8px; margin-top: 12px; }
.hazard-list-item { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 12px; line-height: 1.75; }
.hazard-list-item > b { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; }
.hazard-list-item strong { display: block; font-size: 13px; }
.hazard-list-item p { color: var(--muted); margin: 2px 0 0; }

.project-card { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.project-card > summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.project-card > summary::-webkit-details-marker { display: none; }
.project-card > summary:hover { background: #faf6ed; }
.project-no { width: 30px; height: 30px; border-radius: 9px; background: var(--yellow-soft); color: #6a5316; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.project-title { flex: 1; min-width: 0; }
.project-title strong { display: block; font-size: 14px; line-height: 1.5; }
.project-title small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.project-body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.project-diagram { margin-top: 16px; padding: 10px; border: 1px solid #eee6d6; border-radius: 12px; background: #fbf8f1; overflow-x: auto; }
.project-diagram svg { width: 100%; min-width: 420px; height: auto; }
.project-points, .project-checks { margin-top: 16px; }
.project-points h4, .project-checks h4 { font-size: 13px; margin-bottom: 8px; }
.project-points ul { display: grid; gap: 6px; }
.project-points li { position: relative; padding-left: 18px; font-size: 12.5px; line-height: 1.75; color: var(--ink-3); }
.project-points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--yellow); transform: rotate(45deg); }
.project-checks { padding: 14px; border: 1px solid #eee6d6; border-radius: 12px; background: #fcfaf4; }
.project-checks .check-list { grid-template-columns: 1fr 1fr; }
.source-note { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.mini-quiz { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.mini-quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; font-size: 11px; color: var(--muted); }
.mq-item { padding: 14px 0; border-bottom: 1px dashed #e8e1d4; }
.mq-item:last-of-type { border-bottom: 0; }
.mq-q { font-size: 13.5px; line-height: 1.7; margin-bottom: 10px; }
.mq-options { display: grid; gap: 7px; }
.mq-option { display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; line-height: 1.6; cursor: pointer; background: #fffdf8; }
.mq-option:hover { border-color: #c9bea9; }
.mq-option input { margin-top: 3px; accent-color: var(--teal); }
.mq-option.correct { border-color: var(--green); background: #eff8f3; }
.mq-option.wrong { border-color: var(--red); background: #fdf0ee; }
.mq-option.disabled { cursor: default; }
.mq-explain { margin-top: 9px; padding: 10px 12px; border-radius: 8px; background: #edf7f4; color: #1b5b4f; font-size: 12px; line-height: 1.7; }
.mq-explain.bad { background: #fdf2ee; color: #8a3a1e; }
.mq-explain strong { margin-right: 5px; }
.mq-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.mq-score { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--teal); }

.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.source-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.source-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.source-card ul { display: grid; gap: 12px; }
.source-card li { font-size: 12.5px; line-height: 1.7; }
.source-card li a { display: block; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.source-card li span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.verify-card { background: #fdf4ef; border-color: #ecc4b7; }
.verify-card li { position: relative; padding-left: 16px; }
.verify-card li::before { content: "待"; position: absolute; left: 0; top: 2px; color: var(--orange); font-size: 10px; font-weight: 700; }

@media (max-width: 900px) {
  .rule-banner { grid-template-columns: 1fr; gap: 12px; }
  .rule-source { max-width: none; }
  .source-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .project-checks .check-list { grid-template-columns: 1fr; }
  .project-title small { display: none; }
  .project-card > summary { gap: 10px; padding: 13px 14px; }
  .project-card > summary > .tag { display: none; }
  .project-body { padding: 0 14px 14px; }
  .project-diagram svg { min-width: 360px; }
  .mini-quiz { padding: 14px; }
  .hazard-scene { border-radius: 12px; }
  .hotspot { width: 28px; height: 28px; font-size: 11px; }
  .table-wrap > table { min-width: 520px; }
  .table-wrap .prac-table { min-width: 600px; }
}

.quiz-hero-stats { grid-template-columns: repeat(4, 1fr); max-width: 780px; }
.quick-banner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 22px 26px; margin-bottom: 18px; border: 1px solid #ecd486; border-radius: 18px; background: var(--yellow-soft); }
.quick-banner .quick-copy { min-width: 0; }
.quick-banner h2 { font-size: 20px; line-height: 1.4; margin-top: 8px; letter-spacing: -.02em; }
.quick-banner p { margin-top: 4px; color: #6a5316; font-size: 12.5px; line-height: 1.7; }
.quick-banner .btn { flex: 0 0 auto; }
.quiz-version-note { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.quiz-version-note .tag { flex: 0 0 auto; }
@media (max-width: 900px) { .quiz-hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .quick-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .quick-banner .btn { width: 100%; }
  .quiz-hero-stats { grid-template-columns: 1fr 1fr; }
  .quiz-version-note { font-size: 11px; }
}
@media (max-width: 460px) { .quiz-hero-stats { grid-template-columns: 1fr; } }

/* 窄屏：标题截断、交卷/计时器不被挤掉 */
.quiz-title strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .quiz-topbar-row { gap: 7px; }
  .quiz-topbar-row .icon-btn { width: 36px; height: 36px; flex: 0 0 36px; }
  .quiz-title { gap: 6px; }
  .quiz-title strong { font-size: 12px; }
  .quiz-timer { flex: 0 0 auto; font-size: 12px; padding: 6px 8px; gap: 5px; }
  .quiz-timer .icon { display: none; }
  #submitExamBtn { flex: 0 0 auto; padding: 0 12px; }
  .q-meta .tag { font-size: 10px; padding: 3px 7px; }
  .q-text { font-size: 16px; }
  .sheet-grid { grid-template-columns: repeat(8, 1fr); }
  .sheet-cell { font-size: 9px; }
}
@media (max-width: 360px) {
  .quiz-title strong { max-width: 92px; }
  .quiz-timer { font-size: 11px; }
  .sheet-grid { grid-template-columns: repeat(6, 1fr); }
}

/* 防止表格/示意图的 min-content 把移动端布局撑宽 */
.lesson-layout > *, .prac-layout > *, .quiz-layout > *, .intro-grid > *, .plan-grid > * { min-width: 0; }
.prose { width: 100%; min-width: 0; }
.prac-content { width: 100%; min-width: 0; }
.table-wrap { min-width: 0; }

@media (max-width: 460px) {
  .page-hero h1 { font-size: 30px; line-height: 1.22; }
  .lesson-hero h1 { font-size: 28px; line-height: 1.25; }
}

.source-grid > *, .source-card { min-width: 0; }
.source-grid { min-width: 0; }
