.page-faq {
  --faq-panel: #ffffff;
  --faq-cut: 18px;
  --faq-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  background: var(--paper-50);
  color: var(--ink-900);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */

.page-faq .faq-hero {
  position: relative;
  background: var(--indigo-950);
  color: var(--paper-50);
  padding-block: clamp(88px, 13vw, 148px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.page-faq .faq-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-faq .faq-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(104deg, rgba(8, 12, 36, 0.97) 0%, rgba(8, 12, 36, 0.82) 44%, rgba(8, 12, 36, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 12, 36, 0.2) 40%, var(--indigo-950) 100%);
}

.page-faq .faq-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero__note {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: 0.42em;
  font-size: 12px;
  color: rgba(154, 163, 190, 0.9);
  display: none;
  z-index: 2;
}

.page-faq .faq-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.page-faq .faq-crumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: rgba(154, 163, 190, 0.62);
}

.page-faq .faq-crumb a {
  color: rgba(247, 244, 239, 0.74);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.page-faq .faq-crumb a:hover,
.page-faq .faq-crumb a:focus-visible {
  color: var(--cyan-400);
  border-bottom-color: currentColor;
}

.page-faq .faq-crumb [aria-current="page"] {
  color: rgba(247, 244, 239, 0.96);
}

.page-faq .faq-hero__eyebrow {
  color: var(--cyan-400);
}

.page-faq .faq-hero__title {
  margin: 16px 0 0;
  max-width: 20em;
  font-size: clamp(29px, 5vw, 58px);
  line-height: 1.16;
  letter-spacing: 0.005em;
}

.page-faq .faq-hero__lead {
  margin: 26px 0 0;
  max-width: 640px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
  color: rgba(247, 244, 239, 0.84);
}

.page-faq .faq-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(154, 163, 190, 0.24);
}

.page-faq .faq-hero__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-faq .faq-hero__stat-v {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}

.page-faq .faq-hero__stat-k {
  font-size: 13px;
  color: rgba(247, 244, 239, 0.72);
  letter-spacing: 0.04em;
}

/* ---------- 主体分栏 ---------- */

.page-faq .faq-body {
  padding-block: clamp(44px, 6vw, 84px) clamp(64px, 9vw, 120px);
  background:
    linear-gradient(188deg, rgba(255, 122, 26, 0.05) 0%, rgba(255, 122, 26, 0) 26%),
    var(--paper-50);
}

.page-faq .faq-body__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 60px);
}

/* ---------- 左侧索引 ---------- */

.page-faq .faq-index__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-index__list a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
  background: var(--faq-panel);
  border: 1px solid var(--line-200);
  border-left: 3px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.page-faq .faq-index__list a:hover,
.page-faq .faq-index__list a:focus-visible {
  border-left-color: var(--ember-500);
  background: #fff;
  color: var(--ember-700);
}

.page-faq .faq-index__no {
  font-size: 12px;
  color: var(--ember-700);
  letter-spacing: 0.06em;
}

.page-faq .faq-index__tip {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #5c6379;
  max-width: 22em;
}

/* ---------- 搜索 ---------- */

.page-faq .faq-search {
  padding: 18px 20px 20px;
  margin-bottom: clamp(30px, 4vw, 48px);
  background: var(--faq-panel);
  border: 1px solid var(--line-200);
  box-shadow: 0 20px 44px -38px rgba(18, 20, 28, 0.75);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--faq-cut)), calc(100% - var(--faq-cut)) 100%, 0 100%);
}

.page-faq .faq-search__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ember-700);
}

.page-faq .faq-search__input {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-900);
  background: var(--paper-50);
  border: 1px solid var(--line-200);
  border-radius: 2px;
  transition: border-color 180ms ease, background 180ms ease;
}

.page-faq .faq-search__input::placeholder {
  color: #8b91a6;
}

.page-faq .faq-search__input:hover {
  border-color: #c9cdd8;
}

.page-faq .faq-search__input:focus {
  background: #fff;
  border-color: var(--cyan-400);
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

/* ---------- 分组 ---------- */

.page-faq .faq-group {
  position: relative;
}

.page-faq .faq-group + .faq-group {
  margin-top: clamp(40px, 6vw, 76px);
  padding-top: clamp(36px, 5vw, 62px);
}

.page-faq .faq-group + .faq-group::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ember-500) 0 64px, var(--line-200) 64px 100%);
  transform: skewY(-1.4deg);
  transform-origin: left center;
}

.page-faq .faq-group__head {
  position: relative;
  margin-bottom: clamp(20px, 3vw, 30px);
  padding-right: 0;
}

.page-faq .faq-group__no {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ember-700);
}

.page-faq .faq-group__title {
  margin: 6px 0 0;
  font-size: clamp(25px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--ink-900);
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.page-faq .faq-group__sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #5c6379;
  max-width: 34em;
}

.page-faq .faq-group__note {
  position: absolute;
  top: 0;
  right: 0;
  writing-mode: vertical-rl;
  letter-spacing: 0.36em;
  font-size: 11px;
  color: var(--ember-700);
  display: none;
}

.page-faq .faq-group__media {
  margin: 0 0 clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-200);
  background: var(--indigo-800);
  overflow: hidden;
}

