/* ===== 页面专属 CSS — .page-home ===== */
.page-home {
  --home-hero-min-height: 85vh;
  --home-card-radius: 12px;
  --home-transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --home-badge-size: 60px;
  --home-trend-height: 220px;
  --home-mock-width: 150px;

  background: var(--gradient-main, linear-gradient(135deg, #0b1a2a 0%, #1a3a5c 100%));
  color: var(--text-primary, #ffffff);
  font-family: var(--font-body, 'Roboto', system-ui, sans-serif);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 背景数据流动画 */
.page-home::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(57,255,20,0.03) 40px, rgba(57,255,20,0.03) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(57,255,20,0.02) 40px, rgba(57,255,20,0.02) 41px);
  pointer-events: none;
  z-index: 0;
  animation: homeGridFlow 12s linear infinite;
}

@keyframes homeGridFlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home::before { animation: none; }
  .page-home .hero-svg * { animation: none !important; }
  .page-home .trend-svg * { animation: none !important; }
  .page-home .league-card:hover .card-extra { transition: none; }
}

.page-home .breadcrumb {
  position: relative;
  z-index: 2;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 1.2rem var(--space-md, 1rem) 0;
  font-size: 0.85rem;
  color: var(--text-secondary, #a0b0c0);
}

.page-home .breadcrumb a {
  color: var(--primary-accent, #39ff14);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--home-transition);
}

.page-home .breadcrumb a:hover { opacity: 1; }

/* ===== 首屏分屏 ===== */
.page-home .hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: var(--home-hero-min-height);
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: var(--space-lg, 2rem) var(--space-md, 1rem) var(--space-xl, 4rem);
  gap: 2rem;
}

.page-home .hero-text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .hero-text h1 {
  font-family: var(--font-heading, 'Inter', system-ui, sans-serif);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary, #ffffff);
  margin: 0 0 1.2rem;
  text-shadow: 0 0 30px rgba(57,255,20,0.15);
}

.page-home .hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary, #a0b0c0);
  max-width: 36ch;
  margin: 0 0 1.8rem;
  line-height: 1.65;
}

.page-home .hero-visual {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.page-home .hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.page-home .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  opacity: 0.25;
  z-index: 1;
  border-radius: 16px;
}

/* ===== 通用区块 ===== */
.page-home .section {
  position: relative;
  z-index: 1;
  padding: var(--space-xl, 4rem) var(--space-md, 1rem);
}

.page-home .section-inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
}

.page-home .section-heading {
  font-family: var(--font-heading, 'Inter', system-ui, sans-serif);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary, #ffffff);
  margin: 0 0 0.6rem;
  position: relative;
  display: inline-block;
}

.page-home .section-heading::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-accent, #39ff14);
  border-radius: 2px;
}

.page-home .section-desc {
  color: var(--text-secondary, #a0b0c0);
  font-size: 0.95rem;
  margin: 1rem 0 2rem;
  max-width: 48ch;
}

/* ===== 联赛筛选 ===== */
.page-home .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.page-home .filter-btn {
  background: var(--card-bg, rgba(255,255,255,0.05));
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 20px;
  padding: 0.45rem 1.2rem;
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary, #a0b0c0);
  cursor: pointer;
  transition: all var(--home-transition);
}

.page-home .filter-btn:hover {
  border-color: var(--primary-accent, #39ff14);
  color: var(--text-primary, #ffffff);
  background: rgba(57,255,20,0.1);
}

.page-home .filter-btn.active {
  background: var(--primary-accent, #39ff14);
  color: #0b1a2a;
  border-color: var(--primary-accent, #39ff14);
  font-weight: 700;
}

.page-home .league-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.page-home .league-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card-bg, rgba(255,255,255,0.05));
  border: var(--card-border, 1px solid rgba(57,255,20,0.3));
  border-radius: var(--home-card-radius);
  padding: 1.2rem;
  backdrop-filter: blur(4px);
  transition: transform var(--home-transition), box-shadow var(--home-transition), border-color var(--home-transition);
  overflow: hidden;
}

.page-home .league-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(57,255,20,0.12);
  border-color: var(--primary-accent, #39ff14);
}

.page-home .card-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: var(--home-badge-size);
}

.page-home .badge-img {
  width: var(--home-badge-size);
  height: var(--home-badge-size);
  border-radius: 8px;
  object-fit: contain;
  background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.15);
  transition: transform var(--home-transition);
}

.page-home .league-card:hover .badge-img {
  transform: scale(1.06);
}

.page-home .badge-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-accent, #39ff14);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-home .card-body {
  flex: 1;
  min-width: 0;
}

.page-home .card-stats {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.page-home .stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.page-home .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary, #a0b0c0);
  opacity: 0.7;
}

.page-home .stat-value {
  font-family: var(--font-data, 'JetBrains Mono', monospace);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary, #ffffff);
}

