/* 全站正文优先使用系统自带字体。 */

html:root {
    --ui-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
        Roboto, "Helvetica Neue", Arial,
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Noto Sans CJK SC", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji";
    --van-base-font: var(--ui-font-family);
}

/* 0923 需求迭代-页面 UI优化：全站文本统一字体，覆盖页面、弹窗和第三方组件的旧文本字体。 */
html body,
html body *:not(:where(
    pre, pre *, code, code *, kbd, kbd *, samp, samp *,
    .fa, .fa *, .fas, .fas *, .far, .far *, .fab, .fab *,
    .fal, .fal *, .fad, .fad *, .fat, .fat *,
    [class^="fa-"], [class^="fa-"] *, [class*=" fa-"], [class*=" fa-"] *,
    .layui-icon, .layui-icon *, .van-icon, .van-icon *, .iconfont, .iconfont *
)) {
    font-family: var(--ui-font-family) !important;
}

/* 兼容模板中带 !important 的播放器及 GitHub 信息区域。 */
html body .github-box,
html body .github-box .github-box-title h3,
html body .aplayer {
    font-family: var(--ui-font-family) !important;
}
