.page-faq {
  --faq-rail: 268px;
  --faq-paper-line: rgba(34, 26, 20, .3);
  --faq-paper-body: #3B2E23;
  --faq-paper-dim: #6A5744;
  --faq-hero-gutter: 18px;
}

/* ---------------- 首屏 ---------------- */
.page-faq .faq-hero {
  position: relative;
  padding: 34px 0 48px;
  background:
    radial-gradient(120% 88% at 84% 0%, rgba(53, 208, 127, .10), transparent 58%),
    radial-gradient(90% 70% at 6% 100%, rgba(255, 106, 31, .10), transparent 60%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(143, 160, 181, .07) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, rgba(143, 160, 181, .07) 0 1px, transparent 1px 74px);
  pointer-events: none;
}

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

.page-faq .faq-hero .breadcrumbs {
  margin-bottom: 18px;
}

.page-faq .faq-hero__frame {
  position: relative;
  border: 1px solid var(--line-strong);
  background: rgba(11, 27, 51, .55);
  padding: 26px var(--faq-hero-gutter) 28px;
}

.page-faq .faq-hero__frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 16px, transparent 16px 30px);
  opacity: .85;
}

.page-faq .faq-hero__grid {
  display: grid;
  gap: 26px;
}

.page-faq .faq-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(27px, 6vw, 50px);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--white);
  margin: 10px 0 14px;
}

.page-faq .faq-hero__lead {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.78;
  margin: 0 0 22px;
  max-width: 48ch;
}

.page-faq .faq-hero__stats {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 16px;
}

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

.page-faq .faq-hero__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -.02em;
}

.page-faq .faq-hero__unit {
  font-size: 13px;
  color: var(--steel);
  letter-spacing: .04em;
}

.page-faq .faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-faq .faq-hero__figure {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: rgba(11, 27, 51, .62);
  padding: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
}

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

/* ---------------- 主体两栏 ---------------- */
.page-faq .faq-body {
  padding: 40px 0 56px;
  background: var(--ink-900);
}

.page-faq .faq-layout {
  display: grid;
  gap: 30px;
  min-width: 0;
}

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

.page-faq .faq-index__label {
  display: block;
  margin: 0 0 12px;
}

.page-faq .faq-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.page-faq .faq-index__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}

.page-faq .faq-index__link:hover {
  color: var(--white);
  border-left-color: var(--orange);
  background: rgba(255, 106, 31, .07);
}

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

.page-faq .faq-index__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
}

.page-faq .faq-index__link:hover .faq-index__num {
  color: var(--orange);
}

.page-faq .faq-index__note {
  margin: 18px 0 0;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
  border-left: 2px solid var(--orange-soft);
}

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

/* ---------------- 工具栏 ---------------- */
.page-faq .faq-toolbar {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-toolbar__hint {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--steel);
}

.page-faq .faq-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-faq .faq-seg .seg__btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}

.page-faq .faq-seg .seg__btn:hover {
  color: var(--white);
  border-color: var(--orange);
}

.page-faq .faq-seg .seg__btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-faq .faq-seg .seg__btn[aria-pressed="true"],
.page-faq .faq-seg .seg__btn.is-active {
  color: var(--ink-900);
  background: var(--orange);
  border-color: var(--orange);
}

.page-faq .is-filtered {
  display: none !important;
}

/* ---------------- 分类与问答 ---------------- */
.page-faq .faq-group {
  margin-bottom: 46px;
  min-width: 0;
  scroll-margin-top: 84px;
}

.page-faq .faq-group__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 3.2vw, 23px);
  letter-spacing: -.005em;
  color: var(--white);
}

.page-faq .faq-group__title .label-mono {
  color: var(--orange);
}

.page-faq .faq-group__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  transform: translateY(-5px);
}

.page-faq .faq-group__lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 60ch;
}

.page-faq .faq-item {
  background: var(--paper);
  color: var(--ink-dark);
  border: 1px solid var(--faq-paper-line);
  box-shadow: 3px 3px 0 rgba(34, 26, 20, .45);
  margin-bottom: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.page-faq .faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 rgba(34, 26, 20, .5);
}

.page-faq .faq-item[open] {
  box-shadow: 3px 3px 0 var(--rust);
}

.page-faq .faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dark);
}

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

.page-faq .faq-item__q::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-right: 2px solid var(--rust);
  border-bottom: 2px solid var(--rust);
  transform: rotate(-45deg);
  transition: transform .18s ease;
}

.page-faq .faq-item[open] .faq-item__q::before {
  transform: rotate(45deg);
}

.page-faq .faq-item__q:hover {
  background: rgba(255, 106, 31, .09);
}

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

.page-faq .faq-item__a {
  padding: 14px 18px 18px 39px;
  border-top: 1px dashed rgba(34, 26, 20, .24);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.86;
  color: var(--faq-paper-body);
}

.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__link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  padding: 5px 10px;
  color: var(--ink-dark);
  background: var(--paper-2);
  border: 1px solid rgba(34, 26, 20, .28);
  text-decoration: none;
}

.page-faq .faq-item__link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-900);
}

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

.page-faq .faq-figure {
  margin: 0 0 20px;
  padding: 8px;
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
}

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

.page-faq .faq-figure__cap {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--steel);
}

/* ---------------- 联系收尾 ---------------- */
.page-faq .faq-contact {
  padding: 8px 0 64px;
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
}

.page-faq .faq-contact__card {
  position: relative;
  padding: 28px 20px 30px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 27, 51, .72);
  overflow: hidden;
}

.page-faq .faq-contact__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
}

.page-faq .faq-contact__card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(53, 208, 127, .18), transparent 66%);
  pointer-events: none;
}

.page-faq .faq-contact__title {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 3.6vw, 30px);
  line-height: 1.24;
  color: var(--white);
}

.page-faq .faq-contact__lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 60ch;
}

.page-faq .faq-contact__list {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.page-faq .faq-contact__list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(18, 41, 74, .55);
}

.page-faq .faq-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.page-faq .faq-contact__aside {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--steel);
}

.page-faq .faq-contact__aside a {
  color: var(--orange-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-faq .faq-contact__aside a:hover {
  color: var(--white);
}

.page-faq .faq-contact__aside a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------------- 响应式 ---------------- */
@media (min-width: 720px) {
  .page-faq {
    --faq-hero-gutter: 32px;
  }

  .page-faq .faq-hero {
    padding: 44px 0 60px;
  }

  .page-faq .faq-hero__frame {
    padding: 34px var(--faq-hero-gutter) 36px;
  }

  .page-faq .faq-contact__card {
    padding: 36px 32px 38px;
  }

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

@media (min-width: 900px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: 38px;
  }

  .page-faq .faq-body {
    padding: 56px 0 72px;
  }
}

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

  .page-faq .faq-index {
    position: sticky;
    top: 84px;
    align-self: start;
  }

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

  .page-faq .faq-item__a {
    padding: 16px 22px 20px 41px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-item__q::before,
  .page-faq .faq-index__link,
  .page-faq .faq-seg .seg__btn {
    transition: none;
  }

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