/* =============================================================================
 * 1520心理 · www 用户端设计系统 v4「静谧蓝 · 轻盈范式」
 * -----------------------------------------------------------------------------
 * 单一来源：本文件。取代 v2.1 暖橙 theme.css（已归档为 theme.css.v2.1-legacy.bak）。
 * 设计上下文见项目根 .impeccable.md；首页标准模版见 deploy/www/index.html。
 *
 * 设计原则
 *   · 轻盈有秩序 —— 大留白、细描边、克制的阴影
 *   · 暖色稀缺   —— 珊瑚色仅用于次要 CTA / 关怀，不做主色
 *   · 安危分层   —— 危机为全站唯一高饱和红，且不喧哗
 *   · 冷调中性   —— 灰阶偏蓝，避免"暖橙回潮"
 *   · 无障碍底线 —— 正文 ≥16px、对比度 AA、focus-visible、reduced-motion
 *
 * 兼容策略：保留 v2.1 与 v4 两套变量命名（--color-* / --text-1 / --primary-500 …），
 *   页面无需改动即可整体换肤。
 * ========================================================================== */

/* ============================== 1. Design Tokens ============================ */
:root {
  /* —— 品牌（静谧蓝）—— */
  --primary: #2B5FD9;
  --primary-dark: #1F4CB8;
  --primary-50: #EAF0FE;
  --primary-100: #D6E2FC;
  --primary-200: #B9CDF8;
  --primary-300: #92B1F2;
  --primary-400: #5E86E6;
  --primary-500: #2B5FD9;
  --primary-600: #2450BC;
  --primary-700: #1F4CB8;
  --primary-800: #1B3E92;
  --primary-900: #17306B;

  /* —— 辅色（同族蓝，供渐变/图标底）—— */
  --secondary: #2B5FD9;
  --secondary-50: #EAF0FE;
  --secondary-100: #D6E2FC;
  --secondary-200: #B9CDF8;
  --secondary-300: #92B1F2;
  --secondary-500: #2B5FD9;
  --secondary-700: #1F4CB8;

  /* —— 暖色（稀缺：次要 CTA / 关怀）—— */
  --accent: #E8734A;
  --accent-dark: #C2410C;
  --accent-ink: #2B1A12;

  /* —— 危机（全站唯一高饱和红）—— */
  --crisis: #D93A3A;
  --crisis-dark: #B32020;
  --crisis-light: #FEF4F3;
  --crisis-bg: #FEF4F3;
  --crisis-line: #F9DAD6;
  --crisis-ink: #B42318;

  /* —— 深色锚 / 页脚 —— */
  --deep: #17306B;
  --deep-2: #0F2149;
  --footer: #101724;

  /* —— 中性（冷偏蓝）—— */
  --bg: #F7F8FB;
  --bg-soft: #FBFCFE;
  --bg-1: #FFFFFF;
  --bg-2: #F7F8FB;
  --bg-3: #F1F4F9;
  --bg-soft-legacy: #FBFCFE;
  --bg-warm: #FBFCFE;              /* v2.1 暖背景 → 收敛为冷白 */
  --surface: #FFFFFF;
  --surface-2: #F4F6FB;

  --text: #16202E;
  --text-1: #16202E;
  --text-2: #454F5E;
  --text-3: #6B7686;
  --text-4: #A3ADBD;
  --text-on-primary: #FFFFFF;
  --text-on-crisis: #FFFFFF;
  --muted: #5B6675;
  --tertiary: #98A2B3;

  --border: #E6E9F0;
  --border-light: #EFF2F7;
  --border-primary: #B9CDF8;

  /* —— 中性灰阶（Tailwind 命名，冷调）—— */
  --color-neutral-50: #F8FAFD;
  --color-neutral-100: #F1F4F9;
  --color-neutral-200: #E6E9F0;
  --color-neutral-300: #D3D9E4;
  --color-neutral-400: #A3ADBD;
  --color-neutral-500: #6B7686;
  --color-neutral-600: #5B6675;
  --color-neutral-700: #454F5E;
  --color-neutral-800: #2B3543;
  --color-neutral-900: #16202E;

  /* —— 语义色 —— */
  --success: #0E9F6E;  --success-bg: #E7F7F1;
  --warning: #B7791F;  --warning-bg: #FDF3E3;
  --error: #D93A3A;    --error-bg: #FEF2F2;
  --info: #2B5FD9;     --info-bg: #EAF0FE;

  /* —— 语义别名（页面层 --color-*）—— */
  --color-primary: var(--primary);
  --color-secondary: var(--primary-50);   /* 页面把它当"浅色底片"，配 --color-primary 文字 */
  --color-success: var(--success);
  --color-warning: var(--warning);
  --color-danger: var(--error);
  --color-info: var(--info);

  /* —— 间距（4pt 基准）—— */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --sp-1: var(--space-1); --sp-2: var(--space-2); --sp-3: var(--space-3);
  --sp-4: var(--space-4); --sp-5: var(--space-5); --sp-6: var(--space-6);
  --sp-7: var(--space-7); --sp-8: var(--space-8); --sp-9: var(--space-9);

  /* —— 圆角 —— */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  /* —— 阴影（克制 · 冷调）—— */
  --shadow-sm: 0 1px 2px rgba(23,48,107,.05);
  --shadow: 0 1px 3px rgba(23,48,107,.06);
  --shadow-md: 0 10px 28px -10px rgba(23,48,107,.16);
  --shadow-lg: 0 24px 56px -22px rgba(23,48,107,.28);
  --shadow-xl: 0 32px 64px -24px rgba(23,48,107,.32);
  --shadow-warm: 0 10px 30px -10px rgba(43,95,217,.30);
  --shadow-crisis: 0 8px 24px -8px rgba(217,58,58,.45);

  /* —— 字号阶梯（rem，基准 16px）—— */
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 2.75rem;
  --text-6xl: 3.5rem;

  /* —— 动效 —— */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --maxw: 1200px;
}

/* ============================== 2. Base ==================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", "Hiragino Sans GB", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary-100); }

/* ============================== 3. 布局工具 ================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-5); }
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.text-mono { font-family: "SF Mono", Menlo, Consolas, monospace; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
section { padding: var(--space-8) 0; }

/* ============================== 4. 危机条 ================================== */
/* 细 · 浅底 · 克制（首页标准）。`.crisis-bar` 为旧标记兼容别名。 */
.crisis-strip, .crisis-bar {
  background: var(--crisis-bg);
  border-bottom: 1px solid var(--crisis-line);
  color: var(--crisis-ink);
  font-size: 13px;
  padding: 0; /* 覆盖通用 section{padding:64px 0}（危机条应为紧凑单行） */
}
.crisis-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 16px; padding-top: 9px; padding-bottom: 9px;
}
.crisis-strip-text { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crisis-strip-text strong { font-weight: 700; }
.crisis-strip-text a, .crisis-strip a, .crisis-bar a {
  color: var(--crisis-ink); font-weight: 700;
  border-bottom: 1px solid transparent; transition: border-color .15s;
}
.crisis-strip-text a:hover, .crisis-strip a:hover, .crisis-bar a:hover { border-bottom-color: currentColor; }
.crisis-strip .sep { opacity: .38; }
.crisis-strip .aside { font-size: 12px; opacity: .8; }
/* 旧标记（无 .wrap）时兜底内边距 */
.crisis-bar { padding: 9px clamp(16px, 4vw, 24px); display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }

/* ============================== 5. 顶部导航 ================================ */
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--space-5); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name { font-size: 17px; font-weight: 800; color: var(--deep); letter-spacing: .3px; }
.brand-text .tag { font-size: 11px; color: var(--muted); margin-top: 3px; }
.brand-text small { font-size: 10px; color: var(--text-3); font-weight: 500; letter-spacing: .08em; }
.nav-menu { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: center; }
.nav-menu a { color: var(--text); font-size: 14px; font-weight: 500; padding: 6px 0; position: relative; transition: color .18s; }
.nav-menu a:hover { color: var(--primary); }
.nav-menu a.active { color: var(--primary); font-weight: 600; }
.nav-menu a.active::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--primary); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }

/* ============================== 6. 按钮 ==================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; white-space: nowrap; text-align: center;
  border: 1.5px solid transparent; text-decoration: none;
  transition: background .2s var(--ease-out), border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 6px 16px -8px rgba(43,95,217,.7); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 10px 22px -10px rgba(43,95,217,.8); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--primary-200); }
.btn-outline:hover:not(:disabled) { background: var(--primary-50); border-color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover:not(:disabled) { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.btn-crisis { background: var(--crisis); color: #fff; border-color: var(--crisis); box-shadow: var(--shadow-crisis); }
.btn-crisis:hover:not(:disabled) { background: var(--crisis-dark); border-color: var(--crisis-dark); }
.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger:hover:not(:disabled) { background: #C42F2F; border-color: #C42F2F; }
.btn-sm { min-height: 30px; padding: 5px 14px; font-size: var(--text-sm); }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ============================== 7. 表单 ==================================== */
.input {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: var(--text-base); background: var(--surface); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.input::placeholder { color: var(--text-4); }
.input-lg { padding: 14px 18px; font-size: var(--text-lg); }
label { font-size: var(--text-sm); color: var(--text-2); font-weight: 500; }
.field { margin-bottom: var(--space-4); }
.field > label { display: block; margin-bottom: var(--space-2); }
.req { color: var(--error); margin-left: 2px; }
.opt { color: var(--text-4); font-size: var(--text-xs); font-weight: 400; }

/* ============================== 8. 卡片 / 标签 ============================== */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s;
}
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600;
  background: var(--bg-3); color: var(--text-2); white-space: nowrap;
}
.tag-primary { background: var(--primary-50); color: var(--primary-700); }
.tag-secondary { background: var(--primary-50); color: var(--primary-700); }
.tag-success { background: var(--success-bg); color: var(--success); }
.tag-warning { background: var(--warning-bg); color: var(--warning); }
.tag-error { background: var(--error-bg); color: var(--error); }
.tag-info { background: var(--info-bg); color: var(--info); }
.tag-crisis { background: var(--crisis); color: #fff; }
.tag-warm { background: var(--accent); color: #fff; border: 1px solid var(--accent); }

/* ============================== 9. 区块标题 ================================ */
.section-head { text-align: center; max-width: 660px; margin: 0 auto var(--space-7); }
.section-eyebrow {
  display: inline-block; color: var(--primary); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: var(--space-3);
}
.section-title { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; color: var(--deep);
  letter-spacing: -.01em; margin-bottom: var(--space-3); }
.section-desc { color: var(--muted); font-size: 15px; line-height: 1.7; }
.section-head-left { text-align: left; max-width: none; }
.section-head-left .section-desc { margin: 0; }

/* ============================== 10. Hero（浅色 · 轻盈）===================== */
.hero {
  position: relative; overflow: hidden; background: var(--bg-soft);
  padding: clamp(56px, 7.5vw, 104px) 0 clamp(48px, 6vw, 88px); text-align: center;
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 560px; height: 560px; left: -160px; top: -200px;
  background: radial-gradient(circle, rgba(43,95,217,.16) 0%, rgba(43,95,217,0) 68%); }
.hero::after { width: 520px; height: 520px; right: -180px; top: -140px;
  background: radial-gradient(circle, rgba(232,115,74,.15) 0%, rgba(232,115,74,0) 68%); }
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--border); color: var(--deep); font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: var(--radius-full); box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: -.02em;
  font-weight: 800; color: var(--deep); margin-bottom: var(--space-4); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .sub, .hero p.sub { color: var(--muted); font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.8; max-width: 640px; margin: var(--space-5) auto var(--space-6); }
.hero-cta { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--space-3) var(--space-7); margin-top: var(--space-7); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.hero-points .ico { font-size: 17px; line-height: 1; }
.hero-trust { display: flex; gap: var(--space-5); align-items: center; color: var(--text-3);
  font-size: var(--text-sm); flex-wrap: wrap; justify-content: center; }
.hero-trust .num { color: var(--text); font-weight: 700; font-size: var(--text-lg); }
.hero-fastats { background: var(--surface); border-radius: var(--radius-xl); padding: var(--space-6);
  border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.hero-stat { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light); }
.hero-stat:last-child { border-bottom: none; }
.hero-stat-icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--primary-50);
  color: var(--primary); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.hero-stat-body { flex: 1; }
.hero-stat-num { font-size: var(--text-2xl); font-weight: 700; color: var(--text); line-height: 1.2; }
.hero-stat-label { font-size: var(--text-xs); color: var(--text-3); margin-top: 2px; }
.hero-stats { background: transparent; }
.hero-crisis-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-5);
  background: var(--crisis-bg); border: 1px solid var(--crisis-line); color: var(--crisis-ink);
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-full);
  transition: background .18s, border-color .18s;
}
.hero-crisis-link:hover { background: #FDECEA; border-color: #F3C9C4; }

/* ============================== 11. 数据锚带 =============================== */
.stats-band { background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%); color: #fff;
  padding: clamp(34px, 4vw, 48px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: var(--space-1) var(--space-4); position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 52px; background: rgba(255,255,255,.16); }
.stat .num { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.01em;
  line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 14px; font-weight: 600; opacity: .82; margin-left: 2px; }
.stat .lbl { font-size: 13px; color: rgba(255,255,255,.72); margin-top: var(--space-2); }

/* ============================== 12. 金刚区 ================================= */
.features { background: var(--surface); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.feature-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6) var(--space-4); cursor: pointer; position: relative; overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-emoji { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary); font-size: 26px; margin-bottom: var(--space-3);
  transition: transform .2s; }
.feature-card:hover .feature-emoji { transform: scale(1.08); }
.feature-name { font-size: var(--text-base); font-weight: 700; margin-bottom: 4px; color: var(--text); }
.feature-desc { font-size: var(--text-xs); color: var(--muted); line-height: 1.5; }

.kingkong { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.kingkong-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; align-items: center;
  gap: var(--space-3); text-align: center; color: var(--text);
  transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s; }
.kingkong-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.kingkong-item .emoji { width: 56px; height: 56px; border-radius: 18px; background: var(--primary-50);
  display: grid; place-items: center; font-size: 26px; }
.kingkong-item .title { font-size: 15px; color: var(--text); font-weight: 700; }
.kingkong-item .desc { font-size: 12px; color: var(--muted); }

/* ============================== 13. 咨询师 ================================= */
.counselors { background: var(--bg); }
.counselor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.counselor-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s;
  cursor: pointer; display: block; }
.counselor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.counselor-head, .head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.counselor-avatar, .avatar { width: 52px; height: 52px; border-radius: 50%; color: #fff; flex-shrink: 0;
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600)); }
/* 头像图片变体：img 绝对覆盖字母兜底，onerror 移除 img 自动回落首字母。
   图片存 api 域绝对地址（/uploads/ location 仅在 api.1520psy.cn）。 */
.avatar-media { position: relative; overflow: hidden; }
.avatar-media > img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit; display: block; }
.counselor-info { flex: 1; min-width: 0; }
.name-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.name-row h3, .counselor-info h3 { font-size: var(--text-lg); font-weight: 700; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier-badge { padding: 2px 8px; background: var(--primary-50); color: var(--primary-700);
  border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; }
.counselor-info .meta, .sub { font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }
.counselor-stats, .stats { display: flex; gap: var(--space-3); font-size: var(--text-sm);
  color: var(--text-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
.stats span, .counselor-stats .item { display: flex; align-items: center; gap: 4px; }
.counselor-stats .val, .stats .val { color: var(--primary); font-weight: 700; }
.counselor-bio, .bio { font-size: var(--text-sm); color: var(--text-3); line-height: 1.6;
  margin-bottom: var(--space-3); min-height: 42px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.counselor-foot, .price-row { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.counselor-price, .price b { color: var(--primary); font-weight: 800; font-size: var(--text-lg); }
.counselor-price small, .price { font-size: var(--text-xs); color: var(--muted); font-weight: 400; }
.counselor-tags, .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--space-3); }
.counselor-tag, .tag-pill { padding: 3px 10px; background: var(--primary-50); color: var(--primary-700);
  border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; }

/* ============================== 14. 测评 ================================== */
.scales { background: var(--surface); }
.scale-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.scale-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); cursor: pointer; overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s; }
.scale-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
/* 量表卡片头图（scales.html 三张静态卡）：负 margin 抵消卡片内边距，顶部通栏 */
.scale-cover { height: 148px; margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-4);
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--primary-50); }
.scale-cover img { width: 100%; height: 148px; object-fit: cover; display: block; }
.scale-code { display: inline-block; padding: 2px 8px; background: var(--primary); color: #fff;
  border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 700; margin-bottom: var(--space-2); }
.scale-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); color: var(--text); }
.scale-desc { font-size: var(--text-sm); color: var(--text-3); line-height: 1.5; margin-bottom: var(--space-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.scale-foot { display: flex; align-items: center; justify-content: space-between;
  font-size: var(--text-xs); color: var(--text-3); }

/* ============================== 15. 文章 / 直播 ============================ */
.articles-live { background: var(--bg); }
.dual-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); }
.article-list { display: flex; flex-direction: column; gap: var(--space-3); }
.article-row { display: flex; gap: var(--space-4); padding: var(--space-4); background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s; }
.article-row:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateX(2px); }
.article-cover { width: 80px; height: 80px; border-radius: var(--radius); flex-shrink: 0; color: var(--primary);
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); }
.article-body { flex: 1; min-width: 0; }
.article-title { font-size: var(--text-base); font-weight: 600; margin-bottom: 4px; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { font-size: var(--text-xs); color: var(--text-3); display: flex; gap: var(--space-2); align-items: center; }
.article-tag { font-size: var(--text-xs); color: var(--primary); font-weight: 600; }
.live-card { background: linear-gradient(135deg, var(--primary-600), var(--deep)); color: #fff;
  border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.live-time { font-size: var(--text-xs); opacity: .85; font-weight: 600; }
.live-time strong { font-size: var(--text-lg); font-weight: 800; display: block; margin-top: 2px; }
.live-title { font-size: var(--text-xl); font-weight: 700; line-height: 1.4; }
.live-desc { font-size: var(--text-sm); opacity: .9; line-height: 1.6; }
.live-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: #fff;
  color: var(--primary-700); border-radius: var(--radius-full); font-weight: 700; font-size: var(--text-sm);
  margin-top: var(--space-2); align-self: flex-start; }

/* ============================== 16. 学习中心 =============================== */
.learn-center { background: var(--bg); }
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-7); align-items: start; }
.learn-col { display: flex; flex-direction: column; gap: var(--space-4); }
.learn-col-head, .learn-col-header { display: flex; align-items: center; gap: var(--space-3);
  padding-bottom: var(--space-4); border-bottom: 2px solid var(--border); margin-bottom: var(--space-2); }
.learn-col-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-50);
  color: var(--primary); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.learn-col-title { font-size: 16px; font-weight: 700; color: var(--deep); }
.learn-col-title small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
/* 紧凑列表（缩略图 + 单行标题 + 单行摘要） */
.learn-list { display: flex; flex-direction: column; }
.learn-item { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light); transition: opacity .18s; }
.learn-item:first-child { padding-top: 0; }
.learn-item:last-child { border-bottom: none; }
.learn-item:hover { opacity: .75; }
.learn-thumb { width: 84px; height: 60px; border-radius: var(--radius-md); flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); color: var(--primary); }
.learn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.learn-thumb .ph { opacity: .45; }
.learn-item-body { flex: 1; min-width: 0; }
.learn-item-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learn-item-sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learn-item-meta { font-size: 12px; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.learn-empty { padding: var(--space-6) var(--space-4); text-align: center; color: var(--muted);
  font-size: 13px; border: 1px dashed var(--border); border-radius: var(--radius); }
.learn-more { margin-top: var(--space-5); color: var(--primary); font-size: 13px; font-weight: 700; transition: opacity .2s; }
.learn-more:hover { opacity: .8; }
.course-card { display: flex; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s; }
.course-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateX(2px); }
.course-thumb { width: 64px; height: 64px; border-radius: var(--radius); flex-shrink: 0; color: #fff;
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, var(--primary-300), var(--primary-600)); }
.course-body { flex: 1; min-width: 0; }
.course-title { font-size: var(--text-sm); font-weight: 600; margin-bottom: 4px; color: var(--text); line-height: 1.4; }
.course-meta { font-size: var(--text-xs); color: var(--text-3); display: flex; gap: var(--space-2); align-items: center; }

