.page-faq {
  --faq-line: rgba(242, 237, 227, .12);
  --faq-line-strong: rgba(242, 237, 227, .22);
  --faq-wash: rgba(184, 255, 60, .07);
  --faq-glow: rgba(123, 92, 255, .26);
}

.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--jh-header-h) + clamp(28px, 5vw, 64px));
  padding-bottom: clamp(36px, 6vw, 76px);
  border-bottom: 1px solid var(--faq-line);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 80% at 92% -12%, var(--faq-glow) 0%, rgba(123, 92, 255, 0) 58%),
    linear-gradient(143deg, var(--faq-wash) 0%, rgba(184, 255, 60, 0) 46%);
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -34%;
  width: clamp(240px, 42vw, 560px);
  aspect-ratio: 1;
  border-radius: 46% 54% 62% 38% / 52% 44% 56% 48%;
  background: linear-gradient(150deg, rgba(194, 112, 63, .16), rgba(79, 107, 74, .12));
  pointer-events: none;
}

.page-faq .faq-hero .jh-crumbs {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  margin-top: clamp(20px, 3vw, 38px);
}

.page-faq .faq-hero__title {
  margin: 14px 0 0;
  font-family: var(--jh-font-display);
  font-size: clamp(2.15rem, 8.4vw, 4.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--jh-cream);
}

.page-faq .faq-hero__lead {
  margin: clamp(16px, 2.4vw, 24px) 0 0;
  max-width: 46ch;
  color: var(--jh-mist);
  font-size: clamp(1rem, 1.55vw, 1.1rem);
  line-height: 1.78;
}

.page-faq .faq-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 30px);
}

.page-faq .faq-hero__frame {
  margin: 0;
  border-radius: var(--jh-radius);
  overflow: hidden;
  border: 1px solid var(--faq-line-strong);
}

.page-faq .faq-hero__frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 12 / 7;
}

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

/* 锚点索引条 */
.page-faq .faq-index {
  position: sticky;
  top: var(--jh-header-h);
  z-index: 40;
  background: rgba(7, 9, 12, .94);
  border-bottom: 1px solid var(--faq-line);
  backdrop-filter: blur(10px);
}

.page-faq .faq-index__list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-index__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 14px;
  border: 1px solid var(--faq-line-strong);
  border-radius: 999px;
  color: var(--jh-mist);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--jh-ease), border-color .2s var(--jh-ease), background-color .2s var(--jh-ease);
}

.page-faq .faq-index__link .jh-index__num {
  color: var(--jh-violet);
  font-size: 12px;
}

.page-faq .faq-index__link:hover,
.page-faq .faq-index__link:focus-visible {
  border-color: var(--jh-green);
  color: var(--jh-cream);
}

.page-faq .faq-index__link.is-active,
.page-faq .faq-index__link[aria-current="true"] {
  background: var(--jh-green);
  border-color: var(--jh-green);
  color: var(--jh-black);
}

.page-faq .faq-index__link.is-active .jh-index__num,
.page-faq .faq-index__link[aria-current="true"] .jh-index__num {
  color: var(--jh-black);
}

/* 区块通用 */
.page-faq .faq-block {
  scroll-margin-top: calc(var(--jh-header-h) + 76px);
}

.page-faq .faq-block__head {
  max-width: 720px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.page-faq .faq-block__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
}

.page-faq .faq-block__marker {
  margin-bottom: 14px;
}

.page-faq .faq-block__title {
  margin: 0;
  color: var(--jh-cream);
}

.page-faq .faq-block__intro {
  margin: 14px 0 0;
  color: var(--jh-mist);
  max-width: 62ch;
}

.page-faq .faq-block__thumb {
  margin: 0;
  border-radius: var(--jh-radius);
  overflow: hidden;
  border: 1px solid var(--faq-line-strong);
}

.page-faq .faq-block__thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

@media (min-width: 860px) {
  .page-faq .faq-block__head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }
}

/* 问答条目 */
.page-faq .faq-list {
  border-top: 1px solid var(--faq-line);
}

.page-faq .faq-item {
  border-bottom: 1px solid var(--faq-line);
  transition: background-color .24s var(--jh-ease);
}

.page-faq .faq-item[open] {
  background: linear-gradient(180deg, rgba(18, 22, 28, .82), rgba(18, 22, 28, .34));
}

.page-faq .faq-item__q {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px) clamp(4px, 1vw, 14px);
  cursor: pointer;
  list-style: none;
  color: var(--jh-cream);
  font-family: var(--jh-font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.005em;
}

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

