.page-custom {
  --pc-dark: var(--color-contrast-surface);
  --pc-dark-ink: var(--color-contrast-ink);
  --pc-dark-rule: var(--color-contrast-line);
  --pc-dark-accent: var(--color-contrast-accent);
  --pc-hairline: color-mix(in srgb, var(--color-ink) 14%, transparent);
  --pc-soft-rule: color-mix(in srgb, var(--color-ink) 8%, transparent);
}

/* ============ 首屏 ============ */

.page-custom .custom-hero {
  background: var(--pc-dark);
  color: var(--pc-dark-ink);
  padding: calc(var(--space-8) + var(--space-4)) 0 0;
}

.page-custom .custom-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--pc-dark-rule);
}

.page-custom .custom-hero .breadcrumb__link {
  color: var(--pc-dark-rule);
  text-decoration: none;
  transition: color 160ms ease;
}

.page-custom .custom-hero .breadcrumb__link:hover,
.page-custom .custom-hero .breadcrumb__link:focus-visible {
  color: var(--pc-dark-accent);
}

.page-custom .custom-hero .breadcrumb__sep {
  color: var(--pc-dark-rule);
}

.page-custom .custom-hero .breadcrumb__current {
  color: var(--pc-dark-accent);
}

.page-custom .custom-hero__eyebrow {
  margin: var(--space-6) 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pc-dark-accent);
}

.page-custom .custom-hero__title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--pc-dark-ink);
  word-break: break-word;
}

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

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

.page-custom .custom-stats .stat {
  display: block;
}

.page-custom .custom-stats .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-figure);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--pc-dark-accent);
}

.page-custom .custom-stats .stat__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-lg);
  line-height: 1.32;
  color: var(--pc-dark-ink);
}

.page-custom .custom-stats__note {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--pc-dark-rule);
}

/* ============ 场景大图 ============ */

.page-custom .custom-scene {
  margin: 0 auto;
  padding: 0;
  max-width: 1440px;
}

.page-custom .custom-scene img {
  display: block;
  width: 100%;
  height: clamp(240px, 50vw, 600px);
  object-fit: cover;
}

.page-custom .custom-scene figcaption {
  max-width: var(--measure);
  margin: var(--space-3) auto 0;
  padding: 0 var(--gutter);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink-muted);
  text-align: center;
}

/* ============ 概览 ============ */

.page-custom .custom-overview {
  padding: var(--section-y) 0 0;
}

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

.page-custom .custom-overview__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: min(var(--text-2xl), 9vw);
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

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

.page-custom .custom-overview__body p:last-child {
  margin-bottom: 0;
  color: var(--color-ink);
}

/* ============ 档位 ============ */

.page-custom .custom-tiers {
  padding: var(--section-y) 0 0;
}

.page-custom .custom-tiers__head {
  display: grid;
  gap: var(--space-3);
  padding-bottom: var(--space-6);
}

.page-custom .custom-tiers__head .title-xl {
  margin: 0;
  max-width: 22ch;
}

.page-custom .tier {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-8) 0 0;
}

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

.page-custom .tier__num {
  display: inline-block;
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  color: var(--color-accent);
}

.page-custom .tier__name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: min(var(--text-3xl), 12vw);
  line-height: 1.02;
  letter-spacing: 0.03em;
  color: var(--color-ink);
}

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

.page-custom .tier__body {
  min-width: 0;
}

.page-custom .tier__facts {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.page-custom .tier__fact {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
}

.page-custom .tier__fact dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-ink-muted);
}

.page-custom .tier__fact dd {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink);
}

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

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

.page-custom .tier__verdict-key {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.page-custom .tier__verdict-item--fit .tier__verdict-key {
  color: var(--color-accent);
}

.page-custom .tier__media {
  margin: var(--space-6) 0 0;
}

.page-custom .tier__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-custom .tier__media figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.page-custom .custom-mid {
  margin: var(--space-6) 0 0;
}

.page-custom .custom-mid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-custom .custom-mid figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.page-custom .custom-empty {
  margin: var(--space-6) 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
}

.page-custom .custom-empty[hidden] {
  display: none;
}

/* ============ 对照表 ============ */

.page-custom .custom-compare {
  padding: var(--section-y) 0 0;
}

.page-custom .custom-compare__title {
  margin: var(--space-3) 0 0;
  max-width: 20ch;
}

.page-custom .custom-compare__hint {
  margin: var(--space-3) 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--color-ink-muted);
}

