.page-home {
  --home-shadow: 2px 2px 0 var(--paper-2);
  display: block;
}

/* ---------------- 首屏 ---------------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 8vh, 104px) 0 clamp(36px, 6vh, 72px);
  border-bottom: 1px solid var(--rule);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.65) contrast(1.04);
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, var(--paper) 26%, rgba(245, 240, 230, 0.72) 60%, rgba(245, 240, 230, 0.12) 100%),
    repeating-linear-gradient(90deg, rgba(30, 42, 56, 0.06) 0 1px, transparent 1px 96px);
}

.page-home .hero__inner {
  position: relative;
}

.page-home .hero__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(38px, 8.6vw, 102px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 14px 0 0;
  max-width: 17ch;
}

.page-home .hero__lede {
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 46ch;
}

.page-home .hero__foot {
  margin-top: clamp(32px, 6vh, 68px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: flex-end;
  justify-content: space-between;
}

/* 赛季轴 */
.page-home .season-axis {
  flex: 1 1 320px;
  min-width: 0;
}

.page-home .season-axis__cap {
  display: block;
  margin-bottom: 10px;
}

.page-home .season-axis__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .season-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 9px 13px;
  border: 1px solid var(--rule);
  background: var(--chalk);
  color: var(--ink-2);
  box-shadow: var(--home-shadow);
  white-space: nowrap;
}

.page-home .season-chip.is-active {
  background: var(--turf);
  border-color: var(--turf);
  color: var(--chalk);
  box-shadow: inset 4px 0 0 var(--whistle), var(--home-shadow);
}

/* 首屏数据卡 */
.page-home .data-card {
  position: relative;
  background: var(--chalk);
  border: 1px solid var(--rule);
  box-shadow: var(--home-shadow);
  padding: 18px 20px 16px;
}

.page-home .hero__card {
  flex: 0 1 330px;
  min-width: 250px;
}

.page-home .data-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.page-home .metric {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 0 10px;
}

.page-home .metric__value {
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(52px, 12vw, 88px);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.page-home .metric__value--turf {
  color: var(--turf-deep);
}

.page-home .metric__unit {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  color: var(--turf-deep);
}

.page-home .metric__label {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.page-home .data-card__foot {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}

/* ---------------- 通用章节导语宽度 ---------------- */
.page-home .lede {
  max-width: 62ch;
}

.page-home .section-head + .lede {
  margin-top: 14px;
}

/* ---------------- 01 净胜球 ---------------- */
.page-home .net-banner {
  margin: clamp(24px, 4vh, 40px) 0 clamp(20px, 3vh, 32px);
}

.page-home .net-banner img {
  display: block;
  width: 100%;
  height: clamp(140px, 22vw, 250px);
  object-fit: cover;
  border: 1px solid var(--rule);
}

.page-home .net-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.page-home .net-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-areas:
    "rank team value"
    "rank note value";
  align-items: center;
  gap: 2px 12px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--rule);
  transition: background 120ms ease-out, transform 120ms ease-out;
}

.page-home .net-item:hover,
.page-home .net-item:focus-within {
  background: var(--paper-2);
  transform: translateY(-2px);
}

.page-home .net-item__rank {
  grid-area: rank;
  color: var(--turf-deep);
}

.page-home .net-item__team {
  grid-area: team;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.page-home .net-item__team .mono-tag {
  margin-left: -6px;
}

.page-home .net-item__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #5c6470;
}

.page-home .net-item__value {
  grid-area: value;
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--turf-deep);
  text-align: right;
  min-width: 4ch;
}

.page-home .net-hint {
  margin-top: 16px;
}

/* ---------------- 02 传球成功率 ---------------- */
.page-home .pass-grid {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  margin-top: clamp(24px, 4vh, 40px);
}

.page-home .pass-figure {
  margin: 0 0 clamp(20px, 3vh, 28px);
}

.page-home .pass-figure img {
  display: block;
  width: 100%;
  height: clamp(180px, 34vw, 300px);
  object-fit: cover;
  border: 1px solid var(--rule);
}

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

.page-home .dist__row {
  display: grid;
  grid-template-columns: 5.6em minmax(0, 1fr) 3em;
  align-items: center;
  gap: 12px;
}

.page-home .dist__label {
  color: var(--ink-2);
}

.page-home .dist__bar {
  display: block;
  height: 12px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  overflow: hidden;
}

.page-home .dist__fill {
  display: block;
  height: 100%;
  background: var(--turf);
}

.page-home .dist__fill--low {
  background: var(--card-yellow);
}

.page-home .dist__row:nth-child(1) .dist__fill { width: 28%; }
.page-home .dist__row:nth-child(2) .dist__fill { width: 79%; }
.page-home .dist__row:nth-child(3) .dist__fill { width: 100%; }
.page-home .dist__row:nth-child(4) .dist__fill { width: 48%; }
.page-home .dist__row:nth-child(5) .dist__fill { width: 21%; }

