/* 常见问题：版式沿用官网页（居中标题 + 分类、浅色正文），问答用 <details> 折叠。
   01 首屏 / 02 分类 / 03 问答列表 / 04 内容说明 / 05 响应式。 */
.faq-page { background: var(--background); }

/* ===== 01 · 首屏：与新闻中心、关于我们同一深色语言 ===== */
.faq-banner {
  position: relative;
  overflow: hidden;
  padding: calc(var(--site-header-height) + 72px) 32px 88px;
  color: #f5f5f6;
  background: var(--dark);
  text-align: center;
}
.faq-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(48% 90% at 50% 0%, #0d3a25 0%, #08160f 48%, transparent 78%);
  pointer-events: none;
}
.faq-banner > * { position: relative; }
.faq-banner h1 {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.045em;
}
.faq-intro {
  max-width: 700px;
  margin: 28px auto 0;
  color: #a9b0b6;
  font-size: 16px;
  line-height: 1.85;
}

/* ===== 02 · 分类：浅色描边胶囊，点击跳到对应分组 ===== */
.faq-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.faq-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 20px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  color: #cfd4d8;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color .25s, color .25s, background .25s;
}
.faq-toc a:hover,
.faq-toc a:focus-visible {
  border-color: var(--brand-light);
  color: var(--dark);
  background: var(--brand-light);
}

/* ===== 03 · 问答：分组标题 + 细线分隔的折叠条目 ===== */
.faq-page main { background: var(--background); }
.faq-group {
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding: 96px 0 0;
}
.faq-group:first-of-type { padding-top: 104px; }
.faq-group h2 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.03em;
}
.faq-list { margin-top: 16px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0;
  color: var(--foreground);
  cursor: pointer;
  list-style: none;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-question {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -.01em;
}
/* 右侧加号：展开时旋转 45° 变成叉号。 */
.faq-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted-foreground);
  transition: transform .3s var(--ease), color .25s, border-color .25s;
}
.faq-item summary:hover .faq-icon { border-color: var(--accent-dark); color: var(--accent-dark); }
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}
.faq-answer { padding: 0 44px 8px 0; }
.faq-answer p {
  margin: 0 0 14px;
  max-width: 72ch;
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
}
.faq-answer p:last-child { margin-bottom: 22px; }

/* ===== 04 · 内容说明：与页脚之间的收尾声明 ===== */
.faq-note {
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding: 56px 0 104px;
}
.faq-note p {
  margin: 0;
  color: #8b9198;
  font-size: 13px;
  line-height: 1.85;
}
.faq-note-meta { margin-top: 10px !important; color: #9aa0a6 !important; }

/* 英文版：拉丁字母不必像中文那样压字距，行高略收，阅读更舒展。 */
.is-en .faq-banner h1 { letter-spacing: -.03em; }
.is-en .faq-intro { max-width: 760px; line-height: 1.75; }
.is-en .faq-question { letter-spacing: 0; }
.is-en .faq-answer p { line-height: 1.75; }

/* ===== 05 · 响应式 ===== */
@media (max-width: 760px) {
  .faq-banner { padding: calc(var(--site-header-height) + 48px) 24px 64px; }
  .faq-intro { font-size: 15px; line-height: 1.8; }
  .faq-toc { gap: 8px; margin-top: 28px; }
  .faq-toc a { min-height: 36px; padding: 6px 14px; font-size: 14px; }
  .faq-group { width: calc(100% - 40px); padding-top: 64px; }
  .faq-group:first-of-type { padding-top: 72px; }
  .faq-item summary { gap: 16px; padding: 22px 0; }
  .faq-question { font-size: 17px; }
  .faq-icon { width: 26px; height: 26px; }
  .faq-answer { padding-right: 0; }
  .faq-answer p { font-size: 15px; line-height: 1.8; }
  .faq-note { width: calc(100% - 40px); padding: 48px 0 72px; }
}
