.page-faq {
  --faq-gap: clamp(16px, 2.4vw, 28px);
  --faq-pad: clamp(18px, 3vw, 28px);
  --faq-text: rgba(232, 241, 245, 0.78);
  display: block;
  background: var(--graphite);
  color: var(--pale);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  padding-top: calc(var(--head-h) + clamp(30px, 6vw, 66px));
  padding-bottom: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(120% 100% at 86% 4%, rgba(11, 60, 93, 0.85) 0%, rgba(11, 60, 93, 0) 62%),
    linear-gradient(158deg, #0E1116 0%, #101A22 52%, #0A1319 100%);
  overflow: hidden;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(138, 155, 168, 0.07) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(138, 155, 168, 0.045) 0 1px, transparent 1px 76px);
}

.page-faq .faq-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero .crumb {
  margin-bottom: clamp(18px, 3vw, 30px);
}

.page-faq .faq-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
}

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

.page-faq .faq-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2.1rem, 7vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--pale);
  max-width: 20ch;
}

.page-faq .faq-hero__intro {
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--faq-text);
}

.page-faq .faq-hero__stats {
  list-style: none;
  margin: clamp(24px, 3.6vw, 38px) 0 0;
  padding: clamp(16px, 2.4vw, 22px) 0 0;
  border-top: 2px solid rgba(11, 60, 93, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.page-faq .faq-hero__stats li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-faq .faq-hero__stats .num {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.page-faq .faq-hero__stats em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-faq .faq-hero__figure {
  margin: 0;
  padding: 0;
  border: 2px solid var(--ice-2);
  box-shadow: var(--hard-shadow);
  background: #0A1319;
  min-width: 0;
}

.page-faq .faq-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 6;
}

.page-faq .faq-hero__figure .figure-frame__cap {
  display: block;
  padding: 10px 14px;
  border-top: 2px solid var(--ice);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
  background: rgba(11, 60, 93, 0.28);
}

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

/* ---------- 主体双栏 ---------- */
.page-faq .faq-body {
  padding: clamp(38px, 5.5vw, 84px) 0 clamp(40px, 6vw, 92px);
  background: linear-gradient(180deg, #0A1319 0%, #0E1116 34%, #0E1116 100%);
}

.page-faq .faq-body__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
}

/* ---------- 左侧索引 ---------- */
.page-faq .faq-side {
  min-width: 0;
  border: 2px solid var(--line-soft);
  background: rgba(27, 34, 43, 0.72);
  padding: clamp(14px, 2.2vw, 20px);
}

.page-faq .faq-side .index-tag {
  display: block;
}

.page-faq .faq-index {
  margin-top: 14px;
}

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

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

.page-faq .faq-index__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  background: var(--night);
  color: var(--pale);
  text-decoration: none;
  font-size: 13.5px;
  white-space: nowrap;
  transition: border-color 0.24s var(--ease), background-color 0.24s var(--ease), transform 0.2s var(--ease), color 0.24s var(--ease);
}

.page-faq .faq-index__num {
  font-size: 11px;
  letter-spacing: 0.18em;
}

.page-faq .faq-index__list a:hover,
.page-faq .faq-index__list a:focus-visible {
  border-color: var(--maple);
  background: #232C37;
  color: var(--pale);
  transform: translateX(3px);
  outline: none;
}

.page-faq .faq-index__list a:focus-visible {
  box-shadow: 0 0 0 2px rgba(74, 222, 222, 0.7);
}

.page-faq .faq-top {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-faq .faq-top:hover,
.page-faq .faq-top:focus-visible {
  color: var(--aurora);
  border-bottom-color: var(--aurora);
  outline: none;
}

@media (min-width: 1024px) {
  .page-faq .faq-body__inner {
    grid-template-columns: 278px minmax(0, 1fr);
    gap: clamp(30px, 4vw, 64px);
    align-items: start;
  }

  .page-faq .faq-side {
    position: sticky;
    top: calc(var(--head-h) + 26px);
  }

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

  .page-faq .faq-index__list a {
    width: 100%;
    white-space: normal;
    border-color: transparent;
    border-left-width: 3px;
    border-left-color: var(--line);
    background: transparent;
  }
}

/* ---------- 右侧答案 ---------- */
.page-faq .faq-answers {
  min-width: 0;
}

.page-faq .faq-group {
  scroll-margin-top: calc(var(--head-h) + 28px);
  margin-bottom: clamp(34px, 5vw, 60px);
}

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

.page-faq .faq-group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ice);
}

