/**
 * 站点字体 — 在 _config.Klise-enhanced.yml 的 font.preset 切换
 * song        京华老宋体（宋意，适合长文笔记）
 * song-slant  宋体 + 轻微倾斜（中文无真斜体，用 oblique 模拟）
 * xingshu     鸿雷行书简体（全站行书，适合短句；长文略费眼）
 * mix         正文宋体，标题/书摘/导航用行书
 */

@import url("https://unpkg.com/@chinese-fonts/jhlst@3.0.0/dist/%E4%BA%AC%E8%8F%AF%E8%80%81%E5%AE%8B%E4%BD%93v2_002/result.css");
@import url("https://unpkg.com/@chinese-fonts/hlxsjt@3.0.0/dist/%E9%B8%BF%E9%9B%B7%E8%A1%8C%E4%B9%A6%E7%AE%80%E4%BD%93/result.css");

:root {
  --font-song: "KingHwa_OldSong", "LXGW Neo ZhiSong", "Songti SC", "Noto Serif SC", serif;
  --font-xingshu: "hongleixingshu", "Zhi Mang Xing", "KaiTi", cursive;
  --font-sans-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 默认：宋体 */
body.font-preset-song,
body.font-preset-song-slant,
body.font-preset-mix {
  font-family: var(--font-song), var(--font-sans-fallback) !important;
}

body.font-preset-song-slant {
  font-style: oblique;
}

/* 行书全站 */
body.font-preset-xingshu {
  font-family: var(--font-xingshu), var(--font-song), var(--font-sans-fallback) !important;
  letter-spacing: 0.02em;
}

/* 混排：正文宋，标题/书摘/菜单行书 */
body.font-preset-mix h1,
body.font-preset-mix h2,
body.font-preset-mix h3,
body.font-preset-mix .header-title,
body.font-preset-mix .motto-content,
body.font-preset-mix .menu-link,
body.font-preset-mix .author-name {
  font-family: var(--font-xingshu), var(--font-song), serif !important;
  letter-spacing: 0.03em;
}

/* 代码块保持等宽 */
pre,
code,
kbd,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-style: normal !important;
}
