/* ==========================================================================
   清威智能 · AI Native 办公力系列 —— 工作坊落地页样式
   主题通过 body 上的 theme-* 类切换
   ========================================================================== */

:root {
  --ink: #111827;
  --ink-2: #39404d;
  --ink-3: #6b7280;
  --ink-4: #9aa1ab;
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --bg-3: #eef0f4;
  --line: #e6e9ee;

  /* 默认主题（法律） */
  --brand: #8b1a1a;
  --brand-2: #a8261f;
  --brand-soft: #f8f1f1;
  --brand-line: #e6d8d8;
  --hero-a: #161616;
  --hero-b: #8e2020;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .28);
  --maxw: 1160px;
}

body.theme-insurance {
  --brand: #d92a1c;
  --brand-2: #f04a38;
  --brand-soft: #fcefee;
  --brand-line: #f6d2cc;
  --hero-a: #c8102e;
  --hero-b: #f04a38;
}

body.theme-banking {
  --brand: #0f3d75;
  --brand-2: #1d5fa8;
  --brand-soft: #edf3fb;
  --brand-line: #c9daf0;
  --hero-a: #0a2a52;
  --hero-b: #1d5fa8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
b, strong { font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(16, 24, 40, .25); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px; flex: 0 0 auto; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand .brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-txt small { font-weight: 500; font-size: 11px; color: var(--ink-4); letter-spacing: 1.2px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2);
  transition: background .16s, color .16s; white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-links a.is-active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #fff; background: var(--ink); transition: transform .16s, opacity .16s;
  flex: 0 0 auto;
}
.nav-cta:hover { transform: translateY(-1px); opacity: .92; }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 17px; height: 1.6px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  white-space: nowrap; line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.btn-primary:hover { background: var(--brand-2); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-4); background: #fff; }
.btn-onDark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .34); }
.btn-onDark:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------------- 首页 Hero ---------------- */
.hero-home {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #0a0c0f 0%, #14171c 46%, #1b1618 100%);
  padding: 76px 0 84px;
}
.hero-home::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 420px at 82% 18%, rgba(200, 60, 48, .22), transparent 68%),
    radial-gradient(560px 380px at 12% 88%, rgba(29, 95, 168, .20), transparent 70%),
    radial-gradient(420px 300px at 52% 0%, rgba(168, 38, 31, .16), transparent 70%);
}
.hero-home::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 78%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px; letter-spacing: 1.6px;
  border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .88);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #e2564a; box-shadow: 0 0 0 4px rgba(226, 86, 74, .18); }
.hero-home h1 {
  font-size: clamp(29px, 3.6vw, 43px); line-height: 1.34; letter-spacing: .5px;
  margin: 22px 0 20px; font-weight: 700;
}
.hero-home h1 .grad {
  background: linear-gradient(96deg, #f0735f 0%, #d8453a 42%, #6ea8e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 761px) {
  .hero-home h1 .grad { white-space: nowrap; }
}
.hero-home .lead {
  font-size: 17px; line-height: 1.9; color: rgba(255, 255, 255, .76); max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 38px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 21px; letter-spacing: .5px; }
.hero-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .55); letter-spacing: 1px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img {
  width: 100%; max-width: 380px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------------- 通用区块 ---------------- */
.section { padding: 86px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: block; font-size: 12.5px; letter-spacing: 2.4px; font-weight: 600;
  color: var(--brand); margin-bottom: 12px; text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 34px); line-height: 1.38; letter-spacing: .6px; font-weight: 700;
}
.section-head p { margin-top: 14px; color: var(--ink-3); font-size: 15.5px; line-height: 1.85; }

