/*
Theme Name: 爱思潘交易学堂（禅意×科技）
Theme URI: https://www.aisipan.com
Author: 爱思潘 / WorkBuddy
Author URI: https://www.aisipan.com
Description: 爱思潘交易学堂官方主题。基于 2022 版 VI 手册（金色体系）与 2026 年「禅意×科技」设计语言：宣纸白为底、墨黑为骨、品牌金三色为神，思源黑体为字。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aisipan
Tags: 教育, 交易, 中文, 自定义主题, 响应式
*/

/* ==========================================================================
   0. 字体（VI 自带思源黑体，已子集化为 WOFF2：3 字重共约 1.8MB）
   ========================================================================== */
@font-face {
  font-family: 'Source Han Sans CN';
  src: url('assets/fonts/SourceHanSansCN-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Han Sans CN';
  src: url('assets/fonts/SourceHanSansCN-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Han Sans CN';
  src: url('assets/fonts/SourceHanSansCN-Heavy.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ==========================================================================
   1. 设计系统（Design Tokens）
   ------------------------------------------------------------------------
   「禅意 × 科技」= 宣纸白（禅意留白）× 墨黑（沉静）× 品牌金三色（VI 标准）× 觉蓝（科技感）
   所有色值来源：
     · 2022 版 VI 手册标准色：亮金 #FFD700 / 沙金 #EBD679 / 焦糖金 #BD771A / 深黑 #2A2635
     · 2026 年训练器落地校准：品牌金 #d0a234（视觉验收值）/ 沙金 #d9bb62 / 焦糖金 #bd771a
     · 宣纸白 #F4F1EA / 墨黑 #0A0E15 / 砚灰 #101720 / 觉蓝 #7AA2F7
   ========================================================================== */
:root {
  /* ---- 底色：宣纸系（浅色为主，禅意留白） ---- */
  --paper: #F4F1EA;          /* 宣纸白：页面主底 */
  --paper-panel: #FDFBF6;    /* 宣纸面板：卡片 */
  --paper-soft: #EDE7DB;     /* 宣纸浮起：浅底块/输入框 */
  --paper-line: #E4DED1;     /* 暖灰细线 */
  --paper-line-strong: #D9D2C3;

  /* ---- 文字：墨色系 ---- */
  --ink: #1E1A14;            /* 浓墨：大标题 */
  --ink-body: #2B2721;       /* 暖墨：正文 */
  --ink-muted: #6B6558;      /* 次要文字 */
  --ink-faint: #8A8477;      /* 更次要/说明 */

  /* ---- 深色区段：墨黑系（Hero / CTA / 页脚） ---- */
  --deep: #0A0E15;           /* 墨黑：最深底 */
  --deep-panel: #101720;     /* 砚灰：深色卡片 */
  --deep-elevated: #1A2230;  /* 砚灰浮起 */
  --deep-line: #232B39;      /* 深色分隔线 */
  --deep-text: #E9E6DF;      /* 深底正文 */
  --deep-strong: #F4F1EA;    /* 深底强调 = 宣纸白 */
  --deep-muted: #9AA0AC;     /* 深底次要 */

  /* ---- 品牌金三色（VI 标准色） ---- */
  --gold: #d0a234;           /* 品牌金：主强调（浅底可用，对比度足够） */
  --gold-deep: #bd771a;      /* 焦糖金：深色强调 / hover */
  --gold-sand: #d9bb62;      /* 沙金：渐变中段 */
  --gold-bright: #FFD700;    /* 亮金：**仅深底使用**（浅底对比不足） */
  --gold-wash: rgba(208, 162, 52, 0.10);   /* 金色浅底块 */
  --gold-wash-strong: rgba(208, 162, 52, 0.18);
  --gold-line: rgba(208, 162, 52, 0.35);

  /* ---- 科技感：觉蓝（AI / 数据，避开涨跌语义） ---- */
  --tech: #7AA2F7;
  --tech-soft: rgba(122, 162, 247, 0.14);

  /* ---- 语义色（中国惯例：涨红跌绿；官网仅用于提示，不做行情展示） ---- */
  --up: #ef5350;
  --down: #26a69a;
  --warn: #d29922;

  /* ---- 字体 ---- */
  --font: 'Source Han Sans CN', system-ui, -apple-system, 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-mono: 'Cascadia Mono', Consolas, 'Courier New', monospace;

  /* ---- 字号（中文阅读优化） ---- */
  --fs-hero: clamp(32px, 4.4vw, 56px);   /* Hero 主标题 */
  --fs-h1: clamp(28px, 3.4vw, 42px);
  --fs-h2: clamp(23px, 2.6vw, 32px);
  --fs-h3: clamp(18px, 1.9vw, 22px);
  --fs-lead: clamp(16px, 1.5vw, 19px);   /* 导语 */
  --fs-body: 16.5px;                     /* 正文（中文 16.5 起较舒适） */
  --fs-sm: 14.5px;
  --fs-xs: 13px;

  /* ---- 行高 ---- */
  --lh-tight: 1.28;   /* 大标题 */
  --lh-body: 1.85;    /* 中文正文 */
  --lh-relax: 2.0;

  /* ---- 间距 ---- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 48px; --sp-10: 56px;
  --sp-11: 72px; --sp-12: 88px; --sp-13: 104px;

  /* ---- 圆角（宣纸感：克制、不夸张） ---- */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;

  /* ---- 阴影（浅底用暖墨淡影；深底用金色微光） ---- */
  --sh-sm: 0 1px 2px rgba(30, 26, 20, 0.06);
  --sh-md: 0 4px 14px rgba(30, 26, 20, 0.08);
  --sh-lg: 0 12px 32px rgba(30, 26, 20, 0.10);
  --sh-gold: 0 0 0 1px var(--gold-line), 0 8px 24px rgba(189, 119, 26, 0.14);

  /* ---- 布局 ---- */
  --wrap: 1180px;        /* 内容最大宽度 */
  --wrap-narrow: 820px;  /* 文章阅读宽度 */
  --header-h: 72px;      /* 导航高度（固定导航用） */

  /* ---- 过渡 ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.16s var(--ease);
  --t: 0.28s var(--ease);
}

/* ==========================================================================
   2. 基础重置与排版
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);   /* 锚点跳转不被固定导航遮挡 */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  color: var(--ink);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 17px; }

p { margin: 0 0 var(--sp-5); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold-deep);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--gold); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--sp-5); padding-left: 1.35em; }
li { margin-bottom: var(--sp-2); }

blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper-panel);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-body);
}
blockquote p:last-child { margin-bottom: 0; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
code {
  background: var(--paper-soft);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  color: var(--gold-deep);
}
pre {
  background: var(--deep);
  color: var(--deep-text);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  overflow-x: auto;
  line-height: 1.7;
}
pre code { background: none; padding: 0; color: inherit; }

hr {
  border: 0;
  height: 1px;
  background: var(--paper-line);
  margin: var(--sp-8) 0;
}

/* 选中文字：品牌金浅底 */
::selection { background: rgba(208, 162, 52, 0.28); color: var(--ink); }

/* 焦点可见性（可访问性） */
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ==========================================================================
   3. 布局工具类
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--wide { max-width: 1360px; }

.section { padding: var(--sp-12) 0; }
.section--tight { padding: var(--sp-10) 0; }
.section--deep { background: var(--deep); color: var(--deep-text); }
.section--paper-soft { background: var(--paper-soft); }

.section-head { margin-bottom: var(--sp-9); max-width: min(760px, 100%); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
}
.section--deep .section-head .eyebrow { color: var(--gold-bright); }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head .lead {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  line-height: var(--lh-relax);
  margin: 0;
}
.section--deep .section-head .lead { color: var(--deep-muted); }

/* 屏幕阅读器专用 */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* 金色分隔纹（辅助图形 1px 化） */
.gold-rule {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
  border-radius: 2px;
  margin-bottom: var(--sp-5);
}
.section-head--center .gold-rule { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   4. 按钮系统（三档：主 / 次 / 幽灵）
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* 主按钮：深墨底 + 金描边感（VI 克制版） */
.btn--primary {
  background: var(--deep);
  color: var(--deep-strong);
  border-color: var(--deep);
}
.btn--primary:hover {
  background: #141A24;
  color: var(--gold-bright);
  border-color: var(--gold-deep);
  box-shadow: 0 8px 22px rgba(10, 14, 21, 0.22);
}

/* 金按钮：品牌金实底（转化 CTA） */
.btn--gold {
  background: linear-gradient(135deg, var(--gold-sand), var(--gold-deep));
  color: #2B1D06;
  border-color: var(--gold-deep);
  box-shadow: 0 6px 18px rgba(189, 119, 26, 0.26);
}
.btn--gold:hover {
  color: #1E1404;
  box-shadow: 0 10px 26px rgba(189, 119, 26, 0.36);
}

/* 次按钮：宣纸底 + 墨线 */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-line-strong);
}
.btn--ghost:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: var(--gold-wash);
}

