.page-faq {
  --faq-line: #DDE2F5;
  --faq-line-soft: #E7EBF9;
  --faq-muted: #6B7495;
  --faq-side-w: 236px;
  background: var(--deep);
}

/* ============ 首屏 ============ */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(118% 92% at 84% 2%, rgba(108, 74, 182, 0.46), transparent 62%),
    radial-gradient(74% 62% at 4% 98%, rgba(62, 198, 198, 0.16), transparent 64%),
    var(--deep);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -58vw;
  width: 122vw;
  height: 122vw;
  transform: translateX(-44%);
  border-radius: 50%;
  border: 1px solid rgba(167, 177, 218, 0.14);
  box-shadow:
    0 0 0 76px rgba(108, 74, 182, 0.055),
    0 0 0 190px rgba(62, 198, 198, 0.03);
  pointer-events: none;
  z-index: 0;
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content);
  margin-inline: auto;
  padding: clamp(104px, 14vh, 160px) clamp(20px, 4vw, 40px) clamp(52px, 8vh, 84px);
  display: grid;
  gap: clamp(26px, 4vw, 44px);
}

.page-faq .faq-hero__crumbs {
  margin: 0;
}

.page-faq .faq-hero__lead {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-faq .faq-hero__title {
  margin: 0;
  font-size: clamp(34px, 6.2vw, 66px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-wrap: balance;
  background: linear-gradient(97deg, #FFFFFF 6%, #F5C542 64%, #FFE9A8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-faq .faq-hero__lede {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 1.85;
  color: var(--ink-2);
}

.page-faq .faq-hero__cta {
  margin: 0;
}

.page-faq .faq-hero__media {
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(108, 74, 182, 0.35), rgba(11, 16, 38, 0.9));
}

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

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

.page-faq .faq-hero__tags a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(167, 177, 218, 0.28);
  background: rgba(20, 27, 60, 0.62);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease), background 0.22s var(--ease);
}

.page-faq .faq-hero__tags a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nebula);
  flex: 0 0 auto;
  transition: background 0.22s var(--ease);
}

.page-faq .faq-hero__tags a:hover,
.page-faq .faq-hero__tags a:focus-visible {
  border-color: var(--ice);
  color: var(--ice);
  background: rgba(62, 198, 198, 0.1);
}

.page-faq .faq-hero__tags a:hover::before,
.page-faq .faq-hero__tags a:focus-visible::before {
  background: var(--ice);
}

.page-faq .faq-hero__tags a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

@media (min-width: 960px) {
  .page-faq .faq-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    column-gap: clamp(32px, 5vw, 68px);
    align-items: center;
  }

  .page-faq .faq-hero__crumbs,
  .page-faq .faq-hero__tags {
    grid-column: 1 / -1;
  }
}

/* ============ 阅读区 ============ */
.page-faq .faq-body {
  background: var(--paper);
  color: var(--paper-ink);
}

.page-faq .faq-body__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px) clamp(64px, 8vw, 100px);
}

.page-faq .faq-body__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper-ink);
}

.page-faq .faq-toolbar {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.page-faq .faq-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  padding: 4px 20px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  transition: border-color 0.22s var(--ease);
}

.page-faq .faq-search:focus-within {
  border-color: var(--ice);
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.page-faq .faq-search__hint {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--nebula);
  flex: 0 0 auto;
}

.page-faq .faq-search__input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 13px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  color: var(--paper-ink);
}

.page-faq .faq-search__input::placeholder {
  color: #8A93B8;
}

.page-faq .faq-search__input:focus {
  outline: none;
}

/* ============ 双栏 ============ */
.page-faq .faq-layout {
  display: grid;
  gap: clamp(30px, 4vw, 52px);
}

.page-faq .faq-topics__title {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--faq-muted);
}

.page-faq .faq-topics ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-faq .faq-topics a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--paper-ink-2);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-faq .faq-topics a:hover,
.page-faq .faq-topics a:focus-visible {
  background: rgba(108, 74, 182, 0.09);
  border-color: rgba(108, 74, 182, 0.4);
  color: var(--nebula);
}

