/* ==========================================================================
   Scenta驰扬Ai学习平台 · 设计系统
   浅色主题 / 信息密度优先 / 无第三方依赖
   ========================================================================== */

:root {
  --bg: #f5f7fa;
  --bg-soft: #eef1f6;
  --card: #ffffff;
  --ink: #0e1620;
  --ink2: #3d4a59;
  --ink3: #5f6b7a;
  --line: #e4e8ee;
  --line2: #d5dce6;

  --brand: #2a5bd7;
  --brand-ink: #1c3f9e;
  --brand-soft: #eef3fe;
  --teal: #0f9e8a;
  --ok: #0e9f6e;
  --warn: #b45309;
  --danger: #c0392b;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;

  --sh-1: 0 1px 2px rgba(14, 22, 32, 0.04);
  --sh-2: 0 2px 4px rgba(14, 22, 32, 0.04), 0 12px 28px -16px rgba(14, 22, 32, 0.22);
  --sh-3: 0 20px 48px -20px rgba(14, 22, 32, 0.32);

  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", "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;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.32;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}
/* 品牌区不参与收缩：名称较长时保持完整，靠导航横向滚动吸收空间 */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -0.02em; flex: none; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2a5bd7 0%, #0f9e8a 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(42, 91, 215, 0.5);
  flex: none;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink3);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.brand b { font-size: 15px; line-height: 1.2; display: block; white-space: nowrap; }

/* min-width:0 + overflow-x:auto：空间不足时导航横向滚动，而不是撑破 topbar */
.nav { display: flex; gap: 2px; margin-left: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink2);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.search-btn {
  display: flex; align-items: center; gap: 8px;
  height: 34px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 9px;
  color: var(--ink3);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  /* 顶栏空间紧张时按钮文字不应被挤成两行 */
  flex: none;
  white-space: nowrap;
}
.search-btn:hover { border-color: var(--line2); box-shadow: var(--sh-1); color: var(--ink2); }
.search-btn kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--ink3);
  background: var(--bg);
}

.progress-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink3);
  padding: 0 4px;
}
.progress-pill .ring {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--p, 0) * 1%), var(--bg-soft) 0);
  display: grid; place-items: center;
  flex: none;
}
.progress-pill .ring::after {
  content: "";
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
}

/* ---------- 通用块 ---------- */
.main { padding: 34px 0 72px; min-height: 62vh; }

.section { margin-top: 44px; }
.section:first-child { margin-top: 0; }

.sec-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.sec-head .tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
}
.sec-head h1, .sec-head h2 { font-size: 21px; }
.sec-head p { color: var(--ink3); font-size: 14px; }
.sec-head .spacer { margin-left: auto; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
/* 长文案 chip：允许换行，避免把父级 min-content 撑爆（移动端横向溢出根因） */
.chip.line {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink3);
  white-space: normal;
  height: auto;
  min-height: 22px;
  padding: 2px 8px;
  line-height: 1.55;
  align-items: flex-start;
  overflow-wrap: anywhere;
}
.chip.brand { background: var(--brand-soft); color: var(--brand-ink); }
.chip.ok { background: #e7f7f0; color: #0a7a55; }
.chip.warn { background: #fdf3e7; color: #9a4a06; }
.chip.dim { background: #f1f3f7; color: var(--ink3); font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink2);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn:hover { background: #fafbfd; border-color: #c8d1de; box-shadow: var(--sh-1); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(42, 91, 215, 0.75);
}
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }

.hr { height: 1px; background: var(--line); border: 0; margin: 30px 0; }

.muted { color: var(--ink3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(900px 300px at 12% -10%, rgba(42, 91, 215, 0.1), transparent 60%),
    radial-gradient(700px 260px at 92% 0%, rgba(15, 158, 138, 0.1), transparent 58%),
    #fff;
  padding: 34px 34px 30px;
  box-shadow: var(--sh-2);
}
.hero h1 {
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 720px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
/* 主标题之后的价值主张：介于 h1 与说明文字之间，独立成行、一眼可见 */
.hero .hero-slogan {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--brand-ink);
}
.hero .hero-slogan::before {
  content: "";
  flex: none;
  width: 3px;
  height: 19px;
  border-radius: 2px;
  background: var(--brand);
}
.hero .lede {
  margin-top: 12px;
  max-width: 660px;
  color: var(--ink2);
  font-size: 15px;
}
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.stat { padding-right: 16px; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b {
  display: block;
  font-size: 25px;
  font-weight: 680;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12.5px; color: var(--ink3); }
.stat em { display: block; margin-top: 2px; font-style: normal; }

/* ---------- 学习视频 · 站内播放 ---------- */
.v-player { margin-top: 12px; border-radius: 10px; overflow: hidden; background: #111827; }
.v-player[hidden] { display: none; }
.v-player video { display: block; width: 100%; max-height: 480px; }
.v-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.v-play-btn { cursor: pointer; }
.hero-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink3);
}

/* ---------- 岗位卡片 ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px 18px 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.role-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: hsl(var(--h, 215) 68% 56%);
  opacity: 0.9;
}
.role-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: hsl(var(--h, 215) 40% 84%);
}
.role-card-head { display: flex; align-items: flex-start; gap: 11px; }
.role-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 15px;
  font-weight: 700;
  flex: none;
  background: hsl(var(--h, 215) 72% 96%);
  color: hsl(var(--h, 215) 58% 40%);
  border: 1px solid hsl(var(--h, 215) 55% 90%);
}
.role-card h3 { font-size: 16px; }
.role-card .aud {
  font-size: 12.5px;
  color: var(--ink3);
  line-height: 1.5;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.role-card .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.role-card .chaps {
  font-size: 12.5px;
  color: var(--ink3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-top: 2px;
  border-top: 1px dashed var(--line);
}
.role-card .chaps b { color: var(--ink2); font-weight: 500; }
.role-card-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;
  font-size: 12.5px;
  color: var(--ink3);
}
.role-card-foot .go { margin-left: auto; color: var(--brand); font-weight: 600; }

/* ---------- 岗位页 ---------- */
.role-hero {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 26px 28px;
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}
.role-hero::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, hsl(var(--h, 215) 70% 58%), hsl(var(--h, 215) 70% 58% / 0.15));
}
.role-hero .kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  color: hsl(var(--h, 215) 55% 45%);
  text-transform: uppercase;
}
.role-hero h1 { font-size: 27px; margin-top: 6px; }
.role-hero .lede { color: var(--ink2); margin-top: 8px; max-width: 760px; }
.role-hero .metrics { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.role-hero .metric b { font-size: 19px; font-variant-numeric: tabular-nums; }
.role-hero .metric span { font-size: 12px; color: var(--ink3); margin-left: 4px; }

.role-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-top: 26px;
}
.side {
  position: sticky;
  top: 78px;
  min-width: 0;
  max-height: calc(100dvh - 100px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.side-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink3);
  text-transform: uppercase;
  padding: 0 10px 8px;
}
.chap-nav a {
  display: flex;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.45;
  border-left: 2px solid transparent;
}
.chap-nav a:hover { background: var(--bg-soft); }
.chap-nav a.on {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-left-color: var(--brand);
  font-weight: 550;
}
.chap-nav .no {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink3);
  padding-top: 2px;
  flex: none;
}
.chap-nav a.on .no { color: var(--brand); }
.chap-nav .cn { margin-left: auto; font-size: 11px; color: var(--ink3); }
.chap-nav .ct { min-width: 0; }
.chap-nav .cnt { flex: none; font-variant-numeric: tabular-nums; }

/* 章节卡片 */
.chap {
  scroll-margin-top: 78px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh-1);
}
.chap + .chap { margin-top: 16px; }
.chap-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chap-no {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.chap-head h2 { font-size: 18.5px; }
.chap-goal {
  margin-top: 10px;
  color: var(--ink2);
  font-size: 14.5px;
  border-left: 2px solid hsl(var(--h, 215) 60% 82%);
  padding-left: 12px;
}
.pts { margin-top: 16px; display: grid; gap: 8px; }
.pts li {
  display: flex; gap: 10px;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.65;
}
.pts li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: hsl(var(--h, 215) 60% 62%);
  margin-top: 9px;
  flex: none;
}
.scene-list { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 6px; }
.scene-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px 9px 6px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink2);
  transition: background 0.13s;
}
a.scene-row:hover { background: var(--bg-soft); color: var(--ink); }
.scene-row .sid {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink3);
  width: 34px;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.scene-row .st { flex: 1; min-width: 0; }
