.page-faq {
  --faq-gap: clamp(16px, 2.4vw, 28px);
  --faq-ink-soft: #403852;
  background: linear-gradient(180deg, var(--lilac) 0, #FBFAFF 520px, var(--paper) 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

.page-faq a:hover {
  color: var(--purple);
}

/* ============ 首屏 ============ */
.page-faq .faq-hero {
  position: relative;
  padding-block: clamp(18px, 3.5vw, 30px) clamp(30px, 5vw, 56px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(123, 47, 247, 0.18), transparent 62%),
    linear-gradient(180deg, var(--lilac), rgba(244, 240, 255, 0));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
}

.page-faq .faq-hero__grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(18px, 3vw, 30px);
}

.page-faq .faq-hero__main h1 {
  margin: 10px 0 0;
  font-size: clamp(1.85rem, 5.6vw, 3.35rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 20ch;
}

.page-faq .faq-hero__lead {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: clamp(15px, 2.2vw, 17px);
  color: var(--faq-ink-soft);
}

.page-faq .faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(18px, 3vw, 26px);
}

.page-faq .faq-jump a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-faq .faq-jump a:hover,
.page-faq .faq-jump a:focus-visible {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

.page-faq .faq-hero__side {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--purple);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-1);
}

.page-faq .faq-hero__note {
  flex: 1 1 100%;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============ 章节骨架 ============ */
.page-faq .faq-section {
  padding-block: clamp(36px, 6vw, 68px);
}

.page-faq .faq-section--tint {
  background: linear-gradient(180deg, rgba(244, 240, 255, 0.85), rgba(255, 255, 255, 0));
  border-block: 1px solid var(--line);
}

.page-faq .faq-section__head {
  margin-bottom: clamp(20px, 3.4vw, 34px);
}

.page-faq .faq-section__head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 3.6vw, 2.05rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

.page-faq .faq-section__lead {
  margin: 10px 0 0;
  max-width: 60ch;
  font-size: 15px;
  color: var(--muted);
}

/* ============ 三张场景卡 ============ */
.page-faq .faq-steps {
  display: grid;
  gap: var(--faq-gap);
}

.page-faq .step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(16px, 2.4vw, 22px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-faq .step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

.page-faq .step-card--a { border-top: 3px solid var(--blue); }
.page-faq .step-card--b { border-top: 3px solid var(--orange); }
.page-faq .step-card--c { border-top: 3px solid var(--purple); }

.page-faq .step-card--a::after { content: "01"; }
.page-faq .step-card--b::after { content: "02"; }
.page-faq .step-card--c::after { content: "03"; }

.page-faq .step-card::after {
  position: absolute;
  right: 8px;
  bottom: -18px;
  font-family: var(--mono);
  font-size: 66px;
  font-weight: 700;
  line-height: 1;
  color: rgba(75, 15, 168, 0.07);
  pointer-events: none;
}

.page-faq .step-card--b::after { color: rgba(255, 122, 26, 0.14); }

.page-faq .step-card h3 {
  margin: 0;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-faq .step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: faqstep;
  flex: 1;
  align-content: start;
}

.page-faq .step-list li {
  position: relative;
  padding-left: 34px;
  font-size: 14.5px;
  color: var(--faq-ink-soft);
  line-height: 1.7;
}

.page-faq .step-list li::before {
  counter-increment: faqstep;
  content: counter(faqstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  border-radius: var(--radius);
  background: var(--ice);
  color: var(--indigo);
}

.page-faq .step-card--b .step-list li::before {
  background: var(--peach);
  color: #8A3A00;
}

.page-faq .step-list em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.page-faq .step-flow {
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: start;
}

.page-faq .step-flow__row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px dotted var(--line-strong);
}

.page-faq .step-flow__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-faq .step-flow__lab {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--purple);
  padding: 2px 6px;
  background: rgba(75, 15, 168, 0.08);
  border-radius: var(--radius);
  text-align: center;
}

.page-faq .step-flow__row p {
  margin: 0;
  font-size: 14.5px;
  color: var(--faq-ink-soft);
  line-height: 1.7;
}

/* ============ 图 ============ */
.page-faq .faq-figure {
  margin: clamp(20px, 3.4vw, 30px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

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

.page-faq .faq-figure figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #FCFBFF;
}

/* ============ 问答分栏 ============ */
.page-faq .qa-layout {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.page-faq .qa-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.page-faq .qa-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-faq .qa-nav a:hover,
.page-faq .qa-nav a:focus-visible {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.page-faq .qa-nav__num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--purple);
}

.page-faq .qa-nav a:hover .qa-nav__num {
  color: var(--peach);
}

.page-faq .qa-group {
  margin-bottom: clamp(24px, 4vw, 40px);
  scroll-margin-top: calc(var(--topbar-h) + 14px);
}

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

.page-faq .qa-group__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-strong);
}

