.page-home {
  --home-grid-line: rgba(41, 240, 224, .09);
  --home-edge: rgba(29, 46, 77, .92);
  display: block;
  overflow-x: clip;
  background: var(--ink-950);
  color: var(--mist-100);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 72px));
  padding-bottom: clamp(36px, 5vw, 64px);
  background: var(--ink-950);
}

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

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 42%;
  opacity: .32;
  filter: saturate(.7) brightness(.72);
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 84% 26%, rgba(41, 240, 224, .16), transparent 54%),
    linear-gradient(100deg, var(--ink-950) 22%, rgba(6, 11, 24, .7) 56%, rgba(6, 11, 24, .95) 100%);
}

.page-home .home-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-grid-line) 1px, transparent 1px);
  background-size: clamp(56px, 8vw, 92px) clamp(56px, 8vw, 92px);
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 62% 24%, #000 6%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 70% at 62% 24%, #000 6%, transparent 76%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(32px, 5vw, 60px);
}

.page-home .home-hero .display-1 {
  max-width: 16ch;
  margin: 18px 0 0;
  color: var(--mist-100);
}

.page-home .home-hero__accent {
  display: block;
  color: var(--cyan);
}

.page-home .home-hero .lede {
  max-width: 52ch;
  margin-top: 22px;
  color: var(--ice-300);
}

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

.page-home .home-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--home-edge);
  border-radius: var(--radius);
  background: linear-gradient(152deg, rgba(19, 32, 57, .9), rgba(11, 20, 38, .82));
  color: var(--mist-100);
  text-decoration: none;
  overflow: hidden;
  transition: transform .32s var(--ease), border-color .32s var(--ease);
}

.page-home .home-entry::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 240, 224, .26), transparent 68%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.page-home .home-entry--news::after {
  background: radial-gradient(circle, rgba(255, 90, 46, .24), transparent 68%);
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-visible {
  transform: translateY(-4px);
}

.page-home .home-entry:hover::after,
.page-home .home-entry:focus-visible::after {
  opacity: 1;
}

.page-home .home-entry--lib:hover,
.page-home .home-entry--lib:focus-visible {
  border-color: rgba(41, 240, 224, .58);
}

.page-home .home-entry--news:hover,
.page-home .home-entry--news:focus-visible {
  border-color: rgba(255, 90, 46, .55);
}

.page-home .home-entry__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-home .home-entry--news .home-entry__idx {
  color: var(--orange);
}

.page-home .home-entry__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.015em;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.06;
  color: var(--mist-100);
}

.page-home .home-entry__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ice-300);
}

.page-home .home-entry__go {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cyan);
}

.page-home .home-entry--news .home-entry__go {
  color: var(--orange);
}

/* ---------- 赛程锚点条 ---------- */
.page-home .home-schedule {
  position: relative;
  padding: clamp(46px, 6vw, 84px) 0 clamp(40px, 5vw, 68px);
  background: var(--ink-900);
  border-top: 1px solid var(--home-edge);
}

.page-home .home-schedule__head {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.page-home .home-schedule__intro .display-2 {
  margin-top: 12px;
}

.page-home .league-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-home .league-switch__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-500);
  margin-right: 4px;
}

.page-home .league-chip,
.page-home .filter-chip {
  appearance: none;
  border: 1px solid var(--home-edge);
  border-radius: var(--radius-pill);
  background: rgba(19, 32, 57, .72);
  color: var(--ice-300);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1;
  padding: 9px 16px;
  cursor: pointer;
  transition: color .24s var(--ease), border-color .24s var(--ease), background-color .24s var(--ease);
}

.page-home .league-chip:hover,
.page-home .filter-chip:hover {
  color: var(--mist-100);
  border-color: rgba(41, 240, 224, .4);
}

.page-home .league-chip.is-active,
.page-home .filter-chip.is-active {
  background: rgba(41, 240, 224, .14);
  border-color: rgba(41, 240, 224, .62);
  color: var(--cyan);
}

.page-home .home-schedule__rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-700) transparent;
}

.page-home .home-schedule__rail:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}

.page-home .home-schedule__rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-schedule__rail::-webkit-scrollbar-track {
  background: var(--ink-800);
  border-radius: var(--radius-pill);
}

.page-home .home-schedule__rail::-webkit-scrollbar-thumb {
  background: var(--ink-700);
  border-radius: var(--radius-pill);
}

.page-home .match-card {
  flex: 0 0 clamp(228px, 74vw, 292px);
  scroll-snap-align: start;
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
  border: 1px solid var(--home-edge);
  border-radius: var(--radius-sm);
  background: var(--ink-800);
  transition: border-color .26s var(--ease), transform .26s var(--ease);
}

.page-home .match-card:hover {
  border-color: rgba(41, 240, 224, .42);
  transform: translateY(-3px);
}

.page-home .match-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .match-card__league {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ice-300);
}

.page-home .match-card__time {
  margin: 0;
  font-size: 15px;
  color: var(--ink-500);
}

.page-home .match-card__board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.page-home .match-card__team {
  font-size: 15px;
  font-weight: 500;
  color: var(--mist-100);
}

.page-home .match-card__team:last-child {
  text-align: right;
}

.page-home .score {
  font-size: 20px;
  color: var(--white);
}

.page-home .score--accent {
  color: var(--orange);
}

.page-home .score--muted {
  font-size: 14px;
  color: var(--ink-500);
}

.page-home .home-schedule__hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-500);
}

.page-home .home-schedule .empty-state[hidden],
.page-home .home-teams .empty-state[hidden] {
  display: none;
}

