.page-home {
  --home-cut: 18px;
  --home-radius: 999px;
}

.page-home .page-context {
  margin: 0;
  padding: 26px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.page-home .page-context__here {
  color: var(--c-ink);
  font-weight: 700;
}

.page-home .page-context__sep {
  margin: 0 8px;
  color: var(--c-orange);
}

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

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 52px) 0 clamp(34px, 5vw, 68px);
  background:
    radial-gradient(120% 82% at 86% -12%, rgba(242, 140, 40, 0.18), rgba(253, 246, 236, 0) 62%),
    var(--c-cream);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(46, 107, 79, 0.07) 0 1px, transparent 1px 15px);
  opacity: 0.55;
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.page-home .hero__canvas {
  min-width: 0;
}

.page-home .hero__title {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 6.2vw, var(--fs-2xl));
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  max-width: 18em;
}

.page-home .hero__lead {
  margin: 16px 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--c-muted);
  max-width: 34em;
}

/* ---------- 账号区常驻栏 ---------- */

.page-home .account-rail {
  position: relative;
  padding: 22px 20px 24px;
  background: var(--c-green);
  color: var(--c-cream);
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, 0 100%);
}

.page-home .account-rail__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(253, 246, 236, 0.34);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-md);
}

.page-home .account-rail__head .num {
  font-family: var(--font-mono);
  color: var(--c-orange);
}

.page-home .rail-slot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  padding: 13px 14px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  background: rgba(253, 246, 236, 0.08);
  border-left: 3px solid transparent;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}

.page-home .rail-slot:hover,
.page-home .rail-slot:focus-visible {
  background: rgba(253, 246, 236, 0.16);
  transform: translateY(-2px);
}

.page-home .rail-slot__num {
  grid-row: 1 / span 2;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-orange);
}

.page-home .rail-slot__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-base);
}

.page-home .rail-slot__desc {
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: rgba(253, 246, 236, 0.78);
}

.page-home .rail-slot--key {
  background: var(--c-cream);
  color: var(--c-ink);
  border-left: 4px solid var(--c-vermilion);
  box-shadow: 0 8px 16px rgba(31, 42, 36, 0.2);
}

.page-home .rail-slot--key .rail-slot__num {
  color: var(--c-vermilion);
}

.page-home .rail-slot--key .rail-slot__desc {
  color: var(--c-muted);
}

.page-home .account-rail__note {
  margin: 14px 0 0;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: rgba(253, 246, 236, 0.7);
}

/* ---------- 路径索引 ---------- */

.page-home .path-index {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 2px solid var(--c-ink);
}

.page-home .path-index > li + li {
  border-top: 1px solid var(--c-border);
}

.page-home .path-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 2px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}

.page-home .path-item:hover,
.page-home .path-item:focus-visible {
  background: var(--c-orange-tint);
  transform: translateY(-2px);
}

.page-home .path-item__num {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 3px;
  border-radius: var(--home-radius);
  background: var(--c-orange);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.page-home .path-item__body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.page-home .path-item__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.35;
  color: var(--c-ink);
}

.page-home .path-item__desc {
  font-size: var(--fs-base);
  line-height: 1.72;
  color: var(--c-muted);
}

.page-home .path-item__go {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--c-orange-deep);
}

/* ---------- 图片通用 ---------- */

.page-home .figure {
  margin: 0;
}

.page-home .figure__frame {
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-orange-tint), var(--c-green-tint));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .figure__frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .figure__caption {
  margin: 10px 0 0;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--c-muted);
}

.page-home .hero-figure {
  margin-top: 30px;
}

.page-home .scale-figure {
  margin-bottom: clamp(26px, 4vw, 48px);
}

/* ---------- 章节标题 ---------- */

.page-home h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(23px, 3.6vw, var(--fs-xl));
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--c-ink);
}

.page-home h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.4;
  color: var(--c-ink);
}

.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: clamp(20px, 3vw, 30px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-ink);
}

.page-home .section-head--tight {
  margin-top: 0;
}