.page-faq .faq-topics a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.page-faq .faq-topics__count {
  flex: 0 0 auto;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: rgba(108, 74, 182, 0.12);
  color: var(--faq-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

@media (max-width: 899px) {
  .page-faq .faq-topics ul {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .page-faq .faq-topics__title {
    margin-bottom: 10px;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-layout {
    grid-template-columns: var(--faq-side-w) minmax(0, 1fr);
    align-items: start;
  }

  .page-faq .faq-side {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    max-height: calc(100vh - var(--header-h) - 56px);
    overflow-y: auto;
    padding-right: 6px;
  }
}

/* ============ 问答 ============ */
.page-faq .faq-stream {
  display: grid;
  gap: clamp(38px, 5vw, 62px);
  min-width: 0;
}

.page-faq .faq-group {
  scroll-margin-top: calc(var(--header-h) + 26px);
}

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

.page-faq .faq-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper-ink);
}

.page-faq .faq-group__title::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--nebula), var(--ice));
}

.page-faq .faq-group__desc {
  margin: 0;
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--faq-muted);
}

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

.page-faq .faq-group__list > .faq-item:first-child {
  border-top: 1px solid var(--faq-line);
}

.page-faq .faq-item > summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px 6px;
  cursor: pointer;
  list-style: none;
  color: var(--paper-ink);
  font-size: clamp(15.5px, 1.8vw, 17px);
  font-weight: 600;
  line-height: 1.6;
  transition: color 0.2s var(--ease);
}

.page-faq .faq-item > summary::-webkit-details-marker {
  display: none;
}

.page-faq .faq-item > summary::marker {
  content: "";
}

.page-faq .faq-item > summary:hover {
  color: var(--nebula);
}

.page-faq .faq-item > summary:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: -2px;
  border-radius: 8px;
}

.page-faq .faq-item__q {
  flex: 1 1 auto;
  min-width: 0;
}

.page-faq .faq-item__chev {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  color: var(--nebula);
  transform: rotate(-45deg);
  transition: transform 0.24s var(--ease), color 0.2s var(--ease);
}

.page-faq .faq-item[open] .faq-item__chev {
  transform: rotate(45deg);
}

.page-faq .faq-item[open] > summary {
  color: var(--nebula);
}

.page-faq .faq-item__a {
  padding: 0 6px 22px;
  color: var(--paper-ink-2);
}

.page-faq .faq-item__a p {
  margin: 0 0 10px;
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.85;
}

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

/* ============ 时间示意条 ============ */
.page-faq .faq-meter {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(108, 74, 182, 0.07), rgba(62, 198, 198, 0.1));
  display: grid;
  gap: 18px;
}

.page-faq .faq-meter__item {
  display: grid;
  gap: 7px;
}

.page-faq .faq-meter__value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--paper-ink);
}

.page-faq .faq-meter__label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--faq-muted);
}

.page-faq .faq-meter__track {
  display: block;
  height: 7px;
  border-radius: var(--radius-pill);
  background: #E1E6F8;
  overflow: hidden;
}

.page-faq .faq-meter__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nebula), var(--ice));
}

.page-faq .faq-meter__fill--1 {
  width: 22%;
}

.page-faq .faq-meter__fill--2 {
  width: 58%;
}

.page-faq .faq-meter__fill--3 {
  width: 100%;
}

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

/* ============ 纠错配图 ============ */
.page-faq .faq-fix__media {
  margin: 26px 0 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(62, 198, 198, 0.14), rgba(108, 74, 182, 0.12));
}

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

.page-faq .faq-fix__media .media-frame__caption {
  color: var(--faq-muted);
}

/* ============ 后续引导 ============ */
.page-faq .faq-next {
  margin-top: clamp(42px, 6vw, 74px);
  padding-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--faq-line);
}

.page-faq .faq-next__title {
  margin: 0 0 20px;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--paper-ink);
}

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

.page-faq .faq-next__list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 18px;
  padding: 17px 6px;
  border-bottom: 1px solid var(--faq-line-soft);
  text-decoration: none;
  transition: background 0.22s var(--ease), padding-left 0.22s var(--ease);
}

.page-faq .faq-next__list a:hover,
.page-faq .faq-next__list a:focus-visible {
  background: rgba(108, 74, 182, 0.07);
  padding-left: 14px;
}

.page-faq .faq-next__list a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
  border-radius: 10px;
}

.page-faq .faq-next__idx {
  grid-row: span 2;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--nebula);
}

.page-faq .faq-next__label {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--paper-ink);
}

.page-faq .faq-next__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--faq-muted);
}

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

.page-faq .faq-next__foot a {
  color: var(--nebula);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.page-faq .faq-next__foot a:hover,
.page-faq .faq-next__foot a:focus-visible {
  color: var(--ice);
}

.page-faq .faq-next__foot a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item__chev,
  .page-faq .faq-topics a,
  .page-faq .faq-next__list a,
  .page-faq .faq-hero__tags a {
    transition: none;
  }
}
