.page-home {
  --home-block: clamp(56px, 8vw, 104px);
  --home-radius: 14px;
  --home-line: rgba(58, 74, 87, 0.7);
  --home-soft: rgba(185, 191, 198, 0.22);
}

.page-home .section-head {
  max-width: 66ch;
  margin-bottom: clamp(26px, 4vw, 44px);
}

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

.page-home .h2 {
  color: var(--white);
  font-weight: 260;
  letter-spacing: 0.035em;
  line-height: 1.14;
  margin: 0 0 14px;
}

.page-home .h3 {
  color: var(--white);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin: 0 0 10px;
}

.page-home .lede {
  color: var(--text);
  margin: 0;
}

.page-home .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

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

.home-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 36px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(900px 520px at 78% 6%, rgba(34, 224, 208, 0.12), transparent 62%),
    linear-gradient(158deg, var(--ink) 0%, var(--navy) 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(58, 74, 87, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(58, 74, 87, 0.26) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 72% 12%, #000 12%, transparent 76%);
  mask-image: radial-gradient(120% 90% at 72% 12%, #000 12%, transparent 76%);
}

.home-hero__cut {
  position: absolute;
  right: -14%;
  bottom: -26%;
  width: 78%;
  height: 72%;
  background: linear-gradient(142deg, rgba(34, 224, 208, 0.2), rgba(255, 162, 58, 0.14) 68%, transparent);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(30px, 5vw, 52px);
  align-items: center;
}

.home-hero__title {
  color: var(--white);
  font-size: clamp(36px, 8vw, 76px);
  font-weight: 220;
  line-height: 1.06;
  letter-spacing: 0.05em;
  margin: 0 0 20px;
  max-width: 16ch;
}

.home-hero__lede {
  max-width: 54ch;
  font-size: 16px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.home-hero__hint {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 50ch;
}

.home-hero__figure {
  margin: 0 0 20px;
}

.page-home .figure {
  margin: 0;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  overflow: hidden;
  background: var(--glass);
}

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

.page-home .figure__caption {
  display: block;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--home-line);
}

.home-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px 20px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.home-hero__stat {
  border-top: 1px solid var(--home-soft);
  padding-top: 10px;
}

.home-hero__stat b {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.01em;
}

.home-hero__stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- 双入口 ---------- */

.home-entries {
  padding: var(--home-block) 0;
}

.home-entries__grid {
  align-items: start;
}

.home-entry {
  padding: clamp(20px, 3vw, 32px);
  border-top: 2px solid var(--cyan);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.home-entry--alt {
  border-top-color: var(--amber);
}

.home-entry:hover,
.home-entry:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.home-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.home-entry p {
  color: var(--text);
  margin: 0;
  font-size: 15px;
}

.home-entry__list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.home-entry__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.home-entry__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
}

.home-entry--alt .home-entry__list li::before {
  background: var(--amber);
}

/* ---------- 版本轨道 ---------- */

.home-track {
  padding: var(--home-block) 0;
  background: linear-gradient(180deg, transparent, rgba(11, 27, 43, 0.6) 40%, transparent);
}

.home-track__figure {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.home-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.home-timeline__item {
  position: relative;
  padding: 18px 0 22px 28px;
  border-left: 1px solid var(--home-line);
}

.home-timeline__item:last-child {
  border-left-color: transparent;
}

.home-timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 224, 208, 0.14);
}

.home-timeline__time {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 8px;
}

.home-timeline__title {
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.home-timeline__item p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 42ch;
}

.home-track__more {
  margin: clamp(26px, 4vw, 40px) 0 0;
}

/* ---------- 数据规模 ---------- */

.home-scale {
  padding: var(--home-block) 0;
}

.home-scale__grid {
  align-items: start;
}

.home-scale__stats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px 22px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.home-scale__stats li {
  border-top: 1px solid var(--home-soft);
  padding-top: 10px;
}

.home-scale__stats b {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 500;
  color: var(--white);
}

.home-scale__stats span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.home-scale__figure {
  margin-top: 28px;
}

/* ---------- 家庭四步 ---------- */

.home-family {
  padding: var(--home-block) 0;
  background:
    linear-gradient(180deg, transparent, rgba(16, 38, 31, 0.55) 30%, transparent);
}

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

.home-step {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: rgba(16, 38, 31, 0.5);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.home-step:hover,
.home-step:focus-within {
  transform: translateY(-4px);
  border-color: rgba(34, 224, 208, 0.55);
}

.home-step__index {
  display: block;
  font-size: 26px;
  font-weight: 400;
  color: rgba(255, 162, 58, 0.85);
  margin-bottom: 12px;
}

.home-step p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 最近更新 ---------- */

.home-updates {
  padding: var(--home-block) 0;
}

.home-updates__grid {
  align-items: start;
}

.home-updates__link {
  margin: 24px 0 0;
}

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

.home-feed__item {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--home-line);
  transition: background var(--dur) var(--ease);
}

.home-feed__item:hover {
  background: rgba(34, 224, 208, 0.04);
}

.home-feed__item .tag {
  justify-self: start;
}

.home-feed__title {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.home-feed__time {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.home-updates__figure {
  margin: 0;
}

/* ---------- 支持 ---------- */

.home-support {
  padding: var(--home-block) 0;
}

.home-support__panel {
  padding: clamp(22px, 4vw, 44px);
}

.home-support__grid {
  align-items: start;
}

.home-support__tip {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.home-support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.home-support__facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px 20px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.home-support__facts li {
  border-top: 1px solid var(--home-soft);
  padding-top: 10px;
}

.home-support__facts b {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 500;
  color: var(--cyan);
}

.home-support__facts span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- 中等屏幕 ---------- */

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

  .home-feed__item {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 6px 16px;
  }

  .home-feed__item .tag {
    grid-row: 1 / span 2;
  }

  .home-feed__time {
    grid-column: 2;
  }
}

/* ---------- 桌面 ---------- */

@media (min-width: 960px) {
  .home-hero {
    padding-top: calc(var(--header-h) + 64px);
  }

  .home-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(36px, 5vw, 64px);
  }

  .home-hero__panel {
    transform: translateY(28px);
  }

  .home-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 clamp(16px, 2.4vw, 32px);
  }

  .home-timeline__item {
    padding: 30px 0 0;
    border-left: 0;
    border-top: 1px solid var(--home-line);
  }

  .home-timeline__item:last-child {
    border-top-color: rgba(34, 224, 208, 0.55);
  }

  .home-timeline__item::before {
    left: 0;
    top: -5px;
  }

  .home-timeline__item p {
    max-width: 100%;
  }

  .home-scale__figure {
    margin-top: 0;
  }
}

/* ---------- 大屏 ---------- */

@media (min-width: 1240px) {
  .home-entry {
    padding: 34px;
  }

  .home-hero__lede {
    font-size: 17px;
  }
}

/* ---------- 动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  .home-entry,
  .home-step,
  .home-feed__item {
    transition: none;
  }

  .home-entry:hover,
  .home-entry:focus-within,
  .home-step:hover,
  .home-step:focus-within {
    transform: none;
  }

  .home-hero__panel {
    transform: none;
  }
}
