.page-custom {
  --custom-shadow: 5px 5px 0 color-mix(in srgb, var(--color-ink) 16%, transparent);
  --custom-shadow-light: 5px 5px 0 color-mix(in srgb, var(--color-contrast-accent) 42%, transparent);
  --custom-mark: color-mix(in srgb, var(--color-ink) 16%, transparent);
}

.page-custom .custom-wrap {
  width: min(var(--container), 100% - var(--space-3) * 2);
  margin-inline: auto;
}

.page-custom .custom-band {
  padding-block: var(--section-y);
}

.page-custom a:focus-visible,
.page-custom [tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

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

.page-custom .custom-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-contrast-surface);
  color: var(--color-contrast-ink);
  padding-block: var(--space-4) var(--section-y-lg);
}

.page-custom .custom-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-custom .custom-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  display: block;
}

.page-custom .custom-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-scrim);
}

.page-custom .custom-hero-inner {
  position: relative;
  z-index: 1;
}

.page-custom .custom-hero .crumbs {
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--color-contrast-ink) 72%, transparent);
}

.page-custom .custom-hero .crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-custom .custom-hero .crumbs li + li::before {
  content: "/";
  margin-right: var(--space-1);
  color: var(--color-contrast-line);
}

.page-custom .custom-hero .crumbs a {
  color: var(--color-contrast-accent);
}

.page-custom .custom-hero-top {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.page-custom .custom-hero-head .eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-contrast-accent);
  margin: 0;
}

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

.page-custom .custom-hero h1 span {
  display: block;
}

.page-custom .custom-hero-lede {
  max-width: 56ch;
  margin: 0;
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  color: color-mix(in srgb, var(--color-contrast-ink) 84%, transparent);
}

.page-custom .custom-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-6) 0 0;
  padding: var(--space-3) 0 0;
  border-top: var(--border-thick) solid var(--color-contrast-line);
}

.page-custom .custom-hero-stats dt {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--color-contrast-ink) 66%, transparent);
}

.page-custom .custom-hero-stats dd {
  margin: var(--space-1) 0 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  color: var(--color-contrast-ink);
}

.page-custom .custom-hero-stats .num {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: var(--weight-heading);
  line-height: 1;
  color: var(--color-contrast-accent);
}

.page-custom .custom-stat-unit {
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--color-contrast-ink) 74%, transparent);
}

.page-custom .custom-deck {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.page-custom .custom-deck-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: var(--border-thick) solid var(--color-contrast-ink);
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-lg);
}

.page-custom .custom-deck-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  opacity: 0.72;
}

.page-custom .custom-deck-name {
  letter-spacing: 0.04em;
}

.page-custom .custom-deck-item--a {
  background: var(--color-primary);
  color: var(--color-primary-ink);
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-sm) var(--radius-sm);
  box-shadow: var(--custom-shadow-light);
}

.page-custom .custom-deck-item--b {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-sm);
  box-shadow: var(--custom-shadow-light);
}

.page-custom .custom-deck-item--c {
  background: var(--color-primary-soft);
  color: var(--color-ink);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-lg) var(--radius-sm);
  box-shadow: var(--custom-shadow-light);
}

.page-custom .custom-deck-item--d {
  background: var(--color-highlight);
  color: var(--color-ink);
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-sm) var(--radius-lg);
  box-shadow: var(--custom-shadow-light);
}

@media (min-width: 760px) {
  .page-custom .custom-hero-top {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--space-6);
  }

  .page-custom .custom-deck {
    margin-top: var(--space-6);
  }

  .page-custom .custom-deck-item--a {
    width: 60%;
  }

  .page-custom .custom-deck-item--b {
    width: 70%;
    margin-left: 9%;
  }

  .page-custom .custom-deck-item--c {
    width: 66%;
    margin-left: 3%;
  }

  .page-custom .custom-deck-item--d {
    width: 58%;
    margin-left: 15%;
  }
}

/* ---------- 区块基本头 ---------- */

.page-custom .section-head {
  max-width: var(--measure);
}

.page-custom .section-head .eyebrow {
  margin: 0 0 var(--space-1);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--color-primary);
}

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

.page-custom .section-lede {
  margin: var(--space-2) 0 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .section-lede a {
  color: var(--color-primary);
}

.page-custom .custom-note {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

/* ---------- 四档一览 ---------- */

.page-custom .custom-overview {
  background: var(--color-surface);
}

.page-custom .custom-overview-top {
  display: grid;
  gap: var(--space-4);
}

.page-custom .custom-figure {
  margin: 0;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-md);
  background: var(--color-surface-deep);
  overflow: hidden;
  box-shadow: var(--custom-shadow);
}

.page-custom .custom-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-custom .custom-figure--square img {
  aspect-ratio: 1 / 1;
}

.page-custom .custom-cap {
  display: block;
  padding: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-ink-soft);
  background: var(--color-surface);
  border-top: var(--border-thick) solid var(--color-ink);
}

