.page-home {
  --home-gap: clamp(14px, 3vw, 24px);
  --home-cut: 66%;
  background: var(--night);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

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

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(430px, 74vh, 720px);
  padding: clamp(54px, 12vw, 118px) 0 clamp(38px, 7vw, 84px);
}

.page-home .home-hero__field {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.55) contrast(1.15) brightness(0.8);
}

.page-home .home-hero__slab {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(155deg, rgba(20, 53, 39, 0.96) 0%, rgba(11, 32, 24, 0.92) 52%, rgba(16, 19, 20, 0.97) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 0 100%);
}

.page-home .home-hero__arc {
  position: absolute;
  right: -10%;
  bottom: -14%;
  width: min(540px, 76vw);
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.72;
}

.page-home .home-hero__wrap {
  position: relative;
  display: grid;
  gap: clamp(15px, 3vw, 24px);
}

.page-home .home-hero__crumb {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-home .home-hero__title {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(31px, 8.4vw, 66px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--lime);
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(15px, 2.5vw, 17px);
  line-height: 1.78;
  color: rgba(247, 250, 248, 0.82);
}

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

.page-home .home-hero__pull {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: clamp(22px, 5vw, 40px) 0 0;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
  border: 1px dashed var(--line-strong);
}

.page-home .home-hero__pull::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ---------- 赛程速览 ---------- */

.page-home .sched {
  position: relative;
  background: var(--night);
}

.page-home .section-head {
  display: grid;
  gap: 10px;
  justify-items: start;
  max-width: 64ch;
  text-align: left;
}

.page-home .section-head h2 {
  margin: 0;
  font-size: clamp(22px, 5.2vw, 36px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.page-home .section-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(247, 250, 248, 0.78);
}

.page-home .sched__body {
  display: grid;
  gap: 24px;
  margin-top: clamp(20px, 4vw, 34px);
}

.page-home .sched__rail {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-home .sched__crowd {
  display: none;
  margin: 0;
}

.page-home .sched__crowd img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.6) brightness(0.82);
}

.page-home .day-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .day {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  min-width: 78px;
  padding: 9px 14px 11px;
  background: rgba(20, 53, 39, 0.5);
  border: 1px solid var(--line);
}

.page-home .day::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--speed) var(--ease);
}

.page-home .day--on::before {
  transform: scaleX(1);
}

.page-home .day--on {
  background: rgba(20, 53, 39, 0.9);
}