.page-faq .faq-group__num {
  font-size: 12px;
  letter-spacing: 0.2em;
  flex: 0 0 auto;
}

.page-faq .faq-group__title {
  margin: 0;
  font-size: clamp(1.35rem, 3.6vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--pale);
}

.page-faq .faq-group__intro {
  margin: 16px 0 22px;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--faq-text);
}

.page-faq .faq-figure {
  margin: 0 0 22px;
  padding: 0;
  border: 2px solid var(--line);
  background: var(--night);
  box-shadow: 6px 6px 0 rgba(11, 60, 93, 0.5);
}

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

.page-faq .faq-figure .figure-frame__cap {
  display: block;
  padding: 9px 14px;
  border-top: 2px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* ---------- 折叠问答 ---------- */
.page-faq .faq-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-faq .faq-item {
  border: 2px solid var(--line);
  background: var(--night);
  transition: border-color 0.26s var(--ease), box-shadow 0.26s var(--ease), background-color 0.26s var(--ease);
}

.page-faq .faq-item:hover {
  border-color: rgba(200, 16, 46, 0.75);
}

.page-faq .faq-item[open] {
  border-color: var(--gold);
  background: #202832;
  box-shadow: var(--hard-shadow);
}

.page-faq .faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px clamp(14px, 2vw, 20px);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--pale);
  list-style: none;
  transition: color 0.22s var(--ease);
}

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

.page-faq .faq-item__q::marker {
  content: "";
}

.page-faq .faq-item__q:hover {
  color: var(--gold);
}

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

.page-faq .faq-item__marker {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--maple);
  background: rgba(200, 16, 46, 0.14);
}

.page-faq .faq-item__marker::before,
.page-faq .faq-item__marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--maple);
  transform: translate(-50%, -50%);
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}

.page-faq .faq-item__marker::before {
  width: 10px;
  height: 2px;
}

.page-faq .faq-item__marker::after {
  width: 2px;
  height: 10px;
}

.page-faq .faq-item[open] .faq-item__marker {
  border-color: var(--gold);
  background: rgba(242, 169, 0, 0.16);
}

.page-faq .faq-item[open] .faq-item__marker::before,
.page-faq .faq-item[open] .faq-item__marker::after {
  background: var(--gold);
}

.page-faq .faq-item[open] .faq-item__marker::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.page-faq .faq-item__a {
  padding: 0 clamp(14px, 2vw, 20px) 18px;
  padding-left: calc(clamp(14px, 2vw, 20px) + 32px);
  color: var(--faq-text);
  font-size: 14.5px;
  line-height: 1.8;
}

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

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

.page-faq .faq-item__a strong {
  color: var(--pale);
  font-weight: 600;
}

.page-faq .faq-item__a .num {
  color: var(--gold);
}

/* ---------- 底部引导 ---------- */
.page-faq .faq-cta {
  padding: clamp(36px, 5.5vw, 76px) 0 clamp(46px, 6vw, 88px);
  background:
    linear-gradient(120deg, rgba(11, 60, 93, 0.92) 0%, rgba(200, 16, 46, 0.42) 100%),
    #0E1116;
  border-top: 2px solid var(--ice-2);
}

.page-faq .faq-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 40px);
  align-items: center;
}

.page-faq .faq-cta__title {
  margin: 12px 0 0;
  font-size: clamp(1.6rem, 4.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: var(--pale);
}

.page-faq .faq-cta__note {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(232, 241, 245, 0.86);
}

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

.page-faq .faq-cta__actions .btn {
  text-decoration: none;
}

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

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

@media (max-width: 520px) {
  .page-faq .faq-item__a {
    padding-left: clamp(14px, 2vw, 20px);
  }

  .page-faq .faq-hero__stats {
    gap: 10px 22px;
  }
}
