/* ============ page-home ============ */
.page-home {
  --home-rail: 264px;
  --home-gap: 44px;
  --home-pad: 20px;
  display: block;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
}

.page-home .container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--home-pad);
}

.page-home .btn {
  text-decoration: none;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding-block: 26px 30px;
  background:
    radial-gradient(120% 82% at 86% 4%, rgba(39, 72, 224, 0.3) 0%, rgba(14, 17, 22, 0) 62%),
    var(--ink);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -12%;
  width: min(880px, 78%);
  height: 620px;
  background: linear-gradient(118deg, rgba(39, 72, 224, 0.92) 0%, rgba(21, 42, 107, 0.38) 50%, rgba(21, 42, 107, 0) 76%);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 64%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -70px;
  width: 52%;
  height: 250px;
  background: linear-gradient(118deg, rgba(228, 54, 47, 0.5) 0%, rgba(228, 54, 47, 0) 72%);
  clip-path: polygon(0 46%, 100% 0, 90% 100%, 0 100%);
  pointer-events: none;
}

.page-home .home-context {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 30px;
  padding-top: 26px;
  padding-bottom: 34px;
}

.page-home .hero-copy h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 8vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.page-home .hero-copy .lead {
  margin: 20px 0 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

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

.page-home .hero-visual {
  position: relative;
  margin: 0;
  border: 1px solid rgba(237, 231, 220, 0.14);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05);
}

.page-home .hero-visual .media-caption {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* 首屏数据块 */
.page-home .home-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
  margin-bottom: -30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.page-home .home-stats::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 130px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(228, 54, 47, 0));
}

.page-home .home-stats .stat {
  padding: 18px 16px;
  box-shadow: inset -1px -1px 0 var(--line);
}

.page-home .home-stats .stat-value {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.page-home .home-stats .stat:first-child .stat-value {
  color: var(--red);
}

.page-home .home-stats .stat-label {
  display: block;
  margin-top: 9px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 主分区 ---------- */
.page-home .home-shell {
  display: grid;
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 8px;
}

.page-home .home-index {
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(39, 72, 224, 0.13) 0%, rgba(14, 17, 22, 0) 48%),
    var(--ink-2);
  padding: 18px 16px 14px;
}

.page-home .home-index .eyebrow {
  display: block;
  margin: 0 0 12px;
}

.page-home .index-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-home .filter-btn {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.12s var(--ease), border-color 0.12s var(--ease), background-color 0.12s var(--ease);
}

.page-home .filter-btn:hover {
  color: var(--cream);
  border-color: var(--blue);
}

.page-home .filter-btn.is-active {
  color: var(--cream);
  border-color: var(--red);
  background: rgba(228, 54, 47, 0.16);
}

.page-home .index-nav {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-home .index-label {
  margin: 0 0 6px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

.page-home .index-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.12s var(--ease), padding-left 0.12s var(--ease);
}

.page-home .index-list a:hover {
  color: var(--cream);
  padding-left: 4px;
}

.page-home .index-code {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--red);
}

/* ---------- 区块通用 ---------- */
.page-home .home-arena {
  min-width: 0;
}

.page-home .home-section {
  padding-block: 40px 44px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--strip-h) + 16px);
}

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

.page-home .home-section--last {
  padding-bottom: 24px;
}

.page-home .section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.page-home .section-head .eyebrow {
  margin: 0;
}

.page-home .section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.page-home .section-note {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .section-foot {
  margin: 20px 0 0;
}

.page-home .section-visual {
  margin: 0;
}

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

/* ---------- S01 赛程 ---------- */
.page-home .match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .match {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color 0.12s var(--ease), transform 0.12s var(--ease), background-color 0.12s var(--ease);
}

.page-home .match[hidden] {
  display: none;
}

.page-home .match:hover {
  border-left-color: var(--red);
  transform: translateX(3px);
  background: #1b222c;
}

.page-home .match-time {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-home .match-vs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
}

.page-home .match-sep {
  font-family: var(--font-data);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

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

/* ---------- S02 积分 ---------- */
.page-home .standings-wrap {
  display: grid;
  gap: 22px;
}

.page-home .standings-visual {
  margin: 0;
}

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

.page-home .standings-visual .media-caption {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .rank-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.12s var(--ease);
}

.page-home .rank-row[hidden] {
  display: none;
}

.page-home .rank-row:hover {
  background: rgba(39, 72, 224, 0.09);
}

.page-home .rank-no {
  flex: 0 0 30px;
  font-size: 12px;
  color: var(--muted);
}

.page-home .rank-team {
  flex: 1 1 110px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
}

.page-home .rank-tag {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--moss);
}

.page-home .rank-pts {
  font-size: 14px;
  color: var(--cream);
}

.page-home .rank-delta {
  position: relative;
  min-width: 48px;
  text-align: right;
  font-size: 13px;
}

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

.page-home .rank-delta--down {
  color: var(--red);
}

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

.page-home .rank-note {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 4;
  white-space: nowrap;
  padding: 5px 9px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  color: var(--cream);
  background: var(--blue-deep);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.12s var(--ease), transform 0.12s var(--ease);
}

.page-home .rank-row:hover .rank-note,
.page-home .rank-delta:focus-visible .rank-note {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- S03 赛区 ---------- */
.page-home .region-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .region-card {
  position: relative;
  display: block;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(39, 72, 224, 0.15) 0%, rgba(14, 17, 22, 0) 54%),
    var(--ink-2);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.12s var(--ease), transform 0.12s var(--ease);
}

.page-home .region-card::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -34px;
  width: 86px;
  height: 86px;
  background: linear-gradient(135deg, var(--red) 0%, rgba(228, 54, 47, 0) 72%);
  opacity: 0.45;
  transform: rotate(45deg);
  transition: opacity 0.12s var(--ease);
}

