/* 文档中心特有样式 */
.docs-banner {
    height: 400px;
    background-image: url('https://langzhi-static-resource.oss-cn-shanghai.aliyuncs.com/official-website/images/docs/banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: 0;
}

.docs-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.docs-banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.docs-banner-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.docs-banner-content p {
    font-size: 20px;
    opacity: 0.9;
}

.docs-content {
    padding: 80px 0;
    background-color: #fafafa;
}

.docs-container {
    display: flex;
    gap: 40px;
}

.docs-sidebar {
    flex: 0 0 250px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

/* 移动端折叠按钮 */
.docs-sidebar-toggle {
    display: none;
    margin-bottom: 20px;
}

.sidebar-toggle-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: #1e88e5;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle-btn:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle-btn.active {
    background-color: #1565c0;
}

.sidebar-toggle-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.sidebar-toggle-btn.active i {
    transform: rotate(90deg);
}

.docs-sidebar-content {
    position: relative;
}

.docs-sidebar-header {
    padding: 25px 30px;
    background-color: #1e88e5;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    position: relative;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.sidebar-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.docs-categories {
    padding: 20px 0;
}

.category-title {
    padding: 12px 30px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #666;
    transition: transform 0.3s;
}

.category-title.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.category-title:hover {
    background-color: #f5f5f5;
}

.category-files {
    display: none;
    padding-left: 20px;
    background-color: #fafafa;
}

.category-files.active {
    display: block;
}

.category-file {
    display: block;
    padding: 12px 30px;
    color: #666;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.category-file:hover {
    background-color: #f0f0f0;
    color: #1e88e5;
    padding-left: 40px;
}

.category-file.active {
    color: #1e88e5;
    font-weight: 500;
    border-left-color: #1e88e5;
    background-color: #e3f2fd;
}

.docs-main {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.doc-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.doc-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.doc-meta {
    display: flex;
    gap: 30px;
    color: #999;
    font-size: 14px;
}

.doc-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-content {
    color: #333;
    line-height: 1.8;
}

.doc-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doc-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-share {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

.share-btn:hover {
    background-color: #1e88e5;
    color: #fff;
    transform: translateY(-3px);
}

.doc-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #1e88e5;
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s;
}

.doc-download:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

/* 响应式设计 - 文档中心 */
@media (max-width: 992px) {
    .docs-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .docs-sidebar {
        flex: none;
        width: 100%;
        order: 2;
    }
    
    .docs-main {
        order: 1;
    }
    
    .docs-banner-content h1 {
        font-size: 40px;
    }
    
    .docs-banner-content p {
        font-size: 18px;
    }
}

/* 移动端布局 */
@media (max-width: 768px) {
    .docs-banner {
        height: 350px;
    }
    
    .docs-banner-content h1 {
        font-size: 32px;
    }
    
    .docs-banner-content p {
        font-size: 16px;
    }
    
    .docs-content {
        padding: 40px 0;
    }
    
    .docs-container {
        flex-direction: column;
        gap: 0;
        position: relative;
    }
    
    /* 显示移动端切换按钮 */
    .docs-sidebar-toggle {
        display: block;
    }
    
    /* 移动端侧边栏样式 */
    .docs-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        order: 0;
        border-radius: 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .docs-sidebar.active {
        left: 0;
    }
    
    .docs-sidebar-content {
        height: 100%;
        overflow-y: auto;
    }
    
    .sidebar-close-btn {
        display: block;
    }
    
    /* 身体遮罩 */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    /* 调整侧边栏样式 */
    .docs-sidebar-header {
        padding: 20px 30px 20px 20px;
        font-size: 16px;
    }
    
    .docs-categories {
        padding: 15px 0;
    }
    
    .category-title {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .category-file {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .category-file:hover {
        padding-left: 30px;
    }
    
    .docs-main {
        padding: 30px 20px;
        margin-top: 0;
    }
    
    .doc-title {
        font-size: 28px;
    }
    
    .doc-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .doc-actions {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .docs-banner {
        height: 300px;
    }
    
    .docs-banner-content h1 {
        font-size: 28px;
    }
    
    .doc-title {
        font-size: 24px;
    }
    
    .docs-content {
        padding: 30px 0;
    }
    
    .docs-main {
        padding: 20px 15px;
    }
    
    .docs-sidebar {
        width: 260px;
        left: -260px;
    }
    
    .docs-sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .docs-sidebar-header {
        padding: 18px 20px 18px 15px;
        font-size: 15px;
    }
    
    .category-title {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .category-file {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .category-file:hover {
        padding-left: 25px;
    }
    
    .doc-meta {
        gap: 8px;
    }
    
    .doc-meta-item {
        font-size: 13px;
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .doc-download {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .docs-banner {
        height: 250px;
    }
    
    .docs-banner-content h1 {
        font-size: 24px;
    }
    
    .docs-banner-content p {
        font-size: 14px;
    }
    
    .doc-title {
        font-size: 22px;
    }
    
    .docs-main {
        padding: 15px 10px;
    }
    
    .docs-sidebar {
        width: 240px;
        left: -240px;
    }
    
    .docs-sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .docs-sidebar-header {
        padding: 15px 15px 15px 12px;
        font-size: 14px;
    }
    
    .category-title {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .category-file {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .category-file:hover {
        padding-left: 20px;
    }
    
    .doc-content {
        font-size: 14px;
    }
    
    .doc-actions {
        gap: 15px;
    }
    
    .doc-share {
        gap: 10px;
    }
    
    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .doc-download {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .docs-banner-content h1 {
        font-size: 20px;
    }
    
    .docs-banner-content p {
        font-size: 13px;
    }
    
    .doc-title {
        font-size: 18px;
    }
    
    .docs-sidebar-header {
        font-size: 13px;
    }
    
    .docs-sidebar {
        width: 220px;
        left: -220px;
    }
    
    .docs-sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .category-title {
        font-size: 12px;
    }
    
    .category-file {
        font-size: 11px;
    }
    
    .doc-content {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .doc-meta-item {
        font-size: 11px;
    }
    
    .share-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .doc-download {
        padding: 6px 12px;
        font-size: 12px;
    }
}