.page-home {
  --home-gap: clamp(0.85rem, 1.9vw, 1.4rem);
  display: block;
  background: var(--night-900);
  color: var(--warm-100);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--warm-100);
}

.page-home p {
  margin: 0;
}

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

.page-home .section-head {
  margin-bottom: clamp(1.3rem, 3.2vw, 2.2rem);
}

.page-home .section-head__note {
  max-width: 46ch;
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 2.6vw, 1.6rem) 0 clamp(2.4rem, 6vw, 4.6rem);
  border-bottom: var(--stroke) solid var(--line-600);
  background:
    radial-gradient(120% 90% at 84% 0%, rgba(55, 245, 212, 0.15), transparent 58%),
    radial-gradient(85% 70% at 6% 100%, rgba(255, 122, 26, 0.11), transparent 62%),
    var(--night-950);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(43, 61, 92, 0.4) 1px, transparent 1px);
  background-size: 25% 100%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
}

.page-home .home-ticker {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.8rem;
  margin-bottom: clamp(1.2rem, 3vw, 2.2rem);
  padding-bottom: 0.7rem;
  border-bottom: var(--stroke) solid var(--line-600);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--steel-300);
}

.page-home .home-ticker__brand {
  color: var(--warm-100);
  letter-spacing: 0.12em;
}

.page-home .home-ticker__text {
  color: var(--cyan-400);
}

.page-home .home-ticker__clock {
  margin-left: auto;
  color: var(--orange-300);
  font-variant-numeric: tabular-nums;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-hero__lead {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2.2vw, 1.3rem);
  min-width: 0;
}

.page-home .home-hero__lead h1 {
  font-size: clamp(2.6rem, 11.5vw, 5.8rem);
  text-wrap: balance;
  letter-spacing: -0.03em;
}

.page-home .home-hero__lede {
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.75;
  color: var(--steel-300);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-home .home-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: clamp(0.8rem, 2vw, 1.1rem) 0 0;
  list-style: none;
  border-top: var(--stroke) solid var(--line-600);
}

.page-home .home-figures__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.page-home .home-figures__num {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 4.6vw, 1.95rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan-400);
}

.page-home .home-figures__label {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--steel-300);
}

.page-home .home-hero__panel {
  margin: 0;
  padding: 0.45rem;
  border: var(--stroke) solid var(--line-600);
  background: var(--panel-800);
  box-shadow: var(--shadow-hard);
}

.page-home .home-hero__panel .media__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 10% 100%, 0 82%);
}

.page-home .home-hero__caption {
  display: block;
  padding: 0.55rem 0.25rem 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  line-height: 1.6;
  color: var(--steel-300);
}

.page-home .home-hero__rail {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: clamp(0.9rem, 2.2vw, 1.15rem);
  border: var(--stroke) solid var(--line-600);
  border-top: 4px solid var(--cyan-700);
  background: var(--night-900);
}

.page-home .hero-rail__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--steel-300);
}

.page-home .hero-rail__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hero-rail__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--line-600);
}

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

.page-home .hero-rail__key {
  font-size: 0.83rem;
  color: var(--warm-100);
}

.page-home .hero-rail__val {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  color: var(--cyan-400);
}

.page-home .hero-rail__foot {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--steel-300);
}

/* ---------- 时间轨道 ---------- */
.page-home .home-timeline-section {
  padding: clamp(2.4rem, 6vw, 4.4rem) 0;
  border-bottom: var(--stroke) solid var(--line-600);
  background: var(--night-900);
  scroll-margin-top: var(--header-offset);
}

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

.page-home .rail-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .rail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(0.9rem, 2vw, 1.3rem);
}

.page-home .rail-label {
  padding: 0.55rem 0.95rem;
  border: var(--stroke) solid var(--line-600);
  background: var(--panel-800);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--steel-300);
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
    background 0.18s var(--ease), color 0.18s var(--ease);
}

