.page-faq {
  --faq-rail: 216px;
  --faq-anchor-offset: calc(var(--shell-top) + 84px);
  display: block;
  background: var(--abyss);
}

/* ===== 首屏 ===== */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 74px) 0 clamp(38px, 7vw, 86px);
  background:
    radial-gradient(120% 140% at 86% -12%, rgba(139, 92, 246, .30), transparent 58%),
    radial-gradient(92% 130% at 2% 112%, rgba(43, 227, 214, .15), transparent 62%),
    var(--abyss);
  border-bottom: 1px solid var(--hair);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 34, 70, .58) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 34, 70, .58) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .5;
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -1px;
  height: 48%;
  background: linear-gradient(104deg, rgba(255, 122, 24, .20) 0%, rgba(139, 92, 246, .18) 46%, rgba(43, 227, 214, .04) 70%, transparent 86%);
  clip-path: polygon(0 100%, 100% 6%, 100% 100%);
  pointer-events: none;
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: end;
}

.page-faq .faq-hero h1 {
  margin: 10px 0 0;
  max-width: 17em;
  font-family: var(--font-display);
  font-size: clamp(29px, 6.6vw, 54px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.012em;
  color: var(--white);
  text-wrap: balance;
}

.page-faq .faq-hero h1 span {
  display: inline-block;
  color: var(--gold-hi);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 2px;
}

.page-faq .faq-hero__lead {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

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

.page-faq .faq-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

.page-faq .faq-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 12px 16px;
  background: rgba(27, 18, 48, .9);
}

.page-faq .faq-stat__num {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4.6vw, 27px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold-hi);
}

.page-faq .faq-stat__unit {
  margin-left: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--mist);
}

.page-faq .faq-stat__label {
  font-size: 12px;
  line-height: 1.55;
  color: var(--mist);
}

/* ===== 骨架 ===== */
.page-faq .faq-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(22px, 4.4vw, 54px) 0 clamp(48px, 7vw, 92px);
}

/* ===== 分类锚点 ===== */
.page-faq .faq-nav {
  position: sticky;
  top: var(--shell-top);
  z-index: 3;
  padding: 8px 0 10px;
  background: linear-gradient(180deg, var(--abyss) 0%, rgba(10, 7, 19, .94) 74%, rgba(10, 7, 19, 0) 100%);
  border-bottom: 1px solid var(--hair-soft);
}

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

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

.page-faq .faq-nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: rgba(19, 12, 34, .7);
  font-size: 14px;
  line-height: 1.3;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-faq .faq-nav__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--purple-glow);
}

.page-faq .faq-nav__link:hover {
  color: var(--white);
  border-color: var(--purple-glow);
  background: rgba(139, 92, 246, .14);
}

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

/* ===== 问答流 ===== */
.page-faq .faq-flow {
  min-width: 0;
}

.page-faq .faq-block {
  scroll-margin-top: var(--faq-anchor-offset);
  padding-bottom: clamp(28px, 4.4vw, 52px);
}

.page-faq .faq-block + .faq-block {
  border-top: 1px solid var(--hair);
  padding-top: clamp(26px, 4vw, 46px);
}

.page-faq .faq-block__head h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 3.6vw, 30px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.006em;
  color: var(--white);
}

.page-faq .faq-block__sub {
  margin: 10px 0 14px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-faq .faq-block .hairline {
  display: block;
}

/* ===== 三步 ===== */
.page-faq .faq-steps {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
}

.page-faq .faq-step {
  position: relative;
  padding: 18px 18px 20px;
  border: 1px solid var(--hair);
  background:
    linear-gradient(160deg, rgba(139, 92, 246, .12) 0%, rgba(139, 92, 246, 0) 58%),
    var(--zone);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-faq .faq-step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-faq .faq-step__title {
  margin: 10px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
}

.page-faq .faq-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--mist);
}

/* ===== 配图 ===== */
.page-faq .faq-figure {
  margin: 26px 0 8px;
}

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

