.page-home {
  --home-rail-pad: max(var(--gutter), calc((100vw - 1280px) / 2));
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cloud) 0%, #E8F0F7 100%);
  padding: calc(var(--header-h) + 40px) 0 56px;
  border-bottom: 1px solid var(--mist);
}

.page-home .home-hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(169, 196, 214, .42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(169, 196, 214, .42) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 86%);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 86%);
}

.page-home .home-hero__clouds {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 62%;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--grid) 0 1px, transparent 1px 24px);
  opacity: .55;
  pointer-events: none;
}

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

.page-home .home-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  margin-bottom: 22px;
}

.page-home .home-crumbs__sep {
  color: var(--flame);
}

.page-home .home-hero__title {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--ink-brown);
  font-size: clamp(36px, 8.6vw, 68px);
  margin: 0 0 22px;
}

.page-home .home-hero__line {
  display: block;
}

.page-home .home-hero__line--mark {
  color: var(--sky-deep);
  padding-bottom: 16px;
  background-image: linear-gradient(90deg, var(--green) 0 96px, transparent 96px);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 6px;
}

.page-home .home-hero__lede {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
}

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

.page-home .home-hero__actions .btn--primary {
  transition: background-color var(--ease), color var(--ease), transform var(--ease);
}

.page-home .home-hero__actions .btn--primary:hover {
  background-color: var(--green);
  color: var(--ink-brown);
  transform: translateY(-2px);
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 660px;
  padding-top: 20px;
  border-top: 1px solid var(--mist);
}

.page-home .home-hero__stats .stat {
  padding: 0 14px;
  border-left: 1px solid var(--mist);
}

.page-home .home-hero__stats .stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.page-home .home-hero__stats .stat__idx {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--flame);
  margin-bottom: 8px;
}

.page-home .home-hero__stats .stat__num {
  display: block;
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-brown);
  transform-origin: left bottom;
  transition: transform var(--ease), color var(--ease);
}

.page-home .home-hero__stats .stat:hover .stat__num {
  transform: scale(1.08);
  color: var(--sky-deep);
}

.page-home .home-hero__stats .stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.page-home .home-hero__visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--mist);
  border-radius: var(--radius-organic);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------- 锚点条 ---------- */
.page-home .home-anchor {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  gap: 6px;
  padding: 10px var(--home-rail-pad);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(247, 249, 252, .94);
  border-bottom: 1px solid var(--mist);
}

.page-home .home-anchor::-webkit-scrollbar {
  display: none;
}

.page-home .home-anchor .side-index__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--mist);
  border-radius: 999px;
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}

.page-home .home-anchor .side-index__link .mono {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--flame);
}

.page-home .home-anchor .side-index__link:hover,
.page-home .home-anchor .side-index__link:focus-visible {
  color: var(--sky-deep);
  background: #fff;
  border-color: var(--green);
}

/* ---------- 三条路径 ---------- */
.page-home .home-paths {
  padding: 60px 0 68px;
}

.page-home .home-paths__head {
  max-width: 62ch;
}

.page-home .home-paths__rail {
  display: flex;
  gap: 18px;
  margin-top: 34px;
  padding: 6px var(--home-rail-pad) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .home-path {
  flex: 0 0 min(84vw, 366px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.page-home .home-path:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.page-home .home-path .card__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-brown);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: .06em;
}

.page-home .home-path .card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-brown);
}

.page-home .home-path .card__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-home .home-path .card__meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--sky-deep);
  padding-top: 10px;
  border-top: 1px dashed var(--mist);
}

.page-home .home-path .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- 品类矩阵 ---------- */
.page-home .home-matrix {
  position: relative;
  overflow: hidden;
  padding: 68px 0 72px;
}

.page-home .home-matrix__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  pointer-events: none;
}

.page-home .home-matrix .wrap {
  position: relative;
  z-index: 1;
}

.page-home .home-matrix__head {
  max-width: 66ch;
}

.page-home .home-matrix__list {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-matrix__item {
  padding: 20px 20px 22px;
  background: var(--cream);
  border: 1px solid var(--mist);
  border-radius: var(--radius-organic);
  transition: transform var(--ease), border-color var(--ease);
}

.page-home .home-matrix__item:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

.page-home .home-matrix__idx {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--flame);
}

.page-home .home-matrix__name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-brown);
}

.page-home .home-matrix__series {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--sky);
}

.page-home .home-matrix__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .home-matrix__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--mist);
}

.page-home .home-matrix__note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---------- 两条服务线 ---------- */
.page-home .home-service {
  padding: 0 0 72px;
}

.page-home .home-service__banner {
  margin: 0 0 48px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--mist);
}

