.page-faq {
  --faq-line-soft: rgba(30, 62, 92, .78);
  --faq-cyan-a: rgba(0, 229, 199, .14);
  --faq-cyan-b: rgba(0, 229, 199, .45);
  padding-bottom: clamp(44px, 6vw, 88px);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px) 0 clamp(30px, 5vw, 60px);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -16%;
  right: -12%;
  width: min(640px, 74vw);
  height: min(440px, 56vw);
  background: linear-gradient(140deg, rgba(0, 229, 199, .18), rgba(0, 229, 199, 0) 62%);
  border-radius: 0 0 0 140px;
  transform: rotate(-7deg);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -34%;
  width: min(360px, 48vw);
  height: min(360px, 48vw);
  background: radial-gradient(circle, rgba(255, 107, 53, .16), rgba(255, 107, 53, 0) 68%);
  pointer-events: none;
}

.page-faq .faq-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 52px);
}

@media (min-width: 940px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }
}

.page-faq .faq-hero__title {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
}

.page-faq .faq-hero__copy .lede {
  max-width: 58ch;
  margin: 0 0 20px;
}

.page-faq .faq-hero__figure {
  margin: 0;
  border-radius: clamp(20px, 3vw, 34px);
  overflow: hidden;
}

.page-faq .faq-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 快速解答 ---------- */
.page-faq .faq-quick__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(20px, 3vw, 32px);
}

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

.page-faq .faq-quick__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 28px);
}

.page-faq .faq-quick__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-faq .faq-quick__q {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

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

.page-faq .faq-quick__card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- 左右分屏：目录 + 答案 ---------- */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

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

  .page-faq .faq-toc {
    position: sticky;
    top: 100px;
  }
}

.page-faq .faq-toc .eyebrow {
  margin-bottom: 12px;
}

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

@media (max-width: 1039px) {
  .page-faq .faq-toc__list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.page-faq .faq-toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--faq-line-soft);
  border-radius: var(--r-pill);
  background: rgba(19, 43, 69, .45);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  transition: color .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease);
}

.page-faq .faq-toc__link:hover,
.page-faq .faq-toc__link:focus-visible {
  color: var(--ink);
  border-color: var(--faq-cyan-b);
}

.page-faq .faq-toc__link[aria-current] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--faq-cyan-a);
}

.page-faq .faq-toc__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .85;
}

/* ---------- 问题分组 ---------- */
.page-faq .faq-group {
  scroll-margin-top: 110px;
}

.page-faq .faq-group + .faq-group {
  margin-top: clamp(38px, 5vw, 68px);
}

.page-faq .faq-group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--faq-line-soft);
}

.page-faq .faq-group__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--orange);
}

.page-faq .faq-group__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* ---------- 问答条目 ---------- */
.page-faq .faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}

.page-faq .faq-item[open] {
  border-color: var(--faq-cyan-b);
  background: linear-gradient(180deg, rgba(0, 229, 199, .07), rgba(19, 43, 69, 1) 46%);
}

.page-faq .faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px clamp(16px, 2vw, 22px);
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  transition: color .2s var(--ease);
}

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

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

.page-faq .faq-item__q::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin: 7px 2px 0 auto;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  border-radius: 1px;
  transform: rotate(45deg);
  transition: transform .26s var(--ease);
}

.page-faq .faq-item[open] .faq-item__q::after {
  transform: rotate(225deg);
}

.page-faq .faq-item__a {
  padding: 0 clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px);
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.78;
}

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

.page-faq .faq-item__a a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 199, .38);
}

.page-faq .faq-item__a a:hover {
  color: var(--cyan-soft);
}

/* ---------- 有序步骤 ---------- */
.page-faq .faq-steps {
  list-style: none;
  counter-reset: faqstep;
  margin: 14px 0 0;
  padding: 0;
}

.page-faq .faq-steps > li {
  counter-increment: faqstep;
  position: relative;
  padding: 0 0 16px 38px;
}

.page-faq .faq-steps > li:last-child {
  padding-bottom: 0;
}

.page-faq .faq-steps > li::before {
  content: counter(faqstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--faq-cyan-b);
  background: var(--faq-cyan-a);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
}

.page-faq .faq-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--faq-cyan-b), rgba(0, 229, 199, 0));
}

.page-faq .faq-steps--lg > li {
  padding-bottom: 20px;
}

/* ---------- 复制条件 ---------- */
.page-faq .faq-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--faq-cyan-b);
  border-radius: 16px;
  background: rgba(10, 26, 47, .55);
}

.page-faq .faq-copy__val {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cyan-soft);
  word-break: break-word;
}

/* ---------- 刷新节奏条 ---------- */
.page-faq .faq-pulse {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 14px;
  padding: 0;
}

.page-faq .faq-pulse__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0, 229, 199, .3);
  background: rgba(0, 229, 199, .07);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.page-faq .faq-pulse__item:not(:last-child)::after {
  content: "→";
  color: var(--muted);
}

/* ---------- 迁移章节 ---------- */
.page-faq .faq-migrate__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

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

.page-faq .faq-migrate__note {
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-faq .faq-migrate__note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 199, .4);
}

.page-faq .faq-migrate__note a:hover {
  color: var(--cyan-soft);
}

.page-faq .faq-migrate__figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
}

.page-faq .faq-migrate__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 联系面板 ---------- */
.page-faq .faq-contact__panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(150deg, rgba(19, 43, 69, .96), rgba(10, 26, 47, .92));
}

.page-faq .faq-contact__lead {
  margin: 0 0 20px;
  max-width: 62ch;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

.page-faq .faq-contact__list {
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-faq .faq-contact__row {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--faq-line-soft);
}

@media (min-width: 720px) {
  .page-faq .faq-contact__row {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
  }
}

.page-faq .faq-contact__key {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.page-faq .faq-contact__val {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.7;
  word-break: break-word;
}

/* ---------- 焦点与动效收敛 ---------- */
.page-faq a:focus-visible,
.page-faq button:focus-visible,
.page-faq summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-item__q,
  .page-faq .faq-item__q::after,
  .page-faq .faq-toc__link {
    transition-duration: .01ms;
  }
}
