.page-home {
  --home-radius-xl: 28px;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* ===== 首屏即时战报 ===== */
.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
  padding-top: var(--header-height);
}
.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(1.15) contrast(1.08);
  animation: homeHeroZoom 1.4s ease-out;
}
.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 20, 0.94) 0%, rgba(11, 15, 20, 0.72) 52%, rgba(11, 15, 20, 0.35) 100%);
}
.page-home .home-hero__frame {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 4rem);
}
.page-home .home-hero__frame::before,
.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
  z-index: 2;
}
.page-home .home-hero__frame::before {
  top: -2px;
  left: -2px;
  border-top: 3px solid var(--color-primary);
  border-left: 3px solid var(--color-primary);
  border-top-left-radius: var(--radius-md);
}
.page-home .home-hero__frame::after {
  bottom: -2px;
  right: -2px;
  border-bottom: 3px solid var(--color-lime);
  border-right: 3px solid var(--color-lime);
  border-bottom-right-radius: var(--radius-md);
}
.page-home .home-hero__frame-inner {
  position: relative;
  background: rgba(11, 15, 20, 0.78);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 3rem);
  display: grid;
  gap: 2rem;
  backdrop-filter: blur(8px);
}
.page-home .home-hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.page-home .home-hero__crumb {
  color: var(--color-muted);
  letter-spacing: 0.08em;
}
.page-home .home-hero__badge {
  color: var(--color-primary);
  border: 1px solid rgba(0, 168, 255, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.page-home .home-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-lime);
}
.page-home .home-hero__info {
  display: grid;
  gap: 1.25rem;
}
.page-home .home-hero__teams {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}
.page-home .home-hero__score {
  display: inline-block;
  color: var(--color-primary);
  background: linear-gradient(120deg, rgba(0, 168, 255, 0.18), rgba(0, 168, 255, 0.02));
  padding: 0 0.15em;
  border-radius: 12px;
  margin: 0 0.08em;
}
.page-home .home-hero__desc {
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 42em;
  margin: 0;
}
.page-home .home-hero__data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.page-home .home-hero__stat {
  display: grid;
  gap: 0.4rem;
}
.page-home .home-hero__stat-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
}
.page-home .home-hero__stat-label {
  font-size: 0.75rem;
  color: var(--color-muted);
}
.page-home .home-hero__stat-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.page-home .home-hero__stat-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-primary);
}
.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.page-home .home-hero__spot {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  transform: rotate(0.5deg);
}
.page-home .home-hero__spot img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.page-home .home-hero__spot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text);
}
.page-home .home-hero__scroll {
  position: absolute;
  right: 2.5rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  z-index: 4;
}
.page-home .home-hero__scroll b {
  display: block;
  width: 2px;
  height: 36px;
  background: var(--color-primary);
  animation: homeScroll 1.6s ease-in-out infinite;
}

/* ===== 赛事变更提示 ===== */
.page-home .home-notice {
  position: relative;
  z-index: 3;
  margin-top: -28px;
}
.page-home .home-notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.page-home .home-notice__text {
  margin: 0;
  color: var(--color-text);
  flex: 1 1 240px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.page-home .home-notice__link {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 168, 255, 0.5);
  padding-bottom: 2px;
}

