/* ============================================================
   PFIC 字体：定义 + 全站应用
   所有页面最后引入这一个文件即可，不要在各页面重复写 font-family
   ============================================================ */

/* ---------- 1. 字体定义（自托管，GB2312 子集） ---------- */
@font-face {
  font-family: "Noto Sans SC";
  src: url("/fonts/notoSansSC.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("/fonts/notoSerifSC.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 等宽字体：代码、行内码、表格里的数字都用它 */
@font-face {
  font-family: "Noto Sans Mono";
  src: url("/fonts/notoSansMonoVar.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. 默认：无衬线 ---------- */
/* 用 html body 提高优先级，压过各模块自己的 body 规则 */
html body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

html body button,
html body input,
html body select,
html body textarea,
html body label,
html body table,
html body nav,
html body .pf-ui {
  font-family: inherit;
}

/* ---------- 3. 阅读型内容：衬线 ---------- */
html body h1,
html body .pf-title {
  font-family: "Noto Serif SC", Georgia, "Songti SC", serif;
  font-weight: 700;
}

html body article,
html body .pf-prose,
html body .blog-content,
html body blockquote {
  font-family: "Noto Serif SC", Georgia, "Songti SC", serif;
}

/* Wiki 正文改回无衬线：长文里衬线在小字号下不如黑体清楚 */
html body .wiki-content {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

/* 标题保留衬线，和正文拉开层次 */
html body .wiki-content h1,
html body .wiki-content h2 {
  font-family: "Noto Serif SC", Georgia, "Songti SC", serif;
}

/* 文章内的小标题回到无衬线，避免整页都"变粗" */
html body article h3,
html body article h4,
html body .pf-prose h3,
html body .pf-prose h4 {
  font-family: "Noto Sans SC", sans-serif;
}

/* ---------- 4. 代码 / 数字（Noto Sans Mono 自托管） ---------- */
html body code,
html body kbd,
html body samp,
html body var,
html body pre,
html body .pf-mono,
html body .pf-num {
  font-family: "Noto Sans Mono", ui-monospace, SFMono-Regular, "SF Mono",
    Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- 5. 保留主站装饰字体 ---------- */
/* 主站 .announcement 等元素明确指定了 VonwaonBitmap，这里不覆盖 */
html body .announcement,
html body .announcement * {
  font-family: "VonwaonBitmap", "Noto Sans SC", monospace;
}
