/* ==========================================================================
   会易君 · faq.css — 问答主页/列表 & 问答详情专属
   （共享组件在 custom.css：.prose/.section-title/.empty-state/.related-*/.cta-side/.hot-num 等）
   ========================================================================== */

/* ---------- FAQ accordion (问答列表) ---------- */
.faq-group { display: flex; flex-direction: column; gap: 14px; }
.faq-group .faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-group .faq-item.open { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq-group .faq-question { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 18px 20px; }
.q-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-050); color: var(--brand); font-size: 16px; }
.q-body { flex: 1; min-width: 0; }
.q-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.q-cat { font-size: 11.5px; font-weight: 700; color: var(--brand-600); }
.q-cat a { color: var(--brand-600); }
.q-title { display: block; font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.5; }
.q-toggle { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-alt); color: var(--brand); font-size: 13px; transition: transform .25s ease, background .2s ease; }
.faq-group .faq-question.active .q-toggle { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-group .faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 20px 20px 72px; }
.ans-text { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.ans-footer { margin-top: 14px; }
.ans-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.ans-link:hover { gap: 11px; }

/* ---------- question card (详情) ---------- */
.q-card { background: linear-gradient(160deg, var(--ink), var(--ink-2)); color: #fff; border-radius: var(--radius); padding: 30px 30px 26px; }
.q-card .q-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.q-card .q-cat a { display: inline-block; padding: 5px 13px; border-radius: 999px; background: rgba(199, 154, 70, .26); color: #E4C377; font-size: 12.5px; font-weight: 600; }
.q-card .q-hot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gold); }
.q-card h1 { font-size: 26px; line-height: 1.45; color: #fff; font-family: var(--font-serif); }
.q-info-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.q-info-item { display: inline-flex; align-items: center; gap: 6px; }
.q-info-item .fa-circle-check { color: var(--gold); }

/* ---------- answer card ---------- */
.ans-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 22px; overflow: hidden; }
.ans-header { display: flex; align-items: center; gap: 14px; padding: 20px 26px; border-bottom: 1px solid var(--border-2); background: var(--bg-soft); }
.ans-badge { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: var(--gold); font-size: 19px; }
.ans-header-info { flex: 1; min-width: 0; }
.ans-header-info strong { display: block; font-size: 15px; }
.ans-header-info span { font-size: 12.5px; color: var(--text-muted); }
.ans-official { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent-050); color: var(--accent-600); font-size: 12px; font-weight: 700; }
.ans-body { padding: 26px; }
.ans-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; padding: 16px 26px; border-top: 1px solid var(--border-2); background: var(--bg-soft); }

/* ---------- qa row (相关问题，_article_qa_row) ---------- */
.qa-row-list { display: flex; flex-direction: column; gap: 12px; }
.qa-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: box-shadow .2s ease, border-color .2s ease; }
.qa-row:hover { box-shadow: var(--shadow-sm); border-color: var(--brand-100); }
.qa-row-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-050); color: var(--brand); }
.qa-row-body { flex: 1; min-width: 0; }
.qa-row-cat { font-size: 11.5px; font-weight: 700; color: var(--brand-600); }
.qa-row-body h4 { font-size: 15px; line-height: 1.5; margin: 2px 0; }
.qa-row-body h4 a:hover { color: var(--brand); }
.qa-row-body p { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.qa-row-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.qa-row-link:hover { gap: 10px; }

/* ---------- sidebar: hot questions ---------- */
.hot-q-list { display: flex; flex-direction: column; gap: 14px; }
.hot-q-item { display: flex; align-items: flex-start; gap: 11px; }
.hot-q-item a { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.5; }
.hot-q-item a:hover { color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
    .q-card { padding: 24px 20px; }
    .q-card h1 { font-size: 21px; }
    .ans-body { padding: 20px 18px; }
    .ans-header { padding: 16px 18px; }
    .faq-group .faq-question { padding: 15px 16px; }
    .faq-answer-inner { padding: 0 16px 18px 16px; }
    .qa-row { flex-wrap: wrap; }
    .qa-row-link { margin-left: 48px; }
}
