/**
 * 帮助中心样式
 * 包含：搜索框、分类标签、FAQ、内容区域、响应式布局
 */

/* 帮助中心面板 */
.help-center-panel {
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.help-center-container {
    padding: 15px 0;
}

/* 搜索框样式 */
.help-search-box {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.search-input-container {
    position: relative;
    width: 85%;
    max-width: 450px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9e9e9e;
    font-size: 16px;
}

.help-search-input {
    width: 100%;
    height: 45px;
    padding: 8px 15px 8px 45px;
    border-radius: 22px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.help-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 3px 12px rgba(63, 207, 187, 0.15);
}

/* 分类标签样式 */
.help-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.help-tab {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: #f1f1f1;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.help-tab i {
    margin-right: 8px;
    font-size: 16px;
}

.help-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 10px rgba(63, 207, 187, 0.3);
}

.help-tab:hover:not(.active) {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* 内容区域样式 */
.help-content-container {
    position: relative;
    min-height: 300px;
}

.help-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.help-section.active {
    display: block;
}

/* FAQ样式 */
.faq-container {
    max-width: 90%;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.faq-question {
    padding: 15px 20px;
    background-color: #f8f8f8;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: revert-layer;
}

.faq-arrow {
    margin-right: 10px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    background-color: #fff;
}

.faq-item.active .faq-answer {
    padding: 15px 20px 15px 42px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.6;
}

.faq-answer ul,
.faq-answer ol {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 5px;
    color: #555;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
    .help-search-box {
        margin-bottom: 15px;
    }

    .search-input-container {
        width: 100%;
    }

    .help-search-input {
        height: 40px;
        font-size: 13px;
    }

    .help-tab {
        padding: 8px 15px;
        font-size: 13px;
    }

    .faq-container {
        max-width: 100%;
    }

    .faq-question {
        padding: 12px 15px;
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding: 12px 15px 12px 35px;
    }
}

