.page-home {
  --home-gap: clamp(16px, 4vw, 40px);
  --home-grid-line: rgba(110, 139, 127, .09);
  --home-paper-ink: rgba(36, 28, 22, .78);
  padding-bottom: clamp(24px, 5vw, 56px);
}

.page-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-home figure {
  margin: 0;
}

/* ============ 首屏 ============ */
.page-home .home-hero {
  position: relative;
  padding: clamp(20px, 4vw, 48px) 0 clamp(36px, 6vw, 76px);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(125% 95% at 72% 26%, #000 0%, transparent 74%);
  mask-image: radial-gradient(125% 95% at 72% 26%, #000 0%, transparent 74%);
}

.page-home .home-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: end;
}

.page-home .home-hero__lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.page-home .home-hero .eyebrow {
  color: var(--txt-dim);
}

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

.page-home .home-hero__round-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--txt-dim);
}

.page-home .home-hero__round-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(58px, 13vw, 116px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.045em;
  color: var(--cyan);
  text-shadow: 0 0 44px rgba(79, 227, 193, .26);
}

.page-home .home-hero h1 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .home-hero .lede {
  max-width: 40ch;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--txt-body);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.page-home .home-hero__stage {
  position: relative;
  min-width: 0;
}

.page-home .home-hero__figure {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--night);
}

.page-home .home-hero__figure img {
  width: 100%;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  filter: saturate(.86) brightness(.68);
}

.page-home .home-ticker {
  position: relative;
  margin-top: -20px;
  padding: 0 12px;
}

.page-home .home-ticker .score-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-sm);
  background: rgba(12, 43, 36, .94);
  box-shadow: var(--shadow-panel);
}

.page-home .home-ticker .score-bar__round {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--cyan);
  padding-right: 12px;
  border-right: 1px solid var(--line-soft);
}

.page-home .home-ticker .score-bar__team {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .home-ticker .score-bar__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.page-home .home-ticker .score-bar__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--txt-dim);
}

/* ============ 主体分栏 ============ */
.page-home .home-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(40px, 8vw, 88px);
}

.page-home .home-main {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 76px);
  min-width: 0;
}

.page-home .home-main > .section {
  margin: 0;
}

/* ============ 常驻窄栏 ============ */
.page-home .home-rail {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, rgba(18, 58, 49, .88), rgba(12, 43, 36, .94));
  min-width: 0;
}

.page-home .home-rail .rail {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-home .home-rail .rail__title {
  margin: 18px 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-dim);
}

.page-home .home-rail .rail__title:first-child {
  margin-top: 0;
}

.page-home .home-rail__league {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page-home .home-rail__league-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .home-rail__league-sub {
  font-size: 12px;
  line-height: 1.65;
  color: var(--txt-dim);
}

.page-home .home-rail__round {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .home-rail__round-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.page-home .home-rail__round-note {
  flex: 1 1 120px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--txt-dim);
}

.page-home .home-rail .filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .home-rail .filter-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 5px 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  color: var(--txt-body);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.page-home .home-rail .filter-tag:hover,
.page-home .home-rail .filter-tag:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(79, 227, 193, .08);
}

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

.page-home .home-rail .rail__link {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: var(--txt-body);
  text-decoration: none;
  transition: color .22s ease, background .22s ease, border-color .22s ease;
}

.page-home .home-rail .rail__link:hover {
  color: var(--cyan);
}

.page-home .home-rail .rail__link.is-active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(79, 227, 193, .09);
}

.page-home .home-rail__figure {
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--night);
}

.page-home .home-rail__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.8) brightness(.8);
}

/* ============ 章节公共 ============ */
.page-home .home-section__lede {
  max-width: 62ch;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--txt-body);
}

/* ============ 三块数据卡 ============ */
.page-home .home-cards {
  margin-top: 26px;
  gap: 18px;
}

.page-home .home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 100%;
}

.page-home .home-card .tag {
  align-self: flex-start;
}

.page-home .home-card__title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--brown);
}

.page-home .home-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--home-paper-ink);
}

.page-home .home-card__link {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  transition: color .2s ease, border-color .2s ease;
}

.page-home .home-card__link:hover {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

/* ============ 多设备 ============ */
.page-home .home-device {
  margin-top: 26px;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.page-home .home-device .media-frame {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--night);
}

.page-home .home-device__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.page-home .home-device__body .prose {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--txt-body);
}

.page-home .home-device__link {
  align-self: flex-start;
}

/* ============ 赛季回溯 ============ */
.page-home .home-history__figure {
  margin-top: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--night);
}

.page-home .home-history__figure img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  filter: saturate(.8) brightness(.8);
}

.page-home .season-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .season-line__item {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.page-home .season-line__item::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 2px solid var(--sage);
}

.page-home .season-line__item.is-current::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(79, 227, 193, .75);
}

.page-home .season-line__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-home .season-line__title {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .season-line__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--txt-body);
}

.page-home .home-history__stats {
  margin-top: 30px;
}

.page-home .home-history__stats .stat {
  border-top: 2px solid var(--cyan);
}

.page-home .home-history__stats .stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.page-home .home-history__stats .stat__label {
  color: var(--txt-dim);
}

/* ============ 回访提示 ============ */
.page-home .home-back {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.page-home .home-back p {
  margin: 0;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--brown);
}

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

.page-home .home-back__note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--txt-dim);
}

.page-home .home-back__note a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

/* ============ 响应式 ============ */
@media (min-width: 720px) {
  .page-home .season-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .page-home .season-line__item {
    padding: 22px 18px 0 0;
  }

  .page-home .season-line__item + .season-line__item {
    padding-left: 18px;
  }
}

@media (min-width: 940px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(28px, 4vw, 60px);
  }

  .page-home .home-ticker {
    position: absolute;
    right: clamp(14px, 2vw, 26px);
    bottom: clamp(14px, 2vw, 26px);
    left: auto;
    width: min(78%, 580px);
    margin: 0;
    padding: 0;
  }
}

@media (min-width: 1000px) {
  .page-home .home-body {
    grid-template-columns: 284px minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(32px, 4vw, 64px);
  }

  .page-home .home-rail {
    position: sticky;
    top: 104px;
  }
}

@media (max-width: 719px) {
  .page-home .home-ticker .score-bar__meta {
    margin-left: 0;
  }

  .page-home .home-hero__round-num {
    font-size: clamp(52px, 17vw, 84px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-rail .rail__link,
  .page-home .home-rail .filter-tag,
  .page-home .home-card__link {
    transition: none;
  }
}