.page-home .card-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(57,255,20,0.12);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.page-home .league-card:hover .card-extra {
  max-height: 100px;
  opacity: 1;
  margin-top: 0.8rem;
}

.page-home .extra-item {
  font-size: 0.8rem;
  color: var(--secondary-accent, #c0c0c0);
  background: rgba(57,255,20,0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(57,255,20,0.1);
}

.page-home .card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
}

.page-home .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 赛季趋势 ===== */
.page-home .trend-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

.page-home .trend-chart {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: var(--card-bg, rgba(255,255,255,0.05));
  border: var(--card-border, 1px solid rgba(57,255,20,0.3));
  border-radius: var(--home-card-radius);
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.page-home .trend-svg {
  width: 100%;
  height: auto;
  max-height: var(--home-trend-height);
  display: block;
}

.page-home .trend-dot {
  transition: r 0.25s ease, fill 0.25s ease;
}

.page-home .trend-svg:hover .trend-dot {
  r: 7;
  fill: #c0c0c0;
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .trend-dot {
    animation: homePulse 2s ease-in-out infinite alternate;
  }
  .page-home .trend-dot:nth-child(2) { animation-delay: 0.3s; }
  .page-home .trend-dot:nth-child(3) { animation-delay: 0.6s; }
  .page-home .trend-dot:nth-child(4) { animation-delay: 0.9s; }
  .page-home .trend-dot:nth-child(5) { animation-delay: 1.2s; }
}

@keyframes homePulse {
  0% { opacity: 0.7; r: 4; }
  100% { opacity: 1; r: 5.5; }
}

.page-home .trend-img {
  display: none;
}

.page-home .trend-note {
  max-width: 36ch;
}

.page-home .trend-note p {
  color: var(--text-secondary, #a0b0c0);
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
  line-height: 1.65;
}

/* ===== 应用下载 ===== */
.page-home .download-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.page-home .download-mock {
  position: relative;
  flex-shrink: 0;
}

.page-home .mock-img {
  display: block;
  width: var(--home-mock-width);
  height: auto;
  border-radius: 20px;
  border: 2px solid rgba(57,255,20,0.3);
  box-shadow: 0 8px 32px rgba(57,255,20,0.1);
  background: var(--card-bg, rgba(255,255,255,0.05));
}

.page-home .mock-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-accent, #39ff14);
  color: #0b1a2a;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(57,255,20,0.3);
}

.page-home .download-info {
  flex: 1;
  max-width: 42ch;
}

.page-home .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.page-home .feature-item {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-secondary, #a0b0c0);
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-home .feature-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-accent, #39ff14);
  font-weight: 700;
}

/* ===== 按钮 ===== */
.page-home .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading, 'Inter', system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--home-transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.page-home .btn-primary {
  background: var(--primary-accent, #39ff14);
  color: #0b1a2a;
  border-color: var(--primary-accent, #39ff14);
  box-shadow: 0 4px 16px rgba(57,255,20,0.2);
}

.page-home .btn-primary:hover {
  background: transparent;
  color: var(--primary-accent, #39ff14);
  box-shadow: 0 4px 24px rgba(57,255,20,0.3);
  transform: translateY(-2px);
}

/* ===== 桌面 ≥ 768px ===== */
@media screen and (min-width: 768px) {
  .page-home .hero {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
    padding-top: var(--space-xl, 4rem);
  }

  .page-home .hero-text h1 {
    font-size: 3.5rem;
  }

  .page-home .hero-sub {
    font-size: 1.15rem;
  }

  .page-home .hero-visual {
    min-height: 360px;
  }

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

  .page-home .trend-content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .page-home .trend-chart {
    flex: 1 1 60%;
  }

  .page-home .trend-note {
    flex: 1 1 40%;
  }

  .page-home .download-content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .page-home .download-mock {
    order: 2;
  }

  .page-home .download-info {
    order: 1;
  }
}

/* ===== 桌面 ≥ 1024px ===== */
@media screen and (min-width: 1024px) {
  .page-home .hero-text h1 {
    font-size: 4rem;
  }

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

  .page-home .section {
    padding: var(--space-xl, 4rem) var(--space-lg, 2rem);
  }

  .page-home .trend-chart {
    padding: 1.5rem;
  }

  .page-home .mock-img {
    width: 180px;
  }

  .page-home .hero-bg-img {
    border-radius: 20px;
  }
}

/* ===== 超大屏 ≥ 1280px ===== */
@media screen and (min-width: 1280px) {
  .page-home .hero {
    gap: 4rem;
  }

  .page-home .hero-visual {
    min-height: 420px;
  }

  .page-home .trend-chart {
    max-width: 640px;
  }
}

/* ===== 滚动显现渐进增强 ===== */
.page-home .section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.page-home .section[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .section {
    opacity: 1;
    transform: none;
  }
}