/* ---------------- 三个专场卡片 ---------------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 0 0 24px; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.course-card .stripe { height: 4px; background: var(--c, var(--brand)); }
.course-card .cc-top { padding: 24px 24px 0; display: flex; align-items: center; gap: 10px; }
.cc-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; font-size: 19px;
  background: var(--c-soft, var(--brand-soft));
}
.cc-label { font-size: 12px; letter-spacing: 1.6px; color: var(--ink-4); font-weight: 600; }
.course-card h3 { padding: 16px 24px 0; font-size: 19.5px; line-height: 1.55; letter-spacing: .4px; text-wrap: balance; }
.course-card .cc-sub { padding: 10px 24px 0; font-size: 14px; color: var(--ink-3); line-height: 1.8; }
.cc-tags { padding: 18px 24px 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.cc-tags span {
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  background: var(--c-soft, var(--brand-soft)); color: var(--c, var(--brand)); font-weight: 500;
}
.cc-link {
  margin: 20px 24px 0; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 600; color: var(--c, var(--brand));
}
.cc-link .arrow { transition: transform .2s; }
.course-card:hover .cc-link .arrow { transform: translateX(4px); }

.course-card.t-legal { --c: #8b1a1a; --c-soft: #f8f1f1; }
.course-card.t-insurance { --c: #d92a1c; --c-soft: #fcefee; }
.course-card.t-banking { --c: #0f3d75; --c-soft: #edf3fb; }

/* ---------------- 对比 / 方法论 ---------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.compare-col { padding: 30px 30px 26px; }
.compare-col.old { background: #fafbfc; color: var(--ink-3); border-right: 1px solid var(--line); }
.compare-col.new { background: #fff; }
.compare-col h3 { font-size: 13px; letter-spacing: 2px; font-weight: 700; margin-bottom: 18px; }
.compare-col.old h3 { color: var(--ink-4); }
.compare-col.new h3 { color: var(--brand); }
.compare-col li { position: relative; padding: 9px 0 9px 26px; font-size: 15px; line-height: 1.7; }
.compare-col.old li::before {
  content: "×"; position: absolute; left: 2px; top: 8px; font-size: 15px; font-weight: 700; color: #c4cad4;
}
.compare-col.new li::before {
  content: "✓"; position: absolute; left: 2px; top: 8px; font-size: 14px; font-weight: 700; color: var(--brand);
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 26px 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; right: 14px; top: 10px; font-size: 44px; font-weight: 800;
  color: var(--brand-soft); line-height: 1; letter-spacing: -2px;
}
.step h3 { position: relative; font-size: 16.5px; letter-spacing: .4px; margin-bottom: 10px; }
.step p { position: relative; font-size: 14px; color: var(--ink-3); line-height: 1.8; }

/* ---------------- 通用收益 ---------------- */
.gain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: border-color .2s, box-shadow .2s;
}
.gain:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.gain .gi { font-size: 22px; margin-bottom: 12px; }
.gain h3 { font-size: 15.5px; margin-bottom: 8px; letter-spacing: .3px; }
.gain p { font-size: 13.8px; color: var(--ink-3); line-height: 1.8; }

/* ---------------- 报名 / CTA ---------------- */
.cta {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #0d1014 0%, #1a1c22 55%, #241a1a 100%);
  padding: 54px 48px;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 300px at 88% 10%, rgba(200, 60, 48, .26), transparent 66%),
    radial-gradient(420px 280px at 4% 96%, rgba(29, 95, 168, .22), transparent 70%);
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.cta h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; letter-spacing: .5px; }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .72); font-size: 15px; max-width: 620px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-mail { font-size: 13px; color: rgba(255, 255, 255, .55); letter-spacing: .4px; text-align: center; }

