/* 文档页面样式 - 修复为绿色主题 */
.document-page {
    padding-top: 50px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 导航栏 - 修复颜色 */
.navbar-inverse {
    background-color: #2f343b !important;
    border: none !important;
    border-radius: 0 !important;
}

.navbar-inverse .navbar-brand {
    color: #fff !important;
}

.navbar-inverse .navbar-nav > li > a {
    color: #a7a7a7 !important;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff !important;
    background-color: transparent !important;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #fff !important;
    background-color: #3c4553 !important;
}

/* 文档头部 - 修复为绿色渐变 */
.doc-header {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
}

.doc-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 500;
}

.doc-excerpt {
    font-size: 18px;
    margin-top: 15px;
    opacity: 0.9;
}

/* 侧边栏目录 - 修复颜色 */
.doc-sidebar {
    position: sticky;
    top: 70px;
}

.doc-toc {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 6px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.doc-toc li {
    margin: 0;
}

.doc-toc li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.doc-toc li a:hover {
    background: #e9ecef;
    border-left-color: #4CAF50;
    text-decoration: none;
}

.doc-toc .active > a {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4CAF50;
    font-weight: 500;
}

.toc-h4 a {
    padding-left: 40px !important;
    font-size: 13px;
}

/* 文档内容 - 修复颜色 */
.doc-content {
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.doc-content h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.doc-content h3 {
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 20px;
}

.doc-content h4 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.doc-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.doc-content ul,
.doc-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.doc-content li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 5px;
}

/* 链接样式 - 修复为绿色 */
.doc-content a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.doc-content a:hover {
    color: #388E3C;
    text-decoration: underline;
}

.doc-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 代码块样式 - 修复颜色 */
.doc-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.doc-content code {
    background: #f1f3f5;
    color: #4CAF50;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 500;
}

/* 引用块样式 - 新增绿色边框 */
.doc-content blockquote {
    border-left: 4px solid #4CAF50;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    color: #666;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.doc-content blockquote p {
    margin-bottom: 0;
}

/* 表格样式 - 修复绿色边框 */
.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.doc-content th,
.doc-content td {
    padding: 12px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.doc-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.doc-content tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

/* 页脚 - 修复颜色 */
.doc-footer {
    padding: 40px 0;
    margin-top: 60px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.doc-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.doc-footer a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.doc-footer a:hover {
    color: #388E3C;
    text-decoration: underline;
}

/* 响应式 - 布局保持不变 */
@media (max-width: 991px) {
    .doc-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .doc-toc {
        max-height: none;
    }
}

@media (max-width: 767px) {
    .doc-header {
        padding: 25px 0;
    }
    
    .doc-header h1 {
        font-size: 24px;
    }
    
    .doc-excerpt {
        font-size: 16px;
    }
    
    .doc-content {
        padding: 15px;
    }
    
    .doc-content h2 {
        font-size: 22px;
    }
    
    .doc-content h3 {
        font-size: 18px;
    }
    
    .doc-content table {
        display: block;
        overflow-x: auto;
    }
}