.markdown-body {
    font-size: 1.6rem;
}
.product-container {
    min-height: 100vh;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 10rem;
    border-bottom: 1px solid #E5E6EB;
}
.product-container .aside-nav-l {
    width: 41.6rem;
    background-color: #ffffff;
    position: sticky;
    top: 10rem;
    align-self: flex-start;
}

.aside-nav-l .top-info{
    padding: 3.2rem 0 2.4rem 3.2rem;
    border-bottom: 1px solid #E5E6EB;
    color: #fff;
}
.aside-nav-l .top-info h3{
    font-family: "SourceHanSansCN-Medium";
    font-size: 2.4rem;
    line-height: 3.2rem;
    color: #000000;
}
.aside-nav-link{
    margin-top: 4.8rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.aside-nav-link li {
    width: auto;
    margin-right: .8rem;
    margin-bottom: .8rem;
}
.aside-nav-link li a{
    display: inline-block;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.6rem;
    border: 1px solid rgba(29, 29, 31, 0.95);
    padding: 0rem 1rem;
    width: 100%;
    font-family: "SourceHanSansCN-Regular";
    font-size: 1.4rem;
    color: rgba(29, 29, 31, 0.95);
}
.aside-nav-link li a:hover{
    color: #fff;
    border-color: var(--red-primary);
    background-color: var(--red-primary);
    transition: all 0.2s linear;
}

.aside-nav-l .aside-nav-list{
    padding: 2rem 0rem 0rem 1.6rem;
}
.aside-nav-list p{
    height: 4.8rem;
    line-height: 4.8rem;
    padding-left: 1.6rem;
}
.aside-nav-list p a {
    font-family: "SourceHanSansCN-Regular";
    font-size: 1.4rem;
    color: #1D2129;
}
.aside-nav-list p.active-item{
    background-color: #F2F3F5;
}

.section-container{
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    padding: 3.2rem 13.2rem .6rem 3.3rem;
    border-left: 1px solid #E5E6EB;
}
.section-container .bread-crumb{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 3.4rem;
}
.section-container .bread-crumb a{
    display: inline-block;
    font-family: "SourceHanSansCN-Regular";
    font-size: 1.4rem;
    color: #86909C;
    text-decoration: none;
    position: relative;
}
.bread-crumb img{
    width: 1.2rem;
    height: 1.2rem;
    margin: 0rem .9rem;
}
.bread-crumb a:hover{
    color: #1D2129;
    transition: all 0.3s linear;
    text-decoration: underline;
}
.section-container h1{
    font-family: "SourceHanSansCN-Medium";
    font-size: 4.6rem;
    line-height: 5.8rem;
    color: #323233;
}
.section-container .update-time{
    margin-top: 1.6rem;
}
.section-container .update-time span{
    font-family: "SourceHanSansCN-Normal";
    font-size: 1.2rem;
    color: #323233;
    padding-right: 4rem;
}
.section-container .markdown-body{
    margin-top: 3rem;
}

/* 右侧导读 */
.aside-nav-r{
    width: 24rem;
    padding: 8.4rem 3.2rem 0rem 0rem;
    position: sticky;
    top: 10rem;
    align-self: flex-start;
}
.aside-nav-r h3{
    font-family: "SourceHanSansCN-Bold";
    font-size: 1.6rem;
    line-height: 2.2rem;
    color: #1D2129;
}

.guide-cont{
    margin-top: 1.6rem;
}
#guideList{
    padding-left: 1.6rem;
    border-left: 1px solid #E5E6EB;
    overflow: visible;
}
#guideList li {
    height: 3.2rem;
    line-height: 3.2rem;
    list-style: none;
    cursor: pointer;
    position: relative;
    font-family: "SourceHanSansCN-Regular";
    font-size: 1.4rem;
    color: #333;
    transition: all 0.25s ease;
}
#guideList li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

