.page-custom-steps {
  --step-rail-sm: var(--space-6);
  --step-rail-lg: var(--space-8);
}

/* ---------- 面包屑 ---------- */
.page-custom-steps .breadcrumbs {
  padding: var(--space-3) 0 var(--space-1);
}

/* ---------- 首屏 ---------- */
.page-custom-steps .steps-lead {
  padding-top: var(--space-4);
}

.page-custom-steps .steps-lead__frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-contrast-surface);
}

.page-custom-steps .steps-lead__frame .media-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-custom-steps .steps-lead__frame .media-frame__scrim {
  position: absolute;
  inset: 0;
  background: var(--overlay-scrim);
}

.page-custom-steps .steps-lead__body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--measure);
  padding: var(--space-8) var(--space-3) var(--space-4);
  color: var(--color-contrast-ink);
}

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

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

.page-custom-steps .steps-lead__lede {
  margin: var(--space-3) 0 0;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-contrast-ink);
}

/* ---------- 关键数字带 ---------- */
.page-custom-steps .steps-numbers {
  padding-top: var(--space-4);
}

.page-custom-steps .steps-numbers__grid {
  display: grid;
  border-top: var(--border-thick) solid var(--color-ink-soft);
}

.page-custom-steps .steps-numbers__cell {
  padding: var(--space-3) 0;
  border-bottom: var(--border-thin) solid var(--color-line);
}

.page-custom-steps .steps-numbers__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-figure);
  font-weight: var(--weight-heading);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.page-custom-steps .steps-numbers__unit {
  margin-left: var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--color-ink-soft);
}

.page-custom-steps .steps-numbers__note {
  margin: var(--space-2) 0 0;
  max-width: 32ch;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-ink-muted);
}

/* ---------- 流程时间轴 ---------- */
.page-custom-steps .steps-flow {
  padding-top: var(--space-4);
}

.page-custom-steps .flow {
  position: relative;
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}

.page-custom-steps .flow::before {
  content: "";
  position: absolute;
  top: var(--space-4);
  bottom: var(--space-4);
  left: calc(var(--step-rail-sm) / 2);
  margin-left: calc(var(--border-thin) / -2);
  width: var(--border-thin);
  background: var(--color-line);
}

.page-custom-steps .flow__step {
  position: relative;
  display: grid;
  grid-template-columns: var(--step-rail-sm) minmax(0, 1fr);
  column-gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: var(--border-thin) solid var(--color-line);
}

.page-custom-steps .flow__step:first-child {
  border-top: var(--border-thick) solid var(--color-ink-soft);
}

.page-custom-steps .flow__rail {
  position: relative;
}

.page-custom-steps .flow__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--step-rail-sm);
  height: var(--step-rail-sm);
  border: var(--border-thin) solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-heading);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.page-custom-steps .flow__num:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-ink);
}

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

.page-custom-steps .flow__step--risk .flow__num {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.page-custom-steps .flow__body {
  min-width: 0;
}

.page-custom-steps .flow__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
}

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

.page-custom-steps .flow__tag {
  flex: none;
  padding: 0 var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  line-height: 1.7;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.page-custom-steps .flow__desc {
  margin: var(--space-2) 0 0;
  max-width: var(--measure);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

.page-custom-steps .flow__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-2) var(--space-3);
  margin: var(--space-3) 0 0;
  padding-top: var(--space-2);
  border-top: var(--border-thin) dashed var(--color-line);
}

.page-custom-steps .flow__meta > div {
  min-width: 0;
}

.page-custom-steps .flow__meta dt {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
}

.page-custom-steps .flow__meta dd {
  margin: 0.15em 0 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink);
}

.page-custom-steps .flow__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-ink-soft);
}

.page-custom-steps .flow__check-label {
  flex: none;
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  line-height: 1.7;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.page-custom-steps .flow__risk {
  margin: var(--space-2) 0 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  border-left: var(--border-thick) solid var(--color-highlight);
  background: var(--color-surface-alt);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-ink-soft);
}

.page-custom-steps .flow__figure {
  margin: var(--space-3) 0 0;
}

.page-custom-steps .flow__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.page-custom-steps .flow__figure figcaption {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  line-height: 1.65;
  color: var(--color-ink-muted);
}

/* ---------- 对照表 ---------- */
.page-custom-steps .steps-compare {
  padding-top: var(--space-4);
}

.page-custom-steps .steps-table__scroll {
  margin-top: var(--space-4);
  overflow-x: auto;
  border-top: var(--border-thick) solid var(--color-ink-soft);
  border-bottom: var(--border-thin) solid var(--color-line);
}

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

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

.page-custom-steps .steps-table thead th {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-heading);
  letter-spacing: 0.12em;
  color: var(--color-ink-muted);
  white-space: nowrap;
}

.page-custom-steps .steps-table tbody th {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-sm);
  color: var(--color-ink);
  white-space: nowrap;
}

.page-custom-steps .steps-table tbody th a {
  color: inherit;
  text-decoration: none;
  border-bottom: var(--border-thin) solid var(--color-line);
}

.page-custom-steps .steps-table tbody th a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

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

.page-custom-steps .steps-table tbody tr:last-child th,
.page-custom-steps .steps-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-custom-steps .steps-table tbody tr:hover {
  background: var(--color-surface-alt);
}

.page-custom-steps .steps-table__time {
  font-family: var(--font-mono);
  color: var(--color-primary);
  white-space: nowrap;
}

/* ---------- 出口 ---------- */
.page-custom-steps .steps-exit {
  padding-top: var(--space-6);
}

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

.page-custom-steps .steps-exit__card {
  padding: var(--space-3);
  border: var(--border-thin) solid var(--color-line);
  border-top: var(--border-thick) solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}

.page-custom-steps .steps-exit__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-ink);
}

.page-custom-steps .steps-exit__text {
  margin: var(--space-2) 0 var(--space-3);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-custom-steps .steps-exit__aside {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-2);
  border-top: var(--border-thin) solid var(--color-line);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-ink-muted);
}

.page-custom-steps .steps-exit__aside a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: var(--border-thin) solid var(--color-primary);
}

.page-custom-steps .steps-exit__aside a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

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

/* ---------- 中等屏 ---------- */
@media (min-width: 680px) {
  .page-custom-steps .steps-lead__frame {
    min-height: 440px;
  }

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

  .page-custom-steps .steps-lead__title {
    font-size: var(--text-4xl);
  }

  .page-custom-steps .steps-numbers__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-custom-steps .steps-numbers__cell {
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-4);
    border-bottom: 0;
    border-right: var(--border-thin) solid var(--color-line);
  }

  .page-custom-steps .steps-numbers__cell:first-child {
    padding-left: 0;
  }

  .page-custom-steps .steps-numbers__cell:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-custom-steps .steps-lead__frame {
    min-height: 500px;
  }

  .page-custom-steps .flow::before {
    left: calc(var(--step-rail-lg) / 2);
  }

  .page-custom-steps .flow__step {
    grid-template-columns: var(--step-rail-lg) minmax(0, 1fr);
    column-gap: var(--space-4);
    padding: var(--space-6) 0;
  }

  .page-custom-steps .flow__num {
    width: var(--step-rail-lg);
    height: var(--step-rail-lg);
    font-size: var(--text-sm);
  }

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

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

  .page-custom-steps .steps-exit__card {
    padding: var(--space-4);
  }
}
<<<END>>>
