/* assets/faq.css */

/* --- 整体容器样式 --- */
.faq-section {
    margin: 60px auto !important; /* 上下边距增加，使其呼吸感更强 */
    padding: 0 !important; /* 移除内边距，让内部列表来控制 */
    background: none !important; /* 移除背景色和渐变，使其融入页面 */
    border-radius: 0 !important; /* 移除圆角 */
    box-shadow: none !important; /* 移除阴影 */
    border: none !important; /* 移除边框 */
    max-width: 800px !important;
    width: 100% !important;
}

/* 移除原有的顶部渐变条 */
.faq-section::before {
    display: none !important;
}

.faq-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- 标题样式 --- */
.faq-title {
    text-align: center !important;
    margin-bottom: 40px !important; /* 增加与下方列表的距离 */
    font-size: 26px !important; /* 稍微减小字号，显得更雅致 */
    font-weight: 600 !important; /* 降低字重，避免过于粗犷 */
    color: #383838 !important; /* 使用柔和的深灰色 */
    position: relative !important;
    padding-bottom: 15px !important;
}

/* 标题下划线样式 */
.faq-title::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 50px !important;
    height: 2px !important;
    background: #c5a880 !important; /* 使用温暖、雅致的拿铁色作为点缀 */
    border-radius: 2px !important;
}

/* --- FAQ 列表和项目样式 --- */
.faq-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* 移除项目间的 gap，由边框分隔 */
    border-top: 1px solid #e9e9e9 !important; /* 添加顶部边框 */
}

.faq-item {
    background: none !important; /* 移除项目背景 */
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important; /* 允许内容溢出，以适应无容器背景的设计 */
    transition: none !important;
    border: none !important; /* 移除自身边框 */
    border-bottom: 1px solid #e9e9e9 !important; /* 使用底部边框作为分隔线 */
}

/* 移除原有的 hover 浮起效果 */
.faq-item:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #e9e9e9 !important;
}

/* --- 问题区域样式 --- */
.faq-question {
    padding: 22px 10px !important; /* 调整内边距，使其更舒适 */
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: none !important; /* 移除背景 */
    transition: background-color 0.3s ease !important; /* 添加背景色过渡效果 */
    border-bottom: none !important;
    margin: 0 !important;
    font-size: 16px !important;
}

/* 问题区域的 hover 效果 */
.faq-question:hover {
    background-color: #f9f9f9 !important; /* 悬停时添加非常淡的背景色作为反馈 */
}

.faq-question-text {
    font-weight: 500 !important; /* 正常偏粗的字重 */
    font-size: 16px !important;
    color: #4a4a4a !important; /* 柔和的标题颜色 */
    line-height: 1.6 !important;
    flex: 1 !important;
    margin-right: 20px !important; /* 增加与图标的距离 */
    transition: color 0.3s ease !important;
}

/* 激活状态下问题文本的样式 */
.faq-item.active .faq-question-text {
    color: #c5a880 !important; /* 激活时变为点缀色 */
}

/* --- 切换图标样式 --- */
.faq-toggle {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: none !important; /* 移除背景 */
    color: #b0b0b0 !important; /* 使用中性灰色 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: 300 !important; /* 使用更细的字重 */
    transition: transform 0.3s ease, color 0.3s ease !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

/* 激活状态下图标的样式 */
.faq-item.active .faq-toggle {
    transform: rotate(45deg) !important; /* 旋转成 "x" 号 */
    background: none !important; /* 确认无背景 */
    color: #c5a880 !important; /* 激活时变为点缀色 */
}

/* 激活状态下问题区域的样式 */
.faq-item.active .faq-question {
    background-color: #f9f9f9 !important; /* 激活时也保持淡背景色 */
}

/* --- 答案区域样式 --- */
.faq-answer {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: none !important; /* 移除背景 */
}

.faq-item.active .faq-answer {
    max-height: 500px !important; /* 增加最大高度以容纳更多内容 */
}

.faq-answer-content {
    padding: 5px 10px 25px 10px !important; /* 调整内边距 */
    color: #666 !important; /* 使用柔和的文本颜色 */
    line-height: 1.8 !important; /* 增加行高，提升阅读体验 */
    font-size: 15px !important;
}

.faq-answer-content p {
    margin: 0 0 15px 0 !important;
}

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

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .faq-section {
        margin: 40px auto !important;
    }
    
    .faq-title {
        font-size: 22px !important;
        margin-bottom: 30px !important;
    }
    
    .faq-question {
        padding: 18px 5px !important;
    }
    
    .faq-question-text {
        font-size: 15px !important;
        margin-right: 15px !important;
    }
    
    .faq-toggle {
        font-size: 22px !important;
    }
    
    .faq-answer-content {
        padding: 0px 5px 20px 5px !important;
        font-size: 14px !important;
    }
}
