/* ===========================================
   FAQ Page Styles - FAQ页面专用样式
   =========================================== */

.faq-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
}

/* ===========================================
   FAQ Page Hero Section - 英雄区域
   =========================================== */

.faq-page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.faq-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.faq-page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-page-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: bounce 2s infinite;
}

.faq-page-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.faq-page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

/* ===========================================
   FAQ Page Search Section - 搜索区域
   =========================================== */

.faq-page-search-section {
    background: white;
    padding: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-page-search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.faq-page-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 1.1rem;
}

.faq-page-search-input {
    width: 100%;
    padding: 15px 50px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.faq-page-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.faq-page-search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
}

.faq-page-search-clear:hover {
    background: #f8f9fa;
    color: #495057;
}

.faq-page-search-clear.show {
    display: block;
}

/* ===========================================
   FAQ Page Content - 内容区域
   =========================================== */

.faq-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background: white;
}

.faq-page-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 40px 0;
    text-align: center;
}

/* ===========================================
   FAQ Page Categories - 分类标签
   =========================================== */

.faq-page-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.faq-page-category-tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
}

.faq-page-category-tab:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.faq-page-category-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* ===========================================
   FAQ Page Items - FAQ项目
   =========================================== */

.faq-page-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-page-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-page-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.faq-page-item.active {
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.faq-page-item.hidden {
    display: none;
}

/* ===========================================
   FAQ Page Question - 问题部分
   =========================================== */

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

.faq-page-question:hover {
    background: #f8f9fa;
}

.faq-page-item.active .faq-page-question {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.faq-page-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}

.faq-page-toggle-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-page-toggle-icon i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.faq-page-item:not(.active) .faq-page-toggle-icon {
    background: #e9ecef;
    color: #7f8c8d;
}

.faq-page-item.active .faq-page-toggle-icon {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: rotate(45deg);
}

/* ===========================================
   FAQ Page Answer - 答案部分
   =========================================== */

.faq-page-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-page-item.active .faq-page-answer {
    max-height: 500px;
}

.faq-page-answer-content {
    padding: 0 30px 30px;
    background: #f8f9fa;
}

.faq-page-answer-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin: 0;
}

.faq-page-answer-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-page-answer-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===========================================
   FAQ Page Search Highlight - 搜索高亮
   =========================================== */

.faq-page-search-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* ===========================================
   FAQ Page No Results - 无结果状态
   =========================================== */

.faq-page-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    display: none;
}

.faq-page-no-results.show {
    display: block;
}

.faq-page-no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.faq-page-no-results h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.faq-page-no-results p {
    font-size: 1rem;
    margin: 0;
}

/* ===========================================
   FAQ Page Animations - 动画效果
   =========================================== */

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.faq-page-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.faq-page-item:nth-child(1) { animation-delay: 0.1s; }
.faq-page-item:nth-child(2) { animation-delay: 0.2s; }
.faq-page-item:nth-child(3) { animation-delay: 0.3s; }
.faq-page-item:nth-child(4) { animation-delay: 0.4s; }
.faq-page-item:nth-child(5) { animation-delay: 0.5s; }

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

/* ===========================================
   FAQ Page Responsive Design - 响应式设计
   =========================================== */

@media (max-width: 768px) {
    .faq-page-hero {
        padding: 60px 0 40px;
    }
    
    .faq-page-title {
        font-size: 2.2rem;
    }
    
    .faq-page-subtitle {
        font-size: 1rem;
    }
    
    .faq-page-icon {
        font-size: 3rem;
    }
    
    .faq-page-search-section {
        padding: 30px 0;
    }
    
    .faq-page-content {
        padding: 40px 15px;
    }
    
    .faq-page-section-title {
        font-size: 1.6rem;
    }
    
    .faq-page-categories {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .faq-page-category-tab {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .faq-page-question {
        padding: 20px 25px;
    }
    
    .faq-page-question h3 {
        font-size: 1rem;
        padding-right: 15px;
    }
    
    .faq-page-toggle-icon {
        width: 32px;
        height: 32px;
    }
    
    .faq-page-answer-content {
        padding: 0 25px 25px;
    }
    
    .faq-page-answer-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-page-hero {
        padding: 40px 0 30px;
    }
    
    .faq-page-title {
        font-size: 1.8rem;
    }
    
    .faq-page-icon {
        font-size: 2.5rem;
    }
    
    .faq-page-search-section {
        padding: 25px 0;
    }
    
    .faq-page-search-container {
        padding: 0 15px;
    }
    
    .faq-page-content {
        padding: 30px 10px;
    }
    
    .faq-page-section-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .faq-page-categories {
        gap: 6px;
        margin-bottom: 25px;
    }
    
    .faq-page-category-tab {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .faq-page-question {
        padding: 18px 20px;
    }
    
    .faq-page-question h3 {
        font-size: 0.95rem;
        padding-right: 10px;
    }
    
    .faq-page-toggle-icon {
        width: 30px;
        height: 30px;
    }
    
    .faq-page-toggle-icon i {
        font-size: 0.9rem;
    }
    
    .faq-page-answer-content {
        padding: 0 20px 20px;
    }
    
    .faq-page-answer-content p {
        font-size: 0.9rem;
    }
    
    .faq-page-search-input {
        padding: 12px 45px 12px 40px;
        font-size: 0.95rem;
    }
    
    .faq-page-search-icon {
        left: 12px;
        font-size: 1rem;
    }
    
    .faq-page-search-clear {
        right: 12px;
    }
}