/* 帮助中心样式 - 两栏布局 */

/* 帮助中心主要内容区 */
.help-main-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 顶部Tab导航 */
.help-tabs {
    border-bottom: 1px solid #e1e8ed;
}

.tab-header {
    background: #f8f9fa;
    padding: 20px 30px 15px;
    border-bottom: 1px solid #e1e8ed;
}

.help-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-title i {
    color: #3498db;
}

.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    background: white;
}

.tab-item {
    position: relative;
    border-right: 1px solid #e1e8ed;
}

.tab-item:last-child {
    border-right: none;
}

.tab-header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: space-between;
}

.tab-item.active .tab-header-btn {
    background: #3498db;
    color: white;
}

.tab-header-btn:hover {
    background: #f8f9fa;
}

.tab-item.active .tab-header-btn:hover {
    background: #2980b9;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.tab-item.active .toggle-icon {
    transform: rotate(180deg);
}

.tab-articles {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    display: none; /* 默认关闭 */
    max-height: 300px;
    overflow-y: auto;
}

.tab-item.active .tab-articles {
    display: block;
}

.article-tab-link {
    display: block;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.article-tab-link:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 25px;
}

.article-tab-link.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
    border-left: 3px solid #1976d2;
}

.article-tab-link:last-child {
    border-bottom: none;
}

/* 主要内容区 */
.content-header {
    padding: 30px 30px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item:hover {
    color: #3498db;
}

.breadcrumb-item.current {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #adb5bd;
}

.content-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

/* 文章内容样式 */
.article-content {
    padding: 30px;
    line-height: 1.7;
    color: #2c3e50;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 500;
    color: #34495e;
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    margin: 20px 0 10px 0;
}

.article-content h5 {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    margin: 15px 0 8px 0;
}

.article-content p {
    margin: 15px 0;
}

.article-content ul, .article-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.article-content li {
    margin: 8px 0;
}

.article-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: #e74c3c;
}

.article-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #2c3e50;
}

/* 右侧边栏样式 */
.sidebar .sidebar-box {
    margin-bottom: 20px;
}

.toc-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e8ed;
}

.quick-links h4 {
    font-size: 14px;
    color: #495057;
    margin: 20px 0 10px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-links h4:first-child {
    margin-top: 0;
}

.quick-link-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 16px;
}

.quick-link i {
    font-size: 12px;
    width: 14px;
    color: #6c757d;
}

/* 特殊内容样式 */
.level-showcase {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.level-badge {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.level-badge.newbie { background: #95a5a6; }
.level-badge.active { background: #27ae60; }
.level-badge.senior { background: #f39c12; }
.level-badge.core { background: #8e44ad; }
.level-badge.honor { background: #e74c3c; }

.tip-box {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #17a2b8;
}

.tip-box i {
    color: #17a2b8;
    margin-right: 8px;
}

/* 用户等级卡片 */
.level-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.level-card {
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
}

.level-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.level-card.newbie { border-left-color: #95a5a6; }
.level-card.active { border-left-color: #27ae60; }
.level-card.senior { border-left-color: #f39c12; }
.level-card.core { border-left-color: #8e44ad; }
.level-card.honor { border-left-color: #e74c3c; }

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.level-points {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.level-requirements ul {
    margin: 10px 0;
}

/* 积分规则样式 */
.score-rules {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 25px 0;
}

.rule-category h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e8ed;
}

.rule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid transparent;
}

.rule-item.positive {
    background: #d4edda;
    border-left-color: #28a745;
}

.rule-item.negative {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.rule-item .action {
    font-weight: 500;
}

.rule-item .score {
    font-weight: 600;
    font-family: monospace;
}

.rule-item.positive .score {
    color: #28a745;
}

.rule-item.negative .score {
    color: #dc3545;
}

/* 货币系统样式 */
.currency-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.currency-card {
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
}

.currency-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.currency-card.copper { border-left-color: #d2691e; }
.currency-card.silver { border-left-color: #c0c0c0; }
.currency-card.gold { border-left-color: #ffd700; }

.currency-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e8ed;
}

.currency-header i {
    font-size: 24px;
}

.currency-card.copper .currency-header i { color: #d2691e; }
.currency-card.silver .currency-header i { color: #c0c0c0; }
.currency-card.gold .currency-header i { color: #ffd700; }

.currency-header h4 {
    margin: 0;
    color: #2c3e50;
}

.currency-desc {
    font-size: 12px;
    color: #6c757d;
    margin-left: auto;
}

.currency-details h5 {
    color: #495057;
    margin: 15px 0 8px 0;
}

/* 转换规则样式 */
.conversion-rules {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.conversion-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.conversion-item .from,
.conversion-item .to {
    font-weight: 600;
    color: #2c3e50;
}

.conversion-item i {
    color: #3498db;
}

.conversion-item .note {
    font-size: 12px;
    color: #6c757d;
}

/* 相关文章 */
.related-articles {
    margin: 40px 30px 0;
    padding-top: 30px;
    border-top: 1px solid #e1e8ed;
}

.related-articles h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    transition: all 0.2s ease;
}

.related-item:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.related-item i {
    color: #6c757d;
    font-size: 14px;
}

/* 反馈区域 */
.feedback-section {
    margin: 40px 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.feedback-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.feedback-btn.helpful {
    border-color: #28a745;
    color: #28a745;
}

.feedback-btn.helpful:hover {
    background: #28a745;
    color: white;
}

.feedback-btn.not-helpful {
    border-color: #dc3545;
    color: #dc3545;
}

.feedback-btn.not-helpful:hover {
    background: #dc3545;
    color: white;
}

.feedback-message {
    color: #28a745;
    font-weight: 500;
    margin-top: 10px;
}

/* 支持区域 */
.support-section {
    margin: 30px;
    margin-bottom: 0;
}

.support-card {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.support-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.support-card p {
    color: #495057;
    margin-bottom: 20px;
}

.support-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    font-size: 14px;
}

.support-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* FAQ样式 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.faq-item p {
    color: #495057;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-item {
        border-right: none;
        border-bottom: 1px solid #e1e8ed;
    }
    
    .tab-item:last-child {
        border-bottom: none;
    }
    
    .tab-articles {
        position: static;
        border: none;
        border-top: 1px solid #e1e8ed;
        border-radius: 0;
        box-shadow: none;
        max-height: none;
    }
    
    .currency-types {
        grid-template-columns: 1fr;
    }
    
    .support-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .help-main-content {
        margin: 0;
        border-radius: 0;
    }
    
    .tab-header {
        padding: 15px 20px 10px;
    }
    
    .help-title {
        font-size: 20px;
    }
    
    .content-header,
    .article-content {
        padding: 20px;
    }
    
    .feedback-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
    }
    
    .content-title {
        font-size: 24px;
    }
    
    .related-articles,
    .feedback-section,
    .support-section {
        margin-left: 20px;
        margin-right: 20px;
    }
} 