/* 首页专属 — 高对比体育科技风 */

.page-home {
  --home-mint: #00ffaa;
  --home-cyan: #00d4ff;
  --home-hot: #ff2d6a;
  --home-gold: #ffcc00;
}

html:has(.page-home) {
  scrollbar-gutter: stable;
}

.page-home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.page-home .site-header.is-scrolled {
  background: rgba(4, 6, 13, 0.88);
  border-bottom-color: rgba(0, 255, 170, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.page-home .logo,
.page-home .nav a {
  color: rgba(255, 255, 255, 0.92);
}

.page-home .nav a.active {
  color: var(--home-mint);
}

.hero-cine {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-cine__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #02040a;
}

.hero-cine__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  filter: saturate(1.25) contrast(1.08);
}

.hero-cine__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.55) 0%, transparent 28%),
    linear-gradient(95deg, rgba(2, 4, 10, 0.94) 0%, rgba(2, 4, 10, 0.45) 48%, rgba(2, 4, 10, 0.72) 100%),
    linear-gradient(0deg, #02040a 0%, rgba(2, 4, 10, 0.2) 42%, transparent 100%);
}

.hero-cine__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 170, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black, transparent);
  animation: grid-drift 24s linear infinite;
}

@keyframes grid-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(56px); }
}

.hero-cine__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orb-float 8s ease-in-out infinite alternate;
}

.orb--mint {
  width: 420px;
  height: 420px;
  background: rgba(0, 255, 170, 0.35);
  top: 10%;
  right: -8%;
}

.orb--cyan {
  width: 320px;
  height: 320px;
  background: rgba(0, 212, 255, 0.28);
  bottom: 20%;
  left: -5%;
  animation-delay: -3s;
}

.orb--hot {
  width: 200px;
  height: 200px;
  background: rgba(255, 45, 106, 0.22);
  top: 35%;
  left: 45%;
  animation-delay: -5s;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -18px) scale(1.08); }
}

.hero-cine__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 255, 170, 0.03) 48%,
    transparent 52%
  );
  background-size: 100% 8px;
  animation: scan-move 6s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes scan-move {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}

.hero-cine__content {
  position: relative;
  z-index: 2;
  padding: 88px 20px clamp(32px, 5vh, 64px);
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.hero-cine__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--home-mint);
  border: 1px solid rgba(0, 255, 170, 0.45);
  background: rgba(0, 255, 170, 0.1);
  backdrop-filter: blur(12px);
  margin-bottom: 22px;
  box-shadow: 0 0 32px rgba(0, 255, 170, 0.2);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-hot);
  box-shadow: 0 0 0 0 rgba(255, 45, 106, 0.7);
  animation: live-ring 1.8s ease-out infinite;
}

@keyframes live-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 106, 0.65); }
  70% { box-shadow: 0 0 0 12px rgba(255, 45, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 106, 0); }
}

.hero-cine__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 20px;
  max-width: 11ch;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero-cine__title .line-glow {
  display: block;
  background: linear-gradient(90deg, #fff 0%, var(--home-mint) 40%, var(--home-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 255, 170, 0.45));
  animation: title-shimmer 4s ease-in-out infinite;
  background-size: 200% auto;
}

@keyframes title-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-cine__lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: 32px;
}

/* 三支柱入口 — 紧凑标签 */
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 520px;
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 1 1 140px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  backdrop-filter: blur(12px);
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 50%, rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pillar:hover {
  transform: translateY(-2px);
}

.pillar__icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.pillar__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.pillar__label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.pillar__sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
}

.pillar__count {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  min-width: 1.75em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pillar__count.is-loading {
  color: rgba(255, 255, 255, 0.35);
}

.pillar--schedule {
  background: linear-gradient(145deg, rgba(0, 255, 170, 0.16), rgba(0, 255, 170, 0.05));
  box-shadow: 0 4px 16px rgba(0, 255, 170, 0.1);
}

.pillar--schedule:hover {
  box-shadow: 0 8px 24px rgba(0, 255, 170, 0.2);
}

.pillar--schedule .pillar__count {
  color: var(--home-mint);
}

.pillar--odds {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.16), rgba(0, 212, 255, 0.05));
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.08);
}

.pillar--odds:hover {
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.18);
}

.pillar--odds .pillar__count {
  color: var(--home-cyan);
}

.pillar--pred {
  background: linear-gradient(145deg, rgba(255, 45, 106, 0.16), rgba(255, 45, 106, 0.05));
  box-shadow: 0 4px 16px rgba(255, 45, 106, 0.08);
}

