/**
 * yujianadmin — 全局壳层设计 Token（第一阶段 Step 1）
 * 仅定义 CSS 变量，不包含布局/组件规则。
 * 命名约定：--color-* / --radius-* / --shadow-* / --space-* / --font-* / --layout-*
 */

@import "./shell-status-bar.css";

:root {
  /* —— 主色与语义色（现代 SaaS，对齐现有育健深红） —— */
  --color-brand: #8b0000;
  --color-brand-hover: #6d0000;
  --color-brand-muted: rgba(139, 0, 0, 0.1);
  --color-brand-bg-subtle: #f8efef;
  --color-on-brand: #ffffff;

  --color-accent: #a61e2a;
  --color-accent-soft: rgba(166, 30, 42, 0.12);

  --color-success: #0f766e;
  --color-success-bg: #ecfdf5;
  --color-warning: #c2410c;
  --color-warning-bg: #fff7ed;
  --color-danger: #c62828;
  --color-danger-bg: #fef2f2;
  --color-info: #0369a1;
  --color-info-bg: #e0f2fe;

  /* —— 表面与边框 —— */
  --color-bg-page: #f5f5f5;
  --color-bg-page-alt: #f7f7f7;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  /* 表头、斑马纹等弱对比表面 */
  --color-surface-muted: #fafafa;
  --color-border: #e5e5e5;
  --color-border-strong: #dcdcdc;

  /* —— 文本 —— */
  --color-text: #333333;
  --color-text-primary: #1f1f1f;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  --color-text-subtle: #555555;

  /* —— 圆角 —— */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* —— 阴影 —— */
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 22px rgba(0, 0, 0, 0.12);
  --shadow-dropdown: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);

  /* —— 间距（4px 基准） —— */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 70px;

  /* —— 字号 —— */
  --font-sans: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 19px;
  --text-2xl: 22px;
  --text-3xl: 26px;
  --text-4xl: 28px;

  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.2;
  --line-height-body: 1.6;
  --line-height-relaxed: 1.7;

  /* —— 布局尺寸（壳层预留，后续 Step 使用） —— */
  --header-height: 60px;
  --sidebar-width: 220px;
  --content-max-width: 1200px;
  --content-max-width-wide: 1280px;
  --page-padding-x: 24px;
  --page-padding-y-top: 40px;
  --page-padding-y-bottom: 56px;

  /* —— 表单控件 —— */
  --control-height-button: 40px;
  --control-height-input: 40px;
  --control-padding-y-input: 9px;
  --control-padding-x-input: 10px;
  --control-padding-y-button: 10px;
  --control-padding-x-button: 16px;
  --control-gap-label: 6px;

  /* —— 动效 —— */
  --duration-fast: 0.12s;
  --duration-normal: 0.2s;
  --ease-standard: ease;

  /* —— 兼容别名（可选，供后续从旧变量迁移） —— */
  --color-brand-rgb: 139, 0, 0;
}
