/* tokens.css — 花植植物科目大全 设计变量（唯一来源）
   三页共用：index.html / category.html / detail.html
   颜色取自视觉稿 03-ui/home-ui-desktop.png；字号阶取自首页实测值。
   style.css 不再自带 :root，全部变量在这里维护。 */

:root {
  /* ---- 底色与表面 ---- */
  --bg: #fbfbf8;                 /* 页面主底 */
  --bg-warm: #f7f5eb;            /* 暖米底：科目索引区 */
  --bg-cool: #f6f6f1;            /* 冷米底：精选区 / 追问区 */
  --bg-deep: #eff2e8;            /* 浅叶绿底：入门三步区 */
  --surface: #f8f7ef;            /* 卡片表面（科目卡 / 步骤卡） */
  --surface-strong: #fbfbf5;     /* 图标底盘 */

  /* ---- 品牌绿 ---- */
  --brand: #1f5c22;              /* 主强调：按钮、序号、图标 */
  --brand-deep: #17522e;         /* 页脚与按钮悬停 */
  --brand-soft: #e0e8d8;         /* 条数胶囊、hover 底 */
  --sage: #5a9660;               /* 表头、次级强调 */

  /* ---- 文字 ---- */
  --ink: #26321f;                /* 主文字 */
  --ink-soft: #5c6a52;           /* 正文次要 */
  --ink-faint: #7b8770;          /* 说明 / 元信息 */
  --ink-alt: #f4f8ee;            /* 深绿底上的主文字 */
  --ink-invert: #ffffff;         /* 纯白（高对比标签） */

  /* ---- 线条 ---- */
  --line: rgba(31, 92, 34, 0.14);
  --line-strong: rgba(31, 92, 34, 0.26);
  --line-invert: rgba(233, 241, 228, 0.28);
  --line-invert-strong: rgba(233, 241, 228, 0.55);

  /* ---- 字体 ---- */
  --serif: 'Songti SC',SimSun,'Noto Serif SC',Georgia,serif;
  --sans: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;

  /* ---- 字号阶 ---- */
  --fs-1: 12px;      /* 极小：页脚尾注、图表单位 */
  --fs-2: 12.5px;    /* 徽标、卡内摘要 */
  --fs-3: 13px;      /* 表格、页脚导航 */
  --fs-4: 14px;      /* 导语、导航 */
  --fs-5: 15px;      /* 按钮、列表标题 */
  --fs-6: 16px;      /* 卡片标题 */
  --fs-7: 18px;      /* 小标题、统计数字 */
  --fs-8: 21px;      /* 品牌字标 */
  --fs-9: 27px;      /* 区块标题 */
  --fs-10: 34px;     /* 内页 h1 */
  --fs-11: 40px;     /* 首页 h1 */
  --fs-12: 42px;     /* 详情页 h1 */

  /* ---- 圆角 ---- */
  --r-1: 4px;        /* 小标签 */
  --r-2: 8px;        /* 按钮、缩略图 */
  --r-3: 10px;       /* 卡片 */
  --r-4: 12px;       /* 面板 */
  --r-5: 999px;      /* 胶囊 */
  --r-round: 50%;    /* 圆形图标盘 */
  --r-card: var(--r-3);
  --r-media: var(--r-2);

  /* ---- 布局 ---- */
  --container: 1372px;
  --gutter: 34px;
  --section-pad: 44px;

  /* ---- 阴影（本站只用 1 级） ---- */
  --shadow-1: 0 1px 0 rgba(31, 92, 34, 0.04);

  /* ---- 动效 ---- */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 0.2s;
}
