.page-faq {
  background: var(--rice-white);
  color: var(--ink-900);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sea-800);
  color: var(--rice-white);
  padding: clamp(22px, 4vw, 44px) 0 clamp(40px, 6vw, 84px);
  border-bottom-left-radius: var(--r-lg);
  border-bottom-right-radius: var(--r-lg);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -22%;
  top: -26%;
  width: 62%;
  height: 132%;
  background: var(--turf-600);
  opacity: .46;
  transform: rotate(9deg);
  border-radius: var(--r-lg);
}

.page-faq .faq-hero__crumbs {
  margin-bottom: 26px;
}

.page-faq .faq-hero__crumbs .crumb {
  color: rgba(245, 242, 233, .72);
  text-decoration: none;
}

.page-faq .faq-hero__crumbs .crumb:hover {
  color: var(--referee-yellow);
}

.page-faq .faq-hero__grid {
  display: grid;
  gap: 28px;
}

.page-faq .faq-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 5.6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.page-faq .faq-hero .eyebrow {
  color: var(--referee-yellow);
}

.page-faq .faq-hero__lede {
  max-width: 54ch;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.78;
  color: rgba(245, 242, 233, .86);
}

.page-faq .faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-faq .faq-hero__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}

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

@media (min-width: 900px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: 1.12fr .88fr;
    gap: 52px;
    align-items: center;
  }
}

/* ---------- 数据带 ---------- */
.page-faq .faq-figures__band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  padding: 26px clamp(20px, 3vw, 36px);
  border-radius: var(--r-md);
}

.page-faq .faq-figure {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-faq .faq-figure .data-band__value {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1;
}

.page-faq .faq-figure .data-band__label {
  font-size: 14px;
  line-height: 1.55;
}

@media (min-width: 760px) {
  .page-faq .faq-figures__band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 28px;
    padding: 30px clamp(24px, 3vw, 40px);
  }
}

/* ---------- 主体布局 ---------- */
.page-faq .faq-layout {
  display: grid;
  gap: 32px;
}

.page-faq .faq-toc,
.page-faq .faq-panels {
  min-width: 0;
}

@media (min-width: 960px) {
  .page-faq .faq-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

/* ---------- 分组目录 ---------- */
.page-faq .faq-toc__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--stone-500);
}

.page-faq .faq-toc__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
}

.page-faq .faq-toc__link {
  position: relative;
  display: block;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--mist-200);
  color: var(--ink-900);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.page-faq .faq-toc__link::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--referee-yellow);
  transform: translateY(-50%) scaleY(0);
  transition: transform .2s var(--ease);
}

.page-faq .faq-toc__link:hover,
.page-faq .faq-toc__link:focus-visible {
  background: var(--turf-600);
  color: #fff;
}

.page-faq .faq-toc__link:hover::before,
.page-faq .faq-toc__link:focus-visible::before {
  transform: translateY(-50%) scaleY(1);
}

.page-faq .faq-toc__link:focus-visible {
  outline: 2px solid var(--referee-yellow);
  outline-offset: 2px;
}

@media (min-width: 960px) {
  .page-faq .faq-toc {
    position: sticky;
    top: calc(var(--topbar-h) + 28px);
  }

  .page-faq .faq-toc__list {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-faq .faq-toc__link {
    padding: 10px 14px 10px 18px;
    border-radius: var(--r-sm);
    background: transparent;
  }

  .page-faq .faq-toc__link:hover,
  .page-faq .faq-toc__link:focus-visible {
    background: var(--mist-200);
    color: var(--ink-900);
  }
}

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

.page-faq .faq-group + .faq-group {
  margin-top: 72px;
}

@media (min-width: 960px) {
  .page-faq .faq-group + .faq-group {
    margin-top: 92px;
  }
}

.page-faq .faq-group__index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--terracotta);
}

.page-faq .faq-group__title {
  margin: 10px 0 12px;
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.36;
}

.page-faq .faq-group__lede {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--stone-500);
}

/* ---------- 操作步骤 ---------- */
.page-faq .faq-steps {
  counter-reset: faqstep;
  display: grid;
  gap: 14px;
  margin: 26px 0 30px;
  padding: 22px clamp(18px, 3vw, 28px);
  list-style: none;
  background: var(--mist-200);
  border-radius: var(--r-md);
}

.page-faq .faq-steps li {
  position: relative;
  padding-left: 42px;
  font-size: 15.5px;
  line-height: 1.7;
}

.page-faq .faq-steps li::before {
  counter-increment: faqstep;
  content: counter(faqstep);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--turf-900);
  color: var(--referee-yellow);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

@media (min-width: 760px) {
  .page-faq .faq-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
  }
}

/* ---------- 问答折叠 ---------- */
.page-faq .faq-item {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transition: box-shadow .24s var(--ease), transform .24s var(--ease);
}

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

.page-faq .faq-item[open] {
  box-shadow: var(--shadow-2);
}

@media (hover: hover) {
  .page-faq .faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
  }
}

.page-faq .faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px clamp(18px, 3vw, 26px);
  border-radius: var(--r-md);
  list-style: none;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-900);
}

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

.page-faq .faq-item__q:focus-visible {
  outline: 2px solid var(--turf-600);
  outline-offset: 3px;
}

.page-faq .faq-item__icon {
  position: relative;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--mist-200);
  transition: background .24s var(--ease);
}

.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--turf-900);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}

.page-faq .faq-item__icon::before {
  width: 12px;
  height: 2px;
}

.page-faq .faq-item__icon::after {
  width: 2px;
  height: 12px;
}

.page-faq .faq-item[open] .faq-item__icon {
  background: var(--referee-yellow);
}

.page-faq .faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.page-faq .faq-item__a {
  padding: 0 clamp(18px, 3vw, 26px) 24px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-900);
  animation: faq-answer-in .26s var(--ease) both;
}

.page-faq .faq-item__a p {
  margin: 0;
  max-width: 68ch;
}

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

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

/* ---------- 胶囊跳转 ---------- */
.page-faq .faq-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--mist-200);
  color: var(--turf-900);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.page-faq .faq-pill::after {
  content: "→";
  font-family: var(--font-mono);
}

.page-faq .faq-pill:hover {
  background: var(--turf-600);
  color: #fff;
}

.page-faq .faq-pill:focus-visible {
  outline: 2px solid var(--turf-600);
  outline-offset: 2px;
}

/* ---------- 客服渠道 ---------- */
.page-faq .faq-contact {
  display: grid;
  gap: 22px;
  margin: 26px 0 30px;
}

.page-faq .faq-contact__card {
  background: var(--turf-900);
  color: var(--rice-white);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 36px);
}

.page-faq .faq-contact__eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--referee-yellow);
}

.page-faq .faq-contact__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-contact__row {
  display: grid;
  gap: 4px;
}

.page-faq .faq-contact__label {
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(245, 242, 233, .62);
}

.page-faq .faq-contact__value {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.page-faq .faq-contact__value--mono {
  font-family: var(--font-mono);
  letter-spacing: .01em;
}

.page-faq .faq-contact__note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 242, 233, .18);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 242, 233, .74);
}

.page-faq .faq-contact__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

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

@media (min-width: 760px) {
  .page-faq .faq-contact {
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    align-items: stretch;
  }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-toc__link,
  .page-faq .faq-toc__link::before,
  .page-faq .faq-item__icon,
  .page-faq .faq-item__icon::before,
  .page-faq .faq-item__icon::after,
  .page-faq .faq-pill {
    transition: none;
  }

  .page-faq .faq-item:hover {
    transform: none;
  }

  .page-faq .faq-item__a {
    animation: none;
  }
}
