.page-home {
  --home-card-border: rgba(192, 199, 216, 0.16);
  --home-gridline: rgba(192, 199, 216, 0.05);
  --home-dashboard-pad: clamp(4rem, 8vw, 7rem);
  overflow-x: hidden;
}

/* ===== 首屏：动态数据流 ===== */
.page-home .home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 680px;
  padding: var(--home-dashboard-pad) 0 3rem;
  color: var(--color-fog);
}

.page-home .home-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .home-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.15) contrast(1.1);
}

.page-home .home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(0, 194, 255, 0.14), transparent 42%),
    linear-gradient(100deg, rgba(10, 15, 36, 0.94) 0%, rgba(10, 15, 36, 0.82) 46%, rgba(17, 26, 61, 0.68) 100%);
}

.page-home .home-hero__stream {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-stream-line {
  fill: none;
  stroke-dasharray: 300 900;
  animation: home-stream-flow 9s linear infinite;
}

.home-stream-line--delay {
  stroke: var(--color-electric);
  stroke-dasharray: 200 760;
  animation-duration: 12s;
  animation-delay: -3.5s;
}

.home-stream-line--two {
  stroke: var(--color-orange);
  stroke-dasharray: 140 620;
  animation-duration: 8s;
  animation-delay: -5s;
}

.home-stream-line--thin {
  stroke: var(--color-silver);
  animation-duration: 14s;
  animation-delay: -7s;
}

@keyframes home-stream-flow {
  to {
    stroke-dashoffset: -2400;
  }
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.page-home .home-hero__left {
  max-width: 700px;
}

.page-home .home-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 107, 44, 0.12);
  border: 1px solid rgba(255, 107, 44, 0.35);
  border-radius: var(--radius-pill);
  color: var(--color-fog);
  margin-bottom: 1.5rem;
}

.page-home .home-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.55);
  animation: home-pulse 1.6s ease-out infinite;
}

@keyframes home-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 107, 44, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 44, 0);
  }
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--color-fog);
}

.page-home .home-hero__subtitle {
  margin: 0.75rem 0 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-silver);
  letter-spacing: 0.02em;
}

.page-home .home-hero__lead {
  margin: 1.5rem 0 0;
  max-width: 46ch;
  color: var(--color-silver);
  font-size: var(--text-base);
  line-height: 1.7;
}

.page-home .home-mini-matches {
  display: grid;
  gap: 0.6rem;
  margin-top: 2rem;
}

.page-home .home-mini-match {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(17, 26, 61, 0.58);
  border: 1px solid var(--home-card-border);
  border-left: 3px solid var(--color-electric);
  border-radius: var(--radius-s);
  font-size: var(--text-sm);
}

.page-home .home-mini-match__league {
  color: var(--color-gray);
}

.page-home .home-mini-match__teams {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-fog);
}

.page-home .home-mini-match__teams strong {
  color: var(--color-fog);
  font-size: var(--text-base);
}

.page-home .home-hero__right {
  min-width: 0;
}

.page-home .home-standings {
  display: block;
  text-decoration: none;
  color: var(--color-fog);
  padding: 1.4rem 1.2rem 1.2rem;
  background: rgba(17, 26, 61, 0.72);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-standard), box-shadow var(--transition-standard), border-color var(--transition-standard);
}

.page-home .home-standings:hover,
.page-home .home-standings:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(0, 194, 255, 0.45);
  box-shadow: var(--shadow-float);
}

.page-home .home-standings__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-home .home-standings__eyebrow {
  font-size: var(--text-xs);
  color: var(--color-gray);
  letter-spacing: 0.08em;
}

.page-home .home-standings__title {
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  color: var(--color-fog);
}

.page-home .home-standings__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-s);
  margin-bottom: 1rem;
}

.page-home .home-standings__rows {
  display: grid;
  gap: 0.3rem;
}

.page-home .home-standings-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  background: rgba(10, 15, 36, 0.5);
  border-radius: var(--radius-s);
  font-size: var(--text-sm);
  color: var(--color-fog);
}

.page-home .home-standings-row__rank {
  font-family: var(--font-headline);
  color: var(--color-electric);
  font-size: var(--text-xs);
}

.page-home .home-standings-row__pts {
  color: var(--color-silver);
}

.page-home .home-standings-row--more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  transform: translateY(-4px);
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease, padding 0.35s ease, margin 0.35s ease;
}

