/* 让块级公式支持横向滚动 */
.md-typeset .arithmatex, 
.md-typeset div.arithmatex {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    text-align: center; /* 公式默认居中 */
}

/* 针对 MathJax 生成的特定容器进行微调 */
mjx-container[jax="CHTML"][display="true"] {
    display: block;
    text-align: center;
    margin: 1em 0;
    overflow-x: auto; /* 关键：超出宽度显示滚动条 */
    overflow-y: hidden;
    min-width: 0 !important; /* 防止容器被撑大无法收缩 */
}