/* ============================== 17. Trust ================================= */
.trust-strip { background: var(--bg); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
.trust-card { text-align: left; }
.trust-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center; font-size: 22px; margin-bottom: var(--space-4); }
.trust-title { font-size: 17px; font-weight: 700; color: var(--deep); margin-bottom: var(--space-2); }
.trust-desc { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ============================== 18. CTA =================================== */
.cta-section { padding: 0 0 clamp(56px, 7vw, 96px); }
.cta-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: clamp(44px, 5vw, 72px) var(--space-6); text-align: center; }
.cta-panel::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2, .cta-section h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.01em;
  margin-bottom: var(--space-3); color: #fff; }
.cta-panel p, .cta-section p { font-size: var(--text-lg); color: rgba(255,255,255,.92); line-height: 1.8;
  margin-bottom: var(--space-6); max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-panel .btn, .cta-section .btn-cta { background: #fff; color: var(--primary); border-color: #fff;
  min-height: 50px; padding: 12px 30px; font-size: 15px; font-weight: 700; box-shadow: var(--shadow-lg); }
.cta-panel .btn:hover, .cta-section .btn-cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ============================== 19. Footer =============================== */
footer { background: var(--footer); color: rgba(255,255,255,.66); padding: var(--space-8) 0 var(--space-5);
  font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-7); }
.footer-brand { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: var(--space-3); }
.footer-tagline { line-height: 1.8; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: var(--space-3); letter-spacing: .5px; }
.footer-col a, .footer-col li a { display: block; padding: 5px 0; color: rgba(255,255,255,.66); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  color: rgba(255,255,255,.5); font-size: 12px; }
.footer-bottom a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
footer .brand { color: #fff; }
footer .brand-mark { width: 34px; height: 34px; }

/* ============================== 20. 危机浮球 ============================== */
.crisis-fab { position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--crisis); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 10px 24px -8px rgba(217,58,58,.6); z-index: 60; text-decoration: none;
  transition: transform .18s var(--ease-out); }
.crisis-fab:hover { transform: scale(1.07); background: var(--crisis-dark); }
.crisis-fab-tip { position: fixed; right: 92px; bottom: 36px; background: var(--text); color: #fff;
  padding: 8px 12px; border-radius: var(--radius); font-size: var(--text-xs); z-index: 60;
  white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.crisis-fab:hover + .crisis-fab-tip, .crisis-fab:focus + .crisis-fab-tip { opacity: 1; }

/* ============================== 21. 筛选 / Tab ============================= */
.filter-wrap { text-align: center; }
.filter-tabs { display: inline-flex; gap: var(--space-2); background: var(--bg-3); padding: 4px;
  border-radius: var(--radius-full); margin: 0 auto var(--space-6); flex-wrap: wrap; }
.filter-tab { padding: 8px 22px; border-radius: var(--radius-full); font-size: var(--text-sm);
  font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .2s; border: none; background: transparent; }
.filter-tab:hover { color: var(--primary); }
.filter-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.filter-bar { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-5);
  padding: var(--space-3); background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); align-items: center; }
.filter-chip { padding: 6px 14px; border-radius: var(--radius-full); background: var(--bg-3);
  cursor: pointer; font-size: var(--text-sm); border: 1px solid transparent; transition: all .18s; }
.filter-chip:hover { background: var(--primary-50); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; }

/* ============================== 22. 活动 =================================== */
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.activity-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); cursor: pointer;
  transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s; }
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.activity-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.activity-title { font-size: var(--text-lg); font-weight: 700; color: var(--text); }
.activity-theme { font-size: var(--text-sm); color: var(--text-3); }
.activity-time { font-size: var(--text-sm); color: var(--text-2); }
.activity-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto;
  padding-top: var(--space-3); border-top: 1px solid var(--border-light); }
.activity-price { color: var(--primary); font-weight: 800; font-size: var(--text-lg); }
.activity-cap { font-size: var(--text-xs); color: var(--text-3); }
.act-pill, .act-meta { font-size: var(--text-xs); color: var(--muted); }
.act-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px;
  border-radius: var(--radius-full); background: var(--bg-3); font-weight: 600; }

/* ============================== 23. 详情页 ================================= */
.detail-wrap { max-width: 820px; margin: 0 auto; }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); }
.detail-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--deep); margin-bottom: var(--space-3); }
.detail-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); align-items: center; }
.detail-section { margin-top: var(--space-5); }
.detail-section h3, .sec-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); color: var(--text); }
.detail-section p, .dt-prose { color: var(--text-2); line-height: 1.8; white-space: pre-wrap; }
.detail-info-row, .dt-fact { display: flex; gap: var(--space-3); padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light); font-size: var(--text-base); }
.detail-info-row .label { color: var(--text-3); width: 88px; flex-shrink: 0; }
.detail-info-row .value { color: var(--text); font-weight: 500; }
.detail-actions { margin-top: var(--space-6); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.pay-box { background: var(--warning-bg); border: 1px solid #F0DFC0; border-radius: var(--radius);
  padding: var(--space-4); margin-top: var(--space-4); }
.success-box { background: var(--success-bg); border: 1px solid #BFEAD8; border-radius: var(--radius);
  padding: var(--space-4); margin-top: var(--space-4); }
.my-activity-item { display: block; margin-bottom: var(--space-4); }
.my-activity-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }

/* ============================== 24. 空态 / 骨架 / 弹窗 ===================== */
.empty-state { text-align: center; padding: var(--space-7) var(--space-4); color: var(--text-3); }
.empty-state-icon { font-size: 56px; margin-bottom: var(--space-3); opacity: .85; }
.empty-state-title { font-size: var(--text-lg); font-weight: 600; color: var(--text-2); margin-bottom: var(--space-2); }
.empty-state-desc { font-size: var(--text-sm); color: var(--text-3); }
.empty, .empty-mini, .learn-empty, .feed-empty {
  text-align: center; color: var(--muted); font-size: var(--text-sm);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: var(--space-7) var(--space-5);
}
.empty-mini, .feed-empty { padding: var(--space-5) var(--space-4); font-size: var(--text-xs); }
.empty .ico, .feed-empty .ico { font-size: 44px; margin-bottom: var(--space-3); opacity: .35; display: block; }
.skeleton { background: linear-gradient(90deg, #F0F2F7 25%, #E6E9F0 50%, #F0F2F7 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.modal-mask { position: fixed; inset: 0; background: rgba(16,23,36,.5); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: var(--space-4);
  backdrop-filter: blur(2px); }
.modal-mask.show { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-6);
  max-width: 480px; width: 100%; box-shadow: var(--shadow-xl); animation: modalIn .2s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal-title { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-3); }
.modal-desc { color: var(--text-3); margin-bottom: var(--space-5); }
.modal-actions { display: flex; gap: var(--space-3); justify-content: flex-end; }

/* ============================== 25. 通用列表行 ============================= */
.item-row, .sum-row { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-light); }
.item-row:last-child, .sum-row:last-child { border-bottom: none; }
.k { color: var(--text-3); }
.v { color: var(--text); font-weight: 600; }
.meta { font-size: var(--text-xs); color: var(--muted); }
.title { font-weight: 600; color: var(--text); }
.desc { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.ico { display: inline-flex; align-items: center; }
.cover { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }

/* ============================== 26. 响应式 ================================= */
@media (max-width: 1024px) {
  .features-grid, .scale-grid, .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dual-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-menu { display: none; }
  .kingkong { grid-template-columns: repeat(3, 1fr); }
  .learn-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .trust-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) 0; }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 768px) {
  section { padding: var(--space-7) 0; }
  .section-title { font-size: var(--text-3xl); }
  .wrap { padding: 0 var(--space-4); }
  .counselor-grid { grid-template-columns: 1fr; }
  .features-grid, .scale-grid, .activity-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-actions .btn-ghost { display: none; }
  .hero-points { gap: var(--space-2) var(--space-4); }
  .hero-points li { font-size: 13px; }
  .kingkong { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat + .stat::before { display: none; }
  .crisis-strip .aside, .crisis-bar .aside { display: none; }
}

/* ============================== 27. 无障碍 ================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .crisis-fab, .app-header, .crisis-strip, .crisis-bar, footer { display: none !important; }
}

/* =============================================================================
 * 28. 页面框架（子页统一基座）
 * -----------------------------------------------------------------------------
 * 用途：所有内页（非首页）= 浅色 page-banner（面包屑 + 标题 + 引导语）+ page-main。
 * 背景：09-19 一版只换了配色，35/38 页仍各自内联 <style> 与裸 <main>，
 *       导致与首页视觉脱节。本区块提供统一基座类，页面改写时直接复用，
 *       不再各自定义标题/面板/步骤条/分页样式。
 * 说明：与首页同源（--deep 标题、浅色 banner、克制阴影、暖色稀缺）。
 * ========================================================================== */

/* —— 页面主容器 —— */
.page-main { padding: var(--space-8) 0 var(--space-9); }
.page-main.tight { padding: var(--space-6) 0 var(--space-8); }
.page-main.flush-top { padding-top: var(--space-6); }

/* —— 页头横幅（比首页 hero 更紧凑；浅色 + 单侧冷光晕）—— */
.page-banner { position: relative; overflow: hidden; background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: clamp(30px, 4.5vw, 56px) 0 clamp(26px, 4vw, 44px); }
.page-banner::before { content: ''; position: absolute; width: 460px; height: 460px;
  right: -160px; top: -230px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(43,95,217,.12) 0%, rgba(43,95,217,0) 68%); }
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner-center { text-align: center; }
.page-banner-center .crumb { justify-content: center; }
.page-banner-center .lead { margin-left: auto; margin-right: auto; }
.page-banner .eyebrow { display: inline-block; color: var(--primary); font-size: 12px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: var(--space-2); }

/* —— 面包屑 —— */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: var(--text-sm); color: var(--text-3); margin-bottom: var(--space-3); }
.crumb a { color: var(--text-3); transition: color .18s; }
.crumb a:hover { color: var(--primary); }
.crumb .sep { color: var(--text-4); }
.crumb .cur { color: var(--text); font-weight: 600; }

/* —— 页标题 / 引导语 —— */
.page-title { font-size: clamp(23px, 3vw, 32px); font-weight: 800; color: var(--deep);
  letter-spacing: -.01em; line-height: 1.25; }
.page-title.lg { font-size: clamp(28px, 3.6vw, 42px); }
.lead { color: var(--text-2); font-size: 16px; line-height: 1.75; margin-top: var(--space-3);
  max-width: 760px; }

/* —— 通用面板 —— */
.panel { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6); }
.panel + .panel { margin-top: var(--space-5); }
.panel.tint { background: var(--bg-2); }
.panel.flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-5); flex-wrap: wrap; }
.panel-title { font-size: var(--text-lg); font-weight: 700; color: var(--text); }
.panel-sub { font-size: var(--text-sm); color: var(--muted); margin-top: 4px; }

/* —— 表单容器（登录/注册/下单/问卷等）—— */
.form-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  max-width: 640px; margin: 0 auto; box-shadow: var(--shadow-md); }
.form-card.wide { max-width: 820px; }
.form-title { font-size: var(--text-2xl); font-weight: 800; color: var(--deep); margin-bottom: var(--space-2); }
.form-sub { color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.form-actions { margin-top: var(--space-6); display: flex; gap: var(--space-3); }
.form-actions .btn { flex: 1; }

/* —— 步骤条（智能导诊 / 预约 / 下单多步）—— */
.step-bar { display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin: 0 auto var(--space-7); flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; color: var(--text-3);
  font-size: var(--text-sm); font-weight: 600; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--bg-3);
  color: var(--text-3); font-size: 13px; font-weight: 700; }
.step.active { color: var(--primary); }
.step.active .dot { background: var(--primary); color: #fff; }
.step.done .dot { background: var(--success-bg); color: var(--success); }
.step-line { width: 46px; height: 2px; background: var(--border); border-radius: 2px; }

/* —— Tabs（内容切换；语义别名，兼容 .filter-tabs 用法）—— */
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6); overflow-x: auto; }
.tab { padding: 12px 18px; font-size: var(--text-sm); font-weight: 600; color: var(--text-3);
  cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .18s, border-color .18s; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* —— 分页 —— */
.pager { display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin-top: var(--space-7); flex-wrap: wrap; }
.pager button, .pager a { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius-md); color: var(--text-2);
  font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: all .18s; }
.pager button:hover:not(:disabled), .pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* —— 工具条（列表页筛选 / 排序 / 结果计数）—— */
.toolbar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  margin-bottom: var(--space-5); }

@media (max-width: 768px) {
  .page-main { padding: var(--space-6) 0 var(--space-8); }
  .panel { padding: var(--space-5); }
  .form-card { padding: var(--space-5); }
  .step-line { width: 20px; }
  .page-banner { padding: var(--space-6) 0 var(--space-5); }
}

/* =============================================================================
 * 29. 详情 / 预约 / 下单组件
 * -----------------------------------------------------------------------------
 * 供 counselor.html（咨询师详情）与 Wave2 预约/结算链路（booking-topic /
 * booking-consent / booking-pay）共用，统一单一来源，页面不再各自定义。
 * ========================================================================== */
/* —— 排版小工具 —— */
.push-right { margin-left: auto; }
.text-center { text-align: center; }
.filter-bar .filter-label { font-weight: 700; color: var(--text-2); font-size: var(--text-sm); }

/* —— 徽章 —— */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600;
  background: var(--bg-3); color: var(--text-2); }
.badge-primary { background: var(--primary-50); color: var(--primary-700); }
.badge-plain { background: var(--bg-3); color: var(--text-2); }
.badge-warm { background: #FDF1EC; color: var(--accent-dark); }
.badge-success { background: var(--success-bg); color: #0B7350; }
.badge-warn { background: var(--warning-bg); color: #8A5A12; }
.badge-danger { background: var(--crisis-bg); color: var(--crisis-ink); }

/* —— 大头像（详情页）—— */
.avatar-lg { width: 88px; height: 88px; font-size: 30px; object-fit: cover;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--border); }

/* —— 暖色标签（擅长议题）—— */
.tag-pill.warm, .counselor-tag.warm { background: #FDF1EC; color: var(--accent-dark); }

/* —— 数据条（浅底 · 4 格）—— */
.stats-inline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2);
  padding: var(--space-4); background: var(--bg-2); border-radius: var(--radius-md); text-align: center; }
.stats-inline > div b { display: block; font-size: var(--text-lg); font-weight: 700; color: var(--text); }
.stats-inline > div span { font-size: var(--text-xs); color: var(--text-3); }

/* —— 提示条（收费说明 / 注意事项）—— */
.info-note { font-size: var(--text-sm); color: var(--text-2); line-height: 1.9;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4); }

/* —— 详情两栏（内容 + 贴顶侧栏）—— */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: start; }
.detail-grid .sticky-side { position: relative; }
@media (min-width: 960px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .detail-grid .sticky-side { position: sticky; top: var(--space-4); }
}

/* —— 预约方式卡 —— */
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.mode-card { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3);
  cursor: pointer; text-align: center; transition: all .15s; background: var(--surface); }
.mode-card:hover { border-color: var(--primary); }
.mode-card.selected { border-color: var(--primary); background: var(--primary-50); }
.mode-card .m-icon { font-size: 22px; }
.mode-card .m-name { font-weight: 700; font-size: var(--text-sm); margin: 4px 0 2px; color: var(--text); }
.mode-card .m-desc { font-size: var(--text-xs); color: var(--muted); margin-bottom: 4px; }
.mode-card .m-price { font-size: var(--text-sm); color: var(--primary); font-weight: 700; }
.mode-card .m-price small { color: var(--text-4); font-weight: 400; }

/* —— 日期 / 时段选择 —— */
.day-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: var(--space-3); }
.day-chip { flex-shrink: 0; min-width: 64px; text-align: center; padding: 8px 6px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer;
  background: var(--surface); transition: all .15s; }
.day-chip:hover { border-color: var(--primary); }
.day-chip.selected { border-color: var(--primary); background: var(--primary-50); }
.day-chip .d-md { font-size: var(--text-xs); color: var(--text-2); font-weight: 600; }
.day-chip .d-wd { font-size: var(--text-xs); color: var(--text-4); margin-top: 2px; }
.day-chip.selected .d-wd { color: var(--primary); }
.day-chip .d-flag { font-size: 10px; color: var(--primary); font-weight: 700; }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { padding: 8px 0; text-align: center; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: var(--text-sm); cursor: pointer;
  background: var(--surface); transition: all .15s; }
.slot:hover { border-color: var(--primary); background: var(--primary-50); }
.slot.selected { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.slot.booked { background: var(--bg-3); color: var(--text-4); border-color: var(--border);
  cursor: not-allowed; font-size: var(--text-xs); }
.slot.booked i { font-style: normal; display: block; line-height: 1.2; margin-top: 1px; }
.slot-empty { color: var(--text-4); font-size: var(--text-sm); padding: var(--space-3) 0; }

/* —— 结算合计条 —— */
.booking-total { display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-4); margin-top: var(--space-4); border-top: 1px solid var(--border-light); }
.booking-total .t-price { font-size: var(--text-sm); color: var(--muted); }
.booking-total .t-price b { font-size: var(--text-2xl); color: var(--primary); font-weight: 700; margin-right: 4px; }
.booking-total .t-slot { font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }

/* —— 金额汇总行 —— */
.sum-list { border-top: 1px solid var(--border-light); }
.sum-list .item-row, .sum-list .sum-row { padding: var(--space-3) 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline;
  padding-top: var(--space-4); margin-top: var(--space-2); border-top: 1px solid var(--border); }
.sum-total .amt { color: var(--primary); font-weight: 800; font-size: var(--text-2xl); }

/* =============================================================================
 * 30. 测评作答 / 报告
 * -----------------------------------------------------------------------------
 * 供 scale.html（作答）与 report.html（报告）共用；替换两页原来的暖色渐变与
 * 旧灰蓝渐变、硬编码橙/蓝/红，收敛到 v4 令牌。
 * ========================================================================== */
/* 作答进度 */
.progress-wrap { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-4); }
.progress-meta { display: flex; justify-content: space-between; font-size: var(--text-sm);
  color: var(--muted); margin-bottom: var(--space-2); }
.progress-bar { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--primary); transition: width .3s; }

/* 题目 */
.q-title { font-size: var(--text-base); line-height: 1.7; margin-bottom: var(--space-4); color: var(--text); }
.q-opt { padding: var(--space-3); border: 1.5px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; margin-bottom: var(--space-2); transition: border-color .15s, background .15s, color .15s; }
.q-opt:hover { border-color: var(--primary-200); background: var(--primary-50); }
.q-opt.selected { border-color: var(--primary); background: var(--primary-50);
  color: var(--primary-700); font-weight: 600; }
.quiz-actions { display: flex; gap: var(--space-3); margin-top: var(--space-4); }

/* 量表引导头（替换暖色渐变卡） */
.quiz-intro { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-4); text-align: center; }
.quiz-intro .qi-icon { font-size: 56px; line-height: 1; margin-bottom: var(--space-2); }
.quiz-intro .qi-title { font-size: var(--text-2xl); font-weight: 800; color: var(--deep); margin-bottom: var(--space-2); }
.quiz-intro .qi-desc { color: var(--text-2); line-height: 1.7; margin-bottom: var(--space-3); }
.quiz-meta { display: inline-flex; gap: var(--space-3); align-items: center; font-size: var(--text-sm);
  color: var(--muted); background: var(--bg-2); padding: 6px 16px; border-radius: var(--radius-full); }