.page-home .rail-label:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-700);
  color: var(--warm-100);
}

.page-home #rail-today:checked ~ .rail-labels .rail-label[for="rail-today"],
.page-home #rail-tomorrow:checked ~ .rail-labels .rail-label[for="rail-tomorrow"],
.page-home #rail-weekend:checked ~ .rail-labels .rail-label[for="rail-weekend"] {
  border-color: var(--cyan-400);
  background: var(--cyan-400);
  color: var(--night-950);
}

.page-home #rail-today:focus-visible ~ .rail-labels .rail-label[for="rail-today"],
.page-home #rail-tomorrow:focus-visible ~ .rail-labels .rail-label[for="rail-tomorrow"],
.page-home #rail-weekend:focus-visible ~ .rail-labels .rail-label[for="rail-weekend"] {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
}

.page-home .rail-panel {
  display: none;
  min-width: 0;
}

.page-home #rail-today:checked ~ .rail-panels .rail-panel--today,
.page-home #rail-tomorrow:checked ~ .rail-panels .rail-panel--tomorrow,
.page-home #rail-weekend:checked ~ .rail-panels .rail-panel--weekend {
  display: block;
}

.page-home .rail-scale {
  display: block;
  width: 100%;
  height: 26px;
  margin-bottom: 0.6rem;
}

.page-home .rail-scale line {
  stroke: var(--line-600);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.page-home .rail-scale .rail-scale__live {
  stroke: var(--cyan-400);
}

.page-home .rail-track {
  display: flex;
  gap: var(--home-gap);
  margin: 0;
  padding: 0 0 0.9rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.page-home .match {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 0 0 clamp(13rem, 68vw, 16.5rem);
  scroll-snap-align: start;
  padding: 0.9rem 1rem 1rem;
  border: var(--stroke) solid var(--line-600);
  border-top: 4px solid var(--line-600);
  background: var(--panel-800);
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .match:hover {
  transform: translate(-2px, -2px);
  border-color: var(--cyan-700);
  border-top-color: var(--cyan-400);
}

.page-home .match__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-home .match__time {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--warm-100);
}

.page-home .match .tag {
  flex: none;
  font-size: 0.68rem;
}

.page-home .match__type {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--warm-100);
}

.page-home .match__note {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--steel-300);
}

.page-home .home-timeline__media {
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 0;
  border: var(--stroke) solid var(--line-600);
  background: var(--panel-800);
  padding: 0.45rem;
}

.page-home .home-timeline__media .media__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.page-home .home-timeline__media .media__caption {
  display: block;
  padding: 0.55rem 0.25rem 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  line-height: 1.6;
  color: var(--steel-300);
}

/* ---------- 入口矩阵 ---------- */
.page-home .home-paths {
  padding: clamp(2.4rem, 6vw, 4.4rem) 0;
  border-bottom: var(--stroke) solid var(--line-600);
  background: var(--night-950);
}

.page-home .paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .path {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: var(--stroke) solid var(--line-600);
  background: var(--night-900);
  color: var(--warm-100);
  text-decoration: none;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.page-home .path:hover,
.page-home .path:focus-visible {
  transform: translate(-3px, -3px);
  border-color: var(--cyan-400);
  background: var(--panel-800);
}

.page-home .path--wide {
  border-left: 6px solid var(--orange-500);
}

.page-home .path--tall {
  border-bottom: 6px solid var(--cyan-700);
}

.page-home .path__figure {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line-600);
}

.page-home .path__kicker {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  color: var(--orange-300);
}

.page-home .path__title {
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.page-home .path__desc {
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--steel-300);
}

.page-home .path__go {
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--cyan-400);
}

/* ---------- 周末归档 ---------- */
.page-home .home-weekend {
  padding: clamp(2.4rem, 6vw, 4.4rem) 0;
  border-bottom: var(--stroke) solid var(--line-600);
  background: var(--night-900);
}

