.page-home {
  --page-scan-speed: 3s;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.page-home .kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.page-home .section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.page-home .section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  margin: 0;
}

.page-home .page-intro {
  color: var(--color-text-dim);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0;
}

.page-home .data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home .live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
  flex: 0 0 10px;
  animation: page-live-pulse 1.8s ease-out infinite;
}

@keyframes page-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(57, 255, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

/* ===================== HERO ===================== */
.page-home .hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 680px;
  padding: 64px 0 80px;
  overflow: hidden;
  background: var(--color-bg-deep);
}

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

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: 1;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  background-size: 220px 100%;
  background-repeat: no-repeat;
  animation: page-hero-scan var(--page-scan-speed) linear infinite;
  z-index: 3;
}

@keyframes page-hero-scan {
  0% { background-position: -220px 0; }
  100% { background-position: calc(100% + 220px) 0; }
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
}

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

.page-home .display-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin: 16px 0 18px;
  letter-spacing: -0.01em;
}

.page-home .lead {
  color: var(--color-text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

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

.page-home .hero-actions .btn {
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Hero 实时面板 */
.page-home .hero-live {
  position: relative;
  border: 1px solid var(--color-border);
  background: rgba(13, 36, 80, 0.78);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(8px);
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.page-home .hero-live::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 88px;
  height: 3px;
  background: var(--color-accent);
}

.page-home .hero-live::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
  opacity: 0.7;
}

.page-home .live-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.page-home .live-label {
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.page-home .live-code {
  margin-left: auto;
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.7;
}

.page-home .live-match {
  text-align: center;
  padding: 8px 0 4px;
}

.page-home .live-match-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  margin-bottom: 8px;
}

.page-home .live-match-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.page-home .team-short {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  min-width: 42px;
}

.page-home .score-num {
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
}

.page-home .score-colon {
  font-size: 2rem;
  color: var(--color-text-dim);
}

.page-home .live-match-clock {
  margin-top: 8px;
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.page-home .live-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

.page-home .stat-cell {
  background: rgba(10, 31, 68, 0.6);
  border: 1px solid rgba(30, 58, 95, 0.6);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.page-home .stat-label {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
}

.page-home .stat-cell strong {
  font-family: var(--font-mono);
  color: var(--color-text);
  font-size: 1rem;
}

.page-home .live-lineups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .live-refresh-note {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-home .refresh-symbol {
  color: var(--color-accent);
  font-family: var(--font-mono);
}

/* ===================== 章节预览 ===================== */
.page-home .chapter-preview {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-deep);
}

.page-home .chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.page-home .chapter-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  color: var(--color-text);
  text-decoration: none;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}

.page-home .chapter-link:hover {
  background: rgba(57, 255, 20, 0.07);
}

.page-home .chapter-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-orange);
}

.page-home .chapter-name {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ===================== 即时更新栏 ===================== */
.page-home .live-feed {
  background: var(--color-bg);
}

.page-home .live-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .live-feature {
  border: 1px solid var(--color-border);
  background: var(--color-bg-panel);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.page-home .live-feature-img {
  position: relative;
  min-height: 220px;
}

.page-home .live-feature-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .live-feature-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 36, 80, 0.55) 100%);
}

.page-home .live-feature-content {
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.page-home .live-feature-content .block-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}

.page-home .live-feature-content p {
  color: var(--color-text-dim);
  line-height: 1.6;
  margin: 0;
}

.page-home .lineup-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.page-home .lineup-side {
  background: rgba(10, 31, 68, 0.7);
  border: 1px solid var(--color-border);
  padding: 14px;
  display: grid;
  gap: 4px;
}

.page-home .lineup-side .team-rank {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-home .lineup-side strong {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--color-accent);
}

.page-home .lineup-side small {
  color: var(--color-text-dim);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.page-home .live-scoreboard {
  border: 1px solid var(--color-border);
  background: var(--color-bg-deep);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.page-home .live-scoreboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-orange);
}

