.page-faq {
  display: block;
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 32px) 0 96px;
  color: var(--paper);
  background:
    radial-gradient(120% 130% at 86% 6%, rgba(53, 214, 255, .30) 0%, rgba(53, 214, 255, 0) 58%),
    radial-gradient(90% 110% at 4% 98%, rgba(166, 255, 61, .16) 0%, rgba(166, 255, 61, 0) 62%),
    linear-gradient(146deg, #07182F 0%, #0A2350 52%, #0B63F6 138%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 48px));
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -16%;
  width: 46%;
  height: 142%;
  z-index: -1;
  transform: rotate(10deg);
  background: linear-gradient(180deg, rgba(166, 255, 61, .18) 0%, rgba(53, 214, 255, .07) 55%, rgba(11, 99, 246, 0) 100%);
  border-left: 1px solid rgba(166, 255, 61, .30);
  pointer-events: none;
}

.page-faq .faq-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.page-faq .faq-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-crumbs li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(247, 249, 254, .60);
}

.page-faq .faq-crumbs a {
  color: rgba(247, 249, 254, .60);
  text-decoration: none;
}

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

.page-faq .faq-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(247, 249, 254, .32);
}

.page-faq .faq-hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(30px, 6.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 900;
}

.page-faq .faq-hero .lead {
  max-width: 60ch;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.78;
  color: rgba(247, 249, 254, .82);
}

.page-faq .faq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* ---------- 主体两栏 ---------- */
.page-faq .faq-main {
  background: var(--paper);
  padding-top: 60px;
  padding-bottom: 76px;
}

.page-faq .faq-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

/* ---------- 分组索引 ---------- */
.page-faq .faq-index-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-faq .faq-index-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.page-faq .faq-index-list a:hover,
.page-faq .faq-index-list a:focus-visible {
  background: #fff;
  border-left-color: var(--blue);
  box-shadow: var(--shadow-1);
}

.page-faq .faq-index-list a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.page-faq .faq-idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--blue);
}

.page-faq .faq-index-note {
  margin-top: 22px;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(152deg, var(--deep) 0%, #0B3A8F 100%);
  color: var(--paper);
}

.page-faq .faq-index-note .index-label {
  margin: 0;
  color: var(--neon);
}

.page-faq .faq-index-note p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(247, 249, 254, .78);
}

/* ---------- 问答流 ---------- */
.page-faq .faq-stream {
  display: grid;
  gap: 52px;
  min-width: 0;
}

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

.page-faq .faq-group-head {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-group-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--blue);
}

.page-faq .faq-group-kicker .index-label {
  color: var(--blue);
}

.page-faq .faq-group-head h2 {
  margin: 0;
  font-size: clamp(23px, 3.4vw, 34px);
  line-height: 1.24;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
}

.page-faq .faq-group-head p {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--slate);
}

/* ---------- 折叠问答 ---------- */
.page-faq .faq-list {
  display: grid;
  gap: 10px;
}

.page-faq .faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.page-faq .faq-item:hover {
  border-color: rgba(11, 99, 246, .28);
  box-shadow: var(--shadow-1);
}

.page-faq .faq-item[open] {
  border-color: rgba(11, 99, 246, .34);
  box-shadow: inset 3px 0 0 var(--neon), var(--shadow-2);
}

.page-faq .faq-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 54px 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease;
}

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

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

.page-faq .faq-summary:hover {
  background: rgba(222, 232, 255, .40);
}

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

.page-faq .faq-summary::after {
  content: "+";
  position: absolute;
  top: 15px;
  right: 16px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.page-faq .faq-item[open] .faq-summary::after {
  content: "-";
  transform: rotate(180deg);
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.page-faq .faq-q {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: color .18s ease;
}

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

.page-faq .faq-hint {
  font-size: 13px;
  line-height: 1.62;
  color: var(--slate);
}

.page-faq .faq-a {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--mist);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.page-faq .faq-item[open] .faq-a {
  animation: faq-a-in .24s ease both;
}

@keyframes faq-a-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

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

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

.page-faq .faq-a a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 99, 246, .34);
}

