/* 中文字体优化配置 - 适合技术文档 */

/* 全局字体设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "微软雅黑", Arial, sans-serif;
    line-height: 1.8;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "微软雅黑", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 2em;
    line-height: 1.3;
}

h2 {
    font-size: 1.6em;
}

h3 {
    font-size: 1.3em;
}

/* 代码块字体 - 使用等宽字体 */
code, pre, .literal, .sourcecode {
    font-family: "JetBrains Mono", "Fira Code", "Source Code Pro",
                 "Consolas", "Monaco", "Courier New", monospace;
    font-size: 0.9em;
}

/* 段落行高和间距优化 */
p {
    line-height: 1.9;
    margin-bottom: 1.2em;
    margin-top: 0;
}

/* 列表项间距 */
ul, ol {
    line-height: 1.8;
    margin-bottom: 1.2em;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.8;
}

li p {
    margin-bottom: 0.6em;
}

/* 改善代码块样式 */
pre {
    padding: 14px 18px;
    border-radius: 4px;
    line-height: 1.7;
    margin: 1.2em 0;
}

/* 行内代码 */
code {
    padding: 2px 6px;
    border-radius: 3px;
}

/* 改善表格可读性 */
table {
    font-size: 0.95em;
    line-height: 1.7;
    margin: 1.2em 0;
}

th, td {
    padding: 8px 12px;
    line-height: 1.7;
}

th {
    font-weight: 600;
}

/* 改善链接样式 */
a {
    text-decoration: none;
    border-bottom: 1px dotted;
}

a:hover {
    border-bottom: 1px solid;
}

/* 引用块优化 */
blockquote {
    line-height: 1.8;
    margin: 1.2em 0;
    padding: 10px 20px;
}