/* 深色区段内的次按钮 */
.section--deep .btn--ghost,
.hero .btn--ghost,
.cta .btn--ghost {
  color: var(--deep-strong);
  border-color: rgba(233, 230, 223, 0.28);
}
.section--deep .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta .btn--ghost:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(255, 215, 0, 0.08);
}

.btn--lg { padding: 16px 40px; font-size: 17px; }
.btn--sm { padding: 9px 18px; font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   5. 站点头部与导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-scrolled {
  border-bottom-color: var(--paper-line);
  background: rgba(244, 241, 234, 0.96);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

/* 品牌区 */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.brand__logo { width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name {
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.brand__sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

/* 主导航 */
.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0; padding: 0;
}
.nav li { margin: 0; }
.nav a {
  display: block;
  padding: 10px 11px;
  border-radius: var(--r-sm);
  color: var(--ink-body);
  font-size: 14.5px;
  font-weight: 400;
  white-space: nowrap;   /* 导航项多了之后不能换行，否则「课程体系」会被折成两行 */
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: var(--ink); background: var(--gold-wash); }
/* 当前页：底部 2px 品牌金粗线（禅意「一线」） */
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after,
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 11px; right: 11px; bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-sand), var(--gold-deep));
  border-radius: 2px;
}

/* 中等宽度（平板横屏 / 小笔记本）下进一步收紧，给登录按钮留位置 */
@media (max-width: 1200px) and (min-width: 861px) {
  .nav ul { gap: 0; }
  .nav a { padding: 10px 8px; font-size: 13.5px; }
  .header-actions .btn { padding: 8px 12px; font-size: 13px; }
}

.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: background var(--t-fast);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   6. 主内容区与页脚
   ========================================================================== */
.site-main { min-height: 60vh; }

.site-footer {
  background: var(--deep);
  color: var(--deep-muted);
  padding: var(--sp-11) 0 var(--sp-7);
  font-size: var(--fs-sm);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--deep-line);
}
.footer-brand .brand__name { color: var(--deep-strong); }
.footer-brand .brand__logo { width: 46px; height: 46px; }
.footer-brand p {
  margin-top: var(--sp-4);
  line-height: var(--lh-relax);
  color: var(--deep-muted);
  max-width: min(30ch, 100%);
}
.footer-slogan {
  margin-top: var(--sp-4);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-bright);
}
.footer-col h4 {
  color: var(--deep-strong);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--sp-4);
  letter-spacing: 0.04em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--sp-3); }
