.page-custom {
  --custom-rule: var(--border-thin) solid var(--color-line);
  --custom-rule-dark: var(--border-thin) solid var(--color-contrast-line);
  display: block;
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: var(--leading-body);
  overflow-wrap: break-word;
}

.page-custom img {
  max-width: 100%;
  height: auto;
}

.page-custom h1,
.page-custom h2,
.page-custom h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  margin: 0;
}

.page-custom p,
.page-custom ul,
.page-custom ol,
.page-custom figure {
  margin: 0;
}

.page-custom .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

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

.page-custom .custom-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--space-1);
  background-image: repeating-linear-gradient(
    90deg,
    var(--color-contrast-accent) 0 var(--border-thick),
    transparent var(--border-thick) var(--space-2)
  );
  opacity: 0.5;
  pointer-events: none;
}

.page-custom .custom-hero__inner {
  display: grid;
  gap: var(--space-6);
  align-items: end;
}

.page-custom .custom-hero__crumb,
.page-custom .custom-hero__crumb a,
.page-custom .custom-hero__crumb li {
  color: var(--color-contrast-ink);
}

.page-custom .custom-hero__crumb {
  margin-bottom: var(--space-4);
}

.page-custom .custom-hero__crumb a {
  opacity: 0.68;
  text-decoration: none;
}

.page-custom .custom-hero__crumb a:hover,
.page-custom .custom-hero__crumb a:focus-visible {
  opacity: 1;
}

.page-custom .custom-hero__title {
  font-size: var(--text-display);
  font-weight: 900;
  line-height: 1.03;
  margin-bottom: var(--space-3);
}

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

.page-custom .custom-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.page-custom .custom-hero__jump {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-contrast-accent);
  text-decoration: none;
  border-bottom: var(--border-thin) solid currentColor;
  padding-bottom: var(--space-1);
}

.page-custom .custom-hero__jump:focus-visible {
  outline: var(--border-thick) solid var(--color-contrast-accent);
  outline-offset: var(--border-thick);
}

.page-custom .custom-hero__figures {
  display: grid;
  border-top: var(--custom-rule-dark);
}

.page-custom .hero-stat {
  padding-block: var(--space-2);
  border-bottom: var(--custom-rule-dark);
}

.page-custom .hero-stat__label {
  font-size: var(--text-sm);
  color: var(--color-contrast-ink);
  opacity: 0.62;
  margin-bottom: var(--space-1);
}

.page-custom .hero-stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.24;
  color: var(--color-contrast-accent);
}

/* ---------- 场景段落 ---------- */

.page-custom .custom-scene {
  padding-block: var(--section-y);
  background-color: var(--color-surface);
}

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

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

.page-custom .custom-scene__tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  margin-bottom: var(--space-3);
  background-color: var(--color-primary);
  color: var(--color-primary-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-custom .custom-scene__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

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

.page-custom .custom-scene__text a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: var(--border-thick);
  text-underline-offset: 0.18em;
}

.page-custom .custom-scene__sub {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.page-custom .custom-scene__figure {
  margin-bottom: var(--space-4);
  background-color: var(--color-surface-deep);
  overflow: hidden;
}

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

.page-custom .coop-list,
.page-custom .deliver-list {
  list-style: none;
  padding: 0;
}

.page-custom .coop-list li,
.page-custom .deliver-list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  border-bottom: var(--custom-rule);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom .coop-list li::before,
.page-custom .deliver-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--space-2) + 0.62em);
  width: var(--space-2);
  height: var(--border-thick);
}

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

.page-custom .deliver-list li::before {
  background-color: var(--color-accent);
}

.page-custom .custom-scene--alt .coop-list li,
.page-custom .custom-scene--alt .deliver-list li {
  border-color: color-mix(in srgb, var(--color-ink-muted) 28%, transparent);
}

/* ---------- 分档对照 ---------- */

.page-custom .custom-tiers {
  background-color: var(--color-contrast-surface);
  color: var(--color-contrast-ink);
  padding-block: var(--section-y-lg) var(--section-y);
}

.page-custom .custom-tiers__intro {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-6);
}

.page-custom .custom-tiers__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

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

.page-custom .custom-tiers__lede a,
.page-custom .custom-tiers__note a {
  color: var(--color-contrast-accent);
  text-decoration: underline;
  text-decoration-thickness: var(--border-thick);
  text-underline-offset: 0.18em;
}

.page-custom .custom-tiers__figure {
  overflow: hidden;
}

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

