/* ================================================== */
/* Wiki 专属样式 - 科技感配色与布局                    */
/* ================================================== */

/* Wiki 容器布局 */
.wiki-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 100px auto 0;
    padding: 20px;
    position: relative;
}

/* 侧边栏导航 */
.wiki-sidebar {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 20px;
    height: fit-content;
    position: sticky;
    top: 80px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.wiki-sidebar h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.wiki-nav {
    list-style: none;
    margin-bottom: 30px;
}

.wiki-nav li {
    margin-bottom: 8px;
}

.wiki-nav a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.wiki-nav a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(5px);
}

.wiki-nav .active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-left: 3px solid #667eea;
}

.wiki-nav .nav-header {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 15px;
}

/* 主内容区 */
.wiki-content {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.wiki-section {
    margin-bottom: 50px;
    scroll-margin-top: 80px;
}

.wiki-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.5);
}

.wiki-section h2 i {
    color: #667eea;
    margin-right: 10px;
}

.wiki-section h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

.wiki-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 代码块 */
.code-block {
    background: #1a1a2e;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(102, 126, 234, 0.3);
    position: relative;
}

.code-block pre {
    color: #a9b7c6;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-block .language-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* 表格 */
.wiki-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
}

.wiki-table th {
    background: rgba(102, 126, 234, 0.3);
    color: white;
    padding: 12px;
    text-align: left;
}

.wiki-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    color: #ccc;
}

.wiki-table tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 版本卡片 */
.version-detail {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.version-detail h4 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.version-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

.stat-value {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

/* 性能图表 */
.performance-chart {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 200px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px 10px 0 0;
    transition: height 0.3s;
}

.bar-label {
    color: #ccc;
    font-size: 0.9rem;
}

/* 提示框 */
.info-box {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.info-box.warning {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.info-box.success {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.info-box i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 数学公式 */
.math-formula {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    font-family: monospace;
    color: #a9b7c6;
    text-align: center;
    font-size: 1.2rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .wiki-container {
        grid-template-columns: 1fr;
    }
    
    .wiki-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}