/* Wiki Styles */
.wiki-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, rgba(10, 20, 48, 0.95), rgba(20, 42, 86, 0.92));
    color: #ffffff;
    text-align: center;
    margin-top: 86px;
}

.wiki-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.wiki-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a8c5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wiki-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.wiki-main {
    padding: 60px 0;
    min-height: calc(100vh - 86px);
}

.wiki-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    min-height: calc(100vh - 200px);
}

/* Sidebar */
.wiki-sidebar {
    position: sticky;
    top: 106px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    height: fit-content;
    align-self: start;
}

.wiki-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.wiki-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: inherit;
}

.wiki-nav-item:hover {
    background: var(--accent-soft-bg);
    border-color: var(--border-soft);
    color: var(--accent);
    transform: translateX(4px);
}

.wiki-nav-item.active {
    background: linear-gradient(135deg, rgba(45, 99, 255, 0.12), rgba(45, 99, 255, 0.08));
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.wiki-nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Content Area */
.wiki-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.wiki-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wiki-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wiki-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-soft);
}

.wiki-section-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.wiki-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.wiki-section-intro {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--accent-soft-bg);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
}

.wiki-section-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

.wiki-section-intro strong {
    color: var(--accent);
    font-weight: 600;
}

.wiki-section-description {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--accent-soft-bg);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
}

.wiki-section-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

.wiki-card {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wiki-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-soft);
}

/* Info List */
.wiki-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.wiki-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.wiki-info-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
    transform: translateX(4px);
}

.wiki-info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.wiki-info-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.wiki-info-text strong {
    color: var(--accent);
    font-weight: 600;
}

.wiki-info-note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.6;
}

.wiki-info-description {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(255, 87, 34, 0.1);
    border-left: 4px solid #ff5722;
    border-radius: 4px;
}

.wiki-info-description p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Subsection */
.wiki-subsection {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-soft);
}

.wiki-subsection-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.wiki-subsection-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.wiki-subsection-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Table */
.wiki-table-container {
    margin-top: 32px;
    overflow-x: auto;
}

.wiki-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card-alt);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wiki-table thead {
    background: linear-gradient(135deg, rgba(45, 99, 255, 0.15), rgba(45, 99, 255, 0.08));
}

.wiki-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 2px solid var(--accent);
}

.wiki-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wiki-table td:nth-child(2),
.wiki-table td:nth-child(3) {
    font-weight: 600;
    text-align: center;
}

.wiki-table td:nth-child(2)[data-value*="+"],
.wiki-table td:nth-child(3)[data-value*="+"] {
    color: #10b981;
}

.wiki-table td:nth-child(2)[data-value*="-"],
.wiki-table td:nth-child(3)[data-value*="-"] {
    color: #ef4444;
}

.wiki-table tbody tr:hover {
    background: var(--accent-soft-bg);
}

.wiki-table tbody tr:last-child td {
    border-bottom: none;
}

/* Interface Features Grid */
.wiki-interface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.wiki-interface-card {
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.wiki-interface-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(45, 99, 255, 0.15);
    border-color: var(--accent);
}

.wiki-interface-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(45, 99, 255, 0.05), rgba(15, 183, 196, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 2px solid var(--border-soft);
}

.wiki-interface-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.wiki-interface-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wiki-interface-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, var(--accent), rgba(15, 183, 196, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wiki-interface-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .wiki-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    
    .wiki-sidebar {
        padding: 20px;
    }
    
    .wiki-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .wiki-hero {
        padding: 120px 0 40px;
    }
    
    .wiki-title {
        font-size: 2.5rem;
    }
    
    .wiki-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .wiki-sidebar {
        position: static;
        height: fit-content;
    }
    
    .wiki-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .wiki-nav-item {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .wiki-content {
        padding: 24px;
    }
    
    .wiki-section-header h2 {
        font-size: 1.5rem;
    }
    
    .wiki-table-container {
        overflow-x: scroll;
    }
    
    .wiki-interface-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .wiki-interface-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .wiki-hero {
        padding: 100px 0 30px;
    }
    
    .wiki-title {
        font-size: 2rem;
    }
    
    .wiki-subtitle {
        font-size: 1rem;
    }
    
    .wiki-content {
        padding: 20px;
    }
    
    .wiki-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .wiki-nav-item {
        font-size: 0.85rem;
        padding: 12px;
    }
    
    .wiki-interface-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wiki-interface-image {
        height: 160px;
    }
    
    .wiki-interface-content {
        padding: 20px;
    }
    
    .wiki-interface-title {
        font-size: 1.1rem;
    }
}

