.page-home {
  --home-gap: 20px;
  display: block;
  background: var(--sx-cream);
  color: var(--sx-ink);
  font-family: var(--sx-sans);
  overflow-x: hidden;
}

.page-home .sx-section__lead {
  max-width: 46em;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: 28px 0 4px;
}

.page-home .home-hero__inner {
  display: grid;
  gap: 30px;
}

.page-home .home-hero h1 {
  margin: 14px 0 0;
  font-family: var(--sx-serif);
  font-size: clamp(30px, 8vw, 54px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--sx-ink);
}

.page-home .home-hero__lead {
  margin: 16px 0 0;
  max-width: 32em;
  font-size: 17px;
  line-height: 1.75;
  color: var(--sx-gray);
}

.page-home .home-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-route {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid var(--sx-line-strong);
  border-radius: var(--sx-pill);
  background: #fff;
  color: var(--sx-wine);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .home-route:hover,
.page-home .home-route:focus-visible {
  background: var(--sx-red);
  border-color: var(--sx-red);
  color: #fff;
}

.page-home .home-route:focus-visible {
  outline: 2px solid var(--sx-gold);
  outline-offset: 3px;
}

.page-home .home-hero__art {
  position: relative;
  margin: 0;
  padding: 20px 12px 0;
}

.page-home .home-hero__art::before {
  content: "";
  position: absolute;
  inset: 12% -8px -10% -4px;
  z-index: 0;
  background: linear-gradient(104deg, var(--sx-wine) 0%, var(--sx-red) 70%, #a81f27 100%);
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-hero__art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--sx-r-md);
  object-fit: cover;
}

/* ---------- 三步引导 ---------- */
.page-home .home-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 26px 0;
  border-top: 1px solid var(--sx-line);
}

.page-home .home-step:last-child {
  border-bottom: 1px solid var(--sx-line);
}

.page-home .home-step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--sx-gold);
  border-radius: 50%;
  background: #fff;
  color: var(--sx-wine);
  font-family: var(--sx-serif);
  font-size: 16px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

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

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

.page-home .home-step__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--sx-gray);
}

.page-home .home-step__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px dashed currentColor;
  background: none;
  color: var(--sx-red);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.page-home .home-step__toggle::after {
  content: "▾";
  font-size: 12px;
  transition: transform 0.2s ease;
}

.page-home .home-step__toggle[aria-expanded="false"]::after {
  transform: rotate(-90deg);
}

.page-home .home-step__toggle:focus-visible {
  outline: 2px solid var(--sx-gold);
  outline-offset: 3px;
}

.page-home .home-step__panel {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--sx-gold-soft);
  font-size: 15px;
  line-height: 1.8;
  color: var(--sx-gray);
}

.page-home .home-step__panel[hidden] {
  display: none;
}

.page-home .home-step__cta {
  display: inline-flex;
  margin-top: 16px;
}

/* ---------- 三条主线 ---------- */
.page-home .home-hubs__map {
  margin: 0 0 12px;
}

.page-home .home-hubs__map .sx-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--sx-r-md);
  object-fit: cover;
}

.page-home .home-hub {
  padding: 28px 0;
  border-top: 1px solid var(--sx-line);
}

.page-home .home-hub:last-child {
  border-bottom: 1px solid var(--sx-line);
}

.page-home .home-hub__kicker {
  margin: 0;
  color: var(--sx-wine);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.page-home .home-hub__title {
  margin: 10px 0 0;
  font-family: var(--sx-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sx-ink);
}

.page-home .home-hub__text {
  margin: 10px 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--sx-gray);
}

.page-home .home-hub__figure {
  margin: 18px 0 0;
}

.page-home .home-hub__figure .sx-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--sx-r-sm);
  object-fit: cover;
}

.page-home .home-hub__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--sx-red);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--sx-gold-soft);
  padding-bottom: 2px;
}

.page-home .home-hub__link:hover,
.page-home .home-hub__link:focus-visible {
  border-bottom-color: var(--sx-red);
}

