.page-home {
  --home-sticky: calc(var(--header-h) + 1.25rem);
  --home-rail-w: 11rem;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.page-home p {
  margin: 0;
}

.page-home ul,
.page-home ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 7rem) clamp(2rem, 5vw, 4rem);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(0.45) contrast(1.06);
  z-index: -2;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(18, 70, 62, 0.75), rgba(10, 14, 12, 0) 62%),
    linear-gradient(180deg, rgba(10, 14, 12, 0.62), rgba(10, 14, 12, 0.94) 68%, var(--ink-900));
  z-index: -1;
}

.page-home .home-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}

.page-home .home-hero__lead {
  display: grid;
  gap: 1rem;
}

.page-home .home-hero__season {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .home-hero__num {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
  letter-spacing: 0.02em;
}

.page-home .home-hero__title {
  font-size: clamp(2.75rem, 9vw, 7.5rem);
  color: var(--paper);
  text-wrap: balance;
}

.page-home .home-hero__lede {
  max-width: 40ch;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
}

.page-home .home-hero__panel {
  display: grid;
  gap: 1rem;
}

.page-home .entry-card {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(16, 32, 26, 0.95), rgba(10, 14, 12, 0.85));
  box-shadow: 0 1px 0 rgba(63, 224, 200, 0.08) inset;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .entry-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-home .entry-card__index {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .entry-card__title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--paper);
}

.page-home .entry-card__meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.page-home .entry-card__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
}

.page-home .entry-card__link {
  justify-self: start;
  margin-top: 0.35rem;
}

/* ---------- 锚点导航 ---------- */

.page-home .home-anchors {
  padding-block: 0.9rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-anchors .anchor-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.page-home .home-anchors .anchor-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding-block: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-anchors .anchor-nav__link .mono {
  font-size: 0.75rem;
  color: var(--line);
}

.page-home .home-anchors .anchor-nav__link:hover,
.page-home .home-anchors .anchor-nav__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .home-anchors .anchor-nav__link:hover .mono,
.page-home .home-anchors .anchor-nav__link:focus-visible .mono {
  color: var(--cyan);
}

/* ---------- 通用小标题 ---------- */

.page-home .eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .section__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--paper);
  text-wrap: balance;
}

.page-home .section__lede {
  margin-top: 0.85rem;
  max-width: 52ch;
  font-size: 0.9688rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .prose {
  max-width: var(--measure);
  line-height: 1.75;
  color: var(--text);
}

.page-home .prose p + p {
  margin-top: 0.85rem;
}

/* ---------- 赛程时间轴 ---------- */

.page-home .home-live__head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.page-home .home-live__layout {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-live__rail {
  display: grid;
  gap: 0.6rem;
}

.page-home .home-live__rail-title {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--line);
}

.page-home .day-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.page-home .day-rail__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .day-rail__id {
  font-size: 0.8125rem;
  color: var(--muted);
}

.page-home .day-rail__label {
  font-size: 0.8125rem;
  color: var(--text);
}

.page-home .day-rail__item--now {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(63, 224, 200, 0.22);
}

.page-home .day-rail__item--now .day-rail__id {
  color: var(--cyan);
}

.page-home .timeline {
  display: grid;
}

.page-home .timeline__item + .timeline__item {
  border-top: 1px solid var(--line-soft);
}

.page-home .timeline__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "dot time score"
    "dot league tag";
  gap: 0.3rem 0.75rem;
  align-items: center;
  padding: 0.9rem 0;
  cursor: pointer;
  list-style: none;
}

.page-home .timeline__summary::-webkit-details-marker {
  display: none;
}

.page-home .timeline__summary:hover .timeline__league,
.page-home .timeline__summary:focus-visible .timeline__league {
  color: var(--cyan);
}

.page-home .timeline__dot {
  grid-area: dot;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--line);
  align-self: start;
  margin-top: 0.5rem;
}

.page-home .timeline__time {
  grid-area: time;
  font-size: 0.875rem;
  color: var(--muted);
}

.page-home .timeline__league {
  grid-area: league;
  font-size: 0.9375rem;
  color: var(--text);
  transition: color var(--dur) var(--ease);
}

.page-home .timeline__score {
  grid-area: score;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  justify-self: end;
}

.page-home .timeline__summary .tag {
  grid-area: tag;
  justify-self: end;
}

.page-home .timeline__body {
  padding: 0 0 1.1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .timeline__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 224, 200, 0.35);
  transition: border-color var(--dur) var(--ease);
}

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

/* ---------- 升降级速览 ---------- */

.page-home .home-standings__wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 32, 26, 0.6), rgba(10, 14, 12, 0.4));
}

