/* 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-width: 1300px;

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


    --base-screen-width: 1905px;
    --content-padding-left-ratio: calc(15% * (100vw / var(--base-screen-width)));
    --content-padding-right-ratio: calc(18% * (100vw / var(--base-screen-width)));
    --content-padding-left: clamp(10px, var(--content-padding-left-ratio), 400px);
    --content-padding-right: clamp(10px, var(--content-padding-right-ratio), 400px);
}

/* 移除隐藏侧边栏的样式 */
.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;
    padding-right: 0;
    background-color: white !important;
    transition: padding-left var(--sidebar-transition);
    padding-top: var(--topnav-height);
}

/* 为内容包装器添加上边距 */
.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 隐藏侧边栏 */
}
