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

.help-main {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
}

/* ==================== 帮助中心头部 ==================== */
.help-hero {
    background: var(--gradient-1);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.help-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.help-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.help-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.help-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.search-box-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.search-box-large i {
    padding-left: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.search-box-large input {
    flex: 1;
    padding: 1rem;
    border: none;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
}

.search-box-large input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.quick-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==================== 帮助内容区域 ==================== */
.help-content {
    padding: 3rem 2rem;
}

.help-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

/* ==================== 帮助侧边栏 ==================== */
.help-sidebar {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-title i {
    color: var(--primary-color);
}

.help-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.help-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.help-nav-item:hover {
    background: rgba(108, 92, 231, 0.05);
    color: var(--primary-color);
}

.help-nav-item.active {
    background: var(--gradient-1);
    color: white;
}

.help-nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-support {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(108, 92, 231, 0.05) 100%);
    border-radius: 16px;
    text-align: center;
    border: 2px solid rgba(108, 92, 231, 0.2);
}

.contact-support h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-support p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-contact {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

/* ==================== 帮助文章列表 ==================== */
.help-articles {
    flex: 1;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.articles-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.article-category {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-category h3 i {
    color: var(--primary-color);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.article-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.article-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
}

.article-meta span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: var(--primary-color);
}

.btn-read-more {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-read-more:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* ==================== FAQ 列表 ==================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.faq-item summary i {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--light-bg);
}

.faq-answer p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .help-container {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .help-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .help-nav-item {
        flex: 1;
        min-width: calc(50% - 0.375rem);
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .help-hero h1 {
        font-size: 1.75rem;
    }

    .help-hero p {
        font-size: 1rem;
    }

    .search-box-large {
        flex-direction: column;
        padding: 1rem;
    }

    .search-box-large input {
        width: 100%;
        padding: 1rem;
    }

    .search-btn {
        width: 100%;
    }

    .quick-links {
        font-size: 0.85rem;
    }

    .help-content {
        padding: 2rem 1rem;
    }

    .article-item {
        flex-direction: column;
    }

    .article-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .btn-read-more {
        width: 100%;
    }
}

/* ==================== 搜索结果样式 ==================== */
.search-results {
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.search-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.search-result-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.search-result-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.75rem;
}