.footer-col a { color: var(--deep-muted); }
.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  line-height: 1.9;
}
.footer-bottom a { color: var(--deep-muted); }
.footer-bottom a:hover { color: var(--gold-bright); }
.footer-disclaimer {
  width: 100%;
  color: #6E7686;
  border-top: 1px solid var(--deep-line);
  padding-top: var(--sp-5);
  margin-top: var(--sp-2);
  line-height: 1.9;
}

/* ==========================================================================
   7. 卡片与常用组件
   ========================================================================== */
.card {
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card--hover:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: var(--sh-lg);
}
.card--deep {
  background: var(--deep-panel);
  border-color: var(--deep-line);
  color: var(--deep-text);
}
.card--deep h3, .card--deep h4 { color: var(--deep-strong); }
.card__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--gold-wash);
  color: var(--gold-deep);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 24px; height: 24px; }

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-xs);
  background: var(--gold-wash);
  color: var(--gold-deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.section--deep .tag { background: rgba(255, 215, 0, 0.12); color: var(--gold-bright); }

/* 表单 */
.field { margin-bottom: var(--sp-5); }
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper-panel);
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-wash);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.75; }

/* 文章列表 */
.post-list { display: grid; gap: var(--sp-6); }
.post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-6);
  align-items: start;
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color var(--t), box-shadow var(--t);
}
.post-card:hover { border-color: var(--gold-line); box-shadow: var(--sh-md); }
.post-card__cover {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--paper-soft), var(--gold-wash));
  overflow: hidden;
}
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
/* 占位封面（未设特色图时）的装饰曲线左右交替 + 深浅交替，避免多篇并排时视觉重复 */
.post-card:nth-child(even) .post-card__cover svg { transform: scaleX(-1); }
.post-card:nth-child(3n) .post-card__cover svg { filter: brightness(1.12); }
.post-mini:nth-child(even) .post-mini__cover svg { transform: scaleX(-1); }
.post-mini:nth-child(3n) .post-mini__cover svg { filter: brightness(1.12); }
.post-card__meta {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-bottom: var(--sp-2);
}
.post-card__title { font-size: 20px; margin-bottom: var(--sp-2); }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--gold-deep); }
.post-card__excerpt { color: var(--ink-muted); font-size: 15px; margin: 0; }

/* 文章正文 */
.entry { max-width: var(--wrap-narrow); margin: 0 auto; }
.entry__head { text-align: center; margin-bottom: var(--sp-8); }
.entry__title { font-size: var(--fs-h1); }
.entry__meta { color: var(--ink-faint); font-size: var(--fs-sm); }
.entry__body { font-size: 17px; line-height: var(--lh-relax); max-width: 760px; margin: 0 auto; }
.entry__body h2 { margin: var(--sp-9) 0 var(--sp-4); }
.entry__body h3 { margin: var(--sp-7) 0 var(--sp-3); }
.entry__body img { border-radius: var(--r-md); margin: var(--sp-6) auto; }
.entry__body ul, .entry__body ol { padding-left: 1.5em; }

/* ==========================================================================
   9. 面包屑
   ========================================================================== */
.breadcrumb {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--paper-line);
  font-size: var(--fs-xs);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 11px 0;
  color: var(--ink-faint);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li + li::before { content: '/'; color: var(--paper-line-strong); }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ==========================================================================
   10. 提示块 / 内联 CTA（短代码用）
   ========================================================================== */
.note {
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-body);
  font-size: 15.5px;
  line-height: var(--lh-relax);
  margin: var(--sp-6) 0;
}
.note--warn {
  background: rgba(210, 153, 34, 0.08);
  border-left-color: var(--warn);
}
.note p:last-child { margin-bottom: 0; }

.cta-inline {
  margin: var(--sp-8) 0;
  padding: var(--sp-8);
  background: var(--deep);
  color: var(--deep-text);
  border-radius: var(--r-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inline h3 { color: var(--deep-strong); margin-bottom: var(--sp-3); }
.cta-inline p { color: var(--deep-muted); max-width: min(52ch, 100%); margin: 0 auto var(--sp-6); }
.cta-inline__actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   11. 首页：Hero（墨黑 + 金色上升曲线）
   ========================================================================== */
.hero {
  position: relative;
  background: var(--deep);
  color: var(--deep-text);
  padding: var(--sp-13) 0 var(--sp-12);
  overflow: hidden;
}
/* 装饰：金色上升曲线（VI 辅助图形）+ 细网格 + 柔光 */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 230, 223, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 230, 223, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 30%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 30%, #000 35%, transparent 75%);
}
.hero__glow {
  position: absolute;
  width: 720px; height: 720px;
  right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(208, 162, 52, 0.20), transparent 62%);
  filter: blur(6px);
}
.hero__arc {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: auto;
  opacity: 0.85;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: var(--sp-10);
  align-items: center;
}
/* Grid 子项默认 min-width:auto 会被内容撑破容器（移动端文字溢出的根因），必须归零 */
.hero__inner > *,
.software__grid > *,
.grid > * { min-width: 0; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border: 1px solid rgba(255, 215, 0, 0.32);
  border-radius: var(--r-pill);
  background: rgba(255, 215, 0, 0.07);
  color: var(--gold-bright);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-6);
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--deep-strong);
  margin-bottom: var(--sp-6);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-sand), var(--gold-bright) 45%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relax);
  color: #B9C0CC;
  max-width: min(46ch, 100%);
  margin-bottom: var(--sp-8);
}
.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-7);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--deep-muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { width: 15px; height: 15px; color: var(--gold-bright); flex-shrink: 0; }

