/* ---------------------------------------------------
    FAQ 页面专属样式 (基于源文件重构)
-----------------------------------------------------*/

/* 全局和基础设置 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.7;
    color: #333;
}

.container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* 页面主标题 */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a294d;
    margin: 40px 0;
}
.page-title .highlight {
    color: #ff4d4d;
}

/* FAQ 容器 */
.faq-container {
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

/* FAQ 分类标题 */
.faq-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
}

.faq-category-title:first-of-type {
    margin-top: 0;
}

.faq-category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ffa06b);
}

/* FAQ 项目组 */
.faq-items {
    margin-bottom: 30px;
}

/* 单个FAQ条目 */
.faq-item {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

/* 问题区域 */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #ff6b6b;
}

.faq-question h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    padding-right: 15px;
    flex: 1;
}

/* 答案区域 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    transition: max-height 0.35s ease-out, padding 0.35s ease-out;
    padding: 0 20px 0 20px;
}

.faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
}

.faq-answer ul {
    margin-top: 10px;
    margin-bottom: 0;
}

/* 加/减 图标 */
.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #888;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

/* 展开状态的样式 */
.faq-item.active .faq-question {
    color: #ff6b6b;
}

.faq-item.active .faq-toggle {
    color: #ff6b6b;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* 设定一个足够大的值 */
    padding: 0 20px 20px 20px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .faq-container {
        padding: 20px;
    }
    
    .faq-category-title {
        font-size: 1.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
} 