.page-faq {
  --faq-gap: clamp(28px, 5vw, 64px);
  --faq-pad: clamp(20px, 4.5vw, 32px);
  position: relative;
  color: var(--bh-paper);
  font-family: var(--bh-font-body);
  background-color: var(--bh-black);
  background-image:
    linear-gradient(rgba(36, 51, 47, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 51, 47, 0.55) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
  overflow-x: hidden;
}

.page-faq a {
  color: var(--bh-cyan);
}

.page-faq .faq-topbar {
  padding-top: clamp(22px, 4vw, 38px);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  padding-block: clamp(36px, 7vw, 84px) clamp(24px, 4vw, 40px);
  position: relative;
}

.page-faq .faq-hero__inner {
  display: grid;
  gap: 20px;
  max-width: 900px;
}

.page-faq .faq-hero__inner .bh-display {
  margin: 0;
  line-height: 1.02;
}

.page-faq .faq-hero__inner .bh-lede {
  max-width: 68ch;
  color: var(--bh-muted);
}

/* 首屏右侧斜切色块装饰 */
.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  top: 12%;
  right: -80px;
  width: clamp(180px, 26vw, 320px);
  height: clamp(180px, 26vw, 320px);
  background: linear-gradient(135deg, rgba(53, 230, 208, 0.16), rgba(255, 122, 47, 0.08) 65%, transparent);
  border-radius: 26% 74% 58% 42% / 42% 38% 62% 58%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 顶部横向图 ---------- */
.page-faq .faq-banner {
  margin: 0 auto;
  padding-inline: clamp(20px, 4.5vw, 32px);
  max-width: calc(var(--bh-shell) + 64px);
}

.page-faq .faq-banner .bh-media {
  border-radius: var(--bh-radius-lg);
  overflow: hidden;
}

.page-faq .faq-banner .bh-media__caption {
  color: var(--bh-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
}

/* ---------- 章节头 ---------- */
.page-faq .faq-section-head {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: clamp(28px, 4.5vw, 48px);
}

.page-faq .faq-section-head .bh-index {
  justify-self: start;
}

.page-faq .faq-section-title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
  color: var(--bh-paper);
}

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

/* ---------- 设备切换 ---------- */
.page-faq .faq-tabs .bh-tabs__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.page-faq .faq-panel {
  padding: clamp(22px, 3.4vw, 34px);
  background: linear-gradient(150deg, rgba(15, 42, 36, 0.92), rgba(10, 15, 14, 0.95));
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  position: relative;
  overflow: hidden;
}

.page-faq .faq-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 84px;
  height: 1px;
  background: var(--bh-cyan);
}

.page-faq .faq-panel[hidden] {
  display: none;
}

.page-faq .faq-panel__lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--bh-paper);
}

/* ---------- 通用小列表 ---------- */
.page-faq .faq-bullets {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-faq .faq-bullets > li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--bh-muted);
}

.page-faq .faq-bullets > li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  background: var(--bh-cyan);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(53, 230, 208, 0.12);
}

.page-faq .faq-bullets--check > li::before {
  background: var(--bh-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.14);
}

/* ---------- 编号排查列表 ---------- */
.page-faq .faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: faqitem;
}

.page-faq .faq-item {
  position: relative;
  display: grid;
  gap: 14px;
  padding-block: clamp(36px, 5.5vw, 64px);
  border-top: 1px solid var(--bh-line);
}

.page-faq .faq-item:last-child {
  border-bottom: 1px solid var(--bh-line);
}

.page-faq .faq-item::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--bh-cyan), transparent);
  transition: width 0.5s var(--bh-ease);
}

.page-faq .faq-item:hover::after,
.page-faq .faq-item:focus-within::after {
  width: 46%;
}

.page-faq .faq-item__num {
  font-family: var(--bh-font-mono);
  font-weight: 500;
  font-size: clamp(44px, 9vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: rgba(53, 230, 208, 0.42);
  transition: color 0.35s var(--bh-ease), text-shadow 0.35s var(--bh-ease);
}

.page-faq .faq-item:hover .faq-item__num,
.page-faq .faq-item:focus-within .faq-item__num {
  color: var(--bh-cyan);
  text-shadow: 0 0 22px rgba(53, 230, 208, 0.35);
}

.page-faq .faq-item__body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.page-faq .faq-item__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.2;
  color: var(--bh-paper);
}

.page-faq .faq-item__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--bh-muted);
  max-width: 62ch;
}

.page-faq .faq-item__hint {
  margin: 6px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--bh-orange);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--bh-muted);
  max-width: 62ch;
}

.page-faq .faq-item__hint .bh-num {
  color: var(--bh-paper);
  font-weight: 500;
}

/* 步骤列表 */
.page-faq .faq-steps {
  list-style: none;
  counter-reset: step;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 66ch;
}

.page-faq .faq-steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--bh-muted);
}

.page-faq .faq-steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border: 1px solid rgba(53, 230, 208, 0.45);
  border-radius: 50%;
  font-family: var(--bh-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--bh-cyan);
  background: rgba(53, 230, 208, 0.06);
}

