:root {
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei",
               -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 12px;
  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --module: #38bdf8;
  --build: #38bdf8;
  --crack: #f59e0b;
  --software: #34d399;
  --llm: #a78bfa;
}

[data-theme="dark"] {
  --bg: #070b12;
  --bg-elev: #0b1220;
  --surface: #0f1726;
  --surface-2: #141f31;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.32);
  --text: #e8eef9;
  --text-2: #a9b8cd;
  --text-3: #71829a;
  --brand: #38bdf8;
  --success: #34d399;
  --warning: #f59e0b;
  --danger: #f87171;
  --header-bg: rgba(7, 11, 18, 0.78);
  --glow: radial-gradient(60% 90% at 15% 0%, rgba(56, 189, 248, 0.2), transparent 62%),
          radial-gradient(50% 80% at 88% 6%, rgba(99, 102, 241, 0.16), transparent 62%);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-elev: #eef4fb;
  --surface: #ffffff;
  --surface-2: #f0f5fc;
  --border: #dfe7f2;
  --border-strong: #c9d6e6;
  --text: #0e1726;
  --text-2: #4b5c73;
  --text-3: #7b8ca3;
  --brand: #0284c7;
  --success: #047857;
  --warning: #b45309;
  --danger: #b91c1c;
  --header-bg: rgba(245, 248, 253, 0.82);
  --glow: radial-gradient(60% 90% at 15% 0%, rgba(2, 132, 199, 0.1), transparent 62%),
          radial-gradient(50% 80% at 88% 6%, rgba(79, 70, 229, 0.08), transparent 62%);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
}