.page-faq .faq-a a:hover,
.page-faq .faq-a a:focus-visible {
  border-bottom-color: var(--blue);
}

/* 步骤列表 */
.page-faq .faq-steps {
  list-style: none;
  counter-reset: faqstep;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.page-faq .faq-steps li {
  position: relative;
  counter-increment: faqstep;
  padding-left: 38px;
}

.page-faq .faq-steps li::before {
  content: counter(faqstep);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
}

.page-faq .faq-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -14px;
  width: 1px;
  background: var(--mist);
}

/* ---------- 图 ---------- */
.page-faq .faq-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}

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

.page-faq .faq-figure--tall img {
  aspect-ratio: 5 / 6;
}

.page-faq .faq-figure--wide img {
  aspect-ratio: 2 / 1;
}

.page-faq .faq-figure figcaption {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--slate);
  background: #fff;
  border-top: 1px solid var(--mist);
}

/* ---------- 客服区 ---------- */
.page-faq .faq-support {
  position: relative;
  padding: 72px 0 84px;
  color: var(--paper);
  background: linear-gradient(158deg, var(--deep) 0%, #0A2350 58%, #0B3FA8 150%);
}

.page-faq .faq-support::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon) 0%, var(--cyan) 45%, var(--flare) 100%);
}

.page-faq .faq-support-head {
  display: grid;
  gap: 14px;
  max-width: 68ch;
  margin-bottom: 36px;
}

.page-faq .faq-support-head .index-label {
  color: var(--neon);
}

.page-faq .faq-support-head h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 900;
  color: var(--paper);
}

.page-faq .faq-support-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(247, 249, 254, .78);
}

.page-faq .support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.page-faq .support-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.page-faq .faq-support .faq-figure {
  border-color: var(--line-light);
  background: rgba(247, 249, 254, .06);
}

.page-faq .faq-support .faq-figure figcaption {
  background: rgba(247, 249, 254, .06);
  border-top-color: var(--line-light);
  color: rgba(247, 249, 254, .66);
}

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

.page-faq .support-point {
  padding: 20px 20px 22px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: rgba(247, 249, 254, .05);
}

.page-faq .support-point .index-label {
  margin: 0 0 10px;
  color: var(--neon);
}

.page-faq .support-point h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.page-faq .support-point ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.page-faq .support-point li {
  font-size: 14px;
  line-height: 1.74;
  color: rgba(247, 249, 254, .78);
}

.page-faq .support-links {
  padding-left: 0 !important;
  list-style: none;
}

.page-faq .support-links a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 214, 255, .35);
}

.page-faq .support-links a:hover,
.page-faq .support-links a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.page-faq .support-card {
  padding: 24px 22px 26px;
  border: 1px solid rgba(166, 255, 61, .38);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(166, 255, 61, .10) 0%, rgba(53, 214, 255, .06) 60%, rgba(247, 249, 254, .04) 100%);
  box-shadow: var(--shadow-2);
}

.page-faq .support-card > .index-label {
  margin: 0;
  color: var(--neon);
}

.page-faq .support-list {
  margin: 16px 0 0;
  display: grid;
  gap: 14px;
}

.page-faq .support-row {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
}

.page-faq .support-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-faq .support-row dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cyan);
}

.page-faq .support-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.page-faq .support-val {
  font-size: 16px;
  color: var(--paper);
  letter-spacing: -.01em;
}

.page-faq .support-note {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--neon);
  font-size: 13px;
  line-height: 1.72;
  color: rgba(247, 249, 254, .80);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-faq .support-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 760px) {
  .page-faq .faq-group-head--split {
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: end;
    gap: 28px;
  }
}

@media (min-width: 980px) {
  .page-faq .faq-hero {
    padding-bottom: 118px;
  }

  .page-faq .faq-body {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

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

  .page-faq .support-grid {
    grid-template-columns: minmax(0, 1fr) 366px;
    gap: 40px;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item[open] .faq-a {
    animation: none;
  }

  .page-faq .faq-summary,
  .page-faq .faq-summary::after,
  .page-faq .faq-item,
  .page-faq .faq-index-list a {
    transition: none;
  }
}
