.page-faq {
  --faq-card: rgba(18, 56, 47, 0.72);
  --faq-card-open: rgba(18, 56, 47, 0.96);
  --faq-muted: var(--sage);
  --faq-line-strong: rgba(111, 211, 232, 0.28);
  --faq-orange-soft: rgba(255, 107, 26, 0.14);

  display: block;
  padding-bottom: clamp(56px, 8vw, 104px);
  background:
    radial-gradient(120% 58% at 84% -8%, rgba(255, 107, 26, 0.16), transparent 62%),
    radial-gradient(90% 50% at 6% 8%, rgba(111, 211, 232, 0.08), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--deep) 100%);
  color: var(--white);
}

.page-faq .faq-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(18px, 5vw, 40px);
}

/* ---------- 面包屑 ---------- */
.page-faq .breadcrumbs {
  padding-top: clamp(22px, 4vw, 38px);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 6vw, 56px) 0 clamp(30px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-hero::after {
  content: "?";
  position: absolute;
  top: -0.1em;
  right: -0.02em;
  font-family: var(--font-mono);
  font-size: clamp(120px, 24vw, 250px);
  line-height: 0.82;
  font-weight: 700;
  color: rgba(111, 211, 232, 0.07);
  pointer-events: none;
  user-select: none;
}

.page-faq .faq-kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
}

.page-faq .faq-hero h1 {
  position: relative;
  margin: 0 0 20px;
  max-width: 15em;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(30px, 7vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.page-faq .faq-lead {
  margin: 0;
  max-width: 36em;
  font-size: clamp(15px, 2.3vw, 17px);
  line-height: 1.75;
  color: var(--faq-muted);
}

.page-faq .faq-jump {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-faq .faq-jump a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--faq-muted);
  text-decoration: none;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.page-faq .faq-jump a:hover {
  color: var(--white);
  border-color: var(--orange);
  background: var(--faq-orange-soft);
}

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

/* ---------- 分组 ---------- */
.page-faq .faq-group {
  padding-top: clamp(34px, 6vw, 62px);
}

.page-faq .faq-group + .faq-group {
  margin-top: clamp(34px, 6vw, 62px);
  padding-top: clamp(34px, 6vw, 62px);
  border-top: 1px solid var(--faq-line-strong);
}

.page-faq .group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.page-faq .faq-group:nth-of-type(even) .group-head {
  padding-left: clamp(0px, 6vw, 56px);
}

.page-faq .group-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  white-space: nowrap;
}

.page-faq .group-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

/* ---------- 三步引导 ---------- */
.page-faq .step-tree {
  list-style: none;
  margin: 0 0 clamp(22px, 4vw, 34px);
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: none;
}

.page-faq .step-node {
  position: relative;
  padding: 18px 20px 18px 62px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--faq-card);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.page-faq .step-node::after {
  content: "";
  position: absolute;
  left: 29px;
  bottom: -15px;
  width: 1px;
  height: 14px;
  background: var(--ice);
  opacity: 0.45;
  transition: opacity var(--t-fast), background var(--t-fast);
}

.page-faq .step-node:last-child::after {
  display: none;
}

.page-faq .step-node:hover,
.page-faq .step-node:focus-within {
  border-color: rgba(255, 107, 26, 0.5);
  background: var(--faq-card-open);
}

.page-faq .step-node:hover::after,
.page-faq .step-node:focus-within::after {
  opacity: 1;
  background: var(--orange);
}

.page-faq .step-num {
  position: absolute;
  left: 20px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--orange);
}

.page-faq .step-title {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.4;
}

.page-faq .step-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--faq-muted);
}

/* ---------- 问答折叠 ---------- */
.page-faq .faq-list {
  display: block;
}

.page-faq .faq-item {
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--faq-card);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--t-fast), background var(--t-fast);
}

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

.page-faq .faq-item:hover {
  border-color: var(--line);
}

.page-faq .faq-item[open] {
  border-color: rgba(255, 107, 26, 0.42);
  background: var(--faq-card-open);
}

.page-faq .faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 58px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

.page-faq .faq-index {
  flex: 0 0 auto;
  width: 1.4em;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ice);
  transition: color var(--t-fast);
}

.page-faq .faq-item[open] .faq-index {
  color: var(--orange);
}

