/* ===================================================================
 * tech-minimal · 科技极简 · 设计令牌
 * 气质:克制、专业、高对比、冷峻
 * 变量名与 healing-pastoral 完全一致,仅改值 → 可套用同一套组件
 * =================================================================== */

:root {
  /* ---------- 配色 ---------- */
  --color-primary: #2563EB;             /* 科技蓝 */
  --color-primary-soft: rgba(37, 99, 235, 0.10);
  --color-secondary: #0EA5E9;           /* 亮青 */

  --color-bg: #FFFFFF;                  /* 纯白高对比 */
  --color-card: #FFFFFF;
  --color-border: #E2E8F0;

  --color-text: #0F172A;                /* 近黑 */
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;
  --color-text-disabled: #CBD5E1;
  --color-text-inverse: #FFFFFF;

  --color-success: #16A34A;
  --color-warning: #F59E0B;
  --color-error: #DC2626;
  --color-info: #2563EB;

  /* ---------- 字体:无衬线 + 等宽数字 ---------- */
  --font-heading: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;

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

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;            /* 紧凑,信息密度高 */
  --line-height-relaxed: 1.7;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.06em;

  /* ---------- 间距:适中,不浪费 ---------- */
  --space-page-x: 24px;
  --space-section: 64px;
  --space-card-pad: 24px;

  /* ---------- 形状:小圆角,利落 ---------- */
  --radius-none: 0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --border-width-thin: 1px;
  --border-width-normal: 2px;

  /* 阴影:中性冷灰,锐利 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  /* ---------- 动效:快,显高效 ---------- */
  --motion-duration-fast: 120ms;
  --motion-duration-normal: 200ms;
  --motion-duration-slow: 400ms;
  --motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --motion-easing-spring: cubic-bezier(0.34, 1.2, 0.64, 1);

  /* ---------- 布局 ---------- */
  --container-max: 1100px;
  --ratio-card: 16 / 9;

  /* 代码块配色(深蓝灰) */
  --color-code-bg: #0F172A;
  --color-code-text: #F1F5F9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0F172A;
    --color-card: #1E293B;
    --color-border: #334155;
    --color-text: #F1F5F9;
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;
  }
}
