.page-home {
  --home-hero-gradient: linear-gradient(135deg, #0B1D33 0%, #12365C 60%, #1E4E7B 100%);
  --home-accent-gradient: linear-gradient(145deg, #F97316 0%, #FFB03A 100%);
  --home-panel-bg: rgba(11, 29, 51, 0.82);
  background: var(--color-bg-primary);
  overflow-x: hidden;
}

/* ===== Hero 首屏 ===== */
.page-home .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min-content;
  background: var(--home-hero-gradient);
  padding: 1.75rem 1.25rem 3rem;
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 28%, rgba(249, 115, 22, 0.26), transparent 62%);
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: -18%;
  width: 80%;
  height: 100%;
  background: var(--home-accent-gradient);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.16;
  pointer-events: none;
}

.page-home .hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.page-home .hero__content > * {
  opacity: 0;
  animation: page-home-fade-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-home .hero__kicker {
  animation-delay: 0.08s;
  margin: 1.25rem 0 0.75rem;
  color: var(--color-accent-soft);
  font: 600 0.875rem / 1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .hero__title {
  animation-delay: 0.16s;
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text-body);
  font-family: var(--font-heading);
}

.page-home .hero__description {
  animation-delay: 0.24s;
  margin: 0 0 1.75rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.page-home .hero__actions {
  animation-delay: 0.32s;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .hero__meta {
  animation-delay: 0.4s;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.page-home .hero__live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--color-text-body);
}

.page-home .hero__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-data);
  box-shadow: var(--shadow-glow);
  animation: page-home-live-pulse 1.6s ease-in-out infinite;
}

@keyframes page-home-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.page-home .hero__visual {
  position: relative;
  z-index: 1;
  margin-top: 2.25rem;
}

.page-home .hero__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.page-home .hero__panel {
  margin-top: 1.375rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--home-panel-bg);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(217, 226, 236, 0.1);
}

.page-home .hero__panel-title {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text-body);
  letter-spacing: 0.04em;
}

.page-home .hero__svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .hero__panel-note {
  display: inline-block;
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-accent-soft);
}

.page-home .hero__panel-note--right {
  float: right;
  color: var(--color-data);
}

@keyframes page-home-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 本季功能升级 ===== */
.page-home .upgrades {
  padding: 3.5rem 1.25rem;
  background: var(--color-bg-primary);
}

.page-home .upgrades__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.page-home .upgrade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
  border: 1px solid rgba(217, 226, 236, 0.08);
  transition: transform var(--duration-base), box-shadow var(--duration-base);
}

.page-home .upgrade-card--accent {
  background: linear-gradient(145deg, var(--color-bg-card), var(--color-bg-secondary));
  border-color: rgba(249, 115, 22, 0.35);
}

.page-home .upgrade-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.page-home .upgrade-card__num {
  font: 700 0.875rem var(--font-mono);
  color: var(--color-accent);
}

.page-home .upgrade-card__title {
  margin: 0.25rem 0 0;
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--color-text-body);
  font-family: var(--font-heading);
}

.page-home .upgrade-card__text {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.page-home .upgrade-card__link {
  display: inline-block;
  color: var(--color-accent-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
  transition: color var(--duration-fast);
}

.page-home .upgrade-card__link:hover {
  color: var(--color-accent);
}

.page-home .upgrade-card__details {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  border-top: 1px solid rgba(217, 226, 236, 0.12);
  padding-top: 0.625rem;
}

.page-home .upgrade-card__details summary {
  cursor: pointer;
  color: var(--color-accent-soft);
  font-weight: 600;
  outline: none;
}

.page-home .upgrade-card__details ul {
  margin: 0.5rem 0 0;
  padding-left: 1.125rem;
  line-height: 1.7;
}

.page-home .upgrades__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  box-shadow: var(--shadow-card);
}

/* ===== 中国区周末赛事时间清单 ===== */
.page-home .schedule {
  padding: 3.5rem 1.25rem;
  background: var(--color-bg-secondary);
}

.page-home .schedule__intro {
  margin-bottom: 2rem;
}

.page-home .schedule__desc {
  margin: 0.75rem 0 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

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

.page-home .schedule__content > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.page-home .schedule__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-home .schedule__timeline::before {
  content: "";
  position: absolute;
  left: 62px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-data));
  opacity: 0.5;
}

