/* =========================================================================
   brand.css —— selectour 设计 token · 品牌层（与主题无关，深浅通吃）
   依据：《selectour 管理后台 · UI/UE 审计与改版方案》2.1 / 2.2 / 2.3
   规则：页面只引用 var(--*)，禁止写字面色值 / 字号 / 圆角。
   全站最先引入（theme.css 紧随其后）。
   ========================================================================= */

:root{
  /* ---- 品牌橙 · 只做点睛（logo / 选中 / 焦点 / 主按钮）---- */
  --orange:#FF9F15;        /* 品牌橙：logo 本色、选中条、图表主色 */
  --orange-hi:#FFB03A;     /* 悬浮橙：hover / 图标 */
  --orange-btn:#F08700;    /* 主按钮底：唯一允许成块的橙 */
  --ink-on-orange:#17120A; /* 主按钮文字：深墨字（白字对比度仅 2.05:1，禁用） */
  --orange-rgb:255,159,21;      /* 供 rgba() 与第三方库（Tabler）使用 */
  --orange-btn-rgb:240,135,0;

  /* ---- 圆角 ---- */
  --radius:10px;      /* 卡片 / 面板 */
  --radius-sm:8px;    /* 浮层 / 下拉 / 按钮 */
  --radius-chip:3px;  /* 图例色块等微元素 */

  /* ---- 焦点环（键盘可达，见 2.11）---- */
  --focus:0 0 0 3px rgba(255,159,21,.45);

  /* ---- 字体族：系统栈，中文渲染最稳，不引外部字体 ---- */
  --font-sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  --font-num:var(--font-sans);

  /* ---- 字号 6 级（2.2）---- */
  --fs-title:20px;  --lh-title:28px;  /* 标题 L：页面主标题（全站统一 20px） */
  --fs-h2:15px;     --lh-h2:22px;     /* 标题 M：卡片 / 分区标题 */
  --fs-body:14px;   --lh-body:22px;   /* 正文：表格内容、表单值 */
  --fs-sub:13px;    --lh-sub:20px;    /* 辅助：说明文字 */
  --fs-label:12px;  --lh-label:18px;  /* 标签 / 表头 / 徽章 */
  --fs-micro:11px;  --lh-micro:16px;  /* 微标签 / 角标（全站字号下限 11px） */
  --fw-regular:400;
  --fw-semibold:600;
  --fw-bold:700;

  /* ---- 按钮规格（2.3）：4 级 × 2 尺寸 ---- */
  --btn-h:40px;      --btn-pad-x:16px;  --btn-radius:8px;    --btn-fs:14px;   /* 页面级 */
  --btn-h-sm:32px;   --btn-pad-x-sm:11px; --btn-radius-sm:7px; --btn-fs-sm:12.5px; /* 行内级 */
  --btn-gap:12px;    --btn-gap-sm:8px;  /* 相邻按钮间距（≥8px 防误点） */

  /* ---- 卡片与表格规格（2.4）---- */
  --card-radius:var(--radius);
  --card-pad-y:18px;   --card-pad-x:22px;
  --th-fs:12px;        --td-fs:13.5px;   --row-pad-y:13px;
  --prose-max:78ch;

  /* ---- 侧栏（2.5）---- */
  --nav-indent:14px;   /* 导航项左缘：与顶部品牌 logo 左缘对齐 */
  --sidebar-w:240px;   --sidebar-rail-w:64px;
  --avatar-size:30px;  /* 账号卡头像（2.8） */

  /* ---- 动效（2.13 · 统一时长与缓动）---- */
  --t-fast:150ms;      --t-base:200ms;   --ease:cubic-bezier(.4,0,.2,1);
}

/* 尊重系统「减弱动态效果」 */
@media (prefers-reduced-motion: reduce){
  *{ transition-duration:1ms !important; animation-duration:1ms !important; }
}

/* 数字对齐：金额 / 计数纵列不跳动 */
.num,.tabular{ font-variant-numeric:tabular-nums; }
