/* Banner样式 */
.faq-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-description {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-description p {
    margin-bottom: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq-banner {
        height: 300px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-banner {
        height: 250px;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
}
    /* FAQ模板样式 */
.faq-template-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-main-title {
    color: #333;
    margin-bottom: 15px;
}

.faq-page-content {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
}

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

/* 侧边栏样式 */
.faq-sidebar {
    flex: 0 0 250px;
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.faq-category-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-filter {
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-filter:hover {
    background: #e9ecef;
}

.category-filter.active {
    background: #046CB5;
    color: white;
    border-color: #046CB5;
}

.child-category {
    margin-left: 15px;
    font-size: 13px;
    padding: 10px 15px;
}

/* 内容区域样式 */
.faq-content {
    flex: 1;
}

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

.category-title {
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.child-category-title {
    color: #555;
    margin: 20px 0 15px 0;
    padding-left: 10px;
    border-left: 3px solid #007cba;
}

.category-description {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

/* 手风琴样式 */
.faq-accordion {
    border-radius: 5px;
    overflow: hidden;
}

.faq-item {
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

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

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

.question-title {
    margin: 0;
    font-size: 16px;
    color: #333;
    flex: 1;
}

.faq-toggle {
    color: #666;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    display: none;
    padding: 0;
    background: white;
}

.faq-item.active .faq-answer {
    display: block;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.answer-content {
    line-height: 1.6;
    color: #555;
}

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

/* 标签样式 */
.faq-tags {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.tags-label {
    font-size: 12px;
    color: #999;
    margin-right: 10px;
}

.faq-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    margin: 2px 5px 2px 0;
    border-radius: 3px;
    font-size: 11px;
}

/* 空状态样式 */
.no-faqs-message, .no-posts-message {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq-container {
        flex-direction: column;
    }
    
    .faq-sidebar {
        flex: none;
        margin-bottom: 20px;
    }
    
    .faq-category-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .category-filter {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .faq-question {
        padding: 12px 15px;
    }
    
    .question-title {
        font-size: 15px;
    }
}

/* 动画效果 */
.faq-answer {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* 分类筛选链接样式 */
.faq-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-filter-link {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.category-filter-link:hover {
    border-color: #007cba;
    color: #007cba;
    text-decoration: none;
}

.category-filter-link.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.child-filter {
    margin-left: 10px;
    font-size: 13px;
    padding: 8px 16px;
}