/* 结果分数大数 */
.score-num { font-size: 56px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.score-num small { font-size: var(--text-sm); color: var(--text-3); font-weight: 400; }

/* 危机卡（全站唯一高饱和红，不喧哗） */
.crisis-card { border: 1.5px solid var(--crisis-line); background: var(--crisis-bg);
  border-radius: var(--radius-lg); padding: var(--space-5); text-align: center; margin-top: var(--space-4); }
.crisis-card .cc-icon { font-size: 32px; margin-bottom: var(--space-2); }
.crisis-card .cc-title { font-weight: 800; color: var(--crisis-ink); font-size: var(--text-lg);
  margin-bottom: var(--space-2); }
.crisis-card .cc-body { color: #7C2D12; line-height: 1.8; }
.crisis-card .cc-hotline { font-size: var(--text-lg); color: var(--crisis-ink); font-weight: 800; }

/* 报告表格 */
.report-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.report-table th { text-align: left; padding: 8px; color: var(--text-3); font-weight: 600; }
.report-table td { padding: 8px; border-top: 1px solid var(--border-light); color: var(--text-2); }
.report-table td.num { font-weight: 600; color: var(--text); }

/* 报告查看 / 打印（单页文档，rp- 命名空间；仿专业测评报告排版） */
.rp-doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-7); margin: 0 auto; max-width: 820px; }
.rp-head { padding-bottom: var(--space-5); border-bottom: 3px double var(--primary-200, #9DB9F0); margin-bottom: var(--space-5); }
.rp-head-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.rp-brand { font-size: var(--text-sm); color: var(--primary); font-weight: 700; letter-spacing: .08em; }
.rp-title { font-family: Georgia, 'Times New Roman', 'Songti SC', 'SimSun', serif; font-size: var(--text-2xl); font-weight: 800; color: var(--text); margin: var(--space-3) 0 var(--space-1); letter-spacing: .02em; }
.rp-code { font-size: var(--text-xs); color: var(--text-3); }
.rp-meta { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center;
  font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-5); }
.rp-sec { margin-bottom: var(--space-6); }
.rp-sec-t { font-size: var(--text-lg); font-weight: 700; color: var(--text); margin-bottom: var(--space-3);
  padding-left: 10px; border-left: 4px solid var(--primary); }
.rp-text { line-height: 1.9; color: var(--text-2); white-space: pre-wrap; margin: 0; }
.rp-score-wrap { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.rp-gauge { flex: 0 0 auto; }
.rp-badge { flex: 1 1 200px; }
.rp-radar { display: flex; justify-content: center; margin-top: var(--space-4); }
.rp-basic { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }
.rp-basic-item { display: flex; flex-direction: column; gap: 2px; }
.rp-basic-k { font-size: var(--text-xs); color: var(--text-3); }
.rp-basic-v { font-size: var(--text-base); color: var(--text); font-weight: 600; }
.rp-dims { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.rp-dim { padding: var(--space-3) var(--space-4); background: var(--bg-2); border-radius: var(--radius-md); }
.rp-dim-h { display: flex; justify-content: space-between; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.rp-dim-score { color: var(--primary); }
.rp-dim-t { margin: 0; line-height: 1.8; color: var(--text-2); }
.rp-actions { display: flex; gap: var(--space-3); justify-content: center; margin-top: var(--space-6); }

/* —— §30.1 报告 v2：公文感排版 + 数据可视化增强（2026-09-22，Impeccable 评审） —— */
.rp-doc { counter-reset: rpsec; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.rp-sec-t::before { counter-increment: rpsec; content: counter(rpsec, decimal-leading-zero);
  font-size: var(--text-sm); font-weight: 800; color: var(--primary); margin-right: 10px; letter-spacing: .05em; }
.rp-kpis { display: flex; justify-content: center; margin: var(--space-5) 0 var(--space-2);
  border-block: 1px solid var(--border-light); padding: var(--space-4) 0; flex-wrap: wrap; }
.rp-kpi { flex: 1 1 0; min-width: 128px; text-align: center; padding: 0 var(--space-4);
  border-left: 1px solid var(--border-light); }
.rp-kpi:first-child { border-left: none; }
.rp-kpi-v { font-size: var(--text-xl); font-weight: 800; color: var(--text); line-height: 1.3;
  font-variant-numeric: tabular-nums; }
.rp-kpi-v .rp-kpi-unit { font-size: var(--text-sm); font-weight: 600; color: var(--text-3); margin-left: 2px; }
.rp-kpi-k { font-size: var(--text-xs); color: var(--text-3); margin-top: 2px; letter-spacing: .08em; }
.rp-scale { margin-top: var(--space-5); }
.rp-scale-row { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 3px; }
.rp-scale-seg { flex: 1; opacity: .26; border-radius: 999px; transition: opacity .2s; }
.rp-scale-seg.s-normal { background: var(--success); }
.rp-scale-seg.s-mild { background: var(--primary); }
.rp-scale-seg.s-moderate { background: var(--warning); }
.rp-scale-seg.s-severe { background: var(--crisis); }
.rp-scale-seg.on { opacity: 1; }
.rp-scale-cap { display: flex; justify-content: space-between; font-size: var(--text-xs);
  color: var(--text-3); margin-top: 6px; }
.rp-scale-cap b { color: var(--text); font-weight: 700; }
.rp-viz { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: center;
  margin-top: var(--space-5); }
.rp-bars { display: grid; gap: 10px; align-content: center; }
.rp-bar-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; }
.rp-bar-name { font-size: var(--text-sm); color: var(--text-2); text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-bar-track { height: 10px; background: #EEF1F6; border-radius: 999px; overflow: hidden; }
.rp-bar-fill { height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #9DB9F0, var(--primary)); }
.rp-bar-val { font-size: var(--text-sm); font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-bar-val .rp-bar-max { color: var(--text-4); font-weight: 500; }
.rp-dim { position: relative; }
.rp-dim::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 2px; background: var(--primary); opacity: .35; }
.rp-dim-bar { height: 5px; border-radius: 999px; background: #EEF1F6;
  margin: 6px 0 8px; overflow: hidden; }
.rp-dim-bar i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #9DB9F0, var(--primary)); }
/* —— 报告 v2.1：结果解读与建议 4 卡 —— */
.rp-adv { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.rp-adv-card { position: relative; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  background: var(--bg-2); padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 10px); overflow: hidden; }
.rp-adv-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: 3px; background: var(--ac, var(--primary)); }
.rp-adv-t { display: flex; align-items: baseline; gap: 8px; font-size: var(--text-sm);
  font-weight: 800; color: var(--text); margin-bottom: 6px; }
.rp-adv-n { font-size: var(--text-xs); font-weight: 800; color: var(--ac, var(--primary));
  font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.rp-adv-p { margin: 0; font-size: var(--text-sm); line-height: 1.9; color: var(--text-2); }

/* —— 报告 v2.1：下一步行动 CTA 卡 —— */
.rp-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.rp-next-card { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4);
  border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--surface);
  text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.rp-next-card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(43, 95, 217, .10); }
.rp-next-t { font-size: var(--text-base); font-weight: 800; color: var(--text); }
.rp-next-d { flex: 1; font-size: var(--text-sm); line-height: 1.7; color: var(--text-3); }
.rp-next-go { font-size: var(--text-sm); font-weight: 700; color: var(--primary); }
.rp-next-tip { margin: var(--space-3) 0 0; font-size: var(--text-xs); color: var(--text-4); line-height: 1.8; }
.rp-foot { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  font-size: var(--text-xs); color: var(--text-4); }
@media (max-width: 760px) {
  .rp-viz { grid-template-columns: 1fr; justify-items: center; }
  .rp-kpi { flex: 1 1 40%; border-left: none; padding: var(--space-2) 0; }
  .rp-bar-row { grid-template-columns: 76px 1fr auto; }
  .rp-adv, .rp-next { grid-template-columns: 1fr; }
}

@media print {
  .app-header, .app-tabbar, footer, .page-banner, .rp-actions { display: none !important; }
  body { background: #fff; }
  .page-main { padding: 0 !important; }
  .rp-doc { border: none; box-shadow: none; max-width: 100%; padding: 0; }
  .rp-sec, .rp-viz, .rp-scale, .rp-adv-card, .rp-next-card, .rp-dim { break-inside: avoid; }
  .rp-dim { background: #F5F7FB; }
  .rp-kpis, .rp-scale-row, .rp-scale-seg, .rp-bar-fill, .rp-dim-bar i,
  .rp-adv-card, .rp-adv-card::before, .rp-next-card, .rp-next-go,
  .rp-dim::before { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* =============================================================================
 * 31. 表单 / 问卷 / 订单 / 支付组件
 * -----------------------------------------------------------------------------
 * 供 Wave2 预约结算与商城/课程支付链路共用（booking-topic / booking-consent /
 * booking-pay / cart / shop-order / course-pay / intake）。
 * 收敛前这些问题在同一批页面里各写一份，并且重复覆盖 .card/.btn/.crumb/.step/
 * .empty/.muted（"只换了配色"的根因之一）。本次统一到单一来源，页面不再自带。
 * ========================================================================== */
:root { --wechat: #07C160; }

/* —— 竖向堆叠（替代各页 card margin-bottom）—— */
.stack > * + * { margin-top: var(--space-4); }

/* —— 金额强调（与 .v / .val 同用时覆盖为品牌蓝）—— */
.money { color: var(--primary); }

/* —— 危险操作的描边按钮（取消订单 / 申请退款）—— */
.btn-ghost-danger { background: var(--surface); color: var(--crisis-ink); border-color: var(--crisis-line); }
.btn-ghost-danger:hover:not(:disabled) { background: var(--crisis-bg); border-color: var(--crisis); }

/* —— 提示条 —— */
.alert { border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-sm);
  line-height: 1.8; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); }
.alert-info { background: var(--info-bg); border-color: var(--border-primary); color: var(--primary-700); }
.alert-success { background: var(--success-bg); border-color: #BFEAD8; color: #0B7350; }
.alert-warn { background: var(--warning-bg); border-color: #F0DFC0; color: #8A5A12; }
.alert-danger { background: var(--crisis-bg); border-color: var(--crisis-line); color: var(--crisis-ink); }

/* —— 问卷题目 —— */
.q-block { margin-bottom: var(--space-5); }
.q-block .q-title { font-weight: 700; margin-bottom: var(--space-3); color: var(--text); }
.q-title small { font-weight: 400; color: var(--text-4); font-size: var(--text-xs); margin-left: 6px; }
.q-desc { font-size: var(--text-xs); color: var(--text-3); margin-bottom: var(--space-2); line-height: 1.6; }
.options { display: flex; flex-direction: column; gap: var(--space-2); }
.option { padding: var(--space-3) var(--space-4); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer; transition: all .15s;
  font-size: var(--text-sm); display: flex; align-items: center; gap: 10px; background: var(--surface); }
.option:hover { border-color: var(--primary); background: var(--primary-50); }
.option.selected { border-color: var(--primary); background: var(--primary-50);
  color: var(--primary-700); font-weight: 600; }
.option .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text-4); flex-shrink: 0; }
.option.selected .dot { border-color: var(--primary); background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--surface); }
.option .box { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--text-4); flex-shrink: 0; }
.option.selected .box { border-color: var(--primary); background: var(--primary); }
.scale-row { display: flex; gap: 8px; flex-wrap: wrap; }
.scale-item { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border);
  display: grid; place-items: center; cursor: pointer; font-size: var(--text-sm);
  transition: all .15s; background: var(--surface); }
.scale-item:hover { border-color: var(--primary); }
.scale-item.selected { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
textarea.q-input { width: 100%; box-sizing: border-box; min-height: 90px; padding: var(--space-3);
  border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: var(--text-sm);
  font-family: inherit; resize: vertical; background: var(--surface); color: var(--text); }
textarea.q-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.char-count { text-align: right; font-size: var(--text-xs); color: var(--text-4); margin-top: 4px; }
.err-tip { color: var(--crisis-ink); font-size: var(--text-xs); margin-top: var(--space-2);
  text-align: center; min-height: 18px; }

/* —— 带原生 input 的选项（label 形态）—— */
.opt-list { display: flex; flex-direction: column; gap: var(--space-2); }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
/* 注意：§7 的 .opt 是「选填项」小字（color:--text-4 / 400），此处显式复位，
   否则选项文字会继承成浅灰 —— 历史缺陷，本次一并修正。 */
.opt { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 10px var(--space-3); cursor: pointer;
  font-size: var(--text-sm); font-weight: 400; color: var(--text);
  transition: all .15s; background: var(--surface); }
.opt:hover { border-color: var(--primary); }
.opt.selected { border-color: var(--primary); background: var(--primary-50); font-weight: 600; }
.opt input { accent-color: var(--primary); flex-shrink: 0; }
.sub-q { margin-top: var(--space-3); padding: var(--space-4); background: var(--bg-2); border-radius: var(--radius-md); }
.field-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.field-row:not(:last-child) { margin-bottom: var(--space-3); }
.field-row label { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-xs);
  color: var(--text-3); flex: 1; min-width: 140px; }
.field-row input, .field-row select { padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: var(--text-sm); font-family: inherit;
  background: var(--surface); color: var(--text); }
.field-row input:focus, .field-row select:focus { outline: none; border-color: var(--primary); }
.hint-tip { font-size: var(--text-xs); color: var(--text-3); line-height: 1.7; margin-top: var(--space-3); }
.flow-btns { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.flow-btns .btn { flex: 1; }

/* —— 知情同意书 —— */
.doc { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-4); max-height: 56vh; overflow-y: auto; font-size: var(--text-sm);
  line-height: 1.9; color: var(--text-2); }
.doc-title { text-align: center; font-size: var(--text-lg); font-weight: 700; color: var(--text); margin-bottom: var(--space-3); }
.doc h4 { font-size: var(--text-base); color: var(--text); margin: var(--space-4) 0 var(--space-2); }
.doc h4:first-of-type { margin-top: 0; }
.doc p { margin: 0 0 var(--space-2); }
.doc .important { color: var(--crisis-ink); font-weight: 600; }
.consent-box { display: flex; gap: 10px; align-items: flex-start; padding: var(--space-4);
  margin-top: var(--space-4); border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: var(--text-sm); line-height: 1.7; color: var(--text-2); cursor: pointer; }
.consent-box input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.consent-box.checked { border-color: var(--primary); background: var(--primary-50); }

/* —— 订单状态横幅（浅色，替代原深蓝渐变）—— */
.status-banner { border-radius: var(--radius-lg); padding: var(--space-5);
  border: 1px solid var(--border); background: var(--surface); }
.status-banner .sb-title { font-size: var(--text-2xl); font-weight: 800; color: var(--deep); margin-bottom: 6px; }
.status-banner .sb-desc { font-size: var(--text-sm); color: var(--muted); line-height: 1.7; }
.status-banner.warn { background: var(--warning-bg); border-color: #F0DFC0; }
.status-banner.warn .sb-title { color: #8A5A12; }
.status-banner.ok { background: var(--success-bg); border-color: #BFEAD8; }
.status-banner.ok .sb-title { color: #0B7350; }
.status-banner.bad { background: var(--bg-3); }

/* —— 订单流程条 —— */
.track { display: flex; gap: 6px; }
.track-step { flex: 1; text-align: center; font-size: var(--text-xs); color: var(--text-3); }
.track-step .bar { height: 4px; border-radius: 2px; background: var(--bg-3); margin-bottom: 6px; }
.track-step.done .bar { background: var(--primary); }
.track-step.done { color: var(--primary); font-weight: 600; }

/* —— 订单明细 / 键值行 —— */
.order-item { display: flex; gap: 12px; padding: var(--space-3) 0; border-bottom: 1px dashed var(--border-light); }
.order-item:last-child { border-bottom: none; }
.order-item .cover { width: 64px; height: 64px; flex: 0 0 64px; border-radius: var(--radius-md);
  overflow: hidden; display: grid; place-items: center; font-size: 28px; color: var(--primary);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); }
.order-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.order-item .body { flex: 1; min-width: 0; }
.order-item .t { font-weight: 600; line-height: 1.5; margin-bottom: 4px; color: var(--text); }
.order-item .p { font-size: var(--text-sm); color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: var(--text-sm); }
.kv .k { color: var(--muted); flex: 0 0 auto; }
.kv .v { text-align: right; word-break: break-all; color: var(--text); font-weight: 600; }

/* —— 时间线 —— */
.timeline { padding-left: 4px; }
.tl { display: flex; gap: 10px; font-size: var(--text-sm); padding: 5px 0; }
.tl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  margin-top: 7px; flex: 0 0 8px; }
.tl .dot.gray { background: var(--text-4); }
.tl .dot.green { background: var(--success); }
.tl .dot.red { background: var(--crisis); }
.tl .when { color: var(--text-3); font-size: var(--text-xs); margin-left: auto; white-space: nowrap; }

/* —— 支付方式选择 —— */
.pay-item { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 12px var(--space-4); cursor: pointer;
  font-size: var(--text-sm); transition: all .15s; background: var(--surface); }
.pay-item + .pay-item { margin-top: var(--space-2); }
.pay-item:hover { border-color: var(--primary); }
.pay-item.selected { border-color: var(--primary); background: var(--primary-50); }
.pay-item.disabled { opacity: .5; cursor: not-allowed; }
.pay-item input { accent-color: var(--primary); }
.pay-item .p-icon { font-size: 20px; }
.pay-item .p-name { font-weight: 600; color: var(--text); }
.pay-item .p-desc { display: block; font-size: var(--text-xs); color: var(--text-3);
  margin-top: 2px; font-weight: 400; }
.pay-item .p-tag { margin-left: auto; font-size: var(--text-xs); color: var(--text-3); }
.total-bar { display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-4); margin-top: var(--space-4); border-top: 1px solid var(--border); }
.total-bar .t-label { font-size: var(--text-sm); color: var(--muted); }
.total-bar .t-amount { font-size: var(--text-2xl); font-weight: 800; color: var(--primary); }

/* —— 支付通道 tab / 二维码 / 线下转账 —— */
.ch-tabs { display: flex; gap: 8px; margin: var(--space-4) 0 var(--space-3); }
.ch-tab { flex: 1; text-align: center; padding: 11px 6px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600; color: var(--text-2);
  cursor: pointer; background: var(--surface); transition: all .15s; user-select: none; }
.ch-tab:hover { border-color: var(--primary); }
.ch-tab.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); }
.qr-wrap { text-align: center; padding: 10px 0; }
.qr-box { display: inline-block; padding: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); line-height: 0; }
.qr-box svg { display: block; width: 240px; height: 240px; max-width: 68vw; }
.qr-tip { font-size: var(--text-sm); color: var(--text-2); margin: 12px 0 4px; line-height: 1.7; }
.qr-tip strong { color: var(--wechat); }
.qr-status { font-size: var(--text-sm); font-weight: 600; color: var(--primary); margin: 6px 0; }
.qr-hint { font-size: var(--text-xs); margin-top: 4px; color: var(--text-4); }
.pay-msg { font-size: var(--text-sm); color: var(--text-2); line-height: 1.8; padding: var(--space-3) 0; }
.pay-cta { display: inline-block; width: 100%; max-width: 320px; padding: 14px;
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius-md);
  font-weight: 700; font-size: var(--text-base); cursor: pointer; margin-top: var(--space-3);
  text-align: center; text-decoration: none; }
.pay-cta:hover { background: var(--primary-dark); color: #fff; }
.pay-cta:disabled { opacity: .6; cursor: not-allowed; }
.bank { font-variant-numeric: tabular-nums; background: var(--surface);
  border: 1px dashed var(--border-primary); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-top: 8px; color: var(--primary-700);
  font-size: var(--text-sm); line-height: 1.9; text-align: left; }
.paybox { text-align: left; background: var(--bg-2); border-radius: var(--radius-md);
  padding: var(--space-4); font-size: var(--text-sm); line-height: 1.8; color: var(--text-2); }

/* —— 购物车 —— */
.cart-list { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: auto 80px 1fr auto auto; gap: var(--space-3);
  padding: var(--space-4); border-bottom: 1px solid var(--border-light); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item .check { width: 20px; height: 20px; cursor: pointer; accent-color: var(--primary); }
.cart-item .cover { width: 80px; height: 80px; border-radius: var(--radius-md); overflow: hidden;
  display: grid; place-items: center; font-size: 34px; color: var(--primary);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); }
.cart-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 6px;
  line-height: 1.4; color: var(--text); }
.cart-item .info .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.cart-item .info .price { color: var(--primary); font-weight: 700; font-size: var(--text-base); }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; }
.qty-ctrl button { width: 32px; height: 32px; background: var(--surface); border: none;
  cursor: pointer; font-size: 16px; color: var(--text-2); }
.qty-ctrl button:hover { background: var(--primary-50); color: var(--primary); }
.qty-ctrl input { width: 48px; height: 32px; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); text-align: center; font-weight: 600;
  background: var(--surface); color: var(--text); }
