.page-faq {
  --faq-panel: rgba(16, 23, 64, 0.55);
  --faq-panel-soft: rgba(42, 49, 112, 0.34);
  --faq-glow: rgba(69, 224, 200, 0.14);
  --faq-line-soft: rgba(199, 207, 228, 0.1);

  display: block;
  box-sizing: border-box;
  padding-inline-end: clamp(16px, 4vw, 32px);
  padding-inline-start: calc(var(--rail-w) + clamp(16px, 4vw, 32px));
  padding-block: calc(var(--status-h) + 28px) clamp(56px, 9vw, 108px);
  background: var(--void-900);
  color: var(--haze);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  overflow-x: clip;
}

.page-faq *,
.page-faq *::before,
.page-faq *::after {
  box-sizing: border-box;
}

.page-faq h1,
.page-faq h2,
.page-faq h3 {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0;
  color: var(--silver-100);
}

.page-faq a {
  color: var(--aurora-500);
  text-decoration: none;
  border-bottom: 1px solid rgba(69, 224, 200, 0.34);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

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

.faq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: radial-gradient(128% 146% at 80% 14%, rgba(42, 49, 112, 0.9) 0%, rgba(16, 23, 64, 0.68) 44%, var(--void-900) 100%);
}

.faq-hero::after {
  content: "";
  position: absolute;
  top: -190px;
  right: -140px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(69, 224, 200, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.faq-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 120px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(243, 199, 120, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.faq-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.faq-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 11, 30, 0.28) 0%, rgba(7, 11, 30, 0.84) 58%, var(--void-900) 100%);
}

.faq-hero__inner {
  position: relative;
  padding-block: clamp(34px, 5vw, 60px) clamp(36px, 5vw, 64px);
}

.faq-hero .yh-breadcrumb {
  margin-bottom: 26px;
}

.faq-hero .yh-eyebrow {
  margin: 0 0 14px;
}

.faq-hero .yh-h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.faq-hero .yh-lead {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--haze);
  font-size: clamp(1rem, 1.4vw, 1.06rem);
}

.faq-hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.faq-hero__jump a {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid var(--line-dark);
  border-bottom-color: var(--line-dark);
  background: rgba(7, 11, 30, 0.4);
  color: var(--haze-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-hero__jump a:hover,
.faq-hero__jump a:focus-visible {
  border-color: var(--line-dark-strong);
  background: rgba(69, 224, 200, 0.08);
  color: var(--aurora-500);
}

/* 首屏高频问题 */

.faq-top {
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}

.faq-top__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.faq-top__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.faq-mini {
  border: 1px solid var(--faq-line-soft);
  background: linear-gradient(168deg, var(--faq-panel-soft), rgba(7, 11, 30, 0.5));
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-mini:hover {
  border-color: rgba(69, 224, 200, 0.32);
}

.faq-mini[open] {
  border-color: var(--line-dark-strong);
  box-shadow: var(--shadow-b);
}

.faq-mini__q {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 15px 42px 15px 16px;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--silver-100);
}

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

.faq-mini__q::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 22px;
  width: 10px;
  height: 1px;
  background: var(--aurora-500);
  box-shadow: 0 0 8px rgba(69, 224, 200, 0.6);
}

.faq-mini__q::before {
  content: "";
  position: absolute;
  right: 20.5px;
  top: 17px;
  width: 1px;
  height: 11px;
  background: var(--aurora-500);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq-mini[open] .faq-mini__q::before {
  transform: scaleY(0);
  opacity: 0;
}

.faq-mini__a {
  margin: 0;
  padding: 0 16px 18px;
  color: var(--haze-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- 主体框架 ---------- */

.faq-shell {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(48px, 7vw, 92px);
}

.faq-index {
  position: sticky;
  top: calc(var(--status-h) + 22px);
  padding-bottom: 8px;
}

.faq-index__label {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold-400);
  text-transform: uppercase;
}

.faq-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-index__link {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--faq-line-soft);
  color: var(--haze-soft);
  font-size: 14.5px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.faq-index__link:hover,
.faq-index__link:focus-visible {
  color: var(--silver-100);
  border-bottom-color: var(--line-dark-strong);
  padding-left: 10px;
}

.faq-index__node {
  justify-self: center;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-300);
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-index__link:hover .faq-index__node,
.faq-index__link:focus-visible .faq-index__node {
  background: var(--aurora-500);
  border-color: var(--aurora-500);
  box-shadow: 0 0 0 4px var(--faq-glow);
}

.faq-index .yh-aside {
  margin-top: 20px;
  border-left: 1px solid var(--line-dark);
  padding-left: 14px;
  color: var(--haze-soft);
  font-size: 13px;
  line-height: 1.75;
}

/* ---------- 问答区块 ---------- */

.faq-body {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 68px);
  min-width: 0;
}

.faq-block {
  scroll-margin-top: calc(var(--status-h) + 26px);
  min-width: 0;
}

.faq-block__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.faq-block__no {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-400);
}

.faq-block .yh-h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.72rem);
}