.page-home .region-card:hover {
  border-color: rgba(79, 227, 216, 0.5);
  transform: translateY(-3px);
}

.page-home .region-card:hover::after {
  opacity: 1;
}

.page-home .region-code {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .region-name {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.page-home .region-node {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.page-home .region-hot {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--cyan);
}

/* ---------- S04 时间轴 ---------- */
.page-home .timeline-visual {
  margin: 0 0 20px;
}

.page-home .timeline-visual img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .timeline-scroll {
  list-style: none;
  margin: 0;
  padding: 6px 0 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 80%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.page-home .tl-node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  scroll-snap-align: start;
}

.page-home .tl-node::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14px;
  width: 30px;
  height: 2px;
  background: var(--clay);
}

.page-home .tl-mark {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .tl-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}

.page-home .tl-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .tl-tag {
  justify-self: start;
  margin-top: 2px;
  font-size: 11px;
}

/* ---------- S05 回放 ---------- */
.page-home .replay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .replay-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.12s var(--ease), background-color 0.12s var(--ease);
}

.page-home .replay-card:hover {
  border-color: var(--cyan);
  background: #1b2430;
}

.page-home .replay-stage {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .replay-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
}

.page-home .replay-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .replay-more {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.12s var(--ease);
}

.page-home .replay-card:hover .replay-more {
  color: var(--cream);
}

/* ---------- S06 合作 ---------- */
.page-home .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .contact-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(39, 72, 224, 0.12) 0%, rgba(14, 17, 22, 0) 58%), var(--ink-2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.12s var(--ease), transform 0.12s var(--ease);
}

.page-home .contact-card:hover {
  border-left-color: var(--red);
  transform: translateY(-2px);
}

.page-home .contact-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cream);
}

.page-home .contact-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .contact-go {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.12s var(--ease);
}

.page-home .contact-card:hover .contact-go {
  color: var(--cyan);
}

.page-home .contact-line {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.page-home .contact-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 12px 0 0;
  font-size: 13.5px;
}

.page-home .contact-more a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
  transition: border-color 0.12s var(--ease);
}

.page-home .contact-more a:hover {
  border-color: var(--red);
}

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

@media (min-width: 700px) {
  .page-home .match {
    grid-template-columns: 128px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }

  .page-home .match-vs {
    font-size: 18px;
  }

  .page-home .match-meta {
    text-align: right;
  }

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

  .page-home .home-stats .stat {
    box-shadow: inset -1px 0 0 var(--line);
    padding: 22px 18px;
  }

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

  .page-home .timeline-scroll {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .page-home .timeline-visual img {
    height: 300px;
  }
}

@media (min-width: 900px) {
  .page-home .home-context {
    margin-bottom: 4px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 46px;
    padding-top: 40px;
    padding-bottom: 46px;
  }

  .page-home .standings-wrap {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .page-home .section-head--split {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 36px;
    align-items: end;
  }

  .page-home .section-head--split .section-visual img {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1024px) {
  .page-home .home-shell {
    grid-template-columns: var(--home-rail) minmax(0, 1fr);
    gap: var(--home-gap);
    align-items: start;
  }

  .page-home .home-index {
    position: sticky;
    top: calc(var(--strip-h) + 18px);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .page-home .match,
  .page-home .region-card,
  .page-home .contact-card,
  .page-home .rank-note,
  .page-home .index-list a {
    transition: none;
  }
}