@media (min-width: 860px) {
  .page-custom .custom-overview-top {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-6);
  }
}

.page-custom .custom-rows {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.page-custom .custom-row {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--color-surface-alt);
  border: var(--border-thick) solid var(--color-ink);
  border-left-width: calc(var(--border-thick) * 5);
  border-radius: var(--radius-sm);
  box-shadow: var(--custom-shadow);
}

.page-custom .custom-row--a {
  border-left-color: var(--color-primary);
}

.page-custom .custom-row--b {
  border-left-color: var(--color-accent);
}

.page-custom .custom-row--c {
  border-left-color: var(--color-contrast-surface);
}

.page-custom .custom-row--d {
  border-left-color: var(--color-contrast-accent);
}

.page-custom .custom-row-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--color-ink-muted);
}

.page-custom .custom-row-name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-xl);
  letter-spacing: 0.04em;
  color: var(--color-ink);
}

.page-custom .custom-row-fit {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .custom-row-ages {
  margin: var(--space-1) 0 0;
}

.page-custom .tag {
  display: inline-block;
  padding: 2px var(--space-2);
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--color-ink);
  background: var(--color-surface);
}

@media (min-width: 880px) {
  .page-custom .custom-row {
    grid-template-columns: 56px minmax(0, 0.85fr) minmax(0, 1.35fr) auto;
    align-items: center;
    gap: var(--space-3);
  }

  .page-custom .custom-row-ages {
    margin: 0;
  }
}

/* ---------- 逐档展开 ---------- */

.page-custom .custom-depth {
  background: var(--color-surface-alt);
}

.page-custom .custom-depth .section-head {
  margin-bottom: var(--space-6);
}

.page-custom .custom-tier {
  position: relative;
  padding: var(--space-4);
  background: var(--color-surface);
  border: var(--border-thick) solid var(--color-ink);
  border-left-width: calc(var(--border-thick) * 5);
  border-radius: var(--radius-md);
  box-shadow: var(--custom-shadow);
}

.page-custom .custom-tier + .custom-tier {
  margin-top: var(--space-4);
}

.page-custom .custom-tier--a {
  border-left-color: var(--color-primary);
}

.page-custom .custom-tier--b {
  border-left-color: var(--color-accent);
}

.page-custom .custom-tier--c {
  border-left-color: var(--color-contrast-surface);
}

.page-custom .custom-tier--d {
  border-left-color: var(--color-contrast-accent);
}

.page-custom .custom-tier-head {
  display: grid;
  gap: var(--space-1);
}

.page-custom .custom-tier-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--color-primary);
}

