/* ============================================
   星河入梦工作室 — 设计令牌 (Design Tokens)
   所有 CSS 自定义属性集中管理
   ============================================ */

:root {
  /* —— 颜色系统 —— */
  --color-bg-primary: #0a0e1a;
  --color-bg-secondary: #111827;
  --color-bg-elevated: #1a2332;
  --color-text-primary: #f0f0f5;
  --color-text-secondary: #9ca3af;
  --color-text-muted: #6b7280;
  --color-accent: #c9a84c;
  --color-accent-hover: #d4b55e;
  --color-accent-glow: rgba(201, 168, 76, 0.25);
  --color-accent-strong: rgba(201, 168, 76, 0.5);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-gradient-1: #1a3a5c;
  --color-gradient-2: #0d1b3e;
  --color-overlay: rgba(10, 14, 26, 0.85);
  --color-star: rgba(255, 255, 255, 0.7);
  --color-star-dim: rgba(255, 255, 255, 0.3);

  /* —— 排版系统 —— */
  --font-display: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Consolas', monospace;

  --font-size-hero: clamp(3rem, 8vw, 7rem);
  --font-size-h1: clamp(2.2rem, 5vw, 4rem);
  --font-size-h2: clamp(1.8rem, 4vw, 3rem);
  --font-size-h3: clamp(1.3rem, 2.5vw, 1.75rem);
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --font-size-xs: 0.75rem;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.12em;

  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* —— 间距系统 (8px grid) —— */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;
  --section-padding: clamp(3rem, 8vw, 8rem);

  /* —— 圆角 —— */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* —— 过渡 —— */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-base: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* —— 层级 —— */
  --z-stars: 0;
  --z-base: 1;
  --z-overlay: 50;
  --z-nav: 100;
  --z-menu: 200;
  --z-toast: 300;

  /* —— 其他 —— */
  --max-width: 1200px;
  --nav-height: 72px;
}
