/* ==========================================================================
   FAQ 页面样式
   ========================================================================== */

/* ---------- 返回链接（与文章页一致） ---------- */
.art-back {
  display: inline-block; font-size: 13px; color: var(--muted);
  text-decoration: none; margin-bottom: 28px;
  transition: color .18s var(--ease);
}
.art-back:hover { color: var(--accent); }

/* ---------- 首屏 ---------- */
.faq-hero {
  padding: 140px 0 56px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F7 100%);
  border-bottom: 1px solid var(--line);
}
.faq-hero__eyebrow {
  display: block; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.faq-hero__title {
  font-size: clamp(36px, 6vw, 68px); line-height: 1.18;
  letter-spacing: -.045em; font-weight: 650; color: var(--ink);
  margin: 0 0 20px;
}
.faq-hero__sub {
  font-size: clamp(15px, 1.6vw, 17px); line-height: 1.85;
  color: var(--ink-2); margin: 0 0 36px; max-width: 32em;
}

.faq-search {
  position: relative; max-width: 560px;
  display: flex; align-items: center;
}
.faq-search svg {
  position: absolute; left: 18px; color: var(--muted); pointer-events: none;
}
.faq-search input {
  width: 100%; padding: 15px 18px 15px 48px;
  font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 980px;
  outline: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  font-family: inherit;
}
.faq-search input::placeholder { color: #A1A1A6; }
.faq-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .1);
}

/* ---------- 列表区 ---------- */
.faq-sec { padding: 56px 0 96px; }
.faq-body { max-width: 820px; }

.faq-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
}
.faq-filters button {
  padding: 8px 18px; font-size: 13.5px; font-family: inherit;
  color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 980px;
  cursor: pointer; transition: all .16s var(--ease);
}
.faq-filters button:hover { border-color: var(--accent); color: var(--accent); }
.faq-filters button.is-on {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.faq-cat {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin: 44px 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.faq-cat:first-child { margin-top: 0; }

/* ---------- 单条问答 ---------- */
.qa {
  border-bottom: 1px solid var(--line);
}
.qa__q {
  width: 100%; display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 0; background: none; border: 0; text-align: left;
  cursor: pointer; font-family: inherit; color: var(--ink);
  transition: color .16s var(--ease);
}
.qa__q:hover { color: var(--accent); }
.qa__n {
  flex: none; font-size: 12px; letter-spacing: .08em; font-weight: 600;
  color: var(--muted); padding-top: 4px; width: 22px;
}
.qa__t {
  flex: 1; font-size: 17px; line-height: 1.55; font-weight: 500;
}
.qa__ico {
  flex: none; width: 20px; height: 20px; margin-top: 3px; position: relative;
}
.qa__ico::before, .qa__ico::after {
  content: ""; position: absolute; background: currentColor;
  top: 50%; left: 50%; border-radius: 1px;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.qa__ico::before { width: 12px; height: 1.6px; transform: translate(-50%, -50%); }
.qa__ico::after {
  width: 1.6px; height: 12px; transform: translate(-50%, -50%);
}
.qa.is-open .qa__ico::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.qa__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .26s var(--ease);
}
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p {
  margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: var(--ink-2);
  padding-left: 38px;
}
.qa__a p:last-child { margin-bottom: 26px; }
.qa__a strong { color: var(--ink); font-weight: 600; }
.qa__a a { color: var(--accent); text-decoration: none; }
.qa__a a:hover { text-decoration: underline; }

/* 搜索命中高亮 */
.qa mark {
  background: rgba(0, 113, 227, .14); color: inherit;
  border-radius: 2px; padding: 0 1px;
}

.faq-empty {
  padding: 48px 0; text-align: center; font-size: 15px; color: var(--muted);
}
.faq-empty a { color: var(--accent); }

/* ---------- 收尾 ---------- */
.faq-end {
  margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line);
  text-align: center;
}
.faq-end h2 {
  font-size: clamp(22px, 2.8vw, 28px); letter-spacing: -.03em;
  color: var(--ink); margin: 0 0 12px;
}
.faq-end p {
  font-size: 15px; line-height: 1.8; color: var(--muted);
  margin: 0 0 28px;
}
.faq-end .btn-row { justify-content: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .faq-hero { padding: 108px 0 44px; }
  .faq-sec { padding: 40px 0 72px; }
  .faq-filters { gap: 6px; margin-bottom: 28px; }
  .faq-filters button { padding: 7px 14px; font-size: 12.5px; }
  .qa__q { padding: 18px 0; gap: 12px; }
  .qa__t { font-size: 15.5px; }
  .qa__a p { padding-left: 0; font-size: 14.5px; }
  .qa__n { width: 18px; font-size: 11px; }
}