.cart-item .del { color: var(--text-3); cursor: pointer; font-size: var(--text-sm);
  background: none; border: none; padding: 8px; }
.cart-item .del:hover { color: var(--crisis); }
.summary { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5); margin-top: var(--space-4); }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0;
  font-size: var(--text-sm); color: var(--text-2); }
.summary .row.total { font-size: var(--text-lg); font-weight: 700; color: var(--text);
  padding-top: var(--space-3); border-top: 1px solid var(--border); margin-top: var(--space-3); }
.summary .row.total .val { color: var(--primary); font-weight: 800; }

/* —— 推荐咨询师行 —— */
.rec-item { display: flex; gap: var(--space-3); padding: var(--space-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; align-items: center;
  transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s; }
.rec-item:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rec-avatar { width: 48px; height: 48px; border-radius: 50%; color: #fff; display: grid;
  place-items: center; font-size: 18px; font-weight: 700; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600)); }
.rec-info { flex: 1; min-width: 0; }
.rec-name { font-weight: 700; color: var(--text); }
.rec-meta { font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }
.rec-score { text-align: center; flex-shrink: 0; }
.rec-score b { font-size: var(--text-lg); color: var(--primary); }
.rec-score span { display: block; font-size: 10px; color: var(--text-3); }

@media (max-width: 620px) {
  .opt-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: auto 64px 1fr; row-gap: var(--space-2); }
  .cart-item .qty-ctrl, .cart-item .del { grid-column: 2 / -1; justify-self: end; }
  .ch-tabs { flex-wrap: wrap; }
}

/* =============================================================================
 * 32. 内容型页面（文章 / 课程 / 商城 / 直播 / 学习）
 * -----------------------------------------------------------------------------
 * 供 Wave3 十二页共用。收敛前这些页面各自定义 .card/.cover/.price/.tags/.stat/
 * .empty 等同名类，与 v4 已定义的同名类互相覆盖（"只改了配色"根因之二）。
 * 本区块改用不冲突的语义类名，页面不再自带 <style>；活动/详情/筛选复用
 * §21–§23 既有基元。
 * ========================================================================== */

/* —— 自适应卡片网格 —— */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.list-grid.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* —— 内容卡（文章 / 课程 / 商品 / 活动的统一外壳）—— */
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s; }
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }

/* 封面（默认 16:9 浅蓝占位，无图时显示 emoji）*/
.content-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  font-size: 52px; color: var(--primary); overflow: hidden;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); }
.content-cover img { width: 100%; height: 100%; object-fit: cover; }
.content-cover.short { aspect-ratio: 3 / 1; }
.content-cover.plain { background: var(--bg-2); }

/* 封面角标 */
.cb { position: absolute; padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; line-height: 1.6; }
.cb-tl { top: 10px; left: 10px; }
.cb-tr { top: 10px; right: 10px; }
.cb-bl { bottom: 10px; left: 10px; }
.cb-plain { background: rgba(255,255,255,.94); color: var(--primary-700); }
.cb-solid { background: var(--primary); color: #fff; }
.cb-warm { background: var(--accent); color: var(--accent-ink); }
.cb-dark { background: rgba(11,18,32,.76); color: #fff; letter-spacing: .3px; }

/* 卡片正文 */
.content-body { padding: var(--space-4); display: flex; flex-direction: column; flex: 1; }
.content-title { font-size: var(--text-base); font-weight: 700; color: var(--text); line-height: 1.45;
  margin: 6px 0 var(--space-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.content-excerpt { font-size: var(--text-sm); color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: auto; }
.content-foot { margin-top: var(--space-3); display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-2); font-size: var(--text-xs); color: var(--text-3); }
.content-price { font-weight: 800; color: var(--primary); font-size: var(--text-base); }
.content-price.free { color: var(--success); }
.content-price del { color: var(--text-4); font-weight: 400; font-size: var(--text-xs); margin-left: 6px; }
.content-meta { display: flex; gap: var(--space-3); flex-wrap: wrap;
  font-size: var(--text-xs); color: var(--text-3); margin-top: var(--space-2); }

/* 主题标签组 */
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-3); }
.topic-tag { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-full);
  background: var(--primary-50); color: var(--primary-700); }

/* —— 精选分组 —— */
.featured-box { margin-bottom: var(--space-6); }
.featured-box h2 { font-size: var(--text-xl); font-weight: 700; color: var(--primary); margin-bottom: var(--space-3); }

/* —— 列表页搜索输入 —— */
.search-input { padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: var(--text-sm); font-family: inherit; background: var(--surface); color: var(--text); }
.search-input:focus { outline: none; border-color: var(--primary); }
.toolbar .search-input { min-width: 180px; }

/* —— 分页 / 加载更多 —— */
.loadmore { text-align: center; margin-top: var(--space-6); }
.loadmore-note { text-align: center; margin-top: var(--space-5); color: var(--text-3); font-size: var(--text-sm); }

/* —— 正文排版（文章 / 课程详情）—— */
.prose { color: var(--text-2); line-height: 1.9; font-size: var(--text-base); }
.prose h2, .prose h3 { color: var(--text); margin: var(--space-5) 0 var(--space-2); font-weight: 700; }
.prose p { margin: 0 0 var(--space-3); }
.prose img { max-width: 100%; border-radius: var(--radius-md); }
.prose blockquote { border-left: 3px solid var(--primary-200); padding-left: var(--space-4);
  color: var(--text-3); margin: var(--space-4) 0; }
.prose ul, .prose ol { padding-left: var(--space-5); margin: 0 0 var(--space-3); }
.prose li { margin-bottom: 6px; }

/* 文章头图横幅 */
.banner-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-5);
  aspect-ratio: 3 / 1; display: grid; place-items: center; font-size: 64px; color: var(--primary);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); }
.banner-cover img { width: 100%; height: 100%; object-fit: cover; }

/* —— 评论 —— */
.comment-item { display: flex; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--border-light); }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600)); }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { font-size: var(--text-xs); color: var(--text-3); margin-bottom: 4px; }
.comment-text { color: var(--text-2); line-height: 1.7; font-size: var(--text-sm); }

/* —— 相关推荐行 —— */
.related-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; align-items: center;
  border-bottom: 1px solid var(--border-light); cursor: pointer; }
.related-item:last-child { border-bottom: none; }
.related-thumb { width: 64px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: grid; place-items: center; font-size: 22px; color: var(--primary);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-item .rtitle { font-size: var(--text-sm); font-weight: 600; color: var(--text); line-height: 1.5; }

/* —— 章节 / 课时 —— */
.chapter { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-3); }
.chapter-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); background: var(--bg-2); font-weight: 700; font-size: var(--text-sm); }
.lesson { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-light); font-size: var(--text-sm); }
.lesson-title { flex: 1; min-width: 0; color: var(--text-2); }
.lesson-dur { color: var(--text-4); font-size: var(--text-xs); }

/* —— 价格块（详情页）—— */
.price-block { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.price-block .now { font-size: var(--text-3xl); font-weight: 800; color: var(--primary); }
.price-block .now.free { color: var(--success); }
.price-block .old { color: var(--text-4); text-decoration: line-through; font-size: var(--text-sm); }

/* —— 数据条（浅底 3 格）—— */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2);
  padding: var(--space-4); background: var(--bg-2); border-radius: var(--radius-md); text-align: center; }
.stat-band .s-num { display: block; font-size: var(--text-lg); font-weight: 700; color: var(--text); }
.stat-band .s-lbl { font-size: var(--text-xs); color: var(--text-3); }

/* —— 杂项 —— */
.stars { color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.owned-bar { display: flex; align-items: center; gap: 8px; padding: 10px var(--space-4);
  background: var(--success-bg); border: 1px solid #BFEAD8; border-radius: var(--radius-md);
  color: #0B7350; font-size: var(--text-sm); font-weight: 600; }
.guarantee { display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: var(--text-xs); color: var(--text-3); }
.guarantee span { display: inline-flex; align-items: center; gap: 4px; }
.filter-label { font-size: var(--text-xs); color: var(--text-3); font-weight: 800; margin-right: 4px; }
.grow { flex: 1; min-width: 0; }

/* —— 阅读进度条（文章详情置顶）—— */
.readbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 99;
  background: var(--primary); transition: width .1s linear; }

/* —— 文章副标题 —— */
.article-subtitle { font-size: var(--text-lg); color: var(--text-2); margin-bottom: var(--space-3); line-height: 1.6; }

/* —— 元信息条（带下边界）—— */
.meta-bar { display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: var(--text-sm);
  color: var(--text-3); margin-bottom: var(--space-5); padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border); }

/* —— 工具条右对齐变体 —— */
.toolbar.end { justify-content: flex-end; }

/* —— 按钮激活态（点赞 / 收藏）—— */
.btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

/* —— 详情页大封面 —— */
.detail-cover { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; place-items: center; font-size: 104px; color: var(--primary);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }

/* —— 媒体类型胶囊（课程详情）—— */
.media-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600;
  color: var(--primary-700); background: var(--primary-50); border: 1px solid var(--primary-100);
  border-radius: var(--radius-full); padding: 4px 12px; margin-bottom: var(--space-4); }

/* —— 讲师行 —— */
.instructor-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border); margin-bottom: var(--space-4); }
.instructor-row .i-name { font-weight: 700; color: var(--text); }
.instructor-row .i-title { font-size: var(--text-sm); color: var(--text-3); margin-top: 2px; }

/* —— 并排等宽按钮行 —— */
.btn-row { display: flex; gap: var(--space-3); margin: var(--space-4) 0; }
.btn-row .btn { flex: 1; }

/* —— 章节序号 —— */
.chapter-head .num { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px;
  border-radius: 50%; background: var(--primary-50); color: var(--primary);
  font-size: var(--text-xs); font-weight: 700; }

/* —— 分组小标题（左对齐 · 带圆点 / 计数 / 更多）—— */
.group-head { display: flex; align-items: center; gap: 10px; margin: var(--space-6) 0 var(--space-4);
  font-size: var(--text-lg); font-weight: 700; color: var(--text); }
.group-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: 0 0 8px; }
.group-head .count { font-weight: 400; color: var(--text-3); font-size: var(--text-sm); }
.group-head .more { margin-left: auto; font-size: var(--text-sm); font-weight: 500; color: var(--primary); cursor: pointer; }

/* —— 卡片内多行元信息 —— */
.meta-lines { display: flex; flex-direction: column; gap: 6px; margin: var(--space-2) 0; }
.meta-line { font-size: var(--text-sm); color: var(--text-3); display: flex; gap: 6px; align-items: center; }

/* —— 进度条满额态（名额已满）—— */
.progress-fill.full { background: var(--crisis); }

/* —— 事实清单（活动详情的时间/地点/名额）—— */
.fact-list { display: flex; flex-direction: column; gap: 10px; margin: var(--space-4) 0;
  padding: var(--space-4); background: var(--bg-2); border-radius: var(--radius-md); }
.fact-row { display: flex; gap: 10px; font-size: var(--text-sm); color: var(--text-2); line-height: 1.7; }
.fact-row b { min-width: 64px; color: var(--text); font-weight: 600; flex-shrink: 0; }

/* —— 表单字段（弹窗 / 内联表单）—— */
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field label .req { color: var(--crisis); }
.field input, .field textarea { width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: var(--text-sm);
  font-family: inherit; background: var(--surface); color: var(--text); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.form-error { color: var(--crisis-ink); font-size: var(--text-sm); margin-bottom: var(--space-3); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.skeleton.tall { height: 300px; border-radius: var(--radius-lg); }

/* —— 工具条带下边界变体 —— */
.toolbar.line { justify-content: space-between; padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.toolbar .count { font-size: var(--text-sm); color: var(--text-3); }

/* —— 购物车悬浮按钮 —— */
.cart-fab { position: fixed; right: 24px; bottom: 88px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 22px;
  box-shadow: 0 8px 24px -8px rgba(43,95,217,.65); cursor: pointer; z-index: 90; border: none;
  text-decoration: none; transition: transform .2s var(--ease-out); }
.cart-fab:hover { transform: scale(1.08); }
.cart-fab .badge { position: absolute; top: -4px; right: -4px; background: var(--crisis); color: #fff;
  font-size: 11px; padding: 2px 7px; border-radius: var(--radius-full); font-weight: 700; }

/* —— 等分两栏（商品 / 内容 图 + 信息）—— */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.detail-cover.square { aspect-ratio: 1; font-size: 120px; }

/* —— 价格展示盒 —— */
.price-box { background: var(--bg-2); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-4); }

/* —— 商品简介 —— */
.product-desc { color: var(--text-2); line-height: 1.8; margin-bottom: var(--space-5); font-size: var(--text-sm); }

/* —— 数量选择行 —— */
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-5); flex-wrap: wrap; }
.qty-row .lbl { font-weight: 600; color: var(--text-2); }

/* —— 评价条目 —— */
.review-item { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-light); }
.review-item:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: var(--text-sm); flex-wrap: wrap; }
.review-text { color: var(--text-2); line-height: 1.7; }

@media (max-width: 768px) {
  .split-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* =============================================================================
 * 33. 直播（列表 / 直播间）
 * -----------------------------------------------------------------------------
 * §15 的 .live-card/.live-title 是「首页深色推荐卡」，与直播列表页同名不同义，
 * 收敛时列表页改用 .content-card，此处补充直播专属变体。
 * ========================================================================== */

/* 深色封面变体（直播中为红，未开播为品牌深蓝）*/
.content-cover.dark { background: linear-gradient(135deg, var(--primary-600), var(--deep)); color: #fff; }
.content-cover.dark.is-live { background: linear-gradient(135deg, var(--crisis), var(--crisis-dark)); }

/* 封面右下角标 */
.cb-br { bottom: 10px; right: 10px; }

/* LIVE 角标（呼吸）*/
.cb-live { background: #fff; color: var(--crisis); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* 直播主持人行 */
.live-host { font-size: var(--text-sm); color: var(--text-2); margin-bottom: 8px; }

/* 直播间：视频区 + 聊天栏 */
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-4); align-items: start; }
.room-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; place-items: center; font-size: 64px; color: rgba(255,255,255,.85);
  background: linear-gradient(135deg, var(--primary-600), var(--deep)); }
.room-video.is-live { background: linear-gradient(135deg, var(--crisis), var(--crisis-dark)); }
.room-video img, .room-video video { width: 100%; height: 100%; object-fit: cover; }
.room-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-full); background: rgba(255,255,255,.94);
  color: var(--crisis); font-size: var(--text-xs); font-weight: 700; }