.page-home .live-scoreboard .block-title {
  font-size: 1.1rem;
  margin: 0;
}

.page-home .score-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
}

.page-home .team-side {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dim);
  min-width: 56px;
  text-align: center;
}

.page-home .score-clock {
  text-align: center;
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 0;
}

.page-home .score-events {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

.page-home .score-events li {
  font-size: 0.88rem;
  padding-left: 14px;
  border-left: 2px solid var(--color-border);
  color: var(--color-text-dim);
  line-height: 1.4;
}

.page-home .score-events li:first-child {
  border-left-color: var(--color-accent);
}

.page-home .btn-block {
  width: 100%;
  text-align: center;
}

/* ===================== 积分榜 ===================== */
.page-home .standings {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
}

.page-home .standings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .standings-panel {
  border: 1px solid var(--color-border);
  background: rgba(13, 36, 80, 0.85);
  padding: 20px;
  position: relative;
}

.page-home .standings-panel::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 3px;
  height: 64px;
  background: var(--color-accent);
}

.page-home .panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.page-home .refresh-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-success);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.page-home .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .standings-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.page-home .standings-table th {
  text-align: left;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
}

.page-home .standings-table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(30, 58, 95, 0.55);
  font-size: 0.92rem;
  color: var(--color-text);
}

.page-home .standings-table tbody tr:hover td {
  background: rgba(57, 255, 20, 0.045);
}

.page-home .standings-table td:first-child {
  font-family: var(--font-mono);
  color: var(--color-orange);
  font-size: 0.9rem;
}

.page-home .standings-table td strong {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--color-accent);
}

.page-home .table-note {
  color: var(--color-text-dim);
  font-size: 0.8rem;
  margin: 14px 0 0;
  line-height: 1.6;
}

.page-home .standings-chart {
  border: 1px solid var(--color-border);
  background: var(--color-bg-panel);
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .chart-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-home .chart-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .chart-legend {
  font-size: 0.76rem;
  color: var(--color-text-dim);
}

.page-home .standings-sparkline {
  width: 100%;
  height: 96px;
  display: block;
}

.page-home .chart-img img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(30, 58, 95, 0.5);
}

.page-home .chart-note {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin: 0;
  line-height: 1.6;
}

/* ===================== 历史检索 ===================== */
.page-home .history {
  background: var(--color-bg);
}

.page-home .history-panel {
  border: 1px solid var(--color-border);
  background: var(--color-bg-panel);
  padding: 16px;
  display: grid;
  gap: 16px;
}

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

.page-home .history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .history-meta {
  padding: 0 8px 8px;
  display: grid;
  gap: 10px;
}

.page-home .history-meta p {
  color: var(--color-text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
  max-width: 760px;
}

.page-home .text-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  width: fit-content;
}

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

/* ===================== 重点场次 ===================== */
.page-home .focus {
  background: var(--color-bg-deep);
}

.page-home .focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .focus-card {
  border: 1px solid var(--color-border);
  background: rgba(13, 36, 80, 0.65);
  padding: 26px;
  display: grid;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s;
}

.page-home .focus-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.page-home .focus-card--lead {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.1) 0%, rgba(13, 36, 80, 0.85) 70%);
}

.page-home .focus-num {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--color-orange);
}

.page-home .focus-card .block-title {
  font-size: 1.1rem;
  margin: 0;
}

.page-home .focus-card p {
  color: var(--color-text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.page-home .focus-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* ===================== 桌面端响应式 ===================== */
@media (min-width: 768px) {
  .page-home .chapter-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .chapter-link {
    border-bottom: none;
  }

  .page-home .live-feature {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .page-home .live-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .focus-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .section-head {
    grid-template-columns: auto 1fr;
    align-items: end;
  }

  .page-home .section-head .page-intro {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    min-height: 640px;
    padding: 84px 0 96px;
  }

  .page-home .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
  }

  .page-home .hero-live {
    padding: 28px;
  }

  .page-home .live-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .page-home .standings-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}