/* Hero 右侧：软件界面意象（纯 SVG，无需截图素材） */
.hero__visual { position: relative; }
.hero__mock {
  border-radius: var(--r-lg);
  border: 1px solid rgba(233, 230, 223, 0.14);
  background: linear-gradient(160deg, #121A26, #0C111A);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.hero__mock svg { width: 100%; height: auto; display: block; }

/* 数据条（Hero 下方紧接） */
.stats {
  background: var(--deep-panel);
  border-top: 1px solid var(--deep-line);
  padding: var(--sp-8) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6);
  text-align: center;
}
.stat__num {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--deep-muted);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   12. 首页：痛点共鸣（宣纸底）
   ========================================================================== */
.pain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.pain {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  border-left: 3px solid var(--paper-line-strong);
  transition: border-left-color var(--t), box-shadow var(--t);
}
.pain:hover { border-left-color: var(--gold); box-shadow: var(--sh-md); }
.pain__mark {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-wash);
  color: var(--gold-deep);
  font-weight: 900;
  font-size: 14px;
}
.pain h3 { font-size: 17px; margin-bottom: var(--sp-2); }
.pain p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* 一句话点题 */
.punch {
  margin-top: var(--sp-8);
  padding: var(--sp-7);
  text-align: center;
  background: linear-gradient(180deg, var(--paper-panel), var(--paper-soft));
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
}
.punch p {
  font-size: var(--fs-h3);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
}
.punch p em {
  font-style: normal;
  color: var(--gold-deep);
  border-bottom: 2px solid var(--gold-line);
}

/* ==========================================================================
   13. 首页：价值主张三卡
   ========================================================================== */
.value-card { display: flex; flex-direction: column; height: 100%; }
.value-card__no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: var(--sp-4);
}
.value-card h3 { font-size: 20px; }
.value-card p { color: var(--ink-muted); font-size: 15.5px; }
.value-card__list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.value-card__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: var(--sp-2);
  font-size: 15px;
  color: var(--ink-body);
}
.value-card__list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.62em;
  width: 10px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ==========================================================================
   14. 首页：软件模块（深色区）
   ========================================================================== */
.software { position: relative; overflow: hidden; }
.software__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--sp-10);
  align-items: center;
}
.software__feats { display: grid; gap: var(--sp-5); margin: var(--sp-7) 0 var(--sp-8); }
.feat { display: flex; gap: var(--sp-4); }
.feat__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255, 215, 0, 0.10);
  border: 1px solid rgba(255, 215, 0, 0.22);
  color: var(--gold-bright);
}
.feat__icon svg { width: 20px; height: 20px; }
.feat h4 { color: var(--deep-strong); font-size: 16.5px; margin-bottom: 4px; }
.feat p { color: var(--deep-muted); font-size: 15px; margin: 0; line-height: 1.8; }

.software__screen {
  border-radius: var(--r-lg);
  border: 1px solid var(--deep-line);
  background: #0C111A;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.software__screen svg { width: 100%; height: auto; display: block; }

/* ==========================================================================
   15. 首页：三大理论
   ========================================================================== */
.theory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.theory {
  padding: var(--sp-7);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.theory:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--sh-lg); }
.theory__ring {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: var(--sp-5);
  background: var(--gold-wash);
}
.theory h3 { font-size: 20px; margin-bottom: var(--sp-3); }
.theory p { color: var(--ink-muted); font-size: 15.5px; margin-bottom: var(--sp-4); }
.theory__quote {
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--paper-line-strong);
  font-size: 14.5px;
  color: var(--ink-faint);
  line-height: 1.85;
}

/* ==========================================================================
   16. 首页：见证 / 文章 / 结尾 CTA
   ========================================================================== */
.quote-card {
  padding: var(--sp-7);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote-card__text {
  font-size: 15.5px;
  line-height: var(--lh-relax);
  color: var(--ink-body);
  flex: 1;
  margin-bottom: var(--sp-5);
}
.quote-card__who {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--paper-line);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
.quote-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-sand), var(--gold-deep));
  color: #2B1D06;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}
.quote-card__who b { color: var(--ink); font-weight: 700; }

