.page-home {
  display: block;
}

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

.page-home .hero {
  padding-top: clamp(20px, 3vw, 40px);
}

.page-home .hero-context {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 2.6vw, 30px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .hero-context-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(53, 224, 138, 0.16);
}

.page-home .hero-head {
  max-width: 880px;
}

.page-home .hero-head h1 {
  margin: 0 0 clamp(16px, 2.2vw, 24px);
  font-size: clamp(32px, 6.2vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
}

.page-home .hero-lead {
  margin: 0 0 clamp(22px, 3vw, 32px);
  max-width: 44ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: var(--muted);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(38px, 5.5vw, 68px);
}

/* ---------- 首屏分栏：38% 轨道 + 62% 卡片流 ---------- */

.page-home .hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

@media (min-width: 960px) {
  .page-home .hero-split {
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    align-items: start;
    gap: clamp(30px, 3.6vw, 52px);
  }
}

/* ---------- 联赛筛选轨道 ---------- */

.page-home .rail {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(7, 12, 26, 0.72) 100%);
  box-shadow: var(--shadow-panel);
}

.page-home .rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--green) 45%, transparent 100%);
  transform: translateY(-100%);
  animation: rail-pulse 4.2s linear infinite;
  pointer-events: none;
}

@keyframes rail-pulse {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

.page-home .rail-head {
  margin-bottom: 18px;
}

.page-home .rail-note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .tablist {
  display: flex;
  gap: 5px;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(7, 12, 26, 0.72);
}

.page-home .tab {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  border: 0;
  padding: 10px 8px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}

.page-home .tab:hover {
  color: var(--text);
}

.page-home .tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-soft) 100%);
  color: #fff5ee;
  box-shadow: var(--shadow-orange);
}

.page-home .tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.page-home .tabpanel {
  margin-top: 14px;
}

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

.page-home .rail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: rgba(22, 34, 74, 0.42);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.page-home .rail-list li:hover {
  background: var(--panel-up);
  border-color: var(--line);
  transform: translateX(4px);
}

.page-home .rail-key {
  font-size: 13px;
  color: var(--muted);
}

.page-home .rail-val {
  font-size: 13px;
  color: var(--text);
}

.page-home .rail-more {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px dashed rgba(77, 163, 255, 0.45);
  transition: color 200ms ease, border-color 200ms ease;
}

.page-home .rail-more:hover {
  color: var(--orange-soft);
  border-color: rgba(255, 154, 61, 0.55);
}

/* ---------- 右侧卡片流 ---------- */

.page-home .hero-media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

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

.page-home .tonight {
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .tonight-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.page-home .tonight-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-up) 0%, var(--panel) 100%);
  transition: transform 260ms ease, border-color 260ms ease;
}

.page-home .tonight-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent 72%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.page-home .tonight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 31, 0.42);
}

.page-home .tonight-card:hover::before {
  opacity: 1;
}

.page-home .tonight-time {
  display: block;
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-home .tonight-card:hover .tonight-time {
  color: var(--orange-soft);
  animation: score-pop 320ms ease;
}

@keyframes score-pop {
  0% { transform: translateY(0); }
  45% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.page-home .tonight-desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 章节公共头 ---------- */

.page-home .section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-home .section-head h2,
.page-home .pre-copy h2,
.page-home .evening h2 {
  margin: 14px 0 16px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-home .section-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 多联赛同屏 ---------- */

.page-home .switch-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
}

@media (min-width: 900px) {
  .page-home .switch-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
  }
}

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

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

.page-home .switch-notes {
  display: grid;
  gap: 16px;
}

.page-home .switch-note {
  padding: 22px 24px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: background 260ms ease, transform 260ms ease, border-color 260ms ease;
}

.page-home .switch-note:hover {
  background: var(--panel-up);
  border-color: rgba(53, 224, 138, 0.32);
  transform: translateY(-3px);
}

.page-home .switch-note-idx {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-home .switch-note h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-home .switch-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.76;
  color: var(--muted);
}

.page-home .switch-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px dashed rgba(77, 163, 255, 0.45);
  padding-bottom: 2px;
  transition: color 200ms ease;
}

.page-home .switch-link:hover {
  color: var(--orange-soft);
}

/* ---------- 赛前十分钟 ---------- */

.page-home .pre-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.6vw, 52px);
}

@media (min-width: 900px) {
  .page-home .pre-split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }
}

.page-home .pre-copy {
  max-width: 640px;
}

.page-home .pre-lead {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .pre-copy .bullets {
  margin: 0 0 20px;
}

.page-home .pre-copy .bullets li {
  font-size: 15px;
  line-height: 1.76;
  color: var(--muted);
}

.page-home .pre-copy .bullets li strong {
  color: var(--text);
  font-weight: 700;
}

.page-home .pre-foot {
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid rgba(255, 106, 31, 0.5);
  font-size: 14px;
  line-height: 1.74;
  color: var(--muted);
}

.page-home .pre-media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

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

/* ---------- 旧版下载时间线 ---------- */

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

.page-home .timeline-step {
  position: relative;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.page-home .timeline-step::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--orange);
}

.page-home .timeline-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--green);
}

.page-home .timeline-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.page-home .timeline-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.74;
  color: var(--muted);
}

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

  .page-home .timeline-step {
    padding: 34px 26px 0 0;
    border-left: 0;
  }

  .page-home .timeline-step::before {
    left: 0;
    top: 5px;
  }

  .page-home .timeline-step::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 11px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--line), rgba(42, 53, 96, 0.08));
  }
}

.page-home .legacy-foot {
  margin: clamp(28px, 4vw, 44px) 0 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .legacy-foot a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px dashed rgba(77, 163, 255, 0.45);
  transition: color 200ms ease, border-color 200ms ease;
}

.page-home .legacy-foot a:hover {
  color: var(--orange-soft);
  border-color: rgba(255, 154, 61, 0.55);
}

/* ---------- 下班时间轴 ---------- */

.page-home .evening .narrow {
  margin-inline: auto;
}

.page-home .clock {
  list-style: none;
  margin: clamp(26px, 4vw, 44px) 0 0;
  padding: 0;
}

.page-home .clock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.page-home .clock-row:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .page-home .clock-row {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 30px;
    align-items: baseline;
    padding: 26px 0;
  }
}

.page-home .clock-time {
  display: block;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color 220ms ease;
}

.page-home .clock-row:hover .clock-time {
  color: var(--orange);
}

.page-home .clock-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.76;
  color: var(--muted);
}

.page-home .clock-text strong {
  color: var(--text);
  font-weight: 700;
}

.page-home .evening-media {
  margin: clamp(34px, 5vw, 60px) 0 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}

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

/* ---------- 收尾入口 ---------- */

.page-home .outro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

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

.page-home .outro-card {
  display: block;
  padding: 24px 24px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform 260ms ease, background 260ms ease, border-color 260ms ease;
}

.page-home .outro-card:hover {
  transform: translateY(-4px);
  background: var(--panel-up);
  border-color: rgba(255, 106, 31, 0.42);
}

.page-home .outro-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.page-home .outro-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .outro-card span {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green);
}

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .rail::after,
  .page-home .tonight-card:hover .tonight-time {
    animation: none;
  }

  .page-home .rail-list li,
  .page-home .tonight-card,
  .page-home .switch-note,
  .page-home .outro-card,
  .page-home .clock-time {
    transition: none;
  }

  .page-home .tonight-card:hover,
  .page-home .switch-note:hover,
  .page-home .outro-card:hover,
  .page-home .rail-list li:hover {
    transform: none;
  }
}
