/**
 * XZD-AI FAQ 手风琴样式
 * 日间/夜间完整适配 — 使用 !important 覆盖 AI 生成的内联样式
 */

/* ─── 日间 ─── */
.xzd-faq-heading {
    font-size: 1.3em;
    margin: 2em 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #2F6BFF;
    color: #212529;
}
.xzd-faq {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    color: #212529;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.xzd-faq:hover { border-color: #2F6BFF; }
.xzd-faq summary {
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #2F6BFF;
    background: #f1f3f5;
    list-style: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
}
.xzd-faq summary::-webkit-details-marker { display: none; }
.xzd-faq summary::marker { content: ""; display: none; }
.xzd-faq summary::before {
    content: "\25B8";
    display: inline-block;
    font-size: 0.85em;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: #2F6BFF;
}
.xzd-faq[open] summary::before { content: "\25BE"; }
.xzd-faq[open] summary { border-bottom: 1px solid #dee2e6; }
.xzd-faq-answer {
    padding: 14px 16px;
    line-height: 1.85;
    color: #212529;
    background: #fff;
}
.xzd-faq-answer p, .xzd-faq-answer li, .xzd-faq-answer span, .xzd-faq-answer div { color: #212529; }

/* ─── 夜间 ─── */
.dark-theme .xzd-faq-heading,
body.dark .xzd-faq-heading,
[data-theme="dark"] .xzd-faq-heading {
    border-bottom-color: #495057 !important;
    color: #e9ecef !important;
}
.dark-theme .xzd-faq,
body.dark .xzd-faq,
[data-theme="dark"] .xzd-faq {
    border-color: #495057 !important;
    background: #2b3035 !important;
    color: #e9ecef !important;
}
.dark-theme .xzd-faq:hover,
body.dark .xzd-faq:hover,
[data-theme="dark"] .xzd-faq:hover { border-color: #6ea8fe !important; }
.dark-theme .xzd-faq summary,
body.dark .xzd-faq summary,
[data-theme="dark"] .xzd-faq summary {
    color: #6ea8fe !important;
    background: #343a40 !important;
}
.dark-theme .xzd-faq summary::before,
body.dark .xzd-faq summary::before,
[data-theme="dark"] .xzd-faq summary::before { color: #6ea8fe !important; }
.dark-theme .xzd-faq[open] summary,
body.dark .xzd-faq[open] summary,
[data-theme="dark"] .xzd-faq[open] summary { border-bottom-color: #495057 !important; }
.dark-theme .xzd-faq-answer,
body.dark .xzd-faq-answer,
[data-theme="dark"] .xzd-faq-answer {
    color: #e9ecef !important;
    background: #212529 !important;
}
.dark-theme .xzd-faq-answer p,
.dark-theme .xzd-faq-answer li,
.dark-theme .xzd-faq-answer span,
.dark-theme .xzd-faq-answer div,
body.dark .xzd-faq-answer p,
body.dark .xzd-faq-answer li,
body.dark .xzd-faq-answer span,
body.dark .xzd-faq-answer div,
[data-theme="dark"] .xzd-faq-answer p,
[data-theme="dark"] .xzd-faq-answer li,
[data-theme="dark"] .xzd-faq-answer span,
[data-theme="dark"] .xzd-faq-answer div { color: #e9ecef !important; }
