.page-faq {
  --faq-card: #FFFFFF;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page-faq .wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.page-faq .faq-hero {
  position: relative;
  padding: clamp(26px, 5vw, 60px) 0 clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--mist);
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 22, 26, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 26, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 70%, transparent 100%);
}

.page-faq .faq-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 5vw, 48px);
  align-items: center;
}

.page-faq .breadcrumbs {
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--gray);
}

.page-faq .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--mist);
}

.page-faq .breadcrumbs a {
  color: var(--link);
  text-decoration: none;
}

.page-faq .breadcrumbs a:hover {
  text-decoration: underline;
}

.page-faq .faq-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.page-faq .faq-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.page-faq .faq-lead {
  margin: 0 0 24px;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--gray);
}

.page-faq .faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-faq .faq-hero__meta {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--mist);
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

.page-faq .faq-hero__meta .num {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 20px;
  color: var(--red);
}

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

.page-faq .faq-hero__visual::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 2px solid var(--red);
  z-index: -1;
}

.page-faq .faq-hero__visual .media-frame {
  background: var(--faq-card);
}

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

/* ---------- 区块通用 ---------- */

.page-faq .faq-steps,
.page-faq .faq-topics,
.page-faq .faq-queries,
.page-faq .faq-blocked {
  padding: clamp(38px, 6vw, 76px) 0;
}

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

.page-faq .section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
}

.page-faq .eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--red);
}

.page-faq .faq-intro {
  margin: 0 0 clamp(22px, 3vw, 34px);
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray);
}

/* ---------- 五步流程 ---------- */

.page-faq .faq-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.page-faq .faq-flow__rail ol {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-faq .faq-flow__rail a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--mist);
  background: var(--faq-card);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease);
}

.page-faq .faq-flow__rail a .num {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.page-faq .faq-flow__rail a:hover,
.page-faq .faq-flow__rail a:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.page-faq .faq-flow__rail a:hover .num,
.page-faq .faq-flow__rail a:focus-visible .num {
  color: var(--lime);
}

.page-faq .faq-step {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  background: var(--faq-card);
  border: 1px solid var(--mist);
  border-left: 6px solid var(--red);
  box-shadow: var(--print-shadow);
  scroll-margin-top: 96px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-faq .faq-step + .faq-step {
  margin-top: 18px;
}

.page-faq .faq-step:target {
  border-left-color: var(--lime);
  background: linear-gradient(180deg, rgba(184, 230, 46, .16), var(--faq-card) 55%);
}

.page-faq .faq-step__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}

.page-faq .faq-step__num {
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
  color: var(--red);
  letter-spacing: .02em;
}

.page-faq .faq-step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.18;
}

.page-faq .faq-step__facts {
  margin: 0;
  border-top: 1px solid var(--mist);
}

.page-faq .faq-step__facts > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mist);
}

.page-faq .faq-step__facts > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-faq .faq-step__facts dt {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--red);
}

.page-faq .faq-step__facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
}

/* ---------- 四类文档 ---------- */

.page-faq .faq-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-faq .faq-topic {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  background: var(--faq-card);
  border: 1px solid var(--mist);
  border-top: 4px solid var(--red);
  scroll-margin-top: 96px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}

.page-faq .faq-topic:nth-child(2) {
  border-top-color: var(--blue);
}

.page-faq .faq-topic:nth-child(3) {
  border-top-color: var(--amber);
}

.page-faq .faq-topic:nth-child(4) {
  border-top-color: var(--red-deep);
}

.page-faq .faq-topic:hover {
  transform: translateY(-3px);
  box-shadow: var(--print-shadow);
}

.page-faq .faq-topic:target {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.page-faq .faq-topic__count {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--gray);
}

.page-faq .faq-topic__count .num {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.page-faq .faq-topic h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
}

.page-faq .faq-topic__desc {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
}