.page-home .home-hub__link:focus-visible {
  outline: 2px solid var(--sx-gold);
  outline-offset: 3px;
}

/* ---------- 数据带 ---------- */
.page-home .home-numbers {
  margin: 8px 0 0;
  padding: 44px 0;
  background: var(--sx-ink);
  border-radius: var(--sx-r-lg);
}

.page-home .home-numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 18px;
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--sx-sans);
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--sx-gold-soft);
  font-variant-numeric: tabular-nums;
}

.page-home .home-stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sx-on-dark-soft);
}

/* ---------- 最近更新 ---------- */
.page-home .home-updates__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-update {
  padding: 22px 0;
  border-top: 1px solid var(--sx-line);
}

.page-home .home-update:last-child {
  border-bottom: 1px solid var(--sx-line);
}

.page-home .home-update .sx-timeline__title {
  margin: 12px 0 0;
  font-family: var(--sx-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--sx-ink);
}

.page-home .home-update .sx-timeline__text {
  margin: 8px 0 0;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--sx-gray);
}

.page-home .home-updates__cta {
  display: inline-flex;
  margin-top: 24px;
}

/* ---------- 收藏与咨询 ---------- */
.page-home .home-tail {
  margin-top: 12px;
  padding: 48px 0 56px;
  background: var(--sx-celadon);
  border-radius: var(--sx-r-lg) var(--sx-r-lg) 0 0;
  color: var(--sx-cream);
}

.page-home .home-tail__inner {
  display: grid;
  gap: 32px;
}

.page-home .home-tail__title,
.page-home .home-tail__consult-title {
  margin: 0;
  font-family: var(--sx-serif);
  font-weight: 700;
  line-height: 1.35;
  color: var(--sx-cream);
}

.page-home .home-tail__title {
  font-size: clamp(24px, 6vw, 34px);
}

.page-home .home-tail__consult-title {
  font-size: 22px;
}

.page-home .home-tail__text {
  margin: 14px 0 0;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--sx-on-dark);
}

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

.page-home .home-tail__figure .sx-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--sx-r-md);
  object-fit: cover;
}

.page-home .home-tail__consult {
  padding-top: 26px;
  border-top: 1px solid rgba(251, 247, 242, 0.24);
}

.page-home .home-tail__consult .sx-btn {
  display: inline-flex;
  margin-top: 18px;
}

.page-home .sx-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 22px;
  border: 1px solid var(--sx-gold);
  border-radius: var(--sx-pill);
  background: transparent;
  color: var(--sx-gold-soft);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-home .sx-bookmark:hover,
.page-home .sx-bookmark:focus-visible {
  background: var(--sx-gold);
  color: var(--sx-ink);
}

.page-home .sx-bookmark:focus-visible {
  outline: 2px solid var(--sx-gold-soft);
  outline-offset: 3px;
}

.page-home .sx-bookmark__tip {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--sx-gold-soft);
}

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 44px 0 12px;
  }

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

  .page-home .home-hero__art {
    padding: 26px 20px 0;
  }

  .page-home .home-hero__art::before {
    inset: 14% -34px -14% -46px;
    clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .home-step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 24px;
    padding: 32px 0;
  }

  .page-home .home-step__num {
    width: 52px;
    height: 52px;
    font-size: 19px;
  }

  .page-home .home-step__title {
    font-size: 24px;
  }

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

  .page-home .home-hub--device {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
  }

  .page-home .home-hub--device .home-hub__kicker,
  .page-home .home-hub--device .home-hub__title,
  .page-home .home-hub--device .home-hub__text,
  .page-home .home-hub--device .home-hub__link {
    grid-column: 1;
  }

  .page-home .home-hub--device .home-hub__figure {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
  }

  .page-home .home-numbers {
    padding: 64px 0;
  }

  .page-home .home-numbers__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 32px;
  }

  .page-home .home-tail {
    padding: 72px 0 84px;
  }

  .page-home .home-tail__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
  }

  .page-home .home-tail__consult {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-route,
  .page-home .home-step__toggle::after,
  .page-home .sx-bookmark {
    transition: none;
  }
}