.page-faq .qa-group__num {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--purple);
}

.page-faq .qa-group__title {
  margin: 0;
  font-size: clamp(1.08rem, 2.3vw, 1.32rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-faq .qa-item {
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 8px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.page-faq .qa-item:hover {
  border-color: var(--line-strong);
}

.page-faq .qa-item[open] {
  border-left-color: var(--purple);
  box-shadow: var(--shadow-1);
}

.page-faq .qa-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

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

.page-faq .qa-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1;
  color: var(--purple);
  margin-top: 3px;
}

.page-faq .qa-item[open] summary::after {
  content: "\2212";
}

.page-faq .qa-item summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.page-faq .qa-a {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 14.5px;
  color: var(--faq-ink-soft);
  line-height: 1.8;
}

/* ============ 季度说明卡 ============ */
.page-faq .cycle {
  padding: clamp(20px, 3.4vw, 34px);
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--indigo), #10243C 62%, #17324F);
  color: #fff;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.page-faq .cycle__grid {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}

.page-faq .cycle__body h3 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
}

.page-faq .cycle__body > p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
}

.page-faq .cycle-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 16px;
}

.page-faq .cycle-seg {
  padding: 9px 8px 10px;
  border-top: 4px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.page-faq .cycle-seg:first-child {
  border-top-color: var(--orange);
  background: rgba(255, 122, 26, 0.16);
}

.page-faq .cycle-seg b {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--peach);
}

.page-faq .cycle__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.page-faq .cycle__list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
}

.page-faq .cycle__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--orange);
}

.page-faq .cycle-note {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  line-height: 1.7;
}

.page-faq .cycle-figure {
  margin: 0;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

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

.page-faq .cycle-figure figcaption {
  padding: 9px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid var(--line-light);
}

/* ============ 术语 ============ */
.page-faq .gloss {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.page-faq .gloss__item {
  padding: 11px 0;
  border-bottom: 1px dotted var(--line-strong);
}

.page-faq .gloss dt {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.page-faq .gloss dt::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 2px;
  background: var(--purple);
  border-radius: 1px;
}

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

/* ============ 联系 ============ */
.page-faq .help {
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, #FFF3EA, var(--lilac) 62%);
}

.page-faq .help__grid {
  display: grid;
  gap: 14px;
}

.page-faq .help-card {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.page-faq .help-card__key {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.page-faq .help-card__val {
  margin: 6px 0 8px;
  font-family: var(--mono);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--purple);
  word-break: break-all;
  line-height: 1.5;
}

.page-faq .help-card p:last-child {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

.page-faq .help__foot {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--faq-ink-soft);
  line-height: 1.85;
}

/* ============ 断点 ============ */
@media (min-width: 720px) {
  .page-faq .faq-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .page-faq .gloss {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 4vw, 46px);
  }

  .page-faq .help__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1fr) 268px;
    align-items: end;
  }

  .page-faq .cycle__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

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

  .page-faq .qa-nav {
    display: grid;
    gap: 6px;
    position: sticky;
    top: calc(var(--topbar-h) + 18px);
  }

  .page-faq .qa-nav a {
    justify-content: flex-start;
  }
}

@media (max-width: 479px) {
  .page-faq .cycle-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-faq .step-flow__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .page-faq .step-flow__lab {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .step-card,
  .page-faq .faq-jump a,
  .page-faq .qa-nav a {
    transition: none;
  }

  .page-faq .step-card:hover,
  .page-faq .faq-jump a:hover {
    transform: none;
  }
}