.page-faq .faq-item__q:focus-visible {
  outline: 2px solid var(--jh-green);
  outline-offset: -2px;
}

.page-faq .faq-item__num {
  color: var(--jh-violet);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.9;
}

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

.page-faq .faq-item__chev {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 1px solid var(--faq-line-strong);
  border-radius: 50%;
  transition: border-color .2s var(--jh-ease), background-color .2s var(--jh-ease);
}

.page-faq .faq-item__chev::before,
.page-faq .faq-item__chev::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--jh-green);
  transform: translate(-50%, -50%);
}

.page-faq .faq-item__chev::before {
  width: 10px;
  height: 2px;
}

.page-faq .faq-item__chev::after {
  width: 2px;
  height: 10px;
  transition: transform .24s var(--jh-ease), opacity .24s var(--jh-ease);
}

.page-faq .faq-item[open] .faq-item__chev {
  background: rgba(184, 255, 60, .12);
  border-color: var(--jh-green);
}

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

.page-faq .faq-item__a {
  padding: 0 clamp(4px, 1vw, 14px) clamp(20px, 2.8vw, 30px) 0;
  color: var(--jh-mist);
  font-size: 16px;
  line-height: 1.8;
}

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

.page-faq .faq-item__a p + p,
.page-faq .faq-item__a p + ol {
  margin-top: 12px;
}

.page-faq .faq-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 68ch;
}

.page-faq .faq-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--jh-graphite);
  border: 1px solid var(--faq-line);
  border-radius: var(--jh-radius-sm);
  color: var(--jh-cream);
  font-size: 15px;
  line-height: 1.65;
}

.page-faq .faq-steps__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--jh-green);
  color: var(--jh-black);
  font-size: 12px;
  font-weight: 700;
}

@media (min-width: 960px) {
  .page-faq .faq-item__a {
    margin-inline-start: clamp(110px, 30%, 360px);
  }
}

/* 关注区块的矿物底 */
.page-faq .faq-block--watch {
  background:
    linear-gradient(180deg, rgba(194, 112, 63, .07), rgba(194, 112, 63, 0) 62%),
    linear-gradient(0deg, rgba(123, 92, 255, .05), rgba(123, 92, 255, 0) 70%);
}

/* 转人工区块 */
.page-faq .faq-block--contact {
  border-top: 1px solid var(--faq-line);
  background: linear-gradient(155deg, rgba(79, 107, 74, .16), rgba(7, 9, 12, 0) 64%);
}

.page-faq .faq-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 40px);
}

.page-faq .faq-channels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-faq .faq-channel {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--jh-radius);
  border-left: 3px solid var(--jh-green);
}

.page-faq .faq-channel--alt {
  border-left-color: var(--jh-violet);
}

.page-faq .faq-channel__label {
  margin: 0;
  color: var(--jh-mist);
}

.page-faq .faq-channel__value {
  margin: 10px 0 0;
  color: var(--jh-cream);
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 700;
  letter-spacing: -.01em;
  word-break: break-all;
}

.page-faq .faq-channel__desc {
  margin: 10px 0 0;
  color: var(--jh-mist);
  font-size: 15px;
  line-height: 1.75;
}

.page-faq .faq-checklist {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px dashed var(--faq-line-strong);
  border-radius: var(--jh-radius);
}

.page-faq .faq-checklist__title {
  margin: 0;
  color: var(--jh-cream);
}

.page-faq .faq-checklist__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-faq .faq-checklist__list li {
  position: relative;
  padding-left: 22px;
  color: var(--jh-mist);
  font-size: 15px;
  line-height: 1.7;
}

.page-faq .faq-checklist__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--jh-clay);
}

.page-faq .faq-related {
  padding-top: clamp(4px, 1vw, 10px);
}

.page-faq .faq-related__text {
  margin: 0;
  max-width: 66ch;
  color: var(--jh-mist);
  font-size: 15px;
  line-height: 1.78;
}

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

@media (min-width: 820px) {
  .page-faq .faq-contact__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-faq .faq-contact__head {
    grid-column: 1 / -1;
  }

  .page-faq .faq-channels {
    grid-column: 1;
  }

  .page-faq .faq-checklist {
    grid-column: 2;
  }

  .page-faq .faq-related {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .page-faq .faq-index {
    top: 0;
  }

  .page-faq .faq-item__q {
    gap: 10px;
  }

  .page-faq .faq-item__q .faq-item__chev {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-index__link,
  .page-faq .faq-item__chev,
  .page-faq .faq-item__chev::after {
    transition: none;
  }
}