.page-home .home-standings:hover .home-standings-row--more,
.page-home .home-standings:focus-visible .home-standings-row--more {
  max-height: 48px;
  opacity: 1;
  transform: translateY(0);
  padding: 0.45rem 0.6rem;
  margin: 0.15rem 0 0;
}

/* ===== 公共章节 ===== */
.page-home .home-services,
.page-home .home-matches,
.page-home .home-data,
.page-home .home-membership {
  position: relative;
  overflow: hidden;
  padding: var(--home-dashboard-pad) 0;
}

.page-home .home-services {
  background-color: var(--color-midnight);
  background-image:
    linear-gradient(var(--home-gridline) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-gridline) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-home .home-matches {
  background-color: var(--color-space);
  background-image: repeating-linear-gradient(45deg, rgba(192, 199, 216, 0.03) 0 1px, transparent 1px 10px);
}

.page-home .home-data {
  background-color: var(--color-midnight);
  background-image:
    radial-gradient(circle at 80% 20%, rgba(0, 194, 255, 0.08), transparent 36%),
    linear-gradient(var(--home-gridline) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-gridline) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.page-home .home-membership {
  background-color: var(--color-space);
  background-image:
    radial-gradient(circle at 14% 78%, rgba(255, 107, 44, 0.06), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(0, 194, 255, 0.08), transparent 28%);
}

.page-home .home-services__index,
.page-home .home-matches__index,
.page-home .home-data__index,
.page-home .home-membership__index {
  position: absolute;
  top: 1.2rem;
  right: clamp(0.5rem, 2vw, 2rem);
  z-index: 0;
  pointer-events: none;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(7rem, 18vw, 14rem);
  line-height: 0.8;
  color: rgba(192, 199, 216, 0.05);
  letter-spacing: -0.06em;
}

.page-home .home-services__header,
.page-home .home-matches__header,
.page-home .home-data__header,
.page-home .home-membership__header {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-home .section-title {
  margin: 0.25rem 0 0.75rem;
}

/* ===== 当季体育服务清单 ===== */
.page-home .home-services__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.page-home .home-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 200px;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--color-fog);
  background: rgba(10, 15, 36, 0.72);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform var(--transition-standard), border-color var(--transition-standard), background-color var(--transition-standard);
}

.page-home .home-service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-orange), var(--color-electric));
  opacity: 0.8;
}

.page-home .home-service-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 5rem;
  height: 5rem;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.24), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-standard);
}

.page-home .home-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 255, 0.35);
  background-color: rgba(10, 15, 36, 0.9);
}

.page-home .home-service-card:hover::after {
  opacity: 1;
}

.page-home .home-service-card__num {
  font-family: var(--font-headline);
  font-size: var(--text-sm);
  color: var(--color-electric);
  letter-spacing: 0.06em;
}

.page-home .home-service-card h3 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--color-fog);
}

.page-home .home-service-card p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-gray);
}

.page-home .home-service-card__link {
  margin-top: auto;
  font-size: var(--text-sm);
  color: var(--color-orange);
  font-weight: 500;
}

.page-home .home-services__hint {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--home-card-border);
  color: var(--color-gray);
  font-size: var(--text-sm);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-home .home-services__hint a {
  color: var(--color-electric);
  text-decoration: none;
}

.page-home .home-services__hint a:hover {
  text-decoration: underline;
}

/* ===== 热门赛事卡片 ===== */
.page-home .filter-bar {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.page-home .home-matches__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.page-home .home-match-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  padding: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius-m);
  border: 1px solid var(--home-card-border);
  background: linear-gradient(140deg, rgba(17, 26, 61, 0.9), rgba(10, 15, 36, 0.96));
  color: var(--color-fog);
  transition: transform var(--transition-standard), border-color var(--transition-standard), box-shadow var(--transition-standard);
}

.page-home .home-match-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 255, 0.4);
  box-shadow: var(--shadow-float);
}

.page-home .home-match-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-match-card__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.page-home .home-match-card:hover .home-match-card__bg img {
  transform: scale(1.06);
  opacity: 0.5;
}

.page-home .home-match-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 36, 0.2) 0%, rgba(10, 15, 36, 0.92) 100%);
}

.page-home .home-match-card__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .home-match-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-home .home-match-card__league {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-silver);
}

.page-home .home-match-card__scoreline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-headline);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 900;
}

