.page-home {
  --home-panel-bg: rgba(8, 31, 26, .55);
  --home-paper-soft: rgba(11, 42, 35, .16);
  --home-paper-muted: rgba(26, 26, 26, .7);
  --home-paper-label: rgba(11, 42, 35, .6);
}

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

.page-home .home-hero {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
}

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

.page-home .home-hero__railtitle {
  margin: 0 0 .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--amber);
}

.page-home .home-hero__index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .4rem;
}

.page-home .home-hero__index a {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  padding: .3rem .1rem;
  font-size: .8rem;
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.page-home .home-hero__index a:hover,
.page-home .home-hero__index a:focus-visible {
  color: var(--fg);
  border-bottom-color: var(--amber);
}

.page-home .home-hero__num {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  color: var(--pitch-bright);
}

.page-home .home-hero__context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--fg-faint);
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--fg);
}

.page-home .home-hero__lede {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  color: var(--fg-muted);
}

.page-home .home-deck {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

.page-home .deck-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.15rem 1.15rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--pitch);
  color: inherit;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform .2s ease, border-color .2s ease, border-left-color .2s ease;
}

.page-home .deck-card:hover {
  transform: translateY(-4px);
  border-color: var(--rule-strong);
  border-left-color: var(--amber);
}

.page-home .deck-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.page-home .deck-card__k {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  color: var(--pitch-bright);
}

.page-home .deck-card__t {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

.page-home .deck-card__d {
  font-size: .82rem;
  line-height: 1.65;
  color: var(--fg-muted);
}

.page-home .home-hero__visual {
  margin: 0;
  min-width: 0;
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--rule);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.page-home .home-hero__cap {
  margin-top: .65rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--fg-faint);
}

@media (min-width: 560px) {
  .page-home .home-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .875rem;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: 84px minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: start;
  }

  .page-home .home-hero__index {
    flex-direction: column;
    gap: .7rem;
  }

  .page-home .deck-card:nth-child(2),
  .page-home .deck-card:nth-child(4) {
    margin-top: 18px;
  }
}

/* ---------- 比分条 ---------- */

.page-home .scoreboard {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 63, 51, .92), rgba(8, 31, 26, .95));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.75rem, 4.5vw, 3rem) 0;
}

.page-home .scoreboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pitch) 0%, var(--amber) 58%, var(--away) 100%);
  opacity: .6;
}

.page-home .scoreboard__inner {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

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

.page-home .scoreboard__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.page-home .scoreboard__title {
  margin: .35rem 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  letter-spacing: .02em;
  color: var(--fg);
}

.page-home .scoreboard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.page-home .score-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  background: rgba(11, 42, 35, .72);
  border: 1px solid var(--rule);
  transition: border-color .2s ease;
}

.page-home .score-cell:hover {
  border-color: var(--rule-strong);
}

.page-home .score-cell--win {
  border-left: 2px solid var(--pitch-bright);
}

.page-home .sc-team {
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--fg-muted);
}

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

.page-home .sc-score {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--amber);
}

.page-home .scoreboard__note {
  margin: 1.1rem 0 0;
  max-width: 44rem;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--fg-faint);
}

@media (min-width: 700px) {
  .page-home .scoreboard__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 840px) {
  .page-home .scoreboard__inner {
    grid-template-columns: minmax(0, .36fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* ---------- 三城赛区 ---------- */

.page-home .districts {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.page-home .districts__head {
  max-width: 44rem;
}

.page-home .districts__grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
}

.page-home .district {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  transition: transform .22s ease, border-color .22s ease;
}

.page-home .district::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 3px;
  background: var(--pitch-bright);
}

.page-home .district--gz::before {
  background: var(--amber);
}

.page-home .district--cd::before {
  background: linear-gradient(90deg, var(--indigo), var(--pitch-bright));
}

.page-home .district:hover {
  transform: translateY(-5px);
  border-color: var(--rule-strong);
}

.page-home .district__city {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--amber);
}

.page-home .district__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: .02em;
  color: var(--fg);
}

.page-home .district__text {
  margin: 0;
  font-size: .86rem;
  line-height: 1.75;
  color: var(--fg-muted);
}