.page-home .section-head__num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--home-radius);
  background: var(--c-orange);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.page-home .anchor-btn {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.page-home .anchor-btn:hover {
  color: var(--c-orange-deep);
  border-color: var(--c-orange);
}

/* ---------- 分栏与正文 ---------- */

.page-home .split {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.page-home .split--steps,
.page-home .split--rail,
.page-home .split--screen {
  align-items: start;
}

.page-home .prose p {
  margin: 0 0 1em;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.78;
  color: var(--c-ink);
}

.page-home .split__more {
  margin-top: 1.2em;
}

/* ---------- 步骤 ---------- */

.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: homeStep;
}

.page-home .home-steps li {
  position: relative;
  padding: 0 0 24px 48px;
  counter-increment: homeStep;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.78;
  color: var(--c-ink);
}

.page-home .home-steps li::before {
  content: counter(homeStep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--home-radius);
  background: var(--c-orange);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.page-home .home-steps li::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 36px;
  bottom: 6px;
  width: 2px;
  background: var(--c-green-tint);
}

.page-home .home-steps li:last-child {
  padding-bottom: 0;
}

.page-home .home-steps li:last-child::after {
  display: none;
}

/* ---------- 批次条带 ---------- */

.page-home .batch-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .batch-item {
  position: relative;
  padding: 30px 18px 24px 0;
  border-top: 2px solid var(--c-border);
}

.page-home .batch-item__dot {
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: var(--home-radius);
  background: var(--c-green);
  border: 3px solid var(--c-cream);
  box-sizing: content-box;
}

.page-home .batch-item--current {
  border-top-color: var(--c-vermilion);
}

.page-home .batch-item--current .batch-item__dot {
  background: var(--c-vermilion);
}

.page-home .batch-item__id {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-orange-deep);
}

.page-home .batch-item__desc {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--c-muted);
}

.page-home .batch-more {
  margin: 30px 0 0;
}

/* ---------- 数据条带 ---------- */

.page-home .data-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--c-border);
}

.page-home .data-strip__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--c-border);
}

.page-home .data-strip__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(30px, 5.2vw, var(--fs-xl));
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-orange-deep);
}

.page-home .data-strip__num small {
  font-size: 0.5em;
  margin-left: 0.18em;
  font-weight: 600;
}

.page-home .data-strip__label {
  display: block;
  margin-top: 10px;
  max-width: 22em;
  font-size: var(--fs-xs);
  line-height: 1.72;
  color: var(--c-muted);
}

.page-home .scale-note {
  margin-top: clamp(26px, 3.5vw, 40px);
  max-width: 40em;
}

/* ---------- 下一步入口 ---------- */

.page-home .next-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .next-item {
  min-width: 0;
}

.page-home .next-item a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 22px 20px;
  background: var(--c-surface);
  text-decoration: none;
  color: inherit;
  border-left: 4px solid var(--c-orange);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.page-home .next-item a:hover,
.page-home .next-item a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(31, 42, 36, 0.14);
}

.page-home .next-item__k {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--c-muted);
}

.page-home .next-item__t {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.25;
  color: var(--c-green);
}

.page-home .next-item__d {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  line-height: 1.72;
  color: var(--c-muted);
}

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

@media (min-width: 700px) {
  .page-home .split--steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .batch-line {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .batch-item {
    padding-right: 26px;
  }

  .page-home .data-strip {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.85fr);
  }

  .page-home .data-strip__item {
    padding: 22px 22px 22px 0;
    border-bottom: 0;
  }

  .page-home .data-strip__item + .data-strip__item {
    padding-left: 24px;
    border-left: 1px solid var(--c-border);
  }

  .page-home .next-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(32px, 4vw, 56px);
  }

  .page-home .account-rail {
    position: sticky;
    top: 108px;
  }

  .page-home .split--rail,
  .page-home .split--screen {
    align-items: center;
  }
}

@media (max-width: 680px) {
  .page-home .hero__title {
    max-width: none;
  }

  .page-home .hero__lead {
    font-size: var(--fs-base);
  }

  .page-home .section-head {
    align-items: flex-start;
  }

  .page-home .anchor-btn {
    margin-left: 0;
  }

  .page-home .path-item {
    gap: 12px;
    padding: 16px 0;
  }

  .page-home .path-item__num {
    width: 26px;
    height: 26px;
  }

  .page-home .home-steps li {
    padding-left: 42px;
  }

  .page-home .next-item__t {
    font-size: var(--fs-md);
  }
}