.scene-row .arrow { color: var(--ink3); font-size: 13px; flex: none; }
a.scene-row:hover .arrow { color: var(--brand); }
.scene-row .chip { flex: none; }

/* ---------- 内容页 ---------- */
.crumb {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink3);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: #c3cbd6; }

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}
.doc-main { min-width: 0; }
.doc-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: 24px; letter-spacing: -0.02em; }
.doc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.block { margin-top: 26px; }
.block > h2 {
  font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
  margin-bottom: 10px;
}
.block > h2 .ix {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  flex: none;
}
.block p, .block li { color: var(--ink2); font-size: 14.5px; }
.block p + p { margin-top: 8px; }

.plain li {
  position: relative;
  padding-left: 16px;
  margin-top: 6px;
  line-height: 1.7;
}
.plain li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line2);
}
.plain.check li::before { background: #b9e6d4; }
.plain.bound li::before { background: #f3d4ae; }

.steps { counter-reset: s; display: grid; gap: 12px; margin-top: 4px; }
.steps li {
  position: relative;
  padding-left: 34px;
  counter-increment: s;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink2);
  font-size: 11.5px;
  font-weight: 600;
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.steps b { display: block; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.steps span { color: var(--ink2); font-size: 14px; }

/* 提示词 */
.prompt {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fbfcfe;
  overflow: hidden;
}
.prompt-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  font-size: 12px;
  color: var(--ink3);
}
.prompt-head .dots { display: flex; gap: 4px; }
.prompt-head .dots i { width: 7px; height: 7px; border-radius: 50%; background: #dfe4ec; display: block; }
.prompt pre {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.78;
  color: #1d2733;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 460px;
  overflow: auto;
}
.copy-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  color: var(--ink2);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.copy-btn.done { border-color: #b9e6d4; color: #0a7a55; background: #f1fbf7; }

/* 侧栏 */
.doc-side { position: sticky; top: 78px; display: grid; gap: 14px; }
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 14px 15px;
}
.side-card h3 {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 600;
  margin-bottom: 9px;
}
.side-card .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.side-card .kv span:first-child { color: var(--ink3); }
.side-card .kv span:last-child { color: var(--ink2); text-align: right; }
.side-links a {
  display: block;
  font-size: 13px;
  color: var(--ink2);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  line-height: 1.5;
}
.side-links a:last-child { border-bottom: 0; }
.side-links a:hover { color: var(--brand); }

/* ---------- 测评 ---------- */
.quiz-shell { max-width: 860px; margin: 0 auto; }
.q-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  padding: 20px 22px;
  box-shadow: var(--sh-1);
}
.q-card + .q-card { margin-top: 12px; }
.q-head { display: flex; gap: 10px; align-items: flex-start; }
.q-no {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  padding-top: 3px;
  flex: none;
}
.q-title { font-size: 15px; font-weight: 550; line-height: 1.6; color: var(--ink); }
.opts { margin-top: 14px; display: grid; gap: 8px; }
.opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink2);
  transition: border-color 0.13s, background 0.13s;
  background: #fff;
}
.opt:hover { border-color: var(--line2); background: #fbfcfe; }
.opt input { margin: 5px 0 0; accent-color: var(--brand); flex: none; }
.opt .k {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 5px;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  flex: none;
  margin-top: 1px;
}
.opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt.right { border-color: #b9e6d4; background: #f1fbf7; }
.opt.wrong { border-color: #f0c6c0; background: #fdf4f3; }
.opt.right .k { border-color: #b9e6d4; color: #0a7a55; }
.opt.wrong .k { border-color: #f0c6c0; color: var(--danger); }
.why {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f7f9fc;
  border: 1px dashed var(--line2);
  font-size: 13.5px;
  color: var(--ink2);
}
.why b { color: var(--ink); }

.quiz-bar {
  /* 靠右的紧凑胶囊：原来横跨整行，会盖住题目选项 */
  position: sticky;
  bottom: 14px;
  width: max-content;
  max-width: 100%;
  margin: 18px 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-2);
}
.quiz-bar .count { font-size: 13px; color: var(--ink3); }
.quiz-bar .count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.quiz-bar .spacer { display: none; }
#quizList { padding-bottom: 84px; }

.score {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--sh-2);
}
.score .big {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score .big small { font-size: 15px; font-weight: 500; color: var(--ink3); letter-spacing: 0; }
.score .txt h2 { font-size: 17px; }
.score .txt p { color: var(--ink3); font-size: 13.5px; margin-top: 4px; }
.score.tone-good .big { color: var(--ok); }
.score.tone-mid .big { color: var(--warn); }
.score.tone-low .big { color: var(--danger); }

.role-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.role-pick a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 14px;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.role-pick a:hover { border-color: hsl(var(--h, 215) 55% 82%); box-shadow: var(--sh-1); }
.role-pick .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: hsl(var(--h, 215) 65% 58%);
  flex: none;
}
.role-pick .n { margin-left: auto; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }

/* ---------- 提示词合集 ---------- */
.filter-bar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  position: sticky;
  top: 68px;
  z-index: 20;
  box-shadow: var(--sh-1);
}
.filter-bar .grow { flex: 1; min-width: 200px; }
.input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42, 91, 215, 0.12); }
.select {
  height: 36px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 0 10px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  color: var(--ink2);
  max-width: 220px;
}
.p-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.p-item { padding: 18px 20px; min-width: 0; }
.p-item-head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.p-item-head h3 { font-size: 15.5px; }
.p-item-head .chip { margin-top: 2px; }
.p-item .use { font-size: 13px; color: var(--ink3); margin-top: 3px; }

/* ---------- 搜索浮层 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 22, 32, 0.34);
  backdrop-filter: blur(3px);
  display: none;
  padding: 12vh 16px 16px;
}
.overlay.open { display: block; }
.palette {
  max-width: 660px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--sh-3);
  overflow: hidden;
  border: 1px solid var(--line);
}
.palette input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  height: 52px;
  padding: 0 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
}
.palette input:focus { outline: none; }
.palette .res { max-height: 54vh; overflow: auto; padding: 8px; }
.palette .res a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14px;
}
.palette .res a:hover, .palette .res a.on { background: var(--bg-soft); }
.palette .res .ty {
  font-size: 11px;
  color: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
  flex: none;
}
.palette .res .hint { margin-left: auto; font-size: 12px; color: var(--ink3); flex: none; }
.palette .foot {
  display: flex; gap: 14px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink3);
  background: #fbfcfe;
}
.palette .foot kbd {
  font-family: var(--mono);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 4px;
  margin-right: 4px;
  background: #fff;
}
.empty { padding: 26px; text-align: center; color: var(--ink3); font-size: 14px; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 0 34px;
  color: var(--ink3);
  font-size: 12.5px;
}
.foot-in { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot .chip { white-space: normal; height: auto; min-height: 22px; line-height: 1.55; text-align: center; }
.foot a:hover { color: var(--brand); }
.foot .spacer { margin-left: auto; }

/* ---------- 辅助 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  background: #0e1620;
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 120;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.pager { display: flex; gap: 10px; margin-top: 34px; }
.pager a {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink2);
}
.pager a:hover { border-color: var(--line2); box-shadow: var(--sh-1); }
.pager a small { display: block; color: var(--ink3); font-size: 11.5px; margin-bottom: 2px; }
.pager a.next { text-align: right; }

/* ---------- 响应式 ---------- */
/* 品牌名变长后（如「Scenta驰扬Ai学习平台」），中等宽度下收紧导航，
   保证 8 项导航完整可见；≥1161px 保持默认字号与英文副标题。 */