.pillar--pred:hover {
  box-shadow: 0 8px 24px rgba(255, 45, 106, 0.18);
}

.pillar--pred .pillar__count {
  color: var(--home-hot);
}

/* 滚动赛事条 — 预留高度，避免数据到达后撑开布局 */
.hero-ticker {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  min-height: 42px;
  border-top: 1px solid rgba(0, 255, 170, 0.2);
  background: rgba(2, 4, 10, 0.75);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-ticker[hidden] {
  display: block !important;
  visibility: hidden;
}

.hero-ticker.is-empty .hero-ticker__track {
  min-height: 42px;
}

.hero-ticker__wrap {
  overflow: hidden;
  width: 100%;
}

.hero-ticker__track {
  display: flex;
  gap: 32px;
  padding: 12px 0;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}

.hero-ticker__track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.ticker-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-mint);
}

.ticker-item strong {
  color: var(--home-cyan);
  font-weight: 600;
}

/* 首页加载条 */
.home-load-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 3px;
  overflow: hidden;
}

.home-load-bar span {
  display: block;
  height: 100%;
  width: 36%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-mint), var(--home-cyan));
  animation: home-load-slide 1.1s ease-in-out infinite;
}

.home-load-bar.is-done span {
  opacity: 0;
  transition: opacity 0.25s;
}

@keyframes home-load-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

/* 主内容区 */
.page-home .home-main {
  position: relative;
  z-index: 1;
  padding-top: 32px;
  padding-bottom: 80px;
}

.page-home .home-main[hidden] {
  display: none !important;
}

.page-home .home-main.is-ready {
  opacity: 1;
}

.page-home .home-section {
  position: relative;
  margin-bottom: 56px;
  padding: 32px 24px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 22, 0.55);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.page-home .home-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 24px 24px 0 0;
}

.page-home #section-schedule::before {
  background: linear-gradient(90deg, var(--home-mint), transparent);
  box-shadow: 0 0 24px rgba(0, 255, 170, 0.5);
}

.page-home #section-odds::before {
  background: linear-gradient(90deg, var(--home-cyan), transparent);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.45);
}

.page-home #section-pred::before {
  background: linear-gradient(90deg, var(--home-hot), transparent);
  box-shadow: 0 0 24px rgba(255, 45, 106, 0.45);
}

.page-home #section-schedule::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 255, 170, 0.12), transparent 70%);
  pointer-events: none;
}

.page-home #section-odds::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.page-home #section-pred::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 45, 106, 0.1), transparent 70%);
  pointer-events: none;
}

.page-home .home-section-title {
  font-size: 1.5rem;
}

.page-home .section-more {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.page-home .section-more:hover {
  background: rgba(0, 255, 170, 0.12);
  border-color: rgba(0, 255, 170, 0.4);
  color: var(--home-mint);
}

/* 首页卡片强化 */
.page-home .card-grid-6 {
  gap: 18px;
}

.page-home .media-card,
.page-home .odds-card {
  position: relative;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(18, 28, 48, 0.95), rgba(6, 10, 18, 0.92));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-home .media-card::after,
.page-home .odds-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--home-mint), var(--home-cyan));
  opacity: 0;
  transition: opacity 0.25s;
}

.page-home .odds-card::after {
  background: linear-gradient(90deg, var(--home-cyan), var(--home-mint));
}

.page-home #pred-cards .media-card::after {
  background: linear-gradient(90deg, var(--home-hot), var(--home-gold));
}

.page-home .media-card:hover,
.page-home .odds-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(0, 255, 170, 0.35);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 255, 170, 0.15),
    0 0 40px rgba(0, 255, 170, 0.08);
}

.page-home .media-card:hover::after,
.page-home .odds-card:hover::after {
  opacity: 1;
}

.page-home .media-title {
  font-size: 1.05rem;
}

.page-home .media-badge {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(0, 255, 170, 0.12);
  border: 1px solid rgba(0, 255, 170, 0.25);
}

.page-home .home-empty-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.page-home .btn-primary {
  padding: 14px 28px;
  font-size: 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--home-mint), #00cc88);
  color: #001a10;
  box-shadow: 0 8px 32px rgba(0, 255, 170, 0.4);
}

@media (max-width: 900px) {
  .hero-pillars {
    max-width: none;
  }

  .hero-cine__title {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero-cine {
    min-height: auto;
  }

  .hero-cine__content {
    padding-bottom: 24px;
  }

  .page-home .home-section {
    padding: 24px 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cine__grid,
  .hero-cine__scan,
  .orb,
  .hero-ticker__track,
  .hero-cine__title .line-glow,
  .live-pulse {
    animation: none !important;
  }
}
