.page-faq {
  --faq-rail-w: 216px;
  --faq-indent: 18px;
  padding-bottom: 80px;
}

/* ---------- 面包屑 ---------- */
.page-faq .crumbs {
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.page-faq .crumbs a {
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.page-faq .crumbs a:hover {
  color: var(--white);
  border-bottom-color: var(--turf);
}
.page-faq .crumbs__sep {
  margin: 0 8px;
  color: var(--line-strong);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  padding: 22px 0 40px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -8%;
  width: min(520px, 74vw);
  height: min(520px, 74vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 164, 91, 0.16), rgba(31, 164, 91, 0) 70%);
  pointer-events: none;
}
.page-faq .faq-hero > * {
  position: relative;
  z-index: 1;
}
.page-faq .faq-hero .eyebrow {
  color: var(--turf);
  margin: 0;
}
.page-faq .faq-hero h1 {
  margin: 14px 0 20px;
  max-width: 17em;
  font-size: clamp(1.85rem, 6.4vw, 3.5rem);
  line-height: 1.12;
  font-weight: 350;
  letter-spacing: -0.015em;
  color: var(--white);
}
.page-faq .faq-hero__lead {
  max-width: 44em;
  color: var(--grey);
}
.page-faq .faq-hero__meta {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

/* ---------- 搜索 ---------- */
.page-faq .faq-search__label {
  display: block;
  margin: 26px 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--grey);
}
.page-faq .faq-search {
  display: block;
  width: 100%;
  max-width: 460px;
  padding: 13px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.page-faq .faq-search::placeholder {
  color: var(--grey);
  opacity: 0.72;
}
.page-faq .faq-search:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(72, 224, 141, 0.12);
}

/* ---------- 布局：分类锚点 + 问答 ---------- */
.page-faq .faq-layout {
  padding-top: 32px;
}

.page-faq .faq-rail {
  margin-bottom: 30px;
}
.page-faq .faq-rail__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--grey);
}
.page-faq .faq-rail__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-faq .faq-rail__list::-webkit-scrollbar {
  display: none;
}
.page-faq .faq-rail__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--grey);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.page-faq .faq-rail__link:hover {
  color: var(--white);
  border-color: var(--line-strong);
}
.page-faq .faq-rail__link.is-current {
  color: var(--white);
  border-color: rgba(245, 197, 24, 0.5);
  background: rgba(245, 197, 24, 0.06);
}
.page-faq .faq-rail__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--turf);
}
.page-faq .faq-rail__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--grey);
  max-width: 20em;
}

/* ---------- 分组 ---------- */
.page-faq .faq-group {
  margin-bottom: 54px;
  scroll-margin-top: 76px;
}
.page-faq .faq-group:last-of-type {
  margin-bottom: 32px;
}
.page-faq .faq-group__intro {
  max-width: 42em;
  margin: 0 0 22px;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- 图片 ---------- */
.page-faq .faq-figure {
  margin: 0 0 24px;
}
.page-faq .faq-figure__frame {
  position: relative;
  aspect-ratio: auto;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.page-faq .faq-figure__frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.92);
}
.page-faq .faq-figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 92% at 50% 44%, rgba(10, 17, 32, 0) 42%, rgba(10, 17, 32, 0.74) 100%);
}
.page-faq .faq-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey);
}

