.page-home {
  --home-rail: 92px;
  --home-cut: 28px;
  position: relative;
  background: var(--ink-900);
  color: var(--cream);
  font-family: var(--font-sans);
  overflow-x: clip;
  isolation: isolate;
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(60, 90, 73, .18) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(44, 242, 208, .045) 0 1px, transparent 1px 5px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}

.page-home .home-crumb-wrap {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 18px);
  padding-bottom: 6px;
}

.page-home .home-stage {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 1460px;
  margin-inline: auto;
}

/* ---------- 左侧窄栏 ---------- */

.page-home .rail {
  position: sticky;
  top: var(--header-h);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--gutter);
  background: rgba(10, 26, 42, .94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .rail::-webkit-scrollbar {
  display: none;
}

.page-home .rail-label {
  display: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--rock);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.page-home .rail-filters {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.page-home .rail-btn {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-72);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .04em;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.page-home .rail-btn:hover,
.page-home .rail-btn:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  outline: none;
}

.page-home .rail-btn.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
}

.page-home .rail-count {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--rock);
  letter-spacing: .08em;
  white-space: nowrap;
}

.page-home .rail-timeline {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: auto;
}

.page-home .rail-tick {
  display: block;
  padding: 6px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--rock);
  text-decoration: none;
  letter-spacing: .08em;
  border-radius: 6px;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.page-home .rail-tick:hover,
.page-home .rail-tick:focus-visible {
  color: var(--cyan);
  background: var(--cyan-soft);
  outline: none;
}

/* ---------- 通用区块 ---------- */

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

.page-home .home-zone {
  position: relative;
  padding: clamp(52px, 9vw, 108px) var(--gutter);
}

.page-home .home-zone--tint {
  background: linear-gradient(183deg, rgba(18, 40, 60, .74) 0%, rgba(18, 40, 60, .22) 48%, rgba(10, 26, 42, 0) 100%);
  clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 calc(100% - 26px));
}

.page-home .home-zone-head {
  margin-bottom: 22px;
}

.page-home .section-mark {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: .82;
  color: transparent;
  -webkit-text-stroke: 1px rgba(44, 242, 208, .5);
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.page-home .section-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.55rem, 4.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--cream);
}

.page-home .home-zone-lead {
  max-width: 46ch;
  color: var(--cream-72);
  font-size: 16px;
  line-height: 1.78;
  margin: 0 0 8px;
}

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

.page-home .home-hero {
  position: relative;
  padding: clamp(34px, 6vw, 76px) var(--gutter) clamp(52px, 8vw, 108px);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 88% 6%, rgba(44, 242, 208, .14) 0%, rgba(10, 26, 42, 0) 62%),
    linear-gradient(200deg, rgba(30, 58, 82, .55) 0%, rgba(10, 26, 42, 0) 58%);
}

.page-home .home-hero-note {
  position: absolute;
  top: clamp(30px, 5vw, 64px);
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .34em;
  color: rgba(123, 136, 148, .7);
  display: none;
}

.page-home .home-hero-grid {
  display: grid;
  gap: clamp(30px, 6vw, 56px);
}

.page-home .home-hero-copy h1 {
  margin: 0 0 20px;
  font-weight: 900;
  font-size: clamp(2.15rem, 9vw, 4.7rem);
  line-height: .99;
  letter-spacing: -.025em;
  color: var(--cream);
}

.page-home .home-hero-copy h1 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 34px rgba(44, 242, 208, .34);
}

.page-home .home-hero-copy .lead {
  max-width: 42ch;
  margin: 0 0 28px;
  color: var(--cream-72);
  font-size: 16px;
  line-height: 1.78;
}

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

.page-home .home-hero-side {
  display: grid;
  gap: 18px;
}

/* 比分浮层 */

