﻿/* =========================================================================
   本草智耕 · 中药材种植基地数字化管理平台
   styles/tokens.css —— 设计令牌（颜色 / 字号 / 间距 / 圆角 / 阴影 / 布局骨架）
   V2.0 布局改版：页面只允许使用这里的变量，禁止在页面里写死色值
   ========================================================================= */
:root {
  /* ---- 品牌色 ---- */
  --brand-900: #0f2f20;
  --brand-800: #16402c;   /* 深色顶栏 */
  --brand-700: #1d5138;
  --brand-600: #2f6a45;   /* 主色 / 主按钮 */
  --brand-500: #3f7d55;
  --brand-300: #9fc3a8;
  --brand-200: #cfe0c8;
  --brand-100: #e7efe4;   /* 选中态浅底 */
  --brand-50:  #f1f6ee;

  /* ---- 中性色 ---- */
  --ink-900: #1d2a22;     /* 标题 / 数字 */
  --ink-700: #3b4a41;     /* 正文 */
  --ink-500: #6b776f;     /* 次要文字 */
  --ink-300: #a8b1a9;     /* 占位 / 禁用 */
  --line: #e2e6df;
  --line-strong: #cfd6cb;
  --surface: #ffffff;
  --surface-2: #f7f8f5;
  --page: #eef0ea;        /* 管理端页面底色 */
  --page-h5: #f5f4ee;     /* 员工端页面底色 */

  /* ---- 语义色 ---- */
  --ok: #2f7d4a;      --ok-bg: #edf5ec;     --ok-line: #cfe0c8;
  --warn: #b06a19;    --warn-bg: #fdf4e3;   --warn-line: #f2ddb8;
  --danger: #b93b2c;  --danger-bg: #fbeee9; --danger-line: #f0cfc6;
  --info: #3d7ea6;    --info-bg: #eaf2f7;   --info-line: #cfe2ee;

  /* ---- 字号 ---- */
  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px;
  --fs-16: 16px; --fs-18: 18px; --fs-20: 20px; --fs-24: 24px; --fs-28: 28px;
  --lh-tight: 1.25; --lh-normal: 1.55;

  /* ---- 间距（4 的倍数） ---- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

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

  /* ---- 阴影 ---- */
  --sh-1: 0 1px 2px rgba(22, 64, 44, .06);
  --sh-2: 0 4px 16px rgba(22, 64, 44, .07);
  --sh-3: 0 12px 32px rgba(22, 64, 44, .12);

  /* ---- 布局骨架（改版核心） ---- */
  --shell-topbar-h: 56px;
  --shell-sidebar-w: 224px;
  --shell-sidebar-w-collapsed: 72px;
  --shell-content-pad: 24px;
  --shell-gap: 16px;
  --h5-topbar-h: 56px;
  --h5-tabbar-h: 56px;
  --h5-safe-bottom: 14px;
  --h5-actionbar-h: 54px;

  /* ---- 字体 ---- */
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-num: "DIN Alternate", "SF Pro Display", system-ui, sans-serif;
}

