/* ===== 帮助中心 · 页面专属样式（作用域 .page-faq） ===== */

.page-faq {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-faq img {
  max-width: 100%;
  height: auto;
}

.page-faq .section__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--green);
  margin: 0 0 8px;
}

.page-faq .section__title {
  font-size: clamp(21px, 4.2vw, 32px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- 首屏 ---------- */

.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 54px) 0 clamp(28px, 6vw, 62px);
  background: var(--bg);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: -20% -18% auto -18%;
  height: 160%;
  background: linear-gradient(118deg,
    transparent 36%,
    rgba(47, 107, 87, 0.32) 36%,
    rgba(16, 42, 34, 0.9) 63%,
    transparent 63%);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--green) 0 16px, transparent 16px 34px);
  opacity: 0.45;
}

.page-faq .faq-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.page-faq .faq-hero__grid > *,
.page-faq .faq-block__head > * {
  min-width: 0;
}

.page-faq .faq-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--green);
  margin: 0 0 12px;
}

.page-faq .faq-hero__lead h1 {
  font-size: clamp(29px, 8vw, 54px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 20ch;
  overflow-wrap: break-word;
}

.page-faq .faq-hero__intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
  margin: 0 0 22px;
  max-width: 45ch;
}

.page-faq .faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-faq .faq-board {
  border: 1px solid var(--line);
  background-color: var(--surface);
  background-image: repeating-linear-gradient(135deg, rgba(47, 107, 87, 0.22) 0 2px, transparent 2px 14px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.42);
  padding: 16px 16px 6px;
  margin: 0;
}

.page-faq .faq-board__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.page-faq .faq-board__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .faq-board__list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(47, 107, 87, 0.45);
}

.page-faq .faq-board__list li:last-child {
  border-bottom: 0;
  padding-bottom: 16px;
}

.page-faq .faq-board__n {
  font-family: var(--font-mono);
  font-size: clamp(28px, 6.4vw, 40px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold);
}

.page-faq .faq-board__u {
  font-size: 13px;
  color: var(--white);
  margin-left: 6px;
}

.page-faq .faq-board__l {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- 章节通用 ---------- */

.page-faq .faq-block {
  position: relative;
  padding: clamp(30px, 6vw, 62px) 0;
  border-bottom: 1px solid rgba(47, 107, 87, 0.38);
}

.page-faq .faq-block--narrow > .container {
  max-width: 880px;
}

.page-faq .faq-block__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 4px;
}

.page-faq .faq-block__lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
  margin: 12px 0 0;
  max-width: 52ch;
}

/* ---------- 图 ---------- */

.page-faq .faq-figure {
  margin: 0;
  border: 1px solid var(--line);
  background-color: var(--surface);
  background-image: repeating-linear-gradient(135deg, rgba(47, 107, 87, 0.24) 0 2px, transparent 2px 12px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.36);
}

.page-faq .faq-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq .faq-figure figcaption {
  padding: 9px 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  background: var(--surface-2);
}

.page-faq .faq-figure--wide {
  margin-bottom: 24px;
}

/* ---------- 问答折叠列表 ---------- */

.page-faq .qa-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.page-faq .qa {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding-left: 14px;
  overflow: hidden;
}

.page-faq .qa::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--line);
  transition: background-color 0.22s ease;
}

.page-faq .qa[open]::before {
  background: var(--green);
}

.page-faq .qa__q {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 14px 14px 14px 8px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-faq .qa__q::-webkit-details-marker {
  display: none;
}

.page-faq .qa__q:hover {
  background: var(--surface-2);
  color: var(--green);
}

.page-faq .qa__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1.95;
}

.page-faq .qa__mark {
  position: relative;
  width: 14px;
  height: 14px;
  align-self: center;
  flex: none;
}

.page-faq .qa__mark::before,
.page-faq .qa__mark::after {
  content: "";
  position: absolute;
  background: var(--green);
  border-radius: 1px;
}

.page-faq .qa__mark::before {
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
}

.page-faq .qa__mark::after {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  transition: transform 0.2s ease;
}

.page-faq .qa[open] .qa__mark::after {
  transform: scaleY(0);
}

.page-faq .qa__a {
  padding: 12px 14px 16px 30px;
  border-top: 1px dashed rgba(47, 107, 87, 0.55);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.82;
}

.page-faq .qa__a p {
  margin: 0 0 10px;
}

.page-faq .qa__a p:last-child {
  margin-bottom: 0;
}

.page-faq .qa__a strong {
  color: var(--white);
  font-weight: 700;
}

.page-faq .qa__a a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
}

/* ---------- 三步自查流程条 ---------- */

.page-faq .faq-steps {
  position: relative;
  padding: clamp(28px, 5vw, 54px) 0;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(90deg, rgba(47, 107, 87, 0.16) 0 1px, transparent 1px 76px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.page-faq .faq-steps h2 {
  font-size: clamp(20px, 3.9vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 8px;
}

.page-faq .faq-steps__lead {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.page-faq .stepbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.page-faq .stepbar__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 14px 16px 16px;
}

.page-faq .stepbar__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 8px;
}

.page-faq .stepbar__item h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.page-faq .stepbar__item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.page-faq .stepbar__arrow {
  width: 26px;
  height: 26px;
  justify-self: center;
  align-self: center;
  color: var(--green);
  transform: rotate(90deg);
}

/* ---------- 底部行动 ---------- */

.page-faq .faq-cta {
  padding: clamp(34px, 6vw, 66px) 0;
  background: var(--bg);
}

.page-faq .faq-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.42);
}

.page-faq .faq-cta h2 {
  font-size: clamp(20px, 3.7vw, 28px);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 10px;
}

.page-faq .faq-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 56ch;
  overflow-wrap: break-word;
}

.page-faq .faq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 820px) {
  .page-faq .stepbar {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr);
    align-items: stretch;
  }

  .page-faq .stepbar__arrow {
    transform: none;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 44px;
    align-items: end;
  }

  .page-faq .faq-block--split .faq-block__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: start;
  }

  .page-faq .faq-cta__inner {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: center;
  }

  .page-faq .faq-cta__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 559px) {
  .page-faq .qa__q {
    font-size: 15px;
    gap: 8px;
  }

  .page-faq .qa__a {
    padding-left: 16px;
  }

  .page-faq .faq-hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .page-faq .faq-board {
    padding: 14px 14px 4px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.42);
  }
}