/* ---------- 折叠问答 ---------- */
.page-faq .faq-list {
  display: block;
}
.page-faq .faq-item {
  margin-bottom: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.page-faq .faq-item:hover {
  border-color: var(--line-strong);
  border-left-color: var(--line-strong);
}
.page-faq .faq-item[open] {
  background: var(--panel-hi);
  border-left-color: var(--turf);
}
.page-faq .faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px var(--faq-indent);
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--white);
}
.page-faq .faq-item__q::-webkit-details-marker {
  display: none;
}
.page-faq .faq-item__q::marker {
  content: "";
}
.page-faq .faq-item__q:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}
.page-faq .faq-item__idx {
  flex: none;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--turf);
}
.page-faq .faq-item[open] .faq-item__idx {
  color: var(--lime);
}
.page-faq .faq-item__text {
  flex: 1 1 auto;
  min-width: 0;
}
.page-faq .faq-item__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  margin-left: auto;
}
.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--grey);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.page-faq .faq-item__icon::before {
  width: 12px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.page-faq .faq-item__icon::after {
  width: 1.5px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.page-faq .faq-item[open] .faq-item__icon::before,
.page-faq .faq-item[open] .faq-item__icon::after {
  background: var(--lime);
}
.page-faq .faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}
.page-faq .faq-item__a {
  max-width: 44em;
  padding: 0 var(--faq-indent) 18px;
  color: var(--grey);
  font-size: 14.5px;
  line-height: 1.9;
}
.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 a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--turf);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}
.page-faq .faq-item__a a:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}
.page-faq .faq-k {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.06em;
  color: var(--white);
}

/* ---------- 提示横幅 ---------- */
.page-faq .faq-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 22px 0 6px;
  padding: 15px 18px;
  background: linear-gradient(100deg, rgba(245, 197, 24, 0.09), rgba(245, 197, 24, 0) 74%);
  border-left: 3px solid var(--yellow);
  font-size: 14px;
  line-height: 1.8;
  color: var(--white);
}
.page-faq .faq-note__tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--yellow);
}
.page-faq .faq-note a {
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 197, 24, 0.42);
  transition: border-color 0.18s var(--ease);
}
.page-faq .faq-note a:hover {
  border-bottom-color: var(--yellow);
}

/* ---------- 收尾分组 ---------- */
.page-faq .faq-group--more {
  padding: 26px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--turf);
}
.page-faq .faq-more__list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.page-faq .faq-more__list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--grey);
}
.page-faq .faq-more__list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--turf);
}

/* ---------- 收尾图形 ---------- */
.page-faq .faq-outro {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.page-faq .faq-outro__glyph {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(92px, 24vw, 190px);
  line-height: 0.82;
  font-weight: 200;
  color: rgba(72, 224, 141, 0.12);
  -webkit-text-stroke: 1px rgba(72, 224, 141, 0.48);
  user-select: none;
}

/* ---------- 桌面端 ---------- */
@media (min-width: 900px) {
  .page-faq {
    --faq-indent: 20px;
  }
  .page-faq .faq-layout {
    display: grid;
    grid-template-columns: var(--faq-rail-w) minmax(0, 1fr);
    gap: 56px;
    padding-top: 46px;
  }
  .page-faq .faq-rail {
    position: sticky;
    top: 40px;
    align-self: start;
    margin-bottom: 0;
  }
  .page-faq .faq-rail__list {
    display: block;
    overflow: visible;
    padding-bottom: 0;
  }
  .page-faq .faq-rail__list li + li {
    margin-top: 2px;
  }
  .page-faq .faq-rail__link {
    padding: 10px 0 10px 16px;
    border: 0;
    border-left: 2px solid var(--line);
    white-space: normal;
    font-size: 14px;
    background: none;
  }
  .page-faq .faq-rail__link:hover {
    border-left-color: var(--line-strong);
  }
  .page-faq .faq-rail__link.is-current {
    border-left-color: var(--yellow);
    background: linear-gradient(90deg, rgba(245, 197, 24, 0.08), rgba(245, 197, 24, 0));
  }
  .page-faq .faq-item__a {
    padding-left: 44px;
  }
  .page-faq .faq-more__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
  }
  .page-faq .faq-hero {
    padding: 30px 0 48px;
  }
}

@media (min-width: 1200px) {
  .page-faq .faq-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 72px;
  }
  .page-faq .faq-item__q {
    font-size: 16px;
    padding: 18px var(--faq-indent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq * {
    transition-duration: 0.01ms !important;
  }
}
