.page-home {
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

/* ---------- 首屏框景 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 4;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 40px);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(53, 242, 198, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(4, 16, 12, 0.5), rgba(4, 16, 12, 0.94));
}

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

.page-home .hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  min-height: 100vh;
  padding: 60px var(--gutter) 48px;
  margin: 0;
}

.page-home .hero__rail {
  align-self: start;
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.page-home .hero__rail-title {
  margin: 0 0 20px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-home .filter + .filter {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-home .filter__label {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-home .filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .filter__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}

.page-home .filter__link:hover,
.page-home .filter__link:focus-visible {
  color: var(--white);
  border-color: var(--line);
}

.page-home .filter__link.is-active {
  color: var(--cyan);
  border-color: var(--line);
  background: rgba(53, 242, 198, 0.06);
  box-shadow: inset 2px 0 0 var(--cyan);
}

.page-home .filter__count {
  font-size: 12px;
  color: var(--muted);
}

.page-home .filter__link.is-active .filter__count {
  color: var(--cyan);
}

.page-home .weekbar {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 14px;
}

.page-home .weekbar rect {
  fill: var(--line);
}

.page-home .weekbar rect.is-today {
  fill: var(--cyan);
}

.page-home .rail__hint {
  margin: 26px 0 0;
  padding: 12px 12px 13px;
  border: 1px solid var(--line);
  background: rgba(12, 32, 26, 0.6);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 首屏主区 ---------- */
.page-home .hero__context {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .hero__title {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.05em;
  color: var(--white);
  max-width: 18em;
}

.page-home .hero__lede {
  margin: 0 0 30px;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 对阵看板 ---------- */
.page-home .board {
  border: 1px solid var(--line);
  background: rgba(12, 32, 26, 0.78);
}

.page-home .board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.page-home .board__headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .board__count {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-home .board__count .stat {
  font-family: var(--mono);
  font-size: clamp(56px, 6.4vw, 86px);
  line-height: 0.84;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-home .board__count-unit {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .board__note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.page-home .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}

.page-home .dot--live {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 242, 198, 0.16);
}

.page-home .dot--soon {
  background: var(--orange);
}

.page-home .dot--squad {
  background: var(--purple);
}

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

.page-home .match {
  display: grid;
  grid-template-columns: 66px 132px minmax(0, 1fr) 82px 104px;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  box-shadow: inset 0 -1px 0 var(--line);
  transition: background-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.page-home .match:hover,
.page-home .match:focus-within {
  background: rgba(53, 242, 198, 0.05);
  box-shadow: inset 0 -1px 0 var(--cyan);
}

.page-home .match:last-child {
  box-shadow: none;
}

.page-home .match__time {
  font-size: 13px;
  color: var(--muted);
}

.page-home .match__league {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .match__teams {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-home .match__team {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .match__vs {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.page-home .match__score {
  font-family: var(--mono);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--white);
}

.page-home .match--live .match__score {
  color: var(--cyan);
}

.page-home .match__state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.page-home .board__foot {
  margin: 0;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .hero__fig {
  margin: 22px 0 0;
}

/* ---------- 通用区块标题 ---------- */
.page-home .section-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.page-home .section-head__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 排名与名单并列区 ---------- */
.page-home .pair {
  padding: 76px 0 0;
}

.page-home .pair__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: var(--gap);
  margin-top: 30px;
  align-items: stretch;
}

.page-home .panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.page-home .panel__title {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.page-home .panel__meta {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-home .panel__foot {
  margin: 0;
  padding: 13px 18px 15px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .panel__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 242, 198, 0.4);
}

.page-home .panel__foot a:hover {
  border-bottom-color: var(--cyan);
}

.page-home .standings__table {
  width: 100%;
  border-collapse: collapse;
}

.page-home .standings__table th,
.page-home .standings__table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-home .standings__table thead th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .standings__table tbody tr {
  transition: background-color var(--t-fast) ease;
}

.page-home .standings__table tbody tr:hover {
  background: rgba(241, 247, 244, 0.06);
}

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

.page-home .standings__table .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.page-home .standings__table td:nth-child(2) {
  color: var(--white);
  font-weight: 600;
}

.page-home .standings__table .up {
  color: var(--cyan);
}

.page-home .standings__table .down {
  color: var(--orange);
}

.page-home .standings__table .flat {
  color: var(--muted);
}

.page-home .injuries__group {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.page-home .injuries__group:last-of-type {
  border-bottom: 0;
}

.page-home .injuries__pos {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--purple);
  text-transform: uppercase;
}

.page-home .injuries__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.page-home .injuries__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.page-home .injuries__team {
  color: var(--white);
}

.page-home .injuries__state {
  font-size: 12px;
  white-space: nowrap;
}

.page-home .injuries__state.is-out {
  color: var(--purple);
}

.page-home .injuries__state.is-single {
  color: var(--muted);
}

.page-home .injuries__state.is-back {
  color: var(--cyan);
}

.page-home .pair__fig {
  margin: 0;
  display: flex;
}

.page-home .pair__fig img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

/* ---------- 注册与设备 ---------- */
.page-home .start {
  padding: 76px 0 0;
}

.page-home .start__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 44px;
  align-items: start;
}

.page-home .start__lede {
  margin: 18px 0 0;
  max-width: 32em;
}

.page-home .start__steps {
  list-style: none;
  counter-reset: step;
  margin: 26px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .start__steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-home .start__steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .start__steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  padding: 4px 0;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  color: var(--cyan);
}

.page-home .start__steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .start__cta {
  display: inline-block;
  text-decoration: none;
}

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

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

.page-home .deskfacts {
  margin: 16px 0 0;
  padding: 0 18px 18px;
}

.page-home .start__desk .panel__title {
  padding: 18px 18px 0;
}

.page-home .deskfacts__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .deskfacts__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .deskfacts dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .deskfacts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
}

/* ---------- 更新节奏时间带 ---------- */
.page-home .rhythm {
  padding: 76px 0 0;
}

.page-home .rhythm__track {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(12, 32, 26, 0.55);
}

.page-home .rhythm__item {
  padding: 22px 20px 24px;
  border-right: 1px solid var(--line);
}

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

.page-home .rhythm__item::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--cyan);
}

.page-home .rhythm__item--gap::before {
  background: var(--orange);
}

.page-home .rhythm__time {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .rhythm__item--gap .rhythm__time {
  color: var(--orange);
}

.page-home .rhythm__item h3 {
  margin: 9px 0 8px;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.page-home .rhythm__item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .rhythm__foot {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.page-home .rhythm__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 242, 198, 0.4);
}

.page-home .rhythm__foot a:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 延伸入口 ---------- */
.page-home .routes {
  padding: 76px 0 100px;
}

.page-home .routes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--gap);
  margin-top: 28px;
}

.page-home .route-card {
  position: relative;
  display: block;
  padding: 26px 22px 30px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: var(--white);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}

.page-home .route-card:hover,
.page-home .route-card:focus-visible {
  border-color: var(--cyan);
  background: rgba(53, 242, 198, 0.06);
}

.page-home .route-card::after {
  content: "→";
  position: absolute;
  top: 24px;
  right: 20px;
  font-size: 15px;
  color: var(--muted);
  transition: color var(--t-fast) ease, transform var(--t-fast) ease;
}

.page-home .route-card:hover::after {
  color: var(--cyan);
  transform: translateX(3px);
}

.page-home .route-card__index {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.page-home .route-card h3 {
  margin: 14px 0 10px;
  font-size: 20px;
  letter-spacing: 0.05em;
}

.page-home .route-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .route-card--wide {
  border-top: 2px solid var(--cyan);
}

.page-home .route-card--narrow {
  border-top: 2px solid var(--purple);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .page-home .pair__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .pair__fig {
    grid-column: 1 / -1;
  }

  .page-home .pair__fig img {
    min-height: 200px;
    aspect-ratio: 21 / 9;
  }

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

  .page-home .route-card--narrow {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .page-home .hero__grid {
    min-height: 0;
    padding: 52px var(--gutter) 44px;
  }

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

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

  .page-home .rhythm__item:nth-child(2) {
    border-right: 0;
  }

  .page-home .rhythm__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 44px var(--gutter) 36px;
  }

  .page-home .hero__rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 22px;
  }

  .page-home .hero__rail-title {
    margin-bottom: 14px;
  }

  .page-home .filter__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .page-home .filter__link {
    flex: 1 1 auto;
    min-width: 92px;
    border-color: var(--line);
  }

  .page-home .weekbar {
    max-width: 320px;
  }

  .page-home .match {
    grid-template-columns: 58px minmax(0, 1fr) 78px;
    grid-template-areas:
      "time league score"
      "state teams teams";
    row-gap: 8px;
    padding: 14px 16px;
  }

  .page-home .match__time { grid-area: time; }
  .page-home .match__league { grid-area: league; }
  .page-home .match__score { grid-area: score; }
  .page-home .match__teams { grid-area: teams; }
  .page-home .match__state {
    grid-area: state;
    justify-content: flex-start;
  }

  .page-home .board__head,
  .page-home .board__foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 640px) {
  .page-home .pair,
  .page-home .start,
  .page-home .rhythm {
    padding-top: 56px;
  }

  .page-home .routes {
    padding: 56px 0 72px;
  }

  .page-home .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

  .page-home .pair__fig {
    grid-column: auto;
  }

  .page-home .pair__fig img {
    aspect-ratio: 4 / 3;
  }

  .page-home .standings__table th,
  .page-home .standings__table td {
    padding: 9px 8px;
    font-size: 12px;
  }

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

  .page-home .rhythm__item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-home .rhythm__item:last-child {
    border-bottom: 0;
  }

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

  .page-home .route-card--narrow {
    grid-column: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .filter__link,
  .page-home .match,
  .page-home .route-card,
  .page-home .route-card::after {
    transition: none;
  }
}