.page-home .weekend {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 4vw, 2.6rem);
}

.page-home .weekend__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.page-home .weekend__body h2 {
  font-size: clamp(1.6rem, 5.4vw, 2.5rem);
  max-width: 20ch;
}

.page-home .weekend__lede {
  max-width: 44ch;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--steel-300);
}

.page-home .weekend-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .weekend-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line-600);
}

.page-home .weekend-list li:last-child {
  border-bottom: 1px solid var(--line-600);
}

.page-home .weekend-list__key {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
}

.page-home .weekend-list__val {
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--steel-300);
}

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

.page-home .weekend__media {
  margin: 0;
  align-self: start;
  padding: 0.45rem;
  border: var(--stroke) solid var(--line-600);
  background: var(--panel-800);
  box-shadow: var(--shadow-hard);
}

.page-home .weekend__media .media__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .weekend__media .media__caption {
  display: block;
  padding: 0.55rem 0.25rem 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  line-height: 1.6;
  color: var(--steel-300);
}

/* ---------- 运行状态 ---------- */
.page-home .home-ops {
  padding: clamp(2.4rem, 6vw, 4.4rem) 0;
  border-bottom: var(--stroke) solid var(--line-600);
  background:
    linear-gradient(180deg, rgba(13, 27, 51, 0.55), transparent 55%),
    var(--night-950);
}

.page-home .ops {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
}

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

.page-home .ops-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-600);
}

.page-home .ops-item:last-child {
  border-bottom: 1px solid var(--line-600);
}

.page-home .ops-item__key {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
}

.page-home .ops-item__val {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--warm-100);
}

.page-home .ops-side {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.page-home .ops-card {
  padding: 0.95rem 1rem;
  border: var(--stroke) solid var(--line-600);
  border-left: 4px solid var(--orange-500);
  background: var(--panel-800);
}

.page-home .ops-card__title {
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--orange-300);
}

.page-home .ops-card__text {
  font-size: 0.84rem;
  line-height: 1.68;
  color: var(--steel-300);
}

/* ---------- 第一次来 ---------- */
.page-home .home-start {
  padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(2.6rem, 6vw, 4.4rem);
  background: var(--night-900);
}

.page-home .start-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .start-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem;
  border: var(--stroke) solid var(--line-600);
  border-left: 5px solid var(--line-600);
  background: var(--panel-800);
}

.page-home .start-item--primary {
  border-left-color: var(--orange-500);
}

.page-home .start-item__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
}

.page-home .start-item__title {
  font-size: 1.05rem;
  line-height: 1.3;
}

.page-home .start-item__desc {
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--steel-300);
}

.page-home .start-item .btn {
  margin-top: auto;
}

.page-home .home-start__foot {
  margin-top: clamp(1.3rem, 3vw, 1.9rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line-600);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--steel-300);
}

.page-home .home-start__foot a {
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-700);
}

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

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .ops-item {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
  }

  .page-home .weekend-list li {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
  }
}

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

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

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "lead panel"
      "lead rail";
    align-items: start;
  }

  .page-home .home-hero__lead {
    grid-area: lead;
    padding-right: clamp(0.5rem, 2vw, 1.5rem);
  }

  .page-home .home-hero__panel {
    grid-area: panel;
  }

  .page-home .home-hero__rail {
    grid-area: rail;
  }

  .page-home .home-figures {
    margin-top: auto;
  }

  .page-home .weekend {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .ops {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-home .paths {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .page-home .path--wide {
    grid-column: span 2;
  }

  .page-home .path--tall {
    grid-row: span 2;
  }

  .page-home .match {
    flex-basis: 17rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .rail-label,
  .page-home .match,
  .page-home .path {
    transition: none;
  }

  .page-home .rail-label:hover,
  .page-home .match:hover,
  .page-home .path:hover,
  .page-home .path:focus-visible {
    transform: none;
  }
}
