.page-faq {
  --faq-cut: 18px;
  --faq-gap: clamp(20px, 3vw, 36px);
  --faq-anchor-offset: calc(var(--header-solid-h) + 24px);
  position: relative;
  background: var(--ink);
  color: var(--strong);
  overflow-x: clip;
}

.page-faq .mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
  color: var(--orange-soft);
  word-break: break-all;
}

/* ---------- 面包屑 ---------- */
.page-faq .breadcrumb {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--header-offset) + 20px);
}

.page-faq .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.page-faq .breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.page-faq .breadcrumb-list a {
  color: var(--steel-light);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-faq .breadcrumb-list a:hover {
  color: var(--orange);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  padding: clamp(24px, 4vw, 48px) 0 clamp(30px, 5vw, 58px);
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 88% -10%, rgba(255, 107, 26, 0.15), transparent 62%),
    linear-gradient(180deg, rgba(4, 25, 20, 0.65), transparent 70%);
  pointer-events: none;
}

.page-faq .faq-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--faq-gap);
}

.page-faq .faq-hero-copy .kicker {
  display: block;
  margin: 0 0 14px;
}

.page-faq .faq-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(27px, 5vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 20ch;
}

.page-faq .faq-lede {
  margin: 0;
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--steel-light);
}

.page-faq .faq-hero-media {
  position: relative;
  margin: 0;
  background: var(--ink-3);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-faq .faq-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
}

.page-faq .faq-hero-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 107, 26, 0) 72%);
}

/* ---------- 数字条 ---------- */
.page-faq .faq-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 1px;
  margin: clamp(24px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
  background: rgba(7, 35, 28, 0.78);
}

.page-faq .faq-stats .stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--orange);
}

.page-faq .faq-stats .stat-label {
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.05em;
  color: var(--steel);
}

/* ---------- 筛选条 ---------- */
.page-faq .faq-filters {
  position: relative;
  padding: 18px 0 6px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 58, 48, 0.55), transparent);
}

.page-faq .faq-filters-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

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

.page-faq .chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--steel-light);
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-faq .chip:hover {
  border-color: var(--orange);
  color: var(--paper);
}

.page-faq .chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 主布局 ---------- */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(44px, 7vw, 92px);
}

/* ---------- 左侧索引 ---------- */
.page-faq .faq-toc {
  position: relative;
}

.page-faq .faq-toc .index-label {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
}

.page-faq .toc-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--steel-light);
  text-decoration: none;
  border-left: 2px solid transparent;
  background: transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-faq .toc-link .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
  transition: color var(--dur) var(--ease);
}

.page-faq .toc-link:hover {
  color: var(--paper);
  background: rgba(255, 107, 26, 0.07);
}

.page-faq .toc-link[aria-current="true"] {
  color: var(--orange);
  border-left-color: var(--orange);
  background: rgba(255, 107, 26, 0.1);
}

.page-faq .toc-link[aria-current="true"] .num {
  color: var(--orange);
}

/* ---------- 分组 ---------- */
.page-faq .faq-section {
  margin-bottom: clamp(34px, 5vw, 64px);
  scroll-margin-top: var(--faq-anchor-offset);
}

.page-faq .faq-section:last-of-type {
  margin-bottom: 0;
}

.page-faq .faq-section-head {
  position: relative;
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--orange);
}

.page-faq .faq-section-head .index-label {
  color: var(--orange);
}

.page-faq .faq-section-head .h-section {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.7vw, 28px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-faq .faq-section-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 折叠问答 ---------- */
.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-faq .faq-item {
  position: relative;
  background: var(--ink-2);
  border-left: 3px solid var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: background var(--dur) var(--ease);
}

.page-faq .faq-item:hover {
  background: var(--ink-3);
}

.page-faq .faq-item[open] {
  background: var(--ink-3);
}

.page-faq .faq-item:target {
  background: var(--ink-3);
  animation: faq-flash 1.6s var(--ease) 1;
}

@keyframes faq-flash {
  0% {
    background: rgba(255, 107, 26, 0.24);
  }
  100% {
    background: var(--ink-3);
  }
}

.page-faq .faq-item > summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
}

.page-faq .faq-item > summary::-webkit-details-marker {
  display: none;
}

.page-faq .faq-item > summary::marker {
  content: "";
}

.page-faq .faq-no {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.page-faq .faq-q {
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}

.page-faq .faq-item > summary:hover .faq-q,
.page-faq .faq-item[open] .faq-q {
  color: var(--orange-soft);
}

.page-faq .faq-mark {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 6px;
}

.page-faq .faq-mark::before,
.page-faq .faq-mark::after {
  content: "";
  position: absolute;
  background: var(--orange);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.page-faq .faq-mark::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.page-faq .faq-mark::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.page-faq .faq-item[open] .faq-mark::after {
  transform: scaleY(0);
  opacity: 0;
}

.page-faq .faq-a {
  position: relative;
  padding: 14px 22px 20px 50px;
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--steel-light);
}

.page-faq .faq-a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--line);
}

.page-faq .faq-a p {
  margin: 0 0 0.8em;
}

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

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

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

/* ---------- 收尾入口 ---------- */
.page-faq .faq-next-panel {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: linear-gradient(135deg, var(--indigo) 0%, #12233a 68%, #16304d 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-faq .faq-next-media {
  position: relative;
  margin: 0;
  background: var(--ink-deep);
}

.page-faq .faq-next-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  opacity: 0.88;
}

.page-faq .faq-next-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 3.6vw, 42px);
}

.page-faq .faq-next-copy .index-label {
  color: var(--orange);
}

.page-faq .faq-next-copy .h-section {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-faq .faq-next-copy p {
  margin: 0;
  max-width: 48ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--steel-light);
}

.page-faq .faq-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 719px) {
  .page-faq .faq-a {
    padding-left: 22px;
  }

  .page-faq .faq-a::before {
    left: 18px;
  }

  .page-faq .faq-item > summary {
    gap: 10px;
    padding: 15px 16px;
  }
}

@media (max-width: 959px) {
  .page-faq .faq-toc {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-bottom: 1px solid var(--line);
  }

  .page-faq .faq-toc .index-label {
    display: none;
  }

  .page-faq .toc-link {
    flex: 0 0 auto;
    margin-bottom: 0;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .page-faq .toc-link[aria-current="true"] {
    border-left-color: transparent;
    border-bottom-color: var(--orange);
  }
}

@media (min-width: 760px) {
  .page-faq .faq-next-panel {
    grid-template-columns: 5fr 7fr;
  }

  .page-faq .faq-next-media img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero-inner {
    grid-template-columns: 5fr 7fr;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .page-faq .faq-layout {
    grid-template-columns: 3fr 9fr;
    align-items: start;
  }

  .page-faq .faq-toc {
    position: sticky;
    top: var(--faq-anchor-offset);
    padding-right: 14px;
    border-right: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item:target {
    animation: none;
    box-shadow: inset 0 0 0 1px rgba(255, 107, 26, 0.55);
  }
}