.page-home .home-scoreboard {
  position: relative;
  padding: 22px 20px 20px;
  background: linear-gradient(158deg, rgba(30, 58, 82, .96) 0%, rgba(10, 26, 42, .99) 76%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 60px rgba(44, 242, 208, .07);
  clip-path: polygon(0 var(--home-cut), var(--home-cut) 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
  overflow: hidden;
}

.page-home .home-scoreboard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg, rgba(44, 242, 208, .06) 0 2px, transparent 2px 10px);
  pointer-events: none;
}

.page-home .home-scoreboard > * {
  position: relative;
  z-index: 1;
}

.page-home .score-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--signal);
}

.page-home .score-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
}

.page-home .score-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 6px;
}

.page-home .score-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 12vw, 3.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(44, 242, 208, .45);
}

.page-home .score-sep {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--rock);
}

.page-home .score-teams {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--cream-72);
}

.page-home .score-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.page-home .score-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.page-home .score-stat dt {
  font-size: 11px;
  color: var(--rock);
  white-space: nowrap;
}

.page-home .score-stat dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

/* 首屏图 */

.page-home .home-hero-figure {
  margin: 0;
}

.page-home .home-hero-media {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.page-home .home-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06) brightness(.82);
}

.page-home .home-hero-figure .figure-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--rock);
}

/* ---------- 联赛分区 ---------- */

.page-home .home-zone-banner {
  margin: 0 0 34px;
}

.page-home .home-zone-banner-media {
  clip-path: polygon(0 0, 100% 18px, 100% 100%, 0 100%);
}

.page-home .home-zone-banner-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(.7) brightness(.62) contrast(1.1);
}

.page-home .home-fixture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-fixture {
  border-left: 2px solid rgba(44, 242, 208, .28);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}

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

.page-home .home-fixture .card-kicker {
  color: var(--rock);
}

.page-home .home-fixture .card-title {
  color: var(--cream);
}

.page-home .home-fixture .card-body {
  color: var(--cream-56);
}

.page-home .home-fixture-note {
  margin: 26px 0 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
  color: var(--rock);
  max-width: 62ch;
}

/* ---------- 小屏三步 ---------- */

.page-home .home-step-layout {
  display: grid;
  gap: clamp(26px, 5vw, 52px);
  margin-top: 12px;
}

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

.page-home .home-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

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

.page-home .home-step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 7px 8px;
  color: var(--ink-900);
  background: var(--cyan);
  border-radius: 4px;
  letter-spacing: .04em;
}

.page-home .home-step-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -.01em;
}

.page-home .home-step-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--cream-72);
  max-width: 44ch;
}

.page-home .home-step-figure {
  margin: 0;
}

.page-home .home-step-media {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .home-step-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(.86) saturate(.88);
}

.page-home .home-step-figure .figure-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--rock);
}

/* ---------- 转会 ---------- */

.page-home .home-transfer-layout {
  display: grid;
  gap: clamp(24px, 5vw, 48px);
  margin-top: 12px;
}

.page-home .home-transfer-copy .lead {
  margin: 0 0 16px;
  color: var(--cream-72);
  max-width: 46ch;
}

.page-home .home-transfer-copy .prose {
  margin: 0 0 24px;
  color: var(--cream-56);
  font-size: 15px;
  max-width: 48ch;
}

.page-home .home-transfer-figure {
  margin: 0;
}

.page-home .home-transfer-media {
  clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-transfer-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(.84) saturate(.9);
}

.page-home .home-transfer-figure .figure-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--rock);
}

.page-home .home-window-strip {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
}

.page-home .home-window {
  position: relative;
  padding: 16px 18px 16px 30px;
  background: linear-gradient(160deg, rgba(30, 58, 82, .7), rgba(18, 40, 60, .35));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
}

.page-home .home-window::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), rgba(255, 124, 46, .1));
  border-radius: 2px;
}

.page-home .home-window-dot {
  position: absolute;
  left: 14px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 124, 46, .7);
}

.page-home .home-window-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
}

