.page-home {
  --page-hero-particolor: rgba(230, 57, 70, 0.25);
  --page-dash-bg: rgba(29, 53, 87, 0.65);
  --page-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --page-number-color: #F4A261;
  --page-accent-glow: 0 0 20px rgba(230, 57, 70, 0.3);
  --page-carousel-gap: 0.75rem;
  --page-highlights-speed: 12s;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-dark);
  overflow-x: hidden;
}

/* ── 面包屑 ── */
.page-home__breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}
.page-home__breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.page-home__breadcrumb a:hover {
  color: var(--color-primary-orange);
}
.page-home__breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-accent-silver);
}

/* ── Hero ── */
.page-home__hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.page-home__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-home__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.page-home__hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(230, 57, 70, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(244, 162, 97, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(168, 218, 220, 0.06) 0%, transparent 40%);
  animation: pageHeroParticles 18s ease-in-out infinite alternate;
}
@keyframes pageHeroParticles {
  0%   { opacity: 0.6; transform: scale(1) translate(0, 0); }
  50%  { opacity: 0.9; transform: scale(1.02) translate(-0.5%, 0.5%); }
  100% { opacity: 0.6; transform: scale(1) translate(0.5%, -0.5%); }
}
.page-home__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(11, 12, 16, 0.70) 0%, rgba(11, 12, 16, 0.40) 100%);
  pointer-events: none;
}
.page-home__hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
  flex: 1;
}
.page-home__hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}
.page-home__brand {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.3em;
  color: var(--color-primary-orange);
  text-transform: uppercase;
}
.page-home__title {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: clamp(2rem, 8vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: var(--letter-spacing-heading);
  margin: 0;
  background: var(--gradient-highlight);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-home__subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  margin: 0;
  max-width: 32rem;
}
.page-home__carousel {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-red) transparent;
  padding-bottom: 0.5rem;
}
.page-home__carousel::-webkit-scrollbar {
  height: 4px;
}
.page-home__carousel::-webkit-scrollbar-thumb {
  background: var(--color-primary-red);
  border-radius: 4px;
}
.page-home__carousel-track {
  display: flex;
  gap: var(--page-carousel-gap);
  min-width: max-content;
  padding: 0.25rem 0;
}
.page-home__carousel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s, background 0.3s, box-shadow 0.3s;
  user-select: none;
}
.page-home__carousel-card:hover,
.page-home__carousel-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  background: rgba(230, 57, 70, 0.18);
  box-shadow: var(--page-accent-glow);
  outline: none;
}
.page-home__carousel-card:focus-visible {
  border-color: var(--color-primary-orange);
}
.page-home__carousel-league {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
}
.page-home__carousel-season {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.page-home__hero-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
}
.page-home__hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-home__dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  background: var(--page-dash-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  width: 100%;
  max-width: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.page-home__dashboard-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 6rem;
  min-width: 5rem;
}
.page-home__dashboard-number {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.08em;
  color: var(--page-number-color);
  line-height: 1;
  animation: pageDashPulse 2.4s ease-in-out infinite;
}
@keyframes pageDashPulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(244, 162, 97, 0.2); }
  50% { opacity: 0.85; text-shadow: 0 0 24px rgba(244, 162, 97, 0.5); }
}
.page-home__dashboard-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

/* ── 通用section标题 ── */
.page-home__section-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: var(--letter-spacing-heading);
  margin: 0 0 1.5rem 0;
  position: relative;
  display: inline-block;
}
.page-home__section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  margin-top: 0.5rem;
  background: var(--gradient-highlight);
  border-radius: 4px;
}