@media (max-width: 1160px) {
  .brand small { display: none; }
  .nav a { padding: 7px 10px; font-size: 13.5px; }
  /* 品牌名变长后，收掉快捷键提示并禁止按钮折行，把宽度让给导航 */
  .search-btn { flex: none; white-space: nowrap; }
  .search-btn kbd { display: none; }
}
/* 更窄的桌面/小平板：再收紧一档，保证 8 项导航完整可见 */
@media (max-width: 1120px) {
  .nav a { padding: 7px 8px; font-size: 13px; }
}
@media (max-width: 1020px) {
  /* minmax(0,1fr)：单列时允许收缩，避免子项 min-content 把整页撑宽 */
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: static; grid-row: 1; min-width: 0; }
  .role-layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; min-width: 0; }
  .chap-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .chap-nav a { border-left: 0; border: 1px solid var(--line); background: #fff; min-width: 0; }
  .chap-nav a.on { border-color: var(--brand); }
  .chap-nav .cnt { display: none; }
  .chap-nav .ct { margin-left: 0; font-size: 12px; color: var(--ink2); }
  /* 导航文案缩短后覆盖到 1000px：再收一档，避免 1000~1020px 出现滚动条 */
  .nav a { padding: 6px 7px; font-size: 12.5px; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .topbar-in {
    flex-wrap: wrap;
    height: auto;
    /* 注意保留 16px 左右内边距：此前写成 padding: 9px 0 8px 会把 .wrap 的边距覆盖掉，
       导致品牌贴左边缘、搜索按钮贴右边缘 */
    padding: 9px 16px 8px;
    row-gap: 7px;
    column-gap: 10px;
  }
  .brand { order: 1; gap: 7px; }
  .brand small { display: none; }
  .brand b { font-size: 14px; }
  .topbar-right { order: 2; margin-left: auto; gap: 6px; }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 1px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 6px 10px; font-size: 13px; border-radius: 7px; }
  .progress-pill { display: none; }
  .sec-head { flex-wrap: wrap; gap: 4px 14px; }
  .sec-head p.spacer { margin-left: 0; flex-basis: 100%; }
  .hero { padding: 24px 20px; border-radius: 16px; }
  .hero h1 { font-size: 23px; }
  .hero .hero-slogan { margin-top: 12px; font-size: 16px; }
  .hero .lede { font-size: 14.5px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; padding-top: 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .role-grid { grid-template-columns: 1fr; }
  .role-hero { padding: 20px 18px; }
  .role-hero h1 { font-size: 22px; }
  .chap { padding: 20px 18px; }
  .q-card { padding: 16px; }
  .score { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* 只隐藏「搜索」文字，保留 ⌕ 图标；图标本身也在 span 内，需排除 aria-hidden 那个 */
  .search-btn span:not([aria-hidden]) { display: none; }
  .search-btn { padding: 0 9px; }
  .filter-bar { position: static; }
}

@media (max-width: 420px) {
  .brand b { font-size: 13px; }
  .hero h1 { font-size: 20.5px; }
  .stat b { font-size: 20px; }
  .quiz-bar { gap: 8px; padding: 10px 12px; }
}

/* 首页方法列表 */
.rule-list { display: grid; gap: 11px; }
.rule-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.68;
}
.rule-list b {
  flex: none;
  width: 132px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
}

@media (max-width: 560px) {
  .rule-list li { flex-direction: column; gap: 2px; }
  .rule-list b { width: auto; }
  .stat b { font-size: 21px; }
}

/* 导航项增至 7 个后，窄屏允许横向滑动，避免撑破顶栏 */
@media (max-width: 900px) {
  .nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 9px; font-size: 13px; }
}

/* ---------- Accio Work · 原书实操截图 ---------- */
.aw-shots {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line2);
}
.aw-shots-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
}
.aw-shots-title {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--brand-ink);
}
.aw-shots-title i {
  display: block; width: 7px; height: 7px; border-radius: 2px;
  background: var(--brand); transform: rotate(45deg);
}
.aw-shots-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.aw-shots-grid.multi { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.aw-shot { margin: 0; min-width: 0; }
.aw-shot-open {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 350px; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfe; overflow: hidden; cursor: zoom-in;
  transition: border-color .16s, box-shadow .16s;
}
.aw-shots-grid.multi .aw-shot-open { height: 230px; }
.aw-shot-open:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42, 91, 215, .10); }
.aw-shot-open:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.aw-shot-open img {
  display: block; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  background: #fff; border: 1px solid #eceff4;
  box-shadow: 0 3px 14px rgba(14, 22, 32, .12);
}
.aw-shot-zoom {
  position: absolute; right: 9px; bottom: 9px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(14, 22, 32, .72); color: #fff;
  font-size: 11.5px; letter-spacing: .2px;
}
.aw-shot-open:hover .aw-shot-zoom { background: var(--brand); }
.aw-shot figcaption {
  margin-top: 6px; text-align: center;
  font-size: 11.5px; color: var(--ink3);
}
.aw-appendix .sec-head { margin: 0 0 8px; }
/* 附录仅保留一张竖版截图时，收窄相框避免整行留白 */
.aw-appendix .aw-shots-grid { max-width: 420px; margin: 0 auto; }
.aw-appendix .aw-shot-open { height: 420px; }
.aw-no-shots .aw-shots, .aw-no-shots .aw-appendix { display: none; }

/* 放大查看浮层 */
.aw-lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column;
  padding: 14px 18px 12px;
  background: rgba(10, 16, 26, .9);
  backdrop-filter: blur(4px);
}
.aw-lightbox[hidden] { display: none; }
.aw-lb-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; color: #fff; min-height: 34px;
}
.aw-lb-title {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aw-lb-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.aw-lb-count { font-size: 12.5px; color: #c9d4e6; }
.aw-lb-close {
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px;
  background: rgba(255, 255, 255, .10); color: #fff;
  padding: 5px 11px; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.aw-lb-close:hover { background: rgba(255, 255, 255, .22); }
.aw-lb-stage {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 10px 0;
}
.aw-lb-img {
  max-width: min(94vw, 1180px); max-height: 78vh;
  width: auto; height: auto; object-fit: contain;
  background: #fff; border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.aw-lb-nav {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; font-family: inherit;
}
.aw-lb-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .26); }
.aw-lb-nav:disabled { opacity: .28; cursor: default; }
.aw-lb-foot { text-align: center; color: #c9d4e6; font-size: 12px; padding-top: 4px; }
@media (max-width: 640px) {
  .aw-shot-open { height: 220px; }
  .aw-shots-grid.multi .aw-shot-open { height: 160px; }
  .aw-lb-stage { gap: 4px; }
  .aw-lb-nav { width: 32px; height: 32px; font-size: 20px; }
}

@media print {
  .aw-lightbox, .aw-shot-zoom, #awToggleShots { display: none !important; }
  .aw-shots { break-inside: avoid; }
  .aw-shot-open { height: 200px; }
}

@media print {
  .topbar, .doc-side, .quiz-bar, .foot, .search-btn { display: none; }
  body { background: #fff; }
  .chap, .q-card { box-shadow: none; break-inside: avoid; }
  .prompt pre { max-height: none; overflow: visible; }
  .role-layout, .doc { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WB出海（chuhai.html）——《出海企业 AI 应用手册》结构化板块
   沿用站内既有变量与卡片语言，仅补充目录树、场景卡与表格样式
   ========================================================================== */

/* 顶栏药丸改为板块入口 */
.progress-pill.as-link {
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
  flex: none;
}
.progress-pill.as-link:hover { background: var(--brand-soft); border-color: var(--line2); }
.progress-pill.as-link span:last-child { color: var(--ink2); font-weight: 600; }
/* 药丸文字比原「精讲 0/144」长，收紧内边距与字号，避免挤掉导航项 */
.progress-pill.as-link span:last-child { font-size: 12px; letter-spacing: -0.01em; }
.progress-pill.as-link .ring { width: 20px; height: 20px; }
.progress-pill.as-link .ring::after { width: 14px; height: 14px; }

/* ---------- 篇章顺序 ---------- */
.ch-parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 8px;
}
.ch-part {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color 0.15s, background 0.15s;
}
.ch-part:hover { border-color: var(--brand); background: var(--brand-soft); }
.ch-part b {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  font-family: var(--mono);
  flex: none;
}
.ch-part span { font-size: 13.5px; color: var(--ink2); flex: 1; min-width: 0; }
.ch-part i { font-size: 11.5px; color: var(--ink3); font-style: normal; flex: none; font-family: var(--mono); }

/* ---------- 完整目录树 ---------- */
.ch-outline {
  max-height: 620px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg-soft);
  scrollbar-width: thin;
}
/* 展开状态：放宽限高但保留内滚动，203 条不把整页撑到 5000px */
.ch-outline.expanded { max-height: 1000px; }
.ch-ol {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink2);
  padding: 3px 0;
  border-bottom: 1px dotted var(--line);
}
.ch-ol:last-child { border-bottom: 0; }
.ch-ol-p {
  flex: none;
  width: 42px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
}
.ch-ol1 {
  font-weight: 650;
  color: var(--ink);
  font-size: 13.5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line2);
  border-bottom: 0;
}
.ch-ol1:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ch-ol2 { padding-left: 18px; }
.ch-ol3 { padding-left: 38px; color: var(--ink3); font-size: 12.5px; }

/* ---------- 场景索引 ---------- */
.ch-idx {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px 12px;
}
.ch-idx-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink2);
  transition: background 0.15s;
}
.ch-idx-row:hover { background: var(--bg-soft); color: var(--ink); }
.ch-idx-row .sid {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 5px;
  padding: 1px 5px;
}
.ch-idx-row span:nth-child(2) { flex: 1; min-width: 0; }
.ch-idx-sec { flex: none; font-family: var(--mono); font-size: 11.5px; color: var(--ink3); }

