/* 整体字体与背景 */
body {
    background-color: #ffffff;
    color: #333333;
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* 链接样式 */
a {
    color: #2980B9;
}
a:hover {
    color: #007ACC;
}

/* 代码块字体 */
code, pre, .rst-content code {
    font-family: "Courier New", "Consolas", monospace;
    font-size: 0.95em;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
}

h1 {
    font-size: 2.0em;
}

h2 {
    font-size: 1.6em;
}

h3 {
    font-size: 1.3em;
}


/* 搜索框背景 */
.wy-side-nav-search {
    background-color: #f5f5f5;
}

/* 侧边栏背景 */
.wy-nav-side {
    background-color: #ffffff;
}

/* 鼠标悬停时高亮 */
.wy-menu-vertical a:hover {
    background-color: #e6f2fa;
    color: #007ACC;
}


/* 当前选中项高亮 + 左边蓝色竖线 */
.wy-menu-vertical .current > a,
.wy-menu-vertical .current > a:hover {
    background-color: #f0f8ff;
    color: #2980B9;
    font-weight: bold;
    border-left: 4px solid #2980B9;
    padding-left: 12px; /* 避免文字紧贴竖线 */
}

/* 平滑过渡动画 */
.wy-menu-vertical a,
.wy-menu-vertical .current > a {
    transition: all 0.2s ease-in-out;
}

/* 表格样式 - 让表格占据更多宽度 */
table.docutils {
    width: 100%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* 列表表格特殊处理 */
.rst-content table.docutils.align-center {
    width: 100%;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/*==============================
  H1 Title
==============================*/

h1{

    background:#f4a300;

    color:white !important;

    text-align: center;

    padding:14px 22px;

    margin-top:45px;

    margin-bottom:22px;

    border:none !important;

    border-radius:10px;

    box-shadow:

        0 4px 10px rgba(0,0,0,.12);

    font-size:28px;

    font-weight:700;

    transition:.25s;

}

h1:hover{

    transform:translateY(-2px);

    box-shadow:

        0 8px 20px rgba(0,0,0,.18);

}

h1 .headerlink{

    color:white !important;

    opacity:0;

    transition:.2s;

}

h1:hover .headerlink{

    opacity:1;

}

@media (max-width:768px){

    h1{

        font-size:22px;

        padding:12px 18px;

    }

}

/*==============================
  H2 Title
==============================*/

h2{

    background:#55a7eb;

    color:white !important;

    padding:14px 22px;

    margin-top:45px;

    margin-bottom:22px;

    border:none !important;

    border-radius:10px;

    box-shadow:

        0 4px 10px rgba(0,0,0,.12);

    font-size:28px;

    font-weight:700;

    transition:.25s;

}

h2:hover{

    transform:translateY(-2px);

    box-shadow:

        0 8px 20px rgba(0,0,0,.18);

}

h2 .headerlink{

    color:white !important;

    opacity:0;

    transition:.2s;

}

h2:hover .headerlink{

    opacity:1;

}

@media (max-width:768px){

    h2{

        font-size:22px;

        padding:12px 18px;

    }

}

/*==============================
  代码块背景颜色 - 改为白色
==============================*/
.highlight {
    background: #ffffff !important;
}

.highlight .hll {
    background-color: #ffffff !important;
}

span.linenos.special {
    background-color: #ffffff !important;
}

td.linenos .special {
    background-color: #ffffff !important;
}
