/* ============ 首页专属样式 ============ */
.page-home {
  --home-section-gap: clamp(72px, 10vw, 140px);
  --home-line: 1px solid var(--border-blue);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

.page-home .container {
  width: min(100% - 32px, var(--container-width));
  margin-inline: auto;
}

.page-home .section-header {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.page-home .section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-orange);
}

.page-home .section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-green);
  letter-spacing: 0.08em;
}

.page-home .section-title {
  margin: 0;
  font-size: var(--fs-section);
  line-height: 1.15;
  color: var(--text-primary);
}

.page-home .section-desc {
  margin: 0;
  max-width: 560px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============ Hero 首屏 ============ */
.page-home .home-hero {
  position: relative;
  padding: 36px 0 72px;
  background: var(--bg-primary);
  isolation: isolate;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(31, 58, 104, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 58, 104, 0.34) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, #000 0%, transparent 70%);
}

.page-home .hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .hero-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.page-home .hero-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.page-home .hero-breadcrumb a:hover {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.page-home .hero-breadcrumb .separator {
  color: var(--border-blue);
}

.page-home .hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.page-home .hero-copy h1 {
  margin: 0;
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-home .hero-copy h1::after {
  content: "";
  display: block;
  width: 108px;
  height: 8px;
  margin-top: 22px;
  background: var(--accent-green);
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}

.page-home .hero-desc {
  margin: 24px 0 32px;
  max-width: 540px;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: var(--home-line);
  list-style: none;
}

.page-home .hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  background: rgba(31, 58, 104, 0.24);
  padding: 8px 12px;
  border-left: 2px solid var(--accent-orange);
}

.page-home .hero-meta-item .mono {
  color: var(--text-primary);
  font-weight: 600;
}

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

.page-home .hero-img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-secondary);
  border: var(--home-line);
}

.page-home .hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.72);
}

.page-home .hero-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.page-home .hero-svg svg {
  width: 100%;
  height: 100%;
}

.page-home .hero-overlay-grid {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 96px;
  height: 96px;
  z-index: 3;
  border-top: 2px solid var(--accent-orange);
  border-right: 2px solid var(--accent-orange);
  pointer-events: none;
  opacity: 0.7;
}

.page-home .hero-live-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  max-width: 300px;
  background: rgba(10, 18, 32, 0.82);
  border: var(--home-line);
  border-left: 3px solid var(--accent-green);
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

.page-home .live-now {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-home .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent-green);
}

.page-home .live-matches {
  display: grid;
  gap: 6px;
}

.page-home .live-match {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.page-home .league-tag {
  color: var(--accent-orange);
  font-weight: 600;
}

.page-home .pulse {
  animation: home-pulse 1.8s ease-in-out infinite;
}

/* ============ 多联赛实时看板 ============ */
.page-home .home-ticker-section {
  background: var(--bg-secondary);
  padding: 56px 0 48px;
  border-block: var(--home-line);
}

.page-home .home-ticker-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-home .ticker-stage {
  margin-top: 32px;
  border-block: var(--home-line);
  background: var(--bg-primary);
  overflow: hidden;
}

.page-home .ticker-track {
  display: flex;
  width: max-content;
  animation: home-ticker-scroll 42s linear infinite;
  will-change: transform;
}

.page-home .ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-right: var(--home-line);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-primary);
}

.page-home .ticker-league {
  font-weight: 600;
  color: var(--accent-green);
}

.page-home .ticker-status {
  color: var(--text-primary);
}

.page-home .ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent-orange);
}

.page-home .ticker-footnote {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ 功能矩阵 ============ */
.page-home .home-features {
  background: var(--bg-primary);
  padding-block: var(--home-section-gap);
}

.page-home .features-grid {
  display: grid;
  gap: 36px;
}

.page-home .features-copy .section-desc {
  max-width: 440px;
}

.page-home .features-outline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-home .features-outline-item {
  font-size: 13px;
  color: var(--text-secondary);
  border: var(--home-line);
  padding: 8px 12px;
  text-decoration: none;
  transition: var(--transition);
}

.page-home .features-outline-item:hover {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.page-home .features-list {
  display: grid;
  gap: 14px;
}

.page-home .feature-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-orange);
  padding: 22px 18px 22px 22px;
  transition: var(--transition);
}

.page-home .feature-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.14), transparent 38%);
  opacity: 0;
  transition: var(--transition);
  clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
}

.page-home .feature-item:hover::after {
  opacity: 1;
}

.page-home .feature-item > * {
  position: relative;
  z-index: 1;
}

.page-home .feature-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-orange);
  display: inline-block;
  margin-bottom: 8px;
}

.page-home .feature-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text-primary);
}

.page-home .feature-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-home .features-phone {
  max-width: 280px;
  margin-inline: auto;
}

.page-home .phone-frame {
  border: var(--home-line);
  background: var(--bg-secondary);
  overflow: hidden;
  aspect-ratio: 600 / 1200;
}

