/* ==========================================================================
   瑞科收银 · 设计令牌
   取色与尺寸依据《07 界面与统一收银详细设计》§7.1b（《瑞科城服 VIS》A3.1/A3.2）。
   品牌色为甲方 VIS 固化值，不得以第三方模板默认色替换。
   ========================================================================== */

:root {
  /* ---- 品牌色 ---------------------------------------------------------- */
  --brand-blue: #027fb5;
  --brand-blue-text: #016c9a; /* 小字号蓝色文字专用（白底 5.81:1，满足 AA） */
  --brand-green: #85d95b;
  --brand-dark: #1c1918;

  /* 大面积成片填充：登录品牌区、侧边栏品牌头、页面标题带、空状态底。
     渐变上禁止直接放小字号文字，须压 rgba(28, 25, 24, 0.38) 以上的遮罩，
     或把文字放到 #30C0B4 之后的青蓝端。 */
  --brand-gradient: linear-gradient(135deg, #85d95b 0%, #30c0b4 48%, #1999d7 100%);
  --brand-gradient-overlay: rgba(28, 25, 24, 0.5);

  /* ---- 辅助色（状态与图表，不用于正文） -------------------------------- */
  --aux-lime: #a1e600;
  --aux-blue-light: #b1d8f5;
  --aux-teal: #69c0a9;
  --aux-yellow: #f3c049;
  --aux-gold: #d0b76f;
  --aux-gold-dark: #b89961;

  /* ---- 语义色 ---------------------------------------------------------- */
  --success: #2e7d32;
  --warning: #b26a00;
  /* 小字号告警文字专用：在 --warning-bg 上 6.86:1（AA）。
     --warning 本身只有 3.89:1，只能用于图形/大字号，不用于 11px 标签。 */
  --warning-text: #7a4a00;
  --danger: #c62828;
  --info: #016c9a;
  --success-bg: #edf7ee;
  --warning-bg: #fdf4e6;
  --danger-bg: #fbecec;
  --info-bg: #eaf3f8;

  /* ---- 中性色 ---------------------------------------------------------- */
  --surface: #ffffff;
  --surface-muted: #f5f7f9;
  --surface-sunken: #eef1f4;
  --border: #e1e5ea;
  --border-strong: #c9d0d8;
  --text: #1c1918;
  --text-secondary: #58616e;
  --text-muted: #7c8694;
  --text-inverse: #ffffff;

  /* ---- 字体 ------------------------------------------------------------ */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-num: "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 26px;

  --leading-tight: 1.25;
  --leading-base: 1.5;

  /* ---- 间距（4px 基准） ------------------------------------------------ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* ---- 布局尺寸 -------------------------------------------------------- */
  --sidebar-width: 208px;
  --topbar-height: 56px;
  --content-max-width: 1440px;
  --row-height: 36px;
  --row-height-compact: 32px;
  --control-height: 36px;

  /* ---- 圆角与阴影 ------------------------------------------------------ */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 25, 24, 0.06);
  --shadow-md: 0 6px 20px rgba(28, 25, 24, 0.09);
  --shadow-lg: 0 18px 48px rgba(28, 25, 24, 0.14);

  /* ---- 焦点与动效 ------------------------------------------------------ */
  --focus-ring: 0 0 0 3px rgba(1, 108, 154, 0.3);
  --focus-ring-danger: 0 0 0 3px rgba(198, 40, 40, 0.22);
  --duration-fast: 140ms;
  --duration-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