.page-custom .custom-compare__wrap {
  margin: var(--space-6) 0 0;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 - var(--space-8)));
}

.page-custom .custom-compare__table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.page-custom .custom-compare__table th,
.page-custom .custom-compare__table td {
  padding: var(--space-3);
  text-align: left;
  vertical-align: top;
}

.page-custom .custom-compare__table thead th {
  background: var(--color-surface-deep);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink);
  white-space: nowrap;
}

.page-custom .custom-compare__table tbody th {
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 1;
}

.page-custom .custom-compare__table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--color-surface-deep);
}

.page-custom .custom-compare__table tbody td {
  font-family: var(--font-mono);
  color: var(--color-ink);
  white-space: nowrap;
}

.page-custom .custom-compare__table tbody tr + tr th,
.page-custom .custom-compare__table tbody tr + tr td {
  border-top: 1px solid var(--color-line);
}

/* ============ 选择建议 ============ */

.page-custom .custom-advice {
  padding: var(--section-y) 0 0;
}

.page-custom .custom-advice__grid {
  display: grid;
  gap: var(--space-6);
}

.page-custom .custom-advice__title {
  margin: var(--space-3) 0 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: min(var(--text-2xl), 9vw);
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

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

.page-custom .custom-advice__media {
  margin: 0;
}

.page-custom .custom-advice__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-custom .custom-advice__media figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.page-custom .custom-advice__filters {
  margin: var(--space-6) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.page-custom .custom-advice__filters .filter {
  min-height: 44px;
}

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

.page-custom .advice {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

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

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

.page-custom .advice__jump {
  justify-self: start;
  margin-top: var(--space-1);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 160ms ease;
}

.page-custom .advice__jump:hover,
.page-custom .advice__jump:focus-visible {
  color: var(--color-focus);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============ 定制流程 ============ */

.page-custom .custom-steps {
  padding: var(--section-y-lg) 0 0;
}

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

.page-custom .step {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.page-custom .step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.page-custom .step--accent .step__num {
  color: var(--color-accent);
}

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

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

/* ============ 下一步 ============ */

.page-custom .custom-next {
  padding: var(--section-y) 0 var(--space-8);
}

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

.page-custom .custom-next__link {
  display: grid;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
}

.page-custom .custom-next__label {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: min(var(--text-xl), 7vw);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  transition: color 160ms ease;
}

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

.page-custom .custom-next__link:hover .custom-next__label,
.page-custom .custom-next__link:focus-visible .custom-next__label {
  color: var(--color-accent);
}

/* ============ 侧边档位索引 ============ */

.page-custom .custom-rail {
  display: none;
}

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

.page-custom .custom-rail .index__link {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.page-custom .custom-rail .index__link:hover,
.page-custom .custom-rail .index__link:focus-visible,
.page-custom .custom-rail .index__link.is-visible {
  color: var(--color-accent);
}

/* ============ 响应式 ============ */

@media (min-width: 640px) {
  .page-custom .custom-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .page-custom .tier__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3) var(--space-6);
  }

  .page-custom .tier__verdict {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

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

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

@media (min-width: 900px) {
  .page-custom .custom-overview__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-8);
    align-items: end;
  }

  .page-custom .custom-tiers__head {
    padding-bottom: var(--space-8);
  }

  .page-custom .tier {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-8);
    align-items: start;
    padding-top: var(--space-8);
  }

  .page-custom .custom-mid {
    margin-top: var(--space-8);
    max-width: 520px;
    margin-left: auto;
    margin-right: 0;
  }

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

  .page-custom .custom-advice__media {
    align-self: start;
    margin-top: var(--space-4);
  }
}

@media (min-width: 1080px) {
  .page-custom .custom-steps__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .page-custom .custom-next__link {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-6);
    align-items: baseline;
  }

  .page-custom .custom-next__list {
    gap: var(--space-8);
  }
}

@media (min-width: 1280px) {
  .page-custom .custom-rail {
    display: block;
    position: fixed;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-custom .breadcrumb__link,
  .page-custom .advice__jump,
  .page-custom .custom-next__label,
  .page-custom .custom-rail .index__link {
    transition: none;
  }
}
