/* 自定义标题样式 */

/* 页面标题 (自动从frontmatter title生成) */
#body h1 {
    font-weight: 700 !important;  /* 加粗 */
    font-size: 2.2em !important;  /* 调整大小 */
    line-height: 1.3 !important;
    margin-bottom: 1.5em !important;
    color: #333 !important;
}

/* 二级标题 */
#body h2 {
    font-weight: 600 !important;  /* 中等粗体 */
    font-size: 1.6em !important;  /* 减小尺寸 */
    line-height: 1.4 !important;
    margin-top: 2em !important;
    margin-bottom: 1em !important;
    color: #444 !important;
}

/* 三级标题 */
#body h3 {
    font-weight: 600 !important;
    font-size: 1.3em !important;
    line-height: 1.4 !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.8em !important;
    color: #555 !important;
}

/* 四级标题 */
#body h4 {
    font-weight: 600 !important;
    font-size: 1.1em !important;
    line-height: 1.4 !important;
    margin-top: 1.2em !important;
    margin-bottom: 0.6em !important;
    color: #666 !important;
}

/* 确保标题层次清晰 */
#body h1 { border-bottom: 2px solid #eee; padding-bottom: 0.5em; }
#body h2 { border-bottom: 1px solid #eee; padding-bottom: 0.3em; }

/* 改善中文字体显示 */
#body h1, #body h2, #body h3, #body h4, #body h5, #body h6 {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', sans-serif !important;
}