/* =========================================
   字体覆盖：Inter（西文） + Noto Sans SC（中文）
   ---------------------------------------------
   两款字体均为 SIL Open Font License 1.1，
   允许自由使用 / 修改 / 子集化 / 再分发；
   随字体分发时须保留许可声明（见同目录 OFL.txt）。

   体积对比（旧：阿里巴巴普惠体 3 字重 16.2MB → 现 1.0MB）：
     InterVariable.woff2       60 KB   西文（ASCII + Latin-1 子集，保留 wght 轴）
     NotoSansSC-Subset.woff2   973 KB   中文（GB2312 一级字库 3755 字 + 页面字符）
   ========================================= */

/* Inter Variable —— 西文正文，字体栈中优先使用 */
@font-face {
    font-family: 'Inter Var';
    src: url('InterVariable.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap; /* 关键：避免字体加载阻塞文字显示 */
}

/* Noto Sans SC —— 中文子集，保留 wght 400-700 可变轴（默认实例 = 400） */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('NotoSansSC-Subset.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   覆盖 Tabler UI 全局字体栈
   ========================================= */
:root {
    --tblr-font-sans-serif:
            'Inter Var',           /* 英文优先使用 Inter */
            'Noto Sans SC',        /* 中文使用 Noto Sans SC 子集 */
            'PingFang SC',         /* 罕见字回退：macOS / iOS */
            'Microsoft YaHei',     /* 罕见字回退：Windows */
            'Hiragino Sans GB',
            'Noto Sans CJK SC',    /* 罕见字回退：Android / Linux */
            'Source Han Sans SC',
            -apple-system, BlinkMacSystemFont,
            "Segoe UI", Roboto,
            "Helvetica Neue", Arial,
            sans-serif;

    /* 确保 Tabler 的字重变量映射正确 */
    --tblr-font-weight-normal: 400;
    --tblr-font-weight-medium: 500;
    --tblr-font-weight-bold: 600;
}