/* ---------- 场景卡 ---------- */
.ch-scene { margin-bottom: 14px; scroll-margin-top: 84px; }
.ch-bound { margin: 6px 0 0; }
.ch-bound li { font-size: 13px; }

/* ---------- 表格 ---------- */
.ch-tbl { margin-bottom: 12px; }
.ch-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.ch-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ch-table th, .ch-table td {
  padding: 8px 11px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}
.ch-table th {
  background: var(--bg-soft);
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.ch-table td { color: var(--ink2); }
.ch-table tr:last-child td { border-bottom: 0; }
.ch-table th:last-child, .ch-table td:last-child { border-right: 0; }
.ch-table tbody tr:hover td { background: #fafbfd; }

/* ---------- 逐页全文 ---------- */
.ch-page { margin-bottom: 12px; scroll-margin-top: 84px; }
.ch-para p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.75;
}
.ch-para p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .ch-parts, .ch-idx { grid-template-columns: 1fr; }
  .ch-outline { max-height: 420px; }
  .ch-ol2 { padding-left: 12px; }
  .ch-ol3 { padding-left: 26px; }
  .ch-table th, .ch-table td { padding: 6px 8px; font-size: 12.5px; }
}

/* 当前所在板块：药丸高亮 */
.progress-pill.as-link.active {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.progress-pill.as-link.active span:last-child { color: var(--brand-ink); }

/* 顶栏：药丸变长后收紧导航间距，保证 8 项导航在 1440 以上完整可见
   （.wrap 两侧留白后，实际可用宽度比视口窄约 40px，故断点取 1460） */
@media (max-width: 1460px) {
  .topbar-in { gap: 12px; }
  .nav a { padding: 7px 9px; font-size: 13.5px; }
}

/* 移动端：药丸已改为板块入口，不能像原进度指示器那样整条隐藏
   （隐藏后 .topbar-right 会残留空框，且「WB出海」在窄屏无法进入） */
@media (max-width: 640px) {
  .progress-pill.as-link {
    display: flex;
    padding: 3px 9px 3px 5px;
    gap: 6px;
  }
  .progress-pill.as-link .ring { width: 16px; height: 16px; }
  .progress-pill.as-link .ring::after { width: 11px; height: 11px; }
  .progress-pill.as-link span:last-child { font-size: 11.5px; }
}

/* ---------- 完整目录：可折叠区 ---------- */
.ch-fold {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.ch-fold-sum {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.ch-fold-sum::-webkit-details-marker { display: none; }
.ch-fold-sum::marker { content: ""; }
.ch-fold-sum:hover { background: var(--bg-soft); }
.ch-fold-sum:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ch-fold-t {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  position: relative;
  padding-left: 20px;
}
/* 折叠箭头：展开时旋转 */
.ch-fold-t::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid var(--ink3);
  border-bottom: 1.8px solid var(--ink3);
  transform: translateY(-70%) rotate(-45deg);
  transition: transform 0.18s;
}
.ch-fold[open] .ch-fold-t::before { transform: translateY(-30%) rotate(45deg); }
.ch-fold-meta { font-size: 13px; color: var(--ink3); flex: 1; min-width: 0; }
.ch-fold-hint { font-size: 12px; color: var(--ink3); flex: none; }
.ch-fold[open] .ch-fold-hint { visibility: hidden; }

.ch-fold-body { padding: 0 16px 14px; }
.ch-fold-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
/* 只看篇章：隐藏 L2 / L3 */
.ch-outline.only-parts .ch-ol2,
.ch-outline.only-parts .ch-ol3 { display: none; }

@media (max-width: 640px) {
  .ch-fold-sum { padding: 11px 13px; gap: 6px 10px; }
  .ch-fold-hint { display: none; }
  .ch-fold-body { padding: 0 13px 12px; }
}

/* ---------- 场景内的编号条目（痛点依据来源 / WorkBuddy 做法步骤） ---------- */
.ch-nl {
  margin: 14px 0 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.ch-nl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.ch-nl-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  /* 条目之间空一行，便于快速浏览 */
  margin: 0 0 12px;
}
.ch-nl-item:last-child { margin-bottom: 2px; }
.ch-nl-no {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.ch-nl-body { flex: 1; min-width: 0; }
.ch-nl-main {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 550;
  line-height: 1.7;
}
.ch-nl-sub {
  font-size: 12.5px;
  color: var(--ink3);
  line-height: 1.68;
  margin-top: 2px;
}
.ch-nl-sub.muted { color: var(--ink3); }

@media (max-width: 640px) {
  .ch-nl-item { gap: 8px; }
  .ch-nl-main { font-size: 13px; }
  .ch-nl-sub { font-size: 12px; }
}

/* ==================================================================
   WB出海 · 排版工整化
   统一 kv 两列基线 / 小节分区标题 / 编号条目卡片 / 目录层级导轨 /
   场景索引列边界，并补一条常驻的本页导航
   ================================================================== */

/* ---------- 本页导航：常驻在 60px 顶栏之下，长页面不迷路 ---------- */
.ch-jump {
  position: sticky;
  top: 60px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(150%) blur(8px);
  box-shadow: var(--sh-1);
}
.ch-jump-lb {
  flex: none;
  margin-right: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink3);
}
.ch-jump a,
.ch-jump-top {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--ink2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
}
.ch-jump a:hover,
.ch-jump-top:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.ch-jump-top {
  margin-left: auto;
  border-color: var(--line);
  background: transparent;
  color: var(--ink3);
}
/* 锚点跳转时给 sticky 顶栏 + 导航条留出空间 */
#ch-skeleton, #ch-scenes, #ch-glossary, #ch-tables, #ch-pages,
.ch-scene, .ch-tbl, .ch-page { scroll-margin-top: 116px; }
.ch-toggle { align-self: center; flex: none; margin-left: 10px; }
.is-collapsed { display: none; }

/* ---------- 卡片内小节标题条：一眼区分「标题」与「正文」 ---------- */
.ch-sec-t {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
  padding: 7px 11px 7px 12px;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: var(--bg-soft);
}
.ch-sec-t > span {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.ch-sec-t > em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink3);
}

/* ---------- kv 两列栅格：正文左边界统一，换行也落在正文列 ---------- */
.ch-kv {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
}
.ch-kv:last-child { border-bottom: 0; }
.ch-kv-k {
  flex: none;
  width: 96px;
  padding-top: 1px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink3);
}
.ch-kv-v { flex: 1; min-width: 0; color: var(--ink2); overflow-wrap: break-word; }

/* 责任边界 / 案例标签 */
.ch-bd-lb {
  display: inline-block;
  min-width: 72px;
  margin-right: 6px;
  color: var(--ink);
  font-weight: 650;
}
.ch-case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }

/* ---------- 责任边界：三行标签列 + 顿号逐条拆分 ----------
   场景卡片与逐页全文共用，AI 做 / 人做 / 必须人确认 一眼可分 */