.page-home .phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ 数据覆盖体系 ============ */
.page-home .home-coverage {
  position: relative;
  background: var(--bg-secondary);
  padding-block: var(--home-section-gap);
  border-block: var(--home-line);
}

.page-home .home-coverage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), transparent 72%);
}

.page-home .coverage-wrap {
  display: grid;
  gap: 28px;
}

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

.page-home .coverage-head .section-desc {
  max-width: 680px;
}

.page-home .coverage-stats {
  display: grid;
  gap: 14px;
}

.page-home .coverage-stat {
  background: var(--bg-primary);
  border-left: 2px solid var(--accent-green);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .coverage-number {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.page-home .coverage-unit {
  font-weight: 600;
  color: var(--accent-green);
  font-size: 14px;
}

.page-home .coverage-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.page-home .coverage-viz {
  border: var(--home-line);
  background: var(--bg-primary);
  padding: 10px;
}

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

/* ============ 多端场景 ============ */
.page-home .home-devices {
  background: var(--bg-primary);
  padding-block: var(--home-section-gap);
}

.page-home .device-scenario {
  display: grid;
  gap: 36px;
  margin-top: 32px;
}

.page-home .device-media {
  border: var(--home-line);
  background: var(--bg-secondary);
  overflow: hidden;
  aspect-ratio: 800 / 500;
}

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

.page-home .device-copy {
  display: grid;
}

.page-home .device-item {
  padding: 28px 0;
  border-bottom: var(--home-line);
}

.page-home .device-item h3 {
  margin: 12px 0 10px;
  font-size: 20px;
  color: var(--text-primary);
}

.page-home .device-item p {
  margin: 0;
  line-height: 1.65;
  color: var(--text-secondary);
}

.page-home .device-tag {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ============ 下载与行动 ============ */
.page-home .home-download {
  background: var(--bg-dark);
  padding-block: var(--home-section-gap);
}

.page-home .download-panel {
  display: grid;
  gap: 36px;
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.08), transparent 46%),
    var(--bg-primary);
  border: var(--home-line);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.page-home .download-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 6px;
  background: var(--accent-orange);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.page-home .download-copy {
  display: grid;
  gap: 18px;
}

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

.page-home .download-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.page-home .download-note a {
  color: var(--accent-green);
}

.page-home .download-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.page-home .qrcode-grid {
  position: relative;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  padding: 10px;
  border: 2px solid var(--accent-green);
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(90deg, transparent 35%, rgba(57, 255, 20, 0.5) 35%, rgba(57, 255, 20, 0.5) 65%, transparent 65%),
    linear-gradient(0deg, transparent 35%, rgba(57, 255, 20, 0.5) 35%, rgba(57, 255, 20, 0.5) 65%, transparent 65%);
  background-size: 34% 34%;
}

.page-home .qr-finder {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 3px solid var(--accent-green);
  background: var(--bg-primary);
}

.page-home .qr-finder::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--accent-green);
}

.page-home .qr-finder-tl {
  top: 8px;
  left: 8px;
}

.page-home .qr-finder-br {
  bottom: 8px;
  right: 8px;
}

.page-home .qrcode-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============ 继续探索 ============ */
.page-home .home-connect {
  background: var(--bg-secondary);
  padding: 36px 0 72px;
}

.page-home .connect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-blue);
  border: var(--home-line);
}

.page-home .connect-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
  padding: 20px 16px;
  font-weight: 600;
  transition: var(--transition);
}

.page-home .connect-card:hover {
  color: var(--accent-green);
  background: var(--bg-secondary);
}

.page-home .connect-arrow {
  color: var(--accent-orange);
  transition: transform var(--transition);
}

.page-home .connect-card:hover .connect-arrow {
  transform: translateX(4px);
}

/* ============ 动画 ============ */
@keyframes home-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

@keyframes home-ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ============ 响应式增强 ============ */
@media (min-width: 768px) {
  .page-home .hero-copy {
    padding-right: 12px;
  }

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

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

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

@media (min-width: 1024px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(40px, 6vw, 88px);
  }

  .page-home .home-hero {
    padding-top: 56px;
  }

  .page-home .ticker-stage {
    margin-top: 44px;
  }

  .page-home .home-ticker-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-home .features-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
  }

  .page-home .features-copy {
    grid-column: 1 / 7;
    grid-row: 1;
  }

  .page-home .features-phone {
    grid-column: 7 / 13;
    grid-row: 1;
  }

  .page-home .features-list {
    grid-column: 1 / 13;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .device-scenario {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .page-home .download-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 48px 56px;
  }
}

@media (min-width: 1400px) {
  .page-home .features-copy {
    grid-column: 1 / 6;
  }

  .page-home .features-phone {
    grid-column: 6 / 13;
  }

  .page-home .features-list {
    grid-column: 1 / 13;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ticker-track,
  .page-home .pulse {
    animation: none;
  }

  .page-home .feature-item,
  .page-home .connect-card,
  .page-home .connect-arrow {
    transition: none;
  }
}
