﻿/* ==========================================================================
   常见问题页面专用样式 - FAQ Page Specific Styles
   ======
/* FAQ 头部样式 */
.faq-header {
    text-align: center;
    padding: 40px 0;
    background-color: #fff;
    margin-bottom: 30px;
    position: relative;
}

.faq-hr {
    position: absolute;
    bottom: 0;
    width: 99vw;
    left: 50%;
    transform: translateX(-50%);
    border-top: 1px solid #A5A5A5;
}

.faq-title {
    font-size: 2rem;
    font-weight: bold;
    color: #105E8C;
    margin: 0;
}

/* FAQ 主要内容区域 */
.faq-main {
    width: 100%;
    margin-bottom: 50px;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* FAQ 部分样式 */
.faq-section {
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-section:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); */
}

/* 问题标题区域 */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px;
    border-bottom: 1px dashed #7B7B7B;
    cursor: pointer;
}

.question-title {
    font-size: 1.5rem;
    color: #353636;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.question-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.question-toggle:hover {
    /* transform: rotate(180deg); */
}

.question-toggle img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 答案组样式 */
.faq-answer-group {
    padding: 0;
}

/* FAQ 项目样式 */
.faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.answer-title {
    font-size: 1.1rem;
    color: #242424;
    font-weight: 500;
    padding: 15px 0px 10px 0px;
    margin: 0;
}

.answer-content {
    padding: 15px 25px 20px 25px;
    background-color: #E9E9E9;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .faq-title {
        font-size: 1.8rem;
    }
    
    .question-title {
        font-size: 1.3rem;
    }
    
    .answer-title {
        font-size: 1rem;
    }
    
    .faq-question,
    .answer-title,
    .answer-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .faq-header {
        padding: 30px 0;
        margin-bottom: 20px;
    }
    
    .faq-title {
        font-size: 1.6rem;
    }
    
    .faq-content {
        gap: 20px;
    }
    
    .question-title {
        font-size: 1.2rem;
    }
    
    .answer-title {
        font-size: 0.95rem;
    }
    
    .answer-content {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .faq-question,
    .answer-title,
    .answer-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .faq-question {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

@media screen and (max-width: 480px) {
    .faq-title {
        font-size: 1.4rem;
    }
    
    .question-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .answer-title {
        font-size: 0.9rem;
    }
    
    .answer-content {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .faq-question,
    .answer-title,
    .answer-content {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .question-toggle img {
        width: 18px;
        height: 19px;
    }
}

/* FAQ 专用动画效果 */
.faq-section {
    animation: fadeIn 0.6s ease-out;
}

/* 打印样式 */
@media print {
    .faq-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .faq-question {
        background-color: #f0f0f0 !important;
    }
    
    .question-toggle {
        display: none;
    }
}