.page-faq {
  background: var(--space-ink);
  color: var(--star-white);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px) 0 clamp(32px, 4vw, 56px);
  background:
    radial-gradient(120% 110% at 92% -10%, rgba(108, 75, 244, 0.34), transparent 62%),
    radial-gradient(90% 90% at 4% 108%, rgba(51, 225, 224, 0.16), transparent 64%),
    linear-gradient(160deg, #0B1226 0%, #05070F 74%);
  border-bottom: 1px solid var(--orbit-blue);
}

.page-faq .faq-hero__inner {
  max-width: var(--maxw);
}

.page-faq .faq-hero .breadcrumb {
  margin-bottom: clamp(24px, 4vw, 44px);
}

.page-faq .faq-hero__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--electric-cyan);
}

.page-faq .faq-hero h1 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #F5F7FF 32%, #7FC4EA 78%, #33E1E0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-faq .faq-hero__lead {
  margin: clamp(16px, 2.5vw, 24px) 0 0;
  max-width: 58ch;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--star-grey);
}

.page-faq .faq-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--orbit-blue);
}

.page-faq .faq-stats__num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--amber);
}

.page-faq .faq-stats__label {
  font-size: var(--fs-note);
  line-height: var(--lh-note);
  color: var(--star-grey);
}

/* ---------- 主体：索引 + 问答轨道 ---------- */
.page-faq .faq-body {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.page-faq .faq-index__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--star-grey);
}

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

.page-faq .faq-index__item {
  flex: 0 0 auto;
}

.page-faq .faq-index__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--orbit-blue);
  border-radius: 999px;
  font-size: var(--fs-note);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--star-grey);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.page-faq .faq-index__link:hover,
.page-faq .faq-index__link:focus-visible {
  color: var(--star-white);
  border-color: var(--electric-cyan);
  background: rgba(51, 225, 224, 0.08);
}

.page-faq .faq-index__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--electric-cyan);
}

.page-faq .faq-groups {
  display: grid;
  gap: clamp(22px, 3.5vw, 40px);
  min-width: 0;
}

/* ---------- 分类分组 ---------- */
.page-faq .faq-group {
  --faq-accent: var(--electric-cyan);
  position: relative;
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(27, 42, 85, 0.9);
  background: linear-gradient(160deg, rgba(16, 26, 56, 0.92) 0%, rgba(6, 9, 20, 0.86) 100%);
  scroll-margin-top: 92px;
}

.page-faq #faq-start {
  --faq-accent: #33E1E0;
  background: linear-gradient(158deg, rgba(11, 18, 38, 0.95) 0%, rgba(6, 9, 20, 0.85) 100%);
}

.page-faq #faq-data {
  --faq-accent: #FFB03A;
  background: linear-gradient(158deg, rgba(16, 26, 56, 0.95) 0%, rgba(8, 12, 28, 0.88) 100%);
}

.page-faq #faq-account {
  --faq-accent: #7FC4EA;
  background: linear-gradient(158deg, rgba(14, 44, 40, 0.82) 0%, rgba(8, 14, 30, 0.88) 100%);
}

.page-faq #faq-contact {
  --faq-accent: #6C4BF4;
  background: linear-gradient(158deg, rgba(58, 16, 48, 0.72) 0%, rgba(8, 12, 28, 0.9) 100%);
}

.page-faq .faq-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(22px, 3.4vw, 40px);
  width: 56px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--faq-accent);
}

.page-faq .faq-group__head {
  margin-bottom: clamp(10px, 1.6vw, 18px);
}

.page-faq .faq-group__num {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.16em;
  color: var(--faq-accent);
}

.page-faq .faq-group__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.28;
  color: var(--star-white);
  max-width: 26ch;
}

.page-faq .faq-group__desc {
  margin: 10px 0 0;
  font-size: var(--fs-note);
  line-height: var(--lh-note);
  color: var(--star-grey);
}

/* ---------- 问答折叠 ---------- */
.page-faq .faq-group__list {
  counter-reset: faqitem;
  margin-top: clamp(6px, 1.4vw, 14px);
}