.page-custom .custom-tiers__filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding-block: var(--space-2);
  margin-bottom: var(--space-4);
  border-top: var(--custom-rule-dark);
  border-bottom: var(--custom-rule-dark);
}

.page-custom .custom-tiers__filter .filter-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background-color: transparent;
  color: var(--color-contrast-ink);
  border: var(--border-thin) solid var(--color-contrast-line);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.page-custom .custom-tiers__filter .filter-btn:hover {
  border-color: var(--color-contrast-accent);
  color: var(--color-contrast-accent);
}

.page-custom .custom-tiers__filter .filter-btn[aria-pressed="true"],
.page-custom .custom-tiers__filter .filter-btn.is-active {
  background-color: var(--color-contrast-accent);
  border-color: var(--color-contrast-accent);
  color: var(--color-contrast-surface);
}

.page-custom .custom-tiers__filter .filter-btn:focus-visible {
  outline: var(--border-thick) solid var(--color-contrast-accent);
  outline-offset: var(--border-thick);
}

.page-custom .custom-tiers__filter .filter-btn__count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  opacity: 0.72;
}

.page-custom .tier-row {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: var(--custom-rule-dark);
}

.page-custom .tier-row:last-child {
  border-bottom: var(--custom-rule-dark);
}

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

.page-custom .tier-row__name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.page-custom .tier-row__scale {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-contrast-accent);
}

.page-custom .tier-row__k {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-contrast-ink);
  opacity: 0.55;
  margin-bottom: var(--space-1);
}

.page-custom .tier-row__v {
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--color-contrast-ink);
  opacity: 0.88;
}

.page-custom .tier-row__v .num {
  font-weight: 600;
  color: var(--color-contrast-accent);
}

.page-custom .custom-tiers__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-contrast-ink);
  opacity: 0.7;
}

/* ---------- 收尾出口 ---------- */

.page-custom .custom-cta {
  background-color: var(--color-primary);
  color: var(--color-primary-ink);
  padding-block: var(--section-y-lg);
}

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

.page-custom .custom-cta__title {
  font-size: var(--text-2xl);
  color: var(--color-primary-ink);
  margin-bottom: var(--space-3);
}

.page-custom .custom-cta__text {
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-primary-ink);
  opacity: 0.92;
  max-width: var(--measure);
  margin-bottom: var(--space-4);
}

.page-custom .custom-cta__steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  max-width: var(--measure);
}

.page-custom .custom-cta__steps li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: var(--border-thin) solid color-mix(in srgb, var(--color-primary-ink) 32%, transparent);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

.page-custom .custom-cta__steps .num {
  font-weight: 700;
  font-size: var(--text-lg);
  min-width: var(--space-3);
}

.page-custom .custom-cta__side {
  border-top: var(--border-thick) solid color-mix(in srgb, var(--color-primary-ink) 62%, transparent);
  padding-top: var(--space-3);
}

.page-custom .custom-cta__label {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  opacity: 0.74;
  margin-bottom: var(--space-2);
}

.page-custom .custom-cta__contact {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary-ink);
  word-break: break-all;
}

.page-custom .custom-cta__note {
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  opacity: 0.82;
  margin-top: var(--space-2);
}

.page-custom .custom-cta__btn {
  display: inline-block;
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-surface);
  color: var(--color-primary);
  border: var(--border-thin) solid var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.page-custom .custom-cta__btn:hover,
.page-custom .custom-cta__btn:focus-visible {
  background-color: transparent;
  color: var(--color-surface);
}

.page-custom .custom-cta__btn:focus-visible {
  outline: var(--border-thick) solid var(--color-surface);
  outline-offset: var(--border-thick);
}

/* ---------- 响应式 ---------- */

@media (min-width: 768px) {
  .page-custom .custom-scene__title {
    font-size: var(--text-3xl);
  }

  .page-custom .custom-tiers__title,
  .page-custom .custom-cta__title {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 900px) {
  .page-custom .custom-hero {
    display: grid;
    align-content: center;
    min-height: 60vh;
  }

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

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

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

  .page-custom .tier-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 2.2fr) minmax(0, 2.4fr);
    gap: var(--space-4);
    align-items: start;
  }

  .page-custom .custom-cta__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: var(--space-8);
  }
}

@media (max-width: 899px) {
  .page-custom .custom-scene__side {
    border-top: var(--custom-rule);
    padding-top: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-custom *,
  .page-custom *::before,
  .page-custom *::after {
    animation: none !important;
    transition: none !important;
  }
}
