/* FAQ 检索与分类 —— 仅常见问题页使用 */
.faq-tools {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px 16px; margin-bottom: 24px;
}
.faq-search { position: relative; display: flex; align-items: center; }
.faq-search svg {
  position: absolute; left: 16px; width: 20px; height: 20px; pointer-events: none;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
}
.faq-search input {
  width: 100%; height: 48px; padding: 0 46px 0 46px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft);
  color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.faq-search input:focus {
  border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(224,120,40,.12);
}
.faq-search input::placeholder { color: #93a3b6; }
.faq-search input::-webkit-search-cancel-button { display: none; }
.faq-clear {
  position: absolute; right: 12px; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: #e8edf4; color: #5a6b80;
  font-size: 20px; line-height: 1; cursor: pointer; visibility: hidden;
}
.faq-clear.show { visibility: visible; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.faq-cats button {
  font-size: 13px; color: var(--navy); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 20px; padding: 7px 14px;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.faq-cats button span { font-size: 12px; color: var(--muted); margin-left: 3px; }
.faq-cats button:hover { border-color: var(--navy); background: #fff; }
.faq-cats button.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.faq-cats button.on span { color: #cfe0f2; }
.faq-count { margin-top: 13px; font-size: 13px; color: var(--muted); }
.faq-empty {
  background: #fff; border: 1px dashed var(--border); border-radius: 10px;
  padding: 32px; text-align: center; color: var(--muted); font-size: 15px;
}
.faq-empty[hidden] { display: none; }
@media (max-width: 600px) {
  .faq-tools { padding: 16px; }
  .faq-search input { font-size: 14px; height: 46px; }
  .faq-cats button { font-size: 12px; padding: 6px 11px; }
}
