.wy-nav-content {
    max-width: 950px;
}

.rst-content dl dt {
    font-weight: normal;
}

/* 设置代码块的淡黄色背景 */
.highlight {
    background: #edfecb; /* 经典的淡黄色 */
    border-radius: 3px;   /* 可选：添加圆角 */
    padding: 0.5em;       /* 可选：添加内边距 */
    max-height: 400px;  /* 代码块最大高度 */
    overflow-y: auto;   /* 添加垂直滚动条 */
}

/* 更改左上角标题背景色 */
.wy-side-nav-search {
    background-color: #00bd88 !important;
}

/* 更改斑斑切换和语言切换的符号字体颜色 */
.wy-side-nav-search div.switch-menus {
    color: rgb(79, 79, 79)
}

.wy-side-nav-search div.switch-menus div.language-switch select {
    color: rgb(79, 79, 79)
}

.wy-side-nav-search div.switch-menus div.version-switch select {
    color: rgb(79, 79, 79)
}


/* 如果需要，同时修改顶部标题栏颜色 */
/* .wy-nav-top {
    background-color: #FF5722 !important;
} */

/* 改变左上角房子图标的颜色 */
.wy-side-nav-search a.icon-home {
    color: #000000 !important;
}

/* 改变左上角项目名的颜色 */
.wy-side-nav-search .project {
    color: #000000 !important;
}

/* 脚标增加中括号 */
.footnote-reference::before {
    content: "[";
}
.footnote-reference::after {
    content: "]";
}

/* 调整数学公式编号位置，RTD主题特有的bug... */
/* 详见https://github.com/readthedocs/sphinx_rtd_theme/issues/301 */
/* https://github.com/readthedocs/sphinx_rtd_theme/pull/383 */
div.math {
    position: relative;
    padding-right: 2.5em;
}
.eqno {
    height: 100%;
    position: absolute;
    right: 0;
    padding-left: 5px;
    padding-bottom: 5px;
    /* Fix for mouse over in Firefox */
    padding-right: 1px;
}
.eqno:before {
    /* Force vertical alignment of number */
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    content: "";
}
.eqno .headerlink {
    display: none;
    visibility: hidden;
    font-size: 14px;
    padding-left: .3em;
}
.eqno:hover .headerlink {
    display: inline-block;
    visibility: hidden;
    /* margin-right: -1.05em; */  /* 鼠标悬停时会偏移 */
}
.eqno .headerlink:after {
    visibility: visible;
    content: "\f0c1";
    font-family: FontAwesome;
    display: inline-block;
    margin-left: -.9em;
}
/* Make responsive */
.MathJax_Display {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}


/* 调整所有 figure 的外边距 */
figure {
    margin: 30px 0 !important;
}

/* 调整图片与标题的间距 */
figure img {
    margin-bottom: 15px;
}

/* 调整标题样式 */
figcaption {
    padding-top: 10px;
    font-style: italic;
}

.mermaid {
    width: 70%;
    overflow: auto;
}