/* ============================================================
   23etool Design Tokens  (设计变量层)
   仅做变量定义，不写具体组件样式。
   主题：单色简约浅色（深色模式已取消，全站恒为浅灰白体系，零渐变）。
   ============================================================ */

:root {
  /* 主色：现代科技蓝（纯色，无渐变） */
  --c-primary:        #3b82f6;
  --c-primary-strong: #2563eb;
  --c-primary-soft:   #eff6ff;
  --c-primary-ring:   rgba(59, 130, 246, .30);
  --c-accent:         #06b6d4;   /* 科技青：强调/成功提示 */
  --c-accent-soft:    #e0f7fb;

  /* 品牌强调（按钮/主入口）：纯色蓝（去除渐变） */
  --grad-primary: #3b82f6;
  --grad-primary-hover: #2563eb;

  /* 语义色 */
  --c-success: #16a34a;
  --c-warning: #d97706;
  --c-danger:   #dc2626;
  --c-info:     #0284c7;

  /* 中性色阶（更浅、更透气） */
  --c-bg:        #fbfcfe;
  --c-surface:   #ffffff;
  --c-surface-2: #f1f5f9;
  --c-border:    #e2e8f0;
  --c-text:      #17233b;
  --c-text-2:    #52617e;
  --c-text-3:    #98a5bd;

  /* 顶栏（纯色白，与内容区同色，仅底部 1px 细线分隔） */
  --c-topbar:    #ffffff;
  --c-topbar-brd: #e2e8f0;
  --glass-blur:  14px;

  /* 品牌深色（页脚） */
  --c-ink:       #0e2a4d;
  --c-ink-2:     #17396a;

  /* 圆角系统 */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* 间距刻度（8px 基准） */
  --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-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;

  /* 阴影（更柔和、带蓝调、分层） */
  --shadow-xs: 0 1px 2px rgba(31, 74, 140, .05);
  --shadow-sm: 0 2px 10px rgba(31, 74, 140, .07);
  --shadow-md: 0 10px 28px rgba(31, 74, 140, .10);
  --shadow-lg: 0 20px 48px rgba(31, 74, 140, .14);

  /* 动效 */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: .15s;
  --t-base: .25s;

  /* 布局 */
  --topbar-h: 60px;
  --container-w: 1200px;
}

/* ============================================================
   ERP 企业管理系统风格令牌
   ============================================================ */
:root {
  /* ERP 主色：品牌深蓝（标题强调）+ 亮蓝强调 */
  --c-erp-primary:   #2563eb;   /* 品牌深蓝（标题强调） */
  --c-erp-primary-2: #1d4ed8;
  --c-erp-accent:    #3b82f6;   /* 亮蓝强调（选中/按钮） */
  --c-erp-accent-2:  #60a5fa;

  /* 侧边栏（纯色冷调浅灰，与 LOGO 区同色，无分隔线） */
  --c-sidebar-bg:    #f1f5f9;
  --c-sidebar-item:  #475569;
  --c-sidebar-item-hover: #1e293b;
  --c-sidebar-item-hover-bg: rgba(59, 130, 246, .06);
  --c-sidebar-active-bg: #dbeafe;
  --c-sidebar-active-fg: #2563eb;
  --c-sidebar-group:  #94a3b8;
  --c-sidebar-brd:    #e2e8f0;
  --c-sidebar-brand:  #17233b;
  --c-sidebar-brand-sub: #94a3b8;
  --c-sidebar-scrollbar: rgba(100, 116, 139, .25);
  --c-sidebar-collapse-fg: #64748b;

  /* 壳尺寸 */
  --sidebar-w:       240px;
  --sidebar-w-collapsed: 64px;
  --topbar-h:        56px;

  /* ERP 组件 */
  --r-card:          12px;
  --shadow-card:     0 2px 8px rgba(59, 130, 246, .06), 0 1px 3px rgba(15, 44, 77, .04);
  --shadow-card-hover: 0 8px 24px rgba(59, 130, 246, .10);
}
