.page-home {
  --home-hero-bg: #0A1128;
  --home-paper: #F3ECD8;
  --home-neon: #39FF14;
  --home-orange: #FF4500;
  --home-slate: #2A3356;
  --home-ink: #121212;
  --home-data-green: #0F5132;
  --home-white: #ffffff;
  background: var(--home-paper);
  color: var(--home-ink);
}

/* ===== 首屏：左右分屏 + 斜切底边 ===== */
.page-home .home-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10, 17, 40, 0.97) 0%, rgba(18, 32, 74, 0.94) 55%, rgba(10, 17, 40, 0.88) 100%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px);
  color: var(--home-white);
  padding: 2rem 1rem 5.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 72px), 0 100%);
  overflow: hidden;
}

.page-home .home-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.page-home .home-hero .breadcrumb {
  margin-bottom: 1.75rem;
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.page-home .hero-copy .page-kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--home-neon);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.page-home .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--home-white);
  transform: skewX(-1deg);
}

.page-home .hero-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46rem;
  margin: 0 0 1.5rem;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.page-home .hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.page-home .hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
}

.page-home .hero-facts .mono {
  color: var(--home-neon);
  font-weight: 700;
}

.page-home .hero-panel-frame {
  position: relative;
  border: 1px solid rgba(57, 255, 20, 0.35);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  background: var(--home-slate);
}

.page-home .hero-panel-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  opacity: 0.72;
}

.page-home .hero-live-panel {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.875rem 1rem;
  color: var(--home-white);
}

.page-home .live-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.page-home .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-neon);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.2);
}

.page-home .hero-live-panel dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 0.625rem;
}

.page-home .hero-live-panel dl div {
  border-left: 3px solid rgba(57, 255, 20, 0.5);
  padding-left: 0.625rem;
}

.page-home .hero-live-panel dt {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-home .hero-live-panel dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--home-neon);
}

.page-home .live-foot {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

/* ===== 数据分屏：赛程中心 + 赛事日历 ===== */
.page-home .home-data {
  padding: 3rem 1rem 3.5rem;
}

.page-home .data-split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: stretch;
}

.page-home .home-scorezone,
.page-home .home-calendarzone {
  padding: 1.5rem;
}

.page-home .home-scorezone {
  background: var(--home-paper);
  border: 1px solid var(--home-slate);
  border-left: 6px solid var(--home-orange);
  box-shadow: 12px 12px 0 rgba(10, 17, 40, 0.1);
}

.page-home .home-calendarzone {
  background: var(--home-hero-bg);
  color: var(--home-white);
  border: 1px solid var(--home-slate);
  border-top: 4px solid var(--home-neon);
  box-shadow: 12px 12px 0 rgba(10, 17, 40, 0.14);
}

.page-home .zone-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.page-home .home-scorezone .zone-desc {
  color: rgba(18, 18, 18, 0.72);
}

.page-home .home-calendarzone .zone-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* 赛程中心比分流 */
.page-home .score-feed {
  display: grid;
  gap: 1rem;
}

.page-home .score-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(42, 51, 86, 0.28);
  border-left: 4px solid var(--home-slate);
  padding: 0.75rem 0.875rem;
  transition: border-color 160ms ease, transform 160ms ease;
}

.page-home .score-card:hover,
.page-home .score-card:focus-within {
  border-color: var(--home-orange);
  transform: translateX(4px);
}

.page-home .score-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}

.page-home .score-league {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: rgba(18, 18, 18, 0.6);
}

.page-home .score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.page-home .score-team {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
}

.page-home .score-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--home-hero-bg);
  letter-spacing: 0.03em;
}

.page-home .score-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(18, 18, 18, 0.55);
  margin-top: 0.375rem;
}

.page-home .score-refresh-note {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(18, 18, 18, 0.18);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.page-home .score-refresh-note a {
  color: var(--home-orange);
  font-weight: 700;
}

/* 赛事日历可视化 */
.page-home .cal-visual {
  position: relative;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

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

.page-home .cal-visual-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(10, 17, 40, 0.82);
  color: var(--home-neon);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
  border-left: 3px solid var(--home-neon);
}

.page-home .cal-tabs {
  display: grid;
  gap: 1rem;
}

.page-home .home-calendarzone .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .home-calendarzone .tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.78);
  padding: 0.4rem 0.875rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: background 120ms ease, color 120ms ease;
}

.page-home .home-calendarzone .tab-btn[aria-selected="true"] {
  background: var(--home-neon);
  border-color: var(--home-neon);
  color: var(--home-ink);
}

.page-home .cal-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1rem;
}

.page-home .cal-stat-table {
  display: grid;
  grid-template-columns: 1fr 3.5rem 3.5rem;
  gap: 0.375rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.875rem;
}

.page-home .cal-stat-head {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.25rem;
}

