/* markdown-latex.css - 美化 Markdown 和 LaTeX 显示样式 */

/* 基础文章容器样式 */
.markdown-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    max-width: 100%;
}

/* 标题 */
.markdown-content h1 {
    font-size: 2em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.markdown-content h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}
.markdown-content h3 { font-size: 1.25em; margin-top: 1.2em; }
.markdown-content h4 { font-size: 1em; margin-top: 1em; }

/* 段落 */
.markdown-content p {
    margin-bottom: 1em;
    margin-top: 0;
}

/* 链接 */
.markdown-content a {
    color: #0366d6;
    text-decoration: none;
}
.markdown-content a:hover { text-decoration: underline; }

/* 列表 */
.markdown-content ul, .markdown-content ol {
    padding-left: 2em;
    margin-bottom: 1em;
}
.markdown-content li {
    margin-bottom: 0.2em;
}

/* 代码块 */
.markdown-content pre {
    background-color: #f6f8fa;
    border-radius: 3px;
    padding: 16px;
    overflow: auto;
    font-family: "SF Mono", Monaco, Consolas, "Courier New", monospace;
    font-size: 85%;
    line-height: 1.45;
    margin-bottom: 1em;
}
.markdown-content code {
    background-color: #f6f8fa;
    border-radius: 3px;
    padding: 0.2em 0.4em;
    font-family: monospace;
    font-size: 85%;
}
.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

/* 引用块 */
.markdown-content blockquote {
    border-left: 4px solid #dfe2e5;
    color: #6a737d;
    padding: 0 1em;
    margin-left: 0;
    margin-bottom: 1em;
}

/* 表格 */
.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}
.markdown-content th, .markdown-content td {
    border: 1px solid #dfe2e5;
    padding: 6px 13px;
}
.markdown-content th {
    background-color: #f6f8fa;
    font-weight: 600;
}
.markdown-content tr:nth-child(even) { background-color: #fcfcfc; }

/* 水平线 */
.markdown-content hr {
    height: 0.25em;
    background-color: #e1e4e8;
    border: 0;
    margin: 24px 0;
}

/* 图片 */
.markdown-content img {
    max-width: 100%;
    box-sizing: content-box;
}

/* LaTeX 公式样式（MathJax 渲染后的样式微调） */
.MathJax {
    font-size: 1.1em;
}
.MathJax_Display {
    margin: 1em 0;
    overflow-x: auto;
    overflow-y: hidden;
}