.page-faq {
  --faq-hair: rgba(26, 26, 26, .18);
  background: var(--paper);
  color: var(--ink);
  padding-bottom: clamp(48px, 6vw, 88px);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  padding: clamp(30px, 4.4vw, 58px) 0 clamp(22px, 3vw, 38px);
}

.page-faq .faq-hero h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.16;
  letter-spacing: -.01em;
  margin: 14px 0 0;
  max-width: 19em;
}

.page-faq .faq-hero__lede {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  max-width: 40em;
  font-size: 17px;
  line-height: 1.82;
  color: var(--muted);
}

.page-faq .faq-ticks {
  height: 14px;
  border-top: 2px solid var(--ink);
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 26px);
  background-size: 100% 8px;
  background-position: 0 2px;
  background-repeat: no-repeat;
}

/* ---------- 区块骨架 ---------- */
.page-faq .faq-section {
  padding: clamp(40px, 5.5vw, 78px) 0;
}

.page-faq .faq-section + .faq-section {
  border-top: 2px solid var(--ink);
}

.page-faq .faq-head {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.6vw, 20px);
  margin-bottom: clamp(20px, 2.8vw, 34px);
}

.page-faq .faq-head__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 2px;
}

.page-faq .faq-head h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(23px, 3.4vw, 40px);
  line-height: 1.24;
  letter-spacing: -.01em;
  margin: 0;
}

.page-faq .section-lede {
  max-width: 44em;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 clamp(22px, 3vw, 34px);
}

/* ---------- 通用图注 ---------- */
.page-faq .faq-figure {
  margin: 0;
}

.page-faq .faq-figure__frame {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--wheat);
}

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

.page-faq .faq-figure figcaption {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- 01 三步上手 ---------- */
.page-faq .steps-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.4vw, 46px);
}

.page-faq .steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 1.8vw, 22px);
  padding: clamp(16px, 2vw, 24px) 0;
  border-bottom: 1px solid var(--faq-hair);
}

.page-faq .step:first-child {
  border-top: 1px solid var(--faq-hair);
}

.page-faq .step__no {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  color: var(--purple);
  min-width: 1.4em;
}

.page-faq .step h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.45;
}

.page-faq .step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- 02 计分规则 ---------- */
.page-faq .rule-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.4vw, 44px);
}

.page-faq .rule-notes__lede {
  font-size: 17px;
  line-height: 1.82;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  max-width: 30em;
}

.page-faq .rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .rule-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--faq-hair);
  font-size: 16px;
  line-height: 1.72;
}

.page-faq .rule-list__no {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.85;
  color: var(--gold);
}

.page-faq .rule-demo__title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.page-faq .calc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-faq .calc-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  background: var(--paper);
}

.page-faq .calc-table__caption {
  caption-side: top;
  text-align: left;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  padding: 0 0 10px;
}

.page-faq .calc-table th,
.page-faq .calc-table td {
  padding: 12px 14px;
}

.page-faq .calc-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: right;
  white-space: nowrap;
}

.page-faq .calc-table thead th:first-child {
  text-align: left;
}

.page-faq .calc-table tbody td {
  border-top: 1px solid var(--faq-hair);
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-faq .calc-table tbody td:first-child {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  white-space: normal;
  min-width: 170px;
}

.page-faq .calc-table tbody tr:nth-child(even) {
  background: var(--wheat);
}

.page-faq .calc-table tbody tr.is-result {
  background: var(--green);
  color: var(--paper);
}

.page-faq .calc-table tbody tr.is-result td {
  border-top: 2px solid var(--ink);
}

.page-faq .rule-demo__note {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- 03 约定速查 ---------- */
.page-faq .pacts-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.4vw, 44px);
}

.page-faq .pacts-intro {
  margin: 0 0 clamp(20px, 2.6vw, 30px);
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 42em;
}

.page-faq .pact-group {
  margin-bottom: clamp(22px, 2.8vw, 34px);
}

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

.page-faq .pact-group__title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 9px;
  margin: 0 0 4px;
  border-bottom: 2px solid var(--gold);
}

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

.page-faq .pact__summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 2px;
  cursor: pointer;
  list-style: none;
}

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

.page-faq .pact__code {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--paper);
  background: var(--purple);
  padding: 3px 8px;
}