.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
/* 文章少于 3 篇时居中显示（避免右侧大片留白，视觉失衡） */
.posts-grid--1 { grid-template-columns: minmax(0, 430px); justify-content: center; }
.posts-grid--2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.post-mini {
  display: flex;
  flex-direction: column;
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.post-mini:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--sh-lg); }
.post-mini__cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #121A26, #1A2230);
  position: relative;
  overflow: hidden;
}
.post-mini__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-mini__cover svg { width: 100%; height: 100%; display: block; }
.post-mini__body { padding: var(--sp-5) var(--sp-6) var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.post-mini__meta { font-size: var(--fs-xs); color: var(--ink-faint); margin-bottom: var(--sp-2); }
.post-mini h3 { font-size: 17.5px; line-height: 1.5; margin-bottom: var(--sp-3); }
.post-mini h3 a { color: var(--ink); }
.post-mini h3 a:hover { color: var(--gold-deep); }
.post-mini p { color: var(--ink-muted); font-size: 14.5px; flex: 1; margin-bottom: 0; }

.cta {
  background: var(--deep);
  color: var(--deep-text);
  padding: var(--sp-12) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta h2 { color: var(--deep-strong); font-size: var(--fs-h1); margin-bottom: var(--sp-4); }
.cta p {
  color: var(--deep-muted);
  font-size: var(--fs-lead);
  max-width: min(56ch, 100%);
  margin: 0 auto var(--sp-8);
  line-height: var(--lh-relax);
}
.cta__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.cta__note { margin-top: var(--sp-6); font-size: var(--fs-xs); color: #6E7686; position: relative; z-index: 1; }

/* 首页通用：进场动画（仅在 JS 可用时启用，避免 JS 失败导致内容不可见） */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 页面头部（内页标题区） */
.page-hero {
  padding: var(--sp-11) 0 var(--sp-8);
  background: linear-gradient(180deg, var(--paper-soft), var(--paper));
  border-bottom: 1px solid var(--paper-line);
}
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.page-hero .eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: var(--sp-3);
}
.page-hero .lead { font-size: var(--fs-lead); color: var(--ink-muted); max-width: min(62ch, 100%); margin: 0; line-height: var(--lh-relax); }

/* 分页 */
.pagination {
  margin-top: var(--sp-9);
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--r-sm);
  color: var(--ink-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.pagination .page-numbers:hover { border-color: var(--gold-deep); color: var(--gold-deep); background: var(--gold-wash); }
.pagination .page-numbers.current { background: var(--deep); color: var(--deep-strong); border-color: var(--deep); }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: var(--sp-11) var(--sp-6);
  background: var(--paper-panel);
  border: 1px dashed var(--paper-line-strong);
  border-radius: var(--r-lg);
}
.empty-state h2 { margin-bottom: var(--sp-3); }
.empty-state p { color: var(--ink-muted); margin: 0; }

/* ==========================================================================
   18. 课程体系页
   ========================================================================== */
.path-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--sp-5);
  align-items: stretch;
}
.path-step {
  padding: var(--sp-7);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-lg);
}
.path-step__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-xs);
  background: var(--deep);
  color: var(--gold-bright);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}
.path-step h3 { font-size: 19px; margin-bottom: var(--sp-3); }
.path-step p { color: var(--ink-muted); font-size: 15px; margin-bottom: var(--sp-4); }
.path-step p b { color: var(--ink); }
.path-step__meta {
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--paper-line-strong);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}
.path-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
}

.course-list { display: grid; gap: var(--sp-6); }
.course-block {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-7);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  transition: border-color var(--t), box-shadow var(--t);
}
.course-block:hover { border-color: var(--gold-line); box-shadow: var(--sh-md); }
.course-block__no {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  background: linear-gradient(160deg, var(--gold-sand), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}
.course-block__body h3 { font-size: 21px; margin-bottom: var(--sp-3); }
.course-block__body > p { color: var(--ink-muted); }
.course-block__points { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.course-block__points li {
  position: relative;
  padding-left: 24px;
  margin-bottom: var(--sp-2);
  font-size: 15.5px;
}
.course-block__points li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.66em;
  width: 12px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.course-block__note {
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--gold-wash);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.fit-col {
  padding: var(--sp-7);
  background: var(--deep-panel);
  border: 1px solid var(--deep-line);
  border-radius: var(--r-lg);
}
.fit-col h3 { color: var(--deep-strong); font-size: 20px; margin-bottom: var(--sp-5); }
.fit-col ul { list-style: none; padding: 0; margin: 0; }
.fit-col li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--sp-4);
  color: var(--deep-muted);
  font-size: 15.5px;
  line-height: 1.75;
}
.fit-col li::before {
  position: absolute;
  left: 0; top: 0;
  font-weight: 900;
  font-size: 16px;
}
.fit-col--yes li::before { content: '✓'; color: var(--gold-bright); }
.fit-col--no li::before { content: '✕'; color: #6E7686; }
.fit-col--yes { border-top: 3px solid var(--gold); }
.fit-col--no { border-top: 3px solid var(--deep-line); }

/* ==========================================================================
   19. 会员价格页
   ========================================================================== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  align-items: start;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-7);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
}
.tier--hot {
  border-color: var(--gold-line);
  border-width: 2px;
  box-shadow: var(--sh-gold);
}
.tier__tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--gold-sand), var(--gold-deep));
  color: #2B1D06;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
.tier__name { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: var(--sp-3); }
.tier__price {
  font-size: 30px;
  font-weight: 900;
  color: var(--gold-deep);
  line-height: 1.2;
  margin-bottom: var(--sp-2);
}
.tier__unit { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--ink-faint); margin-top: 2px; }
.tier__desc { font-size: 14.5px; color: var(--ink-muted); margin-bottom: var(--sp-5); min-height: 44px; }
.tier__feats { list-style: none; padding: 0; margin: 0 0 var(--sp-6); flex: 1; }
.tier__feats li {
  position: relative;
  padding-left: 24px;
  margin-bottom: var(--sp-3);
  font-size: 14.5px;
  line-height: 1.65;
}
.tier__feats li::before { position: absolute; left: 0; top: 0; font-weight: 900; }
.tier__feats .is-yes::before { content: '✓'; color: var(--gold-deep); }
.tier__feats .is-no { color: var(--ink-faint); }
.tier__feats .is-no::before { content: '✕'; color: var(--paper-line-strong); }

/* 对比表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--paper-line); border-radius: var(--r-lg); background: var(--paper-panel); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.compare-table th, .compare-table td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid var(--paper-line);
  white-space: nowrap;
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; white-space: normal; }
.compare-table thead th {
  background: var(--deep);
  color: var(--deep-strong);
  font-weight: 700;
  border-bottom: none;
}
.compare-table thead th.is-hot { background: var(--gold-deep); color: #2B1D06; }
.compare-table tbody tr:nth-child(even) { background: var(--paper-soft); }
.compare-table td.is-hot { background: var(--gold-wash); }
.compare-table td.yes { color: var(--gold-deep); font-weight: 700; }
.compare-table td.no { color: var(--paper-line-strong); }
.compare-table td.part { color: var(--ink-muted); font-size: var(--fs-xs); }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* FAQ（原生 details，无 JS） */
.faq { display: grid; gap: var(--sp-3); }
.faq__item {
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: var(--sp-5) var(--sp-6);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background var(--t-fast);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 20px;
  font-weight: 700;
  transition: transform var(--t);
}
.faq__item[open] summary { background: var(--gold-wash); }
.faq__item[open] summary::after { content: '−'; }
.faq__item summary:hover { background: var(--paper-soft); }
.faq__body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  color: var(--ink-muted);
  font-size: 15.5px;
  line-height: var(--lh-relax);
  border-top: 1px solid var(--paper-line);
}
.faq__body b { color: var(--ink); }

