/* FAQ 页面样式 */

/* 主要内容区域 */
.faq-main {
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 50%, #f3e5f5 100%);
    min-height: 100vh;
    position: relative;
}

.faq-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjEpIi8+Cjwvc3ZnPg==') repeat;
    opacity: 0.3;
}

/* 页面标题 */
.faq-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.faq-title {
    font-size: 48px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-subtitle {
    font-size: 20px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 搜索框 */
.faq-search {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: none;
    border-radius: 50px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
}

/* 分类标签 */
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* FAQ 内容 */
.faq-content {
    position: relative;
    z-index: 2;
}

.faq-category-section {
    margin-bottom: 40px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: between;
    align-items: center;
    background: white;
    border: none;
    width: 100%;
    transition: all 0.3s ease;
}

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

.faq-question h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    text-align: left;
}

.faq-arrow {
    color: #64748b;
    font-size: 14px;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.faq-answer {
    border-top: 1px solid #f1f5f9;
}

.faq-answer-content {
    padding: 30px;
    color: #64748b;
    line-height: 1.8;
}

.faq-answer-content p {
    margin-bottom: 16px;
    font-size: 15px;
}

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

.faq-answer-content ul,
.faq-answer-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.faq-answer-content li {
    margin-bottom: 8px;
    font-size: 15px;
}

.faq-answer-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 联系我们 CTA */
.faq-contact-cta {
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.contact-card {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.contact-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.contact-card p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    border-radius: 25px;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.contact-buttons .btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
}

.contact-buttons .btn-outline-primary:hover {
    background: #667eea;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq-title {
        font-size: 36px;
    }
    
    .faq-subtitle {
        font-size: 18px;
        padding: 0 20px;
    }
    
    .search-input {
        font-size: 16px;
        padding: 14px 18px 14px 45px;
    }
    
    .faq-categories {
        padding: 0 20px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-answer-content {
        padding: 20px;
    }
    
    .contact-card {
        padding: 40px 30px;
        margin: 0 20px;
    }
    
    .contact-card h3 {
        font-size: 24px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .faq-main {
        padding-top: 80px;
    }
    
    .faq-title {
        font-size: 28px;
    }
    
    .faq-subtitle {
        font-size: 16px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .faq-question {
        padding: 16px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
    
    .faq-answer-content {
        padding: 16px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
}

/* 动画效果 */
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

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

/* 导航栏活跃状态 */
.nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
} 