/* ---------------- 页脚 ---------------- */
.footer { background: #101318; color: #c3c8d0; padding: 52px 0 34px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer .fbrand img { width: 34px; height: 34px; }
.footer .fbrand b { color: #fff; font-size: 15px; letter-spacing: .6px; }
.footer h4 { color: #fff; font-size: 12.5px; letter-spacing: 1.8px; margin-bottom: 14px; }
.footer a { color: #c3c8d0; transition: color .16s; }
.footer a:hover { color: #fff; }
.footer li { padding: 4px 0; }
.footer-note { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #767d88; font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   详情页
   ========================================================================== */
.hero-course {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 100%);
  padding: 54px 0 58px;
}
.hero-course::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 80% at 78% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 20%, #000, transparent 70%);
}
.hero-course .wrap { position: relative; z-index: 1; }
.crumbs { font-size: 13px; color: rgba(255, 255, 255, .68); margin-bottom: 22px; display: flex; align-items: center; gap: 8px; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .5; }
.hc-grid { display: grid; grid-template-columns: 1fr 190px; gap: 36px; align-items: center; }
.hc-tag {
  display: inline-block; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px;
  padding: 4px 15px; font-size: 12.5px; letter-spacing: 2px; margin-bottom: 18px;
  background: rgba(255, 255, 255, .08);
}
.hero-course h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.34; letter-spacing: 1px; margin-bottom: 16px; }
.hero-course .sub { font-size: clamp(15px, 1.5vw, 17px); color: rgba(255, 255, 255, .9); max-width: 620px; }
.hero-course .provider { margin-top: 8px; font-size: 12.5px; letter-spacing: 1px; color: rgba(255, 255, 255, .68); }
.hc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hc-meta span {
  background: rgba(255, 255, 255, .16); border-radius: 8px; padding: 6px 14px; font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.hc-art { display: flex; justify-content: center; }
.hc-art img { width: 100%; max-width: 190px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .38)); }

/* 详情页主体：正文 + 侧边目录 */
.course-body {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 208px minmax(0, 800px); gap: 58px;
  justify-content: center; align-items: start;
}
.toc { position: sticky; top: 84px; padding: 34px 0 40px; }
.toc h4 { font-size: 11.5px; letter-spacing: 2px; color: var(--ink-4); margin-bottom: 14px; font-weight: 700; }
.toc a {
  display: block; padding: 6px 0 6px 13px; font-size: 13.5px; color: var(--ink-3);
  border-left: 2px solid var(--line); transition: color .16s, border-color .16s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.toc a.toc-cta {
  display: block; margin-top: 24px; padding: 10px 14px; text-align: center;
  border-left: 0; border-radius: 999px; color: #fff; font-size: 13.5px; font-weight: 600;
  background: var(--brand); line-height: 1.4;
}
.toc a.toc-cta:hover { color: #fff; background: var(--brand-2); }

.article { padding: 40px 0 0; max-width: 800px; }
.article > section { padding: 0 0 44px; }
.article > section + section { border-top: 1px solid var(--line); padding-top: 44px; }
.article h2 {
  position: relative; font-size: 23px; line-height: 1.5; letter-spacing: .6px; font-weight: 700;
  padding-left: 15px; margin-bottom: 20px; color: var(--ink); scroll-margin-top: 90px;
}
.article h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  border-radius: 3px; background: var(--brand);
}
.article p { color: var(--ink-2); margin-bottom: 14px; text-align: justify; line-height: 1.95; }
.article p:last-child { margin-bottom: 0; }

.highlight {
  background: var(--brand-soft); border-left: 4px solid var(--brand);
  padding: 15px 18px; border-radius: 0 10px 10px 0; font-size: 15px;
  color: var(--ink-2); margin-top: 18px; line-height: 1.9;
}

/* 时间轴 */
.timeline { position: relative; margin-top: 6px; }
.timeline li {
  display: flex; gap: 0; align-items: flex-start; padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.timeline li:last-child { border-bottom: none; }
.timeline .t {
  flex: 0 0 118px; color: var(--brand); font-weight: 600; font-size: 14px; padding-top: 2px;
}
.timeline .d { flex: 1; font-size: 15.5px; line-height: 1.7; }
.timeline .d span { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 3px; line-height: 1.7; }

/* 模块卡 */
.module {
  border: 1px solid var(--brand-line); border-radius: var(--radius); background: #fff;
  padding: 24px 24px 20px; margin-bottom: 16px; transition: box-shadow .2s, border-color .2s;
}
.module:hover { box-shadow: var(--shadow-md); }
.module h3 { font-size: 17.5px; line-height: 1.6; margin-bottom: 12px; letter-spacing: .3px; }
.module h3 .en { display: block; font-size: 11.5px; color: var(--ink-4); font-weight: 500; letter-spacing: 1.4px; margin-top: 4px; }
.module ul li {
  position: relative; font-size: 14.8px; line-height: 1.85; padding: 5px 0 5px 18px; color: var(--ink-2);
}
.module ul li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand);
}
.module b { color: var(--ink); }
.module .note {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--brand-line);
  font-size: 13px; color: var(--ink-3);
}
.module .note::before { content: "→ "; color: var(--brand); font-weight: 700; }

/* 收获 */
.gains { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gains .g {
  background: var(--brand-soft); border-radius: 12px; padding: 18px 20px; font-size: 14.5px;
  line-height: 1.8; color: var(--ink-2);
}
.gains .g b { display: block; color: var(--brand); font-size: 15px; margin-bottom: 6px; letter-spacing: .3px; }

/* 适合谁 */
.prep li { position: relative; padding: 9px 0 9px 28px; font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.prep li::before {
  content: "✓"; position: absolute; left: 0; top: 9px; color: var(--brand); font-weight: 700; font-size: 14px;
}

.closing {
  display: flex; align-items: center; gap: 22px; background: var(--brand-soft);
  border-radius: var(--radius); padding: 22px 24px; margin-top: 22px;
}
.closing img { width: 94px; flex: 0 0 94px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .14)); }
.closing p { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; margin: 0; }
.closing b { color: var(--ink); }

/* 详情页底部报名条 */
.enroll-bar { background: var(--brand); color: #fff; padding: 30px 0; }
.enroll-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.enroll-bar h3 { font-size: 19px; letter-spacing: .5px; }
.enroll-bar p { font-size: 13.5px; color: rgba(255, 255, 255, .82); margin-top: 4px; }
.enroll-bar .btn { background: #fff; color: var(--brand); }
.enroll-bar .btn:hover { background: #fff; opacity: .92; }

/* 上一个 / 下一个专场 */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 0 72px; }
.pager a {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  transition: border-color .2s, transform .2s, box-shadow .2s; background: #fff;
}
.pager a:hover { border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pager .pl { font-size: 12px; letter-spacing: 1.6px; color: var(--ink-4); font-weight: 600; }
.pager .pt { font-size: 15.5px; font-weight: 600; margin-top: 6px; }
.pager a.next { text-align: right; }

/* ---------------- 滚动显现 ---------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art img { animation: none; }
  .btn:hover, .course-card:hover, .pager a:hover { transform: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1020px) {
  .course-body { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .article { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gain-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 220px; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .course-grid { grid-template-columns: 1fr; gap: 16px; }
  .hc-grid { grid-template-columns: 1fr; gap: 20px; }
  .hc-art { display: none; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 16px; right: 16px; top: 64px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 10px; box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-links a { padding: 11px 14px; font-size: 15px; }

  .section { padding: 62px 0; }
  .hero-home { padding: 52px 0 60px; }
  .hero-course { padding: 40px 0 44px; }
  .compare { grid-template-columns: 1fr; }
  .compare-col.old { border-right: none; border-bottom: 1px solid var(--line); }
  .gains { grid-template-columns: 1fr; }
  .gains .g { grid-template-columns: 1fr; }
  .timeline .t { flex: 0 0 96px; font-size: 13px; }
  .timeline .d { font-size: 14.5px; }
  .article h2 { font-size: 20px; }
  .closing { flex-direction: column; text-align: center; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { text-align: left; }
  .module { padding: 20px 18px 16px; }
  .article > section { padding-bottom: 34px; }
  .article > section + section { padding-top: 34px; }
  .enroll-bar .wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 520px) {
  .hero-home { padding: 40px 0 48px; }
  .hero-home h1 { font-size: 25px; line-height: 1.42; }
  .hero-home .lead { font-size: 14.5px; }
  .hero-art img { max-width: 168px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .hero-stats b { font-size: 19px; }
  .hero-stats span { font-size: 11.5px; }
  .steps { grid-template-columns: 1fr; }
  .gain-grid { grid-template-columns: 1fr; }
  .cta { padding: 34px 24px; }
  .eyebrow { letter-spacing: 1.8px; }
  .hero-course h1 { font-size: 24px; }
  .hero-course .sub { font-size: 14.5px; }
  .hc-meta span { font-size: 12.5px; padding: 5px 11px; }
  .timeline li { flex-direction: column; gap: 2px; padding: 11px 0; }
  .timeline .t { flex: none; }
  .timeline .d span { margin-top: 2px; }
}

@media print {
  .nav, .toc, .enroll-bar, .pager, .cta-actions, .lang { display: none !important; }
  .article > section { break-inside: avoid; }
  body { font-size: 12pt; }
}

/* ==========================================================================
   语言切换
   ========================================================================== */
.nav-inner .brand { margin-right: auto; }
.nav-links { margin-left: 0; }

.lang {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--bg-2); border-radius: 999px; flex: 0 0 auto; margin-left: 10px;
}
.lang button {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 12.5px; line-height: 1; padding: 6px 10px; border-radius: 999px;
  color: var(--ink-3); transition: background .16s, color .16s, box-shadow .16s;
  letter-spacing: 0;
}
.lang button:hover { color: var(--ink); }
.lang button.is-on {
  background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

/* ==========================================================================
   英文版排版微调（英文比中文长，字距与字号需要收紧）
   ========================================================================== */
html[lang="en"] body { font-size: 15.5px; line-height: 1.68; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3,
html[lang="en"] .pill, html[lang="en"] .hc-tag, html[lang="en"] .eyebrow,
html[lang="en"] .brand, html[lang="en"] .footer .fbrand b { letter-spacing: 0; }

html[lang="en"] .hero-home h1 { font-size: clamp(26px, 3.1vw, 39px); line-height: 1.22; }
html[lang="en"] .hero-home .lead { font-size: 15.5px; line-height: 1.75; }
html[lang="en"] .section-head h2 { font-size: clamp(21px, 2.5vw, 30px); line-height: 1.3; }
html[lang="en"] .section-head p { font-size: 14.5px; }
html[lang="en"] .course-card h3 { font-size: 17.5px; line-height: 1.45; }
html[lang="en"] .step h3 { font-size: 15px; }
html[lang="en"] .gain h3 { font-size: 14.5px; }
html[lang="en"] .cta h2 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.3; }
html[lang="en"] .hero-course h1 { font-size: clamp(23px, 2.8vw, 33px); line-height: 1.25; }
html[lang="en"] .article h2 { font-size: 20px; line-height: 1.4; }
html[lang="en"] .article p { text-align: left; line-height: 1.8; }
html[lang="en"] .module h3 { font-size: 16.5px; }
html[lang="en"] .module ul li { font-size: 14.2px; }
html[lang="en"] .timeline .t { flex: 0 0 138px; font-size: 13px; }
html[lang="en"] .timeline .d { font-size: 14.5px; }
html[lang="en"] .pill { font-size: 11.5px; }
html[lang="en"] .eyebrow { font-size: 11.5px; }
html[lang="en"] .btn { font-size: 14.5px; }
html[lang="en"] .h2sub, html[lang="en"] .lead { text-align: left; }
html[lang="en"] .hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px; max-width: 520px;
}
html[lang="en"] .hero-stats b { font-size: 20px; }
html[lang="en"] .hero-stats span { font-size: 12px; }

@media (max-width: 900px) {
  html[lang="en"] .hero-home h1 { font-size: clamp(25px, 4.5vw, 32px); }
}
@media (max-width: 760px) {
  .lang { margin-left: 0; }
}
@media (max-width: 520px) {
  html[lang="en"] .hero-home h1 { font-size: 24px; }
  html[lang="en"] .hero-course h1 { font-size: 22px; }
  .lang button { padding: 6px 8px; font-size: 12px; }
}