.page-faq .pact__title {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
}

.page-faq .pact__marker {
  width: 12px;
  height: 12px;
  background: var(--gold);
  transition: transform .2s var(--ease);
}

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

.page-faq .pact__body {
  padding: 0 2px 20px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
  max-width: 44em;
}

.page-faq .pact__body p {
  margin: 0 0 8px;
}

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

.page-faq .pacts-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 22px);
}

/* ---------- 04 区间回看 ---------- */
.page-faq .ranges {
  margin-top: clamp(6px, 1vw, 12px);
}

.page-faq .ranges .ranges__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

.page-faq .ranges .tabs__tab {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.page-faq .ranges .tabs__tab:hover {
  background: var(--wheat);
}

.page-faq .ranges .tabs__tab[aria-selected="true"] {
  background: var(--purple);
  border-color: var(--purple-deep);
  color: var(--paper);
}

.page-faq .ranges .tabs__panel {
  display: block;
}

.page-faq .ranges .tabs__panel[hidden] {
  display: none;
}

.page-faq .range-stat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow-hard);
}

.page-faq .range-stat__item {
  background: var(--paper);
  padding: clamp(16px, 2vw, 24px);
  min-width: 0;
}

.page-faq .range-stat__item dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0;
}

.page-faq .range-stat__item dd {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.page-faq .range-stat__item dd.is-gold {
  color: var(--gold);
}

.page-faq .range-custom {
  border: 2px solid var(--ink);
  border-left: 6px solid var(--gold);
  background: var(--wheat);
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow: var(--shadow-soft);
}

.page-faq .range-custom p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.8;
  max-width: 44em;
}

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

/* ---------- 05 常见问题 ---------- */
.page-faq .faq-list {
  border-top: 2px solid var(--ink);
}

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

.page-faq .faq-item__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: clamp(15px, 1.9vw, 21px) 2px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}

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

.page-faq .faq-item__sign {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  background: var(--gold);
  transition: transform .2s var(--ease);
}

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

.page-faq .faq-item__body {
  padding: 0 2px 22px 26px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
  max-width: 42em;
}

.page-faq .faq-item__body p {
  margin: 0 0 10px;
}

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

.page-faq .faq-item__body a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 06 联系 ---------- */
.page-faq .faq-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.2vw, 44px);
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--green);
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.page-faq .faq-contact h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.24;
  margin: 0 0 14px;
  color: var(--paper);
}

.page-faq .faq-contact__lede {
  margin: 0 0 clamp(20px, 2.6vw, 28px);
  font-size: 16px;
  line-height: 1.8;
  color: rgba(245, 241, 232, .84);
  max-width: 36em;
}

.page-faq .faq-contact__list {
  margin: 0 0 clamp(20px, 2.6vw, 30px);
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-faq .faq-contact__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(245, 241, 232, .3);
}

.page-faq .faq-contact__key {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(245, 241, 232, .7);
}

.page-faq .faq-contact__val {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  word-break: break-word;
}

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

.page-faq .faq-contact__aside {
  border-left: 4px solid var(--gold);
  padding-left: clamp(16px, 2vw, 24px);
}

.page-faq .faq-contact__aside-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--gold);
}

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

.page-faq .faq-contact__tips li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(245, 241, 232, .86);
}

.page-faq .faq-contact__tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-faq .range-stat {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-faq .faq-contact__row {
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .page-faq .steps-split {
    grid-template-columns: 1.05fr .95fr;
    align-items: start;
  }

  .page-faq .faq-contact {
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-faq .rule-split {
    grid-template-columns: 5fr 7fr;
    column-gap: clamp(28px, 3.6vw, 56px);
  }

  .page-faq .rule-split > .rule-notes {
    padding-right: clamp(24px, 3.2vw, 52px);
    border-right: 2px solid var(--ink);
  }

  .page-faq .pacts-split {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 480px) {
  .page-faq .calc-table {
    min-width: 420px;
  }

  .page-faq .calc-table th,
  .page-faq .calc-table td {
    padding: 10px 11px;
  }

  .page-faq .pact__summary {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .page-faq .pact__marker {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .pact__marker,
  .page-faq .faq-item__sign,
  .page-faq .ranges .tabs__tab {
    transition: none;
  }
}
