/* faq-extend.css - 图文并茂 FAQ 折叠样式 */
.faq-title {
    text-align: center;
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 32px;
}

/* 每条 FAQ 外框 */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* 问题栏样式 */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.3s;
}
.faq-question:hover {
    background: #e0f2fe;
}
.faq-num {
    background: var(--accent);
    color: white;
    font-weight: 700;
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    text-align: center;
    margin-right: 12px;
}
.faq-text {
    flex: 1;
    font-weight: 600;
    color: var(--text);
}
.faq-arrow {
    color: var(--muted);
    transition: transform 0.3s;
}

/* 展开状态箭头旋转 */
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

/* 答案内容动画 */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    background: white;
    padding: 0 18px;
}
.faq-item.open .faq-answer {
    max-height: 800px;
    opacity: 1;
    padding: 18px;
}

/* 图文布局 */
.faq-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.faq-textblock {
    flex: 1 1 300px;
}
.faq-textblock p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}
.faq-content img {
    flex: 0 0 320px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.faq-content img:hover {
    transform: scale(1.03);
}

/* 小屏优化 */
@media (max-width: 768px) {
    .faq-content {
        flex-direction: column;
    }
    .faq-content img {
        margin-top: 10px;
    }
}
