/* ============================================================
   乐乾服务管理平台 · Design Tokens V1.1
   唯一来源：《统一UI设计说明书 V1.1》§4
   ============================================================ */

:root {
  /* ---- 4.1.1 基础色 ---- */
  --color-brand-bar: #173B70;
  --color-primary: #2563EB;
  --color-bg-page: #F3F7FC;
  --color-bg-card: #FFFFFF;
  --color-text-primary: #172B4D;
  --color-text-secondary: #64748B;
  --color-text-tertiary: #94A3B8;
  --color-border: #DFE8F3;
  --color-table-head: #F6F9FD;
  --color-success: #16A36A;
  --color-warning: #E9A23B;
  --color-danger: #E5484D;
  --color-info: #2563EB;

  /* ---- 4.1.2 业务类型色（7 种，仅用于小标签 + 3px 色条）---- */
  --biz-demo: #8B5CF6;
  --biz-install: #2563EB;
  --biz-repair: #E5484D;
  --biz-maintain: #0D9488;
  --biz-training: #D97706;
  --biz-experiment: #DB2777;
  --biz-other: #64748B;
  --tag-bg-demo: rgba(139, 92, 246, .10);
  --tag-bg-install: rgba(37, 99, 235, .10);
  --tag-bg-repair: rgba(229, 72, 77, .10);
  --tag-bg-maintain: rgba(13, 148, 136, .10);
  --tag-bg-training: rgba(217, 119, 6, .10);
  --tag-bg-experiment: rgba(219, 39, 119, .10);
  --tag-bg-other: rgba(100, 116, 139, .10);

  /* ---- 4.1.3 样机状态色（6 种）---- */
  --asset-idle: #16A36A;
  --asset-reserved: #2563EB;
  --asset-borrowed: #8B5CF6;
  --asset-pending-return: #D97706;
  --asset-repairing: #E5484D;
  --asset-scrapped: #64748B;
  --tag-bg-asset-idle: rgba(22, 163, 106, .10);
  --tag-bg-asset-reserved: rgba(37, 99, 235, .10);
  --tag-bg-asset-borrowed: rgba(139, 92, 246, .10);
  --tag-bg-asset-pending-return: rgba(217, 119, 6, .10);
  --tag-bg-asset-repairing: rgba(229, 72, 77, .10);
  --tag-bg-asset-scrapped: rgba(100, 116, 139, .10);

  /* ---- 4.1.4 工程师忙闲色（4 种）---- */
  --eng-free: #16A36A;
  --eng-partial: #2563EB;
  --eng-busy: #D97706;
  --eng-unavailable: #64748B;
  --tag-bg-eng-free: rgba(22, 163, 106, .10);
  --tag-bg-eng-partial: rgba(37, 99, 235, .10);
  --tag-bg-eng-busy: rgba(217, 119, 6, .10);
  --tag-bg-eng-unavailable: rgba(100, 116, 139, .10);

  /* ---- 招投标业务状态色（独立色系，不与公告类型混用）---- */
  --bid-unread: #64748B;
  --bid-following: #2563EB;
  --bid-bid: #16A36A;
  --bid-abandoned: #475569;
  --tag-bg-bid-unread: rgba(100, 116, 139, .12);
  --tag-bg-bid-following: rgba(37, 99, 235, .12);
  --tag-bg-bid-bid: rgba(22, 163, 106, .12);
  --tag-bg-bid-abandoned: rgba(71, 85, 105, .12);

  /* ---- 招投标公告类型标签（中性蓝灰系，与状态色分开）---- */
  --bid-notice-bg: rgba(37, 99, 235, .08);
  --bid-notice-text: #1E40AF;

  /* ---- 4.2.1 字体 ---- */
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  /* ---- 4.2.2 字号 ---- */
  --fs-page-title: 24px;
  --fs-module-title: 16px;
  --fs-body: 14px;
  --fs-aux: 12px;
  --fs-table-head: 13px;
  --fw-page-title: 600;
  --fw-module-title: 600;
  --fw-body: 400;
  --fw-table-head: 600;

  /* ---- 4.2.3 圆角 ---- */
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --radius-tag: 6px;
  --radius-modal: 16px;

  /* ---- 4.2.4 边框与阴影 ---- */
  --border-card: 1px solid #DFE8F3;
  --shadow-card: 0 2px 8px rgba(23, 59, 112, .05);
  --shadow-modal: 0 12px 36px rgba(23, 59, 112, .14);

  /* ---- 4.2.5 行高 ---- */
  --row-height: 44px;
  --row-height-comfort: 52px;

  /* ---- 4.2.6 间距（八级）---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;

  /* ---- 顶栏 ---- */
  --brand-bar-height: 72px;

  /* ---- 动画 ---- */
  --ease: cubic-bezier(.4, 0, .2, 1);
}
