.page-faq {
  --faq-gap: 22px;
  display: block;
  padding-bottom: 78px;
  color: var(--text-body);
  background: var(--ink);
}

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

.page-faq .faq-inline {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 211, 230, 0.45);
}

.page-faq .faq-inline:hover,
.page-faq .faq-inline:focus-visible {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* ---------- 首屏框景 ---------- */
.page-faq .faq-hero {
  position: relative;
  margin-top: 10px;
  padding: 28px 18px 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(178, 58, 46, 0.20), transparent 58%),
    radial-gradient(90% 90% at 0% 100%, rgba(127, 211, 230, 0.10), transparent 62%),
    linear-gradient(180deg, #102335 0%, var(--ink-deep) 100%);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 52px;
  height: 52px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--ice), rgba(127, 211, 230, 0));
  opacity: 0.45;
  pointer-events: none;
}

.page-faq .faq-hero__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-faq .faq-hero__lede {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

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

.page-faq .faq-jump {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(7, 18, 30, 0.6);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-faq .faq-jump:hover,
.page-faq .faq-jump:focus-visible {
  color: var(--mist);
  border-color: var(--gold);
  background: rgba(216, 162, 74, 0.10);
}

.page-faq .faq-hero__hotline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}

.page-faq .faq-hero__hotline strong {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

/* ---------- 主体两栏 ---------- */
.page-faq .faq-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--faq-gap);
  margin-top: 26px;
}

.page-faq .faq-body > * {
  min-width: 0;
}

.page-faq .faq-toc__title {
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

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

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

.page-faq .faq-toc__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  background: rgba(7, 18, 30, 0.55);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-faq .faq-toc__num {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-faq .faq-toc__link:hover,
.page-faq .faq-toc__link:focus-visible {
  color: var(--mist);
  border-left-color: var(--gold);
  background: rgba(30, 51, 70, 0.6);
}

/* ---------- 折叠问答卡 ---------- */
.page-faq .faq-item {
  scroll-margin-top: calc(var(--bar-h) + 18px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 51, 70, 0.30), rgba(7, 18, 30, 0.55));
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.page-faq .faq-item:hover,
.page-faq .faq-item[open] {
  border-color: var(--line-strong);
}

.page-faq .faq-item__summary {
  display: block;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

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

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

.page-faq .faq-item__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--mist);
}

.page-faq .faq-item__idx {
  flex: none;
  padding: 2px 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--line-strong);
}

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

.page-faq .faq-item__title::after {
  content: "+";
  flex: none;
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  transition: color 0.18s var(--ease);
}

.page-faq .faq-item[open] .faq-item__title::after {
  content: "\2212";
  color: var(--gold-light);
}

.page-faq .faq-item__body {
  padding: 0 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.8;
}

.page-faq .faq-item__body > p {
  margin: 16px 0 0;
}

.page-faq .faq-item__body > p + p {
  margin-top: 12px;
}

/* ---------- 步骤条 ---------- */
.page-faq .steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: faqstep;
}

.page-faq .step {
  position: relative;
  padding: 0 0 18px 38px;
  counter-increment: faqstep;
  font-size: 14.5px;
  line-height: 1.78;
}

.page-faq .step:last-child {
  padding-bottom: 0;
}

.page-faq .step::before {
  content: counter(faqstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-black);
  background: var(--gold);
  border-radius: 50%;
}

.page-faq .step::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 31px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, rgba(127, 211, 230, 0.55), rgba(127, 211, 230, 0.05));
}

.page-faq .step:last-child::after {
  display: none;
}

.page-faq .step strong {
  display: block;
  margin-bottom: 2px;
  color: var(--mist);
  font-weight: 700;
}

/* ---------- 要点列表 ---------- */
.page-faq .faq-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.8;
}

.page-faq .faq-list li + li {
  margin-top: 8px;
}

.page-faq .faq-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--ice);
}

.page-faq .faq-list strong {
  color: var(--mist);
  font-weight: 700;
}

/* ---------- 图 ---------- */
.page-faq .faq-fig {
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-black);
}

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

.page-faq .faq-fig figcaption {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------- 提示条 ---------- */
.page-faq .faq-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--saffron);
  background: linear-gradient(90deg, rgba(178, 58, 46, 0.18), rgba(30, 51, 70, 0.16) 62%, transparent 100%);
  font-size: 13.5px;
  line-height: 1.7;
}

.page-faq .faq-callout a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 211, 230, 0.45);
}

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

/* ---------- 数字卡 ---------- */
.page-faq .faq-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.page-faq .fact {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(7, 18, 30, 0.55);
}

.page-faq .fact__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--gold-light);
}

.page-faq .fact__label {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---------- 等宽时间 ---------- */
.page-faq .t {
  font-family: var(--font-mono);
  font-size: 0.94em;
  letter-spacing: 0.02em;
  color: var(--ice);
}

/* ---------- 页内链接组 ---------- */
.page-faq .faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-faq .faq-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--mist);
  border: 1px solid var(--line-strong);
  background: rgba(30, 51, 70, 0.4);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-faq .faq-link:hover,
.page-faq .faq-link:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(216, 162, 74, 0.12);
}

.page-faq .faq-tail {
  margin: 22px 0 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-faq .faq-hero {
    padding: 38px 34px 28px;
  }

  .page-faq .faq-hero::after {
    left: 34px;
    right: 34px;
  }

  .page-faq .faq-hero__lede {
    font-size: 15.5px;
  }

  .page-faq .faq-item__summary {
    padding: 17px 20px;
  }

  .page-faq .faq-item__title {
    font-size: 16.5px;
  }

  .page-faq .faq-item__body {
    padding: 0 20px 24px;
    font-size: 15px;
  }

  .page-faq .step,
  .page-faq .faq-list li {
    font-size: 15px;
  }

  .page-faq .faq-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .page-faq .faq-toc {
    position: sticky;
    top: calc(var(--bar-h) + 18px);
  }

  .page-faq .faq-toc__list {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-faq .faq-toc__link {
    width: 100%;
  }

  .page-faq .faq-item__title {
    font-size: 17px;
  }

  .page-faq .faq-item__body {
    padding: 0 26px 26px;
  }

  .page-faq .faq-fig {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq *,
  .page-faq *::before,
  .page-faq *::after {
    transition: none !important;
    animation: none !important;
  }
}
