/* ==========================================================================
   云间 AI（YUNJIAN AI）· 设计令牌系统
   视觉世界：Architectural Dark Titanium & Claude Terracotta
   深钛黑精密调度台 × 阳极氧化铝炭灰 × 暖陶土琥珀
   ========================================================================== */

:root {
  color-scheme: dark;

  /* 表面色阶（60% 主导暗钛黑，拒绝纯 #000 死黑） */
  --bg-void: #07080a;
  --bg-base: #0b0d10;
  --bg-surface: #111419;
  --bg-elevated: #171b22;
  --bg-hover: #1d222b;

  /* 文本色阶（满足 WCAG AAA / AA 严格对比度） */
  --ink-primary: #f4f1ea;       /* 暖雪花石膏白，对比度 > 16:1 */
  --ink-secondary: #a7adb8;     /* 精密钛灰，对比度 > 7.8:1 */
  --ink-tertiary: #767d8a;      /* 次要注释，对比度 > 4.6:1 */
  --ink-muted: #4f5663;         /* 极弱装饰线标 */

  /* 唯一主强调色：Claude 暖陶土琥珀（10% 纪律） */
  --accent: #d97757;
  --accent-bright: #eb9476;
  --accent-deep: #b85b3d;
  --accent-soft: rgba(217, 119, 87, 0.14);
  --accent-softer: rgba(217, 119, 87, 0.06);
  --accent-border: rgba(217, 119, 87, 0.36);

  /* 遥测状态色（仅用于节点在线态与拓扑演练对比） */
  --status-ok: #4ade80;
  --status-ok-soft: rgba(74, 222, 128, 0.12);
  --status-danger: #f87171;
  --status-danger-soft: rgba(248, 113, 113, 0.14);
  --status-warn: #fbbf24;

  /* 阳极氧化发丝线与高光边界 */
  --hairline: rgba(244, 241, 234, 0.085);
  --hairline-strong: rgba(244, 241, 234, 0.16);
  --hairline-specular: rgba(255, 255, 255, 0.22);

  /* 字体家族（中英独立配对 + 国内无代理本地优雅降级） */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-latin-display: "Bricolage Grotesque", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* 模块化字阶（1.25 比例） */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.375rem;     /* 22px */
  --text-2xl: 1.875rem;    /* 30px */
  --text-3xl: 2.5rem;      /* 40px */
  --text-hero: clamp(2.45rem, 4.6vw, 4.35rem);

  /* 间距节奏梯度 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 136px;

  /* 圆角纪律（大卡 14–16px，控件 8–10px，胶囊仅用于极小控件） */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* 物理偏移阴影（绝不使用无偏移彩色发光光晕） */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.36);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.64);

  /* 动效曲线与时长 */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 170ms;
  --dur-base: 360ms;
  --dur-slow: 680ms;

  /* 版心容器（1160px 居中，在 1440px 宽屏为两侧悬浮玻璃轨留出呼吸感） */
  --container-max: 1160px;
  --gutter: clamp(20px, 3.6vw, 40px);
  --nav-height: 74px;
}
