/* ========== FAQ页面样式 ========== */

/* 页面标题区域 */
.faq-page .page-hero {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.faq-page .page-hero-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
}

.faq-page .page-hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* 搜索区域 */
.faq-search-section {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
}

.faq-search-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto 20px;
    border: 2px solid #FF6B35;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}

.faq-search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.faq-search-input::placeholder {
    color: #999;
}

.faq-search-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.faq-search-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #ff7a4d 100%);
}

.faq-hot-tags {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-tag-label {
    color: #666;
    font-size: 14px;
}

.hot-tag {
    padding: 6px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.hot-tag:hover,
.hot-tag.active {
    background: #FF6B35;
    color: #fff;
}

/* FAQ内容区域 */
.faq-content-section {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.faq-layout {
    display: flex;
    gap: 30px;
}

/* 左侧分类导航 */
.faq-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.faq-category-nav {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.category-nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
}

.category-nav-item:last-child {
    border-bottom: none;
}

.category-nav-item:hover {
    background: #fff5f2;
    border-left-color: #FF6B35;
}

.category-nav-item.active {
    background: #fff5f2;
    border-left-color: #FF6B35;
}

.category-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    background: #f5f5f5;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-nav-item.active .category-nav-icon,
.category-nav-item:hover .category-nav-icon {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
}

.category-nav-info {
    flex: 1;
}

.category-nav-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.category-nav-count {
    font-size: 12px;
    color: #999;
}

/* 右侧问题列表 */
.faq-main {
    flex: 1;
    min-width: 0;
}

.faq-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8e8e8;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.category-count {
    font-size: 14px;
    color: #999;
}

/* FAQ手风琴样式 */
.faq-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-item.active .faq-question {
    background: #fff5f2;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 14px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: #FF6B35;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-answer-content {
    padding: 0 24px 20px 68px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.faq-answer-content p {
    margin-bottom: 12px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* 关键词高亮 */
.faq-highlight {
    background: #ffe4d9;
    color: #FF6B35;
    padding: 0 2px;
    border-radius: 2px;
}

/* 空状态 */
.faq-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: none;
}

.faq-empty.show {
    display: block;
}

.faq-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.faq-empty h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.faq-empty p {
    font-size: 14px;
    color: #999;
}

/* 联系客服区域 */
.faq-contact-section {
    padding: 60px 0;
    background: #fff;
}

.contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    border-radius: 16px;
    padding: 40px 60px;
    color: #fff;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-info p {
    font-size: 14px;
    opacity: 0.9;
}

.contact-actions {
    display: flex;
    gap: 16px;
}

.contact-btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-btn-primary {
    background: #fff;
    color: #FF6B35;
}

.contact-btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.contact-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.contact-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ========== 移动端适配 ========== */
@media screen and (max-width: 1024px) {
    .faq-layout {
        flex-direction: column;
    }

    .faq-sidebar {
        width: 100%;
    }

    .faq-category-nav {
        display: flex;
        overflow-x: auto;
        padding: 12px;
        gap: 10px;
        scrollbar-width: none;
        border-radius: 12px;
    }

    .faq-category-nav::-webkit-scrollbar {
        display: none;
    }

    .category-nav-item {
        flex-direction: column;
        padding: 12px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px;
        min-width: 80px;
        text-align: center;
        flex-shrink: 0;
    }

    .category-nav-item:hover,
    .category-nav-item.active {
        border-left: none;
        border-bottom-color: #FF6B35;
    }

    .category-nav-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .category-nav-info {
        text-align: center;
    }

    .category-nav-name {
        font-size: 13px;
    }

    .category-nav-count {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .faq-page .page-hero {
        padding: 40px 20px;
    }

    .faq-page .page-hero-title {
        font-size: 28px;
    }

    .faq-page .page-hero-subtitle {
        font-size: 14px;
    }

    .faq-search-section {
        padding: 24px 15px;
    }

    .faq-search-box {
        border-radius: 25px;
    }

    .faq-search-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .faq-search-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .faq-search-btn span {
        display: none;
    }

    .faq-hot-tags {
        gap: 8px;
    }

    .hot-tag-label {
        font-size: 12px;
    }

    .hot-tag {
        padding: 4px 12px;
        font-size: 12px;
    }

    .faq-content-section {
        padding: 0;
    }

    .faq-category-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .category-title {
        font-size: 18px;
    }

    .category-count {
        font-size: 12px;
    }

    .faq-question {
        padding: 16px;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 12px;
    }

    .faq-text {
        font-size: 14px;
    }

    .faq-answer-content {
        padding: 0 16px 16px 52px;
        font-size: 13px;
    }

    .contact-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 24px;
    }

    .contact-info h3 {
        font-size: 20px;
    }

    .contact-actions {
        flex-direction: column;
        width: 100%;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }

    .faq-empty {
        padding: 40px 20px;
    }

    .faq-empty .empty-icon {
        font-size: 36px;
    }

    .faq-empty h3 {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .faq-page .page-hero-title {
        font-size: 24px;
    }

    .category-nav-item {
        min-width: 80px;
        padding: 10px 12px;
    }

    .category-nav-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .category-nav-name {
        font-size: 12px;
    }
}
