.page-home {
  --home-hero-radius: 28px;
  --home-gradient-report: linear-gradient(145deg, #14362d, #0f2a22);
}

/* ========== 首屏拼贴 ========== */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  padding: calc(var(--header-h) + 24px) 16px 48px;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-home .hero-bg .hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 31, 26, 0.92), rgba(11, 31, 26, 0.72) 45%, rgba(15, 42, 34, 0.94));
}

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

.page-home .hero-league {
  order: 2;
  background: rgba(15, 42, 34, 0.72);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: blur(6px);
}

.page-home .hero-league-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-home .hero-league-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(11, 31, 26, 0.5);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}

.page-home .hero-league-link:hover {
  background: var(--color-panel);
  border-color: var(--color-gold);
}

.page-home .hero-league-code {
  color: var(--color-gold);
  font-size: 0.82rem;
  min-width: 2.2em;
}

.page-home .hero-league-arrow {
  margin-left: auto;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.page-home .hero-report {
  order: 1;
  background: var(--home-gradient-report);
  border: 1px solid var(--color-gold);
  border-radius: var(--home-hero-radius);
  padding: 18px;
  box-shadow: var(--shadow-panel);
}

.page-home .hero-report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.page-home .hero-report-top .section-label {
  margin: 0;
}

.page-home .hero-crumbs {
  display: flex;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--color-muted);
}

.page-home .hero-crumbs a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .hero-crumbs a:hover {
  color: var(--color-gold);
}

.page-home .hero-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .hero-title-main {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--color-text);
}

.page-home .hero-title-sub {
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  color: var(--color-gold);
  font-weight: 600;
}

.page-home .hero-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-muted);
  margin: 0 0 14px;
}

.page-home .report-card {
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(11, 31, 26, 0.48);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.page-home .report-body {
  padding: 14px;
}

.page-home .report-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.page-home .report-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-aqua);
  font-family: var(--font-head);
}

.page-home .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  display: inline-block;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  animation: home-pulse 2s ease-in-out infinite;
}

.page-home .status-dot--aqua {
  background: var(--color-aqua);
  box-shadow: 0 0 10px rgba(0, 229, 204, 0.6);
}

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

.page-home .report-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 76px;
}

.page-home .report-team-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.page-home .report-team-score {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  line-height: 1;
  color: var(--color-gold);
}

.page-home .report-colon {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  color: var(--color-muted);
  transform: translateY(0.12em);
}

.page-home .report-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 12px;
}

.page-home .report-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--color-line);
  overflow: hidden;
}

.page-home .report-progress-bar {
  display: block;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-soft));
  border-radius: 99px;
}

.page-home .report-progress-label {
  font-size: 0.78rem;
  color: var(--color-muted);
  white-space: nowrap;
}

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

.page-home .report-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

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

.page-home .v4-card {
  background: linear-gradient(150deg, #1e3a2e, #0f2a22);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .v4-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-2px);
}

.page-home .v4-card-code {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--color-orange);
  line-height: 1;
  font-weight: 700;
}

.page-home .v4-card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.page-home .v4-card-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  line-height: 1.6;
}

.page-home .v4-card-link {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--color-gold);
}

.page-home .hero-journal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(15, 42, 34, 0.6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.page-home .hero-journal:hover {
  border-color: var(--color-gold);
}

.page-home .hero-journal-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-home .hero-journal-note {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.page-home .hero-stat {
  background: rgba(11, 31, 26, 0.6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .hero-stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--color-gold);
  line-height: 1.2;
}

.page-home .hero-stat-label {
  font-size: 0.76rem;
  color: var(--color-muted);
}

.page-home .hero-flow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.page-home .hero-flow svg {
  display: block;
  width: 100%;
  height: 80px;
}

.page-home .hero-flow-path {
  fill: none;
  stroke-width: 2;
}

.page-home .hero-flow-path--gold {
  stroke: var(--color-gold);
}

.page-home .hero-flow-path--aqua {
  stroke: var(--color-aqua);
  stroke-dasharray: 6 8;
  animation: home-flow-dash 24s linear infinite;
}

/* ========== 数据信任条 ========== */
.page-home .home-trust {
  background: var(--color-panel);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 14px 0;
}

.page-home .home-trust-inner p {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

/* ========== 联赛分域面板 ========== */
.page-home .home-leagues {
  background: var(--color-ink);
  padding: 48px 0 64px;
}

.page-home .league-head {
  margin-bottom: 20px;
}

.page-home .league-head-text {
  max-width: 720px;
}

.page-home .league-head-text h2 {
  margin: 8px 0 6px;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  color: var(--color-text);
}

.page-home .league-desc {
  font-family: var(--font-body);
  color: var(--color-muted);
  line-height: 1.8;
  margin: 0;
}

.page-home .league-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-home .league-tab {
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--color-line);
  color: var(--color-muted);
  background: transparent;
  transition: all 0.2s ease;
}

.page-home .league-tab:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.page-home .league-tab.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
}

.page-home .league-map {
  margin: 18px 0 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
}

.page-home .league-map img {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .league-block {
  padding-top: 12px;
}

.page-home .league-block + .league-block {
  margin-top: 32px;
  border-top: 1px solid var(--color-line);
  padding-top: 28px;
}

.page-home .league-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.page-home .league-block-head h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  color: var(--color-text);
}

.page-home .league-block-note {
  font-size: 0.8rem;
  color: var(--color-muted);
}

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

.page-home .match-card {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .match-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.page-home .match-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-home .match-card-time {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.page-home .match-card-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .match-card-team {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.page-home .match-card-team:last-of-type {
  align-items: flex-end;
}

.page-home .match-card-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.page-home .match-card-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--color-gold);
  line-height: 1.1;
}

.page-home .match-card-sep {
  color: var(--color-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.page-home .match-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-line);
  padding-top: 8px;
}

.page-home .match-card-league {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.page-home .match-card-link {
  font-size: 0.8rem;
  color: var(--color-gold);
  text-decoration: none;
  font-family: var(--font-head);
}

/* ========== V4栏目订阅入口 ========== */
.page-home .home-v4 {
  background: var(--color-panel);
  padding: 56px 0;
}

.page-home .v4-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.page-home .v4-copy .section-label {
  margin: 0;
}

.page-home .v4-copy h2 {
  margin: 8px 0 10px;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  color: var(--color-text);
}

.page-home .v4-lead {
  font-family: var(--font-body);
  color: var(--color-muted);
  line-height: 1.8;
  margin: 0 0 16px;
}

.page-home .v4-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.page-home .v4-list li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-home .v4-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-home .v4-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.page-home .v4-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
}

.page-home .v4-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: var(--color-ink);
  border: 1px solid var(--color-orange);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-head);
}