.page-home .home-window-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--orange);
}

/* ---------- 四川路径 ---------- */

.page-home .home-region-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-region-card .card-kicker {
  color: var(--rock);
}

.page-home .home-region-card .card-title {
  color: var(--cream);
}

.page-home .home-region-card .card-body {
  color: var(--cream-56);
}

.page-home .home-region-note {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--r-l);
  background: linear-gradient(150deg, rgba(60, 90, 73, .5), rgba(166, 92, 66, .22));
  border: 1px solid rgba(60, 90, 73, .8);
}

.page-home .home-region-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.86;
  color: var(--cream-72);
  max-width: 66ch;
}

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

.page-home .home-recap-layout {
  display: grid;
  gap: clamp(26px, 5vw, 52px);
  margin-top: 12px;
}

.page-home .home-recap-copy .lead {
  margin: 0 0 16px;
  color: var(--cream-72);
  max-width: 44ch;
}

.page-home .home-recap-copy .prose {
  margin: 0 0 26px;
  color: var(--cream-56);
  font-size: 15px;
  max-width: 48ch;
}

.page-home .home-recap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.page-home .home-recap-list li {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-recap-list li:first-child {
  padding-top: 4px;
}

.page-home .home-recap-key {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  white-space: nowrap;
}

.page-home .home-recap-val {
  font-size: 14px;
  line-height: 1.7;
  color: var(--cream-72);
}

.page-home .home-tail-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-tail-links a {
  font-size: 13px;
  color: var(--cream-72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .home-tail-links a:hover,
.page-home .home-tail-links a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  outline: none;
}

/* ---------- 媒体查询 ---------- */

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

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

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

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

@media (min-width: 900px) {
  .page-home .home-crumb-wrap {
    padding-top: calc(var(--header-h) + 26px);
  }

  .page-home .split-screen {
    display: grid;
    grid-template-columns: var(--home-rail) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .rail {
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: var(--home-rail);
    height: calc(100vh - var(--header-h));
    padding: 26px 9px 26px 11px;
    background: transparent;
    border-bottom: 0;
    border-right: 1px solid var(--line-soft);
    backdrop-filter: none;
    overflow: visible;
    scrollbar-width: auto;
  }

  .page-home .rail-label {
    display: block;
    align-self: flex-start;
    margin-left: 2px;
  }

  .page-home .rail-filters {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .page-home .rail-btn {
    width: 100%;
    padding: 9px 2px;
    border-radius: var(--r-s);
    font-size: 11px;
    text-align: center;
  }

  .page-home .rail-count {
    font-size: 10px;
    text-align: center;
    letter-spacing: 0;
  }

  .page-home .rail-timeline {
    flex-direction: column;
    gap: 0;
    margin: auto 0 0;
    padding-left: 15px;
    position: relative;
  }

  .page-home .rail-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), rgba(44, 242, 208, .06));
  }

  .page-home .rail-tick {
    padding: 7px 0;
    border-radius: 0;
    background: none;
  }

  .page-home .rail-tick::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--ink-700);
    border: 1px solid var(--rock);
    transition: background .2s var(--ease), border-color .2s var(--ease);
  }

  .page-home .rail-tick:hover,
  .page-home .rail-tick:focus-visible {
    background: none;
  }

  .page-home .rail-tick:hover::before,
  .page-home .rail-tick:focus-visible::before {
    background: var(--cyan);
    border-color: var(--cyan);
  }

  .page-home .home-hero-note {
    display: block;
  }

  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: clamp(32px, 4vw, 68px);
  }

  .page-home .home-step-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    align-items: start;
  }

  .page-home .home-transfer-layout {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: center;
  }

  .page-home .home-recap-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: start;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-fixture,
  .page-home .rail-btn,
  .page-home .rail-tick,
  .page-home .home-tail-links a {
    transition: none;
  }

  .page-home .home-fixture:hover {
    transform: none;
  }
}
