.page-home {
  --home-display: clamp(38px, 8vw, 88px);
  --home-cut: 56px;
  background: var(--mist);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.85;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  .page-home {
    --home-cut: 92px;
  }
}

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

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--grass);
  background-image: linear-gradient(140deg, #10755f 0%, #0b4a3e 62%, #0b2521 100%);
  color: var(--mist);
  padding: clamp(30px, 7vw, 76px) 0 calc(var(--home-cut) + 34px);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--home-cut);
  background: var(--mist);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(1);
  z-index: 0;
}

.page-home .home-hero__line {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 76%;
  max-width: 420px;
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
}

.page-home .home-hero__line path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
  transition: stroke-width 0.3s var(--ease), opacity 0.3s var(--ease);
}

.page-home .home-hero:has(.home-hero__actions a:hover) .home-hero__line path,
.page-home .home-hero:has(.home-hero__actions a:focus-visible) .home-hero__line path {
  stroke-width: 4;
  opacity: 1;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(258px, 0.6fr);
    align-items: end;
    gap: 56px;
  }
}

.page-home .home-hero__index {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-round);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--grass-soft);
}

.page-home .home-seal {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--official);
  box-shadow: 0 0 0 2px rgba(246, 243, 234, 0.4);
  flex: none;
}

.page-home .home-hero__title {
  margin: 16px 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--home-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--mist);
  text-wrap: balance;
}

.page-home .home-hero__text {
  margin: 0 0 26px;
  max-width: 34ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: #dbe9e3;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-hero__actions .kit-btn {
  font-family: var(--font-round);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .home-hero__actions .kit-btn--primary {
  background: var(--gold);
  color: var(--ink);
  border: var(--edge);
}

.page-home .home-hero__actions .kit-btn--primary:hover,
.page-home .home-hero__actions .kit-btn--primary:focus-visible {
  background: var(--gold-soft);
}

.page-home .home-hero__actions .kit-btn--ghost {
  background: transparent;
  color: var(--mist);
  border: 3px solid var(--mist);
}

.page-home .home-hero__actions .kit-btn--ghost:hover,
.page-home .home-hero__actions .kit-btn--ghost:focus-visible {
  background: var(--mist);
  color: var(--ink);
}

.page-home .home-hero__hint {
  margin: 18px 0 0;
  max-width: 32ch;
  font-family: var(--font-round);
  font-size: 13px;
  line-height: 1.7;
  color: var(--gold);
}

/* 路径对照卡 */

.page-home .home-compare {
  background: var(--mist);
  color: var(--ink);
  border: var(--edge);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 18px 18px 20px;
  font-family: var(--font-round);
  justify-self: stretch;
}

@media (min-width: 960px) {
  .page-home .home-compare {
    justify-self: end;
    width: 100%;
  }
}

.page-home .home-compare__label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saddle);
}

.page-home .home-compare__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 14px;
}

.page-home .home-compare__ver {
  flex: none;
  width: 2.6em;
  color: var(--text);
}

.page-home .home-dots {
  display: flex;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}

.page-home .home-dots i {
  display: block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stone);
}

.page-home .home-dots--new i {
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(11, 37, 33, 0.15);
}

.page-home .home-compare__count {
  flex: none;
  font-size: 13px;
  color: var(--ink);
}

.page-home .home-compare__note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 3px solid var(--stone);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- 通用章节 ---------- */

.page-home .home-sect {
  padding-top: clamp(38px, 6vw, 76px);
  padding-bottom: 0;
}

.page-home .kit-chapter__title {
  text-wrap: balance;
}

.page-home .home-flow__lead,
.page-home .home-helper__lead {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
}

/* ---------- 五步路径 ---------- */

.page-home .home-flow {
  display: grid;
  gap: 26px;
  margin-top: 28px;
}

@media (min-width: 1080px) {
  .page-home .home-flow {
    grid-template-columns: minmax(0, 1fr) 252px;
    align-items: start;
    gap: 32px;
  }
}

.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

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

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

.page-home .home-step {
  background: #ffffff;
  border: var(--edge);
  box-shadow: 6px 6px 0 var(--stone);
  padding: 16px 14px 18px;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), background-color 0.24s var(--ease);
}

.page-home .home-step:hover,
.page-home .home-step:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--gold);
  background: var(--grass-soft);
}

.page-home .home-step__num {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 7px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.page-home .home-step__title {
  margin: 0 0 6px;
  font-family: var(--font-round);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.page-home .home-step__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text);
}