.page-faq .faq-steps > li a {
  color: var(--bh-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* 直达链接带 */
.page-faq .faq-direct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-top: 6px;
  padding: 9px 16px;
  border: 1px dashed rgba(53, 230, 208, 0.55);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--bh-cyan);
  background: transparent;
  transition: background-color 0.28s var(--bh-ease), border-color 0.28s var(--bh-ease);
}

.page-faq .faq-direct::after {
  content: "→";
  font-family: var(--bh-font-mono);
  transition: transform 0.28s var(--bh-ease);
}

.page-faq .faq-direct:hover,
.page-faq .faq-direct:focus-visible {
  background: rgba(53, 230, 208, 0.08);
  border-style: solid;
  border-color: var(--bh-cyan);
}

.page-faq .faq-direct:hover::after,
.page-faq .faq-direct:focus-visible::after {
  transform: translateX(4px);
}

/* 图文条目 */
.page-faq .faq-item--split .faq-item__body {
  gap: 20px;
}

.page-faq .faq-item__media {
  margin: 0;
  max-width: 360px;
}

.page-faq .faq-item__media .bh-media {
  border-radius: var(--bh-radius);
  overflow: hidden;
}

.page-faq .faq-item__media .bh-media__caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--bh-muted);
}

/* ---------- 联系区 ---------- */
.page-faq .faq-contact__grid {
  display: grid;
  gap: 28px;
}

.page-faq .faq-contact__copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.page-faq .faq-contact__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  color: var(--bh-paper);
}

.page-faq .faq-contact__copy > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--bh-muted);
  max-width: 62ch;
}

.page-faq .faq-contact__row {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--bh-line);
}

.page-faq .faq-contact__row .bh-contact-item__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bh-cyan);
}

.page-faq .faq-contact__value {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--bh-paper);
  word-break: break-word;
}

.page-faq .faq-copy {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: rgba(23, 64, 58, 0.6);
  border: 1px solid var(--bh-line);
  border-radius: 999px;
  color: var(--bh-paper);
  font-family: var(--bh-font-mono);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.26s var(--bh-ease), background-color 0.26s var(--bh-ease), box-shadow 0.26s var(--bh-ease);
}

.page-faq .faq-copy::after {
  content: "复制";
  font-family: var(--bh-font-body);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--bh-cyan);
}

.page-faq .faq-copy:hover,
.page-faq .faq-copy:focus-visible {
  border-color: var(--bh-cyan);
  background: rgba(53, 230, 208, 0.1);
  box-shadow: 0 0 0 3px rgba(53, 230, 208, 0.12);
}

.page-faq .faq-copy.is-ok,
.page-faq .faq-copy.is-ok::after {
  color: var(--bh-cyan);
}

.page-faq .faq-copy.is-fail,
.page-faq .faq-copy.is-fail::after {
  color: var(--bh-rose);
}

.page-faq .faq-copy-status {
  font-size: 13px;
  color: var(--bh-muted);
}

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

.page-faq .faq-contact__panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(24px, 3.6vw, 34px);
  background: linear-gradient(160deg, var(--bh-ink) 0%, rgba(10, 15, 14, 0.96) 100%);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  position: relative;
  overflow: hidden;
}

.page-faq .faq-contact__panel::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 42% 58% 62% 38% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 40% 40%, rgba(53, 230, 208, 0.22), transparent 68%);
  pointer-events: none;
}

.page-faq .faq-contact__panel .bh-tag {
  justify-self: start;
}

.page-faq .faq-contact__panel .faq-bullets {
  margin-top: 0;
}

.page-faq .faq-contact__cta {
  justify-self: start;
  margin-top: 4px;
  text-decoration: none;
}

/* ---------- 中屏适配 ---------- */
@media (min-width: 760px) {
  .page-faq .faq-item {
    grid-template-columns: 118px 1fr;
    gap: 32px;
    align-items: start;
  }

  .page-faq .faq-item__num {
    position: sticky;
    top: 96px;
  }

  .page-faq .faq-item__body {
    max-width: 760px;
  }
}

/* ---------- 大屏适配 ---------- */
@media (min-width: 960px) {
  .page-faq .faq-item {
    grid-template-columns: 148px 1fr;
    gap: 44px;
  }

  .page-faq .faq-item--split .faq-item__body {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 100%;
  }

  .page-faq .faq-item--split .faq-item__media {
    max-width: 100%;
    position: sticky;
    top: 96px;
  }

  .page-faq .faq-contact__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}

/* ---------- 窄屏收拢 ---------- */
@media (max-width: 599px) {
  .page-faq .faq-hero::after {
    display: none;
  }

  .page-faq .faq-item__num {
    font-size: 34px;
  }

  .page-faq .faq-steps > li {
    grid-template-columns: 22px 1fr;
    gap: 10px;
    font-size: 15px;
  }

  .page-faq .faq-steps > li::before {
    width: 20px;
    height: 20px;
    font-size: 9.5px;
  }

  .page-faq .faq-contact__panel,
  .page-faq .faq-panel {
    padding: 20px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item__num,
  .page-faq .faq-direct,
  .page-faq .faq-direct::after,
  .page-faq .faq-copy,
  .page-faq .faq-item::after {
    transition: none;
  }
}
