.page-faq {
  --faq-rail: 252px;
  --faq-gap: clamp(24px, 3.4vw, 52px);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(26px, 4.6vw, 54px) 0 clamp(30px, 5vw, 62px);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -20%;
  width: min(920px, 96vw);
  height: 158%;
  background: linear-gradient(150deg, rgba(30, 42, 94, .95) 0%, rgba(30, 42, 94, 0) 62%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -34%;
  width: min(700px, 82vw);
  height: 96%;
  background: radial-gradient(circle at 32% 50%, rgba(61, 240, 138, .16), transparent 68%);
  z-index: -1;
  pointer-events: none;
}

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

.page-faq .faq-hero .breadcrumbs {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.page-faq .faq-hero__index {
  display: block;
  margin: 0 0 14px;
  color: var(--green);
}

.page-faq .faq-hero__title {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(32px, 5.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0 0 18px;
  max-width: 20ch;
}

.page-faq .faq-hero__lede {
  max-width: 60ch;
  margin: 0 0 clamp(26px, 4vw, 44px);
  color: var(--ice);
}

.page-faq .faq-hero__strip {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  line-height: 0;
}

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

/* ---------- 主体布局 ---------- */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--faq-gap);
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 96px);
}

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

.page-faq .faq-side {
  order: -1;
}

/* ---------- 主题索引 ---------- */
.page-faq .faq-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 16px 16px 12px;
}

.page-faq .faq-toc .toc__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ice);
}

.page-faq .faq-toc .toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-faq .faq-toc .toc__list::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-toc .toc__item {
  flex: 0 0 auto;
}

.page-faq .faq-toc .toc__link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--ice);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-faq .faq-toc .toc__link:hover,
.page-faq .faq-toc .toc__link:focus-visible {
  color: var(--paper);
  border-color: var(--green);
}

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

.page-faq .faq-toc .toc__link[aria-current="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg-deep);
  font-weight: 600;
}

/* ---------- 分组头 ---------- */
.page-faq .faq-hot,
.page-faq .faq-group {
  margin-bottom: clamp(42px, 6vw, 76px);
}

.page-faq .faq-group:last-child,
.page-faq .faq-hot:last-child {
  margin-bottom: 0;
}

.page-faq .faq-group__head {
  margin-bottom: 22px;
}

.page-faq .faq-group__head .index-label {
  display: block;
  margin: 0 0 10px;
  color: var(--green);
}

.page-faq .faq-group__head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.16;
  color: var(--paper);
}

.page-faq .faq-group__note {
  margin: 0;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ice);
}

/* ---------- 高频快答 ---------- */
.page-faq .faq-hot__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-faq .faq-hot__item {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
}

.page-faq .faq-hot__item::after {
  content: "";
  position: absolute;
  inset: auto -30% -70% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(61, 240, 138, .12), transparent 68%);
  pointer-events: none;
}

.page-faq .faq-hot__q {
  position: relative;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--paper);
}

.page-faq .faq-hot__a {
  position: relative;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ice);
}

.page-faq .faq-hot__a a,
.page-faq .faq-item__a a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 折叠问答 ---------- */
.page-faq .faq-group {
  counter-reset: faqitem;
}

.page-faq .faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-faq .faq-list__item {
  border-bottom: 1px solid var(--line);
}

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

.page-faq .faq-item__q {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 6px 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--paper);
  transition: color .2s var(--ease);
}

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

.page-faq .faq-item__q::before {
  counter-increment: faqitem;
  content: counter(faqitem, decimal-leading-zero);
  flex: 0 0 auto;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ice);
}

.page-faq .faq-item__q::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--green);
  transition: color .2s var(--ease);
}

.page-faq .faq-item[open] .faq-item__q::after {
  content: "−";
  color: var(--orange);
}

.page-faq .faq-item__q:hover {
  color: var(--green);
}

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

.page-faq .faq-item__a {
  padding: 2px 6px 24px 40px;
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ice);
  animation: page-faq-drop .28s var(--ease) both;
}

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

.page-faq .faq-item__a p:last-child {
  margin-bottom: 0;
}

@keyframes page-faq-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 大屏信息图 ---------- */
.page-faq .faq-figure {
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}

.page-faq .faq-figure .figure__media {
  line-height: 0;
}

.page-faq .faq-figure img,
.page-faq .faq-figure .figure__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq .faq-figure .figure__caption {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ice);
}

/* ---------- 联系面板 ---------- */
.page-faq .faq-help {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--panel-2) 0%, var(--panel) 72%);
}

.page-faq .faq-help > p:first-child {
  margin: 0 0 22px;
  max-width: 66ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ice);
}

.page-faq .faq-help p.faq-help__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-faq .faq-hot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .page-faq .faq-layout {
    grid-template-columns: minmax(0, 1fr) var(--faq-rail);
  }

  .page-faq .faq-side {
    order: 0;
    position: sticky;
    top: 108px;
    align-self: start;
  }

  .page-faq .faq-toc .toc__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }

  .page-faq .faq-toc .toc__item {
    flex: 1 1 auto;
  }

  .page-faq .faq-toc .toc__link {
    display: block;
    padding: 9px 12px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    white-space: normal;
    font-size: 14.5px;
  }

  .page-faq .faq-toc .toc__link[aria-current="true"] {
    background: transparent;
    border-left-color: var(--green);
    color: var(--green);
  }
}

@media (min-width: 1080px) {
  .page-faq .faq-hot__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-faq .faq-item__q {
    gap: 10px;
    font-size: 15.5px;
    padding-right: 0;
  }

  .page-faq .faq-item__a {
    padding-left: 0;
  }

  .page-faq .faq-hot__item {
    padding: 16px 16px;
  }
}

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

  .page-faq .faq-toc .toc__link,
  .page-faq .faq-item__q,
  .page-faq .faq-item__q::after {
    transition: none;
  }
}
