/* FAQ页面样式 */
.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-question {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 0;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.faq-question:focus {
    outline: none;
    background: #e9ecef;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-toggle.active {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e9ecef;
    display: none;
    animation: slideDown 0.3s ease;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

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

/* FAQ分类样式 */
.faq-category {
    margin-bottom: 2rem;
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8B4513;
}

.category-section {
    margin-bottom: 2rem;
}

.category-title {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.faq-search {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.featured-badge {
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.faq-question.active {
    background: #007bff;
    color: white;
}

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

.faq-icon {
    transition: transform 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq-question {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    .faq-toggle {
        font-size: 1rem;
    }
}
