/* faq.css FAQ 中心（与全站 1120px 容器一致的宽版布局） */

/* 搜索框 */
.faq-search-wrap { max-width: 640px; margin: 0 auto; }
.faq-search { width: 100%; padding: 13px 20px; border: 1px solid var(--c-line); border-radius: 999px; outline: none; font-size: 15px; box-shadow: var(--shadow); }
.faq-search:focus { border-color: var(--c-blue); }

/* 分类 chips 行 */
.faq-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.chip-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: 12px; line-height: 18px; text-align: center; background: rgba(0,0,0,.06); margin-left: 2px; }
.tab-btn.active .chip-count { background: rgba(255,255,255,.25); }

/* 双栏布局：侧栏分类 + 问答列表 */
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; margin-top: 28px; }
.faq-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.faq-side-title { font-size: 15px; margin-bottom: 12px; }
.faq-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.faq-cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--radius-m); font-size: 14px; color: var(--c-text); text-decoration: none; transition: background .15s ease, color .15s ease; }
.faq-cat-list a:hover { background: var(--c-bg-soft, #f5f7fa); }
.faq-cat-list a.active { background: var(--c-blue); color: #fff; }
.faq-cat-list a.active .chip-count { background: rgba(255,255,255,.22); }
.faq-side-cta { padding: 20px; }

/* 问答手风琴 */
.faq-main .acc-item .acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; }
.acc-q { flex: 1; }
.acc-item.pinned { border-color: var(--c-accent); }

/* 空态 */
#faqEmpty { margin-top: 0; }

/* 响应式：窄屏侧栏变为横向滚动 chips */
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .faq-cat-list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .faq-cat-list li { flex-shrink: 0; }
  .faq-cat-list a { white-space: nowrap; border: 1px solid var(--c-line); }
  .faq-side-cta { text-align: center; }
}
