/* ===== 文档页样式（左侧分组目录 + 右侧文档内容） ===== */
/* 顶部导航在 layouts/index 里是 position:fixed 但默认透底，内页必须补上白底，否则滚动时正文会透出导航栏 */
body{
    background: #eee;
}
.navigation {
    background-color: #FFFFFF;
    -webkit-box-shadow: 0 3px 6px 3px rgb(0 0 0 / 6%);
    box-shadow: 0 3px 6px 3px rgb(0 0 0 / 6%);
}
.doc-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 100px 15px 0 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.doc-container-body{
    display: flex;
    width: 100%;
    border: 1px solid #C7CDD6;
    background: #F5F6F7;
    box-shadow: 0px 1px 3px #CCC;
}
.doc-sidebar {
    width: 230px;
    min-height: calc(100vh - 110px);
    overflow-y: auto;
    background: #FFFFFF;
    display: flex;
    border-right: 1px solid #C7CDD6;
}
.doc-sidebar-box {
    width: 100%;
    background-color: #FFFFFF;
    box-sizing: border-box;
}
.doc-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 26px;
    text-align: center;
    padding: 15px;
    background-color: #C1D9F8;
    border-bottom: 1px solid #C7CDD6;
}
.doc-sidebar-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 24px;
}
.doc-sidebar-desc {
    font-size: 13px;
    color: #8C8C8C;
    line-height: 22px;
    margin: 8px 0 0;
}
.doc-group-list {
    list-style: none;
    margin: 5px 0 0;
    padding: 0;
}
.doc-group-list li {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 4px;
}
.doc-group-list li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 14px;
    color: #4D4D4D;
    line-height: 40px;
    padding: 0 15px;
    box-sizing: border-box;
    text-decoration: none;
    overflow: hidden;
}
.doc-group-list li a i {
    font-size: 15px;
    margin-right: 8px;
    color: #B5B5B5;
}
.doc-group-list li a span {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.doc-group-list li a:hover {
    color: #3561FF;
    background-color: #F5F8FF;
}
.doc-group-list li.active a {
    color: #3561FF;
    background-color: #F0F4FF;
    font-weight: 600;
}
.doc-group-list li.active a i {
    color: #3561FF;
}
.doc-group-list li.doc-none {
    font-size: 14px;
    color: #999999;
    padding: 0 12px;
}
.doc-main {
    flex: 1;
    min-width: 0;
    background-color: #FFFFFF;
    border: 1px solid #EFF1F5;
    border-radius: 6px;
    padding: 30px;
    box-sizing: border-box;
}
.doc-main-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 15px;
}
.doc-main-top{
    display: flex;
    border-bottom: 1px solid #EFF1F5;
    flex-direction: column;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    width: 100%;
}
.doc-main-top h1 {
    width: 100%;
    font-size: 26px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 36px;
    margin: 0;
    text-align: center;
}
.doc-breadcrumb {
    font-size: 13px;
    color: #999999;
    line-height: 22px;
    margin-top: 6px;
}
.doc-breadcrumb a {
    color: #8C8C8C;
    text-decoration: none;
}
.doc-breadcrumb a:hover {
    color: #3561FF;
}
.doc-main-button {
    padding-top: 6px;
    margin: 0 auto;
}
.doc-action-btn {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 24px;
    background-color: #3561FF;
    border-radius: 1px;
    color: #FFFFFF;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}
.doc-action-btn:hover {
    background-color: #2B52E0;
    color: #FFFFFF;
}
.doc-article-lists {
    width: 100%;
    margin-top: 15px;
}
.doc-block-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 24px;
    margin-bottom: 8px;
}
.doc-article-lists ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    border-bottom: thin solid #E6E6E6;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.doc-article-lists ul li {
    width: auto;
    padding: 10px 0;
    font-weight: 600;
    font-size: 20px;
    box-sizing: border-box;
    list-style: none;
    display: flex;
    position: relative;
}
/* 选中项只加底部横线，字体与未选中保持一致；绝对定位让 3px 横线的中心正好压在 ul 的 1px 底边框中间 */
.doc-article-lists ul li.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background-color: #3561FF;
}
.doc-article-lists ul li a {
    display: block;
    font-size: 16px;
    color: #000000;
    line-height: 22px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.doc-article-lists ul li a:hover {
    color: #3561FF;
}
.doc-article-content {
    width: 100%;
    margin-top: 25px;
    font-size: 15px;
    color: #333333;
    line-height: 30px;
    word-wrap: break-word;
}
.doc-article-content p {
    margin: 0 0 15px;
    line-height: 30px;
}
.doc-article-content h1,
.doc-article-content h2,
.doc-article-content h3,
.doc-article-content h4 {
    font-weight: 700;
    color: #1A1A1A;
    margin: 25px 0 15px;
    line-height: 34px;
}
.doc-article-content h2 {
    font-size: 20px;
}
.doc-article-content h3 {
    font-size: 18px;
}
.doc-article-content ul,
.doc-article-content ol {
    padding-left: 24px;
    margin: 0 0 15px;
}
.doc-article-content li {
    line-height: 28px;
}
.doc-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 4px;
}
.doc-article-content a {
    color: #3561FF;
    text-decoration: none;
}
.doc-article-content a:hover {
    text-decoration: underline;
}
.doc-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.doc-article-content table th,
.doc-article-content table td {
    border: 1px solid #EFF1F5;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 24px;
    text-align: left;
}
.doc-article-content table th {
    background-color: #F7F9FC;
    font-weight: 600;
}
.doc-article-content pre {
    background-color: #F7F9FC;
    border: 1px solid #EFF1F5;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 22px;
    margin: 15px 0;
}
.doc-article-content code {
    background-color: #F7F9FC;
    color: #E81600;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}
.doc-article-content blockquote {
    border-left: 3px solid #3561FF;
    background-color: #F5F8FF;
    padding: 10px 15px;
    margin: 15px 0;
    color: #4D4D4D;
}
.doc-none {
    font-size: 14px;
    color: #999999;
    line-height: 24px;
    margin: 0;
}
@media (max-width: 992px) {
    .doc-container {
        flex-direction: column;
        padding-top: 80px;
    }
    .doc-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    .doc-main {
        width: 100%;
        padding: 20px 15px;
    }
    .doc-main-top h1 {
        font-size: 22px;
        line-height: 32px;
    }
}