.page-home .schedule__item {
  position: relative;
  display: flex;
  gap: 1rem;
}

.page-home .schedule__time {
  flex-shrink: 0;
  width: 52px;
  padding-top: 0.75rem;
  font: 600 0.9375rem var(--font-mono);
  color: var(--color-accent-soft);
  text-align: right;
  padding-right: 0.625rem;
}

.page-home .schedule__match {
  flex: 1;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  margin: 0.375rem 0 0.375rem;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}

.page-home .schedule__item:hover .schedule__match {
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
}

.page-home .schedule__league {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.page-home .schedule__game {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-body);
}

.page-home .schedule__tag {
  display: inline-block;
  background: rgba(57, 255, 20, 0.14);
  color: var(--color-data);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
}

/* ===== 实时控球率仪表盘 ===== */
.page-home .possession {
  padding: 3.5rem 1.25rem;
  background: var(--color-bg-primary);
  position: relative;
}

.page-home .possession__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.page-home .possession__panel {
  background: rgba(18, 54, 92, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(217, 226, 236, 0.1);
}

.page-home .possession__meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.page-home .possession__dial {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(var(--color-data) 0deg 209deg, var(--color-accent) 209deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 26px rgba(57, 255, 20, 0.16);
}

.page-home .possession__dial::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: var(--color-bg-primary);
  border-radius: 50%;
}

.page-home .possession__center {
  position: relative;
  z-index: 2;
  font: 700 2.5rem / 1 var(--font-heading);
  color: var(--color-text-body);
  animation: page-home-center-pulse 5s ease-in-out infinite;
}

@keyframes page-home-center-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.page-home .possession__needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 72px;
  background: var(--color-data);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(58deg);
  z-index: 3;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
  animation: page-home-needle-pulse 5s ease-in-out infinite;
}

@keyframes page-home-needle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.62; }
}

.page-home .possession__legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.page-home .possession__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.375rem;
  vertical-align: middle;
}

.page-home .possession__dot--home { background: var(--color-data); }
.page-home .possession__dot--away { background: var(--color-accent); }

.page-home .possession__tip {
  margin: 1.375rem auto 0;
  max-width: 460px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

.page-home .possession__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ===== 旧版本资料存档 ===== */
.page-home .archive {
  padding: 3.5rem 1.25rem;
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-primary));
}

.page-home .archive__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.page-home .archive__content p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== 桌面端增强 ===== */
@media (min-width: 768px) {
  .page-home .hero {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 4rem 3% 4rem 4%;
  }

  .page-home .hero__content {
    flex: 0 0 50%;
    max-width: 580px;
  }

  .page-home .hero__visual {
    flex: 1 1 44%;
    margin-top: 0;
  }

  .page-home .hero::after {
    right: -10%;
    width: 52%;
  }

  .page-home .upgrades {
    padding: 4.5rem 0;
  }

  .page-home .upgrades__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .page-home .upgrade-card--accent {
    transform: translateY(-14px);
  }

  .page-home .upgrade-card--accent:hover {
    transform: translateY(-18px);
  }

  .page-home .schedule {
    padding: 4.5rem 0;
  }

  .page-home .schedule__content {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 2.5rem;
  }

  .page-home .possession {
    padding: 4.5rem 0;
  }

  .page-home .possession__wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .page-home .archive {
    padding: 4.5rem 0;
  }
}

/* ===== 动效降级 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero__content > * {
    opacity: 1;
    animation: none;
  }

  .page-home .hero__live-dot,
  .page-home .possession__center,
  .page-home .possession__needle {
    animation: none;
  }

  .page-home .upgrade-card:hover,
  .page-home .schedule__item:hover .schedule__match {
    transform: none;
    box-shadow: none;
  }
}
