.page-faq {
  --faq-side: 208px;
  --faq-pad: clamp(28px, 5vw, 64px);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--ivory);
  padding: clamp(26px, 4.6vw, 60px) 0 clamp(34px, 5.6vw, 76px);
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 216, 180, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 216, 180, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.page-faq .faq-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-faq .faq-hero .breadcrumb {
  color: rgba(233, 216, 180, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.page-faq .faq-hero .breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-faq .faq-hero .breadcrumb a:hover,
.page-faq .faq-hero .breadcrumb a:focus-visible {
  color: var(--gold);
}

.page-faq .faq-hero__eyebrow {
  color: var(--gold);
  margin: 0 0 14px;
}

.page-faq .faq-hero__title {
  margin: 0 0 18px;
  font-size: clamp(34px, 6.2vw, 66px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.page-faq .faq-hero__lede {
  max-width: 34em;
  margin: 0 0 26px;
  font-size: clamp(15px, 1.55vw, 17px);
  line-height: 1.85;
  color: rgba(247, 243, 234, 0.82);
}

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

.page-faq .faq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-dark-soft);
}

.page-faq .faq-hero__meta li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(233, 216, 180, 0.78);
  letter-spacing: 0.04em;
}

.page-faq .faq-hero__meta .mono {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.page-faq .faq-hero__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: linear-gradient(150deg, var(--forest-soft), var(--forest-deep));
}

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

.page-faq .faq-hero__figure .media-caption {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line-dark-soft);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(233, 216, 180, 0.8);
}

/* ---------- 主体两栏 ---------- */
.page-faq .faq-body {
  display: grid;
  gap: 28px;
  padding-top: clamp(36px, 5.5vw, 68px);
  padding-bottom: clamp(52px, 7vw, 96px);
}

.page-faq .faq-index {
  align-self: start;
}

.page-faq .faq-index .eyebrow {
  margin: 0;
}

.page-faq .faq-index__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-index__list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.page-faq .faq-index__list .mono {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
}

.page-faq .faq-index__list a:hover,
.page-faq .faq-index__list a:focus-visible {
  border-color: var(--gold);
  background: var(--champagne);
  color: var(--forest);
}

.page-faq .faq-index__note {
  display: none;
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--haze);
}

/* ---------- 段落通用 ---------- */
.page-faq .faq-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(38px, 5.4vw, 68px);
  min-width: 0;
}

.page-faq .faq-block {
  min-width: 0;
  scroll-margin-top: 96px;
}

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

.page-faq .faq-block__no {
  flex: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
}

.page-faq .faq-block__title {
  margin: 0;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.28;
  letter-spacing: 0.012em;
  color: var(--forest);
}

.page-faq .faq-block__lede {
  max-width: 42em;
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
}

/* ---------- 步骤条 ---------- */
.page-faq .step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.page-faq .step-list__item {
  position: relative;
  padding: 15px 0 15px 34px;
  border-bottom: 1px dashed var(--line-light);
}

.page-faq .step-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.page-faq .step-list__item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.16);
}

.page-faq .step-list__item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 36px;
  bottom: -4px;
  width: 1px;
  background: var(--line-light);
}

.page-faq .step-list__item:last-child::after {
  display: none;
}

.page-faq .step-list__no {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--haze);
}

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

.page-faq .step-list--compact .step-list__item {
  padding: 12px 0 12px 32px;
}

.page-faq .step-list--compact .step-list__item::before {
  top: 18px;
}

.page-faq .step-list--compact .step-list__item::after {
  top: 32px;
}

.page-faq .inline-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  background: var(--mist);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--forest);
}

/* ---------- 小屏版块 ---------- */
.page-faq .lite-grid {
  display: grid;
  gap: 22px;
}

.page-faq .lite-device {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: linear-gradient(160deg, var(--mist), var(--champagne));
}

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

.page-faq .lite-device .media-caption {
  padding: 12px 16px 14px;
  background: var(--ivory);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--gold-ink);
  border-top: 1px solid var(--line-light-soft);
}

/* ---------- 订阅演示 ---------- */
.page-faq .subscribe-grid {
  display: grid;
  gap: 22px;
}

.page-faq .device-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 23px,
      rgba(14, 42, 36, 0.05) 23px 24px
    ),
    var(--mist);
}

.page-faq .device-demo__frame {
  width: 164px;
  padding: 9px;
  border-radius: 22px;
  background: var(--forest);
  box-shadow: 0 20px 34px -22px rgba(9, 30, 26, 0.75);
}

.page-faq .device-demo__view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 128px;
  padding: 18px 13px 12px;
  border-radius: 14px 14px 4px 4px;
  background: var(--ivory);
}

.page-faq .device-demo__line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--line-light);
}

.page-faq .device-demo__line--short {
  width: 62%;
}

.page-faq .device-demo__dock {
  margin-top: 7px;
  padding: 9px 6px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--forest);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ---------- 人群切换 ---------- */
