/* TalkPilot Design Tokens v3：雾青画布 + 白色内容面 + 墨绿主操作 + 青绿品牌强调。 */
:root {
  /* 画布与表面 */
  --bg: #E8EFF0;
  --bg-deep: #DDE7E8;
  --surface: #FFFFFF;
  --surface-2: #F5F8F8;
  --surface-3: #EAF0F1;
  --surface-glass: rgba(255, 255, 255, .88);
  --sidebar: #F7FAFA;
  --border: #D6E1E2;
  --border-strong: #B9C8CA;

  /* 文字 */
  --text: #10252B;
  --text-2: #41585F;
  --text-3: #6C8086;
  --text-on-ink: #FFFFFF;

  /* 墨绿：主按钮、强标题、选中导航 */
  --ink: #102D33;
  --ink-hover: #1A4148;
  --ink-press: #081D21;

  /* 品牌青绿：选中、高亮、插画。--brand-text 用于白底上的文字（对比度够） */
  --brand: #0C9E94;
  --brand-hover: #087F77;
  --brand-text: #08766F;
  --brand-soft: #DDF4F1;
  --brand-line: #AEDFD9;
  --brand-deep: #0A514D;

  /* 琥珀：促销、公告 */
  --accent: #E99A13;
  --accent-soft: #FFF2D7;
  --accent-text: #8A5300;

  /* 状态 */
  --ok: #147A46;   --ok-soft: #E2F5E9;
  --warn: #A95509; --warn-soft: #FFF0DA;
  --err: #BC2D2D;  --err-soft: #FDE7E7;
  --info: #235FBE; --info-soft: #E6EEFC;

  --focus-ring: 0 0 0 3px rgba(12, 158, 148, .24);
  --scrim: rgba(9, 32, 37, .48);

  /* 字体 */
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei",
          "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Consolas, monospace;
  /* 品牌英文名 InterPilot：系统自带无衬线字体，不加载网络字体 */
  --font-en: "Segoe UI Variable Display", "Segoe UI", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px;
  --fs-20: 20px; --fs-24: 24px; --fs-32: 32px; --fs-40: 40px; --fs-56: 56px;
  --lh: 1.6; --lh-tight: 1.25;

  /* 间距（4 为基数） */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-14: 56px; --s-20: 80px; --s-28: 112px;

  /* 圆角 */
  --r-xs: 5px; --r-sm: 9px; --r-md: 14px; --r-lg: 20px;

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(16, 37, 43, .06), 0 3px 10px rgba(16, 37, 43, .035);
  --sh-md: 0 2px 4px rgba(16, 37, 43, .05), 0 12px 30px rgba(16, 37, 43, .09);
  --sh-lg: 0 28px 64px rgba(13, 42, 48, .18);

  --ease: cubic-bezier(.2, 0, 0, 1);
  --dur: 150ms;
}

/* 深色主题（面试页可选） */
[data-theme="dark"] {
  --bg: #0D1117; --surface: #151B23; --surface-2: #1B222C; --surface-3: #242C38;
  --bg-deep: #090D12; --surface-glass: rgba(21, 27, 35, .9); --sidebar: #121820;
  --border: #252D38; --border-strong: #354050;
  --text: #E8ECF1; --text-2: #B4BDC8; --text-3: #87919E;
  --ink: #E8ECF1; --ink-hover: #FFFFFF; --ink-press: #CBD2DB; --text-on-ink: #0D1117;
  --brand: #2CC4B8; --brand-hover: #4FD3C9; --brand-text: #4FD3C9; --brand-soft: #12302E; --brand-line: #1E4D49;
  --accent-soft: #2E2410; --accent-text: #F2C36B;
  --ok: #4ADE80; --ok-soft: #12291B; --warn: #F5B14C; --warn-soft: #2E2312;
  --err: #F87171; --err-soft: #331617; --info: #7AA7F5; --info-soft: #172338;
  --scrim: rgba(0, 0, 0, .6);
  --sh-sm: none; --sh-md: 0 8px 24px rgba(0, 0, 0, .4); --sh-lg: 0 24px 56px rgba(0, 0, 0, .55);
}

/* 最小 reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.tp-body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-14)/var(--lh) var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html, body.tp-body { min-height: 100%; }
::selection { background: var(--brand-line); color: var(--text); }
/* 基础元素样式用 :where() 降到 0 优先级，组件类（.tp-btn 等）总能覆盖 */
:where(.tp-body) :where(h1, h2, h3, h4) { margin: 0; font-weight: 700; line-height: var(--lh-tight); }
:where(.tp-body) :where(p) { margin: 0; }
:where(.tp-body) :where(a) { color: var(--brand-text); text-decoration: none; }
:where(.tp-body) :where(a:hover) { text-decoration: underline; }
:where(.tp-body) :where(a.tp-btn, a.tp-menu__item, a.cs-item, a.cs-brand, a.cs-credits, a.lp-logo):hover { text-decoration: none; }
:where(.tp-body) :where(:focus-visible) { outline: none; box-shadow: var(--focus-ring); }
:where(.tp-body) :where(button, input, select, textarea) { font: inherit; color: inherit; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
