/* ============================================================
   汇文明朝体 · 作用域规则（仅标题与正文；不含 @font-face）
   字体声明由 huiwen-faces.css（列表页/回退）或 fontcss.php（文章/首页动态）提供
   不影响：代码块(pre/code)、图标(iconfont)、导航、页脚
   ============================================================ */

/* 标题：文章标题、首页列表标题、正文内小标题 */
.hw-font h1,
.hw-font h2,
.hw-font h3,
.hw-font h4,
.hw-font h5,
.hw-font h6 {
    font-family: "Huiwen Mingchao", "汇文明朝体", "Songti SC", "STSong", "SimSun", serif;
}

/* 正文：文章/页面正文、首页摘要 */
.hw-font .post,
.hw-font .excerpt {
    font-family: "Huiwen Mingchao", "汇文明朝体", "Songti SC", "STSong", "SimSun", serif;
}

/* 代码块保持等宽字体，绝不被明朝体覆盖 */
.hw-font .post pre,
.hw-font .post code,
.hw-font pre,
.hw-font code {
    font-family: consolas, Courier, monospace !important;
}

/* ============================================================
   字号联动（本文件仅在后台启用汇文明朝体时加载；
   关闭时完全不加载，各字号保持主题原样）
   ============================================================ */

/* 文章页文章标题：原 1.4em → 2.0em */
.hw-font article.content h1 {
    font-size: 2.0em;
}

/* 文章页正文：原 16px → 22px（含正文内 p） */
.hw-font article.content .post,
.hw-font article.content .post p {
    font-size: 22px;
}

/* 正文内小标题 h2-h6：随正文同步放大到 22px
   （主题原设计 h2-h6 与正文同为 16px，保持 1:1 比例不变） */
.hw-font article.content .post h2,
.hw-font article.content .post h3,
.hw-font article.content .post h4,
.hw-font article.content .post h5,
.hw-font article.content .post h6 {
    font-size: 22px;
}

/* 首页文章列表标题：→ 1.4em */
.hw-font .article-list h2 {
    font-size: 1.4em;
}

/* 首页文章列表摘要：→ 20px（含摘要内 p） */
.hw-font .excerpt,
.hw-font .excerpt p {
    font-size: 20px;
}