.ch-pg-bound {
  /* 与同页表格、卡片内容区同宽，右边界对齐才工整 */
  width: 100%;
  max-width: 100%;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card, #fff);
  overflow: hidden;
  box-sizing: border-box;
}
.ch-pg-bound.no-head { margin-top: 4px; }
.ch-pg-bound-h {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--brand-soft);
}
.ch-pg-bound-t { font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.ch-pg-bd-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px dashed var(--line);
}
.ch-pg-bd-row:last-child { border-bottom: 0; }
.ch-pg-bd-lb {
  flex: 0 0 92px;
  padding-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
}
.ch-pg-bd-v { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ch-pg-bd-i {
  padding: 3px 9px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink2);
  overflow-wrap: anywhere;
}
.ch-pg-bd-row.is-ai .ch-pg-bd-lb { color: var(--brand-ink); }
.ch-pg-bd-row.is-ai .ch-pg-bd-i {
  border-color: rgba(42, 91, 215, 0.22);
  background: rgba(42, 91, 215, 0.055);
}
.ch-pg-bd-row.is-confirm .ch-pg-bd-lb { color: #a4530b; }
.ch-pg-bd-row.is-confirm .ch-pg-bd-i {
  border-color: rgba(164, 83, 11, 0.22);
  background: rgba(164, 83, 11, 0.055);
}

/* ---------- 编号条目：卡片化 + 明确的条目间留白 ---------- */
.ch-nl-list { margin-top: 2px; }
.ch-nl-item {
  gap: 12px;
  margin: 0 0 10px;
  padding: 9px 12px 10px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 9px 9px 0;
  background: var(--bg-soft);
}
.ch-nl-item:last-child { margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.ch-nl-no {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  box-shadow: inset 0 0 0 1px var(--line2);
}
.ch-nl-sub { margin-top: 4px; }
.ch-nl-lb { margin-right: 3px; font-weight: 650; color: var(--ink2); }

/* ---------- 场景索引：行分隔 + section 号做成徽标，杜绝跨列串读 ---------- */
.ch-idx { gap: 0 14px; }
.ch-idx-row {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.ch-idx-row:hover { border-radius: 7px; }
.ch-idx-sec {
  min-width: 32px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  text-align: center;
}

/* ---------- 完整目录：页码与标题分隔、层级导轨、篇章成块 ----------
   注意：条目类名是 ch-ol + ch-ol1/2/3 组合，基础 .ch-ol 必须命中，
   否则页码列 width、flex gap、缩进全部失效，页码会与标题连读 */
.ch-outline { padding: 10px 12px; }
.ch-outline .ch-ol {
  gap: 10px;
  padding: 5px 10px;
  scroll-margin-top: 116px;
}
.ch-ol-p {
  width: 46px;
  padding-right: 9px;
  border-right: 1px solid var(--line);
}
.ch-outline .ch-ol1 {
  margin: 10px 0 5px;
  padding: 8px 10px;
  border-top: 0;
  border-bottom: 0;
  /* 左侧留直角：inset 竖条才是直线，不会因圆角弯成括号 */
  border-radius: 0 7px 7px 0;
  background: rgba(42, 91, 215, 0.055);
  box-shadow: inset 3px 0 0 var(--brand);
  color: var(--brand-ink);
  font-size: 13.5px;
}
.ch-outline .ch-ol1:first-child { margin-top: 0; }
.ch-outline .ch-ol1 .ch-ol-p { color: var(--brand-ink); border-right-color: rgba(42, 91, 215, 0.25); }
/* 页码列严格对齐在同一 x，只有标题按层级缩进并带导轨 */
.ch-outline .ch-ol2 > span:last-child {
  padding-left: 18px;
  border-left: 2px solid var(--line2);
}
.ch-outline .ch-ol3 > span:last-child {
  padding-left: 38px;
  border-left: 2px dashed var(--line2);
}

/* 逐页全文：段落间距略放宽，避免短句挤成一团 */
.ch-para p { margin: 0 0 10px; }

@media (max-width: 640px) {
  /* 移动端顶栏是两行，sticky 导航会遮挡内容，改为静态 */
  .ch-jump { position: static; margin-bottom: 14px; }
  .ch-jump-lb { flex-basis: 100%; margin-bottom: 2px; }
  .ch-jump-top { margin-left: 0; }
  .ch-kv { flex-direction: column; gap: 2px; padding: 8px 0; }
  .ch-kv-k { width: auto; padding-top: 0; }
  .ch-sec-t { margin: 14px 0 8px; }
  .ch-nl-item { gap: 9px; padding: 9px 10px; }
  .ch-bd-lb { min-width: 0; margin-right: 4px; }
}

/* ==================================================================
   逐页全文：PDF 视觉行 → 可读的块级排版
   段落 / 小节标题 / 表头编号行 / 出处 / 附录代码 各自成块
   ================================================================== */
.ch-pg-head {
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.ch-pg-head h3 { flex: 1 1 260px; min-width: 0; line-height: 1.5; }
.ch-pg-no {
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ch-pg-hs { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.ch-pg-hs .chip {
  height: auto;
  min-height: 22px;
  padding: 3px 8px;
  white-space: normal;
  line-height: 1.5;
  text-align: left;
}

.ch-para > p {
  max-width: 920px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink2);
}
.ch-para > p.ch-pg-lead {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.ch-para > p.ch-pg-lead b { color: var(--ink); font-weight: 650; }
.ch-pg-h {
  max-width: 920px;
  margin: 20px 0 9px;
  padding: 6px 0 6px 11px;
  border-left: 3px solid var(--brand);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.ch-para > p.ch-pg-src {
  max-width: 920px;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 2px solid var(--line2);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink3);
}
.ch-pg-code {
  /* 与同页表格、责任边界卡片同宽，右边界对齐才工整 */
  max-width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* 表格行：编号列 + 内容列 + 右侧小节号，行行有分隔 */
.ch-pg-tbl {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--card);
}
.ch-pg-tr {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink2);
}
.ch-pg-tr:last-child { border-bottom: 0; }
.ch-pg-tr:nth-child(even) { background: #fafbfd; }
.ch-pg-tr.is-head { background: var(--bg-soft); color: var(--ink); font-weight: 650; }
.ch-pg-tno {
  flex: none;
  width: 26px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}
.ch-pg-td { flex: 1; min-width: 0; overflow-wrap: break-word; }
.ch-pg-tsec {
  flex: none;
  margin-left: auto;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink3);
}
/* 命中原书矩阵的多列表格：列间加分隔线，首列给更宽权重 */
.ch-pg-tbl.is-cols .ch-pg-td {
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.ch-pg-tbl.is-cols .ch-pg-tr > .ch-pg-td:nth-child(2) { flex: 1.5; }
.ch-pg-empty { padding: 4px 0 2px; font-size: 13px; color: var(--ink3); }

/* 页码速查 */
.ch-pg-nav { margin-bottom: 14px; }
.ch-pg-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
}
.ch-pg-nav-grid a {
  display: grid;
  place-items: center;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--ink2);
  font-family: var(--mono);
  font-size: 12px;
}
.ch-pg-nav-grid a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-ink);
}

@media (max-width: 640px) {
  .ch-pg-head h3 { flex-basis: 100%; }
  .ch-para > p, .ch-pg-h, .ch-para > p.ch-pg-src, .ch-pg-code { max-width: 100%; }
  .ch-para > p { font-size: 13.5px; }
  .ch-pg-tr { gap: 8px; padding: 6px 9px; font-size: 12.5px; }
  .ch-pg-nav-grid { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
  .ch-pg-bound { max-width: 100%; }
  .ch-pg-bd-row { flex-direction: column; gap: 5px; padding: 9px 11px; }
  .ch-pg-bd-lb { flex: none; padding-top: 0; }
}

/* ==========================================================================
   组织岗位地图（org.html）+ 首页「按岗位找内容」速查
   ========================================================================== */
/* 锚点跳转留出顶栏高度，避免标题被固定顶栏盖住 */
.section[id] { scroll-margin-top: 78px; }
.org-hero h1 { font-size: 28px; margin: 6px 0 0; }
.org-hero .tagline { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--brand); text-transform: uppercase; }
.org-hero .lede { max-width: 900px; }
.org-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.org-stats .stat b { font-size: 24px; }

/* 筛选工具条 */
.org-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 22px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}
.org-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.org-fbtn {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink2);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.org-fbtn b { font-weight: 600; color: var(--ink3); margin-left: 3px; }
.org-fbtn:hover { border-color: var(--brand); color: var(--brand-ink); }
.org-fbtn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.org-fbtn.is-on b { color: #dbe6ff; }
.org-search { display: flex; align-items: center; gap: 12px; }
.org-search input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--bg);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.org-search input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.org-count { flex: none; font-size: 12.5px; color: var(--ink3); }
.org-empty { padding: 16px 18px; font-size: 13.5px; color: var(--ink3); margin-bottom: 20px; }

/* 组织单元 */
.org-group { margin-bottom: 30px; scroll-margin-top: 78px; }
.org-group-head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.org-group-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.org-group-head h2 { font-size: 19px; }
.org-group-head p { margin: 1px 0 0; font-size: 12.5px; }
.org-group-desc {
  margin: 0 0 13px;
  padding: 9px 12px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--brand-ink);
}
.org-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* 岗位卡片 */
.org-post {
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
  scroll-margin-top: 78px;
}
.org-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.org-post-t { display: flex; align-items: center; gap: 9px; min-width: 0; }
.org-post-idx {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--ink3);
  font-family: var(--mono);
  font-size: 11px;
}
.org-post h3 { font-size: 16px; }
.org-duty { margin: 10px 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--ink2); }
.org-mods { display: grid; gap: 7px; padding: 10px 12px; background: var(--bg-soft); border-radius: 9px; }
.org-mod-row { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 13px; }
.org-lb { flex: none; width: 62px; padding-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink3); }
.org-main-link { color: var(--brand-ink); font-weight: 650; }
.org-main-link:hover { text-decoration: underline; }
.org-aux { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.org-aux .chip { cursor: pointer; }
.org-aux .chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.org-blk { margin-top: 13px; }
.org-blk-t {
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid var(--brand);
  font-size: 12px;
  font-weight: 650;
  color: var(--brand-ink);
}
.org-ai { margin: 0; padding: 0; list-style: none; counter-reset: oai; display: grid; gap: 7px; }
.org-ai li { counter-increment: oai; display: flex; gap: 8px; font-size: 13px; line-height: 1.6; color: var(--ink2); }
.org-ai li::before {
  content: counter(oai);
  flex: none;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 700;
}
.org-start {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border: 1px dashed var(--line2);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.org-start a { color: var(--brand-ink); font-weight: 600; }
.org-start a:hover { text-decoration: underline; }
.org-start b { margin-right: 3px; color: var(--brand); font-family: var(--mono); }
.org-bound {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 11px;
  background: #fff8f0;
  border-left: 3px solid #e0a355;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink2);
}
.org-skip { margin-top: 8px; display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.6; color: var(--ink3); }
.org-post-foot { margin-top: auto; padding-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.org-post[hidden], .org-group[hidden], .org-empty[hidden] { display: none !important; }

/* 反查表 */
.org-lk { padding: 6px 16px; }
.org-lk-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
}
.org-lk-row + .org-lk-row { border-top: 1px solid var(--line); }
.org-lk-name { font-size: 14px; font-weight: 650; color: var(--ink); }
.org-lk-name:hover { color: var(--brand-ink); }
.org-lk-posts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.org-lk-lb { margin-left: 6px; font-size: 12px; color: var(--ink3); }
.org-lk-none { font-size: 12.5px; color: var(--ink3); }
.org-lk-posts .chip { cursor: pointer; }
.org-note { padding: 16px 20px; }

/* 首页速查 */
.org-qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.org-qcard {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}
.org-qcard:hover { border-color: var(--brand); box-shadow: var(--sh-2); }
.org-qhead { display: flex; align-items: center; gap: 8px; }
.org-qhead b { font-size: 14.5px; }
.org-qhead .chip { margin-left: auto; }
.org-qno {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.org-qcard p { margin: 8px 0 10px; line-height: 1.6; }
.org-qgo { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.org-qfoot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; }

@media (max-width: 900px) {
  .org-grid { grid-template-columns: 1fr; }
  .org-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .org-stats .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .org-qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-lk-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .org-hero h1 { font-size: 23px; }
  .org-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .org-stats .stat:nth-child(3), .org-stats .stat:nth-child(5) { border-left: 0; padding-left: 0; }
  .org-tools { padding: 12px; }
  .org-search { flex-direction: column; align-items: stretch; gap: 8px; }
  .org-fbtn { font-size: 12.5px; padding: 0 9px; }
  .org-qgrid { grid-template-columns: 1fr; }
  .section[id], .org-group, .org-post { scroll-margin-top: 116px; }
  .org-post { padding: 14px; }
  .org-lb { width: 56px; }
  .org-mod-row, .org-start, .org-bound, .org-skip, .org-ai li { gap: 8px; }
  .org-post-foot .btn { flex: 1 1 auto; }
}

/* 新增「岗位地图」后共 9 项导航：中等桌面宽度再收一档，
   保证 1024~1180px 仍能完整显示，不出现末项被裁切 */
@media (min-width: 761px) and (max-width: 1180px) {
  .topbar-in { gap: 9px; }
  .nav a { padding: 6px 6px; font-size: 12.5px; }
}

/* ==========================================================================
   测评中心 · 真实岗位专项测评（quiz.html）
   ========================================================================== */
.qz-hero h1 { font-size: 28px; margin: 6px 0 0; }
.qz-hero .tagline { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--brand); text-transform: uppercase; }
.qz-hero .lede { max-width: 940px; }
.qz-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.qz-stats .stat b { font-size: 23px; }

.qz-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 22px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}
.qz-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.qz-fbtn {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink2);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.qz-fbtn b { margin-left: 3px; font-weight: 600; color: var(--ink3); }
.qz-fbtn:hover { border-color: var(--brand); color: var(--brand-ink); }
.qz-fbtn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.qz-fbtn.is-on b { color: #dbe6ff; }
.qz-todo.is-on { background: var(--warn); border-color: var(--warn); }
.qz-todo.is-on b { color: #fde8cc; }
.qz-search { display: flex; align-items: center; gap: 12px; }
.qz-search input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--bg);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.qz-search input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.qz-count { flex: none; font-size: 12.5px; color: var(--ink3); }
.qz-empty { padding: 16px 18px; margin-bottom: 20px; font-size: 13.5px; color: var(--ink3); }

.qz-group { margin-bottom: 28px; scroll-margin-top: 78px; }
.qz-group-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.qz-group-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.qz-group-head h2 { font-size: 19px; }
.qz-group-head p { margin: 1px 0 0; font-size: 12.5px; }
.qz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }

.qz-post { display: flex; flex-direction: column; padding: 15px 16px 13px; scroll-margin-top: 78px; }
.qz-post-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qz-post-idx {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--ink3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.qz-post h3 { min-width: 0; font-size: 15.5px; }
.qz-post-head .chip { flex: none; margin-left: auto; }
.qz-post-grp { margin: 8px 0 10px; font-size: 12px; }
.qz-post-mods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 12.5px;
}
.qz-lb { flex: none; font-size: 11.5px; font-weight: 600; color: var(--ink3); }
.qz-post-mods b { color: var(--brand-ink); font-weight: 650; }
.qz-aux { font-size: 12px; color: var(--ink3); }
.qz-post-meta { margin: 9px 0 0; font-size: 12px; line-height: 1.6; }
.qz-post-meta b { color: var(--ink); }
.qz-post-best { margin-top: auto; padding-top: 11px; font-size: 12.5px; color: var(--ink3); }
.qz-post-best b { color: var(--ink); font-variant-numeric: tabular-nums; }
.qz-post-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.qz-post-foot .btn { flex: 1 1 auto; }

.qz-core { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 20px; }
.qz-core .btn { margin-left: auto; }
.qz-note { padding: 16px 20px; }

/* 岗位专项卷：卷面说明、分段标题、来源 chip、交卷后的下一步 */
.qz-brief { margin: 0 0 18px; padding: 16px 18px; }
.qz-brief-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; font-size: 14px; }
.qz-brief-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.qz-brief-sec {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  text-decoration: none;
}
.qz-brief-sec:hover { border-color: var(--brand); }
.qz-brief-sec b { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.qz-brief-sec span { font-size: 12px; color: var(--brand-ink); }
.qz-brief > p { margin: 11px 0 0; line-height: 1.65; }
.qz-brief-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.qz-brief-links a { color: var(--brand-ink); font-weight: 600; }
.qz-qsec {
  margin: 22px 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--brand);
  border-radius: 0 9px 9px 0;
  background: var(--brand-soft);
  scroll-margin-top: 116px;
}
.qz-qsec:first-child { margin-top: 0; }
.qz-qsec b { font-size: 14px; color: var(--brand-ink); }
.qz-qsec .chip { margin-left: 8px; }
.qz-qsec p { margin: 4px 0 0; font-size: 12.5px; }
.qz-src { cursor: pointer; text-decoration: none; }
.qz-src:hover { border-color: var(--brand); color: var(--brand-ink); }
.qz-next { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 13px 16px; }
.qz-next b { margin-right: 4px; font-size: 13px; }
.qz-brief-sec em { font-style: normal; font-size: 11.5px; line-height: 1.5; color: var(--ink3); }
.score .big { flex: none; white-space: nowrap; }
.qz-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.qz-wrong {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--sh-1);
}
.qz-wrong-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; font-size: 13.5px; }
.qz-wrong-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.qz-wrong-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 12.5px;
}
.qz-wrong-item > a:first-child { font-weight: 650; color: var(--brand-ink); }
.qz-wrong-src { margin-left: auto; color: #8a5a00; white-space: nowrap; }
.qz-group[hidden], .qz-post[hidden], .qz-empty[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .qz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .qz-stats .stat:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .qz-hero h1 { font-size: 23px; }
  .qz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .qz-stats .stat:nth-child(3), .qz-stats .stat:nth-child(5) { border-left: 0; padding-left: 0; }
  .qz-tools { padding: 12px; }
  .qz-search { flex-direction: column; align-items: stretch; gap: 8px; }
  .qz-fbtn { padding: 0 9px; font-size: 12.5px; }
  .qz-grid { grid-template-columns: 1fr; }
  .qz-post { padding: 14px; }
  .qz-core { flex-direction: column; align-items: stretch; }
  .qz-core .btn { margin-left: 0; }
  .qz-brief-secs { grid-template-columns: 1fr; }
  .qz-group, .qz-post, .qz-qsec { scroll-margin-top: 116px; }
  .score { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .score .big { font-size: 34px; }
  .qz-actions { margin-left: 0; justify-content: flex-start; }
  .qz-wrong-grid { grid-template-columns: 1fr; }
  .quiz-bar { gap: 8px; padding: 9px 11px; }
}

/* ==========================================================================
   工作台 / 提效案例 · 按真实岗位（6 组 24 岗）区块
   与 org / qz 岗位卡片同一套视觉语言：浅色卡片、固定标签列、清晰分区
   ========================================================================== */
.wbo-intro, .cso-intro { padding: 14px 18px !important; }
.wbo-intro a, .cso-intro a {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wbo-intro a:hover, .cso-intro a:hover { color: var(--brand); }

.wbo-tools, .cso-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 22px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}
.wbo-filters, .cso-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.wbo-fbtn, .cso-fbtn {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink2);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.wbo-fbtn b, .cso-fbtn b { font-weight: 600; color: var(--ink3); margin-left: 3px; }
.wbo-fbtn:hover, .cso-fbtn:hover { border-color: var(--brand); color: var(--brand-ink); }
.wbo-fbtn.is-on, .cso-fbtn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.wbo-fbtn.is-on b, .cso-fbtn.is-on b { color: #dbe6ff; }
.wbo-search, .cso-search { display: flex; align-items: center; gap: 12px; }
.wbo-search input, .cso-search input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--bg);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.wbo-search input:focus, .cso-search input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.wbo-count, .cso-count { flex: none; font-size: 12.5px; color: var(--ink3); }
.wbo-empty, .cso-empty { padding: 16px 18px; font-size: 13.5px; color: var(--ink3); margin-bottom: 20px; }

.wbo-group, .cso-group { margin-bottom: 30px; scroll-margin-top: 78px; }
.wbo-group-head, .cso-group-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.wbo-group-no, .cso-group-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.wbo-group-head h2, .cso-group-head h2 { font-size: 19px; }
.wbo-group-head p, .cso-group-head p { margin: 1px 0 0; font-size: 12.5px; }

.wbo-grid, .cso-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wbo-post, .cso-post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px;
  scroll-margin-top: 88px;
}
.wbo-head, .cso-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.wbo-idx, .cso-idx {
  flex: none;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--ink3);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}
