.page-faq {
  --faq-paper: var(--paper);
}

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

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  margin: 18px 0 0;
  padding: 44px 22px 46px;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  border-left: 6px solid var(--orange);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -170px;
  width: 62%;
  height: 300px;
  background: var(--orange);
  transform: rotate(-9deg);
  opacity: .85;
  z-index: 0;
}

.page-faq .faq-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.page-faq .faq-hero .eyebrow {
  color: var(--orange-soft);
  margin: 0;
}

.page-faq .faq-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(1.6rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-faq .faq-hero-lead {
  margin: 20px 0 0;
  font-size: .96rem;
  line-height: 1.92;
  color: rgba(255, 255, 255, .84);
}

/* ---------- 主体布局 ---------- */
.page-faq .faq-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin: 34px 0 0;
}

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

/* ---------- 目录 ---------- */
.page-faq .faq-toc-title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--g2);
}

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

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

.page-faq .faq-toc-link {
  display: block;
  white-space: nowrap;
  padding: 7px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .8rem;
  line-height: 1.5;
  color: var(--g1);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-faq .faq-toc-link .mono {
  font-size: .74rem;
  color: var(--g2);
  margin-right: 4px;
}

.page-faq .faq-toc-link:hover {
  color: var(--ink);
  border-color: var(--g3);
}

.page-faq .faq-toc-link[aria-current] {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange-deep);
  font-weight: 700;
}

.page-faq .faq-toc-link[aria-current] .mono {
  color: var(--orange-deep);
}

/* ---------- 分组 ---------- */
.page-faq .faq-group {
  margin: 0 0 42px;
  scroll-margin-top: calc(var(--top-h) + 24px);
}

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

.page-faq .faq-group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
}

.page-faq .faq-index {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.page-faq .faq-group-title {
  margin: 0;
  font-size: clamp(1.12rem, 3.4vw, 1.44rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- 手风琴 ---------- */
.page-faq .faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color .2s var(--ease);
}

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

.page-faq .faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 14px 15px 14px;
  cursor: pointer;
  list-style: none;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
}

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

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

.page-faq .faq-arrow {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-right: 1.5px solid var(--g1);
  border-bottom: 1.5px solid var(--g1);
  transform: rotate(45deg);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-faq .faq-item[open] .faq-arrow {
  transform: rotate(-135deg);
  border-color: var(--orange);
}

.page-faq .faq-a {
  padding: 0 14px 20px 14px;
  font-size: .92rem;
  line-height: 1.92;
  color: var(--text);
}

.page-faq .faq-a p {
  margin: 0 0 11px;
  max-width: 66ch;
}

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

.page-faq .faq-a a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--orange-soft);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.page-faq .faq-a a:hover {
  color: var(--orange-deep);
  border-bottom-color: var(--orange);
}

/* ---------- 图片 ---------- */
.page-faq .faq-figure {
  margin: 22px 0 6px;
}

.page-faq .faq-figure .media-frame {
  aspect-ratio: 3 / 2;
}

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

.page-faq .faq-figure figcaption {
  margin-top: 10px;
  font-size: .78rem;
  line-height: 1.72;
  letter-spacing: .04em;
  color: var(--g1);
}

/* ---------- 联系块 ---------- */
.page-faq .faq-contact {
  display: grid;
  gap: 1px;
  margin: 16px 0 4px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-faq .faq-contact .contact-item {
  background: var(--paper);
  padding: 13px 14px;
}

.page-faq .faq-contact .contact-label {
  display: block;
  margin-bottom: 5px;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--g1);
}

.page-faq .faq-contact .contact-value {
  display: block;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- 备注条 ---------- */
.page-faq .faq-note {
  margin: 22px 0 0;
  padding: 13px 15px;
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  font-size: .84rem;
  line-height: 1.8;
  color: var(--ink);
}

.page-faq .faq-note a {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
}

/* ---------- 桌面端 ---------- */
@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 56px 44px 58px;
  }

  .page-faq .faq-hero-lead {
    font-size: 1rem;
  }

  .page-faq .faq-body {
    margin-top: 44px;
  }

  .page-faq .faq-q {
    padding: 17px 18px 17px 18px;
    font-size: 1rem;
  }

  .page-faq .faq-a {
    padding: 0 18px 22px 18px;
    font-size: .95rem;
  }

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

@media (min-width: 1024px) {
  .page-faq .faq-body {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 56px;
  }

  .page-faq .faq-toc {
    position: sticky;
    top: calc(var(--top-h) + 28px);
    align-self: start;
  }

  .page-faq .faq-toc-list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
    border-top: 1px solid var(--line);
  }

  .page-faq .faq-toc-link {
    white-space: normal;
    position: relative;
    padding: 11px 12px 11px 20px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    font-size: .82rem;
    line-height: 1.6;
  }

  .page-faq .faq-toc-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background-color .2s var(--ease);
  }

  .page-faq .faq-toc-link[aria-current] {
    background: var(--paper);
    color: var(--orange-deep);
  }

  .page-faq .faq-toc-link[aria-current]::before {
    background: var(--orange);
  }

  .page-faq .faq-toc-link:hover {
    background: var(--paper);
  }

  .page-faq .faq-group-title {
    font-size: 1.5rem;
  }

  .page-faq .faq-item[open] .faq-a p {
    max-width: 62ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-arrow,
  .page-faq .faq-toc-link,
  .page-faq .faq-item,
  .page-faq .faq-a a {
    transition: none;
  }
}
