/* ============================================================
   MediaCPx — tokens.css
   全站唯一样式变量来源（照 design-spec.md §2.1 / §3.1 / §4.1 落码）
   任何页面/组件不得出现硬编码色值，一律引用本文件变量。
   ============================================================ */

:root {
  /* ── 品牌色（原始 5 色系，值不改） ── */
  --cpx-navy-800:   #0C447C;  /* 深海军蓝：深色表面（hero / footer / CPx 叙事带 / 深色 CTA） */
  --cpx-navy-900:   #082F54;  /* hero 渐变终点 / hover 深化 */
  --cpx-blue-600:   #185FA5;  /* 深蓝：主色，主按钮/链接/当前导航态，业务线「投放」 */
  --cpx-blue-700:   #124C86;  /* 主按钮 hover / 按下 */
  --cpx-blue-400:   #378ADD;  /* 亮蓝：业务线「数据」，仅图形/大字，禁止小字号文字 */
  --cpx-coral-400:  #F0997B;  /* 珊瑚橙：x 高亮、焦点环（深底），仅深底大字/装饰 */
  --cpx-coral-300:  #F5AE95;  /* 深底上的珊瑚橙小字号文字（提亮档） */
  --cpx-orange-500: #D85A30;  /* 深橙：业务线「AI 聚合」，浅底图形/大字 */
  --cpx-orange-600: #C24A20;  /* 交互橙：accent 按钮/占位角标底色 */
  --cpx-orange-700: #A63E1A;  /* 交互橙 hover / 浅底上的橙色小字号文字 */

  /* ── 中性色阶 ── */
  --cpx-ink-900:    #2C2C2A;  /* 正文（碳灰） */
  --cpx-ink-600:    #4A5A6B;  /* 次要正文 */
  --cpx-ink-500:    #5C6B7A;  /* 说明文字 / 图注 */
  --cpx-sand-200:   #E3E0D8;  /* 边框 / 分隔线 */
  --cpx-sand-50:    #F1EFE8;  /* 浅灰底：页面背景（品牌浅灰） */
  --cpx-surface:    #FFFFFF;  /* 卡片背景 */
  --cpx-on-dark:    #B8CFE5;  /* 深底上的次要文字 */

  /* ── 语义色（浅底 tint + 深色文字模式） ── */
  --cpx-success-fg: #1B6B40;  --cpx-success-bg: #E6F4EC;
  --cpx-warning-fg: #7A4E00;  --cpx-warning-bg: #FCF3E2;
  --cpx-danger-fg:  #9E2B25;  --cpx-danger-bg:  #FBEAE9;
  --cpx-info-fg:    #185FA5;  --cpx-info-bg:    #E8F1F9;

  /* ── 占位符专用（design-spec §5.7 指定值） ── */
  --cpx-ph-bg:      #FDF6F2;  /* 占位框背景 */
  --cpx-ph-fig-bg:  #E8E6DF;  /* 占位图底 */
  --cpx-ph-fig-fg:  #8A877E;  /* 占位图图标色 */

  /* ── 字体栈（系统字体，零外部请求） ── */
  --font-sans-en: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
  --font-sans-zh: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                  "Helvetica Neue", Arial, sans-serif;

  /* ── 间距刻度（8pt 基，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; --space-10: 128px;

  /* ── 布局 ── */
  --container-max: 1200px;
  --container-pad: 32px;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-card: 0 2px 8px rgba(12, 68, 124, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(12, 68, 124, 0.12);
  --transition-fast: 160ms;
  --transition-card: 200ms;
  --transition-carousel: 320ms;
  --transition-drawer: 240ms;
}