.wbo-t, .cso-t { flex: 1; min-width: 0; }
.wbo-t h3, .cso-t h3 { font-size: 16px; }
.wbo-t p, .cso-t p { margin: 2px 0 0; }
.wbo-head .chip, .cso-head .chip { margin-top: 2px; }

/* 工作台方案：主 / 辅模块、场景、三段分区 */
.wbo-mods { display: grid; gap: 6px; padding: 9px 12px; background: var(--bg-soft); border-radius: 9px; }
.wbo-mod-row { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 13px; }
.wbo-lb { flex: none; width: 62px; padding-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink3); }
.wbo-main-link { color: var(--brand-ink); font-weight: 650; }
.wbo-main-link:hover { text-decoration: underline; }
.wbo-aux { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.wbo-aux .chip { cursor: pointer; }
.wbo-aux .chip:hover { border-color: var(--brand); color: var(--brand-ink); }

.wbo-scene, .wbo-notes, .wbo-bound, .wbo-skip { display: flex; align-items: flex-start; gap: 10px; }
.wbo-scene { margin-top: 12px; }
.wbo-scene p, .wbo-notes p, .wbo-bound p, .wbo-skip p {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink2);
}
.wbo-secs { display: grid; gap: 10px; margin-top: 13px; }
.wbo-sec { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.wbo-sec-t {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink2);
}
.wbo-sec-t span { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--ink3); }
.wbo-flow, .wbo-modlist, .wbo-tabs { display: grid; gap: 6px; padding: 9px 11px; }
.wbo-flow { counter-reset: wbf; }
.wbo-flow li {
  counter-increment: wbf;
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink2);
}
.wbo-flow li::before {
  content: counter(wbf);
  flex: none;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
}
.wbo-modlist li, .wbo-tabs li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.65;
  align-items: start;
}
.wbo-modlist b, .wbo-tabs b { font-weight: 650; color: var(--ink); }
.wbo-modlist span, .wbo-tabs span { min-width: 0; color: var(--ink2); overflow-wrap: anywhere; }
.wbo-tabs b { color: var(--brand-ink); font-family: var(--mono); font-size: 12px; }

