.page-faq {
  --faq-panel: rgba(16, 20, 19, .5);
  --faq-panel-open: rgba(14, 43, 58, .42);
  padding-bottom: 88px;
}

.page-faq .breadcrumb {
  margin: 22px 0 20px;
}

/* ---------- 首屏 ---------- */
.page-faq .faq-intro {
  position: relative;
  margin-bottom: 52px;
  padding: 30px 22px 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(70, 216, 255, .1), transparent 62%),
    linear-gradient(180deg, rgba(20, 58, 47, .88), rgba(10, 42, 34, .55));
  overflow: hidden;
}

.page-faq .faq-intro::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 12px, transparent 12px 28px);
  opacity: .55;
}

.page-faq .faq-intro__head {
  position: relative;
  z-index: 1;
  max-width: 70ch;
}

.page-faq .faq-intro h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--mist);
}

.page-faq .faq-intro__lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate);
}

.page-faq .faq-intro__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

/* 三步流程 */
.page-faq .faq-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-faq .faq-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(10, 42, 34, .55);
  transition: border-color .22s ease, transform .22s ease;
}

.page-faq .faq-step:hover {
  border-color: rgba(201, 255, 74, .38);
  transform: translateY(-2px);
}

.page-faq .faq-step__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(201, 255, 74, .12);
  border: 1px solid rgba(201, 255, 74, .36);
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

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

.page-faq .faq-step__title {
  margin: 2px 0 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--mist);
}

.page-faq .faq-step__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
}

/* 首屏图 */
.page-faq .faq-hero-figure,
.page-faq .faq-inline-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(10, 42, 34, .5);
}

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

.page-faq .faq-hero-figure .media-frame__caption,
.page-faq .faq-inline-figure .media-frame__caption {
  padding: 10px 14px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--slate);
  border-top: 1px solid var(--line);
}

/* ---------- 双栏骨架 ---------- */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* 目录 */
.page-faq .faq-toc {
  min-width: 0;
}

.page-faq .faq-toc__title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}

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

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

.page-faq .faq-toc__list li {
  flex: 0 0 auto;
}

.page-faq .faq-toc__list a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(16, 20, 19, .5);
  color: var(--slate);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.page-faq .faq-toc__list a:hover,
.page-faq .faq-toc__list a:focus-visible {
  color: var(--mist);
  border-color: rgba(70, 216, 255, .45);
  background: rgba(14, 43, 58, .6);
  outline: none;
}

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

.page-faq .faq-group {
  margin-bottom: 52px;
  scroll-margin-top: 118px;
}

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

.page-faq .faq-group__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-group__index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-faq .faq-group__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.3;
  color: var(--mist);
}

.page-faq .faq-group__lead {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
  max-width: 58ch;
}

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

.page-faq .faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--faq-panel);
  overflow: hidden;
  transition: border-color .22s ease, background-color .22s ease;
}

.page-faq .faq-item[open] {
  border-color: var(--line-blue);
  background: var(--faq-panel-open);
}

.page-faq .faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--mist);
}

.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(--lime);
}

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

.page-faq .faq-item__icon {
  flex: 0 0 auto;
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 7px;
  background: rgba(201, 255, 74, .14);
  border: 1px solid rgba(201, 255, 74, .4);
}

.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: translate(-50%, -50%);
  transition: transform .22s ease, opacity .22s ease;
}

.page-faq .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

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

.page-faq .faq-item__a {
  padding: 0 16px 16px 52px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--slate);
}

.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(--mist);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.page-faq .faq-item__a a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(70, 216, 255, .45);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.page-faq .faq-item__a a:hover,
.page-faq .faq-item__a a:focus-visible {
  color: var(--lime);
  text-decoration-color: rgba(201, 255, 74, .6);
}

/* 路径标注 */
.page-faq .faq-path {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 6px;
  border: 1px dashed rgba(70, 216, 255, .5);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* 小尺寸信息图 */
.page-faq .faq-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}

.page-faq .faq-stat {
  padding: 12px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-blue);
  background: var(--navy);
}

.page-faq .faq-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.15;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.page-faq .faq-stat__label {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--slate);
}

.page-faq .faq-inline-figure {
  margin: 6px 0 0;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-faq .faq-intro {
    padding: 42px 40px 46px;
  }

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

  .page-faq .faq-step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px 20px;
  }

  .page-faq .faq-item__q {
    padding: 17px 20px;
    font-size: 16px;
  }

  .page-faq .faq-item__a {
    padding: 0 20px 18px 56px;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-intro__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: start;
    gap: 32px;
  }
}

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

  .page-faq .faq-toc {
    position: sticky;
    top: 104px;
  }

  .page-faq .faq-toc__list {
    display: grid;
    gap: 2px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-faq .faq-toc__list li {
    flex: none;
  }

  .page-faq .faq-toc__list a {
    border: none;
    border-left: 2px solid var(--line);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: transparent;
    padding: 9px 12px;
    white-space: normal;
  }

  .page-faq .faq-toc__list a:hover,
  .page-faq .faq-toc__list a:focus-visible {
    border-left-color: var(--lime);
    background: rgba(20, 58, 47, .55);
    color: var(--mist);
  }

  .page-faq .faq-group {
    margin-bottom: 62px;
  }

  .page-faq .faq-group__lead {
    font-size: 15px;
  }
}

@media (min-width: 1180px) {
  .page-faq .faq-intro {
    padding: 52px 52px 54px;
  }

  .page-faq .faq-intro__grid {
    margin-top: 34px;
    gap: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-step,
  .page-faq .faq-item,
  .page-faq .faq-item__icon::before,
  .page-faq .faq-item__icon::after,
  .page-faq .faq-toc__list a,
  .page-faq .faq-item__a a {
    transition: none;
  }

  .page-faq .faq-step:hover {
    transform: none;
  }
}
