.page-home {
  --home-gap: 14px;
  --home-block-y: clamp(42px, 7vw, 78px);
  display: block;
  background:
    radial-gradient(1200px 560px at 84% -8%, rgba(232, 163, 61, .10), transparent 60%),
    radial-gradient(900px 480px at -6% 42%, rgba(178, 34, 52, .10), transparent 62%),
    var(--night);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

/* ---------- 首屏拼贴 ---------- */

.page-home .home-hero {
  padding-top: clamp(16px, 3vw, 30px);
}

.page-home .home-hero__collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-tile {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--night-2);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  min-width: 0;
}

.page-home .home-tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
  z-index: 0;
}

.page-home .home-tile--lead {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 4vw, 46px);
  min-height: 380px;
  background: var(--night-3);
}

.page-home .home-tile--lead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(178deg, rgba(8, 18, 31, .30) 0%, rgba(8, 18, 31, .72) 46%, rgba(11, 27, 51, .94) 100%);
}

.page-home .home-tile__body {
  position: relative;
  z-index: 2;
  max-width: 62ch;
}

.page-home .home-hero__title {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 8.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--white);
  overflow-wrap: anywhere;
  text-shadow: 0 6px 26px rgba(4, 10, 20, .65);
}

.page-home .home-hero__lede {
  margin: 0 0 22px;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.88;
  letter-spacing: .02em;
  color: #D3DFEC;
}

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

.page-home .home-tile--beat,
.page-home .home-tile--version {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3.2vw, 26px);
}

.page-home .home-beat__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-beat__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(159, 179, 200, .22);
}

.page-home .home-beat__time {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}

.page-home .home-beat__label {
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--steel);
}

.page-home .home-version__badge {
  margin: 0;
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--crimson);
}

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

.page-home .home-tile__link {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.page-home .home-tile__link:hover,
.page-home .home-tile__link:focus-visible {
  border-bottom-color: var(--gold);
}

.page-home .home-tile--rank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--ink);
  padding: 0;
}

.page-home .home-rank__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  background: var(--night-2);
  min-width: 0;
}

.page-home .home-rank__num {
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: clamp(22px, 5.4vw, 30px);
  font-weight: 700;
  color: var(--gold);
  border-bottom: 3px solid var(--gold);
  white-space: nowrap;
}

.page-home .home-rank__cap {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
}

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

.page-home .home-block {
  padding-block: var(--home-block-y);
}

.page-home .home-block--panel {
  background: var(--night-2);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

/* ---------- 左侧时间轴 + 右侧矩阵 ---------- */

.page-home .home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

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

.page-home .home-rail__media {
  margin-bottom: 20px;
}

.page-home .home-rail__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 25px);
  line-height: 1.25;
  color: var(--white);
}

.page-home .home-timeline {
  position: relative;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.page-home .home-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--crimson) 64%, rgba(178, 34, 52, 0) 100%);
}

.page-home .home-timeline__item {
  position: relative;
  padding: 0 0 22px 32px;
}

.page-home .home-timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--night);
}

.page-home .home-timeline__time {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--night);
  background: var(--gold);
}

.page-home .home-timeline__name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
}

.page-home .home-timeline__zone {
  margin: 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--green);
  border-left: 3px solid var(--green);
  padding-left: 8px;
}

.page-home .home-matrix {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.page-home .home-matrix__media {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--night-3);
  box-shadow: var(--shadow-hard);
}

.page-home .home-matrix__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-matrix__media figcaption {
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--steel);
  border-top: 2px solid var(--ink);
}

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

.page-home .home-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-home .home-switch__tabs {
  display: flex;
  border: 2px solid var(--ink);
  background: var(--night-3);
  box-shadow: var(--shadow-hard);
}

.page-home .home-switch__tab {
  flex: 1 1 0;
  padding: 13px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--steel);
  cursor: pointer;
  border-right: 2px solid var(--ink);
  transition: background-color .2s ease, color .2s ease;
}

.page-home .home-switch__tab:last-child {
  border-right: 0;
}

