.page-faq {
  position: relative;
  padding-bottom: clamp(48px, 7vw, 92px);
  background:
    radial-gradient(760px 420px at 8% -80px, rgba(168, 85, 247, .16), transparent 66%),
    radial-gradient(620px 340px at 102% 160px, rgba(58, 199, 245, .08), transparent 62%);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 3.5vw, 42px);
  border-bottom: 1px solid var(--hairline);
}

.page-faq .faq-hero__grid {
  display: grid;
  gap: clamp(22px, 4vw, 48px);
}

.page-faq .faq-hero__title {
  margin: 14px 0 0;
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.page-faq .faq-hero__lead-text {
  margin: 20px 0 0;
  max-width: 40em;
}

.page-faq .faq-hero__aside {
  border-left: 2px solid var(--neon);
  padding: 4px 0 4px 18px;
}

.page-faq .faq-hero__hint {
  margin: 0;
  max-width: 26em;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-faq .faq-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}

.page-faq .faq-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(23, 18, 40, .72);
  font-size: .82rem;
  color: var(--text-secondary);
}

.page-faq .faq-stat .mono {
  color: var(--neon);
  font-weight: 700;
}

/* ---------- 主体双栏 ---------- */
.page-faq .faq-body {
  display: grid;
  gap: clamp(26px, 4vw, 56px);
  padding-top: clamp(30px, 5vw, 60px);
}

.page-faq .faq-index {
  min-width: 0;
}

.page-faq .faq-index__head {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-faq .faq-index__list {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-faq .faq-index__list::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-index__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}

.page-faq .faq-index__link:hover,
.page-faq .faq-index__link:focus-visible {
  color: var(--text-primary);
  background: rgba(168, 85, 247, .1);
  border-left-color: var(--neon);
  outline: none;
}

.page-faq .faq-index__num {
  color: var(--neon);
  font-size: .76rem;
  font-weight: 700;
}

/* ---------- 章节 ---------- */
.page-faq .faq-list {
  min-width: 0;
}

.page-faq .faq-chapter {
  scroll-margin-top: calc(var(--header-h) + 26px);
}

.page-faq .faq-chapter + .faq-chapter,
.page-faq .faq-chapter + .faq-flow,
.page-faq .faq-flow + .faq-chapter {
  margin-top: clamp(40px, 6vw, 74px);
}

.page-faq .faq-chapter__head {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  transition: border-color .2s var(--ease);
}

.page-faq .faq-chapter__num {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--neon);
}

.page-faq .faq-chapter__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-primary);
}

.page-faq .faq-chapter__note {
  margin: 0;
  max-width: 34em;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-faq .faq-chapter:target .faq-chapter__head {
  border-bottom-color: var(--neon);
}

.page-faq .faq-chapter:target .faq-chapter__title {
  color: var(--violet-soft);
}

/* ---------- 折叠问答 ---------- */
.page-faq .faq-chapter__items {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.page-faq .faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(23, 18, 40, .88), rgba(14, 11, 26, .74));
  overflow: hidden;
  transition: border-color .18s var(--ease);
}

.page-faq .faq-item[open] {
  border-color: rgba(168, 85, 247, .48);
}

.page-faq .faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  transition: background-color .16s var(--ease);
}

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

.page-faq .faq-item__q:hover {
  background: rgba(168, 85, 247, .07);
}

.page-faq .faq-item__q:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: -2px;
}

.page-faq .faq-item__text {
  flex: 1 1 auto;
  min-width: 0;
}

.page-faq .faq-item__icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 5px;
}

.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--neon);
  border-radius: 2px;
}

.page-faq .faq-item__icon::before {
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
}

.page-faq .faq-item__icon::after {
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.page-faq .faq-item[open] .faq-item__icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.page-faq .faq-item__a {
  padding: 14px 18px 18px;
  border-top: 1px dashed rgba(43, 35, 68, .95);
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.85;
}

.page-faq .faq-item__a p {
  margin: 0;
}

.page-faq .faq-item__a .mono {
  color: var(--text-primary);
  font-weight: 700;
}

.page-faq .faq-item__a a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 图像 ---------- */
.page-faq .faq-figure {
  margin: clamp(26px, 4vw, 42px) 0 0;
}

.page-faq .faq-flow {
  margin: clamp(36px, 5vw, 64px) 0 0;
}

.page-faq .media-frame {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--slate);
  box-shadow: var(--shadow-card);
}

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

.page-faq .media-frame__grid {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(to right, rgba(43, 35, 68, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 35, 68, .55) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-faq .media-frame__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: rgba(7, 6, 13, .76);
  color: var(--text-secondary);
  font-size: .8rem;
  line-height: 1.6;
}

/* ---------- 查询步骤 ---------- */
.page-faq .faq-flow__steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

.page-faq .faq-flow__step {
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: rgba(14, 11, 26, .74);
  color: var(--text-secondary);
  font-size: .84rem;
  line-height: 1.65;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-faq .faq-flow__step:hover,
.page-faq .faq-flow__step:focus-within {
  border-color: rgba(58, 199, 245, .5);
  transform: translateY(-2px);
}

.page-faq .faq-flow__step .mono {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
}

/* ---------- 收尾色带 ---------- */
.page-faq .faq-cta {
  margin-top: clamp(52px, 8vw, 100px);
  padding: clamp(38px, 6vw, 72px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background:
    linear-gradient(118deg, rgba(76, 29, 149, .62), rgba(14, 11, 26, .92) 64%),
    var(--ink);
}

.page-faq .faq-cta__inner {
  display: grid;
  gap: 18px;
}

.page-faq .faq-cta__title {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.page-faq .faq-cta__text {
  margin: 0;
  max-width: 36em;
  color: var(--text-secondary);
  line-height: 1.85;
}

.page-faq .faq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- 断点 ---------- */
@media (max-width: 899px) {
  .page-faq .faq-hero__aside {
    border-left: 0;
    border-top: 1px solid var(--hairline);
    padding: 18px 0 0;
  }
}

@media (min-width: 700px) {
  .page-faq .faq-flow__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .page-faq .faq-cta__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    column-gap: 48px;
  }
}

@media (min-width: 1000px) {
  .page-faq .faq-body {
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: start;
  }

  .page-faq .faq-index {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }

  .page-faq .faq-index__list {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
    gap: 2px;
  }

  .page-faq .faq-index__link {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-index__link,
  .page-faq .faq-item,
  .page-faq .faq-item__q,
  .page-faq .faq-item__icon::after,
  .page-faq .faq-flow__step {
    transition: none;
  }

  .page-faq .faq-flow__step:hover,
  .page-faq .faq-flow__step:focus-within {
    transform: none;
  }
}