.page-faq .faq-group__media img {
  display: block;
  width: 100%;
  height: clamp(150px, 24vw, 236px);
  object-fit: cover;
}

.page-faq .faq-group__media .wk-media__caption {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist-400);
  background: var(--indigo-950);
}

/* ---------- 问答条目 ---------- */

.page-faq .faq-item {
  background: var(--faq-panel);
  border: 1px solid var(--line-200);
  border-radius: 2px;
  box-shadow: 0 18px 40px -36px rgba(18, 20, 28, 0.7);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.page-faq .faq-item + .faq-item {
  margin-top: 10px;
}

.page-faq .faq-item[open] {
  border-color: rgba(255, 122, 26, 0.52);
  box-shadow: 0 26px 56px -40px rgba(199, 67, 10, 0.55);
}

.page-faq .faq-item__q {
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 0;
}

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

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

.page-faq .faq-item__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: var(--row-dense);
  padding: 12px 20px;
  transition: background 200ms ease;
}

.page-faq .faq-item__q:hover .faq-item__head,
.page-faq .faq-item__q:focus-visible .faq-item__head {
  background: rgba(255, 122, 26, 0.07);
}

.page-faq .faq-item__mark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--indigo-950);
  background: var(--cyan-400);
  padding: 3px 7px;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.page-faq .faq-item[open] .faq-item__mark {
  background: var(--ember-500);
}

.page-faq .faq-item__text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.62;
  color: var(--ink-900);
}

.page-faq .faq-item__toggle {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ember-500);
  border-bottom: 2px solid var(--ember-500);
  transform: rotate(45deg);
  transition: transform 260ms var(--faq-ease);
}

.page-faq .faq-item[open] .faq-item__toggle {
  transform: rotate(225deg);
}

.page-faq .faq-item__a {
  margin: 0 20px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line-200);
  font-size: 15.5px;
  line-height: 1.92;
  color: var(--ink-900);
  animation: faq-open 320ms var(--faq-ease) both;
}

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

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

.page-faq .faq-item__anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ember-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.page-faq .faq-item__anchor:hover,
.page-faq .faq-item__anchor:focus-visible {
  color: var(--ember-500);
  border-bottom-color: currentColor;
}

/* ---------- 底部去向 ---------- */

.page-faq .faq-next {
  position: relative;
  background: var(--indigo-950);
  color: var(--paper-50);
  padding-block: clamp(56px, 8vw, 100px);
  overflow: hidden;
}

.page-faq .faq-next::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(255, 122, 26, 0.18) 0%, rgba(255, 122, 26, 0) 44%, rgba(47, 224, 208, 0.14) 100%);
  pointer-events: none;
}

.page-faq .faq-next__inner {
  position: relative;
  z-index: 1;
}

.page-faq .faq-next__eyebrow {
  color: var(--cyan-400);
}

.page-faq .faq-next__title {
  margin: 14px 0 0;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: 0.01em;
}

.page-faq .faq-next__lead {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(247, 244, 239, 0.78);
}

.page-faq .faq-next__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 46px);
}

.page-faq .faq-next__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 26px;
  background: rgba(20, 27, 69, 0.62);
  border: 1px solid var(--line-dark);
  color: var(--paper-50);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms var(--faq-ease);
}

.page-faq .faq-next__card:hover,
.page-faq .faq-next__card:focus-visible {
  background: rgba(255, 122, 26, 0.16);
  border-color: var(--ember-500);
  transform: translateY(-3px);
}

.page-faq .faq-next__card-k {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan-400);
}

.page-faq .faq-next__card-t {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.page-faq .faq-next__card-d {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.66);
}

/* ---------- 焦点可见性 ---------- */

.page-faq a:focus-visible,
.page-faq summary:focus-visible,
.page-faq input:focus-visible,
.page-faq details:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 599px) {
  .page-faq .faq-item__head {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 12px;
    align-items: start;
    padding: 14px 16px;
  }

  .page-faq .faq-item__mark {
    grid-column: 1;
    grid-row: 1;
  }

  .page-faq .faq-item__text {
    grid-column: 2;
    grid-row: 1;
    font-size: 15px;
  }

  .page-faq .faq-item__toggle {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .page-faq .faq-item__a {
    margin: 0 16px;
    font-size: 15px;
  }
}

@media (min-width: 960px) {
  .page-faq .faq-hero__note {
    display: block;
  }

  .page-faq .faq-body__grid {
    grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr);
    align-items: start;
  }

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

  .page-faq .faq-index__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 16px;
  }

  .page-faq .faq-index__list a {
    width: 100%;
    padding: 11px 8px 11px 14px;
  }

  .page-faq .faq-group__head {
    padding-right: 66px;
  }

  .page-faq .faq-group__note {
    display: block;
  }

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

@media (min-width: 1200px) {
  .page-faq .faq-hero__title {
    max-width: 17em;
  }

  .page-faq .faq-hero__stats {
    margin-top: 54px;
  }
}

/* ---------- 动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item__a {
    animation: none;
  }

  .page-faq .faq-item__toggle,
  .page-faq .faq-next__card,
  .page-faq .faq-index__list a {
    transition: none;
  }
}