.page-faq .faq-text {
  flex: 1 1 auto;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--white);
}

.page-faq .faq-mark {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 5px;
}

.page-faq .faq-mark::before,
.page-faq .faq-mark::after {
  content: "";
  position: absolute;
  background: var(--ice);
  transition: transform var(--t-mid), background var(--t-mid);
}

.page-faq .faq-mark::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.page-faq .faq-mark::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.page-faq .faq-item[open] .faq-mark::before {
  background: var(--orange);
}

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

.page-faq .faq-body {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--faq-muted);
}

.page-faq .faq-body p {
  margin: 0;
  max-width: 40em;
}

.page-faq .faq-body a {
  color: var(--ice);
  text-decoration: underline;
  text-decoration-color: rgba(111, 211, 232, 0.45);
  text-underline-offset: 3px;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}

.page-faq .faq-body a:hover {
  color: var(--orange-soft);
  text-decoration-color: var(--orange-soft);
}

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

.page-faq .faq-item[open] .faq-body {
  animation: faqReveal var(--t-mid) ease both;
}

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 配图 ---------- */
.page-faq .faq-figure {
  margin: 22px 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(140deg, var(--grass), var(--deep));
}

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

.page-faq .faq-figure figcaption {
  padding: 10px 16px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--faq-muted);
}

.page-faq .faq-figure--wide {
  margin-top: clamp(34px, 6vw, 64px);
}

/* ---------- 收束区 ---------- */
.page-faq .faq-closing {
  margin-top: clamp(40px, 7vw, 76px);
  padding: clamp(26px, 5vw, 52px);
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--graphite);
}

.page-faq .closing-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13, 21, 18, 0.55);
}

.page-faq .closing-title {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(21px, 3.6vw, 30px);
  line-height: 1.3;
  color: var(--graphite);
}

.page-faq .closing-text {
  margin: 0;
  max-width: 36em;
  font-size: clamp(15px, 2.2vw, 16px);
  line-height: 1.75;
  color: rgba(13, 21, 18, 0.72);
}

.page-faq .closing-actions {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-faq .closing-actions a {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.page-faq .closing-actions .is-solid {
  background: var(--orange);
  color: var(--ink-on-orange);
}

.page-faq .closing-actions .is-solid:hover {
  background: var(--orange-soft);
}

.page-faq .closing-actions .is-line {
  border: 1px solid rgba(13, 21, 18, 0.3);
  color: var(--graphite);
}

.page-faq .closing-actions .is-line:hover {
  border-color: var(--graphite);
  background: rgba(13, 21, 18, 0.07);
}

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

.page-faq .closing-contact {
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(13, 21, 18, 0.14);
  display: grid;
  gap: 12px;
}

.page-faq .closing-contact > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.page-faq .closing-contact dt {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.7;
  color: rgba(13, 21, 18, 0.5);
}

.page-faq .closing-contact dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--graphite);
  word-break: break-word;
}

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
  .page-faq .faq-text {
    font-size: 16.5px;
  }

  .page-faq .faq-body {
    padding-left: calc(18px + 1.4em + 14px);
  }

  .page-faq .faq-body p {
    max-width: 46em;
  }

  .page-faq .closing-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
  }

  .page-faq .closing-contact > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-split {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
  }

  .page-faq .faq-split .faq-figure {
    margin-top: 0;
  }
}

@media (min-width: 1080px) {
  .page-faq .faq-hero {
    padding-right: clamp(0px, 12vw, 200px);
  }

  .page-faq .step-tree {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-faq .step-node {
    padding: 62px 22px 22px;
  }

  .page-faq .step-num {
    left: 22px;
    top: 20px;
    font-size: 22px;
  }

  .page-faq .step-node::after {
    left: auto;
    right: -18px;
    top: 40px;
    bottom: auto;
    width: 18px;
    height: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item[open] .faq-body {
    animation: none;
  }

  .page-faq .faq-item,
  .page-faq .step-node,
  .page-faq .step-node::after,
  .page-faq .faq-jump a,
  .page-faq .faq-mark::before,
  .page-faq .faq-mark::after,
  .page-faq .faq-index,
  .page-faq .closing-actions a {
    transition: none;
  }
}