.page-faq .faq-figure figcaption {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
}

/* ===== 折叠问答 ===== */
.page-faq .faq-list {
  margin-top: 22px;
}

.page-faq .faq-item {
  border: 1px solid var(--hair);
  border-left: 3px solid var(--hair);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-faq .faq-item + .faq-item {
  margin-top: 10px;
}

.page-faq .faq-item[open] {
  border-left-color: var(--gold);
  background:
    linear-gradient(96deg, rgba(255, 122, 24, .09) 0%, rgba(27, 18, 48, 0) 62%),
    var(--panel);
}

.page-faq .faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
}

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

.page-faq .faq-item summary:hover .faq-item__text {
  color: var(--purple-glow);
}

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

.page-faq .faq-q {
  flex: none;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--gold-hi);
}

.page-faq .faq-item[open] .faq-q {
  color: var(--gold);
}

.page-faq .faq-item__text {
  flex: 1 1 auto;
  min-width: 0;
  transition: color .2s var(--ease);
}

.page-faq .faq-mark {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin: 5px 0 0 auto;
}

.page-faq .faq-mark::before,
.page-faq .faq-mark::after {
  content: "";
  position: absolute;
  background: var(--purple-glow);
  transition: transform .2s var(--ease);
}

.page-faq .faq-mark::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}

.page-faq .faq-mark::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
}

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

.page-faq .faq-item[open] .faq-mark::before {
  background: var(--gold-hi);
}

.page-faq .faq-a {
  padding: 0 18px 16px 58px;
}

.page-faq .faq-a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

/* ===== 联系方式卡片 ===== */
.page-faq .faq-contact {
  margin-top: 22px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--gold);
  background:
    linear-gradient(100deg, rgba(255, 122, 24, .12) 0%, rgba(19, 12, 34, 0) 70%),
    var(--zone);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-faq .faq-contact__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mist);
}

.page-faq .faq-contact__mail {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(14px, 3.6vw, 18px);
  letter-spacing: -.01em;
  color: var(--gold-hi);
  word-break: break-all;
}

.page-faq .faq-contact__note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-faq .faq-copy {
  align-self: flex-start;
}

/* ===== 相关入口 ===== */
.page-faq .faq-next {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

.page-faq .faq-next__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--zone);
  text-decoration: none;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.page-faq .faq-next__link:hover {
  background: rgba(139, 92, 246, .14);
  box-shadow: inset 2px 0 0 var(--purple-glow);
}

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

.page-faq .faq-next__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.page-faq .faq-next__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

/* ===== 中等宽度 ===== */
@media (min-width: 620px) {
  .page-faq .faq-next {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-faq .faq-contact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-faq .faq-copy {
    align-self: center;
  }
}

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

  .page-faq .faq-a {
    padding-right: 26px;
  }
}

/* ===== 桌面双栏 ===== */
@media (min-width: 900px) {
  .page-faq .faq-hero__inner {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }

  .page-faq .faq-shell {
    grid-template-columns: var(--faq-rail) minmax(0, 1fr);
    gap: clamp(28px, 3.4vw, 58px);
    align-items: start;
  }

  .page-faq .faq-nav {
    position: sticky;
    top: var(--faq-anchor-offset);
    border-bottom: 0;
    border-left: 1px solid var(--hair);
    background: none;
    padding: 0 0 0 18px;
    max-height: calc(100vh - var(--faq-anchor-offset) - 20px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

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

  .page-faq .faq-nav__link {
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    background: none;
    padding: 9px 12px;
    white-space: normal;
  }

  .page-faq .faq-nav__link:hover {
    border-left-color: var(--purple-glow);
    background: rgba(139, 92, 246, .1);
  }

  .page-faq .faq-figure {
    margin-top: 30px;
  }
}

/* ===== 动效降级 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-item__text,
  .page-faq .faq-mark::before,
  .page-faq .faq-mark::after,
  .page-faq .faq-nav__link,
  .page-faq .faq-next__link {
    transition: none;
  }
}