.page-home .cal-goal {
  color: var(--home-neon);
  font-weight: 700;
}

.page-home .cal-goal-neg {
  color: var(--home-orange);
  font-weight: 700;
}

.page-home .cal-total {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 0.25rem;
}

.page-home .cal-chart {
  display: grid;
  gap: 0.5rem;
}

.page-home .cal-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
  margin: 0 auto;
}

.page-home .chart-grid {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.page-home .bar-pos {
  fill: var(--home-neon);
}

.page-home .bar-neg {
  fill: var(--home-orange);
}

.page-home .chart-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.62);
  text-anchor: middle;
}

.page-home .home-calendarzone .stat-legend {
  justify-content: center;
}

.page-home .home-calendarzone .stat-legend .swatch {
  background: var(--home-neon);
}

.page-home .home-calendarzone .stat-legend .swatch-neg {
  background: var(--home-orange);
}

/* ===== 收藏列表：联赛专题分类 ===== */
.page-home .home-collection {
  background: var(--home-paper);
  padding: 3rem 1rem;
  border-top: 1px solid rgba(10, 17, 40, 0.12);
}

.page-home .collection-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-home .collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.page-home .collection-visual {
  position: relative;
}

.page-home .collection-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 6px solid var(--home-white);
  box-shadow: 16px 16px 0 rgba(10, 17, 40, 0.14);
}

.page-home .collection-copy p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(18, 18, 18, 0.82);
  margin: 0 0 1.25rem;
}

.page-home .league-tabs {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.page-home .league-tabs .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .league-tabs .tab-btn {
  background: var(--home-white);
  border: 1px solid var(--home-slate);
  color: var(--home-ink);
  padding: 0.375rem 0.875rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.page-home .league-tabs .tab-btn[aria-selected="true"] {
  background: var(--home-hero-bg);
  border-color: var(--home-hero-bg);
  color: var(--home-white);
}

.page-home .league-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 51, 86, 0.22);
  padding: 0.875rem;
}

.page-home .league-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.page-home .league-tags li {
  color: var(--home-white);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.375rem 1rem 0.375rem 0.75rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.page-home .league-tags li:nth-child(1) { background: var(--home-hero-bg); }
.page-home .league-tags li:nth-child(2) { background: var(--home-slate); }
.page-home .league-tags li:nth-child(3) { background: var(--home-data-green); }
.page-home .league-tags li:nth-child(4) { background: var(--home-orange); }

/* ===== 版本存档与旧版安装包 ===== */
.page-home .home-archive {
  background:
    linear-gradient(140deg, rgba(10, 17, 40, 0.98) 0%, rgba(18, 32, 74, 0.96) 70%, rgba(10, 17, 40, 0.92) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 12px);
  color: var(--home-white);
  padding: 4rem 1rem 4.5rem;
  clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%);
}

.page-home .archive-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.page-home .archive-copy .section-title {
  color: var(--home-white);
}

.page-home .archive-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.5rem;
}

.page-home .version-timeline {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.page-home .version-timeline li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .version-timeline .version-key {
  min-width: 4.5em;
  color: var(--home-neon);
  font-weight: 700;
}

.page-home .archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .archive-visual {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.page-home .archive-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid rgba(57, 255, 20, 0.45);
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px));
}

.page-home .archive-corner {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--home-orange);
  color: var(--home-white);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.375rem 0.875rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

/* ===== 直达权威版本入口 ===== */
.page-home .home-direct {
  background: var(--home-paper);
  padding: 3.25rem 1rem 3.5rem;
}

.page-home .direct-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-home .direct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.page-home .direct-lead {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(18, 18, 18, 0.82);
  max-width: 44rem;
  margin: 0 0 1.75rem;
}

.page-home .direct-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.page-home .direct-stat {
  background: var(--home-white);
  border-left: 5px solid var(--home-orange);
  padding: 0.875rem 1rem;
}

.page-home .direct-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--home-hero-bg);
}

.page-home .direct-stat-label {
  font-size: 0.8125rem;
  color: rgba(18, 18, 18, 0.62);
}

.page-home .direct-links {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.page-home .section-head {
  margin-bottom: 1rem;
}

.page-home .section-index {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--home-orange);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.25rem;
}

.page-home .section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--home-ink);
}

.page-home .home-calendarzone .section-title,
.page-home .home-calendarzone .section-index {
  color: var(--home-neon);
}

.page-home .home-archive .section-index {
  color: var(--home-neon);
}

/* ===== 桌面端分屏与栅格 ===== */
@media (min-width: 920px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }

  .page-home .data-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem;
  }

  .page-home .collection-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }

  .page-home .archive-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 3.5rem;
  }

  .page-home .direct-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 3rem;
  }
}

@media (min-width: 640px) {
  .page-home .hero-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .score-feed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-home .direct-stats {
    grid-template-columns: 1fr;
  }
}
