.page-home {
  --home-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  --home-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.22);
  --home-gold-grad: linear-gradient(135deg, #FFD700 0%, #F4A261 100%);
}

.page-home.site-main {
  background: linear-gradient(155deg, #0F1C2E 0%, #1D3557 34%, #1A3048 64%, #121212 100%);
}

.page-home section[id] {
  scroll-margin-top: calc(var(--header-mobile-h) + 14px);
}

/* 面包屑在首页自然融入内容 */
.page-home .breadcrumbs {
  margin-bottom: 28px;
}

/* ===== 首屏拼贴 ===== */
.page-home .home-hero {
  display: grid;
  gap: 20px;
}

.page-home .hero-main {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 480px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--home-shadow);
  isolation: isolate;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.08) 0%, rgba(15, 28, 46, 0.76) 52%, rgba(15, 28, 46, 0.94) 100%);
}

.page-home .hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin: 14px 0 14px;
  max-width: 20em;
}

.page-home .hero-lead {
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: 22px;
}

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

.page-home .hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(241, 250, 238, 0.16);
}

.page-home .hero-index a {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-home .hero-index a:hover {
  color: var(--color-fluo);
}

.page-home .hero-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .hero-stack-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

.page-home .hero-stack-head .brand-name {
  font-family: var(--font-head);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-home .hero-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
}

.page-home .hero-card {
  position: relative;
  padding: 20px 16px;
  border-radius: 4px;
  box-shadow: var(--home-shadow-soft);
}

.page-home .hero-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  border-style: solid;
  border-width: 0 0 18px 18px;
  border-color: transparent transparent rgba(15, 28, 46, 0.28) transparent;
}

.page-home .hero-card-red {
  background: var(--color-red);
}

.page-home .hero-card-red .stat-number,
.page-home .hero-card-red .stat-label {
  color: #fff;
}

.page-home .hero-card-fluo {
  background: var(--color-fluo);
}

.page-home .hero-card-fluo .stat-number,
.page-home .hero-card-fluo .stat-label {
  color: var(--color-charcoal);
}

.page-home .hero-card-orange {
  background: var(--color-orange);
}

.page-home .hero-card-orange .stat-number,
.page-home .hero-card-orange .stat-label {
  color: var(--color-charcoal);
}

.page-home .hero-card-gold {
  background: var(--home-gold-grad);
}

.page-home .hero-card-gold .stat-number,
.page-home .hero-card-gold .stat-label {
  color: var(--color-charcoal);
}

.page-home .hero-card .stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 0.96;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.page-home .hero-card .stat-label {
  font-size: 0.84rem;
  opacity: 0.9;
}

/* ===== 章节头部 ===== */
.page-home .section-head-text {
  flex: 1;
  min-width: 0;
}

.page-home .section-head-text .section-title {
  margin-bottom: 6px;
}

.page-home .section-head-text .section-subtitle {
  margin: 0;
}

/* ===== 01 赛事适配清单 ===== */
.page-home .adapter-wrap {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-home .adapter-panel {
  padding: 0;
}

.page-home .league-filter {
  position: relative;
}

.page-home .league-filter > input[type="radio"],
.page-home .day-switch > input[type="radio"],
.page-home .stats-switch > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page-home .league-filter > input:focus-visible ~ .league-filter-labels {
  box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.35);
  border-radius: 2px;
}

.page-home .league-filter-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 16px 0;
}

.page-home .league-filter-labels label,
.page-home .day-switch-labels label,
.page-home .stats-switch-labels label {
  font-family: var(--font-head);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--line-dark);
  padding: 7px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .league-filter-labels label:hover,
.page-home .day-switch-labels label:hover,
.page-home .stats-switch-labels label:hover {
  border-color: var(--color-orange);
  color: var(--text-heading);
}

.page-home .league-filter #league-all:checked ~ .league-filter-labels label[for="league-all"],
.page-home .league-filter #league-eu:checked ~ .league-filter-labels label[for="league-eu"],
.page-home .league-filter #league-as:checked ~ .league-filter-labels label[for="league-as"] {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

.page-home .league-filter #league-eu:checked ~ .league-table li[data-region="as"] {
  display: none;
}

.page-home .league-filter #league-as:checked ~ .league-table li[data-region="eu"] {
  display: none;
}

.page-home .league-table {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
}

.page-home .league-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
}

.page-home .league-row:last-child {
  border-bottom: 0;
}

.page-home .league-name {
  flex-basis: 100%;
  font-family: var(--font-head);
  font-size: 1.12rem;
  line-height: 1.1;
  color: var(--text-heading);
}

.page-home .league-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.page-home .league-version {
  font-size: 0.88rem;
  color: var(--text-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-home .league-row .tag {
  margin-left: auto;
}

.page-home .adapter-figure img,
.page-home .injury-figure img,
.page-home .stats-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: var(--home-shadow-soft);
}

.page-home .adapter-figure .media-figcap,
.page-home .injury-figure .media-figcap,
.page-home .stats-figure .media-figcap {
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 0.84rem;
}

.page-home .adapter-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 78ch;
}

.page-home .adapter-note a {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .adapter-note .tag {
  margin-right: 2px;
}

/* ===== 02 伤停信息面板 ===== */
.page-home .injury-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.page-home .injury-panel {
  padding: 0;
}

.page-home .data-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
}

.page-home .panel-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.page-home .day-switch {
  position: relative;
  padding: 4px 18px 18px;
}