.page-home .home-flow__figure {
  margin: 0 auto;
  max-width: 320px;
  border: var(--edge);
  background: #ffffff;
  box-shadow: var(--shadow-hard);
}

@media (min-width: 1080px) {
  .page-home .home-flow__figure {
    max-width: none;
    margin: 0;
  }
}

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

.page-home .home-flow__figure figcaption {
  padding: 12px 14px;
  border-top: 3px solid var(--ink);
  font-family: var(--font-round);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
}

/* ---------- 服务与时段 ---------- */

.page-home .home-svc-figures {
  margin-top: 26px;
  gap: 18px;
}

.page-home .home-shot {
  margin: 0;
  border: var(--edge);
  background: #ffffff;
  box-shadow: 8px 8px 0 var(--stone);
}

.page-home .home-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-shot figcaption {
  padding: 12px 14px;
  border-top: 3px solid var(--ink);
  font-family: var(--font-round);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .home-services {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 860px) {
  .page-home .home-services {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
  }

  .page-home .home-service:nth-child(odd) {
    grid-column: 1 / span 4;
  }

  .page-home .home-service:nth-child(even) {
    grid-column: 3 / span 4;
  }
}

.page-home .home-service {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px 18px 20px;
  background: var(--mist);
  border: var(--edge);
  box-shadow: var(--shadow-hard);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.page-home .home-service:nth-child(even) {
  background: var(--grass-soft);
}

.page-home .home-service:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 var(--gold);
}

.page-home .home-service__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-home .home-service__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--saddle);
}

.page-home .home-service__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .home-service__desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text);
}

.page-home .home-service__slot {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  font-family: var(--font-round);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .home-service:nth-child(even) .home-service__slot {
  background: var(--mist);
}

.page-home .home-svc-foot {
  margin: 28px 0 0;
  max-width: 60ch;
  font-family: var(--font-round);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- 帮长辈下单 ---------- */

.page-home .home-helper {
  background: var(--gold-soft);
  border: var(--edge);
  box-shadow: var(--shadow-hard);
  padding: clamp(22px, 4vw, 44px);
}

@media (min-width: 860px) {
  .page-home .home-helper {
    margin-left: 24px;
  }
}

.page-home .home-helper .kit-chapter__num {
  color: var(--saddle);
}

.page-home .home-helper__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .page-home .home-helper__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.page-home .home-helper__item {
  padding: 16px 16px 18px;
  background: var(--mist);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--saddle);
}

.page-home .home-helper__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--saddle);
}

.page-home .home-helper__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text);
}

.page-home .home-helper__note {
  margin: 26px 0 0;
  padding: 14px 16px;
  background: var(--mist);
  border-left: 6px solid var(--saddle);
  font-family: var(--font-round);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}

.page-home .home-helper__more {
  margin: 18px 0 0;
  font-family: var(--font-round);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}

/* ---------- 官方身份窄条 ---------- */

.page-home .home-official {
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(26px, 4vw, 42px) 0;
  background: var(--ink);
  color: var(--mist);
}

.page-home .home-official__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 28px;
}

.page-home .home-official__seal {
  flex: none;
  width: 34px;
  height: 34px;
  margin: 4px 0 0;
  background: var(--official);
  border: 2px solid var(--mist);
}

.page-home .home-official__body {
  flex: 1 1 320px;
  min-width: 0;
}

.page-home .home-official__line {
  margin: 0 0 6px;
  font-family: var(--font-round);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .home-official__desc {
  margin: 0 0 8px;
  font-family: var(--font-round);
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 46ch;
}

.page-home .home-official__meta {
  margin: 0 0 6px;
  font-family: var(--font-round);
  font-size: 14px;
  line-height: 1.75;
  color: var(--grass-soft);
  word-break: break-word;
}

.page-home .home-official__code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone);
}

.page-home .home-official__links {
  flex: 0 1 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .home-official__links .kit-link {
  font-family: var(--font-round);
  font-size: 14px;
  color: var(--grass-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .home-official__links .kit-link:hover,
.page-home .home-official__links .kit-link:focus-visible {
  color: var(--gold);
}

/* ---------- 减少动效 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .home-step,
  .page-home .home-service,
  .page-home .home-hero__line path {
    transition: none;
  }

  .page-home .home-step:hover,
  .page-home .home-service:hover {
    transform: none;
  }
}
