/* ===== math12.css - 数学公式专用样式 ===== */
/* 版本：1.0.0 */
/* 用途：支持 LaTeX 数学公式和 Python 表达式渲染的容器样式 */
/* 特点：使用高优先级选择器避免样式被覆盖，支持 KaTeX 和自定义渲染 */

/* ==================== math12 容器基础样式 ==================== */

/* 主容器 - 使用最高优先级选择器 */
html body div.math12,
body div.math12,
body .math12,
.math12 {
    background-color: #1a1a2e !important;
    border: 1px solid #3a3a5c !important;
    border-radius: 8px !important;
    padding: 20px 24px !important;
    margin: 16px 0 !important;
    font-family: 'KaTeX_Main', 'Times New Roman', 'Microsoft YaHei', 'PingFang SC', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #e0e0e0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

/* 防止容器内的内容被截断 */
.math12 * {
    box-sizing: border-box !important;
}

/* ==================== 防止 class/span 属性泄露 ==================== */

/* 确保 class 属性不会作为文本显示 */
.math12 [class]::before,
.math12 [class]::after {
    content: normal !important;
}

/* 防止 span 标签内容重复 */
.math12 span {
    display: inline !important;
    content: normal !important;
}

/* 确保 data 属性不会泄露到渲染内容中 */
.math12 [data-math]::before,
.math12 [data-math]::after {
    content: normal !important;
}

.math12 [data-root]::before,
.math12 [data-root]::after {
    content: normal !important;
}

/* ==================== 标题样式 ==================== */

body .math12 h1,
body .math12 h2,
body .math12 h3,
body .math12 h4,
body .math12 h5,
body .math12 h6,
.math12 h1,
.math12 h2,
.math12 h3,
.math12 h4,
.math12 h5,
.math12 h6 {
    margin-top: 18px !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif !important;
}

.math12 h1 {
    font-size: 1.8em !important;
    border-bottom: 2px solid #5ab0ff !important;
    padding-bottom: 10px !important;
    margin-top: 24px !important;
}

.math12 h2 {
    font-size: 1.5em !important;
    border-bottom: 1px solid #4a9eff !important;
    padding-bottom: 8px !important;
    margin-top: 20px !important;
}

.math12 h3 { font-size: 1.3em !important; color: #7eb8ff !important; }
.math12 h4 { font-size: 1.2em !important; color: #9bc5ff !important; }
.math12 h5 { font-size: 1.1em !important; color: #b8d4ff !important; }
.math12 h6 { font-size: 1em !important; color: #d4e4ff !important; }

/* ==================== 段落样式 ==================== */

body .math12 p,
.math12 p {
    margin: 12px 0 !important;
    line-height: 1.7 !important;
    text-align: justify !important;
    color: #e0e0e0 !important;
}

/* ==================== 列表样式 ==================== */

body .math12 ul,
body .math12 ol,
.math12 ul,
.math12 ol {
    margin: 10px 0 !important;
    padding-left: 28px !important;
    color: #e0e0e0 !important;
}

.math12 ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
}

.math12 ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
}

body .math12 li,
.math12 li {
    margin: 6px 0 !important;
    line-height: 1.6 !important;
    padding-left: 4px !important;
    list-style-position: outside !important;
    display: list-item !important;
    color: #e0e0e0 !important;
}

/* 嵌套列表 */
body .math12 ul ul,
.math12 ul ul {
    list-style-type: circle !important;
    margin: 4px 0 !important;
    padding-left: 24px !important;
}

body .math12 ul ul ul,
.math12 ul ul ul {
    list-style-type: square !important;
    padding-left: 24px !important;
}

body .math12 ol ol,
.math12 ol ol {
    list-style-type: lower-alpha !important;
    margin: 4px 0 !important;
    padding-left: 24px !important;
}

/* ==================== 行内公式样式 ==================== */

.math12 .math-inline {
    font-family: 'KaTeX_Math', 'Times New Roman', serif !important;
    font-size: 1.05em !important;
    color: #f0f0f0 !important;
    background: rgba(90, 176, 255, 0.12) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    display: inline !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
    border: 1px solid rgba(90, 176, 255, 0.2) !important;
}

/* ==================== 块级公式样式 ==================== */

.math12 .math-block {
    font-family: 'KaTeX_Math', 'Times New Roman', serif !important;
    font-size: 1.15em !important;
    color: #f8f8f8 !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%) !important;
    border: 1px solid rgba(90, 176, 255, 0.35) !important;
    border-left: 4px solid #5ab0ff !important;
    border-radius: 8px !important;
    padding: 18px 16px !important;
    margin: 20px 0 !important;
    display: block !important;
    text-align: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

/* ==================== 分数样式 ==================== */

.math12 .fraction {
    display: inline-block !important;
    text-align: center !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
}

.math12 .fraction .numerator {
    display: block !important;
    border-bottom: 1px solid #5ab0ff !important;
    padding: 2px 6px !important;
    font-size: 0.95em !important;
    color: #f0f0f0 !important;
}

.math12 .fraction .denominator {
    display: block !important;
    padding: 2px 6px !important;
    font-size: 0.95em !important;
    color: #f0f0f0 !important;
}

/* ==================== 上下标样式 ==================== */

.math12 sup,
.math12 .superscript {
    vertical-align: super !important;
    font-size: 0.75em !important;
    line-height: 1 !important;
    color: #e0e0e0 !important;
}

.math12 sub,
.math12 .subscript {
    vertical-align: sub !important;
    font-size: 0.75em !important;
    line-height: 1 !important;
    color: #e0e0e0 !important;
}

/* ==================== 根号样式 ==================== */

.math12 .sqrt {
    display: inline-block !important;
    vertical-align: middle !important;
    color: #5ab0ff !important;
    font-weight: bold !important;
}

.math12 .sqrt::before {
    content: "√" !important;
    font-size: 1.2em !important;
}

.math12 .sqrt .radicand {
    border-top: 1px solid #5ab0ff !important;
    padding-left: 4px !important;
    display: inline-block !important;
    color: #f0f0f0 !important;
}

/* ==================== 求和与积分样式 ==================== */

.math12 .sum,
.math12 .int {
    display: inline-block !important;
    font-size: 1.5em !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    color: #7eb8ff !important;
}

.math12 .sum::before {
    content: "∑" !important;
}

.math12 .int::before {
    content: "∫" !important;
}

.math12 .limits {
    display: inline-block !important;
    vertical-align: middle !important;
    text-align: center !important;
    font-size: 0.75em !important;
    line-height: 1.3 !important;
    margin-left: 2px !important;
}

.math12 .limits .upper {
    display: block !important;
    color: #e0e0e0 !important;
}

.math12 .limits .lower {
    display: block !important;
    color: #e0e0e0 !important;
}

/* ==================== 希腊字母样式 ==================== */

.math12 .greek {
    font-style: italic !important;
    font-family: 'KaTeX_Math', 'Times New Roman', serif !important;
    color: #9bc5ff !important;
}

/* ==================== 运算符样式 ==================== */

.math12 .operator {
    color: #7eb8ff !important;
    font-weight: 500 !important;
    padding: 0 2px !important;
}

/* ==================== 关系符样式 ==================== */

.math12 .mrel {
    color: #a3d3ff !important;
    padding: 0 4px !important;
}

/* ==================== 括号样式 ==================== */

.math12 .parentheses {
    color: #c0c0c0 !important;
    font-weight: 500 !important;
    padding: 0 2px !important;
}

/* ==================== 绝对值样式 ==================== */

.math12 .abs {
    color: #f0f0f0 !important;
    padding: 0 4px !important;
}

.math12 .abs::before {
    content: "|" !important;
    color: #c0c0c0 !important;
}

.math12 .abs::after {
    content: "|" !important;
    color: #c0c0c0 !important;
}

/* ==================== 范数样式（带上下标） ==================== */

.math12 .norm {
    display: inline-flex !important;
    align-items: baseline !important;
    vertical-align: middle !important;
}

.math12 .norm .abs {
    position: relative !important;
    padding: 0 2px !important;
}

.math12 .norm sub { font-size: 0.7em !important; color: #a3d3ff !important; vertical-align: sub !important; }
.math12 .norm sup { font-size: 0.7em !important; color: #a3d3ff !important; vertical-align: super !important; }

/* ==================== 数学重音符号样式 ==================== */

.math12 .math-accent {
    display: inline-flex !important;
    align-items: baseline !important;
    vertical-align: middle !important;
    margin: 0 1px !important;
}

.math12 .accent-hat {
    position: relative !important;
    display: inline-block !important;
    padding-top: 0.4em !important;
    margin-top: 0.3em !important;
    color: #7eb8ff !important;
}

.math12 .accent-hat::before {
    content: '^' !important;
    position: absolute !important;
    top: -0.2em !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 0.7em !important;
    color: #7eb8ff !important;
}

.math12 .accent-bar {
    position: relative !important;
    display: inline-block !important;
    padding-top: 0.3em !important;
    border-top: 1px solid #7eb8ff !important;
    color: #7eb8ff !important;
}

.math12 .accent-vec {
    position: relative !important;
    display: inline-block !important;
    padding-top: 0.4em !important;
    margin-top: 0.3em !important;
    color: #7eb8ff !important;
}

.math12 .accent-vec::before {
    content: '→' !important;
    position: absolute !important;
    top: -0.15em !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 0.7em !important;
    color: #7eb8ff !important;
}

.math12 .accent-dot {
    position: relative !important;
    display: inline-block !important;
    padding-top: 0.4em !important;
    margin-top: 0.3em !important;
    color: #7eb8ff !important;
}

.math12 .accent-dot::before {
    content: '·' !important;
    position: absolute !important;
    top: -0.1em !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 0.8em !important;
    color: #7eb8ff !important;
}

.math12 .accent-tilde {
    position: relative !important;
    display: inline-block !important;
    padding-top: 0.4em !important;
    margin-top: 0.3em !important;
    color: #7eb8ff !important;
}

.math12 .accent-tilde::before {
    content: '~' !important;
    position: absolute !important;
    top: -0.15em !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 0.7em !important;
    color: #7eb8ff !important;
}

.math12 .math-accent sub {
    font-size: 0.75em !important;
    color: #a3d3ff !important;
    vertical-align: sub !important;
    margin-left: 1px !important;
}

.math12 .math-accent sup {
    font-size: 0.75em !important;
    color: #a3d3ff !important;
    vertical-align: super !important;
    margin-left: 1px !important;
}

/* ==================== 矩阵样式 ==================== */

.math12 .matrix {
    display: inline-block !important;
    vertical-align: middle !important;
    text-align: center !important;
    padding: 4px !important;
}

.math12 .matrix-row {
    display: block !important;
}

.math12 .matrix-cell {
    display: inline-block !important;
    padding: 4px 8px !important;
    text-align: center !important;
    color: #f0f0f0 !important;
}

/* ==================== Python 表达式样式 ==================== */

/* Python 运算符 */
.math12 .python-op {
    color: #ff79c6 !important;
    font-weight: bold !important;
}

/* Python 函数调用 */
.math12 .python-func {
    color: #50fa7b !important;
    font-weight: 500 !important;
}

/* Python 变量 */
.math12 .python-var {
    color: #f8f8f8 !important;
}

/* Python 括号 */
.math12 .python-paren {
    color: #8be9fd !important;
    font-weight: bold !important;
}

/* Python 数字 */
.math12 .python-num {
    color: #bd93f9 !important;
}

/* Python 字符串 */
.math12 .python-string {
    color: #f1fa8c !important;
}

/* ==================== 代码块样式 ==================== */

body .math12 pre,
.math12 pre {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a3e 100%) !important;
    border: 1px solid #4a9eff !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin: 16px 0 !important;
    overflow-x: auto !important;
    font-size: 0.95em !important;
    line-height: 1.6 !important;
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.15) !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace !important;
    color: #e0e0e0 !important;
}

body .math12 pre code,
.math12 pre code {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 1em !important;
    color: #e0e0e0 !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace !important;
    display: block !important;
    white-space: pre !important;
}

/* 内联代码 */
body .math12 p > code,
body .math12 li > code,
body .math12 td > code,
.math12 p > code,
.math12 li > code,
.math12 td > code {
    background: linear-gradient(135deg, rgba(90, 176, 255, 0.15) 0%, rgba(90, 176, 255, 0.08) 100%) !important;
    border: 1px solid rgba(90, 176, 255, 0.2) !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 0.85em !important;
    color: #e0e0e0 !important;
    display: inline !important;
    white-space: nowrap !important;
}

/* ==================== 引用样式 ==================== */

body .math12 blockquote,
.math12 blockquote {
    border-left: 4px solid #5ab0ff !important;
    margin: 14px 0 !important;
    padding: 10px 16px !important;
    background-color: rgba(90, 176, 255, 0.08) !important;
    color: #bbb !important;
    font-style: italic !important;
    border-radius: 0 6px 6px 0 !important;
}

/* ==================== 表格样式 ==================== */

body .math12 table,
.math12 table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 14px 0 !important;
    font-size: 0.95em !important;
    background-color: #16162a !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid #3a3a5c !important;
}

body .math12 th,
.math12 th {
    border: 1px solid #4a4a6a !important;
    padding: 10px 14px !important;
    text-align: left !important;
    background: linear-gradient(135deg, #2a2a4a 0%, #1e3a5f 100%) !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

body .math12 td,
.math12 td {
    border: 1px solid #3a3a5a !important;
    padding: 8px 12px !important;
    text-align: left !important;
    background-color: #1a1a2e !important;
    color: #e0e0e0 !important;
}

/* 斑马纹 */
body .math12 tbody tr:nth-child(even),
.math12 tbody tr:nth-child(even) {
    background-color: #1f1f3a !important;
}

/* Hover 效果 */
body .math12 tbody tr:hover,
.math12 tbody tr:hover {
    background-color: #2a2a4a !important;
}

/* ==================== 链接样式 ==================== */

body .math12 a,
.math12 a {
    color: #5ab0ff !important;
    text-decoration: none !important;
    border-bottom: 1px dotted #5ab0ff !important;
    transition: all 0.2s ease !important;
}

.math12 a:hover {
    color: #7ac5ff !important;
    border-bottom-style: solid !important;
}

/* ==================== 文本样式 ==================== */

body .math12 strong,
body .math12 b,
.math12 strong,
.math12 b {
    font-weight: 600 !important;
    color: #f8f8f2 !important;
}

body .math12 em,
body .math12 i,
.math12 em,
.math12 i {
    font-style: italic !important;
    color: #e0e0e0 !important;
}

/* ==================== 分隔线样式 ==================== */

body .math12 hr,
.math12 hr {
    border: none !important;
    border-top: 1px solid #3a3a5c !important;
    margin: 18px 0 !important;
}

/* ==================== 图片样式 ==================== */

body .math12 img,
.math12 img {
    max-width: 100% !important;
    height: auto !important;
    margin: 14px 0 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* ==================== KaTeX 兼容性样式 ==================== */

/* 行内 KaTeX 公式 */
body .math12 .katex,
.math12 .katex {
    font: 1.1em KaTeX_Main, 'Times New Roman', 'Microsoft YaHei', serif !important;
    line-height: 1.25 !important;
    text-indent: 0 !important;
    text-rendering: auto !important;
    display: inline-block !important;
    margin: 0 4px !important;
    color: #f0f0f0 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* 块级 KaTeX 公式 */
body .math12 .katex-display,
.math12 .katex-display {
    display: block !important;
    margin: 20px 0 !important;
    padding: 16px 12px !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(90, 176, 255, 0.3) !important;
    border-left: 4px solid #5ab0ff !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    text-align: center !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

body .math12 .katex-display > .katex,
.math12 .katex-display > .katex {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 1.15em !important;
    color: #f8f8f8 !important;
}

/* KaTeX 数学符号颜色 */
body .math12 .katex .mord,
.math12 .katex .mord { color: #f0f0f0 !important; }

body .math12 .katex .mop,
.math12 .katex .mop { color: #7eb8ff !important; }

body .math12 .katex .mrel,
.math12 .katex .mrel { color: #a3d3ff !important; }

body .math12 .katex .mbin,
.math12 .katex .mbin { color: #7eb8ff !important; }

body .math12 .katex .mopen,
.math12 .katex .mopen { color: #c0c0c0 !important; }

body .math12 .katex .mclose,
.math12 .katex .mclose { color: #c0c0c0 !important; }

body .math12 .katex .mpunct,
.math12 .katex .mpunct { color: #e0e0e0 !important; }

/* ==================== 响应式设计 ==================== */

@media (max-width: 768px) {
    body .math12,
    .math12 {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }

    body .math12 .math-inline,
    .math12 .math-inline {
        font-size: 1em !important;
        padding: 2px 6px !important;
    }

    body .math12 .math-block,
    .math12 .math-block {
        font-size: 1em !important;
        padding: 14px 12px !important;
        margin: 16px 0 !important;
        overflow-x: auto !important;
    }

    body .math12 table,
    .math12 table {
        font-size: 0.85em !important;
    }

    body .math12 th,
    body .math12 td,
    .math12 th,
    .math12 td {
        padding: 6px 10px !important;
    }
}

/* ==================== 暗黑模式支持 ==================== */

@media (prefers-color-scheme: dark) {
    body .math12,
    .math12 {
        background-color: #12121f !important;
        border-color: #2a2a4a !important;
        color: #d0d0d0 !important;
    }

    body .math12 .fraction .numerator,
    .math12 .fraction .numerator {
        border-bottom-color: #7eb8ff !important;
    }

    body .math12 .sqrt .radicand,
    .math12 .sqrt .radicand {
        border-top-color: #7eb8ff !important;
    }
}

/* ==================== 打印样式 ==================== */

@media print {
    body .math12,
    .math12 {
        background-color: #ffffff !important;
        color: #000000 !important;
        border-color: #000000 !important;
        box-shadow: none !important;
    }

    body .math12 .math-inline,
    body .math12 .math-block,
    .math12 .math-inline,
    .math12 .math-block {
        color: #000000 !important;
        background-color: transparent !important;
        border-color: #000000 !important;
    }

    body .math12 .math-block,
    .math12 .math-block {
        border-left: 3px solid #000000 !important;
    }
}

/* ==================== math12 代码公式化样式 ==================== */
/* 让代码表达式以数学公式的形式展示 */

/* 数学公式容器中的 code 元素 - 公式化渲染 */
.math12 code.math-inline {
    display: inline-block !important;
    font-family: 'KaTeX_Math', 'Times New Roman', 'Fira Code', monospace !important;
    font-size: 1.1em !important;
    color: #f8f8f8 !important;
    background: linear-gradient(135deg, rgba(90, 176, 255, 0.2) 0%, rgba(90, 176, 255, 0.1) 100%) !important;
    border: 1px solid rgba(90, 176, 255, 0.3) !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    margin: 4px 8px !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 6px rgba(90, 176, 255, 0.15) !important;
}

/* 独立的代码公式块 - 块级显示 */
.math12 .code-formula {
    display: block !important;
    font-family: 'KaTeX_Math', 'Times New Roman', 'Fira Code', monospace !important;
    font-size: 1.15em !important;
    color: #f8f8f8 !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%) !important;
    border: 1px solid rgba(90, 176, 255, 0.4) !important;
    border-left: 4px solid #5ab0ff !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    text-align: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    line-height: 2 !important;
}

/* 代码公式中的运算符 - 更突出 */
.math12 .code-formula .python-op {
    color: #ff79c6 !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    margin: 0 4px !important;
}

/* 代码公式中的函数调用 */
.math12 .code-formula .python-func {
    color: #50fa7b !important;
    font-weight: 600 !important;
    font-size: 1.05em !important;
}

/* 代码公式中的变量 */
.math12 .code-formula .python-var {
    color: #f8f8f8 !important;
    font-style: italic !important;
}

/* 代码公式中的括号 */
.math12 .code-formula .python-paren {
    color: #8be9fd !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
}

/* 代码公式中的数字 */
.math12 .code-formula .python-num {
    color: #bd93f9 !important;
    font-weight: 500 !important;
}

/* 代码公式中的字符串 */
.math12 .code-formula .python-string {
    color: #f1fa8c !important;
    font-style: italic !important;
}

/* 代码公式中的点操作符 */
.math12 .code-formula .python-dot {
    color: #a3d3ff !important;
    font-weight: bold !important;
    margin: 0 2px !important;
}

/* ==================== 代码公式增强样式 ==================== */

/* 代码公式块中的小数点和下划线 */
.math12 .code-formula .python-underscore {
    color: #a3d3ff !important;
    font-weight: bold !important;
}

/* 代码公式中的减法运算符 - 更突出 */
.math12 .code-formula .python-minus {
    color: #ff79c6 !important;
    font-weight: bold !important;
    margin: 0 3px !important;
}

/* 代码公式中的幂运算符 */
.math12 .code-formula .python-power {
    color: #ff79c6 !important;
    font-weight: bold !important;
    font-size: 1.2em !important;
}

/* 代码公式容器在 math12 中的特殊样式 */
.math12 > .code-formula:first-child {
    margin-top: 8px !important;
}

.math12 > .code-formula:last-child {
    margin-bottom: 8px !important;
}

/* 代码公式中的文本对齐 */
.math12 .code-formula {
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0.5px !important;
}