.page-home .day__wd {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.page-home .day--on .day__wd {
  color: var(--lime);
}

.page-home .day__note {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .match-list {
  display: grid;
  gap: var(--home-gap);
}

.page-home .match {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 15px 16px 13px;
  background: linear-gradient(160deg, rgba(20, 53, 39, 0.94), rgba(16, 19, 20, 0.9));
  border: 1px solid var(--line);
  border-top: 2px solid rgba(200, 255, 61, 0.38);
}

.page-home .match::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -1px;
  width: 28px;
  height: 2px;
  background: var(--lime);
}

.page-home .match--tall {
  padding: 20px 17px 16px;
}

.page-home .match--mid {
  padding: 16px 16px 14px;
}

.page-home .match--short {
  padding: 13px 15px 12px;
}

.page-home .match__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .match__day {
  color: var(--lime);
}

.page-home .match__round {
  color: rgba(247, 250, 248, 0.58);
}

.page-home .match__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.page-home .match__team {
  font-size: clamp(15px, 3.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.page-home .match__team--away {
  text-align: right;
}

.page-home .match__score {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(34px, 9vw, 60px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--score);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.page-home .match--short .match__score {
  font-size: clamp(27px, 7vw, 42px);
}

.page-home .match__score em {
  font-style: normal;
  font-size: 0.6em;
  vertical-align: 0.14em;
  padding: 0 0.06em;
  opacity: 0.6;
}

.page-home .match__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .match__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  background: rgba(11, 32, 24, 0.74);
}

.page-home .match__stat-k {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-home .match__stat-v {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.page-home .match__more {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.page-home .match__more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
  cursor: pointer;
  list-style: none;
  transition: color var(--speed) var(--ease);
}

.page-home .match__more > summary::-webkit-details-marker {
  display: none;
}

.page-home .match__more > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--speed) var(--ease);
}

.page-home .match__more > summary:hover,
.page-home .match__more > summary:focus-visible {
  color: var(--lime);
}

.page-home .match__more > summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.page-home .match__more[open] > summary {
  color: var(--lime);
}

.page-home .match__more[open] > summary::after {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.page-home .match__detail {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(247, 250, 248, 0.78);
}

.page-home .match__detail p {
  margin: 0;
  max-width: 52ch;
}

@keyframes home-sheet-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-home .match__more[open] .match__detail {
  animation: home-sheet-in 240ms var(--ease) both;
}

/* ---------- 筛选入口 ---------- */

.page-home .filter {
  position: relative;
  overflow: hidden;
}

.page-home .filter__wrap {
  display: grid;
  gap: 28px;
}

.page-home .filter__copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.page-home .filter__copy h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(24px, 5.6vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-home .filter__copy > p {
  margin: 0;
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(247, 250, 248, 0.8);
}

.page-home .filter__dim {
  display: grid;
  gap: 9px;
}

.page-home .filter__dimk {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

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

.page-home .chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
  background: rgba(11, 32, 24, 0.62);
  border: 1px solid var(--line);
}

.page-home .chip--on {
  font-weight: 700;
  color: var(--night);
  background: var(--lime);
  border-color: var(--lime);
}

.page-home .filter__art {
  position: relative;
  order: -1;
  margin: 0;
}

.page-home .filter__art::before {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -6%;
  z-index: 0;
  width: 58%;
  height: 58%;
  border: 1px solid var(--lime);
  opacity: 0.5;
}

.page-home .filter__art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.42) contrast(1.12) brightness(0.72);
}

/* ---------- 档案跳转 ---------- */

.page-home .doorway {
  position: relative;
  background: var(--night);
  overflow: hidden;
}

.page-home .doorway__wrap {
  display: grid;
  gap: 18px;
  align-items: center;
}

.page-home .doorway__fig {
  margin: 0;
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(56px, 17vw, 128px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule);
}

.page-home .doorway__body {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.page-home .doorway__body h2 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(22px, 5.2vw, 36px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.page-home .doorway__body p {
  margin: 0;
  max-width: 50ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(247, 250, 248, 0.8);
}

/* ---------- 底部集锦带 ---------- */

.page-home .reel {
  position: relative;
  padding: clamp(30px, 6vw, 54px) 0 clamp(34px, 6vw, 62px);
  background: var(--charcoal);
  border-top: 1px solid var(--line);
}

.page-home .reel__wrap {
  display: grid;
  gap: 20px;
}

.page-home .reel__head {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.page-home .reel__head h2 {
  margin: 0;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.page-home .reel__grid {
  display: grid;
  gap: 16px;
}

.page-home .reel__fig {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .reel__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.86);
}

.page-home .reel__stamp {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 9px;
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--night);
  background: var(--lime);
}

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

.page-home .reel__side {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  background: rgba(11, 32, 24, 0.74);
}

.page-home .reel__time {
  margin: 0;
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.05em;
  color: var(--lime);
}

.page-home .reel__side p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: rgba(247, 250, 248, 0.78);
}

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

@media (min-width: 880px) {
  .page-home .sched__body {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
  }

  .page-home .sched__rail {
    position: sticky;
    top: calc(var(--topbar-h) + 20px);
  }

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

  .page-home .day-list {
    flex-direction: column;
    gap: 6px;
    padding: 0;
    overflow: visible;
  }

  .page-home .day {
    min-width: 0;
    padding: 10px 12px 12px 15px;
    border-left: 1px solid var(--line);
  }

  .page-home .day::before {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
  }

  .page-home .day--on::before {
    transform: scaleY(1);
  }

  .page-home .match-list {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px 20px;
  }

  .page-home .match-list > :nth-child(1) {
    grid-column: 1 / 10;
    grid-row: 1;
  }

  .page-home .match-list > :nth-child(2) {
    grid-column: 4 / -1;
    grid-row: 2;
  }

  .page-home .match-list > :nth-child(3) {
    grid-column: 2 / 9;
    grid-row: 3;
  }

  .page-home .match-list > :nth-child(4) {
    grid-column: 6 / -1;
    grid-row: 4;
  }
}

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

  .page-home .home-hero__crumb {
    grid-column: 1 / 8;
    grid-row: 1;
  }

  .page-home .home-hero__title {
    grid-column: 1 / 8;
    grid-row: 2;
  }

  .page-home .home-hero__lede {
    grid-column: 8 / 13;
    grid-row: 2;
    align-self: end;
    padding-bottom: 4px;
  }

  .page-home .home-hero__acts {
    grid-column: 1 / 6;
    grid-row: 3;
  }

  .page-home .home-hero__pull {
    grid-column: 8 / 13;
    grid-row: 3;
    align-self: center;
    justify-self: end;
    margin: 0;
  }

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

  .page-home .filter__art {
    order: 0;
    transform: translateY(12px);
  }

  .page-home .doorway__wrap {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 46px;
  }
}

@media (min-width: 760px) {
  .page-home .reel__grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 22px;
    align-items: start;
  }
}

@media (max-width: 420px) {
  .page-home .match__stat {
    padding: 7px 9px;
  }

  .page-home .match__stat-k {
    letter-spacing: 0.1em;
  }

  .page-home .reel__side {
    padding: 12px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
