/* layout-content-top.css */
:root {
    --top-nav-height: 61px;
    --side-bar-width: 300px;
    --side-bar-padding-top: 61px;
    --side-bar-margin-top: 20px;
    --float-bar-bottom: 60px;

    --content-top-btn-right: 5px;
    --content-top-btn-top: 150px;
    --sidebar-transition: 50ms linear;

    --margin-top-h2: 0.8em;/* 0.8xfont-size */
    --margin-bottom-h2: 1em;

    --margin-top-h3: 0.6em;/* 0.8xfont-size */
    --margin-bottom-h3: 0.6em;

    --body-font-color: #666666;

    --color-tooltip-bg: rgba(0, 0, 0, 0.95); /* 半透明黑底 */
    --color-tooltip-text: #fff;
}

/* 移除隐藏侧边栏的样式 */
.wy-nav-side {
    background-color: #474444 !important;
    left: 0;
    position: fixed;
    padding-top: 0; /* var(--side-bar-padding-top); 为顶部导航留出空间 */
    margin-top: 0; /* var(--side-bar-margin-top); 为顶部导航留出空间 */
    bottom: 0;
    width: var(--side-bar-width);;
    flex: 0 0 var(--side-bar-width);; /* 固定宽度 */
    z-index: 2000; /* 确保侧边栏在内容之上 */
}

.wy-nav-content {
    max-width: none;
    min-height: 100vh;
    margin-left: 0; /* 从最左侧开始 */
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: white !important;
    padding-top: var(--topnav-height-margin);
}

/* 为内容包装器添加上边距 */
.custom-content-wrapper {
    margin-top: 5px;
    position: relative;
}

.rst-content [role="navigation"] hr {
    display: none !important; /* 面包屑下面内容之上的横线去掉 */
}

.wy-grid-for-nav {
    position: relative;
    width: 100%;
    left: 0;
    display: block;
    flex-direction: row;
}

.wy-nav-side {
    width: 0; /* top 隐藏侧边栏 */
}
