/* FAQ页面样式 */

/* 继承解决方案页面的基本样式 */
.hero-banner {
    position: relative;
    background-image: url('../images/product/1319.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.hero-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 102, 255, 0.85), rgba(44, 122, 255, 0.85));
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.hero-banner .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* FAQ特有样式 */
.faq-container {
    max-width: 900px;
    margin: 0 auto 60px;
}

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

.faq-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h4 {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
    font-weight: 600;
}

.faq-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 1000px; /* 足够大的高度以容纳内容 */
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* 联系我们区域 */
.contact-section {
    margin: 60px 0;
}

.contact-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.contact-box p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    color: white;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-banner h1 {
        font-size: 2.2rem;
    }
    
    .hero-banner .subtitle {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    
    .contact-box {
        padding: 30px 20px;
    }
}