.page-custom {
  --custom-pair-gap: var(--space-6);
}

/* ---------- 首屏 ---------- */
.page-custom .custom-hero {
  padding-block: var(--space-4) var(--space-8);
}

.page-custom .custom-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.page-custom .custom-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-primary-ink);
  margin: var(--space-3) 0 var(--space-3);
}

.page-custom .custom-hero__lede {
  max-width: var(--measure);
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
}

.page-custom .custom-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* 首屏对照面板 */
.page-custom .custom-hero__board {
  padding: var(--space-3);
  background: var(--color-surface-alt);
}

.page-custom .custom-hero__board-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
}

.page-custom .custom-hero__tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-custom .custom-tier-key__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "idx name value"
    "idx name unit";
  align-items: baseline;
  column-gap: var(--space-2);
  row-gap: 2px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 1px dashed var(--color-line);
  transition: background-color 180ms ease, color 180ms ease;
}

.page-custom .custom-tier-key__idx {
  grid-area: idx;
  font-size: var(--text-sm);
  color: var(--color-primary);
}

.page-custom .custom-tier-key__name {
  grid-area: name;
  font-size: var(--text-base);
  font-weight: 600;
}

.page-custom .custom-tier-key__value {
  grid-area: value;
  justify-self: end;
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--color-accent);
}

.page-custom .custom-tier-key__unit {
  grid-area: unit;
  justify-self: end;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

.page-custom .custom-tier-key:last-child .custom-tier-key__link {
  border-bottom: none;
}

.page-custom .custom-tier-key__link:hover,
.page-custom .custom-tier-key__link:focus-visible {
  background: var(--color-primary-soft);
  color: var(--color-primary-ink);
}

.page-custom .custom-tier-key__link:focus-visible {
  outline: var(--border-thick) solid var(--color-focus);
  outline-offset: 2px;
}

.page-custom .custom-hero__board-note {
  margin: var(--space-3) 0 0;
  padding-top: var(--space-2);
  border-top: 1px dashed var(--color-line);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-ink-soft);
}

/* 首屏图带 */
.page-custom .custom-hero__strip {
  margin: var(--space-8) 0 0;
  position: relative;
}

.page-custom .custom-hero__strip img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(220px, 38vw, 480px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.page-custom .custom-hero__strip::after {
  content: "";
  position: absolute;
  inset: 0;
  height: clamp(220px, 38vw, 480px);
  border-radius: var(--radius-lg);
  background: linear-gradient(252deg,
      color-mix(in srgb, var(--color-surface) 90%, transparent) 0%,
      color-mix(in srgb, var(--color-surface) 40%, transparent) 42%,
      transparent 72%);
  pointer-events: none;
}

.page-custom .custom-hero__strip figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-ink-soft);
}

/* ---------- 对照表 ---------- */
.page-custom .custom-compare__anchors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: var(--space-3) 0;
}

.page-custom .custom-compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: var(--border-thin) solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.page-custom .custom-compare__scroll:focus-visible {
  outline: var(--border-thick) solid var(--color-focus);
  outline-offset: 2px;
}

.page-custom .custom-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.page-custom .custom-table caption {
  padding: var(--space-2) var(--space-2) 0;
  text-align: left;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

.page-custom .custom-table th,
.page-custom .custom-table td {
  padding: var(--space-2);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.page-custom .custom-table thead th {
  background: var(--color-surface-alt);
  border-bottom: 1px dashed var(--color-line);
  font-weight: 600;
  color: var(--color-ink-soft);
  white-space: nowrap;
}

.page-custom .custom-table__idx {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-accent);
}

.page-custom .custom-table__name {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.page-custom .custom-table tbody th[scope="row"] {
  width: 168px;
  font-weight: 600;
  color: var(--color-ink-soft);
  background: var(--color-surface-alt);
  border-top: 1px dotted var(--color-line);
}

.page-custom .custom-table tbody td {
  color: var(--color-ink);
  border-top: 1px dotted var(--color-line);
  border-left: 1px dotted var(--color-line);
}

.page-custom .custom-table tbody tr:hover th[scope="row"],
.page-custom .custom-table tbody tr:hover td {
  background: var(--color-primary-soft);
}

/* ---------- 起步两档 ---------- */
.page-custom .custom-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--custom-pair-gap);
}

.page-custom .custom-pair__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  scroll-margin-top: 96px;
}

.page-custom .custom-pair__item .media-frame {
  margin: 0;
}

.page-custom .custom-pair__body {
  padding: var(--space-3);
  flex: 1;
}

.page-custom .custom-pair__idx {
  display: inline-block;
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.page-custom .custom-pair__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-primary-ink);
}

.page-custom .custom-pair__text {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
  max-width: var(--measure);
}