.page-home .home-standings__table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.page-home .home-standings__table th,
.page-home .home-standings__table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-standings__table thead th {
  position: sticky;
  top: 0;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .home-standings__table tbody th {
  font-weight: 500;
  color: var(--paper);
}

.page-home .home-standings__table tbody tr:last-child th,
.page-home .home-standings__table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .home-standings__table td.mono {
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.page-home .home-standings__note {
  margin-top: 1.25rem;
  max-width: 54ch;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-standings__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ---------- 签表与点球 ---------- */

.page-home .home-cups__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.page-home .track {
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scroll-snap-type: x proximity;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: thin;
}

.page-home .track:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 4px;
}

.page-home .track__list {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
}

.page-home .cup-card {
  flex: 0 0 min(80vw, 19rem);
  scroll-snap-align: start;
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .cup-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-home .cup-card__round {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .cup-card__tie {
  font-size: 1.125rem;
  color: var(--paper);
  line-height: 1.25;
}

.page-home .cup-card__meta {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .penalty-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(200deg, rgba(18, 70, 62, 0.55), rgba(10, 14, 12, 0.9) 62%);
}

.page-home .penalty-card__media {
  margin: 0;
}

.page-home .penalty-card__body {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
}

.page-home .penalty-card__lede {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text);
}

.page-home .penalty-card__stats {
  display: flex;
  gap: 2rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line-soft);
}

.page-home .stat {
  display: grid;
  gap: 0.15rem;
}

.page-home .stat__value {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  line-height: 1.1;
}

.page-home .stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .penalty-card__link {
  justify-self: start;
  margin-top: 0.25rem;
}

/* ---------- 友谊赛对照 ---------- */

.page-home .home-friendlies__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.page-home .home-friendlies__table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 32, 26, 0.55), rgba(10, 14, 12, 0.35));
  overflow: hidden;
}

.page-home .home-friendlies__table .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.page-home .home-friendlies__table th,
.page-home .home-friendlies__table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-friendlies__table thead th {
  background: var(--ink-800);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .home-friendlies__table tbody th {
  font-weight: 500;
  color: var(--paper);
}

.page-home .home-friendlies__table tbody tr:last-child th,
.page-home .home-friendlies__table tbody tr:last-child td {
  border-bottom: 0;
}

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

.page-home .home-num--neg {
  color: var(--warn);
}

.page-home .home-friendlies__note {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-friendlies__map {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.page-home .media__caption {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .media__badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  background: rgba(10, 14, 12, 0.78);
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.page-home .home-friendlies__map .media__frame {
  position: relative;
}

/* ---------- 阵容变动同步 ---------- */

.page-home .home-sync .section__title {
  max-width: 26ch;
}

.page-home .sync-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(18, 70, 62, 0.55), rgba(10, 14, 12, 0.05));
}

.page-home .sync-bar__dot {
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(63, 224, 200, 0.14);
}

.page-home .sync-bar__text {
  flex: 1 1 18rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
}

.page-home .sync-bar__link {
  font-size: 0.875rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 224, 200, 0.35);
  transition: border-color var(--dur) var(--ease);
}

.page-home .sync-bar__link:hover,
.page-home .sync-bar__link:focus-visible {
  border-bottom-color: var(--cyan);
}

.page-home .home-sync__fold {
  margin-top: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .home-sync__fold .fold__summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--paper);
  list-style: none;
}

.page-home .home-sync__fold .fold__summary::-webkit-details-marker {
  display: none;
}

.page-home .home-sync__fold .fold__summary::after {
  content: "+";
  float: right;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.page-home .home-sync__fold[open] .fold__summary::after {
  content: "–";
}

.page-home .home-sync__fold .fold__body {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.9375rem;
}

.page-home .home-sync__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}

/* ---------- 移动端联赛切换 ---------- */

.page-home .home-mobile__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.page-home .home-mobile__text {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.page-home .home-mobile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.page-home .home-mobile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .home-mobile__chips .chip {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--ink-800);
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-mobile__chips .chip[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .home-mobile__chips .chip:hover {
  border-color: var(--cyan);
}

/* ---------- 资料下载 ---------- */

.page-home .dl-grid {
  display: grid;
  gap: 1rem;
}

.page-home .dl-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .dl-card:hover,
.page-home .dl-card:focus-visible {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-home .dl-card__idx {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .dl-card__title {
  font-size: 1.15rem;
  color: var(--paper);
}

.page-home .dl-card__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-download__cta {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-download__cta-text {
  max-width: 58ch;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

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

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

  .page-home .home-download__cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .page-home .timeline__summary {
    grid-template-columns: auto 4.5rem minmax(0, 1fr) auto auto;
    grid-template-areas: "dot time league score tag";
    gap: 0.75rem;
  }

  .page-home .timeline__dot {
    align-self: center;
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .page-home .home-live__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    align-items: end;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .page-home .home-live__layout {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .page-home .home-live__rail {
    position: sticky;
    top: var(--home-sticky);
  }

  .page-home .day-rail {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .day-rail__item {
    justify-content: space-between;
    width: 100%;
  }

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

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

  .page-home .home-friendlies__map {
    margin-top: 3rem;
  }

  .page-home .home-mobile__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    gap: clamp(2rem, 6vw, 4.5rem);
  }
}

@media (min-width: 1280px) {
  .page-home .cup-card {
    flex-basis: 20rem;
  }
}

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

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