.room-overlay { position: absolute; inset: auto 0 0 0; padding: var(--space-4);
  background: linear-gradient(transparent, rgba(11,18,32,.72)); color: #fff; }
.room-overlay .rt { font-size: var(--text-lg); font-weight: 700; line-height: 1.4; }
.room-overlay .rm { font-size: var(--text-xs); opacity: .85; margin-top: 4px; }

/* 聊天栏 */
.chat-card { display: flex; flex-direction: column; height: 520px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.chat-head { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: var(--text-sm); display: flex; align-items: center; justify-content: space-between; }
.chat-list { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { font-size: var(--text-sm); line-height: 1.6; color: var(--text-2); word-break: break-word; }
.chat-msg .who { color: var(--primary); font-weight: 600; margin-right: 6px; }
.chat-input { display: flex; gap: var(--space-2); padding: var(--space-3); border-top: 1px solid var(--border); }
.chat-input input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: var(--text-sm); font-family: inherit; background: var(--surface); color: var(--text); }
.chat-input input:focus { outline: none; border-color: var(--primary); }
.chat-input .btn { flex-shrink: 0; }

/* 聊天消息补充（时间 / 主播标识）*/
.chat-msg .time { display: block; font-size: 10px; color: var(--text-4); margin-top: 3px; }
.chat-msg.host .who { color: var(--crisis); }
.chat-host-badge { display: inline-block; background: var(--crisis); color: #fff; font-size: 10px;
  font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 5px; vertical-align: 1px; }
.chat-list .empty-mini { border: none; background: none; padding: var(--space-5) 0; }

/* 直播间画面分层：封面 0 < 画面/占位 1 < 遮罩 2 < 角标 3 */
.room-video .coverbg { position: absolute; inset: 0; z-index: 0; }
.room-video .room-stage { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.room-video .room-stage .ph-box { padding: var(--space-5); text-align: center;
  color: #fff; font-size: var(--text-sm); line-height: 1.9; }
.room-video .room-stage .big { font-size: 56px; line-height: 1; margin-bottom: var(--space-3); }
.room-video .room-overlay { z-index: 2; }
.room-video .room-badge { z-index: 3; }
.room-video.has-media { background: #0B1220; }
.room-video video { object-fit: contain; background: #000; }
/* 右上角状态胶囊（实时流 / 演示模式）*/
.room-chip { position: absolute; top: 14px; right: 14px; z-index: 3; padding: 4px 11px;
  border-radius: var(--radius-full); background: rgba(11,18,32,.62); color: #fff;
  font-size: var(--text-xs); font-weight: 600; }

@media (max-width: 960px) {
  .room-grid { grid-template-columns: 1fr; }
  .chat-card { height: 420px; }
}

/* —— 阶段标签兜底（app.js ACT_PHASE_TAG.ended = 'default'）—— */
.tag-default { background: var(--bg-3); color: var(--text-2); }

@media (max-width: 768px) {
  .list-grid, .list-grid.wide { grid-template-columns: 1fr; }
  .banner-cover { aspect-ratio: 16 / 9; }
}

/* =============================================================================
 * 34. 学习中心（我的学习 / 课程学习页）
 * -----------------------------------------------------------------------------
 * 供 learn.html（课程列表）与 study.html（播放器 + 目录 + 讨论/评价）共用。
 * 收敛前这两页自带 <style>，并重复定义 .side/.player/.doc/.tabs/.stars/.empty
 * 等同名类（"只改了配色"根因之三）。此处统一为不冲突的语义类名。
 * ========================================================================== */

/* —— 窄容器（个人中心类列表页）—— */
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 var(--space-5); }
@media (max-width: 620px) { .wrap-narrow { padding: 0 var(--space-4); } }

/* —— 我的课程条目（横向卡）—— */
.mycourse-item { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: var(--space-4);
  align-items: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-3);
  cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.mycourse-item:hover { border-color: var(--primary-100); box-shadow: var(--shadow-md); }
.mycourse-cover { width: 132px; height: 92px; border-radius: var(--radius-md); overflow: hidden;
  display: grid; place-items: center; font-size: 40px; color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--deep)); }
.mycourse-cover img { width: 100%; height: 100%; object-fit: cover; }
.mycourse-info { min-width: 0; }
.mycourse-info h3 { font-size: var(--text-base); font-weight: 700; color: var(--text);
  margin-bottom: 6px; line-height: 1.4; }
.mycourse-sub { font-size: var(--text-sm); color: var(--text-3); margin-bottom: var(--space-3); }
.mycourse-cta { align-self: center; }
@media (max-width: 620px) {
  .mycourse-item { grid-template-columns: 96px minmax(0, 1fr); row-gap: var(--space-3); }
  .mycourse-cover { width: 96px; height: 68px; font-size: 30px; }
  .mycourse-cta { grid-column: 2 / -1; justify-self: end; }
}

/* —— 证书卡（学习中心 / 课程内）—— */
.cert-card { background: linear-gradient(135deg, #FDF3E7, #F7E7D3); border: 1px solid #EBD6B8;
  border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; margin-bottom: var(--space-4); }
.cert-card .cc-ico { font-size: 46px; line-height: 1; margin-bottom: var(--space-2); }
.cert-card h3 { color: var(--deep); font-weight: 700; margin-bottom: var(--space-2); }
.cert-card .cc-meta { color: var(--text-3); font-size: var(--text-sm); margin-bottom: var(--space-4); }

/* —— 学习页顶栏（课程名 + 总进度）—— */
.study-bar { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  margin-bottom: var(--space-5); }
.study-bar .sb-name { font-size: var(--text-lg); font-weight: 800; color: var(--deep); }
.study-bar .sb-prog { display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 220px; max-width: 420px; }
.study-bar .sb-num { font-weight: 700; color: var(--primary); font-size: var(--text-sm);
  min-width: 40px; text-align: right; }

/* —— 学习页两栏（左目录 + 右正文）—— */
.study-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--space-5); align-items: start; }
.study-aside { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 16px;
  max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.study-aside .sa-head { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: var(--text-sm); color: var(--text); }
.study-aside .sa-body { overflow-y: auto; }
.sa-chap { padding: 10px var(--space-4); background: var(--bg-2); font-weight: 700;
  font-size: var(--text-xs); color: var(--text-2); }
.sa-item { position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px var(--space-4); cursor: pointer; font-size: var(--text-sm);
  border-left: 3px solid transparent; color: var(--text-2); }
.sa-item:hover { background: var(--bg-2); }
.sa-item.active { background: var(--primary-50); border-left-color: var(--primary);
  color: var(--primary); font-weight: 700; }
.sa-item .ic { width: 18px; text-align: center; flex-shrink: 0; }
.sa-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-item.done .nm { color: var(--success); }
.sa-item .dur { margin-left: auto; font-size: var(--text-xs); color: var(--text-4); flex-shrink: 0; }
.sa-item .mini { position: absolute; left: 0; bottom: 0; height: 2px;
  background: var(--primary); opacity: .6; }
@media (max-width: 900px) {
  .study-grid { grid-template-columns: 1fr; }
  .study-aside { position: static; max-height: none; }
  .study-aside .sa-body { max-height: 320px; }
}

/* —— 课时标题 / 正文 / 操作行 —— */
.lesson-heading { font-size: var(--text-lg); font-weight: 800; color: var(--deep);
  line-height: 1.45; margin-bottom: var(--space-4); }
.lesson-doc { line-height: 1.9; color: var(--text-2); white-space: pre-wrap; }
.lesson-actions { display: flex; gap: 10px; margin-top: var(--space-4);
  flex-wrap: wrap; align-items: center; }

/* —— 通用播放器容器（视频 / PDF / 占位）—— */
.player { background: #0B1220; border-radius: var(--radius-md); overflow: hidden;
  min-height: 120px; display: grid; place-items: center; }
.player video { width: 100%; max-height: 520px; background: #000; display: block; }
.player iframe { width: 100%; height: 560px; border: 0; background: #fff; display: block; }
.player .ph { color: #94A3B8; padding: 48px; text-align: center; line-height: 1.9; }

/* —— 音频课时卡（深色 → 品牌渐变）—— */
.audio-card { border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-400) 55%, #6E9C8B 100%); }
.audio-card .ac-top { display: flex; align-items: center; gap: 16px; }
.audio-card .ac-cover { width: 74px; height: 74px; border-radius: 18px; flex: 0 0 auto;
  background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 36px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.audio-card .ac-meta { min-width: 0; flex: 1; }
.audio-card .ac-title { font-weight: 800; font-size: var(--text-lg); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-card .ac-sub { font-size: var(--text-xs); opacity: .85; margin-top: 5px; }
.audio-card .ac-play { width: 54px; height: 54px; border-radius: 50%; border: none;
  background: #fff; color: var(--primary-600); font-size: 22px; flex: 0 0 auto;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.audio-card .ac-play:active { transform: scale(.95); }
.audio-card .ac-bar { display: flex; align-items: center; gap: 12px; }
.audio-card .ac-time { font-variant-numeric: tabular-nums; font-size: var(--text-xs);
  opacity: .92; min-width: 44px; text-align: center; }
.audio-card .ac-track { flex: 1; height: 6px; border-radius: 999px; position: relative;
  background: rgba(255,255,255,.3); cursor: pointer; }
.audio-card .ac-fill { height: 100%; width: 0%; background: #fff; border-radius: 999px; }
.audio-card .ac-rate { font-size: var(--text-xs); font-weight: 700; cursor: pointer;
  background: rgba(255,255,255,.18); border: none; color: #fff;
  border-radius: 999px; padding: 5px 11px; }

/* —— 付费闸门（未解锁课时）—— */
.paywall { text-align: center; padding: var(--space-7) var(--space-4); }
.paywall .pw-ico { font-size: 56px; line-height: 1; margin-bottom: 10px; }
.paywall .pw-title { color: var(--deep); font-size: var(--text-lg); font-weight: 800; margin-bottom: 6px; }
.paywall .pw-amt { color: var(--primary); font-weight: 800; font-size: var(--text-2xl); margin: 10px 0 18px; }
.paywall p { color: var(--text-2); font-size: var(--text-sm); line-height: 1.7; margin-bottom: 18px; }

/* —— 直播课时占位 —— */
.live-box { text-align: center; padding: var(--space-6); }
.live-box .big { font-size: 64px; line-height: 1; margin-bottom: var(--space-3); }

/* —— 测验题目 —— */
.quiz-q { margin-bottom: var(--space-5); }
.quiz-q .stem { font-weight: 600; color: var(--text); margin-bottom: 10px; }

/* —— 讨论帖 / 回复 —— */
.thread { border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-4); margin-bottom: var(--space-3); }
.thread .t { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.thread .b { font-size: var(--text-sm); color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }
.reply { margin: 8px 0 0 16px; padding: 8px 12px; background: var(--bg-2);
  border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--text-2); }

/* —— 评分星（可点选）—— */
.star-pick { font-size: 26px; color: var(--accent); cursor: pointer;
  letter-spacing: 4px; user-select: none; line-height: 1; }
.star-pick span { transition: transform .12s var(--ease-out); display: inline-block; }
.star-pick span:hover { transform: scale(1.15); }

/* —— 课程完成证书条 —— */
.certbox { margin-top: var(--space-5); display: flex; justify-content: space-between;
  align-items: center; gap: var(--space-3); flex-wrap: wrap;
  background: linear-gradient(135deg, #FDF3E7, #F7E7D3); border: 1px solid #EBD6B8;
  border-radius: var(--radius-lg); padding: var(--space-4); }
.certbox h3 { color: var(--deep); font-size: var(--text-base); font-weight: 700; }
.certbox .cc-meta { font-size: var(--text-sm); color: var(--text-3); margin-top: 4px; }

/* =============================================================================
 * 35. 账户中心（我的 / 会员 / 积分 / 我的活动 / 我的测评 / 邀请领取）
 * -----------------------------------------------------------------------------
 * 供 me.html、membership.html、points.html、my-activities.html、
 * my-assessments.html、redeem.html 共用。这些页原各自内联 <style>，
 * 重复定义 .hero-card/.plan-card/.signin-card/.ledger-item/.item-row/
 * .status-pill/.pill/.day-pill 等同名或近名类（"只改了配色"根因之四）。
 * 此处统一为 me- / mb- / pt- / myact- / ma- / redeem- 前缀语义类名，
 * 避开 §6–§34 既有基元，尤其 §25 的 .item-row/.meta/.title/.desc/.k/.v。
 * ========================================================================== */

/* —— 按钮别名：历史页面广泛使用 .btn-secondary（v4 未定义）—— */
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

/* —— 胶囊型 Tab（账户中心筛选；与 §28 下划线 .tabs 区分）—— */
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.pill-tab { padding: 8px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600;
  color: var(--text-2); cursor: pointer; transition: all .18s; white-space: nowrap; }
.pill-tab:hover { border-color: var(--primary-200); color: var(--primary); }
.pill-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== me.html 个人中心 ===== */
.me-hero { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6); margin-bottom: var(--space-5); }
.me-avatar { width: 68px; height: 68px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: grid; place-items: center; font-size: 30px; color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--deep)); }
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-id { min-width: 0; flex: 1; }
.me-id .me-name { font-size: var(--text-xl); font-weight: 800; color: var(--deep); line-height: 1.3; }
.me-id .me-sub { font-size: var(--text-sm); color: var(--text-3); margin-top: 4px; }
.me-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.me-section { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); margin-bottom: var(--space-4); }
.me-section-head { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.me-section-head h2 { font-size: var(--text-lg); font-weight: 800; color: var(--deep); }
.me-section-head .more { font-size: var(--text-sm); color: var(--primary); font-weight: 600; }

.me-row { display: flex; align-items: center; gap: var(--space-3); padding: 14px 0;
  border-bottom: 1px solid var(--border-light); cursor: pointer; transition: color .18s; }
.me-row:last-child { border-bottom: none; }
.me-row:hover .me-row-name { color: var(--primary); }
.me-row .me-row-ico { width: 26px; text-align: center; font-size: 18px; flex: 0 0 auto; }
.me-row .me-row-body { flex: 1; min-width: 0; }
.me-row .me-row-name { font-weight: 600; color: var(--text); }
.me-row .me-row-desc { font-size: var(--text-xs); color: var(--text-4); margin-top: 2px; }
.me-row .me-row-arrow { color: var(--text-4); flex: 0 0 auto; }
.btn-copy { border: 1px solid var(--border); background: var(--surface); border-radius: 6px;
  font-size: 11px; padding: 2px 8px; cursor: pointer; color: var(--text-3);
  margin-left: 6px; vertical-align: middle; transition: all .15s; }
.btn-copy:hover { border-color: var(--primary); color: var(--primary); }

/* 可点击卡（订单 / 收藏） */
.me-click { cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.me-click:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); }
.me-order-head { display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 10px; }
.me-order-no { font-size: var(--text-sm); color: var(--text-3); }
.me-order-st { font-weight: 700; font-size: var(--text-sm); }
.me-order-body { display: flex; gap: 12px; align-items: center; }
.me-order-thumb { width: 48px; height: 48px; border-radius: 6px; flex: 0 0 auto;
  object-fit: cover; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, #F5E6D3, #E8D5B5); }
.me-order-info { flex: 1; min-width: 0; }
.me-order-title { font-weight: 600; color: var(--text); }
.me-order-time { font-size: var(--text-sm); color: var(--text-3); margin-top: 4px; }
.me-order-amt { font-weight: 800; color: var(--primary); }
.me-book-title { font-weight: 600; color: var(--text); }
.me-book-sum { font-size: var(--text-sm); color: var(--text-3); margin-top: 6px; line-height: 1.7; }

.me-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px;
  border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 700; white-space: nowrap;
  background: var(--bg-3); color: var(--text-3); }
.me-status.s-pending { background: var(--warning-bg); color: var(--warning); }
.me-status.s-confirmed { background: var(--info-bg); color: var(--info); }
.me-status.s-paid { background: var(--primary-50); color: var(--primary-700); }
.me-status.s-active, .me-status.s-in_progress { background: var(--success-bg); color: var(--success); }
.me-status.s-completed, .me-status.s-delivered, .me-status.s-done { background: var(--info-bg); color: var(--info); }
.me-status.s-cancelled, .me-status.s-refunded, .me-status.s-expired { background: var(--bg-3); color: var(--text-4); }
.me-status.s-refunding, .me-status.s-no_show, .me-status.s-unpaid { background: var(--warning-bg); color: var(--warning); }
.me-status.s-disputed { background: var(--error-bg); color: var(--error); }
/* 商城订单态补色（unpaid/delivering/closed 原仅 me.html 局部 map 覆盖，统一到共享徽章） */
.me-status.s-delivering { background: var(--info-bg); color: var(--info); }
.me-status.s-closed { background: var(--bg-3); color: var(--text-4); }

.appt-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-3); }
.appt-head { display: flex; align-items: center; gap: var(--space-3); cursor: pointer;
  margin: calc(var(--space-3) * -1) 0 0; padding: var(--space-2) 0; border-radius: var(--radius-md);
  transition: background .15s; }
.appt-head:hover { background: var(--bg-2); }
.appt-hmeta .appt-hint { font-size: var(--text-xs); color: var(--text-4); margin-top: 2px; }
.appt-avatar { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: grid; place-items: center; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--deep)); }
.appt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.appt-hmeta { min-width: 0; flex: 1; }
.appt-hmeta .appt-name { font-weight: 700; color: var(--text); }
.appt-hmeta .appt-tier { font-size: var(--text-xs); color: var(--text-3); margin-top: 2px; }
.appt-goal { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-2);
  line-height: 1.7; background: var(--bg-2); border-radius: var(--radius-md); padding: 10px 14px;
  white-space: pre-wrap; word-break: break-word; }
.appt-meta { margin-top: var(--space-3); display: flex; gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--text-sm); color: var(--text-3); }
.op-area { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-3);
  padding-top: var(--space-3); border-top: 1px dashed var(--border); }
.btn-op { min-height: 32px; padding: 5px 14px; font-size: var(--text-sm); font-weight: 600;
  border-radius: var(--radius-full); border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; transition: all .18s; }
.btn-op:hover { border-color: var(--primary); color: var(--primary); }
.btn-op-danger { color: var(--error); border-color: var(--error-bg); }
.btn-op-danger:hover { border-color: var(--error); color: var(--error); }
.op-disabled { opacity: .55; }
.hint-pending { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-3);
  font-size: var(--text-xs); color: var(--warning); background: var(--warning-bg);
  border-radius: var(--radius-md); padding: 7px 12px; }

/* ===== membership.html 会员 ===== */
.mb-current { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap; color: #fff; border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6); background: linear-gradient(135deg, var(--primary-600), var(--deep)); }
.mb-current .mc-t { font-size: var(--text-xl); font-weight: 800; margin-bottom: 4px; }
.mb-current .mc-s { opacity: .88; font-size: var(--text-sm); }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-4); }
.mb-card { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5); transition: transform .2s, box-shadow .2s, border-color .2s; }
.mb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mb-card.featured { border: 2px solid var(--primary); background: linear-gradient(180deg, var(--primary-50), var(--surface)); }
.mb-badge { position: absolute; top: -10px; right: 20px; background: var(--primary); color: #fff;
  padding: 2px 12px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 700; }
.mb-name { font-size: var(--text-lg); font-weight: 800; color: var(--deep); margin-bottom: var(--space-2); }
.mb-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--space-3); }
.mb-price .num { font-size: var(--text-3xl); font-weight: 800; color: var(--primary); }
.mb-price .orig { font-size: var(--text-sm); color: var(--text-4); text-decoration: line-through; }
.mb-desc { color: var(--text-3); font-size: var(--text-sm); margin-bottom: var(--space-3); min-height: 42px; line-height: 1.6; }
.mb-features { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.mb-features li { padding: 6px 0; font-size: var(--text-sm); color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.mb-features li::before { content: "\2713"; color: var(--primary); font-weight: 800; flex: 0 0 auto; }
.mb-table { width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.mb-table th, .mb-table td { padding: 12px var(--space-4); text-align: left; font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-light); }
.mb-table th { background: var(--bg-2); font-weight: 700; color: var(--text-2); }
.mb-table tr:last-child td { border-bottom: none; }
.mb-table .st-active { color: var(--success); font-weight: 700; }
.mb-table .st-expired { color: var(--text-4); }
.mb-table .st-cancelled { color: var(--error); }
.mb-scroll { overflow-x: auto; }

/* ===== points.html 积分 ===== */
.pt-hero { border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-4);
  color: #fff; background: linear-gradient(135deg, var(--primary-600), var(--deep)); }
.pt-hero .ph-label { opacity: .85; font-size: var(--text-sm); }
.pt-hero .ph-num { font-size: clamp(34px, 6vw, 48px); font-weight: 800; line-height: 1.15; margin: 6px 0; }
.pt-hero .ph-note { opacity: .82; font-size: var(--text-sm); }
.pt-signin { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-4); }
.pt-signin .ps-t { font-weight: 700; font-size: var(--text-base); margin-bottom: 8px; }
.pt-days { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pt-day { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--text-xs); font-weight: 700; background: var(--bg-3); color: var(--text-4); }
.pt-day.signed { background: var(--primary); color: #fff; }
.pt-referral { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  flex-wrap: wrap; background: var(--warning-bg); border: 1px solid var(--warning); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-5); }
.pt-referral .pr-t { font-weight: 700; margin-bottom: 4px; color: var(--text); }
.pt-referral .pr-s { font-size: var(--text-sm); color: var(--text-2); }
.pt-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800;
  color: var(--warning); background: var(--surface); border: 1px dashed var(--warning);
  border-radius: var(--radius-sm); padding: 5px 12px; letter-spacing: 1px; }
.pt-redeem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-3); }
.pt-redeem { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-4); text-align: center; cursor: pointer; transition: all .15s; }
.pt-redeem:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pt-redeem .pr-ico { font-size: 42px; margin-bottom: var(--space-2); line-height: 1; }
.pt-redeem .pr-name { font-weight: 700; margin-bottom: 4px; color: var(--text); }
.pt-redeem .pr-cost { color: var(--primary); font-weight: 800; }
.pt-redeem .pr-stock { font-size: var(--text-xs); color: var(--text-4); margin-top: 4px; }
.pt-ledger { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; }
.pt-lrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 12px var(--space-4); border-bottom: 1px solid var(--border-light); }
.pt-lrow:last-child { border-bottom: none; }
.pt-lrow .pr-reason { font-weight: 600; color: var(--text); }
.pt-lrow .pr-time { font-size: var(--text-xs); color: var(--text-4); margin-top: 2px; }
.pt-lrow .pr-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-lrow .pr-amt.in { color: var(--success); }
.pt-lrow .pr-amt.out { color: var(--error); }

