.page-home {
  --home-band: clamp(44px, 6vw, 88px);
  --home-ring: 0 0 0 2px rgba(34, 227, 255, 0.45);
  display: block;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-home .home-wrap {
  width: 100%;
  max-width: calc(var(--shell) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
  box-sizing: border-box;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding-block: clamp(20px, 3vw, 34px) clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  opacity: 0.42;
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--ink) 0%,
    rgba(6, 10, 18, 0.9) 34%,
    rgba(6, 10, 18, 0.42) 70%,
    var(--ink) 100%
  );
}

.page-home .hero-inner {
  position: relative;
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
  margin-top: clamp(20px, 3vw, 36px);
  align-items: start;
}

.page-home .hero-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}

.page-home .hero-title {
  margin: 14px 0 0;
  font-size: clamp(29px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 18ch;
}

.page-home .hero-lede {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* 悬浮记分牌 */
.page-home .hero-board {
  position: relative;
}

.page-home .hero-board::before {
  content: "";
  position: absolute;
  inset: 12px -10px -12px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  opacity: 0.5;
  z-index: 0;
}

.page-home .board-panel {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}

.page-home .board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-home .board-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--paper);
  padding: 3px 8px;
}

.page-home .board-time {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.page-home .board-img {
  margin-top: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.page-home .board-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 8 / 5;
}

.page-home .board-rows {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.page-home .board-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.page-home .board-row-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .board-row-value {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.page-home .board-score {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
}

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

/* ---------- 赛程带 ---------- */
.page-home .schedule {
  margin-top: var(--home-band);
}

.page-home .schedule-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .schedule-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .schedule-title .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  flex: none;
}

.page-home .schedule-desc {
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .timeline {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
  border-top: 1px solid var(--line);
}

.page-home .timeline-track {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 10px;
  min-width: 100%;
}

.page-home .tl-item {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.page-home .tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--line);
}

.page-home .tl-item.is-done::before {
  background: var(--muted);
}

.page-home .tl-item.is-live::before {
  background: var(--green);
}

.page-home .tl-item.is-soon::before {
  background: var(--orange);
}

.page-home .tl-item:hover,
.page-home .tl-item:focus-within {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.page-home .tl-time {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.page-home .tl-item.is-soon .tl-time {
  color: var(--orange);
}

.page-home .tl-league {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .tl-score {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .tl-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 通用章节头 ---------- */
.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.page-home .section-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(21px, 3.2vw, 32px);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.01em;
}

.page-home .section-title .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  flex: none;
}

.page-home .section-desc {
  margin: 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 联赛路径 ---------- */
.page-home .leagues {
  padding-block: var(--home-band);
  border-bottom: 1px solid var(--line);
}

.page-home .league-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .region-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  flex: none;
}

.page-home .seg {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 9px 14px;
  cursor: pointer;
  transition: opacity 0.12s ease, color 0.12s ease;
}

.page-home .seg:last-child {
  border-right: 0;
}

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

.page-home .seg[aria-pressed="true"] {
  background: rgba(34, 227, 255, 0.14);
  color: var(--cyan);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.page-home .league-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.page-home .chip:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.page-home .chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.page-home .league-map {
  margin: clamp(20px, 3vw, 32px) 0 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .league-map img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 12 / 5;
}

.page-home .league-map .media-caption {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .league-groups {
  margin-top: clamp(24px, 4vw, 42px);
  display: grid;
  gap: clamp(26px, 4vw, 44px);
}

.page-home .league-group {
  display: grid;
  gap: 14px;
}

.page-home .group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.page-home .group-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.page-home .group-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--violet);
}

.page-home .group-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
}

.page-home .group-cards > *:nth-child(2n) {
  margin-top: 16px;
}

.page-home .league-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}

.page-home .league-card:hover,
.page-home .league-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cyan);
  outline: none;
  box-shadow: var(--home-ring);
}

.page-home .league-card[hidden] {
  display: none;
}

.page-home .lc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .lc-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-home .lc-next {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.page-home .lc-next-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .lc-next-time {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
}

.page-home .lc-go {
  font-size: 13px;
  color: var(--cyan);
}

/* ---------- 本月改版 ---------- */
.page-home .refresh {
  padding-block: var(--home-band);
  border-bottom: 1px solid var(--line);
}

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

.page-home .refresh-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

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

.page-home .refresh-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--paper);
  padding: 4px 9px;
  min-width: 32px;
  text-align: center;
}

.page-home .refresh-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-home .refresh-text {
  margin: 8px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 访问动线 ---------- */
.page-home .flow {
  padding-block: var(--home-band);
  border-bottom: 1px solid var(--line);
}

.page-home .flow-body {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
}

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

.page-home .flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .flow-step:first-child {
  border-top: 1px dashed var(--line);
}

.page-home .step-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid var(--line);
  padding: 4px 8px;
  height: fit-content;
  white-space: nowrap;
}

.page-home .step-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.page-home .step-text {
  margin: 8px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .flow-media {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

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

.page-home .flow-media .media-caption {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .shortcuts-block {
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-home .shortcuts-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

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

.page-home .shortcut {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.page-home .shortcut:hover,
.page-home .shortcut:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cyan);
  outline: none;
  box-shadow: var(--home-ring);
}

.page-home .shortcut-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.page-home .shortcut-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .shortcuts-note {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 服务与反馈 ---------- */
.page-home .help {
  padding-block: var(--home-band) clamp(48px, 7vw, 96px);
}

.page-home .help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.page-home .help-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  background: var(--panel);
}

.page-home .help-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.page-home .help-card-text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  word-break: break-word;
}

.page-home .home-source {
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .page-home .timeline-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .flow-step {
    padding: 22px 0;
  }
}

@media (min-width: 1000px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr);
  }

  .page-home .hero-board {
    transform: rotate(-1.6deg);
    margin-top: 10px;
  }

  .page-home .flow-body {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    align-items: start;
  }

  .page-home .league-group:nth-child(2) {
    margin-left: 24px;
  }

  .page-home .league-group:nth-child(3) {
    margin-left: 48px;
  }
}

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

@media (min-width: 1460px) {
  .page-home {
    padding-left: var(--rail-w);
  }
}

@media (max-width: 420px) {
  .page-home .hero-title {
    max-width: none;
  }

  .page-home .region-switch {
    width: 100%;
    flex-wrap: wrap;
  }

  .page-home .seg {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--line);
  }

  .page-home .group-cards > *:nth-child(2n) {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .tl-item,
  .page-home .league-card,
  .page-home .shortcut,
  .page-home .chip,
  .page-home .seg {
    transition-duration: 0.001ms;
  }

  .page-home .tl-item:hover,
  .page-home .league-card:hover,
  .page-home .shortcut:hover {
    transform: none;
  }
}