.page-home .v4-badge-code {
  font-size: 1.2rem;
  color: var(--color-orange);
  font-weight: 700;
}

.page-home .v4-badge-label {
  font-size: 0.7rem;
  color: var(--color-text);
}

/* ========== 时间轴归档 ========== */
.page-home .home-timeline {
  position: relative;
  padding: 56px 0 48px;
  background: var(--color-ink);
  overflow: hidden;
}

.page-home .timeline-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .timeline-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.page-home .timeline-darken {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 26, 0.96), rgba(11, 31, 26, 0.78));
}

.page-home .timeline-content {
  position: relative;
  z-index: 1;
}

.page-home .timeline-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.page-home .timeline-head .section-label {
  margin: 0;
}

.page-home .timeline-head h2 {
  margin: 8px 0 10px;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  color: var(--color-text);
}

.page-home .timeline-desc {
  font-family: var(--font-body);
  color: var(--color-muted);
  line-height: 1.8;
  margin: 0;
}

.page-home .timeline-scroll {
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-line);
  mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

.page-home .timeline-row {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 8px 32px;
  scroll-snap-type: x mandatory;
}

.page-home .timeline-item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}

.page-home .timeline-card {
  background: rgba(15, 42, 34, 0.92);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease;
}

.page-home .timeline-item:hover .timeline-card {
  border-color: var(--color-gold);
}

.page-home .timeline-item:focus-visible .timeline-card {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.page-home .timeline-round {
  font-size: 0.8rem;
  color: var(--color-gold);
}

.page-home .timeline-score {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--color-text);
  line-height: 1.2;
}

.page-home .timeline-match {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
  font-family: var(--font-body);
}

.page-home .timeline-state {
  font-size: 0.75rem;
  color: var(--color-aqua);
  margin-top: 4px;
}

.page-home .timeline-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-family: var(--font-head);
}

.page-home .hint-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-gold);
  font-size: 0.85rem;
}

.page-home .timeline-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.page-home .timeline-link {
  color: var(--color-gold);
  font-size: 0.9rem;
  font-family: var(--font-head);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  transition: border-color 0.2s ease;
}

.page-home .timeline-link:hover {
  border-color: var(--color-gold);
}

/* ========== 动画 ========== */
@keyframes home-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes home-flow-dash {
  to { stroke-dashoffset: -1000; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .status-dot,
  .page-home .hero-flow-path--aqua {
    animation: none;
  }
}

/* ========== 平板适配 ========== */
@media (min-width: 700px) {
  .page-home .home-hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-home .report-card {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .page-home .report-img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

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

  .page-home .v4-split {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .page-home .timeline-item {
    width: 250px;
  }
}

/* ========== 桌面适配 ========== */
@media (min-width: 1024px) {
  .page-home .home-hero {
    min-height: calc(100vh - var(--header-h));
    padding: calc(var(--header-h) + 32px) 32px 56px;
  }

  .page-home .hero-inner {
    grid-template-columns: 0.85fr 1.5fr 0.95fr;
    gap: 20px;
    align-items: stretch;
  }

  .page-home .hero-league,
  .page-home .hero-report,
  .page-home .hero-v4 {
    order: initial;
  }

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

  .page-home .league-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 20px;
  }

  .page-home .league-tabs {
    margin-top: 0;
    flex-shrink: 0;
  }

  .page-home .v4-split {
    gap: 56px;
  }

  .page-home .timeline-row {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ========== 大屏内容宽度 ========== */
@media (min-width: 1400px) {
  .page-home .home-hero,
  .page-home .home-leagues,
  .page-home .home-v4,
  .page-home .home-timeline {
    padding-left: 0;
    padding-right: 0;
  }

  .page-home .hero-inner,
  .page-home .league-head,
  .page-home .league-block,
  .page-home .v4-split,
  .page-home .timeline-head {
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .timeline-head {
    width: 100%;
  }
}
