/* ===== Wiki文档页布局 ===== */
.wiki-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== 侧边栏 ===== */
.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3498db;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: block;
    padding: 8px 12px;
    color: #555;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar-menu a:hover {
    background: #f0f0f0;
    color: #3498db;
    text-decoration: none;
}

.sidebar-menu a.active {
    background: #3498db;
    color: #fff;
}

/* ===== 主内容区 ===== */
.main-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 600px;
}

/* ===== 文章标题 ===== */
.article-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}

.article-info {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

/* ===== 文档内容样式 ===== */
.doc-content h2 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #2c3e50;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.doc-content h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #34495e;
}

.doc-content h4 {
    font-size: 17px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
}

.doc-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

.doc-content ul,
.doc-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.doc-content li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 6px;
}

/* ===== 代码块 ===== */
.doc-content code {
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 14px;
    color: #e83e8c;
}

.doc-content pre {
    background: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #e1e4e8;
}

.doc-content pre code {
    background: none;
    padding: 0;
    color: #24292e;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== 表格 ===== */
.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.doc-content table th,
.doc-content table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e1e4e8;
}

.doc-content table th {
    background: #f6f8fa;
    font-weight: 600;
    color: #2c3e50;
}

.doc-content table tr:hover {
    background: #f9f9f9;
}

/* ===== 提示框 ===== */
.doc-content .tip {
    background: #e7f3fe;
    border-left: 4px solid #2196F3;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.doc-content .tip-title {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 8px;
}

.doc-content .tip p {
    margin-bottom: 0;
    color: #555;
}

.doc-content .warning {
    background: #fff4e5;
    border-left: 4px solid #ff9800;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.doc-content .warning-title {
    font-weight: bold;
    color: #f57c00;
    margin-bottom: 8px;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #3498db;
}

.breadcrumb span {
    margin: 0 8px;
}