.page-faq .crowd-switch {
  position: relative;
}

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

.page-faq .crowd-switch__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-faq .crowd-switch__tabs label {
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-faq .crowd-switch__tabs label:hover {
  border-color: var(--gold);
}

.page-faq #crowd-a:checked ~ .crowd-switch__tabs label[for="crowd-a"],
.page-faq #crowd-b:checked ~ .crowd-switch__tabs label[for="crowd-b"],
.page-faq #crowd-c:checked ~ .crowd-switch__tabs label[for="crowd-c"],
.page-faq #crowd-d:checked ~ .crowd-switch__tabs label[for="crowd-d"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--champagne);
}

.page-faq .crowd-switch__input:focus-visible + .crowd-switch__tabs {
  outline: none;
}

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

.page-faq #crowd-a:checked ~ .crowd-switch__panels > .crowd-panel { display: none; }
.page-faq #crowd-a:checked ~ .crowd-switch__panels > .crowd-panel:nth-child(1) { display: flex; }
.page-faq #crowd-b:checked ~ .crowd-switch__panels > .crowd-panel { display: none; }
.page-faq #crowd-b:checked ~ .crowd-switch__panels > .crowd-panel:nth-child(2) { display: flex; }
.page-faq #crowd-c:checked ~ .crowd-switch__panels > .crowd-panel { display: none; }
.page-faq #crowd-c:checked ~ .crowd-switch__panels > .crowd-panel:nth-child(3) { display: flex; }
.page-faq #crowd-d:checked ~ .crowd-switch__panels > .crowd-panel { display: none; }
.page-faq #crowd-d:checked ~ .crowd-switch__panels > .crowd-panel:nth-child(4) { display: flex; }

.page-faq .crowd-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 20px 20px 24px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--ivory);
  overflow: hidden;
}

.page-faq .crowd-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--gold), var(--champagne));
}

.page-faq .crowd-panel__no {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--haze);
}

.page-faq .crowd-panel__title {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--forest);
}

.page-faq .crowd-panel__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.page-faq .crowd-panel__tag {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---------- 老用户回访 ---------- */
.page-faq .return-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ---------- 故障排查 ---------- */
.page-faq .fix-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-faq .fix-item {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--ivory);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.page-faq .fix-item[open] {
  border-color: var(--gold);
}

.page-faq .fix-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

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

.page-faq .fix-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  color: var(--gold-ink);
  transition: transform 0.2s ease;
}

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

.page-faq .fix-item__no {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
}

.page-faq .fix-item__q {
  font-size: 15px;
  line-height: 1.5;
  color: var(--forest);
}

.page-faq .fix-item__tag {
  flex: none;
  margin-left: auto;
}

.page-faq .fix-item summary::after {
  margin-left: 12px;
}

.page-faq .fix-item__a {
  margin: 0;
  padding: 0 16px 16px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  border-top: 1px dashed var(--line-light-soft);
  padding-top: 12px;
}

/* ---------- 联系 ---------- */
.page-faq .faq-block--contact .faq-block__lede {
  margin-bottom: 20px;
}

.page-faq .contact-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3.6vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--ivory);
}

.page-faq .contact-card__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark-soft);
}

.page-faq .contact-card__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-faq .contact-card .contact-item__label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-faq .contact-card .contact-item__value {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ivory);
  word-break: break-word;
}

.page-faq .contact-card__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--haze);
}

.page-faq .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- 桌面增强 ---------- */
@media (min-width: 720px) {
  .page-faq .lite-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 28px;
  }

  .page-faq .subscribe-grid {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
    align-items: center;
    gap: 30px;
  }

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

  .page-faq .contact-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
  }

  .page-faq .contact-card__row--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(32px, 4.4vw, 56px);
  }

  .page-faq .faq-body {
    grid-template-columns: var(--faq-side) minmax(0, 1fr);
    gap: clamp(40px, 4.8vw, 68px);
  }

  .page-faq .faq-index {
    position: sticky;
    top: 96px;
  }

  .page-faq .faq-index__list {
    display: block;
    margin-top: 16px;
  }

  .page-faq .faq-index__list li + li {
    margin-top: 2px;
  }

  .page-faq .faq-index__list a {
    padding: 10px 2px;
    border: 0;
    border-bottom: 1px solid var(--line-light-soft);
    border-radius: 0;
    font-size: 14px;
  }

  .page-faq .faq-index__list a:hover,
  .page-faq .faq-index__list a:focus-visible {
    background: transparent;
    color: var(--gold-ink);
    border-bottom-color: var(--gold);
  }

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

  .page-faq .faq-block__lede {
    font-size: 16px;
  }

  .page-faq .step-list__text {
    font-size: 15.5px;
  }
}

@media (min-width: 1200px) {
  .page-faq .faq-hero__title {
    letter-spacing: 0.03em;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-hero__figure,
  .page-faq .faq-hero__copy,
  .page-faq .faq-index,
  .page-faq .faq-block {
    transition: none;
  }
}