.page-faq .faq-topic__list {
  flex: 1 1 auto;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.page-faq .faq-topic__list li {
  position: relative;
  padding: 8px 0 8px 16px;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px dashed var(--mist);
}

.page-faq .faq-topic__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.page-faq .faq-topic__link {
  align-self: flex-start;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .18s var(--ease);
}

.page-faq .faq-topic__link:hover {
  border-bottom-color: var(--link);
}

/* ---------- 横向问法索引 ---------- */

.page-faq .faq-queries {
  padding-bottom: clamp(28px, 4vw, 52px);
}

.page-faq .faq-queries__strip {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 10px;
}

.page-faq .faq-queries__inner {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 4px var(--gutter);
}

.page-faq .faq-pill {
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--faq-card);
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.page-faq .faq-pill:hover,
.page-faq .faq-pill:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}

/* ---------- 深色清单区 ---------- */

.page-faq .faq-checklist {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 5px solid var(--red);
  border-bottom: 5px solid var(--red);
}

.page-faq .faq-checklist__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

.page-faq .faq-checklist .eyebrow {
  color: var(--lime);
}

.page-faq .faq-checklist h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
}

.page-faq .faq-checklist__intro > p {
  margin: 0 0 22px;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(244, 241, 234, .72);
}

.page-faq .faq-checklist__texture .media-frame__inner {
  background: rgba(244, 241, 234, .06);
}

.page-faq .faq-checklist__texture img {
  opacity: .38;
  mix-blend-mode: screen;
}

.page-faq .faq-checklist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(244, 241, 234, .18);
}

.page-faq .faq-checklist__list li {
  border-bottom: 1px solid rgba(244, 241, 234, .18);
}

.page-faq .faq-checklist__list label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.62;
}

.page-faq .faq-checklist__list input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-faq .faq-box {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid rgba(244, 241, 234, .45);
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}

.page-faq .faq-box svg {
  opacity: 0;
  transform: scale(.6);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}

.page-faq .faq-checklist__list input:focus-visible + .faq-box {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.page-faq .faq-checklist__list input:checked + .faq-box {
  background: var(--lime);
  border-color: var(--lime);
}

.page-faq .faq-checklist__list input:checked + .faq-box svg {
  opacity: 1;
  transform: scale(1);
}

.page-faq .faq-text {
  transition: color .16s var(--ease);
}

.page-faq .faq-checklist__list input:checked ~ .faq-text {
  color: rgba(244, 241, 234, .5);
}

/* ---------- 走完五步之后 ---------- */

.page-faq .faq-blocked__panel {
  padding: clamp(22px, 3.4vw, 38px);
  background: var(--faq-card);
  border: 1px solid var(--mist);
  border-left: 8px solid var(--amber);
  box-shadow: var(--print-shadow);
}

.page-faq .faq-blocked__panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.12;
}

.page-faq .faq-blocked__lead {
  margin: 0 0 22px;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray);
}

.page-faq .faq-blocked__list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.page-faq .faq-blocked__list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.68;
}

.page-faq .faq-blocked__list .num {
  flex: 0 0 auto;
  padding-top: 4px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.page-faq .faq-blocked__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-faq .faq-blocked__foot {
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
}

.page-faq .faq-blocked__foot a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
}

.page-faq .faq-blocked__foot a:hover {
  border-bottom-color: var(--link);
}

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

@media (min-width: 620px) {
  .page-faq .faq-step__facts > div {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: baseline;
  }

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

@media (min-width: 900px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

  .page-faq .faq-checklist__grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  }
}

@media (min-width: 960px) {
  .page-faq .faq-flow {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .page-faq .faq-flow__rail {
    position: sticky;
    top: 92px;
  }

  .page-faq .faq-flow__rail ol {
    flex-direction: column;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-faq .faq-flow__rail a {
    width: 100%;
    justify-content: flex-start;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-topic,
  .page-faq .faq-pill,
  .page-faq .faq-flow__rail a,
  .page-faq .faq-box,
  .page-faq .faq-box svg,
  .page-faq .faq-text {
    transition: none;
  }

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