.page-custom {
  display: block;
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  overflow-x: clip;
}

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

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

.page-custom .custom-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.page-custom .custom-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--overlay-scrim);
}

.page-custom .custom-hero__mark {
  position: absolute;
  top: var(--space-6);
  right: var(--space-4);
  z-index: 1;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--color-contrast-accent);
}

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

.page-custom .custom-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-contrast-accent);
}

.page-custom .custom-crumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: var(--border-thin) solid transparent;
}

.page-custom .custom-crumb a:hover,
.page-custom .custom-crumb a:focus-visible {
  border-bottom-color: currentColor;
}

.page-custom .custom-hero .eyebrow {
  margin-top: var(--space-4);
  color: var(--color-contrast-accent);
}

.page-custom .custom-hero__title {
  margin: var(--space-4) 0 0;
  max-width: min(9em, 100%);
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-heading);
  line-height: 0.95;
  letter-spacing: var(--tracking-heading);
  color: var(--color-contrast-ink);
}

.page-custom .custom-hero__lede {
  margin: var(--space-4) 0 0;
  max-width: var(--measure);
  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__figures {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: var(--space-6) 0 0;
  border-top: var(--border-thin) solid var(--color-contrast-line);
  display: grid;
  gap: var(--space-4);
}

.page-custom .custom-hero__figures li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.page-custom .custom-fig__num {
  font-family: var(--font-mono);
  font-size: var(--text-figure);
  font-weight: var(--weight-heading);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-contrast-accent);
}

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

/* ---------- 分组跳转 ---------- */

.page-custom .custom-jump {
  background-color: var(--color-surface-alt);
  padding-block: var(--space-3);
}

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

.page-custom .custom-jump__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

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

/* ---------- 分组通用 ---------- */

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

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

.page-custom .custom-group__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  margin-bottom: var(--space-8);
}

.page-custom .custom-vmark {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  line-height: 1;
  padding-top: 0.2em;
  color: var(--color-ink-muted);
}

.page-custom .custom-group__title {
  margin: 0;
  max-width: 24ch;
  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-ink);
}

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

.page-custom .custom-group__head .lede a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: var(--border-thin) solid color-mix(in srgb, var(--color-primary) 45%, transparent);
}

.page-custom .custom-group__head .lede a:hover,
.page-custom .custom-group__head .lede a:focus-visible {
  border-bottom-color: var(--color-primary);
}

/* ---------- 媒体分组横幅图 ---------- */

.page-custom .custom-strip {
  position: relative;
  margin: 0 0 var(--space-8);
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.page-custom .custom-strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 480;
  object-fit: cover;
}

.page-custom .custom-strip figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-8) var(--space-4) var(--space-4);
  background: var(--overlay-scrim);
  color: var(--color-contrast-ink);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ---------- 能力条目 ---------- */

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

.page-custom .cap {
  padding-top: var(--space-4);
  border-top: var(--border-thin) solid var(--color-line);
}

.page-custom .custom-group--alt .cap {
  border-top-color: var(--color-surface-deep);
}

.page-custom .cap__no {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--color-accent);
}

.page-custom .cap__name {
  margin: 0;
  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-ink);
}

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

.page-custom .cap__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
}

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

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

.page-custom .cap__days {
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  color: var(--color-accent);
  transition: font-size 200ms ease;
}

.page-custom .cap:hover .cap__days,
.page-custom .cap:focus-within .cap__days {
  font-size: var(--text-2xl);
}

/* ---------- 图文分栏 ---------- */

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

.page-custom .custom-split__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

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

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

/* ---------- 准备材料清单 ---------- */

.page-custom .custom-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-custom .custom-check {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-3);
  border-bottom: var(--border-thin) solid var(--color-line);
}

.page-custom .custom-check:first-child {
  border-top: var(--border-thin) solid var(--color-line);
}

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

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

/* ---------- 边界说明 ---------- */

.page-custom .custom-boundary {
  background-color: var(--color-highlight);
  padding-block: var(--section-y);
  color: var(--color-ink);
}

.page-custom .custom-boundary__list {
  list-style: none;
  counter-reset: bd;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
  display: grid;
  gap: var(--space-3);
}

.page-custom .custom-boundary__list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

.page-custom .custom-boundary__list li::before {
  counter-increment: bd;
  content: counter(bd, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.28em;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.page-custom .custom-boundary__figure {
  margin: var(--space-8) 0 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.page-custom .custom-boundary__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 560;
  object-fit: cover;
}

/* ---------- 联系 ---------- */

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

.page-custom .custom-contact__inner {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

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

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

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

.page-custom .custom-contact__list .mono {
  color: var(--color-primary);
  font-weight: var(--weight-heading);
}

.page-custom .custom-contact__act {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-soft);
}

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

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

@media (min-width: 640px) {
  .page-custom .cap__field {
    grid-template-columns: 6em minmax(0, 1fr);
    gap: var(--space-3);
    align-items: baseline;
  }
}

@media (min-width: 720px) {
  .page-custom .custom-check {
    grid-template-columns: 13em minmax(0, 1fr);
    gap: var(--space-4);
    align-items: baseline;
  }

  .page-custom .custom-group__head {
    gap: var(--space-4);
  }
}

@media (min-width: 900px) {
  .page-custom .custom-hero {
    padding-block: var(--section-y-lg) var(--section-y);
  }

  .page-custom .custom-hero__mark {
    top: var(--section-y);
    right: var(--space-6);
  }

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

  .page-custom .custom-hero__figures li {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .page-custom .custom-split {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--space-8);
  }

  .page-custom .custom-split--left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }

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

  .page-custom .custom-contact__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 719px) {
  .page-custom .custom-hero__mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-custom .cap__days,
  .page-custom .custom-jump__link {
    transition: none;
  }

  .page-custom .cap:hover .cap__days,
  .page-custom .cap:focus-within .cap__days {
    font-size: var(--text-xl);
  }
}