/* ==========================================================================
   20. 关于页
   ========================================================================== */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 88px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-line), var(--paper-line));
}
.timeline__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
  position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-deep);
  text-align: right;
  padding-right: var(--sp-4);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.timeline__body {
  position: relative;
  padding: 0 0 0 var(--sp-6);
  border-left: 2px solid var(--paper-line);
  padding-left: var(--sp-6);
}
.timeline__item .timeline__body::before {
  content: '';
  position: absolute;
  left: -7px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--paper-line-strong);
}
.timeline__item--key .timeline__body::before { border-color: var(--gold); background: var(--gold); }
.timeline__item--key .timeline__body { border-left-color: var(--gold); }
.timeline__body h3 { font-size: 19px; margin-bottom: var(--sp-2); }
.timeline__body p { color: var(--ink-muted); font-size: 15.5px; margin: 0; }
.timeline__body p b { color: var(--ink); }

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--sp-10);
  align-items: center;
}
.book__cover {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(30, 26, 20, 0.22);
  border: 1px solid var(--paper-line);
}
.book__cover svg { width: 100%; height: auto; display: block; }
.about-list { list-style: none; padding: 0; margin: var(--sp-5) 0 var(--sp-6); }
.about-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: var(--sp-3);
  font-size: 15.5px;
  color: var(--ink-muted);
}
.about-list li b { color: var(--ink); }
.about-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.66em;
  width: 12px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.about-meta {
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper-soft);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--ink-faint);
}

.belief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.belief {
  padding: var(--sp-6);
  background: var(--deep-panel);
  border: 1px solid var(--deep-line);
  border-radius: var(--r-lg);
}
.belief h3 {
  color: var(--gold-bright);
  font-size: 18px;
  margin-bottom: var(--sp-3);
  font-weight: 700;
}
.belief p { color: var(--deep-muted); font-size: 15.5px; margin: 0; line-height: var(--lh-relax); }

/* ==========================================================================
   21. 下载页
   ========================================================================== */
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.dl-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-7);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
}
.dl-card--primary { border-color: var(--gold-line); box-shadow: var(--sh-gold); }
.dl-card__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.dl-card__head h3 { font-size: 19px; margin: 0; }
.dl-card__desc { color: var(--ink-muted); font-size: 15px; flex: 1; margin-bottom: var(--sp-5); }
.dl-card__actions { margin-bottom: var(--sp-5); }
.dl-card__actions .btn { width: 100%; }
.dl-card__hint { display: block; font-size: var(--fs-sm); color: var(--ink-faint); }
.dl-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--paper-line);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.feature {
  padding: var(--sp-6);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
}
.feature__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-sand), var(--gold-deep));
  margin-bottom: var(--sp-4);
}
.feature h3 { font-size: 16.5px; margin-bottom: var(--sp-2); }
.feature p { color: var(--ink-muted); font-size: 14.5px; margin: 0; line-height: 1.8; }

.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-list__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-6);
  border-bottom: 1px dashed var(--paper-line-strong);
}
.step-list__item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.step-list__no {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold-bright);
  font-weight: 900;
  font-size: 17px;
}
.step-list__item h3 { font-size: 18px; margin-bottom: var(--sp-2); }
.step-list__item p { color: var(--ink-muted); font-size: 15.5px; margin: 0; }

.changelog__item {
  padding: var(--sp-6);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
}
.changelog__ver {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}
.changelog__ver span { font-size: var(--fs-xs); font-weight: 400; color: var(--ink-faint); margin-left: var(--sp-3); }
.changelog__item ul { margin: 0; padding-left: 1.3em; }
.changelog__item li { color: var(--ink-muted); font-size: 15px; margin-bottom: var(--sp-2); }

/* ==========================================================================
   22. 联系页
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-10);
  align-items: start;
}
.contact-cards { display: grid; gap: var(--sp-4); }
.contact-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  transition: border-color var(--t), box-shadow var(--t);
}
.contact-card:hover { border-color: var(--gold-line); box-shadow: var(--sh-sm); }
.contact-card__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--gold-wash);
  color: var(--gold-deep);
}
.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card h3 { font-size: 16.5px; margin-bottom: 2px; }
.contact-card p { color: var(--ink-muted); font-size: 14.5px; margin: 0 0 var(--sp-2); }
.contact-card__link { font-size: 14.5px; color: var(--gold-deep); font-weight: 700; }

.contact-form {
  padding: var(--sp-7);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
}

/* ==========================================================================
   23. 文章列表 / 详情补充
   ========================================================================== */
