/* ============================================================
   aia 站点字体 · 全站共享
   阿里官方开源商用字体（www.alibabafonts.com）

   用法：任何层级的页面都引用这一份即可
     <link rel="stylesheet" href="/fonts/fonts.css" />

   注意：「/fonts/」是站点根绝对路径：
     · 部署到 https://aia.arkvip.cn/ 后，任何页面都能取到
     · 本地服务预览（http://127.0.0.1:PORT/）同样生效
     · 唯一例外：file:// 直接双击打不开（用本地服务或 _本地双击版）

   字体子集说明：
     只保留全站实际用到的 1,146 字符（1,008 汉字）
     原始 22.3MB → 子集后 1.47MB（压缩 94%）
     若新增生僻字显示为方块，需重新子集化：
       04-脚本与工具\zcode-acp\subset_fonts.py
   ============================================================ */

/* 标题：阿里妈妈数黑体 */
@font-face {
  font-family: "ShuHei";
  src: url("/fonts/shuhei.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* 正文：阿里妈妈方圆体（可变字重 200-700） */
@font-face {
  font-family: "FangYuan";
  src: url("/fonts/fangyuan.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

/* 备选/强调：钉钉进步体 */
@font-face {
  font-family: "DingTalk";
  src: url("/fonts/dingtalk.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* 以下三款按需使用（体积较大，默认不加载，只有页面显式指定 font-family 才触发） */

/* 阿里妈妈东方大楷 */
@font-face {
  font-family: "DongFangDaKai";
  src: url("/fonts/dongfangdakai.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* 阿里妈妈刀隶体 */
@font-face {
  font-family: "DaoLi";
  src: url("/fonts/daoli.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* 淘宝买菜体 */
@font-face {
  font-family: "TaoBaoMaiCai";
  src: url("/fonts/taobaomaicai.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- 语义变量：页面直接用这两个 ---------- */
:root {
  --font-display: "ShuHei", "FangYuan", sans-serif;
  --font-body:    "FangYuan", "DingTalk", -apple-system, "PingFang SC",
                  "Microsoft YaHei", sans-serif;
}