/* 设置全局字体 */
body {
    font-family: "Arial", "思源黑体";
}

/* 设置代码块字体 */
.highlight pre,
.highlight code,
.highlight .linenos,
.literal-block-wrapper pre,
div[class^='highlight'] pre,
pre.literal-block,
code.literal {
    font-family: "Courier New" !important;
}

/* 修改标题颜色和字体 */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #660874;
    font-family: "Arial", "思源黑体";
}

a {
    text-decoration: none;
    color: #660874;
    font-family: "Arial", "思源黑体";
}

a:hover {
    color: #660874;
    /* 自定义链接悬停颜色 */
}

.wy-nav-content {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 3rem;
}

.wy-nav-content-wrap {
    background: #fcfcfc;
    margin-left: 300px;
}

@media screen and (max-width: 768px) {
    .wy-nav-content-wrap {
        margin-left: 0;
    }

    .wy-nav-content {
        padding: 1.5rem;
    }
}

.wy-nav-side {
    background: #E5E6E9;
    color: #000000;
}

.wy-menu-vertical li.current {
    background: #E5E6E9;
    color: #000000;
}

.wy-menu-vertical li.current>a {
    background: #E5E6E9;
    color: #000000;
}

.wy-menu-vertical li.current>a:hover {
    background: #E5E6E9;
    color: #000000;
}

.wy-menu-vertical a {
    color: #000000;
}

.wy-menu-vertical a:hover {
    background: #E5E6E9;
    color: #000000;
}

.rst-content a {
    color: #660874;
}

.rst-content a:hover {
    color: #7a0989;
}

.wy-side-nav-search {
    background-color: #7a0989;
}

/* 锚点链接样式 */
.section {
    scroll-margin-top: 60px;
    /* 为固定导航栏预留空间 */
}

/* 确保锚点链接可点击 */
.headerlink {
    opacity: 0;
    padding-left: 0.5em;
    transition: opacity 0.2s ease-in-out;
}

/* 鼠标悬停时显示锚点链接 */
h1:hover .headerlink,
h2:hover .headerlink,
h3:hover .headerlink,
h4:hover .headerlink,
h5:hover .headerlink,
h6:hover .headerlink {
    opacity: 1;
}

/* 锚点链接激活状态 */
.headerlink:hover {
    opacity: 1;
    text-decoration: none;
}


/* 自定义 Note 提示框标题背景色 */
.admonition.note .admonition-title {
    background-color: #E5E6E9;
}

/* 自定义 Note 提示框内容背景色 */
.admonition.note {
    color: #000000;
    background-color: #E5E6E9;
}

/* 自定义 Warning 提示框样式 */
.admonition.warning .admonition-title {
    background-color: #E5E6E9;
    color: #000000;
}

.admonition.warning {
    background-color: #E5E6E9;
    color: #000000;
}

/* 自定义 Error 提示框样式 */
.admonition.error .admonition-title {
    background-color: #E5E6E9;
    color: black;
}

.admonition.error {
    background-color: #E5E6E9;
    color: black;
}


.admonition.hint .admonition-title {
    background-color: #E5E6E9;
    color: black;
}

.admonition.hint {
    background-color: #E5E6E9;
    color: black;
}

.admonition.important {
    background-color: #E5E6E9;
    color: black;
}

.admonition.important .admonition-title {
    background-color: #E5E6E9;
    color: black;
}

.admonition.attention {
    background-color: #E5E6E9;
    color: black;
}

.admonition.attention .admonition-title {
    background-color: #E5E6E9;
    color: black;
}


/* 自定义 Tip 提示框样式 */
.admonition.tip .admonition-title {
    background-color: #E5E6E9;
    color: black;
}

.admonition.tip {
    background-color: #E5E6E9;
    color: black;
}

/* 自定义其他提示框样式 */
.admonition .admonition-title {
    background-color: #E5E6E9;
    color: black;
}

.admonition {
    background-color: #E5E6E9;
    color: black;
}

.highlight {
    background-color: #DADCDC;
}

.highlight .nf,
.highlight .nb,
.highlight .k,
.highlight .kn,
.highlight .kt,
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sd,
.highlight .se,
/* .highlight .hll, */
.highlight .si,
.highlight .sr,
.highlight .na,
.highlight .nc,
.highlight .nd,
.highlight .ne,
.highlight .pw,
.highlight .p,
.highlight .w,
.highlight .no,
.highlight .err,
.highlight .nt {
    color: inherit;
    background-color: transparent;
    border: 0px;
}

/* 

table {
    width: 100%;
    display: table;
    word-break: break-word;
    white-space: normal;
    border-collapse: collapse;
}

th {
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    padding: 8px;
}

td {
    white-space: normal;
    word-wrap: break-word;
    padding: 8px;
}

.wy-table-responsive {
    overflow: visible;
    margin-bottom: 24px;
    max-width: 100%;
}

.wy-table-responsive table td,
.wy-table-responsive table th {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    vertical-align: top;
} */


/* 表格样式优化 */
table {
    width: 100%;
    display: table;
    table-layout: auto;
    word-break: break-word;
    white-space: normal;
}

th {
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
}

td {
    white-space: normal;
    word-wrap: break-word;
}

.wy-table-responsive {
    overflow-x: visible;
    margin-bottom: 24px;
}

.wy-table-responsive table td,
.wy-table-responsive table th {
    white-space: normal;
}


/* 自定义样式 */
.caption-text {
    color: #404040 !important;
}

/* 数学公式样式 */
.math {
    text-align: center;
    margin: 1.5em 0;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

.math-inline {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.3em;
    font-size: 1.1em;
}

.MathJax {
    outline: 0;
    font-size: 1.1em !important;
}

.MathJax_Display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5em 0;
    margin: 1em 0;
}

.MathJax_SVG_Display {
    text-align: center;
    margin: 1em 0;
    padding: 0.5em 0;
    max-width: 100%;
}

.MathJax_SVG {
    display: inline-block;
    font-size: 1.1em;
}

.mjx-chtml {
    font-size: 1.1em !important;
    padding: 0.5em 0;
}

.mjx-container {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 0.5em 0;
}

/* 修改图表编号的样式 */
.caption-number,
.caption-text {
    font-style: normal !important;
    /* 取消斜体 */
    font-weight: bold;
    /* 设置为粗体 */
    color: black;
    /* 设置为黑色 */
}