.page-custom .custom-tier-head h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-2xl);
  line-height: var(--leading-heading);
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.page-custom .custom-tier-fit {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

.page-custom .custom-tier-body {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.page-custom .custom-tier-lists {
  display: grid;
  gap: var(--space-3);
}

.page-custom .custom-tier-col h4 {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  color: var(--color-ink);
}

.page-custom .custom-tier-col ul {
  margin: 0;
  padding-left: var(--space-3);
  display: grid;
  gap: var(--space-1);
}

.page-custom .custom-tier-col li {
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .custom-tier-col--no h4 {
  color: var(--color-ink-muted);
}

.page-custom .custom-tier-col--no li {
  color: var(--color-ink-muted);
}

@media (min-width: 700px) {
  .page-custom .custom-tier-lists {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 900px) {
  .page-custom .custom-tier--b {
    margin-left: var(--space-6);
  }

  .page-custom .custom-tier--d {
    margin-left: var(--space-4);
  }

  .page-custom .custom-tier-body:has(.custom-figure) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

/* ---------- 深度对照 ---------- */

.page-custom .custom-diff {
  background: var(--color-surface);
}

.page-custom .custom-diff-scroll {
  margin-top: var(--space-4);
  overflow-x: auto;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--custom-shadow);
}

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

.page-custom .custom-caption {
  caption-side: top;
  padding: var(--space-2) var(--space-3);
  text-align: left;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  background: var(--color-surface-alt);
  border-bottom: var(--border-thick) solid var(--color-ink);
}

.page-custom .custom-diff-table th,
.page-custom .custom-diff-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  vertical-align: top;
  border-bottom: var(--border-thin) solid var(--color-line);
}

.page-custom .custom-diff-table thead th {
  background: var(--color-primary);
  color: var(--color-primary-ink);
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-bottom: var(--border-thick) solid var(--color-ink);
}

.page-custom .custom-diff-table thead th:first-child {
  background: var(--color-contrast-surface);
  color: var(--color-contrast-ink);
}

.page-custom .custom-diff-table tbody th {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  color: var(--color-ink);
  white-space: nowrap;
  background: var(--color-surface-alt);
}

.page-custom .custom-diff-table tbody td {
  color: var(--color-ink-soft);
}

.page-custom .custom-diff-table tbody tr:nth-child(even) td {
  background: var(--color-surface-alt);
}

.page-custom .custom-meter {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-1);
}

.page-custom .custom-meter > span {
  width: var(--space-1);
  height: var(--space-1);
  background: var(--custom-mark);
}

.page-custom .custom-meter--1 > span:nth-child(1),
.page-custom .custom-meter--2 > span:nth-child(-n + 2),
.page-custom .custom-meter--3 > span:nth-child(-n + 3),
.page-custom .custom-meter--4 > span:nth-child(-n + 4) {
  background: var(--color-primary);
}

.page-custom .custom-meter--3 > span:nth-child(3),
.page-custom .custom-meter--4 > span:nth-child(3),
.page-custom .custom-meter--4 > span:nth-child(4) {
  background: var(--color-accent);
}

/* ---------- 选择建议 ---------- */

.page-custom .custom-pick {
  background: var(--color-surface-alt);
}

.page-custom .custom-picks {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.page-custom .custom-pick {
  padding: var(--space-3);
  background: var(--color-surface);
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-md);
  box-shadow: var(--custom-shadow);
}

.page-custom .custom-pick:nth-child(2) {
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-sm) var(--radius-lg);
}

.page-custom .custom-pick:nth-child(3) {
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-lg) var(--radius-sm);
}

.page-custom .custom-pick-line {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-lg);
  line-height: var(--leading-heading);
  color: var(--color-ink);
}

.page-custom .custom-pick-go {
  margin: var(--space-2) 0 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .custom-pick-go strong {
  color: var(--color-accent);
  font-weight: var(--weight-heading);
}

.page-custom .custom-pick-tail {
  margin: var(--space-4) 0 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

.page-custom .custom-pick-tail a {
  color: var(--color-primary);
  font-weight: var(--weight-heading);
}

@media (min-width: 760px) {
  .page-custom .custom-picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 交付与对接 ---------- */

.page-custom .custom-deliver {
  background: var(--color-contrast-surface);
  color: var(--color-contrast-ink);
}

.page-custom .custom-deliver .eyebrow {
  margin: 0 0 var(--space-1);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--color-contrast-accent);
}

.page-custom .custom-deliver .section-title {
  color: var(--color-contrast-ink);
}

.page-custom .custom-deliver-lede {
  max-width: 52ch;
  margin: var(--space-2) 0 var(--space-4);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: color-mix(in srgb, var(--color-contrast-ink) 82%, transparent);
}

.page-custom .custom-deliver-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: var(--border-thick) solid var(--color-contrast-line);
}

.page-custom .custom-deliver-list li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-2) 0;
  border-bottom: var(--border-thin) solid var(--color-contrast-line);
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--color-contrast-ink) 76%, transparent);
}

.page-custom .custom-deliver-key {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-base);
  letter-spacing: 0.04em;
  color: var(--color-contrast-accent);
}

.page-custom .custom-deliver-side {
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-contrast-ink) 7%, transparent);
  border: var(--border-thick) solid var(--color-contrast-line);
  border-radius: var(--radius-md);
}

.page-custom .custom-deliver-side h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-xl);
  letter-spacing: 0.04em;
  color: var(--color-contrast-ink);
}

.page-custom .custom-deliver-side p {
  margin: var(--space-2) 0 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: color-mix(in srgb, var(--color-contrast-ink) 82%, transparent);
}

.page-custom .custom-deliver-contact {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--color-contrast-ink);
}

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

@media (min-width: 860px) {
  .page-custom .custom-deliver-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
  }
}

/* ---------- 深色区上的按钮兜底 ---------- */

.page-custom .custom-deliver .btn {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border: var(--border-thick) solid var(--color-contrast-ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.page-custom .custom-deliver .btn-accent {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: var(--custom-shadow-light);
}

.page-custom .custom-deliver .btn-ghost {
  background: transparent;
  color: var(--color-contrast-ink);
}

@media (prefers-reduced-motion: reduce) {
  .page-custom * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
