/* ========================================
   星屿科技 · 设计令牌 (Design Tokens)
   主题：纯白 + 浅灰 + 蓝色强调
   ======================================== */

:root {
  /* ── 主色板 ── */
  --color-accent: #0EA5E9;          /* 天空蓝 — 主强调 */
  --color-accent-cyan: #22D3EE;     /* 玻璃青 — 辅助强调 */
  --color-accent-deep: #0369A1;     /* 深海蓝 — 深色变体 */

  /* ── 背景层 ── */
  --color-bg: #ffffff;              /* 纯白底 */
  --color-surface: #f5f5f7;         /* 卡片/容器 */
  --color-elevated: #ffffff;        /* 悬浮层 */
  --color-dark: #0f172a;            /* 深色区块底 */
  --color-dark-surface: #1e293b;    /* 深色区块卡片 */

  /* ── 文字色（浅色背景适配） ── */
  --color-text-primary: #0f172a;    /* 主标题 — 足够深 */
  --color-text-secondary: #334155;  /* 正文 — 清晰可读 */
  --color-text-muted: #64748b;      /* 辅助/次要 */
  --color-text-inverse: #ffffff;    /* 反白（用于按钮等） */

  /* ── 边框 & 分割 ── */
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);
  --color-border-accent: rgba(14, 165, 233, 0.3);

  /* ── 渐变 ── */
  --gradient-hero-glow: radial-gradient(ellipse at 50% 40%, rgba(14, 165, 233, 0.04) 0%, transparent 60%);
  --gradient-section: linear-gradient(135deg, #f0f7ff 0%, #f0fafb 100%);

  /* ── 字体 ── */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;

  /* ── 字号 ── */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.5rem;    /* 56px */
  --text-7xl: 4.5rem;    /* 72px */

  /* ── 字重 ── */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 800;

  /* ── 行高 ── */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ── 间距系统 (8px 基准) ── */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* ── 容器 ── */
  --container-max: 1200px;
  --container-narrow: 900px;
  --container-padding: var(--space-6);

  /* ── 圆角 ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ── 阴影（轻量 — 卡片主要靠边框） ── */
  --shadow-card: none;
  --shadow-card-hover: 0 8px 30px rgba(14, 165, 233, 0.08);

  /* ── 动效参数 ── */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* ── Z-index 层级 ── */
  --z-base: 0;
  --z-content: 10;
  --z-nav: 100;
  --z-modal: 300;
  --z-loading: 400;
}
