/**
 * 全站字体（public/fonts/library -> resources/fonts）
 * 仅加载思源宋体 / 思源黑体 / 阿里巴巴普惠体各 3 档字重，其余走系统字体以加速首屏。
 */
:root {
    --font-serif: "Source Han Serif SC", "Songti SC", "Noto Serif SC", "SimSun", serif;
    --font-sans: "Source Han Sans SC", "Alibaba PuHuiTi", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 思源宋体 SC */
@font-face {
    font-family: "Source Han Serif SC";
    src: url("/fonts/library/SourceHanSerifSC-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Han Serif SC";
    src: url("/fonts/library/SourceHanSerifSC-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Han Serif SC";
    src: url("/fonts/library/SourceHanSerifSC-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 思源黑体 SC */
@font-face {
    font-family: "Source Han Sans SC";
    src: url("/fonts/library/SourceHanSansSC-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Han Sans SC";
    src: url("/fonts/library/SourceHanSansSC-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Han Sans SC";
    src: url("/fonts/library/SourceHanSansSC-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 阿里巴巴普惠体 3 */
@font-face {
    font-family: "Alibaba PuHuiTi";
    src: url("/fonts/library/AlibabaPuHuiTi-3-55-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alibaba PuHuiTi";
    src: url("/fonts/library/AlibabaPuHuiTi-3-65-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alibaba PuHuiTi";
    src: url("/fonts/library/AlibabaPuHuiTi-3-85-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html,
body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif,
.font-songti,
.prose-serif {
    font-family: var(--font-serif);
}

strong,
b {
    font-weight: 700;
}
