.page-home {
  --home-rail: 220px;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: clip;
  padding: clamp(26px, 4.6vw, 52px) 0 clamp(34px, 5.4vw, 72px);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: -6%;
  left: -15%;
  right: -15%;
  height: 52%;
  background: linear-gradient(102deg, rgba(40, 224, 168, 0.10), rgba(77, 163, 255, 0.07) 48%, rgba(255, 90, 54, 0) 78%);
  transform: skewY(-5deg);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
}

.page-home .hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.6vw, 54px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 14px 0 0;
  max-width: 20ch;
  color: var(--ink);
}

.page-home .hero__lede {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
}

.page-home .hero__grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(24px, 3.6vw, 40px);
}

/* ---------- 进行中的比分视窗 ---------- */
.page-home .score-window {
  position: relative;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--grid);
  border-radius: var(--radius-card);
  background: var(--panel);
  min-height: clamp(330px, 42vw, 440px);
}

.page-home .score-window__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.28;
  z-index: 0;
  filter: saturate(0.72) contrast(1.08);
}

.page-home .score-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(178deg, rgba(7, 11, 24, 0.42) 0%, rgba(7, 11, 24, 0.82) 52%, rgba(7, 11, 24, 0.96) 100%);
  z-index: 0;
  pointer-events: none;
}

.page-home .score-window__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px);
}

.page-home .score-window__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .score-window__league {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: 0.05em;
  color: var(--ink);
}

.page-home .score-window__clock {
  margin-left: auto;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--live);
}

.page-home .score-window__board {
  margin-top: auto;
  display: grid;
  gap: 4px;
}

.page-home .team {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(32, 48, 79, 0.65);
}

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

.page-home .team__name {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.page-home .team__goals {
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
}

.page-home .event-line {
  list-style: none;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(32, 48, 79, 0.65);
}

.page-home .event-line__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  max-height: 30px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

.page-home .event-line__item:last-child {
  margin-bottom: 0;
}

.page-home .event-line__min {
  min-width: 36px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--link);
}

.page-home .event-line__text {
  color: var(--ink);
}

.page-home .event-line__hidden {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

.page-home .score-window:hover .event-line__hidden,
.page-home .score-window:focus-within .event-line__hidden {
  max-height: 30px;
  opacity: 1;
  margin-bottom: 8px;
}

/* ---------- 右侧数据小卡 ---------- */
.page-home .stat-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

@media (min-width: 540px) and (max-width: 979px) {
  .page-home .stat-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .stat-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 15px 17px;
  border: 1px solid var(--grid);
  border-radius: var(--radius-card);
  background: linear-gradient(155deg, var(--panel), rgba(13, 20, 40, 0.55));
}

.page-home .stat-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-home .stat-card__value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.05;
  color: var(--cyan);
}

.page-home .stat-card__value small {
  margin-left: 6px;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
}

.page-home .stat-card__sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .stat-card__figure {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 4px;
}

.page-home .mini-bar {
  display: flex;
  height: 6px;
  margin-top: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--raise);
}

.page-home .mini-bar__seg {
  display: block;
  height: 100%;
}

.page-home .mini-bar__seg--cyan {
  background: var(--cyan);
}

.page-home .mini-bar__seg--dim {
  background: #2a3b5d;
}

/* ---------- 主区：粘性赛程轴 + 内容列 ---------- */
.page-home .dash {
  display: grid;
  gap: 30px;
  padding-top: clamp(10px, 2vw, 24px);
}

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

.page-home .rail__list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .rail__item {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.page-home .rail__item.is-done {
  color: var(--ink);
}

.page-home .rail__item.is-live {
  color: var(--live);
  border-color: rgba(255, 90, 54, 0.5);
  background: rgba(255, 90, 54, 0.08);
}

.page-home .rail__round {
  font-size: 11px;
  color: inherit;
}

.page-home .dash__body > section {
  padding-block: clamp(26px, 4vw, 48px);
  border-top: 1px solid rgba(32, 48, 79, 0.55);
}

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

/* ---------- 统计滚动条 ---------- */
.page-home .stat-track {
  margin-top: 22px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.page-home .stat-track__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
}

.page-home .stat-cell {
  flex: 0 0 176px;
  scroll-snap-align: start;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 15px 16px;
  border: 1px solid var(--grid);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.page-home .stat-cell--key {
  border-color: rgba(40, 224, 168, 0.42);
  background: linear-gradient(158deg, rgba(40, 224, 168, 0.13), rgba(13, 20, 40, 0.92));
}

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

.page-home .stat-cell__num {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1.05;
  color: var(--ink);
}

.page-home .stat-cell--key .stat-cell__num {
  color: var(--cyan);
}

.page-home .stat-cell__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 三条主线 ---------- */
.page-home .threads__list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.page-home .thread {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 20px 20px 18px;
  border: 1px solid var(--grid);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.page-home .thread::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 62%;
  height: 160%;
  background: linear-gradient(118deg, rgba(40, 224, 168, 0.16), rgba(40, 224, 168, 0) 72%);
  transform: skewX(-12deg);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.page-home .thread--b::before {
  background: linear-gradient(118deg, rgba(77, 163, 255, 0.18), rgba(77, 163, 255, 0) 72%);
}

.page-home .thread--c::before {
  background: linear-gradient(118deg, rgba(255, 197, 61, 0.16), rgba(255, 197, 61, 0) 72%);
}

.page-home .thread:hover::before,
.page-home .thread:focus-visible::before {
  opacity: 1;
}

.page-home .thread:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 163, 255, 0.4);
}

.page-home .thread__index {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .thread--b .thread__index {
  color: var(--link);
}

.page-home .thread--c .thread__index {
  color: var(--amber);
}

.page-home .thread__title {
  position: relative;
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.page-home .thread__text {
  position: relative;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .thread__go {
  position: relative;
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border-bottom: 1px solid currentColor;
}

.page-home .thread--b .thread__go {
  color: var(--link);
}

.page-home .thread--c .thread__go {
  color: var(--amber);
}

/* ---------- 赛季地图 ---------- */
.page-home .season__top {
  display: grid;
  gap: 22px;
  margin-top: 24px;
  align-items: center;
}

.page-home .season-ring {
  position: relative;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 70%, var(--raise) 70% 100%);
  display: grid;
  place-items: center;
}

.page-home .season-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--bg);
}

.page-home .season-ring__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.page-home .season-ring__big {
  font-family: var(--font-mono);
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
}

.page-home .season-ring__unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-home .season__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px 20px;
  margin: 0;
}

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