.page-home .home-switch__tab:hover {
  color: var(--gold);
}

.page-home .home-switch__input:focus-visible + .home-switch__input + .home-switch__tabs .home-switch__tab {
  outline: 2px solid var(--gold);
}

.page-home #v4-pick-a:checked ~ .home-switch__tabs .home-switch__tab[for="v4-pick-a"],
.page-home #v4-pick-b:checked ~ .home-switch__tabs .home-switch__tab[for="v4-pick-b"] {
  background: var(--crimson);
  color: var(--white);
}

.page-home .home-panel {
  display: none;
  margin-top: 16px;
  padding: clamp(18px, 3vw, 26px);
  border: 2px solid var(--ink);
  background: var(--night-3);
  box-shadow: var(--shadow-hard);
}

.page-home #v4-pick-a:checked ~ .home-switch__panels .home-panel--a,
.page-home #v4-pick-b:checked ~ .home-switch__panels .home-panel--b {
  display: block;
}

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

.page-home .home-spec dt {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
}

.page-home .home-spec dt:first-child {
  margin-top: 0;
}

.page-home .home-spec dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.82;
  color: #D3DFEC;
}

.page-home .home-matrix__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-left: 6px solid var(--crimson);
  background: rgba(20, 43, 74, .72);
}

.page-home .home-matrix__foot p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--white);
}

/* ---------- 赛程与排名 ---------- */

.page-home .home-fixtures {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.page-home .home-fixtures__media {
  margin: 0;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  background: var(--night-3);
}

.page-home .home-fixtures__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-fixtures__media figcaption {
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--steel);
  border-top: 2px solid var(--ink);
}

.page-home .home-fixtures__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.page-home .home-fixtures__lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: #D3DFEC;
}

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

.page-home .home-leagues__item {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
  border: 2px solid var(--green);
  background: rgba(46, 125, 91, .18);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.page-home .home-leagues__item:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(232, 163, 61, .12);
}

.page-home .home-rank-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.page-home .home-rank-strip__cell {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 16px 18px;
  background: var(--night-3);
  min-width: 0;
}

.page-home .home-rank-strip__num {
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-home .home-rank-strip__unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.page-home .home-rank-strip__cap {
  flex: 1 1 100%;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
}

/* ---------- 两路入口 ---------- */

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

.page-home .home-route {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3.4vw, 30px);
  border: 2px solid var(--ink);
  background: var(--night-2);
  box-shadow: var(--shadow-hard);
  min-width: 0;
}

.page-home .home-route--content {
  border-top: 8px solid var(--crimson);
}

.page-home .home-route--help {
  border-top: 8px solid var(--green);
}

.page-home .home-route__tag {
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--night);
  background: var(--gold);
}

.page-home .home-route__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 3.2vw, 24px);
  line-height: 1.3;
  color: var(--white);
}

.page-home .home-route__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.82;
  color: var(--steel);
}

.page-home .home-route__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-route__list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--white);
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-home .home-route__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

/* ---------- 收尾短评 ---------- */

.page-home .endnote {
  margin: 30px 0 0;
  padding-left: 16px;
  border-left: 5px solid var(--crimson);
  font-size: 16px;
  line-height: 1.8;
  color: var(--white);
}

/* ---------- 响应式 ---------- */

@media (min-width: 620px) {
  .page-home {
    --home-gap: 16px;
  }

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

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

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

  .page-home .home-tile--lead {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
  }

  .page-home .home-tile--beat {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
  }

  .page-home .home-tile--version {
    grid-column: 8 / 13;
    grid-row: 2 / 3;
  }

  .page-home .home-tile--rank {
    grid-column: 1 / 13;
    grid-row: 3 / 4;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-fixtures {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 30px;
  }
}

@media (min-width: 1000px) {
  .page-home .home-split {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 34px;
  }

  .page-home .home-rail__sticky {
    position: sticky;
    top: 92px;
  }

  .page-home .home-matrix {
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-tile__link,
  .page-home .home-switch__tab,
  .page-home .home-leagues__item {
    transition: none;
  }
}