.page-custom .custom-pair__item:target .custom-pair__body {
  box-shadow: var(--shadow-2);
  border-color: var(--color-accent);
}

/* 事实列表 */
.page-custom .custom-facts {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
}

.page-custom .custom-facts li {
  position: relative;
  padding-left: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.72;
  color: var(--color-ink);
}

.page-custom .custom-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.page-custom .custom-facts--inner li::before {
  background: var(--color-primary);
}

/* 可展开清单 */
.page-custom .custom-tier__details {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--color-line);
}

.page-custom .custom-tier__details summary {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
}

.page-custom .custom-tier__details summary::-webkit-details-marker {
  display: none;
}

.page-custom .custom-tier__details summary::before {
  content: "＋";
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: 1;
}

.page-custom .custom-tier__details[open] summary::before {
  content: "－";
}

.page-custom .custom-tier__details summary:focus-visible {
  outline: var(--border-thick) solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.page-custom .custom-tier__details[open] summary {
  margin-bottom: var(--space-1);
}

/* ---------- 上升两档 ---------- */
.page-custom .custom-scale__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  scroll-margin-top: 96px;
  margin-top: var(--space-6);
}

.page-custom .custom-scale__row .media-frame {
  margin: 0;
}

.page-custom .custom-scale__idx {
  display: inline-block;
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.page-custom .custom-scale__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-primary-ink);
}

.page-custom .custom-scale__text {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
  max-width: var(--measure);
}

.page-custom .custom-scale__aside {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--color-ink-soft);
}

.page-custom .custom-scale__aside a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.page-custom .custom-scale__aside a:focus-visible {
  outline: var(--border-thick) solid var(--color-focus);
  outline-offset: 2px;
}

.page-custom .custom-scale__rule {
  margin: var(--space-8) 0 0;
}

.page-custom .custom-scale__row:target .custom-scale__body {
  box-shadow: var(--shadow-2);
  border-radius: var(--radius-lg);
  outline: var(--border-thin) solid var(--color-accent);
  outline-offset: var(--space-2);
}

/* ---------- 建议 ---------- */
.page-custom .custom-advice__card {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  border: var(--border-thin) solid var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-1);
}

.page-custom .custom-advice__card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 240px;
  height: 240px;
  background: var(--color-accent);
  opacity: 0.07;
  transform: rotate(20deg);
  pointer-events: none;
}

.page-custom .custom-advice__card > * {
  position: relative;
  z-index: 1;
}

.page-custom .custom-advice__label {
  margin: 0 0 var(--space-2);
}

.page-custom .custom-advice__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-primary-ink);
  max-width: var(--measure);
}

.page-custom .custom-advice__text {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
  max-width: var(--measure);
}

.page-custom .custom-advice__text--soft {
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

.page-custom .custom-advice__text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.page-custom .custom-advice__text a:focus-visible {
  outline: var(--border-thick) solid var(--color-focus);
  outline-offset: 2px;
}

/* ---------- 反色行动带 ---------- */
.page-custom .custom-cta {
  padding-block: var(--section-y-lg);
  border-top: 1px dashed var(--color-contrast-line);
}

.page-custom .custom-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}

.page-custom .custom-cta__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-contrast-ink);
}

.page-custom .custom-cta__body {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-contrast-ink);
  max-width: var(--measure);
}

.page-custom .custom-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-custom .custom-cta__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-6);
  }

  .page-custom .custom-cta__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  .page-custom .custom-hero {
    padding-block: var(--space-6) var(--space-8);
  }

  .page-custom .custom-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-6);
  }

  .page-custom .custom-hero__board {
    padding: var(--space-4);
  }

  .page-custom .custom-pair {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-custom .custom-pair__item--b {
    flex-direction: column-reverse;
  }

  .page-custom .custom-pair__body {
    padding: var(--space-4);
  }

  .page-custom .custom-scale__row {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-6);
    align-items: center;
  }

  .page-custom .custom-scale__row--flip .custom-scale__body {
    order: 2;
  }

  .page-custom .custom-scale__row--flip .custom-scale__media {
    order: 1;
  }

  .page-custom .custom-advice__card {
    padding: var(--space-8) var(--space-6);
  }
}

@media (max-width: 719px) {
  .page-custom .custom-table tbody th[scope="row"] {
    width: 132px;
  }

  .page-custom .custom-scale__idx {
    font-size: var(--text-2xl);
  }

  .page-custom .custom-hero__strip::after {
    background: linear-gradient(200deg,
        color-mix(in srgb, var(--color-surface) 60%, transparent) 0%,
        transparent 62%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-custom .custom-tier-key__link {
    transition: none;
  }
}
<<<END>>
