/* 帮助中心新版样式 */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-dark: #1a1a2e;
    --bg-card: #232342;
    --bg-hover: #2a2a4a;
    --border-color: #3a3a5a;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* 基础容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    padding: 30px 0;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 14px;
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.breadcrumb-label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 10px;
    background-color: var(--bg-hover);
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-label i {
    color: var(--primary-color);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 8px;
    border-radius: 4px;
    position: relative;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    background-color: var(--bg-hover);
}

.breadcrumb i {
    margin: 0 6px;
    font-size: 12px;
    color: var(--accent-color);
    opacity: 0.8;
}

.current-page {
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 4px;
    background-color: rgba(74, 108, 247, 0.1);
}

/* 帮助中心布局 */
.help-center-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

/* 左侧导航栏 */
.help-sidebar {
    width: 300px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.help-category-list {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.help-category {
    border-bottom: 1px solid var(--border-color);
}

.help-category:last-child {
    border-bottom: none;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background-color: var(--bg-card);
    transition: all 0.3s ease;
}

.category-header:hover {
    background-color: var(--bg-hover);
}

.category-header i {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 12px;
}

.category-header h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.toggle-icon {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.help-category.active .toggle-icon i {
    transform: rotate(180deg);
}

.article-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--bg-hover);
}

.help-category.active .article-list {
    max-height: 500px;
    padding: 10px 0;
}

.article-list li {
    margin: 0;
    padding: 0;
}

.article-list li a {
    display: block;
    padding: 10px 15px 10px 45px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.article-list li a:hover {
    color: var(--text-color);
    background-color: rgba(74, 108, 247, 0.1);
}

.article-list li a::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.article-list li.active a {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(74, 108, 247, 0.15);
}

.article-list li.active a::before {
    background-color: var(--primary-color);
}

/* 右侧内容区域 */
.help-content {
    flex: 1;
    min-width: 0; /* 防止flex子项溢出 */
}

/* 快速入口 */
.quick-entries {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.entry-item {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.entry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.entry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.entry-item:hover::before {
    opacity: 1;
}

.entry-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: rgba(74, 108, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.entry-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.entry-item:hover .entry-icon {
    background-color: rgba(74, 108, 247, 0.2);
    transform: scale(1.1);
}

.entry-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px;
}

.entry-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 15px;
}

.entry-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.entry-button:hover {
    background-color: #3a5cd8;
    transform: translateY(-2px);
}

/* 文章内容区域 */
.article-content-box {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.article {
    display: none;
    padding: 25px;
}

.article.active {
    display: block;
}

.article-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    letter-spacing: 0.5px;
    text-align: center;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.article-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.article-content {
    color: var(--text-color);
    line-height: 1.6;
}

.article-content .first-paragraph:first-letter {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    float: left;
    margin-right: 8px;
    line-height: 1;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 35px 0 18px;
    padding-bottom: 10px;
    position: relative;
    border-bottom: 1px dashed rgba(74, 108, 247, 0.3);
    display: flex;
    align-items: center;
}

.article-content h3::before {
    content: '#';
    color: var(--accent-color);
    margin-right: 8px;
    font-weight: 700;
    opacity: 0.8;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
    background-color: rgba(74, 108, 247, 0.1);
    padding: 8px 15px;
    border-radius: 0 6px 6px 0;
    display: inline-block;
}

.article-content p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.7;
}

.article-image {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.article-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.note-box {
    background-color: rgba(74, 108, 247, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.note-box p {
    margin-bottom: 0;
}

.note-box i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 16px;
}

/* 热门问答区域 */
.faq-section {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-title i {
    color: var(--accent-color);
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-hover);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: rgba(74, 108, 247, 0.05);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(74, 108, 247, 0.1);
}

.question-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px;
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.toggle-faq {
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-item.active .toggle-faq i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
}

.faq-item.active .faq-answer {
    padding: 15px;
    max-height: 500px;
}

.answer-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px;
}

.faq-answer p {
    flex: 1;
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .help-center-wrapper {
        flex-direction: column;
    }
    
    .help-sidebar {
        width: 100%;
        position: static;
    }
    
    .quick-entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px;
        margin-bottom: 20px;
        font-size: 12px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-content h4 {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .entry-icon {
        width: 50px;
        height: 50px;
    }
    
    .entry-item h3 {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .quick-entries {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
    
    .question-icon, .answer-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .article, .faq-section {
        padding: 15px;
    }
} 