.page-home .season__facts dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 21px;
  color: var(--cyan);
}

.page-home .league-filter {
  margin-top: 28px;
}

.page-home .league-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-home .league-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.page-home .league-card {
  border: 1px solid var(--grid);
  border-radius: var(--radius-card);
  background: var(--panel);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.page-home .league-card:hover {
  border-color: rgba(40, 224, 168, 0.45);
  background: var(--raise);
}

.page-home .league-card__link {
  display: block;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}

.page-home .league-card__sport {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .league-card__name {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.page-home .league-card__meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 季票速览 ---------- */
.page-home .tickets__grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.page-home .ticket {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 20px;
  border: 1px solid var(--grid);
  border-left: 6px solid var(--amber);
  border-radius: var(--radius-ticket);
  background: var(--panel);
}

.page-home .ticket__kind {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.page-home .ticket__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.page-home .ticket__perks {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.page-home .ticket__perks li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .ticket__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--amber);
  opacity: 0.75;
}

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

.page-home .tickets__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- 更新节奏 ---------- */
.page-home .cadence__grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

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

.page-home .cadence__step {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 1px solid var(--grid);
}

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

.page-home .cadence__step::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-home .cadence__time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .cadence__step h3 {
  margin: 7px 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.page-home .cadence__step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .cadence__figure {
  margin: 0;
  transform: rotate(-1.5deg);
}

.page-home .cadence__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

/* ---------- 收束 ---------- */
.page-home .closing {
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
}

.page-home .closing__inner {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--grid);
  border-radius: var(--radius-card);
  background: linear-gradient(120deg, rgba(40, 224, 168, 0.10), rgba(77, 163, 255, 0.07) 46%, rgba(13, 20, 40, 0.9));
}

.page-home .closing__text h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.03em;
  color: var(--ink);
}

.page-home .closing__text p {
  margin: 12px 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

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

/* ---------- 桌面端栅格 ---------- */
@media (min-width: 760px) {
  .page-home .season__top {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 34px;
  }
}

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

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

@media (min-width: 900px) {
  .page-home .threads__list {
    grid-template-columns: 1.5fr 1.05fr 0.9fr;
    gap: 16px;
    align-items: start;
  }

  .page-home .cadence__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 34px;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .page-home .hero__grid {
    grid-template-columns: 62fr 38fr;
    gap: clamp(20px, 2.4vw, 34px);
    align-items: start;
  }

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

  .page-home .stat-stack > :nth-child(1) {
    margin-inline-end: 13%;
  }

  .page-home .stat-stack > :nth-child(2) {
    margin-inline-start: 8%;
  }

  .page-home .stat-stack > :nth-child(3) {
    margin-inline-end: 6%;
  }

  .page-home .stat-stack > :nth-child(4) {
    margin-inline-start: 11%;
  }
}

@media (min-width: 1080px) {
  .page-home .dash {
    grid-template-columns: var(--home-rail) minmax(0, 1fr);
    gap: clamp(28px, 3.2vw, 52px);
    align-items: start;
  }

  .page-home .dash__rail {
    position: sticky;
    top: 132px;
  }

  .page-home .rail__list {
    display: grid;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .rail__item {
    position: relative;
    border: 0;
    border-left: 1px solid var(--grid);
    border-radius: 0;
    padding: 11px 0 11px 18px;
    white-space: normal;
  }

  .page-home .rail__item::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 17px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grid);
  }

  .page-home .rail__item.is-done::before {
    background: var(--cyan);
  }

  .page-home .rail__item.is-live::before {
    background: var(--live);
    box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.16);
  }

  .page-home .rail__item.is-live {
    background: transparent;
    border-left-color: rgba(255, 90, 54, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .thread,
  .page-home .thread::before,
  .page-home .event-line__item,
  .page-home .cadence__figure {
    transition: none;
    transform: none;
  }
}
</main>