.page-home .day-switch-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.page-home .day-switch #day-1:checked ~ .day-switch-labels label[for="day-1"],
.page-home .day-switch #day-2:checked ~ .day-switch-labels label[for="day-2"],
.page-home .day-switch #day-3:checked ~ .day-switch-labels label[for="day-3"] {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-charcoal);
}

.page-home .day-switch #day-1:checked ~ .injury-table li[data-day="2"],
.page-home .day-switch #day-1:checked ~ .injury-table li[data-day="3"] {
  display: none;
}

.page-home .day-switch #day-2:checked ~ .injury-table li[data-day="1"],
.page-home .day-switch #day-2:checked ~ .injury-table li[data-day="3"] {
  display: none;
}

.page-home .day-switch #day-3:checked ~ .injury-table li[data-day="1"],
.page-home .day-switch #day-3:checked ~ .injury-table li[data-day="2"] {
  display: none;
}

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

.page-home .injury-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-dark);
}

.page-home .injury-row:last-child {
  border-bottom: 0;
}

.page-home .player-pos {
  font-family: var(--font-head);
  font-size: 0.94rem;
  min-width: 104px;
  color: var(--text-heading);
}

.page-home .player-team {
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 56px;
}

.page-home .injury-row .tag {
  margin-left: auto;
}

/* ===== 03 红黄牌与射手榜 ===== */
.page-home .stats-switch-wrap {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-home .stats-switch {
  padding: 0;
}

.page-home .stats-switch-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px 0;
}

.page-home .stats-switch #view-cards:checked ~ .stats-switch-labels label[for="view-cards"],
.page-home .stats-switch #view-scorers:checked ~ .stats-switch-labels label[for="view-scorers"] {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

.page-home .stats-switch #view-cards:checked ~ .scorers-view {
  display: none;
}

.page-home .stats-switch #view-scorers:checked ~ .cards-view {
  display: none;
}

.page-home .stats-view {
  overflow-x: auto;
  padding: 0 18px 18px;
}

.page-home .stats-view table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.page-home .stats-view th {
  font-family: var(--font-head);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-dark);
}

.page-home .stats-view td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(241, 250, 238, 0.06);
  color: var(--text-body);
  font-variant-numeric: tabular-nums;
}

.page-home .stats-view tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .stats-view td.num {
  color: var(--color-fluo);
  font-weight: 700;
}

/* ===== 04 每轮五场节奏 ===== */
.page-home .home-rhythm .section-title {
  color: var(--text-dark);
}

.page-home .home-rhythm .section-subtitle {
  color: var(--text-dark-muted);
}

.page-home .home-rhythm .chapter-no {
  color: var(--color-red);
}

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

.page-home .rhythm-card {
  position: relative;
  padding: 22px 18px 20px 58px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(29, 53, 87, 0.08);
}

.page-home .rhythm-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-red);
  border-radius: 2px 0 0 2px;
}

.page-home .rhythm-num {
  position: absolute;
  left: 16px;
  top: 20px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-red);
}

.page-home .rhythm-title {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.page-home .rhythm-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-dark-muted);
  margin: 0;
}

.page-home .rhythm-note {
  margin-top: 22px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark-muted);
  max-width: 74ch;
}

/* ===== 05 最新赛场动态 ===== */
.page-home .news-grid {
  display: grid;
  gap: 16px;
}

.page-home .news-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-panel);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--color-orange);
  border-radius: 4px;
  padding: 20px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .news-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--color-fluo);
  background: rgba(241, 250, 238, 0.08);
}

.page-home .news-card .tag {
  margin-bottom: 12px;
}

.page-home .news-title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  line-height: 1.24;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.page-home .news-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.page-home .news-link {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fluo);
  text-decoration: none;
  margin-top: auto;
}

.page-home .news-link::after {
  content: " →";
  transition: margin-left var(--dur) var(--ease);
}

.page-home .news-link:hover::after {
  margin-left: 4px;
}

/* ===== 联动层 ===== */
.page-home .injury-figure,
.page-home .stats-figure {
  margin: 0;
}

/* ===== 桌面端布局 ===== */
@media (min-width: 720px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: stretch;
  }

  .page-home .hero-main {
    min-height: 560px;
  }

  .page-home .hero-content {
    padding: 40px 32px;
  }

  .page-home .hero-stack-grid {
    gap: 16px;
  }

  .page-home .adapter-wrap {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .page-home .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .league-name {
    flex-basis: auto;
    min-width: 64px;
  }

  .page-home .rhythm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page-home section[id] {
    scroll-margin-top: 28px;
  }

  .page-home .home-hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 24px;
  }

  .page-home .hero-main {
    min-height: 600px;
  }

  .page-home .hero-content {
    padding: 48px 40px;
  }

  .page-home .hero-content h1 {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
  }

  .page-home .hero-lead {
    font-size: 1rem;
  }

  .page-home .hero-stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
  }

  .page-home .injury-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .page-home .stats-switch-wrap {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .page-home .rhythm-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .rhythm-card {
    padding: 24px 16px 20px 16px;
  }

  .page-home .rhythm-num {
    position: static;
    display: block;
    margin-bottom: 14px;
  }

  .page-home .news-grid {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-card,
  .page-home .adapter-figure img,
  .page-home .injury-figure img,
  .page-home .stats-figure img,
  .page-home .rhythm-card,
  .page-home .news-card {
    transition: none;
  }

  .page-home .status-dot {
    animation: none;
  }

  .page-home .news-link::after {
    transition: none;
  }
}
