/* 生产版：与 Claw/design-tokens.css 变量完全一致，仅移除 Google Fonts @import（国内可访问性），字体走本地字体栈。*/
/* ============================================================
   宇溯星控官网 Design Tokens v1.0
   规则：页面与组件禁止硬编码色值，一律引用本文件变量。
   对比度承诺：正文 ≥ 4.5:1（WCAG AA），大号文本 ≥ 3:1。
   ============================================================ */

:root {
  /* ---- A1 品牌色 ---- */
  --brand-primary: #003B8E;        /* 北斗深空蓝：主按钮/链接/激活态（白底 10.6:1） */
  --brand-primary-dark: #002A6E;   /* 按压态 */
  --brand-sky: #00A3FF;            /* 科技蓝：仅图标/装饰/深底大数字，禁用于浅底小字 */
  --brand-data: #0072CE;           /* 浅底数据数字专用（白底 4.9:1） */
  --brand-deep: #0A1B3A;           /* 深空蓝黑：Hero/Footer/数据条背景 */
  --brand-deep-surface: #10254A;   /* 深底卡片表面 */

  /* ---- 表面层 ---- */
  --bg-page: #FFFFFF;
  --bg-subtle: #F5F8FC;            /* 分区灰底 */
  --bg-recessed: #EDF2F8;          /* 表头/更深层分区 */

  /* ---- 前景层 ---- */
  --fg-heading: #0F1B2D;
  --fg-body: #334155;              /* 9.2:1 */
  --fg-secondary: #475569;         /* 7.5:1 */
  --fg-muted: #64748B;             /* 4.8:1，替代不达标的 #94A3B8 */
  --fg-on-dark: #F2F6FC;
  --fg-on-dark-muted: #A9BAD4;     /* 深底 7.1:1 */

  /* ---- 边框层 ---- */
  --border-default: #E2E8F0;
  --border-soft: #EDF2F8;
  --border-on-dark: rgba(255,255,255,0.10);

  /* ---- 点缀与语义色 ---- */
  --accent-signal: #00E5C7;        /* 深底点缀，每屏 ≤1 处 */
  --accent-gold: #B87A0A;          /* 招聘标识/急招标签（白底 4.6:1） */
  --success: #0F766E;  --success-bg: #E4F5F3;
  --warning: #B45309;  --warning-bg: #FBF0E1;
  --danger:  #C2321B;  --danger-bg:  #FBEAE6;
  --info:    #1D5FA8;  --info-bg:    #E6F0FA;

  /* ---- 字体 ---- */
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-num: 'Inter', 'Noto Sans SC', sans-serif;   /* 数字用 tabular-nums */

  --text-xs: 12px; --text-sm: 14px; --text-md: 16px; --text-lg: 18px;
  --text-xl: 20px; --text-2xl: 24px; --text-3xl: 32px; --text-4xl: 40px;
  --leading-body: 1.7; --leading-tight: 1.25;
  --tracking-display: -0.02em; --tracking-caps: 0.06em;

  /* ---- 间距（4px 网格）---- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;

  /* ---- 圆角 ---- */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-pill: 9999px;

  /* ---- 阴影 ---- */
  --shadow-flat: none;
  --shadow-ring: 0 0 0 1px var(--border-default);
  --shadow-raised: 0 4px 16px rgba(0,59,142,0.10);
  --shadow-overlay: 0 12px 40px rgba(10,27,58,0.24);

  /* ---- 布局 ---- */
  --container-max: 1200px;
  --section-y: 80px;               /* 平板 56px / 手机 40px，见媒体查询 */
  --touch-target: 44px;

  /* ---- 动效 ---- */
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --motion-slow: 300ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);  /* 禁止弹性/回弹缓动 */

  /* ---- 层级 ---- */
  --z-navbar: 100; --z-overlay: 900; --z-sheet: 910; --z-toast: 1000;

  /* ---- 焦点 ---- */
  --focus-ring: 0 0 0 3px rgba(0,59,142,0.35);
}

/* ---- 响应式覆盖 ---- */
@media (max-width: 1024px) { :root { --section-y: 56px; } }
@media (max-width: 768px)  { :root { --section-y: 40px; } }

/* ---- 全局可访问性基线 ---- */
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
