.page-home {
  --home-gap: clamp(1rem, 3vw, 1.75rem);
  --home-rail: 76px;
  background: var(--ink);
  color: var(--white);
}

/* ---------- 首屏：赛前十分钟面板 ---------- */

.page-home .home-arena {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.page-home .home-arena__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-home .home-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 44%, rgba(45, 245, 208, 0.1) 44% 60%, transparent 60%),
    radial-gradient(90% 70% at 92% 4%, rgba(255, 122, 26, 0.16), transparent 62%);
}

.page-home .home-arena::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.5) 0%, rgba(11, 18, 32, 0.93) 80%);
}

.page-home .home-arena__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}

.page-home .home-arena__rail {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  padding-block: 0.35rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.page-home .home-arena__body h1 {
  margin: 0.5rem 0 1rem;
  max-width: 16ch;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 6.4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .home-context {
  margin: 0;
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .home-arena__body .lede {
  max-width: 54ch;
}

.page-home .home-arena__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.page-home .home-arena__skip {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 245, 208, 0.35);
  padding-bottom: 2px;
}

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

.page-home .home-arena__panel {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--ink-2) 0%, rgba(11, 18, 32, 0.94) 100%);
  box-shadow: var(--shadow-float);
}

.page-home .home-arena__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.page-home .home-arena__panel-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.page-home .rank-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.page-home .rank-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mist);
}

.page-home .rank-row__pos {
  font-size: 0.95rem;
  color: var(--white);
}

.page-home .home-arena__panel-foot {
  margin: 1rem 0 0;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 回访入口 ---------- */

.page-home .entry-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.page-home .entry-card__link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 245, 208, 0.35);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.page-home .entry-card__link::after {
  content: " →";
}

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

/* ---------- 横向赛程卡 ---------- */

.page-home .home-fixtures {
  position: relative;
  overflow: hidden;
  padding-block: var(--sect);
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}

.page-home .home-fixtures__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}

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

.page-home .fixture-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 78%);
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0 0 1rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.page-home .fixture-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 28, 51, 0.88);
  scroll-snap-align: start;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.page-home .fixture-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.page-home .fixture-card__time {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
}

.page-home .fixture-card__round {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mist);
}

.page-home .fixture-card__meta {
  margin: auto 0 0;
  padding-top: 0.6rem;
  font-size: 0.74rem;
  color: var(--mist);
  transition: color 0.25s ease;
}

@media (hover: hover) {
  .page-home .fixture-card:hover {
    border-color: rgba(45, 245, 208, 0.5);
    transform: translateY(-3px);
  }

  .page-home .fixture-card:hover .fixture-card__meta {
    color: var(--cyan);
  }
}

/* ---------- 版本栏与 V3 ---------- */

.page-home .home-version__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.page-home .home-version__frame {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.page-home .home-version__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .version-list {
  display: grid;
  gap: 0;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .version-list__item {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}

.page-home .version-list__tag {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-home .version-list__text {
  color: var(--mist);
}

/* ---------- 赛后统计 ---------- */

.page-home .home-stats__grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}

.page-home .home-stats__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.page-home .stat-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .stat-topics li {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17, 28, 51, 0.6);
  font-size: 0.86rem;
  color: var(--mist);
}

.page-home .stat-topics li:nth-child(4n + 1) {
  border-left: 2px solid var(--cyan);
}

.page-home .stat-topics li:nth-child(4n + 3) {
  border-left: 2px solid var(--amber);
}

/* ---------- 刷新节奏 ---------- */

.page-home .home-refresh__grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}

.page-home .refresh-stats {
  display: grid;
  gap: 0.75rem;
}

.page-home .refresh-stat {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(45, 245, 208, 0.08), transparent 72%);
}

.page-home .refresh-stat__num {
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}

.page-home .refresh-stat__label {
  font-size: 0.88rem;
  color: var(--mist);
}

.page-home .refresh-stat--gain {
  background: linear-gradient(120deg, rgba(255, 122, 26, 0.1), transparent 72%);
}

.page-home .refresh-stat--gain .refresh-stat__num {
  color: var(--amber);
}

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

.page-home .home-refresh__figure .media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.page-home .home-refresh__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 时间线 ---------- */

.page-home .timeline {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.page-home .timeline__row {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.page-home .timeline__year {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .timeline__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--mist);
}

.page-home .timeline__row--mark::before {
  content: "";
  position: absolute;
  left: -0.9rem;
  top: 1.05rem;
  bottom: 1.05rem;
  width: 3px;
  border-radius: var(--pill);
  background: var(--amber);
}

.page-home .timeline__row--mark .timeline__year {
  color: var(--amber);
}

.page-home .home-timeline__foot {
  margin-top: 1.8rem;
}

/* ---------- 收尾 ---------- */

.page-home .home-cta {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--ink-2), var(--ink));
}

.page-home .home-cta__body .eyebrow {
  margin-bottom: 0.5rem;
}

.page-home .home-cta__text {
  margin: 0.8rem 0 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .page-home .fixture-rail {
    grid-auto-columns: minmax(240px, 300px);
  }

  .page-home .version-list__item {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
  }

  .page-home .timeline__row {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .page-home .home-arena__grid {
    grid-template-columns: var(--home-rail) minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
  }

  .page-home .home-arena__rail {
    flex-direction: column;
    justify-content: space-between;
    min-height: clamp(280px, 34vh, 380px);
    padding: 0.25rem 0 0.25rem 1rem;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .page-home .home-stats__grid,
  .page-home .home-refresh__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .page-home .home-version__grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    align-items: center;
  }
}

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

  .page-home .home-cta__actions {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .fixture-card,
  .page-home .fixture-card__meta,
  .page-home .entry-card__link {
    transition: none;
  }

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