.page-home .dist__count {
  text-align: right;
  color: var(--ink);
  font-size: 14px;
}

/* 两队快照 */
.page-home .versus {
  background: var(--chalk);
  border: 1px solid var(--rule);
  box-shadow: var(--home-shadow);
  padding: 20px;
  align-self: start;
}

.page-home .versus__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.page-home .versus__names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 0 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.page-home .versus__names span:last-child {
  text-align: right;
}

.page-home .versus__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
}

.page-home .versus__val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .versus__row .versus__val:last-child {
  text-align: right;
}

.page-home .versus__label {
  text-align: center;
  color: #5c6470;
}

.page-home .versus__foot {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 16px 0 16px;
}

/* ---------------- 03 两条路径 ---------------- */
.page-home .paths {
  display: grid;
  gap: 24px;
  margin-top: clamp(24px, 4vh, 40px);
}

.page-home .path-card {
  border: 1px solid var(--rule);
  background: var(--chalk);
  box-shadow: var(--home-shadow);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}

.page-home .path-card__head h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 8px 0 18px;
  color: var(--ink);
}

.page-home .team-tag-cloud {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .team-tag-cloud .mono-tag {
  text-decoration: none;
  transition: background 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}

.page-home .team-tag-cloud .mono-tag:hover,
.page-home .team-tag-cloud .mono-tag:focus-visible {
  background: var(--turf);
  border-color: var(--turf);
  color: var(--chalk);
}

.page-home .path-card__more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--turf-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--whistle);
  align-self: flex-start;
  padding-bottom: 2px;
}

.page-home .season-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.page-home .season-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.page-home .season-list__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #5c6470;
}

/* ---------------- 04 示例比赛 ---------------- */
.page-home .match {
  display: grid;
  gap: 28px;
  margin-top: clamp(24px, 4vh, 40px);
}

.page-home .match__main {
  border: 1px solid var(--rule);
  background: var(--chalk);
  box-shadow: var(--home-shadow);
  padding: 22px 20px;
}

.page-home .match__score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.page-home .match__side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.page-home .match__side--away {
  flex-direction: row-reverse;
}

.page-home .match__team {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .match__digits {
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(40px, 10vw, 68px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.page-home .match__dash {
  color: var(--rule);
  padding: 0 4px;
}

.page-home .match__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 18px 0 22px;
}

.page-home .match__meta dt {
  color: #5c6470;
}

.page-home .match__meta dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.page-home .match__fold {
  border: 1px solid var(--rule);
}

.page-home .match__ref {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin: 14px 0 0;
}

.page-home .match__code {
  margin-top: 16px;
  color: var(--turf-deep);
}

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

.page-home .match__media img {
  display: block;
  width: 100%;
  height: clamp(220px, 48vw, 360px);
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: saturate(0.7);
}

/* ---------------- 05 服务 ---------------- */
.page-home .svc {
  background: var(--turf-dark);
  color: var(--chalk);
  border-top: 1px solid var(--rule);
  border-bottom: 6px solid var(--turf);
}

.page-home .svc .section-head__num {
  color: var(--whistle);
}

.page-home .svc .section-head__title {
  color: var(--chalk);
}

.page-home .svc__lede {
  color: rgba(253, 252, 248, 0.82);
}

.page-home .svc__grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(24px, 4vh, 40px);
}

.page-home .svc__card {
  border: 1px solid rgba(253, 252, 248, 0.22);
  border-left: 4px solid var(--turf);
  background: rgba(253, 252, 248, 0.05);
  padding: 20px;
}

.page-home .svc__card .mono-label {
  color: var(--whistle);
}

.page-home .svc__card h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.18;
  margin: 10px 0 10px;
  color: var(--chalk);
}

.page-home .svc__card p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(253, 252, 248, 0.78);
  margin: 0;
}

.page-home .svc__cta {
  margin-top: clamp(28px, 5vh, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.page-home .svc__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--whistle);
  text-decoration: none;
  border-bottom: 2px solid rgba(242, 193, 78, 0.45);
  padding-bottom: 2px;
}

/* ---------------- 响应式 ---------------- */
@media (min-width: 760px) {
  .page-home .net-item {
    grid-template-columns: 44px 82px minmax(0, 1fr) auto;
    grid-template-areas: "rank tag team value";
    gap: 12px 16px;
    padding: 16px 12px;
  }

  .page-home .net-item .mono-tag {
    grid-area: tag;
    justify-self: start;
  }

  .page-home .net-item__team {
    grid-area: team;
  }

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

@media (min-width: 960px) {
  .page-home .hero__title {
    max-width: 14ch;
  }

  .page-home .pass-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

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

  .page-home .match {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }

  .page-home .match__media img {
    height: clamp(360px, 40vw, 520px);
  }

  .page-home .svc__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .net-item,
  .page-home .team-tag-cloud .mono-tag {
    transition: none;
  }
}