/* ===== my-activities.html 我的活动 ===== */
.myact-list { display: flex; flex-direction: column; gap: var(--space-4); }
.myact-item { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.myact-item:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); }
.myact-thumb { min-height: 120px; display: grid; place-items: center; font-size: 44px; color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--deep)); }
.myact-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 120px; }
.myact-main { padding: var(--space-4); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.myact-title { font-size: var(--text-base); font-weight: 700; color: var(--text); line-height: 1.4; }
.myact-meta { font-size: var(--text-sm); color: var(--text-3); }
.myact-no { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: var(--success);
  background: var(--success-bg); border: 1px dashed var(--success); border-radius: 6px;
  padding: 5px 10px; display: inline-block; font-size: var(--text-sm); }
.myact-count { color: var(--warning); background: var(--warning-bg); border-radius: 6px;
  padding: 4px 8px; font-size: var(--text-xs); font-weight: 700; display: inline-block; }
.myact-acts { padding: var(--space-4); display: flex; flex-direction: column; gap: 8px;
  justify-content: center; min-width: 150px; }
@media (max-width: 760px) {
  .myact-item { grid-template-columns: 1fr; }
  .myact-acts { padding-top: 0; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
}

/* ===== my-assessments.html 我的测评 ===== */
.ma-hero { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-bottom: var(--space-5); flex-wrap: wrap; }
.ma-hero .mah-t { font-size: var(--text-2xl); font-weight: 800; color: var(--deep); }
.ma-hero .mah-s { color: var(--text-3); font-size: var(--text-sm); margin-top: 4px; }
.ma-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-3); }
.ma-head { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); }
.ma-title { font-weight: 700; font-size: var(--text-base); color: var(--text); }
.ma-code { font-size: var(--text-xs); color: var(--text-4); margin-top: 2px; }
.ma-meta { display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-sm);
  color: var(--text-3); margin-bottom: var(--space-3); }
.ma-meta b { color: var(--primary); font-size: var(--text-lg); font-weight: 800; }
.ma-ops { display: flex; gap: var(--space-2); flex-wrap: wrap; border-top: 1px dashed var(--border);
  padding-top: var(--space-3); }
.ma-pager { display: flex; justify-content: center; align-items: center; gap: var(--space-3);
  margin-top: var(--space-5); }
.ma-scroll { overflow-x: auto; }

/* ===== redeem.html 邀请领取 ===== */
.redeem-card { max-width: 560px; text-align: center; }
.redeem-ico { font-size: 48px; line-height: 1; margin-bottom: var(--space-3); }
.redeem-h { font-weight: 800; font-size: var(--text-lg); color: var(--deep); margin-bottom: var(--space-2); }
.redeem-p { color: var(--text-2); margin-bottom: var(--space-4); line-height: 1.8; }
.redeem-input { width: 100%; text-align: center; letter-spacing: 8px; text-transform: uppercase;
  font-size: var(--text-xl); font-weight: 800; padding: var(--space-3);
  border: 1.5px solid var(--border); border-radius: var(--radius-md); margin-bottom: var(--space-4); }
.redeem-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.redeem-facts { text-align: left; max-width: 440px; margin: 0 auto var(--space-5); }
.redeem-facts .fact-row { display: flex; gap: 10px; padding: 10px 8px;
  border-top: 1px solid var(--border-light); font-size: var(--text-sm); }
.redeem-facts .fact-row .fr-k { color: var(--text-3); white-space: nowrap; width: 84px; flex: 0 0 auto; }
.redeem-facts .fact-row .fr-v { color: var(--text); font-weight: 600; }

/* =============================================================================
 * 36. 认证 / 帮助 / 证书 / 客服 / 企业 / 危机（散页收敛）
 * -----------------------------------------------------------------------------
 * 供 login / register / help / cert / cs / enterprise / crisis 七页共用。
 * 这些页原各自内联 <style>，并使用旧调色板（#3E5C76 灰蓝、#D72638、#52C41A）
 * 及 .wrap/.chat-card/.chat-head/.chat-list/.chat-input/.section 等同名类
 * （"只改了配色"根因之五）。此处统一为 auth- / faq- / agr- / cert- / cs- /
 * eap- 前缀语义类名，并补齐 v4 缺失的 .section 区块间距与 .modal-body 滚动区。
 * 危机页的 .hotline-*/.tip-*/.emergency-note 为页级组件，一并收敛到此处。
 * ========================================================================== */

/* —— 通用内容区块（index.html / crisis.html 均引用）—— */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.tint { background: var(--surface); }
.section.flush-top { padding-top: 0; }
@media (max-width: 640px) { .section { padding: var(--space-8) 0; } }

/* —— 弹窗滚动正文（help 协议全文；补 §24 .modal 缺失）—— */
.modal-body { max-height: 68vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ===== 认证页（login / register）===== */
.auth-sms-row { display: flex; gap: 8px; }
.auth-sms-row .input { flex: 1; min-width: 0; }
.auth-sms-btn { padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--primary-200);
  background: var(--primary-50); color: var(--primary-700); font-size: var(--text-sm);
  font-weight: 600; white-space: nowrap; cursor: pointer; transition: all .18s; }
.auth-sms-btn:hover:not(:disabled) { border-color: var(--primary); }
.auth-sms-btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-helper { font-size: var(--text-xs); color: var(--text-4); text-align: center; margin-top: var(--space-4); }
.auth-helper a { color: var(--primary); font-weight: 600; }
.auth-tips { background: var(--warning-bg); border: 1px solid var(--warning); border-radius: var(--radius-md);
  padding: 12px 14px; font-size: var(--text-xs); color: var(--text-2); line-height: 1.7;
  margin-bottom: var(--space-5); }
.auth-tips strong { color: var(--warning); }
.auth-strength { height: 4px; background: var(--bg-3); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.auth-strength-bar { height: 100%; width: 0; transition: width .2s, background .2s; background: var(--error); }
.auth-strength-bar.weak { width: 33%; background: var(--error); }
.auth-strength-bar.mid { width: 66%; background: var(--warning); }
.auth-strength-bar.strong { width: 100%; background: var(--success); }
.auth-hint { font-size: var(--text-xs); margin-top: 6px; min-height: 18px; color: var(--text-4); }
.auth-hint.ok { color: var(--success); }
.auth-hint.wait { color: var(--text-4); }
.auth-invite { font-size: var(--text-xs); color: var(--text-4); margin-top: 4px; }

/* ===== 帮助中心（help）===== */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: var(--space-2); overflow: hidden; }
.faq-q { padding: var(--space-3) var(--space-4); cursor: pointer; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.faq-q:hover { background: var(--bg-2); }
.faq-q::after { content: "\25BC"; font-size: 10px; color: var(--text-4);
  transition: transform .18s; flex: 0 0 auto; }
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 var(--space-4) var(--space-4); color: var(--text-2);
  line-height: 1.8; font-size: var(--text-sm); }
.faq-item.open .faq-a { display: block; }
.agr-card { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-4); margin-bottom: var(--space-3); }
.agr-card h4 { color: var(--text); font-weight: 700; margin-bottom: 4px; }
.agr-card .agr-meta { font-size: var(--text-xs); color: var(--text-4); }
.agr-body { line-height: 1.9; color: var(--text-2); white-space: pre-wrap; font-size: var(--text-sm); }

/* ===== 证书验真（cert）===== */
.cert-form { display: flex; gap: 10px; margin-bottom: var(--space-5); }
.cert-form .input { flex: 1; min-width: 0; }
.cert-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6); text-align: center; }
.cert-seal { font-size: 64px; line-height: 1; margin-bottom: var(--space-3); }
.cert-box h1 { font-size: var(--text-2xl); font-weight: 800; color: var(--deep); margin-bottom: var(--space-2); }
.cert-verdict { font-weight: 800; font-size: var(--text-lg); }
.cert-verdict.valid { color: var(--success); }
.cert-verdict.invalid { color: var(--error); }
.cert-rows { margin-top: var(--space-5); text-align: left; }
.cert-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3);
  padding: 12px 0; border-bottom: 1px dashed var(--border); }
.cert-row:last-child { border-bottom: none; }
.cert-row .cr-k { color: var(--text-3); flex: 0 0 auto; }
.cert-row .cr-v { font-weight: 700; color: var(--text); word-break: break-all; text-align: right; }
.cert-row .cr-v.small { font-size: 12px; font-weight: 600; }
.cert-note { color: var(--text-3); margin-top: var(--space-3); }

/* ===== 在线客服（cs）===== */
.cs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3);
  flex-wrap: wrap; margin-bottom: var(--space-4); }
.cs-head .cs-sub { font-size: var(--text-sm); color: var(--text-3); margin-top: 4px; }
.cs-head .cs-sub a { color: var(--crisis); font-weight: 700; }
.cs-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--space-4); height: 600px; }
.cs-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow-y: auto; display: flex; flex-direction: column; }
.cs-list-head { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border);
  font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  position: sticky; top: 0; background: var(--surface); z-index: 1; }
.cs-item { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background .15s; }
.cs-item:hover { background: var(--bg-2); }
.cs-item.active { background: var(--primary-50); }
.cs-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.cs-subj { font-weight: 600; font-size: var(--text-sm); color: var(--text); }
.cs-st { font-size: 10px; padding: 2px 8px; border-radius: var(--radius-full);
  font-weight: 700; white-space: nowrap; background: var(--bg-3); color: var(--text-3); }
.cs-st.s-open { background: var(--success-bg); color: var(--success); }
.cs-st.s-pending { background: var(--warning-bg); color: var(--warning); }
.cs-st.s-closed { background: var(--bg-3); color: var(--text-4); }
.cs-last { font-size: var(--text-xs); color: var(--text-3); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.cs-time { font-size: 10px; color: var(--text-4); margin-top: 4px; }
.cs-win { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; overflow: hidden; }
.cs-win-head { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); background: var(--bg-2); }
.cs-win-head .cs-t { font-weight: 700; color: var(--text); }
.cs-win-head .cs-m { font-size: var(--text-xs); color: var(--text-4); margin-top: 2px; }
.cs-msgs { flex: 1; overflow-y: auto; padding: var(--space-4); background: var(--bg-soft); }
.cs-msg { display: flex; margin-bottom: var(--space-3); }
.cs-msg.mine { flex-direction: row-reverse; }
.cs-msg .cs-who { width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--text-sm); flex: 0 0 auto; }
.cs-msg.mine .cs-who { background: var(--success); }
.cs-bubble { max-width: 65%; margin: 0 12px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); font-size: var(--text-sm);
  line-height: 1.6; word-break: break-word; color: var(--text); }
.cs-msg.mine .cs-bubble { background: var(--success-bg); border-color: var(--success); }
.cs-msg .cs-mt { font-size: 10px; color: var(--text-4); margin-top: 4px; }
.cs-input { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border);
  display: flex; gap: 8px; background: var(--surface); }
.cs-input .input { flex: 1; }
@media (max-width: 880px) {
  .cs-grid { grid-template-columns: 1fr; height: auto; }
  .cs-msgs { min-height: 340px; }
  .cs-list { max-height: 300px; }
}

/* ===== 企业 EAP（enterprise）===== */
.eap-hero { background: linear-gradient(135deg, var(--primary-700), var(--deep)); color: #fff;
  padding: clamp(56px, 7vw, 88px) 0; text-align: center; }
.eap-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em;
  margin-bottom: var(--space-4); }
.eap-hero .sub { font-size: 17px; opacity: .92; max-width: 680px; margin: 0 auto var(--space-6);
  line-height: 1.75; }
.eap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.eap-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5); text-align: center; transition: transform .2s, box-shadow .2s; }
.eap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.eap-ico { font-size: 46px; line-height: 1; margin-bottom: var(--space-3); }
.eap-card h3 { font-size: var(--text-lg); font-weight: 700; color: var(--text); margin-bottom: var(--space-3); }
.eap-card p { font-size: var(--text-sm); color: var(--text-3); line-height: 1.75; margin-bottom: var(--space-3); }
.eap-price { font-size: var(--text-sm); color: var(--primary); font-weight: 700; }
.eap-adv-section { background: var(--bg-soft); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: clamp(48px, 6vw, 80px) 0; }
.eap-adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6);
  margin-top: var(--space-7); }
.eap-adv { display: flex; gap: var(--space-4); }
.eap-adv-ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center;
  font-size: 24px; }
.eap-adv h4 { font-size: var(--text-base); font-weight: 700; color: var(--text); margin-bottom: 6px; }
.eap-adv p { font-size: var(--text-sm); color: var(--text-3); line-height: 1.75; }
.eap-contact { padding: clamp(48px, 6vw, 80px) 0; }
.eap-contact-card { background: linear-gradient(135deg, var(--primary-700), var(--deep)); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 52px); max-width: 680px; margin: 0 auto;
  text-align: center; }
.eap-contact-card h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: var(--space-4); }
.eap-contact-card > p { opacity: .92; margin-bottom: var(--space-5); line-height: 1.7; }
.eap-contact-info { display: flex; justify-content: center; gap: var(--space-6); flex-wrap: wrap;
  font-size: 15px; margin-bottom: var(--space-5); }
.eap-contact-info a { color: #fff; font-weight: 700; text-decoration: underline; }
.eap-form { max-width: 480px; margin: var(--space-6) auto 0; display: grid; gap: 12px; text-align: left; }
.eap-form .input, .eap-form textarea { padding: 12px 16px; border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-md); font-size: 14px; font-family: inherit;
  background: rgba(255,255,255,.12); color: #fff; }
.eap-form textarea { min-height: 100px; resize: vertical; }
.eap-form .input::placeholder, .eap-form textarea::placeholder { color: rgba(255,255,255,.7); }
.eap-form .input:focus, .eap-form textarea:focus { outline: none; border-color: #fff;
  background: rgba(255,255,255,.18); }
.eap-submit { background: #fff; color: var(--primary-700); padding: 14px 32px; border: none;
  border-radius: var(--radius-md); font-weight: 700; font-size: 16px; cursor: pointer;
  transition: opacity .2s; }
.eap-submit:hover { opacity: .9; }
@media (max-width: 768px) {
  .eap-grid { grid-template-columns: 1fr; }
  .eap-adv-grid { grid-template-columns: 1fr; }
}

/* ===== 危机支持（crisis）===== */
.hotline-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4);
  margin-top: var(--space-5); }
.hotline-card { background: var(--surface); border: 1px solid var(--crisis-line);
  border-radius: var(--radius-lg); padding: var(--space-5); text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s; }
.hotline-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--crisis); }
.hotline-card .label { font-size: var(--text-sm); color: var(--muted); font-weight: 600; }
.hotline-card .num { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800;
  color: var(--crisis); letter-spacing: .01em; font-variant-numeric: tabular-nums;
  margin: var(--space-2) 0 var(--space-1); }
.hotline-card .hint { font-size: var(--text-xs); color: var(--text-3); margin-bottom: var(--space-4); }
.hotline-card .btn { width: 100%; }
.tip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.tip-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-5); }
.tip-card .q { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text);
  margin-bottom: var(--space-3); font-size: var(--text-base); }
.tip-card .q .ico { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-50);
  display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.tip-card .a { color: var(--text-2); font-size: var(--text-sm); line-height: 1.75; }
.emergency-note { background: var(--crisis-bg); border: 1px solid var(--crisis-line);
  border-radius: var(--radius-lg); padding: var(--space-5); color: var(--crisis-ink);
  font-size: var(--text-sm); line-height: 1.8; display: flex; gap: var(--space-3); align-items: flex-start; }
.emergency-note .ico { font-size: 22px; line-height: 1.2; }
.emergency-note strong { font-weight: 700; }
@media (max-width: 720px) {
  .hotline-row { grid-template-columns: 1fr; }
  .tip-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
 * 37. 首页轮播 / Feed 卡片（index.html 专属组件）
 * -----------------------------------------------------------------------------
 * index.html 原自带 ~20KB 内联 <style>，实为 v4.css 的孪生副本（含独立 :root
 * 与 --sp-* / --r* / --tertiary / --deep-2 令牌），是"单一来源"最大的一处背离。
 * 收敛后页面本体所用类已全部由 §1–§36 覆盖，此处仅补回未被覆盖的轮播与 Feed
 * 两组类，并按 v4 令牌重建（--sp-N→--space-N，--r-sm/--r/--r-lg
 * →--radius-md/--radius-lg/--radius-xl，--tertiary→--text-4）。
 * ========================================================================== */

/* —— 轮播 Banner —— */
.banner-section { padding: var(--space-8) 0 0; }
.banner { position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); }
.banner-slides { display: flex; transition: transform .5s var(--ease-out); min-height: 240px; }
.banner-slide { min-width: 100%;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-7) var(--space-5); color: var(--primary-700); }
.banner-slide.bs-empty { background: var(--surface-2); color: var(--muted); }
.banner-slide .badge { background: var(--accent); color: var(--accent-ink); padding: 4px 12px;
  border-radius: var(--radius-full); font-size: 11px; font-weight: 700;
  letter-spacing: .5px; margin-bottom: var(--space-4); }
.banner-slide h3 { font-size: 22px; font-weight: 700; margin-bottom: var(--space-2); }
.banner-slide p { font-size: 14px; opacity: .9; max-width: 480px; text-align: center; }
.banner-slide .placeholder-note { font-size: 12px; color: var(--text-4);
  margin-top: var(--space-4); font-style: italic; }
.banner-slide .b-cta { display: inline-flex; align-items: center; margin-top: var(--space-4);
  background: rgba(255,255,255,.94); color: var(--deep); padding: 10px 24px;
  border-radius: var(--radius-full); font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s; }
.banner-slide .b-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,32,72,.22); }
.banner-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex;
  justify-content: center; gap: 8px; }
.banner-dots .dot { width: 8px; height: 8px; border-radius: 50%;
  background: rgba(23,48,107,.22); transition: background .2s, width .2s; }
.banner-dots .dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* —— Feed 卡片（测评 / 咨询师 / 活动 / 直播 通用）—— */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: var(--space-5); }
.feed-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s; }
.feed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feed-card-img { aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #EEF2FB, #DCE4F6);
  display: flex; align-items: center; justify-content: center; }
.feed-card-img img { width: 100%; height: 100%; object-fit: cover; }
.feed-card-img .placeholder-icon { font-size: 52px; opacity: .45; }
.feed-card-img .placeholder-tag { position: absolute; bottom: 8px; left: 8px;
  background: rgba(16,23,36,.62); color: #fff; font-size: 11px; padding: 3px 10px;
  border-radius: var(--radius-full); backdrop-filter: blur(4px); }
.feed-card-body { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; }
.feed-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 45px; }
.feed-card-sub { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card-tag { display: inline-block; background: var(--primary-50); color: var(--primary-700);
  padding: 3px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600;
  margin-top: var(--space-3); align-self: flex-start; }
.feed-card-tag.tag-free { background: var(--primary); color: #fff; }
.feed-card-tag.tag-live { background: var(--crisis); color: #fff; }

/* =============================================================================
   §38 科普专区（learn.html · 文章 + 课程 + 直播 三合一）
   参考：简单心理「心理百科」——内容量小（<20 条）时用竖向板块而非分页签，
        三类内容一屏内同时可见，避免 2/3 内容藏在点击之后。
   命名：ls-*（learn science），与 §32 .content-card / §33 .room-* 复用不冲突。
   ============================================================================= */

/* 顶部锚点导航：一眼看到"三类都在这里" + 各自条数 */
.ls-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.ls-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface);
  color: var(--text-2); font-size: var(--text-sm); font-weight: 600; line-height: 1;
  transition: border-color .15s, color .15s; }
.ls-nav a:hover { border-color: var(--primary); color: var(--primary); }
.ls-nav .n { color: var(--text-4); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 板块 */
.ls-block { margin-bottom: var(--space-8); scroll-margin-top: 88px; }
.ls-block:last-child { margin-bottom: 0; }
.ls-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap; padding-bottom: var(--space-3); border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-5); }
.ls-title { display: flex; align-items: center; gap: 10px; font-size: var(--text-2xl);
  font-weight: 800; color: var(--deep); letter-spacing: -.01em; line-height: 1.25; }
.ls-title .ico { font-size: 22px; line-height: 1; }
.ls-sub { color: var(--muted); font-size: var(--text-sm); margin-top: 5px; }
.ls-more { color: var(--primary); font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }
.ls-more:hover { text-decoration: underline; }
.ls-grid { display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ls-skel { grid-column: 1 / -1; min-height: 140px; }
.ls-empty { grid-column: 1 / -1; text-align: center; padding: var(--space-7) var(--space-4);
  border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--muted); }
.ls-empty .ico { display: block; font-size: 30px; margin-bottom: var(--space-3); }
.ls-empty a { color: var(--primary); font-weight: 600; }