.cat-bar {
  background: var(--paper-panel);
  border-bottom: 1px solid var(--paper-line);
}
.cat-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--ink-body);
  transition: all var(--t-fast);
}
.cat-chip:hover { border-color: var(--gold-deep); color: var(--gold-deep); background: var(--gold-wash); }
.cat-chip.is-on { background: var(--deep); border-color: var(--deep); color: var(--deep-strong); }
.cat-chip__n { font-size: 11px; opacity: 0.7; }

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-faint);
}
.entry-cover {
  margin: 0 0 var(--sp-8);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.entry-cover img { width: 100%; height: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-8); }

.entry-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--paper-line);
}
.entry-nav__item { display: flex; flex-direction: column; gap: var(--sp-2); }
.entry-nav__item span { font-size: var(--fs-xs); color: var(--ink-faint); }
.entry-nav__item a { color: var(--ink); font-weight: 700; font-size: 15.5px; line-height: 1.6; }
.entry-nav__item a:hover { color: var(--gold-deep); }
.entry-nav__item em { color: var(--ink-faint); font-style: normal; font-size: 15px; }
.entry-nav__item--next { text-align: right; }

.related { margin-top: var(--sp-9); }
.related h2 { font-size: 20px; margin-bottom: var(--sp-5); }
.related-grid { display: grid; gap: var(--sp-3); }
.related-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-5);
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  transition: border-color var(--t);
}
.related-item:hover { border-color: var(--gold-line); }
.related-item__meta { font-size: var(--fs-xs); color: var(--ink-faint); }
.related-item__title { color: var(--ink); font-weight: 700; font-size: 16px; }
.related-item:hover .related-item__title { color: var(--gold-deep); }

.empty-hint { color: var(--ink-faint); font-size: 15px; }

/* ==========================================================================
   25. 404 页面
   ========================================================================== */
.notfound-search { max-width: 580px; margin: 0 auto; }
.notfound-search form { display: flex; gap: var(--sp-3); }
.notfound-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  background: var(--paper-panel);
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink-body);
}
.notfound-search input:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-wash);
}
.notfound-search .btn { flex: 0 0 auto; }

/* 整卡可点击时不要下划线，hover 用边框与位移表达 */
a.notfound-card { text-decoration: none; color: inherit; }
a.notfound-card h3 { color: var(--ink); }
a.notfound-card:hover h3 { color: var(--gold-deep); }

@media (max-width: 520px) {
  .notfound-search form { flex-direction: column; }
  .notfound-search .btn { width: 100%; }
}
.legal-updated {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--paper-line);
  font-size: var(--fs-sm);
  color: var(--ink-faint);
}
/* 文章正文内的违规/风险提示块（服务条款用） */
.entry__body .note { margin: var(--sp-6) 0; }
.entry__body .note p { margin-bottom: var(--sp-3); }
.entry__body .note p:last-child { margin-bottom: 0; }

/* ==========================================================================
   24. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 首页：Hero 改单列（视觉在文案下方） */
  .hero { padding: var(--sp-11) 0 var(--sp-10); }
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-9); }
  .hero__visual { max-width: 640px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-5); }
  .software__grid { grid-template-columns: 1fr; gap: var(--sp-9); }
  .software__feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theory-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 课程体系：路径改纵向 */
  .path-flow { grid-template-columns: 1fr; }
  .path-arrow { transform: rotate(90deg); height: 26px; }
  /* 会员：4 列 → 2 列 */
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 关于 / 下载 / 联系 */
  .about-grid { grid-template-columns: 220px 1fr; gap: var(--sp-7); }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .contact-form { position: static; }
}

@media (max-width: 860px) {
  :root { --fs-body: 16px; }

  /* 移动端导航：抽屉 */
  .nav-toggle { display: flex; margin-left: auto; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: var(--paper-panel);
    border-bottom: 1px solid var(--paper-line);
    box-shadow: var(--sh-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t);
  }
  .nav.is-open { max-height: 70vh; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-3) var(--sp-6) var(--sp-5); }
  .nav a { padding: 13px 8px; font-size: 16.5px; border-bottom: 1px solid var(--paper-line); border-radius: 0; }
  .nav .current-menu-item > a::after,
  .nav .current_page_item > a::after { left: 8px; right: auto; width: 40px; bottom: 10px; }
  /* 移动端：隐藏「下载训练器」（导航菜单里已有），但保留「我的会员 / 登录」入口，
     否则会员登录后找不到自己的页面 */
  .header-actions .btn--primary { display: none; }
  .header-actions .btn--ghost { display: inline-flex; padding: 8px 12px; font-size: 13.5px; }

  .section { padding: var(--sp-10) 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .software__feats { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  /* 课程体系 / 会员 */
  .course-block { grid-template-columns: 1fr; gap: var(--sp-4); padding: var(--sp-6); }
  .course-block__no { font-size: 34px; }
  .fit-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .tier__desc { min-height: 0; }

  /* 关于 / 下载 / 联系 / 文章 */
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .book__cover { max-width: 260px; margin: 0 auto; }
  .belief-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 0; }
  .timeline__item { grid-template-columns: 1fr; gap: var(--sp-2); }
  .timeline__year { text-align: left; padding-right: 0; padding-left: var(--sp-5); }
  .timeline__body { padding-left: var(--sp-5); }
  .timeline__item .timeline__body::before { left: calc(var(--sp-5) * -1 - 7px); }
  .download-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .entry-nav { grid-template-columns: 1fr; }
  .entry-nav__item--next { text-align: left; }
  .post-card { grid-template-columns: 1fr; }
  .post-card__cover { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 var(--sp-4); }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .grid--4 { grid-template-columns: 1fr; }
}

