/* FAQ页面专用样式 */

/* 搜索框样式 */
.search-box {
    max-width: 500px;
    margin: 2rem auto 0;
    position: relative;
    display: flex;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-box button {
    padding: 15px 20px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* FAQ导航标签 */
.faq-nav {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.faq-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.faq-tab-btn:hover,
.faq-tab-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.faq-tab-btn i {
    font-size: 1.2rem;
}

/* FAQ区域 */
.faq-section {
    display: none;
    padding: 80px 0;
}

.faq-section.active {
    display: block;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* FAQ列表 */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px var(--shadow-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--accent-color);
}

.faq-question h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--accent-color);
}

.faq-item.active .faq-answer {
    padding: 2rem;
    max-height: 1000px;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.faq-answer ul li,
.faq-answer ol li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 联系客服区域 */
.contact-support {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 80px 0;
}

.support-content {
    text-align: center;
}

.support-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.support-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.support-option {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    transition: all 0.3s ease;
}

.support-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.support-option i {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.support-option h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.support-option p {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.support-option small {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 搜索高亮样式 */
.search-highlight {
    background-color: yellow;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* 无搜索结果提示 */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .search-box {
        max-width: 90%;
    }
    
    .faq-tabs {
        gap: 0.5rem;
    }
    
    .faq-tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .faq-tab-btn i {
        font-size: 1rem;
    }
    
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1.5rem;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .support-option {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
    
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 1.5rem;
    }
    
    .support-content h2 {
        font-size: 2rem;
    }
    
    .support-content p {
        font-size: 1rem;
    }
    
    .support-option {
        padding: 1.5rem;
    }
    
    .support-option i {
        font-size: 2.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }
.faq-item:nth-child(6) { animation-delay: 0.5s; }

/* 滚动动画 */
.faq-section.active {
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