@media (max-width: 640px) {
  .ls-head { align-items: flex-start; }
  .ls-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
 * 39. 个人中心 Hub（me.html 总览页 · 2026-09-21 重构）
 * -----------------------------------------------------------------------------
 * me.html 由「6 个 tab 的功能页」改为「总览 Hub」：
 *   身份卡（复用 §35 .me-hero）→ 概览条（.mh-stats）→ 三组宫格（.mh-grid）
 *   → 内容区块（复用 §35 .me-section，承载预约/订单/收藏「最近 N 条」）。
 * 新类统一 mh- 前缀，避开 §6–§38 既有基元（尤其 §25 .item-row/.k/.v、
 * §35 .me-row/.me-section）。
 * ========================================================================== */

/* —— 概览条：4 格计数（待确认预约 / 在学课程 / 我的活动 / 我的收藏）—— */
.mh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3); margin-bottom: var(--space-6); }
.mh-stat { display: block; text-decoration: none; text-align: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4) var(--space-3); transition: border-color .18s, box-shadow .18s; }
.mh-stat:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); }
.mh-stat-n { font-size: var(--text-xl); font-weight: 800; color: var(--primary); line-height: 1.2; }
.mh-stat-n.zero { color: var(--text-4); }
.mh-stat-k { font-size: var(--text-xs); color: var(--text-3); margin-top: 4px; }

/* —— 分组行：复用 §35 .me-row，仅补 <a> 链接态的归一化（Hub 三组导航）—— */
.mh-group { margin-bottom: var(--space-4); }
a.me-row { text-decoration: none; color: inherit; }
a.me-row:hover .me-row-arrow { color: var(--primary); transform: translateX(2px); }
.me-row .me-row-arrow { transition: transform .18s, color .18s; }
.me-row .me-row-tag { flex: 0 0 auto; font-size: var(--text-xs); font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-full); background: var(--primary-50); color: var(--primary-700); }
.me-row .me-row-tag.warn { background: var(--warning-bg); color: var(--warning); }
.me-row .me-row-tag.crisis { background: var(--crisis-bg); color: var(--crisis-ink); }

/* —— 内容区块底部的「查看全部 / 收起」—— */
.mh-more { display: block; width: 100%; margin-top: var(--space-3); padding: 10px 0;
  background: none; border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--primary); font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  transition: border-color .18s, background .18s; }
.mh-more:hover { border-color: var(--primary-200); background: var(--primary-50); }

/* —— 区块内条数提示 —— */
.mh-count { font-size: var(--text-xs); color: var(--text-4); font-weight: 500; }

@media (max-width: 760px) {
  .mh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-hero { padding: var(--space-4) var(--space-5); row-gap: var(--space-3); }
  /* 身份卡操作按钮换行到独立一行并均分，避免挤压姓名列（≤620px 头部导航已隐藏） */
  .me-hero-actions { flex: 1 1 100%; }
  .me-hero-actions .btn { flex: 1; }
  .me-section { padding: var(--space-4) var(--space-5); }
}
@media (max-width: 460px) {
  .mh-stats { gap: var(--space-2); }
  .me-hero { gap: var(--space-4); }
}

/* =============================================================================
 * 40. 底部标签栏（移动端一级导航 · 2026-09-21）
 * -----------------------------------------------------------------------------
 * 背景：≤620px 时头部 .nav-menu（≤980px）与 .nav-actions .btn-ghost（≤620px）
 *       均被隐藏 ⇒ 手机上头部导航为零，进「个人中心」只能滚到页脚，是可达性缺口。
 * 方案：由 app.js renderTabBar() 注入 .app-tabbar（固定底栏，5 个一级入口），
 *       仅 ≤620px 显示；同时抬高 .crisis-fab / .cart-fab 避免与底栏重叠，
 *       并给 body 补底部内边距，防止页脚被底栏遮挡。
 * 命名：app-tabbar / tab-item / tab-ico / tab-label（新前缀，无冲突）。
 * ========================================================================== */
.app-tabbar { display: none; }

@media (max-width: 620px) {
  .app-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .app-tabbar .tab-item {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 56px; padding: 8px 0 7px; text-decoration: none;
    color: var(--text-3); font-size: 11px; font-weight: 600; line-height: 1;
    -webkit-tap-highlight-color: transparent; transition: color .18s;
  }
  .app-tabbar .tab-item:active { color: var(--primary-600); }
  .app-tabbar .tab-ico { display: block; width: 23px; height: 23px; }
  .app-tabbar .tab-ico svg { display: block; width: 100%; height: 100%; }
  .app-tabbar .tab-label { letter-spacing: .01em; }
  .app-tabbar .tab-item.active { color: var(--primary); }
  .app-tabbar .tab-item.active .tab-label { font-weight: 700; }

  /* 防遮挡：底栏高度 56px + 安全区 */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .crisis-fab { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 48px; height: 48px; font-size: 20px; }
  .cart-fab { bottom: calc(126px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 48px; height: 48px; font-size: 18px; }
}
@media print { .app-tabbar { display: none !important; } }

/* =============================================================================
 * 41. 评价中心 / 交易中心 / 账号设置（2026-09-21 · P1 补齐）
 * -----------------------------------------------------------------------------
 * my-reviews.html（rv-）· my-orders.html（mo-）· settings.html（复用 .field/.input）
 * 新前缀 rv- / mo- / setting-，避开 §35 me-、§39 mh-、§40 tab- 已占类名。
 * ========================================================================== */

/* —— 我的评价（my-reviews.html）—— */
.rv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-3); }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: 8px; }
.rv-type { font-size: var(--text-xs); font-weight: 700; color: var(--primary-700);
  background: var(--primary-50); padding: 2px 10px; border-radius: var(--radius-full); }
.rv-stars { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: var(--text-sm); white-space: nowrap; }
.rv-target { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.rv-content { font-size: var(--text-sm); color: var(--text-2); line-height: 1.75;
  white-space: pre-wrap; word-break: break-word; }
.rv-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rv-tag { font-size: var(--text-xs); color: var(--text-3); background: var(--bg-3);
  padding: 2px 10px; border-radius: var(--radius-full); }
.rv-reply { margin-top: var(--space-3); background: var(--bg-2); border-left: 3px solid var(--primary-200);
  border-radius: var(--radius-md); padding: 10px 14px; font-size: var(--text-sm);
  color: var(--text-2); line-height: 1.7; }
.rv-reply b { color: var(--primary-700); }
.rv-time { font-size: var(--text-xs); color: var(--text-4); margin-top: 10px; }

/* —— 我的交易 · 统一订单中心（my-orders.html）—— */
.mo-card { display: block; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3); transition: border-color .18s, box-shadow .18s; }
.mo-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); }
.mo-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: 10px; }
.mo-type { font-size: var(--text-xs); font-weight: 700; padding: 2px 10px;
  border-radius: var(--radius-full); background: var(--bg-3); color: var(--text-3); }
.mo-type.t-order { background: var(--primary-50); color: var(--primary-700); }
.mo-type.t-appointment { background: var(--success-bg); color: var(--success); }
.mo-type.t-course { background: var(--info-bg); color: var(--info); }
.mo-type.t-activity { background: var(--warning-bg); color: var(--warning); }
.mo-st { font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }
.mo-body { display: flex; align-items: center; gap: 12px; }
.mo-thumb { width: 48px; height: 48px; border-radius: 8px; flex: 0 0 auto; object-fit: cover;
  display: grid; place-items: center; font-size: 22px; background: var(--bg-3); }
.mo-info { flex: 1; min-width: 0; }
.mo-title { font-weight: 600; color: var(--text); }
.mo-sub { font-size: var(--text-sm); color: var(--text-3); margin-top: 4px; }
.mo-amt { font-weight: 800; color: var(--primary); white-space: nowrap; }
.mo-amt.free { color: var(--text-4); font-weight: 700; }
.mo-no { font-size: var(--text-xs); color: var(--text-4); margin-top: 8px;
  font-variant-numeric: tabular-nums; word-break: break-all; }
.mo-note { font-size: var(--text-sm); color: var(--text-3); background: var(--bg-2);
  border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: var(--space-4); line-height: 1.6; }
@media (max-width: 460px) { .mo-amt { font-size: var(--text-sm); } .mo-thumb { width: 40px; height: 40px; font-size: 18px; } }

/* —— 账号设置（settings.html）—— */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.setting-row:last-child { border-bottom: none; }
.setting-row .k { color: var(--text-2); font-size: var(--text-sm); flex: 0 0 auto; }
.setting-row .v { color: var(--text); font-weight: 600; font-size: var(--text-sm);
  text-align: right; word-break: break-all; min-width: 0; }
.setting-hint { font-size: var(--text-xs); color: var(--text-4); margin-top: 4px; }

/* =============================================================================
 * 42. 我的预约 / 我的收藏（2026-09-21 · v2.0 个人中心整合）
 * -----------------------------------------------------------------------------
 * my-appointments.html（复用 §35 .appt-* 卡片，仅补展开态 ap-）
 * my-bookmarks.html（bm-）
 * 新前缀 ap- / bm-，避开 §35 me-、§39 mh-、§40 tab-、§41 rv-/mo-/setting- 已占类名。
 * ========================================================================== */

/* —— 我的预约：卡片点击就地展开详情 —— */
.ap-caret { color: var(--text-4); font-size: 18px; line-height: 1; flex: 0 0 auto;
  margin-left: 4px; transition: transform .18s; }
.ap-caret.open { transform: rotate(180deg); }
.ap-detail { margin-top: var(--space-3); border-top: 1px dashed var(--border); padding-top: var(--space-3); }
.ap-detail-block { margin-bottom: var(--space-2); }
.ap-fallback { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-3);
  font-size: var(--text-sm); color: var(--text-3); background: var(--bg-2);
  border-radius: var(--radius-md); padding: 8px 12px; }
.ap-detail-foot { margin-top: var(--space-3); }
.ap-clink { font-size: var(--text-sm); font-weight: 600; color: var(--primary); }
.ap-clink:hover { text-decoration: underline; }

/* —— 我的收藏 —— */
.bm-list { display: flex; flex-direction: column; gap: var(--space-3); }
.bm-card { display: flex; gap: var(--space-4); align-items: flex-start; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5); transition: border-color .18s, box-shadow .18s; }
.bm-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); }
.bm-thumb { width: 72px; height: 72px; border-radius: var(--radius-md); flex: 0 0 auto; object-fit: cover;
  display: grid; place-items: center; font-size: 28px; background: var(--bg-3); }
.bm-body { flex: 1; min-width: 0; }
.bm-title { font-weight: 700; color: var(--text); line-height: 1.5; }
.bm-excerpt { font-size: var(--text-sm); color: var(--text-3); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: 10px; }
.bm-meta { font-size: var(--text-xs); color: var(--text-4); }
.bm-remove { flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface); color: var(--text-3);
  border-radius: var(--radius-full); padding: 4px 12px; font-size: var(--text-xs); cursor: pointer; transition: all .18s; }
.bm-remove:hover { border-color: var(--error); color: var(--error); }
@media (max-width: 460px) {
  .bm-thumb { width: 56px; height: 56px; font-size: 22px; border-radius: 10px; }
  .bm-card { padding: var(--space-4); gap: var(--space-3); }
}


/* ===== §43 通用收藏（6 类聚合 · v2.1 · 2026-09-22） ===== */
.bm-head { margin-bottom: 4px; }
.bm-type { display: inline-block; padding: 2px 9px; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; background: var(--bg-3); color: var(--text-2); }
.bm-type.t-article   { background: rgba(43,95,217,.10);  color: #2B5FD9; }
.bm-type.t-course    { background: rgba(124,58,237,.10); color: #6D28D9; }
.bm-type.t-live      { background: rgba(217,58,58,.10);  color: #D93A3A; }
.bm-type.t-product   { background: rgba(217,119,6,.12);  color: #B45309; }
.bm-type.t-counselor { background: rgba(5,150,105,.12);  color: #047857; }
.bm-type.t-event     { background: rgba(8,145,178,.12);  color: #0E7490; }
.pill-tab .n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px;
  font-size: 11px; line-height: 16px; text-align: center; border-radius: var(--radius-full);
  background: var(--bg-3); color: var(--text-3); }
.pill-tab.active .n { background: rgba(255,255,255,.25); color: #fff; }

/* ===== §44 商城 / 交易 / 购物车（淘宝式布局 · 2026-09-21） ===== */

/* —— 商城首页：吸顶搜索栏 —— */
.shop-search { position: sticky; top: 0; z-index: 30; background: var(--surface);
  border-bottom: 1px solid var(--border); padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.shop-search .field { position: relative; flex: 1; min-width: 0; }
.shop-search .field .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); pointer-events: none; font-size: 15px; }
.shop-search input { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 0 16px 0 38px; background: var(--bg-2); font-size: 14px; color: var(--text); }
.shop-search input:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.shop-search .go { flex: 0 0 auto; border: none; background: var(--primary); color: #fff; border-radius: var(--radius-full);
  padding: 0 20px; height: 40px; font-weight: 700; font-size: 14px; cursor: pointer; }

/* —— 商城首页：轻量 Banner —— */
.shop-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin: var(--space-4) 0;
  background: linear-gradient(120deg, #2B5FD9, #5B8DEF); color: #fff; padding: 18px 20px; }
.shop-banner .b-title { font-size: 18px; font-weight: 800; }
.shop-banner .b-sub { font-size: 13px; opacity: .92; margin-top: 6px; }

/* —— 商城首页：2 列商品网格（淘宝式卡片）—— */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shop-card { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s; }
.shop-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.shop-cover { position: relative; aspect-ratio: 1 / 1; background: var(--bg-2); overflow: hidden; }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-cover .emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; }
.shop-badge { position: absolute; left: 8px; top: 8px; background: rgba(217,58,58,.92); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); }
.shop-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.shop-title { font-weight: 600; color: var(--text); font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.shop-price { color: var(--crisis); font-weight: 800; font-size: 18px; line-height: 1.1; }
.shop-price .unit { font-size: 12px; font-weight: 700; }
.shop-price .dec { font-size: 13px; }
.shop-old { color: var(--text-4); font-size: 12px; text-decoration: line-through; margin-left: 6px; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-sold { font-size: 12px; color: var(--text-4); white-space: nowrap; }
.shop-shop { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3);
  max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-add { flex: 0 0 auto; width: 30px; height: 30px; border-radius: var(--radius-full); border: none;
  background: var(--primary); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md); }
.shop-add:active { transform: scale(.92); }

/* —— 商品详情：画廊 + SKU + 吸底操作栏 —— */
.pt-gallery { background: var(--surface); }
.pt-main { position: relative; aspect-ratio: 1 / 1; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.pt-main img { width: 100%; height: 100%; object-fit: cover; }
.pt-main .emoji { font-size: 88px; }
.pt-thumbs { display: flex; gap: 8px; padding: 10px 0; overflow-x: auto; }
.pt-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; cursor: pointer;
  border: 2px solid transparent; background: var(--bg-2); display: grid; place-items: center; font-size: 26px; }
.pt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pt-thumb.on { border-color: var(--primary); }
.pt-info { min-width: 0; }
.pt-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: var(--space-3) 0; }
.pt-price .now { color: var(--crisis); font-weight: 800; font-size: 26px; }
.pt-price .now .unit { font-size: 15px; }
.pt-price .old { color: var(--text-4); text-decoration: line-through; font-size: 13px; }
.pt-price .sold { margin-left: auto; color: var(--text-3); font-size: var(--text-sm); }
.pt-sku { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-3) 0; }
.pt-sku .opt { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-full);
  padding: 8px 16px; font-size: var(--text-sm); color: var(--text-2); cursor: pointer; transition: all .15s; }
.pt-sku .opt:hover:not(:disabled) { border-color: var(--primary-200); }
.pt-sku .opt.on { border-color: var(--primary); color: var(--primary); background: var(--primary-50); font-weight: 600; }
.pt-sku .opt:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pt-bar { display: none; }     /* 移动端吸底操作栏，桌面隐藏 */
.pt-inline { display: block; }  /* 桌面内联按钮，移动端隐藏 */
.tab-panel { padding-top: var(--space-4); }

/* —— 购物车：按店分组 + 吸底结算条 —— */
.cart-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: var(--space-4); }
.cart-group-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); }
.cart-group-head .shop-ico { font-size: 18px; }
.cart-group-head .shop-name { font-weight: 700; color: var(--text); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-group-head .all { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--text-3); cursor: pointer; white-space: nowrap; }
.cart-group .cart-item { border-left: none; border-right: none; border-radius: 0; }
.cart-settle { position: sticky; bottom: 0; z-index: 20; background: var(--surface);
  border-top: 1px solid var(--border); padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -4px 16px rgba(20,30,60,.06); }
.cart-settle .sel { font-size: var(--text-sm); color: var(--text-3); white-space: nowrap; }
.cart-settle .total { flex: 1; text-align: right; font-size: var(--text-sm); color: var(--text-3); }
.cart-settle .total b { color: var(--crisis); font-size: 20px; margin-left: 4px; }
.cart-settle .checkout { flex: 0 0 auto; border: none; background: var(--crisis); color: #fff; border-radius: var(--radius-full);
  padding: 0 26px; height: 44px; font-weight: 800; font-size: 15px; cursor: pointer; }
.cart-settle .checkout:disabled { background: var(--text-4); cursor: not-allowed; }

/* —— 我的订单：淘宝式订单卡（叠加在既有账本之上）—— */
.mo-ord { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); margin-bottom: var(--space-4); }
.mo-ord-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); }
.mo-shop { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-shop .ico { font-size: 16px; flex: 0 0 auto; }
.mo-ord-st { font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }
.mo-ord-items { padding: 4px 14px; }
.mo-ord-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.mo-ord-row .thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: var(--bg-2); display: grid; place-items: center; font-size: 24px; }
.mo-ord-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mo-ord-row .nm { flex: 1; min-width: 0; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-ord-row .sku { font-size: var(--text-xs); color: var(--text-3); margin-top: 4px; }
.mo-ord-row .pr { text-align: right; white-space: nowrap; }
.mo-ord-row .pr .p { color: var(--crisis); font-weight: 700; }
.mo-ord-row .pr .q { font-size: var(--text-xs); color: var(--text-4); }
.mo-ord-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border-light); }
.mo-ord-foot .sum { flex: 1; text-align: right; font-size: var(--text-sm); color: var(--text-3); }
.mo-ord-foot .sum b { color: var(--text); font-size: 16px; }
.mo-ord-foot .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.mo-ord-foot .acts a, .mo-ord-foot .acts button { font-size: var(--text-sm); }