.page-home .home-schedule__band {
  margin: clamp(28px, 4vw, 44px) 0 0;
}

/* ---------- 球队速览 ---------- */
.page-home .home-teams {
  padding: clamp(52px, 7vw, 96px) 0;
  background: var(--ink-950);
}

.page-home .home-teams__head {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.page-home .home-teams__intro .display-2 {
  margin-top: 12px;
  max-width: 20ch;
}

.page-home .home-teams__intro .lede {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--ice-300);
}

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

.page-home .home-teams .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

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

.page-home .team-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--home-edge);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 32, 57, .78), rgba(11, 20, 38, .92));
  transition: border-color .28s var(--ease), transform .28s var(--ease);
}

.page-home .team-card:hover {
  border-color: rgba(41, 240, 224, .38);
  transform: translateY(-3px);
}

.page-home .team-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .team-card__head .heading-3 {
  margin: 0;
  color: var(--mist-100);
}

.page-home .team-card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--green);
}

.page-home .team-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(29, 46, 77, .7);
}

.page-home .team-card__stats dt {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-500);
}

.page-home .team-card__stats dd {
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: var(--mist-100);
}

.page-home .team-card .fold {
  margin-top: auto;
}

.page-home .team-card .fold__toggle {
  font-size: 13px;
  color: var(--cyan);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  letter-spacing: .03em;
}

.page-home .team-card .fold__panel p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ice-300);
}

/* ---------- 复盘专题 ---------- */
.page-home .home-topics {
  padding: clamp(52px, 7vw, 96px) 0;
  background: var(--ink-900);
  border-top: 1px solid var(--home-edge);
}

.page-home .home-topics .display-2 {
  margin: 12px 0 clamp(28px, 4vw, 46px);
}

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

.page-home .topic-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--home-edge);
  border-radius: var(--radius);
  background: rgba(6, 11, 24, .58);
  color: var(--mist-100);
  text-decoration: none;
  transition: border-color .28s var(--ease), background-color .28s var(--ease);
}

.page-home .topic-card:hover,
.page-home .topic-card:focus-visible {
  border-color: rgba(41, 240, 224, .48);
  background: rgba(19, 32, 57, .74);
}

.page-home .topic-card__series {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-home .topic-card--c .topic-card__series,
.page-home .topic-card--b .topic-card__series {
  color: var(--amber);
}

.page-home .topic-card .title-serif {
  margin: 0;
  color: var(--mist-100);
}

.page-home .topic-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ice-300);
}

.page-home .topic-card__go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--orange);
}

.page-home .home-topics__trail {
  margin: clamp(28px, 4vw, 46px) 0 0;
}

/* ---------- 入口效率 ---------- */
.page-home .home-speed {
  padding: clamp(52px, 7vw, 96px) 0;
  background: linear-gradient(180deg, var(--ink-950), var(--ink-900));
}

.page-home .home-speed .display-2 {
  margin: 12px 0 clamp(26px, 4vw, 42px);
}

.page-home .home-speed__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .speed-item {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--home-edge);
  border-radius: var(--radius-sm);
  background: rgba(19, 32, 57, .58);
  overflow: hidden;
}

.page-home .speed-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), rgba(41, 240, 224, 0));
}

.page-home .speed-item__num {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(38px, 5.4vw, 54px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
}

.page-home .speed-item__label {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--mist-100);
}

.page-home .speed-item__desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ice-300);
}

/* ---------- 收束 ---------- */
.page-home .home-close {
  padding: clamp(52px, 7vw, 92px) 0;
  background: var(--ink-800);
  border-top: 1px solid var(--home-edge);
}

.page-home .home-close__inner {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
}

.page-home .home-close__lead .display-2 {
  margin: 12px 0 0;
  max-width: 22ch;
}

.page-home .home-close__lead .lede {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--ice-300);
}

.page-home .home-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .home-close__aside {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-500);
}

.page-home .home-close__aside a {
  color: var(--ice-300);
  text-decoration: underline;
  text-decoration-color: rgba(159, 180, 208, .4);
  text-underline-offset: 3px;
}

.page-home .home-close__aside a:hover {
  color: var(--cyan);
}

.page-home .home-close__contact {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--home-edge);
  border-radius: var(--radius);
  background: rgba(6, 11, 24, .62);
}

.page-home .home-close__contact .heading-3 {
  margin: 0 0 12px;
  color: var(--mist-100);
}

.page-home .home-close__contact p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ice-300);
}

.page-home .home-close__contact a {
  color: var(--cyan);
}

.page-home .home-close__mail,
.page-home .home-close__tel {
  word-break: break-all;
  font-size: 15px;
  color: var(--mist-100);
}

.page-home .home-close .copy-mail {
  margin: 4px 0 18px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .home-teams__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .home-hero__entries {
    grid-template-columns: 5fr 7fr;
  }

  .page-home .home-schedule__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }

  .page-home .home-teams__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .home-close__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

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

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

  .page-home .home-topics__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .topic-card--a {
    grid-column: 1 / 8;
  }

  .page-home .topic-card--b {
    grid-column: 8 / 13;
  }

  .page-home .topic-card--c {
    grid-column: 1 / 6;
  }

  .page-home .topic-card--d {
    grid-column: 6 / 13;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .match-card,
  .page-home .team-card,
  .page-home .topic-card {
    transition: none;
  }

  .page-home .home-entry:hover,
  .page-home .home-entry:focus-visible,
  .page-home .match-card:hover,
  .page-home .team-card:hover {
    transform: none;
  }
}