/* 尊重「减少动效」系统偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 打印（方便潘老师打印页面审阅） */
@media print {
  .site-header, .site-footer, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   26. 课程库：课程中心列表 + 课程详情/播放
   （放在末尾以覆盖上面的通用响应式规则；自身带媒体查询，顺序正确）
   ========================================================================== */

/* ---- 列表卡片 ---- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}
/* 课程不足 3 门时居中，避免右侧大片留白（与首页文章区块同一处理方式） */
.course-grid--1 { grid-template-columns: minmax(0, 430px); justify-content: center; }
.course-grid--2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.course-card:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--sh-lg); }

.course-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #101720;
  overflow: hidden;
}
.course-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.course-card__cover-ph,
.course-card__cover-ph svg { display: block; width: 100%; height: 100%; }
.course-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  background: rgba(10, 14, 21, 0.82);
  color: #C8CEDA;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.course-card__badge.is-open { background: linear-gradient(135deg, var(--gold-sand), var(--gold-deep)); color: #2B1D06; }

.course-card__body { display: flex; flex-direction: column; gap: 8px; padding: var(--sp-5) var(--sp-5) var(--sp-6); flex: 1; }
.course-card__title { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.course-card:hover .course-card__title { color: var(--gold-deep); }
.course-card__sub {
  font-size: 14px; color: var(--ink-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); color: var(--ink-faint); margin-top: auto; padding-top: 6px; }
.course-card__progress { display: flex; align-items: center; gap: 8px; }
.course-card__progress-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--paper-line); overflow: hidden; }
.course-card__progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-sand), var(--gold-deep)); }
.course-card__progress-text { font-size: var(--fs-xs); color: var(--gold-deep); font-weight: 700; }

/* ---- 详情页头部 ---- */
.course-hero {
  padding: var(--sp-10) 0 var(--sp-8);
  background: linear-gradient(180deg, var(--paper-soft), var(--paper));
  border-bottom: 1px solid var(--paper-line);
}
.course-hero__back { display: inline-block; font-size: var(--fs-sm); color: var(--ink-muted); margin-bottom: var(--sp-4); }
.course-hero__back:hover { color: var(--gold-deep); }
.course-hero__tags { display: flex; gap: 8px; margin-bottom: var(--sp-4); }
.tag--plain { background: var(--paper-soft); color: var(--ink-muted); }
.course-hero h1 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.course-hero__sub { font-size: var(--fs-lead); color: var(--ink-muted); margin-bottom: var(--sp-5); max-width: min(70ch, 100%); }
.course-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--fs-sm); color: var(--ink-faint); }

/* ---- 播放布局 ---- */
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--sp-7);
  align-items: start;
}
.course-main { min-width: 0; }
.course-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #06090D;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--paper-line);
}
.course-player video { display: none; width: 100%; height: 100%; background: #000; }
.course-player__empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--sp-6);
}
.course-player__empty-inner { max-width: 420px; color: var(--deep-muted); }
.course-player__empty-inner svg { width: 44px; height: 44px; margin: 0 auto var(--sp-4); color: #4A5462; }
.course-player__empty-inner p { color: #9AA0AC; font-size: 15px; margin-bottom: var(--sp-4); }
.course-player__empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.course-now {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-muted);
}
.course-now__label { padding: 2px 8px; border-radius: var(--r-xs); background: var(--gold-wash); color: var(--gold-deep); font-size: var(--fs-xs); font-weight: 700; }
.course-now strong { color: var(--ink); font-size: 15px; }
.course-now__progress { font-variant-numeric: tabular-nums; }

/* ---- 课时目录 ---- */
.course-toc {
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}
.course-toc__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-5) var(--sp-5);
  border-bottom: 1px solid var(--paper-line);
  position: sticky; top: 0; background: var(--paper-panel); z-index: 1;
}
.course-toc__head strong { font-size: 15.5px; color: var(--ink); }
.course-toc__head span { font-size: var(--fs-xs); color: var(--ink-faint); }

.course-chapter { border-bottom: 1px solid var(--paper-line); }
.course-chapter:last-child { border-bottom: none; }
.course-chapter__title {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px var(--sp-5);
  background: var(--paper-soft);
  font-size: 13.5px; font-weight: 700; color: var(--ink-body);
}
.course-chapter__title em { font-style: normal; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-faint); }

.lesson-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px var(--sp-5);
  background: transparent; border: none; border-top: 1px solid var(--paper-line);
  text-align: left; cursor: pointer; font-family: inherit;
  transition: background var(--t-fast);
}
.lesson-row:hover { background: var(--gold-wash); }
.lesson-row.is-current { background: var(--gold-wash-strong); }
.lesson-row.is-current .lesson-row__title { color: var(--gold-deep); font-weight: 700; }
.lesson-row.is-locked { cursor: default; }
.lesson-row.is-locked:hover { background: var(--paper-soft); }
.lesson-row.is-locked .lesson-row__title { color: var(--ink-faint); }
.lesson-row__no {
  flex: 0 0 22px; font-size: 11.5px; color: var(--ink-faint);
  font-variant-numeric: tabular-nums; text-align: right;
}
.lesson-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lesson-row__title { font-size: 14px; color: var(--ink-body); line-height: 1.5; }
.lesson-row__meta { font-size: 11.5px; color: var(--ink-faint); }
.lesson-row__free { color: var(--gold-deep); font-weight: 700; }
.lesson-row__done { color: var(--up); font-weight: 700; }
.lesson-row__state { flex: 0 0 auto; color: var(--ink-faint); display: flex; align-items: center; }

@media (max-width: 1024px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-layout { grid-template-columns: 1fr; }
  .course-toc { position: static; max-height: none; }
}
@media (max-width: 860px) {
  .course-grid { grid-template-columns: 1fr; }
  .course-hero { padding: var(--sp-8) 0 var(--sp-6); }
}
