/* extra.css */

/* 全局字体设置 - 使用系统字体替代外部字体 */
body,
.md-typeset {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !important;
}

/* 确保所有代码元素使用等宽字体 */
code,
pre,
.language-python,
.highlight,
.highlight pre,
.codehilite,
.codehilite pre,
[class*="language-"],
.highlighttable,
.highlighttable pre {
    font-family: 'Consolas', 'Monaco', 'Courier New', Courier, monospace !important;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 内联代码 */
:not(pre) > code {
    background-color: var(--md-code-bg-color);
    border-radius: 0.2rem;
    padding: 0.1rem 0.3rem;
    color: var(--md-code-fg-color);
}

/* 代码块 */
pre code {
    font-family: inherit !important;
}

/* 表格内的代码 */
table code {
    font-family: 'Consolas', 'Monaco', 'Courier New', Courier, monospace !important;
    font-size: 0.85em;
}

/* 特别针对 ASCII 艺术表格优化 */
.highlight pre,
.highlighttable pre {
    font-family: 'Consolas', 'Monaco', 'Courier New', Courier, monospace !important;
    letter-spacing: 0.5px;
}