#guideList li::before {
    content: '';
    display: inline-block;
    width: 2px;
    height: 3.2rem;
    background-color: transparent;
    position: absolute;
    left: -1.7rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.25s ease-in-out; 
    z-index: 1;
}
#guideList li a {
    display: block;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#guideList li.active::before {
    background-color: #DD0515;
}
#guideList li.active{
    color: #DD0515;
    font-weight: 500;
}
#guideList li.active a {
    color: #DD0515;
}


.switch-page-content{
    margin: 6rem 0rem;
    display: flex;
    flex-direction: row;
}
.switch-page-content .page{
    display: flex;
    align-items: center;
    line-height: 2.2rem;
}
.switch-page-content .page a{
    font-family: "SourceHanSansCN-Regular";
    font-size: 1.4rem;
    text-decoration: none;
    color: #4E5969;
}
.switch-page-content .page img{
    width: 1.2rem;
    height: 1.2rem;
}
.page-prev img{
    margin-right: 1.3rem!important;
}
.page-next img{
    margin-left: 1.3rem!important;
}

/* 全局平滑滚动（必须） */
html {
  scroll-behavior: smooth;
}

/* 所有带 id 的元素（你的 h2）都自动留 80px 顶部安全距离 */
.markdown-body h2[id] {
  scroll-margin-top: 11rem!important; /* 和你 JS 里的偏移量一致 */
}

/* 适配ipad端 */
@media screen and (max-width: 1280px) {
    .aside-nav-l{
        width: 34.6rem!important;
    }
    .section-container{
        padding: 3.2rem 3.2rem .6rem 3.2rem!important;
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .product-container{
        display: flex;
        flex-direction: column;
        padding-top: 0rem;
    }
    .aside-nav-l{
        width: 100%!important;
        position: static!important;
        margin-top: 2rem!important;
        border-bottom: 1px solid #E5E6EB;
        z-index: 1;
    }
    .aside-nav-l .top-info{
        padding: 1rem 0rem .5rem 1rem!important;
    }
    .aside-nav-l .top-info h3{
        font-size: 1.2rem!important;
        line-height: 2rem!important;
    }
    .top-info{
        position: relative;
        border-bottom: none!important;
    }
    .collapse-expand-link{
        color: #DD0515;
        font-size: .6rem!important;
        position: absolute;
        right: 4.6rem;
        top: 3.5rem;
    }
    .aside-nav-link{
        margin-top: .5rem!important;
    }
    .aside-nav-link li{
        margin-right: .5rem;
        margin-bottom: .5rem;
    }
    .aside-nav-link li a {
        height: 1.4rem;
        border-radius: .7rem;
        font-size: .6rem!important;
        padding: 0rem .5rem!important;
    }
    .aside-nav-l .aside-nav-list{
        padding: 0rem!important;
    }
    .aside-nav-list p{
        height: 1.5rem!important;
        line-height: 1.5rem!important;
        padding-left: 1rem!important;
    }
    .aside-nav-list p a{
        font-size: .6rem!important;
     }
    .section-container{
        padding: 1rem!important;
        border-left: none!important;
    }
    .bread-crumb{
        margin-bottom: 1rem!important;
    }
    .bread-crumb img{
        width: .5rem!important;
        height: .5rem!important;
        margin: 0rem .3rem!important;
    }
    .bread-crumb a{
        font-size: .6rem!important;
    }
    .section-container h1{
        font-size: 1rem!important;
        line-height: 1.5rem!important;
    }
    .section-container .update-time{
        margin-top: .5rem!important;
    }
    .update-time span{
        font-size: .5rem!important;
    }
    .markdown-body{
        margin-top: 1rem!important;
        font-size: 14px!important;
    }

    .switch-page-content{
        margin: 1rem 0rem!important;
    }
    .switch-page-content .page{
        line-height: 1rem;
    }
    .switch-page-content .page a{
        font-size: .6rem;
    }
    .switch-page-content .page img{
        width: .5rem!important;
        height: .5rem!important;
    }
    .page-prev img{
        margin-right: .3rem!important;
    }
    .page-next img{
        margin-left: .3rem!important;
    }
    .aside-nav-r{
        display: none!important;
    }
}