.faq-block__intro {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--haze-soft);
  font-size: 15.5px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.faq-item {
  border: 1px solid var(--faq-line-soft);
  background: linear-gradient(172deg, var(--faq-panel), rgba(7, 11, 30, 0.42));
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item:hover {
  border-color: rgba(199, 207, 228, 0.28);
}

.faq-item[open] {
  border-color: var(--line-dark-strong);
  box-shadow: var(--shadow-b);
}

.faq-item__q {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  cursor: pointer;
  list-style: none;
  padding: 17px 18px;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--silver-100);
}

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

.faq-item__mark {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border: 1px solid var(--line-300);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-item__mark::before,
.faq-item__mark::after {
  content: "";
  position: absolute;
  background: var(--aurora-500);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq-item__mark::before {
  left: 2px;
  right: 2px;
  top: 6px;
  height: 1px;
}

.faq-item__mark::after {
  top: 2px;
  bottom: 2px;
  left: 6px;
  width: 1px;
}

.faq-item[open] .faq-item__mark {
  border-color: var(--line-dark-strong);
}

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

.faq-item__a {
  padding: 0 20px 20px 48px;
}

.faq-item__a p {
  margin: 0;
  max-width: 60ch;
  color: var(--haze-soft);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---------- 产品线卡片 ---------- */

.faq-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.faq-tool {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid var(--line-dark);
  background: linear-gradient(158deg, var(--faq-panel-soft), rgba(7, 11, 30, 0.4));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.faq-tool::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 34px;
  height: 2px;
  background: var(--gold-400);
  opacity: 0.7;
}

.faq-tool:hover {
  border-color: rgba(69, 224, 200, 0.34);
  transform: translateY(-2px);
}

.faq-tool__name {
  font-size: 15.5px;
  color: var(--silver-100);
}

.faq-tool__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.faq-tool__list li {
  position: relative;
  padding: 7px 0 7px 16px;
  border-bottom: 1px solid var(--faq-line-soft);
  color: var(--haze-soft);
  font-size: 14px;
  line-height: 1.7;
}

.faq-tool__list li:last-child {
  border-bottom: 0;
}

.faq-tool__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--aurora-500);
  border-radius: 50%;
}

.faq-tools__note {
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px dashed var(--line-dark);
  color: var(--haze-soft);
  font-size: 14.5px;
}

/* ---------- 自助排查清单 ---------- */

.faq-checkgroup {
  margin-top: 30px;
}

.faq-checkgroup__title {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--aurora-500);
}

.faq-check {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.faq-check__item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 13px 16px;
  border: 1px solid var(--faq-line-soft);
  background: rgba(16, 23, 64, 0.28);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.faq-check__item:hover {
  border-color: rgba(199, 207, 228, 0.3);
}

.faq-check__item:focus-within {
  border-color: var(--line-dark-strong);
}

.faq-check__item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.faq-check__box {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid var(--line-300);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq-check__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--void-900);
  border-bottom: 2px solid var(--void-900);
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.faq-check__item input:checked + .faq-check__box {
  background: var(--aurora-500);
  border-color: var(--aurora-500);
}

.faq-check__item input:checked + .faq-check__box::after {
  transform: rotate(45deg) scale(1);
  opacity: 1;
}

.faq-check__txt {
  color: var(--haze-soft);
  font-size: 15px;
  line-height: 1.75;
  transition: color 0.25s var(--ease);
}

.faq-check__item input:checked ~ .faq-check__txt {
  color: var(--haze);
}

/* ---------- 人工支持 ---------- */

.faq-support {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  margin-top: 26px;
}

.faq-support .yh-p {
  margin: 0;
  color: var(--haze-soft);
  font-size: 15.5px;
}

.faq-steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding-left: 4px;
}

.faq-steps__item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 36px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(69, 224, 200, 0.4), rgba(69, 224, 200, 0));
}

.faq-steps__item:last-child::before {
  display: none;
}

.faq-steps__no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-dark-strong);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--gold-400);
}

.faq-steps__item .yh-h3 {
  font-size: 15.5px;
}

.faq-steps__item p {
  margin: 8px 0 0;
  color: var(--haze-soft);
  font-size: 15px;
}

.faq-support__media {
  margin: 0;
}

.faq-support__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.faq-support__foot {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: var(--haze-soft);
  font-size: 14.5px;
}

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

@media (max-width: 1000px) {
  .page-faq {
    padding-inline-start: clamp(16px, 4vw, 24px);
    padding-inline-end: clamp(16px, 4vw, 24px);
  }

  .faq-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .faq-index {
    position: static;
    padding: 16px 16px 12px;
    border: 1px solid var(--line-dark);
    background: var(--faq-panel);
  }

  .faq-index__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .faq-support {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .page-faq {
    font-size: 16px;
    padding-block: calc(var(--status-h) + 18px) 64px;
  }

  .faq-index__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-hero .yh-h1 {
    max-width: none;
    font-size: clamp(1.7rem, 8vw, 2.1rem);
  }

  .faq-top__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-item__q {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 14px;
    font-size: 15px;
  }

  .faq-item__a {
    padding: 0 16px 18px 40px;
  }

  .faq-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-support__foot {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq a,
  .page-faq .faq-mini,
  .page-faq .faq-item,
  .page-faq .faq-tool,
  .page-faq .faq-check__item,
  .page-faq .faq-check__box,
  .page-faq .faq-index__link,
  .page-faq .faq-index__node {
    transition: none;
  }

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