/* ── 热门联赛速览 ── */
.page-home__leagues {
  padding: 3rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-home__leagues-inner {
  width: 100%;
}
.page-home__leagues-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.page-home__leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.page-home__league-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s, box-shadow 0.3s;
}
.page-home__league-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--page-card-shadow);
}
.page-home__league-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-home__league-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.page-home__league-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  background: var(--gradient-highlight);
  color: var(--color-text-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.page-home__league-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.page-home__league-status {
  font-size: 0.8rem;
  color: var(--color-accent-silver);
  letter-spacing: 0.02em;
}
.page-home__league-meta {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
}
.page-home__league-link {
  font-size: 0.75rem;
  color: var(--color-primary-orange);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  align-self: flex-start;
  transition: color 0.2s;
}
.page-home__league-link:hover {
  color: var(--color-primary-red);
}
.page-home__leagues-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-home__leagues-img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--page-card-shadow);
}
.page-home__leagues-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* ── 数据亮点 ── */
.page-home__highlights {
  padding: 3rem 1rem;
  background: rgba(29, 53, 87, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.page-home__highlights-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-home__highlights-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.page-home__highlights-image {
  width: 100%;
  max-width: 480px;
}
.page-home__highlights-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--page-card-shadow);
}
.page-home__highlights-carousel {
  width: 100%;
  max-width: 28rem;
  height: 4.5rem;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.page-home__highlights-track {
  display: flex;
  flex-direction: column;
  animation: pageHighlightsScroll var(--page-highlights-speed) cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  will-change: transform;
}
.page-home__highlights-item {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-shrink: 0;
}
.page-home__highlights-number {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--page-number-color);
  letter-spacing: 0.05em;
}
.page-home__highlights-desc {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
}
@keyframes pageHighlightsScroll {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(0); }
  25%  { transform: translateY(-4.5rem); }
  45%  { transform: translateY(-4.5rem); }
  50%  { transform: translateY(-9rem); }
  70%  { transform: translateY(-9rem); }
  75%  { transform: translateY(-13.5rem); }
  95%  { transform: translateY(-13.5rem); }
  100% { transform: translateY(0); }
}

/* ── 赛后复盘 ── */
.page-home__replay {
  padding: 3rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-home__replay-inner {
  width: 100%;
}
.page-home__replay-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.page-home__replay-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-home__replay-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 36rem;
}
.page-home__replay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home__replay-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-accent-silver);
  letter-spacing: 0.03em;
}
.page-home__replay-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--color-primary-orange);
}
.page-home__replay-image {
  width: 100%;
  max-width: 480px;
}
.page-home__replay-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--page-card-shadow);
}

/* ── 滚动显现 ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230, 57, 70, 0.3);
}
.btn--primary {
  background: var(--gradient-highlight);
  color: var(--color-text-primary);
}
.btn--outline {
  background: transparent;
  color: var(--color-primary-orange);
  border: 1.5px solid var(--color-primary-orange);
}
.btn--outline:hover {
  background: rgba(244, 162, 97, 0.10);
}

/* ── 桌面端 ── */
@media (min-width: 768px) {
  .page-home__hero {
    min-height: 100vh;
  }
  .page-home__hero-inner {
    flex-direction: row;
    padding: 2rem 2rem;
    align-items: center;
    gap: 3rem;
  }
  .page-home__hero-left {
    flex: 1.2;
    gap: 1.5rem;
  }
  .page-home__hero-right {
    flex: 0.8;
    justify-content: flex-end;
  }
  .page-home__dashboard {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  .page-home__dashboard-item {
    min-width: 6rem;
  }
  .page-home__carousel-card {
    min-width: 7rem;
    padding: 1rem 1.25rem;
  }
  .page-home__leagues {
    padding: 5rem 2rem;
  }
  .page-home__leagues-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .page-home__leagues-grid {
    flex: 2;
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home__leagues-visual {
    flex: 1;
    justify-content: flex-end;
  }
  .page-home__leagues-img {
    max-width: 100%;
  }
  .page-home__highlights {
    padding: 5rem 2rem;
  }
  .page-home__highlights-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .page-home__highlights-image {
    max-width: 420px;
  }
  .page-home__highlights-carousel {
    max-width: 24rem;
  }
  .page-home__replay {
    padding: 5rem 2rem;
  }
  .page-home__replay-layout {
    flex-direction: row;
    justify-content: space-between;
  }
  .page-home__replay-content {
    flex: 1;
  }
  .page-home__replay-image {
    flex: 0.8;
    max-width: 400px;
  }
}

@media (min-width: 1024px) {
  .page-home__hero-inner {
    padding: 2rem 3rem;
    gap: 4rem;
  }
  .page-home__leagues-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home__highlights-image {
    max-width: 480px;
  }
}

/* ── 减少动效 ── */
@media (prefers-reduced-motion: reduce) {
  .page-home__hero-particles {
    animation: none;
  }
  .page-home__dashboard-number {
    animation: none;
  }
  .page-home__highlights-track {
    animation: none;
    transform: translateY(0);
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-home__carousel-card:hover {
    transform: none;
  }
  .page-home__league-card:hover {
    transform: none;
  }
  .btn:hover {
    transform: none;
  }
}