.page-faq .qa {
  counter-increment: faqitem;
  border-bottom: 1px solid rgba(27, 42, 85, 0.85);
}

.page-faq .qa:first-child {
  border-top: 1px solid rgba(27, 42, 85, 0.85);
}

.page-faq .qa__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--star-white);
  transition: color 0.25s var(--ease);
}

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

.page-faq .qa__q:hover,
.page-faq .qa__q:focus-visible {
  color: var(--faq-accent);
}

.page-faq .qa__idx {
  flex: 0 0 auto;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.06em;
  color: var(--faq-accent);
  opacity: 0.85;
}

.page-faq .qa__idx::before {
  content: counter(faqitem, decimal-leading-zero);
}

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

.page-faq .qa__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.page-faq .qa__icon::before,
.page-faq .qa__icon::after {
  content: "";
  position: absolute;
  background: var(--faq-accent);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.page-faq .qa__icon::before {
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
}

.page-faq .qa__icon::after {
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
}

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

.page-faq .qa[open] .qa__q {
  color: var(--star-white);
}

.page-faq .qa__a {
  padding: 0 0 18px 32px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--star-grey);
}

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

.page-faq .qa__a a {
  color: var(--electric-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-faq .qa__a a:hover,
.page-faq .qa__a a:focus-visible {
  color: var(--amber);
}

/* ---------- 章节配图 ---------- */
.page-faq .faq-figure {
  margin: clamp(20px, 3vw, 30px) 0 0;
}

/* ---------- 底部客服光带 ---------- */
.page-faq .faq-cta {
  padding: 0 0 clamp(56px, 8vw, 104px);
}

.page-faq .faq-cta__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.4vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51, 225, 224, 0.26);
  background: linear-gradient(118deg, rgba(108, 75, 244, 0.3) 0%, rgba(51, 225, 224, 0.14) 52%, rgba(255, 176, 58, 0.12) 100%);
}

.page-faq .faq-cta__inner::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -60%;
  width: 62%;
  height: 150%;
  background: radial-gradient(circle at 50% 50%, rgba(51, 225, 224, 0.22), transparent 68%);
  transform: rotate(-14deg);
  pointer-events: none;
}

.page-faq .faq-cta__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.18em;
  color: var(--star-white);
  opacity: 0.82;
}

.page-faq .faq-cta__title {
  position: relative;
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3.2vw, 32px);
  line-height: 1.3;
  color: var(--star-white);
}

.page-faq .faq-cta__desc {
  position: relative;
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: var(--fs-note);
  line-height: var(--lh-note);
  color: var(--star-grey);
}

.page-faq .faq-cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 30px);
}

/* ---------- 桌面端栅格与粘性索引 ---------- */
@media (min-width: 700px) {
  .page-faq .faq-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .page-faq .faq-index {
    position: sticky;
    top: 92px;
  }

  .page-faq .faq-index__list {
    display: block;
    overflow: visible;
    padding: 2px 0 2px 24px;
    position: relative;
  }

  .page-faq .faq-index__list::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--nebula-purple), var(--electric-cyan));
  }

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

  .page-faq .faq-index__link {
    position: relative;
    display: flex;
    border: 0;
    border-radius: 0;
    padding: 11px 0;
    background: none;
    font-size: 15px;
    white-space: normal;
  }

  .page-faq .faq-index__link::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 17px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--space-ink);
    border: 2px solid var(--orbit-blue);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  }

  .page-faq .faq-index__link:hover::before,
  .page-faq .faq-index__link:focus-visible::before {
    border-color: var(--electric-cyan);
    background: var(--electric-cyan);
  }

  .page-faq .qa__q {
    padding: 18px 0;
  }

  .page-faq .qa__a {
    padding-left: 38px;
    padding-right: clamp(0px, 4vw, 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .qa__icon::before,
  .page-faq .qa__icon::after,
  .page-faq .faq-index__link,
  .page-faq .qa__q {
    transition: none;
  }
}