.page-home .home-service__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.page-home .home-service__banner .frame__caption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--ink-mute);
  background: var(--cream);
  border-top: 1px solid var(--mist);
}

.page-home .home-service__head {
  max-width: 64ch;
}

.page-home .home-service__lines {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 36px;
}

.page-home .home-line {
  padding: 26px 22px 28px;
  background: var(--cream);
  border: 1px solid var(--mist);
  border-top: 4px solid var(--sky);
  border-radius: var(--radius);
}

.page-home .home-line--train {
  border-top-color: var(--green);
}

.page-home .home-line__title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-brown);
}

.page-home .home-line__steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .home-line__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  background: var(--cloud);
  border-left: 3px solid var(--sky);
  transition: background-color var(--ease);
}

.page-home .home-line--train .home-line__steps li {
  border-left-color: var(--green);
}

.page-home .home-line__steps li:hover {
  background: var(--mist);
}

.page-home .home-line__steps .mono {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--flame);
}

.page-home .home-line__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--mist);
}

.page-home .home-line__facts dt {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--sky-deep);
  margin-bottom: 4px;
}

.page-home .home-line__facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 交付与稳定 ---------- */
.page-home .home-assure {
  padding: 68px 0 72px;
}

.page-home .home-assure__grid {
  gap: 40px;
}

.page-home .home-assure__metrics {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--mist);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-assure__metrics li {
  padding: 16px 18px;
  background: var(--cream);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.page-home .home-assure__metrics .mono {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-brown);
  margin-bottom: 6px;
}

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

.page-home .home-assure__certs li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-assure__certs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.page-home .home-assure__figure {
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--mist);
  border-radius: var(--radius-organic);
  background: var(--cloud);
}

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

.page-home .home-assure__tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-assure__caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  font-size: 13px;
  color: var(--ink-mute);
}

.page-home .home-assure__table {
  width: 100%;
  min-width: 480px;
}

.page-home .home-assure__foot {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* ---------- 近期动作 ---------- */
.page-home .home-updates {
  padding: 68px 0 72px;
}

.page-home .home-updates__head {
  max-width: 64ch;
}

.page-home .home-updates__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 36px;
}

.page-home .home-updates__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--mist);
}

.page-home .home-update {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid var(--mist);
  transition: padding-left var(--ease);
}

.page-home .home-update:hover {
  padding-left: 8px;
}

.page-home .home-update__tag {
  align-self: start;
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--cream);
  background: var(--sky);
  border-radius: 4px;
}

.page-home .home-update__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-brown);
}

.page-home .home-update__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-home .home-guide {
  padding: 26px 24px 28px;
  background: var(--paper);
  border: 1px solid rgba(43, 33, 27, .12);
  border-radius: var(--radius-organic);
}

.page-home .home-guide__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--flame);
}

.page-home .home-guide__title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-brown);
}

.page-home .home-guide__desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-home .home-guide__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.page-home .home-updates__link {
  display: inline-block;
  padding-bottom: 3px;
  font-size: 15px;
  color: var(--sky-deep);
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size var(--ease), color var(--ease);
}

.page-home .home-updates__link:hover,
.page-home .home-updates__link:focus-visible {
  color: var(--ink-brown);
  background-size: 100% 2px;
}

/* ---------- 收束 ---------- */
.page-home .home-cta {
  padding: 68px 0 76px;
}

.page-home .home-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
}

.page-home .home-cta__eyebrow {
  color: var(--green);
}

.page-home .home-cta__title {
  margin: 10px 0 14px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--cream);
}

.page-home .home-cta__desc {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--on-dark-soft);
}

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

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .home-matrix__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .home-update {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: calc(var(--header-h) + 64px) 0 72px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: center;
  }

  .page-home .home-service__lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .page-home .home-updates__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 36px;
  }

  .page-home .home-cta__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
  }

  .page-home .home-cta__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1000px) {
  .page-home .home-matrix__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .home-matrix__item:nth-child(even) {
    margin-top: 34px;
  }
}

@media (min-width: 1080px) {
  .page-home .home-path {
    flex: 0 0 372px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-path,
  .page-home .home-matrix__item,
  .page-home .home-update,
  .page-home .home-hero__stats .stat__num,
  .page-home .home-updates__link,
  .page-home .home-hero__actions .btn--primary {
    transition: none;
  }

  .page-home .home-path:hover,
  .page-home .home-matrix__item:hover,
  .page-home .home-update:hover,
  .page-home .home-hero__stats .stat:hover .stat__num,
  .page-home .home-hero__actions .btn--primary:hover {
    transform: none;
  }
}
