/**
 * XZD-AI FAQ 手风琴样式
 * 适配 Zibll 主题日间/夜间模式
 *
 * 日间: body (默认)
 * 夜间: body.dark-theme
 * 使用 !important 确保覆盖主题样式
 */

/* ═══ 日间模式 ═══ */
.xzd-faq-heading {
    font-size: 1.3em;
    margin: 2em 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--main-bg-color, #2F6BFF);
    color: #212529 !important;
}

.xzd-faq {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f1f3f5;
    color: #212529 !important;
    overflow: hidden;
    transition: all 0.2s ease;
}

.xzd-faq:hover {
    border-color: var(--main-bg-color, #2F6BFF);
}

.xzd-faq summary {
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #2F6BFF !important;
    background: #f8f9fa;
    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 !important;
}

.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 !important;
    background: #ffffff;
}

.xzd-faq-answer p,
.xzd-faq-answer li,
.xzd-faq-answer span,
.xzd-faq-answer div {
    color: #212529 !important;
}

/* ═══ Zibll 夜间模式 ═══ */
body.dark-theme .xzd-faq-heading {
    border-bottom-color: #495057;
    color: #e9ecef !important;
}

body.dark-theme .xzd-faq {
    border-color: #495057;
    background: #2b3035;
    color: #e9ecef !important;
}

body.dark-theme .xzd-faq:hover {
    border-color: #6ea8fe;
}

body.dark-theme .xzd-faq summary {
    color: #6ea8fe !important;
    background: #343a40;
}

body.dark-theme .xzd-faq summary::before {
    color: #6ea8fe !important;
}

body.dark-theme .xzd-faq[open] summary {
    border-bottom-color: #495057;
}

body.dark-theme .xzd-faq-answer {
    color: #e9ecef !important;
    background: #212529;
}

body.dark-theme .xzd-faq-answer p,
body.dark-theme .xzd-faq-answer li,
body.dark-theme .xzd-faq-answer span,
body.dark-theme .xzd-faq-answer div {
    color: #e9ecef !important;
}