/* ===== 板块内容目录 ===== */
.page-home .home-directory {
  padding: clamp(2rem, 6vw, 5rem) 0;
}
.page-home .home-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
}
.page-home .home-section-head__kicker,
.page-home .home-favorite__kicker,
.page-home .home-download__kicker {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-home .home-section-head__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin: 0.5rem 0 0;
  max-width: 14em;
}
.page-home .home-section-head__more {
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0, 168, 255, 0.4);
  padding-bottom: 2px;
}
.page-home .home-directory__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.page-home .home-directory__tabs {
  display: grid;
  gap: 1rem;
}
.page-home .home-directory__tab {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.page-home .home-directory__tab[open] {
  border-color: rgba(0, 168, 255, 0.55);
}
.page-home .home-directory__tab summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s ease;
}
.page-home .home-directory__tab summary::-webkit-details-marker {
  display: none;
}
.page-home .home-directory__tab summary:hover {
  background: rgba(0, 168, 255, 0.06);
}
.page-home .home-directory__tab[open] summary {
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.16), rgba(0, 168, 255, 0.02));
  border-bottom: 1px solid var(--color-line);
}
.page-home .home-directory__tab summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: 1.2rem;
  line-height: 1;
}
.page-home .home-directory__tab[open] summary::after {
  content: "–";
}
.page-home .home-directory__tab-name {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.page-home .home-directory__tab-count {
  color: var(--color-muted);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.page-home .home-directory__panel {
  padding: clamp(1rem, 3vw, 1.75rem);
}
.page-home .home-match {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--color-line);
}
.page-home .home-match:last-of-type {
  border-bottom: 0;
}
.page-home .home-match__meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  min-width: 72px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
}
.page-home .home-match__time {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.05rem;
}
.page-home .home-match__pair {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 240px;
  flex-wrap: wrap;
}
.page-home .home-match__team {
  font-weight: 600;
  font-size: 0.95rem;
}
.page-home .home-match__score {
  font-family: var(--font-mono);
  background: rgba(0, 168, 255, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.page-home .home-match__stats {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}
.page-home .home-match__link {
  color: var(--color-primary);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 168, 255, 0.5);
}
.page-home .home-directory__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-muted);
}
.page-home .home-directory__foot a {
  color: var(--color-primary);
  text-decoration: none;
}
.page-home .home-directory__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  min-height: 240px;
}
.page-home .home-directory__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .home-directory__visual p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ===== 收藏赛事 ===== */
.page-home .home-favorite {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #0d1521 100%);
  scroll-margin-top: calc(var(--header-height) + 20px);
}
.page-home .home-favorite__inner {
  display: grid;
  gap: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--home-radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.page-home .home-favorite__inner::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -90px;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.2), transparent 65%);
  pointer-events: none;
}
.page-home .home-favorite__text,
.page-home .home-favorite__visual {
  position: relative;
  z-index: 1;
}
.page-home .home-favorite__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0.6rem 0 1rem;
}
.page-home .home-favorite__desc {
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 36em;
}
.page-home .home-favorite__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.7rem;
}
.page-home .home-favorite__list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.page-home .home-favorite__list li::before {
  content: "★";
  color: var(--color-accent);
  flex: 0 0 auto;
}
.page-home .home-favorite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-home .home-favorite__visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
}
.page-home .home-favorite__visual img {
  width: 100%;
  height: auto;
  display: block;
}
.page-home .home-favorite__star {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 1.9rem;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 106, 0, 0.18), 0 8px 30px rgba(255, 106, 0, 0.35);
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  transition: transform 0.2s ease;
}
.page-home .home-favorite__star:hover {
  transform: scale(1.12) rotate(-8deg);
}
.page-home .home-favorite__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.page-home #favorite-panel:target .home-favorite__star {
  animation: homeStarPop 0.5s var(--ease);
}

/* ===== 平台数据概览 ===== */
.page-home .home-stats {
  padding: clamp(2rem, 6vw, 4rem) 0;
}
.page-home .home-stats__bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.page-home .home-stats__item {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: 0.4rem;
  min-height: 128px;
  align-content: center;
}
.page-home .home-stats__item:nth-child(1) {
  grid-column: span 2;
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--color-bg);
}
.page-home .home-stats__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}
.page-home .home-stats__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}
.page-home .home-stats__item:nth-child(1) .home-stats__label {
  color: rgba(0, 0, 0, 0.72);
}

/* ===== 驱动下载 ===== */
.page-home .home-download {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, var(--color-bg), #0f1722 100%);
  border-top: 1px solid var(--color-line);
}
.page-home .home-download__head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.page-home .home-download__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0.6rem 0 0;
}
.page-home .home-download__desc {
  color: var(--color-muted);
  line-height: 1.8;
  margin: 0;
  max-width: 40em;
}
.page-home .home-download__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.page-home .home-download__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon name"
    "icon size";
  gap: 0.4rem 0.8rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.page-home .home-download__item:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
}
.page-home .home-download__icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 168, 255, 0.15);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
}
.page-home .home-download__name {
  grid-area: name;
  align-self: end;
  font-weight: 700;
}
.page-home .home-download__size {
  grid-area: size;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
}
.page-home .home-download__support {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}
.page-home .home-download__support p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  flex: 1 1 260px;
}

/* ===== 品牌声明 ===== */
.page-home .home-trust {
  padding: clamp(2rem, 6vw, 5rem) 0;
  text-align: center;
}
.page-home .home-trust__quote {
  max-width: 34em;
  margin: 0 auto;
}
.page-home .home-trust__quote p {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.8;
  font-weight: 600;
  margin: 0;
}
.page-home .home-trust__quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}
.page-home .home-trust__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.page-home .home-trust__links a {
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 168, 255, 0.4);
}

/* ===== 动效关键帧 ===== */
@keyframes homeHeroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes homeScroll {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes homeStarPop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ===== 响应式布局 ===== */
@media (min-width: 800px) {
  .page-home .home-hero__frame-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
  .page-home .home-hero__head {
    grid-column: 1 / -1;
  }

  .page-home .home-directory__layout {
    grid-template-columns: 1fr 300px;
  }
  .page-home .home-directory__visual {
    order: 2;
    min-height: 360px;
    margin-top: 0.75rem;
  }

  .page-home .home-favorite__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .page-home .home-favorite__star {
    width: 76px;
    height: 76px;
    font-size: 2.4rem;
    top: -30px;
    right: -14px;
  }

  .page-home .home-stats__bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .home-stats__item:nth-child(1) {
    grid-row: span 2;
  }

  .page-home .home-download__head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .page-home .home-download__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 560px) {
  .page-home .home-hero__scroll {
    display: none;
  }
  .page-home .home-download__list {
    grid-template-columns: 1fr;
  }
  .page-home .home-stats__bento {
    grid-template-columns: repeat(2, 1fr);
  }
}