.page-home .home-match-card__team {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.page-home .home-match-card__team:last-of-type {
  text-align: right;
}

.page-home .home-match-card__score {
  color: var(--color-orange);
  white-space: nowrap;
}

.page-home .home-match-card__status {
  margin-top: 0.75rem;
  font-size: var(--text-xs);
  color: var(--color-gray);
}

.page-home .home-match-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.page-home .home-match-card:hover .home-match-card__stats,
.page-home .home-match-card:focus-within .home-match-card__stats {
  max-height: 60px;
  opacity: 1;
  margin-top: 1rem;
}

.page-home .home-match-card__stats span {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius-pill);
  background: rgba(10, 15, 36, 0.6);
  font-size: var(--text-xs);
  color: var(--color-silver);
}

.page-home .home-match-card--feature {
  min-height: 340px;
}

.page-home .home-match-card--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(120deg, var(--color-orange), transparent 40%, var(--color-electric) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 3;
  pointer-events: none;
}

/* ===== 数据能力概览 ===== */
.page-home .home-data__stats {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.page-home .stat-block {
  background: rgba(10, 15, 36, 0.72);
  border: 1px solid var(--home-card-border);
  border-left: 3px solid var(--color-orange);
  border-radius: var(--radius-s);
  padding: 1.5rem 1.25rem;
  min-height: 128px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.page-home .stat-value {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--color-fog);
  line-height: 1;
}

.page-home .stat-label {
  display: block;
  margin-top: 0.75rem;
  color: var(--color-silver);
  font-size: var(--text-sm);
}

.page-home .home-data__banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius-m);
}

.page-home .home-data__banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.1);
}

.page-home .home-data__banner-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 2rem 1.5rem;
  background: linear-gradient(90deg, rgba(10, 15, 36, 0.9), rgba(10, 15, 36, 0.25));
}

.page-home .home-data__banner-content h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900;
  color: var(--color-fog);
}

.page-home .home-data__banner-content p {
  margin: 0 0 1.25rem;
  color: var(--color-silver);
  line-height: 1.75;
  font-size: var(--text-sm);
  max-width: 52ch;
}

/* ===== 会员权益速览 ===== */
.page-home .home-membership__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.page-home .home-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  background: rgba(17, 26, 61, 0.72);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius-m);
  transition: transform var(--transition-standard), border-color var(--transition-standard);
}

.page-home .home-tier:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 44, 0.4);
}

.page-home .home-tier:nth-child(4) {
  border-color: rgba(245, 194, 75, 0.32);
}

.page-home .home-tier__badge {
  display: inline-block;
  width: max-content;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(0, 194, 255, 0.35);
  background: rgba(0, 194, 255, 0.1);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--color-electric);
  letter-spacing: 0.06em;
}

.page-home .home-tier h3 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-fog);
}

.page-home .home-tier p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-silver);
}

.page-home .home-tier__features {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.page-home .home-tier__features li {
  position: relative;
  padding-left: 1rem;
  font-size: var(--text-xs);
  color: var(--color-gray);
}

.page-home .home-tier__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--color-orange);
  transform: rotate(45deg);
}

.page-home .home-membership__footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--home-card-border);
}

.page-home .home-membership__support {
  font-size: var(--text-sm);
  color: var(--color-silver);
}

.page-home .home-membership__support:hover {
  color: var(--color-fog);
}

/* ===== 响应式：平板与桌面端 ===== */
@media (min-width: 640px) {
  .page-home .home-data__stats,
  .page-home .home-membership__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .home-service-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .page-home .home-matches__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding-top: 2.5rem;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }

  .page-home .home-services__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .page-home .home-service-card:nth-child(-n+3) {
    grid-column: span 2;
  }

  .page-home .home-service-card:nth-child(4),
  .page-home .home-service-card:nth-child(5) {
    grid-column: span 3;
  }

  .page-home .home-data__stats,
  .page-home .home-membership__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

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

@media (min-width: 1200px) {
  .page-home .home-matches__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .home-match-card:nth-child(1) {
    grid-column: span 7;
  }

  .page-home .home-match-card:nth-child(2) {
    grid-column: span 5;
  }

  .page-home .home-match-card:nth-child(3) {
    grid-column: span 5;
  }

  .page-home .home-match-card:nth-child(4) {
    grid-column: span 7;
  }

  .page-home .home-match-card--feature {
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-stream-line,
  .page-home .home-live-dot {
    animation: none;
  }

  .page-home .home-match-card,
  .page-home .home-service-card,
  .page-home .home-standings,
  .page-home .home-tier {
    transition: none;
  }
}
