/**
 * 帮助中心样式
 */

.help-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.help-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: #fff;
}

.help-title {
    font-size: 36px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.help-icon {
    font-size: 44px;
}

.help-subtitle {
    font-size: 16px;
    font-weight: normal;
    opacity: 0.9;
}

.help-desc {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 20px;
}

.help-search {
    max-width: 500px;
    margin: 0 auto;
}

.help-search form {
    display: flex;
    gap: 10px;
}

.help-search input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

.help-search button {
    padding: 12px 24px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.help-search button:hover {
    background: rgba(255,255,255,0.3);
}

.help-content {
    display: flex;
    gap: 30px;
    min-height: 500px;
}

.help-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sidebar-header {
    padding: 16px 20px;
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.help-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-categories li {
    border-bottom: 1px solid #f0f0f0;
}

.help-categories li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.help-categories li a:hover {
    background: #f5f7fa;
    color: #4361ee;
}

.help-categories li a.active {
    background: #4361ee;
    color: #fff;
}

.sub-categories {
    list-style: none;
    padding-left: 40px;
    margin: 0;
    background: #fafbfc;
}

.sub-categories li {
    border-bottom: none;
}

.sub-categories li a {
    padding: 10px 20px;
    font-size: 13px;
}

.help-main {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px;
    min-height: 500px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #4361ee;
    display: inline-block;
    margin-bottom: 16px;
}

.article-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.article-item:hover {
    background: #e8ecf1;
    transform: translateX(4px);
}

.article-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.article-info {
    flex: 1;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.article-summary {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.article-arrow {
    font-size: 20px;
    color: #ccc;
    transition: all 0.3s;
}

.article-item:hover .article-arrow {
    color: #4361ee;
    transform: translateX(4px);
}

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

.detail-title {
    font-size: 28px;
    color: #1a2a3a;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.detail-content {
    line-height: 1.8;
    color: #444;
    font-size: 15px;
    min-height: 300px;
}

.detail-content h1, .detail-content h2, .detail-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.detail-content p {
    margin-bottom: 16px;
}

.detail-content img {
    max-width: 100%;
    border-radius: 8px;
}

.detail-content pre {
    background: #f5f7fa;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
}

.detail-content code {
    background: #f0f2f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.detail-nav {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.back-btn {
    padding: 8px 20px;
    background: #f0f2f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #e0e4e8;
}

.search-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.search-header h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.search-header mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 4px;
}

.loading-spinner {
    text-align: center;
    padding: 60px;
    color: #999;
}

.error-message, .empty-message {
    text-align: center;
    padding: 60px;
    color: #999;
    font-size: 16px;
}

.empty-message a {
    color: #4361ee;
    text-decoration: none;
}

@media (max-width: 768px) {
    .help-content {
        flex-direction: column;
    }
    
    .help-sidebar {
        width: 100%;
    }
    
    .help-title {
        font-size: 24px;
    }
    
    .detail-title {
        font-size: 20px;
    }
    
    .article-meta {
        flex-wrap: wrap;
    }
}