.page-faq {
  --faq-card: #FFFFFF;
  --faq-body-ink: #33463F;
  --faq-sub-ink: #4E625B;
  --faq-accent: var(--whistle-ink);
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  padding: clamp(34px, 6vw, 64px) 0 clamp(30px, 5vw, 52px);
  border-bottom: 1px solid var(--line-yellow);
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tex);
  pointer-events: none;
}

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

.page-faq .faq-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

.page-faq .faq-crumb a {
  color: var(--blue-soft);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.page-faq .faq-crumb a:hover,
.page-faq .faq-crumb a:focus-visible {
  color: var(--whistle);
}

.page-faq .faq-crumb__sep {
  color: var(--muted);
}

.page-faq .faq-hero .eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--whistle);
}

.page-faq .faq-hero__title {
  margin: 0 0 18px;
  max-width: 20ch;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 6.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -.012em;
  color: var(--white);
}

.page-faq .faq-hero__lede {
  margin: 0 0 26px;
  max-width: 62ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  color: #C6D2CD;
}

.page-faq .faq-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 580px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--whistle);
  background: rgba(255, 255, 255, .03);
  border-radius: 2px;
}

.page-faq .faq-search__label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--whistle);
}

.page-faq .faq-search__input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-yellow);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.page-faq .faq-search__input::placeholder {
  color: var(--muted);
}

.page-faq .faq-search__input:focus-visible {
  outline: 2px solid var(--whistle);
  outline-offset: 2px;
  border-color: var(--whistle);
}

/* ---------- 主体骨架 ---------- */
.page-faq .faq-body {
  background: var(--paper);
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 64px;
}

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

/* ---------- 左侧索引 ---------- */
.page-faq .faq-side {
  min-width: 0;
}

.page-faq .faq-side__label {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faq-accent);
}

.page-faq .faq-index {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.page-faq .faq-index a {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 9px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 1px;
  color: var(--faq-sub-ink);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.page-faq .faq-index a:hover,
.page-faq .faq-index a:focus-visible {
  background: rgba(18, 63, 54, .07);
  color: var(--ink);
}

.page-faq .faq-index a.is-active {
  border-left-color: var(--whistle);
  background: rgba(233, 255, 77, .16);
  color: var(--ink);
  font-weight: 700;
}

.page-faq .faq-index a .num {
  flex: 0 0 auto;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--faq-accent);
}

/* ---------- 答案区块 ---------- */
.page-faq .faq-block {
  margin-bottom: 38px;
  min-width: 0;
}

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

.page-faq .faq-block__head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.page-faq .faq-block__num {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--faq-accent);
}

.page-faq .faq-block__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.008em;
  color: var(--ink);
}

.page-faq .faq-block__intro {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.72;
  color: var(--faq-sub-ink);
}

/* ---------- 折叠面板 ---------- */
.page-faq .faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule);
  border-radius: 2px;
  background: var(--faq-card);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-faq .faq-item[open] {
  border-left-color: var(--whistle);
  background: #FDFEFB;
}

.page-faq .faq-item__sum {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 44px 15px 15px;
  cursor: pointer;
  list-style: none;
}

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

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

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

.page-faq .faq-item__q {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--faq-accent);
}

.page-faq .faq-item[open] .faq-item__q {
  color: #7E9B0F;
}

.page-faq .faq-item__title {
  flex: 1 1 auto;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.page-faq .faq-item__toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
}

.page-faq .faq-item__toggle::before,
.page-faq .faq-item__toggle::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}

.page-faq .faq-item__toggle::before {
  left: 0;
  top: 5px;
  width: 12px;
  height: 2px;
}

.page-faq .faq-item__toggle::after {
  left: 5px;
  top: 0;
  width: 2px;
  height: 12px;
}

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

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

.page-faq .faq-item__body {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--rule);
}

.page-faq .faq-item__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--faq-body-ink);
}

.page-faq .faq-item__body p + .faq-steps,
.page-faq .faq-item__body p + p {
  margin-top: 12px;
}

/* ---------- 步骤条 ---------- */
.page-faq .faq-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: fstep;
}

.page-faq .faq-item__body p + .faq-steps {
  margin-top: 12px;
}

.page-faq .faq-steps li {
  position: relative;
  counter-increment: fstep;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--faq-body-ink);
}

.page-faq .faq-steps li::before {
  content: counter(fstep);
  position: absolute;
  left: 0;
  top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border: 1px solid var(--faq-accent);
  border-radius: 50%;
  color: var(--faq-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.page-faq .k {
  padding: 0 3px;
  border-radius: 1px;
  background: rgba(233, 255, 77, .32);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 配图 ---------- */
.page-faq .faq-figure {
  margin: 0 0 16px;
}

.page-faq .faq-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--stand);
  object-fit: cover;
}

.page-faq .faq-figure .media__cap {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--muted);
}

.page-faq .faq-figure--side img {
  max-height: 420px;
  object-position: center top;
}

/* ---------- 联系区块 ---------- */
.page-faq .faq-contact {
  padding: 20px 18px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--whistle);
  border-radius: 2px;
  background: var(--night);
  color: var(--white);
}

.page-faq .faq-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-contact__key {
  flex: 0 0 auto;
  min-width: 76px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--whistle);
}

.page-faq .faq-contact__val {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--white);
  word-break: break-all;
}

.page-faq .faq-contact__val--link {
  color: var(--blue-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-yellow);
}

.page-faq .faq-contact__val--link:hover,
.page-faq .faq-contact__val--link:focus-visible {
  color: var(--whistle);
}

.page-faq .faq-contact__note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-faq .faq-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-faq .faq-contact .btn--ghost {
  border-color: var(--whistle);
  color: var(--whistle);
}

.page-faq .faq-contact .btn--quiet {
  color: var(--blue-soft);
}

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
  .page-faq .faq-figure--side {
    float: right;
    width: 40%;
    max-width: 300px;
    margin: 4px 0 16px 24px;
  }

  .page-faq .faq-index {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (max-width: 767px) {
  .page-faq .faq-figure--side {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-layout {
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 96px;
  }

  .page-faq .faq-side {
    position: sticky;
    top: 96px;
    align-self: start;
  }

  .page-faq .faq-index {
    flex-direction: column;
    gap: 1px;
  }

  .page-faq .faq-index a {
    white-space: normal;
    padding: 9px 10px;
  }

  .page-faq .faq-block {
    margin-bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-index a,
  .page-faq .faq-item__toggle::before,
  .page-faq .faq-item__toggle::after,
  .page-faq .faq-crumb a {
    transition: none;
  }
}
