/* 常见问题页面样式 */

/* 确保页面使用flex布局 */
body.faq-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

body.faq-page .header {
    flex-shrink: 0;
}

body.faq-page .footer {
    flex-shrink: 0;
    margin-top: auto;
}

.content-wrapper {
    flex: 1;
    padding: 100px 40px 40px;
    position: relative;
    z-index: 1;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.faq-search {
    display: flex;
    margin-bottom: 30px;
}

.faq-search input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.faq-search button {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.faq-search button:hover {
    background-color: #e41e3f;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.faq-list {
    margin-top: 20px;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.toggle-icon {
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: rgba(51, 51, 51, 0.8);
}

.faq-answer ul, .faq-answer ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: rgba(51, 51, 51, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 100px 20px 30px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .faq-search {
        flex-direction: column;
    }
    
    .faq-search input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .faq-search button {
        border-radius: 4px;
    }
    
    .faq-categories {
        justify-content: center;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
} 