.wbo-notes, .wbo-bound, .wbo-skip { margin-top: 10px; padding: 9px 11px; border-radius: 8px; }
.wbo-notes { background: var(--brand-soft); }
.wbo-bound { background: #fdf6ee; border-left: 3px solid var(--warn); }
.wbo-bound .wbo-lb { color: var(--warn); }
.wbo-skip { background: var(--bg-soft); }

/* 提效案例：案例名 + 标签正文分列的七行结构 */
.cso-name {
  margin: 0 0 11px;
  padding: 8px 11px;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: var(--brand-soft);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.6;
  color: var(--brand-ink);
}
.cso-kvs { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.cso-kv {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
}
.cso-kv:last-child { border-bottom: 0; }
.cso-kv:nth-child(odd) { background: #fafbfe; }
.cso-kv-k { padding-top: 1px; font-size: 12.5px; font-weight: 650; color: var(--ink3); }
.cso-kv-v { min-width: 0; color: var(--ink2); overflow-wrap: anywhere; }
.cso-kv:nth-child(3) .cso-kv-v { color: var(--ink); }
.cso-kv:last-child .cso-kv-k { color: var(--warn); }

.wbo-foot, .cso-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.wbo-foot .btn, .cso-foot .btn { flex: 1 1 auto; }
.wbo-xlinks { margin-top: 9px; font-size: 12px; color: var(--ink3); }
.wbo-xlinks a { color: var(--brand-ink); font-weight: 600; }
.wbo-xlinks a:hover { text-decoration: underline; }

.wbo-post[hidden], .cso-post[hidden], .wbo-group[hidden], .cso-group[hidden],
.wbo-empty[hidden], .cso-empty[hidden] { display: none !important; }

@media (max-width: 900px) {
  .wbo-grid, .cso-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wbo-tools, .cso-tools { padding: 12px; }
  .wbo-search, .cso-search { flex-direction: column; align-items: stretch; gap: 8px; }
  .wbo-fbtn, .cso-fbtn { padding: 0 9px; font-size: 12.5px; }
  .wbo-post, .cso-post { padding: 14px; }
  .wbo-lb { width: 54px; }
  .wbo-modlist li, .wbo-tabs li { grid-template-columns: 1fr; gap: 2px; }
  .cso-kv { grid-template-columns: 1fr; gap: 2px; }
  .wbo-group, .cso-group, .wbo-post, .cso-post { scroll-margin-top: 116px; }
  .org-qfoot { gap: 8px; }
}

/* ==========================================================================
   学习视频 · 本地课程库（videos.html）
   ========================================================================== */
.vc-tabs { display: flex; gap: 6px; margin: 20px 0 16px; border-bottom: 1px solid var(--line); }
.vc-tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 10px 16px 12px; margin-bottom: -1px;
  font: 600 14px var(--sans); color: var(--ink3);
  border-bottom: 2px solid transparent;
}
.vc-tab b {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 10px; background: var(--bg-soft);
  font: 600 11.5px var(--sans); color: var(--ink3);
}
.vc-tab:hover { color: var(--brand-ink); }
.vc-tab.on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.vc-tab.on b { background: var(--brand-soft); color: var(--brand-ink); }
#vcPaneLib[hidden], #vcPaneOld[hidden] { display: none !important; }

.vc-intro { padding: 14px 16px; margin-bottom: 16px; }
.vc-path-t { font-size: 13.5px; font-weight: 650; margin: 0 0 10px; }
.vc-path-t span { font-weight: 400; color: var(--ink3); font-size: 12.5px; margin-left: 8px; }
.vc-stages {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.vc-stage {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  min-height: 142px; padding: 12px 13px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-1);
  font-family: var(--sans); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vc-stage:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-1px); }
.vc-stage.extra { background: #fafbfd; }
.vc-stage-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.vc-stage.extra .vc-stage-no { background: var(--bg-soft); color: var(--ink3); }
.vc-stage b { font-size: 14.5px; color: var(--ink); }
.vc-stage-name { font-size: 12px; color: var(--brand-ink); font-weight: 600; }
.vc-stage-tip { font-size: 11.8px; color: var(--ink3); line-height: 1.5; }
.vc-stage-meta { margin-top: auto; font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }

.vc-tools {
  padding: 13px 15px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
}
.vc-tools .filter-bar { position: static; }
.vc-filters { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.vc-frow { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 6px 0; }
.vc-lb { flex: none; width: 44px; font-size: 12.5px; color: var(--ink3); }
.vc-fbtn {
  height: 28px; padding: 0 10px; cursor: pointer;
  border: 1px solid var(--line2); border-radius: 7px; background: #fff;
  font: 500 12.5px var(--sans); color: var(--ink2);
}
.vc-fbtn:hover { border-color: var(--brand); color: var(--brand-ink); }
.vc-fbtn.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; }
#vcTopic, #vcSort { width: auto; min-width: 158px; height: 30px; padding: 0 9px; font-size: 12.5px; }
.vc-status {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.vc-count { font-size: 12.5px; font-weight: 650; color: var(--ink2); }
.vc-progress { display: flex; align-items: center; gap: 10px; }
.vc-progress-t { font-size: 12px; color: var(--ink3); }
.vc-progress-t b { color: var(--brand-ink); }
.vc-progress-track { display: block; width: 140px; height: 6px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.vc-progress-track i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 6px; transition: width .2s; }

.vc-group {
  margin-bottom: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  scroll-margin-top: 116px;
}
.vc-group[hidden], .vc-card[hidden], .vc-empty[hidden] { display: none !important; }
.vc-group-sum {
  display: grid; grid-template-columns: 32px minmax(140px, 210px) 1fr auto;
  align-items: center; gap: 12px; padding: 12px 15px;
  cursor: pointer; list-style: none; background: #fbfcfe;
}
.vc-group-sum::-webkit-details-marker { display: none; }
.vc-group[open] > .vc-group-sum { border-bottom: 1px solid var(--line); }
.vc-group-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.vc-group[data-track="extra"] .vc-group-no { background: var(--bg-soft); color: var(--ink3); }
.vc-group-t b { display: block; font-size: 15px; }
.vc-group-t small { display: block; font-size: 11.5px; color: var(--ink3); margin-top: 1px; }
.vc-group-goal { font-size: 12.5px; color: var(--ink3); line-height: 1.5; }
.vc-group-num { font-size: 12.5px; color: var(--brand-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vc-group-num em { font-style: normal; color: var(--warn); }
.vc-group-desc {
  margin: 0; padding: 10px 15px; font-size: 12.5px; color: var(--ink3);
  line-height: 1.65; border-bottom: 1px solid var(--line);
}
.vc-list { display: grid; gap: 10px; padding: 12px; }

.vc-card {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px;
  padding: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
  scroll-margin-top: 140px;
}
.vc-card.is-done { background: #f7fbf8; border-color: #cfe9dc; }
.vc-cover {
  position: relative; width: 168px; aspect-ratio: 16 / 9;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #dbe5fb 0%, #b9cdf6 100%);
}
.vc-head h3[title], .vc-sum[title] { cursor: help; }
.vc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vc-cover-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: #2b4b8f; gap: 2px;
}
.vc-cover-ph b { font-size: 26px; font-weight: 700; letter-spacing: -.04em; }
.vc-cover-ph small { font-size: 10.5px; opacity: .8; }
.vc-cover-n {
  position: absolute; top: 6px; left: 6px; padding: 2px 6px;
  border-radius: 5px; background: rgba(14, 22, 32, .72); color: #fff;
  font-size: 11px; font-variant-numeric: tabular-nums;
}
.vc-body { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.vc-head { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.vc-head .chip { flex: none; margin-top: 1px; }
.vc-head h3 {
  flex: 1 1 320px; min-width: 0; margin: 0;
  font-size: 14.5px; line-height: 1.45; font-weight: 650;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.vc-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink3); }
.vc-meta i { font-style: normal; color: var(--line2); }
.vc-sum {
  margin: 0; font-size: 12.5px; color: var(--ink2); line-height: 1.6;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.vc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.vc-tags .chip { height: 20px; font-size: 11.5px; }
.vc-posts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.vc-posts .vc-lb { width: auto; }
.vc-posts .chip { height: 22px; font-size: 11.5px; text-decoration: none; }
.vc-posts-more { font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
.vc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 8px; }
.vc-player { margin-top: 4px; }
.vc-player video { max-height: 420px; }
.vc-empty { padding: 26px; text-align: center; color: var(--ink3); font-size: 13px; }
.vc-foot { margin-top: 14px; padding: 16px 18px; }

@media (max-width: 1100px) {
  .vc-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vc-group-sum { grid-template-columns: 32px minmax(130px, 180px) 1fr auto; gap: 9px; }
}
@media (max-width: 860px) {
  .vc-card { grid-template-columns: 132px minmax(0, 1fr); gap: 11px; }
  .vc-cover { width: 132px; }
  .vc-group-goal { display: none; }
  .vc-group-sum { grid-template-columns: 32px 1fr auto; }
}
@media (max-width: 640px) {
  .vc-tab { flex: 1; padding: 10px 8px; font-size: 13px; }
  .vc-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vc-stage { min-height: 132px; padding: 10px; }
  .vc-tools { padding: 11px; }
  .vc-tools .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .vc-lb { width: auto; margin-right: 2px; }
  .vc-fbtn { padding: 0 8px; font-size: 12px; }
  #vcTopic, #vcSort { min-width: 0; width: 100%; }
  .vc-frow:last-child { flex-direction: column; align-items: stretch; }
  .vc-status { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vc-progress-track { width: 180px; }
  .vc-card { grid-template-columns: 1fr; padding: 11px; }
  .vc-cover { width: 100%; }
  .vc-head .chip { order: -1; }
  .vc-group-sum { grid-template-columns: 28px 1fr; gap: 8px; }
  .vc-group-num { grid-column: 2; white-space: normal; }
  .vc-group, .vc-card { scroll-margin-top: 128px; }
}

/* ---------- 版权声明（全站页脚 + 第三方内容集中页顶部） ---------- */
.cp-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff8e8; border: 1px solid #f0d9a8; border-left: 3px solid var(--warn);
  border-radius: var(--r-sm); padding: 11px 14px; margin: 0 0 16px;
  font-size: 13px; line-height: 1.8; color: var(--ink2);
}
.cp-banner b { color: var(--ink); }
.cp-banner .cp-ico {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px;
  border-radius: 50%; background: var(--warn); color: #fff;
  text-align: center; line-height: 18px; font-size: 12px; font-weight: 700;
}
.cp-banner .cp-key, .cp-foot .cp-key { color: var(--danger); }
.cp-foot {
  border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px;
  font-size: 12px; line-height: 1.8; color: var(--ink3);
}
.cp-foot b { color: var(--ink2); }

/* 「仅原网页链接」版本：封面占位改为链接标识，按钮组不出现播放按钮 */
.vc-cover-ph small { display: block; font-size: 11px; opacity: .78; margin-top: 2px; }
.vc-link-tag { color: var(--brand-ink); font-size: 11.5px; }
@media (max-width: 640px) {
  .cp-banner { padding: 10px 12px; font-size: 12.5px; gap: 8px; }
  .cp-foot { font-size: 11.5px; }
}

/* ---------- 仅原网页链接版：收紧无封面时的占位区 ---------- */
.vc-card.is-links { grid-template-columns: 132px minmax(0, 1fr); }
.vc-card.is-links .vc-cover {
  width: 132px; aspect-ratio: auto; align-self: start; min-height: 84px;
}
.vc-card.is-links .vc-cover-ph { gap: 4px; }
.vc-card.is-links .vc-cover-ph b { font-size: 22px; }
@media (max-width: 640px) {
  .vc-card.is-links { grid-template-columns: 1fr; }
  .vc-card.is-links .vc-cover { width: 100%; height: 54px; min-height: 0; }
  .vc-card.is-links .vc-cover-ph {
    flex-direction: row; justify-content: flex-start; gap: 10px; padding: 0 12px;
  }
  .vc-card.is-links .vc-cover-ph b { font-size: 17px; }
  .vc-card.is-links .vc-cover-ph small { font-size: 11.5px; margin: 0; }
  .vc-card.is-links .vc-cover-n { display: none; }
}