/* —— 响应式：桌面多列网格 + 移动端吸底栏避让 TabBar —— */
@media (min-width: 768px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1080px) {
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .pt-inline { display: none; }                 /* 移动端改用吸底操作栏 */
  .pt-page .app-tabbar { display: none; }         /* 商品页移动端用吸底栏取代底部导航 */
  .pt-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(20,30,60,.08); padding: 8px 12px; gap: 10px; align-items: center; }
  .pt-bar .ic-link { display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 11px; color: var(--text-3); text-decoration: none; }
  .pt-bar .ic-link .e { font-size: 20px; }
  .pt-bar .spacer { flex: 1; }
  .pt-bar .b-add, .pt-bar .b-buy { border: none; border-radius: var(--radius-full); height: 40px;
    font-weight: 700; font-size: 14px; color: #fff; padding: 0 18px; cursor: pointer; }
  .pt-bar .b-add { background: linear-gradient(90deg, #FFB02E, #FF7A00); }
  .pt-bar .b-buy { background: linear-gradient(90deg, #FF5A4D, var(--crisis)); }
  .pt-page .page-main { padding-bottom: 76px; }

  .cart-settle { position: fixed; left: 0; right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)); z-index: 40; border-top: 1px solid var(--border); }
  .cart-page .page-main { padding-bottom: calc(56px + 76px + env(safe-area-inset-bottom, 0px)); }
}

/* —— §45 预约详情页 appointment-detail（ad-*） —— */
.ad-page .app-tabbar { display: none; }
.ad-hero { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.ad-hero .ad-code { font-size: var(--text-sm); color: var(--text-3); }
.ad-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5); margin-bottom: var(--space-4); }
.ad-section-title { font-size: var(--text-sm); font-weight: 700; color: var(--text-3);
  letter-spacing: .04em; margin-bottom: var(--space-3); display: flex; align-items: center; gap: 8px; }
.ad-section-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--primary); }
.ad-counselor { display: flex; align-items: center; gap: var(--space-3); }
.ad-avatar { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  background: var(--primary-50); color: var(--primary-700); display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 20px; }
.ad-counselor .ad-cmeta { min-width: 0; flex: 1; }
.ad-counselor .ad-name { font-weight: 700; font-size: var(--text-lg); color: var(--text); }
.ad-counselor .ad-tier { font-size: var(--text-sm); color: var(--text-3); margin-top: 2px; }
.ad-counselor .ad-clink { flex: 0 0 auto; font-size: var(--text-sm); color: var(--primary); text-decoration: none; }
.ad-kv { margin: 0; }
.ad-goal { font-size: var(--text-sm); color: var(--text-2); line-height: 1.7; }
.ad-ended { background: var(--bg-2); border: 1px dashed var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px; color: var(--text-3); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.step-line.done { background: var(--primary); }
.step-label { font-size: var(--text-sm); }
.slot-list { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-btn { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-full);
  padding: 8px 16px; font-size: var(--text-sm); color: var(--text); cursor: pointer; transition: all .15s; }
.slot-btn:hover { border-color: var(--primary); color: var(--primary); }
.slot-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ad-actions-inline { display: flex; }
.ad-bar { display: none; }
@media (max-width: 620px) {
  .ad-page .page-main { padding-bottom: calc(56px + 72px + env(safe-area-inset-bottom, 0px)); }
  .ad-actions-inline { display: none !important; }
  .ad-bar { display: flex; position: fixed; left: 0; right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(20,30,60,.08); padding: 8px 12px; gap: 10px; align-items: center; }
  .ad-bar .ad-spacer { flex: 1; }
  .ad-bar .btn-op { flex: 1; justify-content: center; }
}

/* —— §45.1 改签预约弹窗（rs-*，assets/reschedule.js 共享组件）——
 * 与预约咨询时同款日历表单（day-chips + slot-grid 复用 v4 既有类），此段仅补弹窗内布局。 */
.rs-modal { max-width: 520px; }
.rs-desc { font-size: var(--text-sm); }
.rs-body { min-height: 130px; }
.rs-body .day-chips { margin-top: var(--space-2); }
.rs-current { background: var(--primary-50); color: var(--primary-700); border-color: var(--border-primary);
  cursor: not-allowed; }
.rs-current:hover { border-color: var(--border-primary); background: var(--primary-50); }
.rs-current i { font-style: normal; display: block; line-height: 1.2; margin-top: 1px; }
.rs-manual { margin-top: var(--space-3); border-top: 1px dashed var(--border-light); padding-top: var(--space-2); }
.rs-manual summary { font-size: var(--text-sm); color: var(--text-3); cursor: pointer; user-select: none; padding: 4px 0; }
.rs-manual summary:hover { color: var(--primary); }
.rs-manual input { margin-top: var(--space-2); width: 100%; }
.rs-foot { margin-top: var(--space-4); border-top: 1px solid var(--border-light); padding-top: var(--space-4); }
.rs-pick { font-size: var(--text-sm); color: var(--text-2); margin-bottom: var(--space-3); }
.rs-pick b { color: var(--primary); }
@media (max-width: 620px) {
  .rs-modal { max-width: 100%; }
  .modal-mask { padding: var(--space-2); }
  .rs-body .day-chips { max-width: 100%; }
}

/* ============== 心理评估 section V2（2026-10-12）============== */
.pa-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-7); align-items: start; margin-top: var(--space-5); }
@media (max-width: 960px) { .pa-grid { grid-template-columns: 1fr; } }

/* 2×2 数字卖点 */
.pa-sell { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-5); padding: var(--space-5) var(--space-6); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.pa-sell-item { display: flex; align-items: baseline; gap: var(--space-2); }
.pa-sell-num { font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1; letter-spacing: -0.02em; }
.pa-sell-unit { font-size: 18px; font-weight: 600; color: var(--primary); margin-left: 1px; }
.pa-sell-label { font-size: 14px; color: var(--text-2); }

/* 价值主张 */
.pa-lead { margin-top: var(--space-6); text-align: center; }
.pa-lead-1 { font-size: 20px; font-weight: 600; color: var(--text-1); margin: 0 0 var(--space-2); }
.pa-lead-2 { font-size: 15px; color: var(--text-2); margin: 0; }

/* 痛点双列 */
.pa-pain { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-6); padding: var(--space-5); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); }
@media (max-width: 720px) { .pa-pain { grid-template-columns: 1fr; } }
.pa-pain-q { font-size: 15px; font-weight: 600; color: var(--text-1); margin: 0 0 var(--space-3); }
.pa-pain-list { list-style: none; margin: 0; padding: 0; }
.pa-pain-list li { font-size: 13px; color: var(--text-2); line-height: 1.7; padding-left: var(--space-3); position: relative; }
.pa-pain-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }

/* 底部 lead + 主 CTA */
.pa-bottom-lead { text-align: center; font-size: 16px; color: var(--text-1); font-weight: 500; margin: var(--space-7) 0 var(--space-5); }
.pa-cta { display: block; width: 100%; max-width: 360px; margin: 0 auto; padding: var(--space-4) var(--space-5); font-size: 17px; font-weight: 600; border-radius: var(--radius-md); text-align: center; }
.btn-dark { background: #1F2937; color: #fff; }
.btn-dark:hover { background: #111827; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17,24,39,.18); }

/* 右侧辅助面板 */
.pa-side { position: sticky; top: 80px; }
.pa-side-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: var(--space-5); box-shadow: 0 2px 12px rgba(15,23,42,.04); }
.pa-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.pa-side-eyebrow { font-size: 13px; font-weight: 600; color: var(--text-1); }
.pa-side-toggle { font-size: 12px; color: var(--primary); }
.pa-side-toggle:hover { color: var(--primary-dark); }
.pa-side-list { display: flex; flex-direction: column; gap: var(--space-2); }
.pa-side-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); transition: background .15s; }
.pa-side-row:hover { background: var(--bg-1); }
.pa-side-row-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-50); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.pa-side-row-body { flex: 1; min-width: 0; }
.pa-side-row-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.pa-side-row-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.pa-side-row-arrow { color: var(--text-3); font-size: 20px; line-height: 1; }
.pa-side-divider { text-align: center; font-size: 12px; color: var(--text-3); margin: var(--space-5) 0 var(--space-3); position: relative; }
.pa-side-divider::before, .pa-side-divider::after { content: ''; position: absolute; top: 50%; width: 30%; height: 1px; background: var(--border); }
.pa-side-divider::before { left: 0; }
.pa-side-divider::after { right: 0; }
.pa-side-help { display: flex; flex-direction: column; gap: var(--space-2); }
.pa-side-help-link { font-size: 13px; color: var(--text-2); padding: var(--space-2) 0; transition: color .15s; }
.pa-side-help-link:hover { color: var(--primary); }

/* 子标题（推荐量表） */
.section-subhead { display: flex; align-items: center; justify-content: space-between; margin: var(--space-8) 0 var(--space-5); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.section-subhead-title { font-size: 18px; font-weight: 600; color: var(--text-1); margin: 0; }
.section-subhead-more { font-size: 14px; color: var(--primary); }
.section-subhead-more:hover { color: var(--primary-dark); }

/* ============== 心理评估 introbar & faq（scales.html 专用）============== */
.pa-introbar { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-5) var(--space-6); margin: var(--space-6) 0; background: linear-gradient(135deg, #1F2937 0%, #374151 100%); border-radius: var(--radius-lg); color: #fff; }
.pa-introbar-num { display: flex; align-items: baseline; gap: var(--space-1); flex-shrink: 0; }
.pa-introbar-num > span:first-child { font-size: 36px; font-weight: 700; color: #fff; }
.pa-introbar-unit { font-size: 14px; color: rgba(255,255,255,.75); }
.pa-introbar-text { flex: 1; }
.pa-introbar-text strong { display: block; font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.pa-introbar-text span { font-size: 13px; color: rgba(255,255,255,.7); }
.pa-introbar .btn-dark { background: rgba(255,255,255,.95); color: #1F2937; flex-shrink: 0; }
.pa-introbar .btn-dark:hover { background: #fff; color: #111827; transform: translateY(-1px); }
@media (max-width: 720px) {
  .pa-introbar { flex-wrap: wrap; }
  .pa-introbar-text { flex: 1 1 100%; order: 3; }
  .pa-introbar-num { order: 1; }
  .pa-introbar .btn-dark { order: 2; }
}

.pa-faq { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.pa-faq-title { font-size: 18px; font-weight: 600; margin: 0 0 var(--space-5); }
.pa-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 720px) { .pa-faq-grid { grid-template-columns: 1fr; } }
.pa-faq-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); }
.pa-faq-q { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: var(--space-2); }
.pa-faq-card p { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 0 0 var(--space-3); }
.pa-faq-link { font-size: 14px; color: var(--primary); }
.pa-faq-link:hover { color: var(--primary-dark); }

/* ============== 咨询师团队橱窗 V2（2026-10-12 V3 浅色 + 轮播）============== */
.team-section { background: linear-gradient(180deg, var(--bg-2) 0%, #F0F4FB 100%); color: var(--text-1); position: relative; overflow: hidden; }
.team-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 20%, rgba(43, 95, 217, .06), transparent 45%), radial-gradient(circle at 5% 80%, rgba(232, 115, 74, .04), transparent 40%); pointer-events: none; }
.team-section .wrap { position: relative; }

.team-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-8); align-items: center; padding: var(--space-6) 0; }
@media (max-width: 960px) { .team-grid { grid-template-columns: 1fr; gap: var(--space-6); } }

/* 左侧介绍 */
.team-intro { max-width: 540px; }
.team-brand { font-size: 14px; font-weight: 600; color: var(--primary); letter-spacing: .08em; margin-bottom: var(--space-3); }
.team-title { font-size: clamp(28px, 3vw, 36px); font-weight: 700; color: var(--text-1); line-height: 1.3; margin: 0 0 var(--space-5); letter-spacing: -.01em; }
.team-desc { font-size: 15px; line-height: 1.85; color: var(--text-2); margin: 0 0 var(--space-6); }
.team-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: 1px solid var(--primary); border-radius: 999px; color: var(--primary); font-size: 14px; font-weight: 500; transition: all .2s; }
.team-cta:hover { background: var(--primary); color: #fff; transform: translateX(2px); }

/* 右侧照片墙 · 大小不一 5 缩略图（4 实 + 1 虚）+ 主图 */
.team-photos { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 8px; position: relative; min-height: 360px; }
@media (max-width: 640px) { .team-photos { grid-template-columns: 1fr; grid-template-rows: auto; } }
.team-photos-loading, .team-photos-empty { grid-column: 1 / -1; text-align: center; padding: var(--space-7); color: var(--text-3); font-size: 14px; }

/* 主图（占左侧 2 列 × 3 行）*/
.team-photos-main { grid-column: 1 / 2; grid-row: 1 / 4; position: relative; }
.team-photo-main { position: absolute; inset: 0; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-3); box-shadow: 0 4px 24px rgba(15, 23, 42, .08); opacity: 0; transform: scale(1.02); transition: opacity .8s ease, transform .8s ease; pointer-events: none; }
.team-photo-main.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.team-photo-main:hover.is-active { transform: scale(1.01); }
.team-photo-main-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-photo-main-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 96px; }
.team-photo-main-info { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-5); background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 60%, transparent 100%); color: #fff; }
.team-photo-main-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.team-photo-main-role { font-size: 13px; color: rgba(255, 255, 255, .85); margin-bottom: 6px; }
.team-photo-main-desc { font-size: 12px; color: rgba(255, 255, 255, .7); line-height: 1.6; max-width: 95%; }

/* 缩略图网格（占右侧 1 列 × 3 行 = 3 格，但有 5 个位置）*/
.team-photos-thumbs { grid-column: 2 / 3; grid-row: 1 / 4; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 8px; }
@media (max-width: 640px) { .team-photos-thumbs { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); } }

/* 大中小三种尺寸 */
.team-photo-thumb { position: relative; display: block; overflow: hidden; background: var(--bg-3); box-shadow: 0 2px 6px rgba(15, 23, 42, .04); transition: all .25s; }
.team-photo-thumb.size-lg { grid-column: 1 / 2; grid-row: 1 / 3; aspect-ratio: 1 / 1; border-radius: var(--radius-md); }
.team-photo-thumb.size-md { grid-column: 2 / 3; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.team-photo-thumb.size-sm { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.team-photo-thumb.size-virt { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.team-photo-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .7; transition: opacity .25s; }
.team-photo-thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 32px; opacity: .7; transition: opacity .25s; }
.team-photo-thumb-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; font-size: 10px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent); text-align: center; line-height: 1.2; }
.team-photo-thumb.is-active img, .team-photo-thumb.is-active .team-photo-thumb-placeholder { opacity: 1; }
.team-photo-thumb.is-active { box-shadow: 0 3px 10px rgba(43, 95, 217, .3); outline: 2px solid var(--primary); outline-offset: 1px; }
.team-photo-thumb:hover { transform: translateY(-1px); }
.team-photo-thumb:hover img, .team-photo-thumb:hover .team-photo-thumb-placeholder { opacity: 1; }

/* 虚位（最小的 1 个）*/
.team-photo-thumb.is-virtual { background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(15, 23, 42, .04) 6px, rgba(15, 23, 42, .04) 12px), var(--bg-2); border: 1.5px dashed rgba(15, 23, 42, .15); display: grid; place-items: center; }
.team-photo-thumb.is-virtual:hover { border-color: var(--primary); background: var(--bg-1); transform: translateY(-1px); }
.team-photo-virt-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-3); font-size: 11px; }
.team-photo-virt-icon .ico { width: 28px; height: 28px; border-radius: 50%; background: rgba(15, 23, 42, .05); display: grid; place-items: center; font-size: 16px; color: var(--text-2); }
.team-photo-virt-icon .ico::before { content: '+'; font-weight: 600; font-size: 18px; }

/* 轮播导航点（底部圆点）*/
.team-photos-dots { position: absolute; left: 0; right: 0; bottom: -28px; display: flex; gap: 6px; justify-content: center; }
.team-photos-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(15, 23, 42, .2); transition: all .25s; cursor: pointer; }
.team-photos-dot.is-active { background: var(--primary); width: 18px; border-radius: 4px; }

/* ===== §46 智能深测对话页（dl-*，assets/dialog.js · #561 · 2026-11-09） ===== */
.dl-wrap { max-width: 720px; margin: 0 auto; padding: var(--space-6) var(--space-4); }
.dl-progress { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); display: flex; align-items: center; gap: var(--space-3); }
.dl-progress .dlp-label { font-size: var(--text-xs); color: var(--text-3); white-space: nowrap; }
.dl-progress .dlp-track { flex: 1; height: 8px; background: var(--track, #E6E9F0); border-radius: 999px; overflow: hidden; }
.dl-progress .dlp-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .4s ease; }
.dl-chat { display: flex; flex-direction: column; gap: var(--space-3); min-height: 300px; }
.dl-msg { max-width: 82%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg);
  line-height: 1.7; font-size: var(--text-sm); white-space: pre-wrap; word-break: break-word; }
.dl-msg--ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--border);
  border-bottom-left-radius: 4px; color: var(--text); }
.dl-msg--user { align-self: flex-end; background: var(--primary); color: #fff;
  border-bottom-right-radius: 4px; }
.dl-qcard { align-self: stretch; background: var(--primary-50, #EAF0FE); border: 1px solid var(--primary-200, #9DB9F0);
  border-radius: var(--radius-lg); padding: var(--space-4); margin-top: var(--space-1); }
.dl-qcard .dlq-text { font-weight: 600; color: var(--text); margin-bottom: var(--space-3); }
.dl-opts { display: flex; flex-direction: column; gap: var(--space-2); }
.dl-opt { text-align: left; padding: var(--space-2) var(--space-3); border: 1.5px solid var(--primary-200, #9DB9F0);
  border-radius: var(--radius-md); background: var(--surface); cursor: pointer; font-size: var(--text-sm);
  color: var(--text); transition: all .15s; }
.dl-opt:hover { border-color: var(--primary); background: var(--primary-50, #EAF0FE); }
.dl-opt:disabled { opacity: .5; cursor: not-allowed; }
.dl-inputbar { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.dl-inputbar input { flex: 1; padding: var(--space-3); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--text); }
.dl-inputbar input:focus { outline: none; border-color: var(--primary); }
.dl-inputbar button { white-space: nowrap; }
.dl-actions { display: flex; gap: var(--space-3); margin-top: var(--space-4); justify-content: center; }
.dl-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5); margin-top: var(--space-5); }
.dl-result .dlr-top { text-align: center; margin-bottom: var(--space-4); }
.dl-result .dlr-label { font-size: var(--text-xs); color: var(--text-3); margin-bottom: var(--space-1); }
.dl-result .dlr-trait { font-size: 28px; font-weight: 800; color: var(--primary); }
.dl-result .dlr-score { color: var(--text-3); font-size: var(--text-sm); margin-top: var(--space-1); }
.dl-sev { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; }
.dl-sev--normal { background: #E7F7F1; color: #0E9F6E; }
.dl-sev--mild { background: #FEF3C7; color: #B45309; }
.dl-sev--moderate { background: #FDF3E3; color: #B7791F; }
.dl-sev--severe { background: #FEF2F2; color: var(--crisis); }
.dl-dims { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.dl-dim .dld-head { display: flex; justify-content: space-between; font-size: var(--text-sm); margin-bottom: 4px; }
.dl-dim .dld-name { font-weight: 600; color: var(--text); }
.dl-dim .dld-score { color: var(--text-3); }
.dl-dim .dld-track { height: 8px; background: var(--track, #E6E9F0); border-radius: 999px; overflow: hidden; }
.dl-dim .dld-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .5s ease; }
.dl-dim .dld-note { font-size: var(--text-xs); color: var(--text-3); margin-top: 4px; line-height: 1.6; }
.dl-result .dlr-sec { margin-top: var(--space-4); }
.dl-result .dlr-sec h4 { font-size: var(--text-sm); color: var(--text-2); margin-bottom: var(--space-2); }
.dl-result .dlr-sec p { font-size: var(--text-sm); color: var(--text); line-height: 1.8; }
.dl-typing { align-self: flex-start; color: var(--text-3); font-size: var(--text-xs); padding: var(--space-2); }

/* —— §46.1 深测窄长横条入口（#561，替代原标题条+卡片）—— */
.as-feat { display: flex; align-items: center; gap: var(--space-3);
  background: var(--primary-50, #EAF0FE); border: 1px solid var(--primary-200, #9DB9F0);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4); text-decoration: none; transition: border-color .15s; }
.as-feat:hover { border-color: var(--primary); }
.as-feat-badge { flex-shrink: 0; background: var(--primary); color: #fff; font-size: var(--text-xs);
  font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.as-feat-name { flex-shrink: 0; font-weight: 700; color: var(--text); font-size: var(--text-sm); }
.as-feat-desc { flex: 1; color: var(--text-3); font-size: var(--text-xs);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-feat-go { flex-shrink: 0; color: var(--primary); font-weight: 700; font-size: var(--text-sm); }