.page-home .district__meta {
  margin: .35rem 0 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--fg-faint);
}

.page-home .district__link {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .84rem;
  color: var(--pitch-bright);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color .18s ease, color .18s ease;
}

.page-home .district__link:hover,
.page-home .district__link:focus-visible {
  color: var(--fg);
  border-bottom-color: var(--pitch-bright);
}

@media (min-width: 780px) {
  .page-home .districts__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .94fr) minmax(0, 1fr);
    gap: 1.25rem;
  }
}

/* ---------- 场边记录条 ---------- */

.page-home .archive-strip {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(1.25rem, 3.5vw, 2rem);
  background: var(--home-panel-bg);
  border: 1px solid var(--rule);
  clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%, 0 26px);
}

.page-home .archive-strip__title {
  margin: .4rem 0 .6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: .02em;
  color: var(--fg);
}

.page-home .archive-strip__desc {
  margin: 0;
  max-width: 40rem;
  font-size: .86rem;
  line-height: 1.8;
  color: var(--fg-muted);
}

.page-home .archive-strip__media {
  margin: 0;
}

.page-home .archive-strip__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border: 1px solid var(--rule);
}

@media (min-width: 760px) {
  .page-home .archive-strip {
    grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
    gap: 2rem;
  }
}

/* ---------- 赛后复盘 ---------- */

.page-home .recaps {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.page-home .recaps__head {
  max-width: 46rem;
}

.page-home .recaps__head .btn {
  margin-top: 1.1rem;
}

.page-home .recaps__grid {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
}

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

.page-home .recaps__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .recaps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.page-home .recap {
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

.page-home .recap:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-home .recap__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin: 0 0 .5rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--fg-faint);
}

.page-home .recap__round {
  color: var(--amber);
}

.page-home .recap__title {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.page-home .recap__title a {
  color: var(--fg);
  text-decoration: none;
  background-image: linear-gradient(var(--pitch-bright), var(--pitch-bright));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color .2s ease, background-size .28s ease;
}

.page-home .recap__title a:hover,
.page-home .recap__title a:focus-visible {
  color: var(--pitch-bright);
  background-size: 100% 1px;
}

.page-home .recap__text {
  margin: 0 0 .6rem;
  font-size: .86rem;
  line-height: 1.8;
  color: var(--fg-muted);
}

.page-home .recap__byline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--fg-faint);
}

@media (min-width: 880px) {
  .page-home .recaps__grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

/* ---------- 数据指标 ---------- */

.page-home .metrics {
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.page-home .metrics__panel {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}

.page-home .metrics__head {
  max-width: 46rem;
}

.page-home .metrics__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--pitch);
}

.page-home .metrics__title {
  margin: .5rem 0 .7rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  letter-spacing: .02em;
  color: var(--ink-900);
}

.page-home .metrics__lede {
  margin: 0;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--home-paper-muted);
}

.page-home .metrics__grid {
  display: grid;
  gap: 1.15rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.page-home .metric {
  padding-left: .95rem;
  border-left: 2px solid var(--home-paper-soft);
}

.page-home .metric__label {
  margin: 0 0 .4rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--home-paper-label);
}

.page-home .metric__num {
  margin: 0 0 .4rem;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink-900);
}

.page-home .metric__unit {
  margin-left: .4rem;
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--home-paper-label);
}

.page-home .metric__text {
  margin: 0;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--home-paper-muted);
}

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

@media (min-width: 980px) {
  .page-home .metrics__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 收尾 ---------- */

.page-home .home-cta {
  padding: 0 0 clamp(3rem, 7vw, 5rem);
}

.page-home .home-cta__panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--rule-strong);
  background: linear-gradient(118deg, rgba(46, 125, 79, .24), rgba(62, 58, 110, .2));
}

.page-home .home-cta__title {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  letter-spacing: .02em;
  color: var(--fg);
}

.page-home .home-cta__text {
  margin: 0;
  max-width: 42rem;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--fg-muted);
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

@media (min-width: 760px) {
  .page-home .home-cta__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .page-home .home-cta__actions {
    flex-shrink: 0;
  }
}
