.page-home {
  --home-gap: 20px;
  --home-radius: 14px;
  background: var(--color-paper);
  overflow-x: hidden;
}

/* ===== Hero 首屏 ===== */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 56px 0 52px;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.page-home .home-hero__visual {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__window {
  background: var(--color-dark-panel);
  border: 2px solid var(--color-gold);
  border-radius: var(--home-radius);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.page-home .home-hero__window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--color-dark-panel);
  border-bottom: 1px solid rgba(201, 160, 99, 0.4);
}

.page-home .home-hero__window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-red);
}

.page-home .home-hero__window-dot:nth-child(2) {
  background: var(--color-gold);
}

.page-home .home-hero__window-dot:nth-child(3) {
  background: var(--color-mid-gray);
}

.page-home .home-hero__window-url {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-light-gray);
}

.page-home .home-hero__screen {
  border-radius: 0;
  overflow: hidden;
}

.page-home .home-hero__screen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-hero__tag {
  position: absolute;
  right: 12px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-red);
  color: var(--color-white);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.page-home .home-hero__content {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__title {
  margin: 12px 0 8px;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-paper);
}

.page-home .home-hero__title span {
  display: block;
  color: var(--color-gold);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0;
}

.page-home .home-hero__lead {
  margin: 16px 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gold);
}

.page-home .home-hero__desc {
  max-width: 540px;
  margin: 0;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.82);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.page-home .home-hero__status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 28px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(201, 160, 99, 0.35);
  list-style: none;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.75);
}

.page-home .home-hero__speedline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

/* ===== 速度横幅 ===== */
.page-home .home-speedstrip-wrap {
  padding: 28px 0;
  background: var(--color-paper);
}

.page-home .home-speedstrip {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  border: 2px solid var(--color-ink);
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-soft);
}

.page-home .home-speedstrip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-speedstrip__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  min-height: 200px;
  padding: 24px;
  background: linear-gradient(90deg, rgba(11, 29, 58, 0.8), rgba(11, 29, 58, 0.14) 75%);
}

@media (min-width: 900px) {
  .page-home .home-speedstrip,
  .page-home .home-speedstrip__overlay {
    min-height: 260px;
  }
}

.page-home .home-speedstrip__text {
  margin: 0;
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-paper);
}

.page-home .home-speedstrip__link {
  margin-top: 12px;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 160, 99, 0.5);
}

/* ===== 赛事控制台 ===== */
.page-home .home-console {
  padding: 56px 0 48px;
  background: var(--color-paper);
}

.page-home .section-head {
  gap: 16px;
}

.page-home .home-console__bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--home-gap);
  margin-top: 28px;
}

.page-home .home-console__main {
  grid-column: 1 / -1;
  background: var(--color-dark-panel);
  border: 2px solid var(--color-ink);
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.page-home .home-console__stat {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 900px) {
  .page-home .home-console__stat {
    grid-column: span 3;
  }
}

.page-home .home-console__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.page-home .home-console__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-home .home-console__tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  color: var(--color-light-gray);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.page-home .home-console__radio:checked + .home-console__tab {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.page-home .home-console__panels {
  padding: 18px 16px;
}

.page-home .home-console__panel {
  display: none;
}

.page-home .home-console__panel--football {
  display: block;
}

.page-home .home-console__tabs:has(#home-tab-basketball:checked) ~ .home-console__panels .home-console__panel--football {
  display: none;
}

.page-home .home-console__tabs:has(#home-tab-basketball:checked) ~ .home-console__panels .home-console__panel--basketball {
  display: block;
}

.page-home .home-console__tabs:has(#home-tab-tennis:checked) ~ .home-console__panels .home-console__panel--football {
  display: none;
}

.page-home .home-console__tabs:has(#home-tab-tennis:checked) ~ .home-console__panels .home-console__panel--tennis {
  display: block;
}

.page-home .home-console__tabs:has(#home-tab-esports:checked) ~ .home-console__panels .home-console__panel--football {
  display: none;
}

.page-home .home-console__tabs:has(#home-tab-esports:checked) ~ .home-console__panels .home-console__panel--esports {
  display: block;
}

.page-home .home-console__tabs:has(#home-tab-multi:checked) ~ .home-console__panels .home-console__panel--football {
  display: none;
}

.page-home .home-console__tabs:has(#home-tab-multi:checked) ~ .home-console__panels .home-console__panel--multi {
  display: block;
}

.page-home .home-console__layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .page-home .home-console__layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

.page-home .home-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.page-home .home-match:last-child {
  border-bottom: 0;
}

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

.page-home .home-match__league {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.page-home .home-match__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-paper);
}

.page-home .home-match__score {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
}

.page-home .home-console__rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(201, 160, 99, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.page-home .home-entry-card__index {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  color: var(--color-red);
}

.page-home .home-entry-card__title {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-paper);
}

.page-home .home-entry-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.72);
}

.page-home .home-console__rail-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .home-console__rail-link:hover {
  color: var(--color-paper);
}

.page-home .home-console__alt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
}

.page-home .home-console__alt-sport {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-paper);
}

.page-home .home-console__alt-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.7);
}

.page-home .home-console__stat-num {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.page-home .home-console__stat-label {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.82;
}

.page-home .home-console__stat--users,
.page-home .home-console__stat--team {
  color: var(--color-ink);
}

.page-home .home-console__stat--users .home-console__stat-num,
.page-home .home-console__stat--team .home-console__stat-num {
  color: var(--color-ink);
}

.page-home .home-console__stat--peak {
  color: var(--color-paper);
}

.page-home .home-console__stat--peak .home-console__stat-num {
  color: var(--color-gold);
}

.page-home .home-console__stat--level {
  color: var(--color-ink);
}

/* ===== 收藏直达 ===== */
.page-home .home-favorites {
  padding: 56px 0 48px;
  background: var(--color-ink);
  color: var(--color-paper);
}

.page-home .home-favorites__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .page-home .home-favorites__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }
}

.page-home .home-favorites .section-title {
  color: var(--color-paper);
}

.page-home .home-favorites__lead {
  margin: 6px 0 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-gold);
}

.page-home .home-favorites__desc {
  max-width: 560px;
  margin: 0;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.8);
}

.page-home .home-favorites__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.page-home .home-favorites__visual .img-frame {
  overflow: hidden;
  border: 2px solid var(--color-gold);
  border-radius: var(--home-radius);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.28);
}

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

.page-home .home-favor-demo {
  margin-top: 24px;
  padding: 18px;
  border: 1px dashed rgba(201, 160, 99, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.page-home .home-favor-demo__match {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-home .home-favor-demo__tag {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 800;
}

.page-home .home-favor-demo__game {
  font-weight: 700;
  color: var(--color-paper);
}

.page-home .home-favor-demo__path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(245, 240, 232, 0.75);
}

.page-home .home-favor-demo__arrow {
  color: var(--color-red);
  font-weight: 900;
}

/* ===== 收藏按钮（纯CSS交互） ===== */
.page-home .home-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 6px 10px;
  border: 1px solid rgba(245, 240, 232, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  user-select: none;
}

.page-home .home-fav__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-home .home-fav__star {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-light-gray);
  stroke-width: 2;
  transition: all 0.2s;
}

.page-home .home-fav__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-light-gray);
}

.page-home .home-fav__input:checked ~ .home-fav__star {
  fill: var(--color-gold);
  stroke: var(--color-gold);
}

.page-home .home-fav__input:checked ~ .home-fav__label {
  color: var(--color-gold);
}

.page-home .home-fav__tip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 6px);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  z-index: 3;
}

.page-home .home-fav__input:checked ~ .home-fav__tip {
  display: block;
}

/* ===== 版本切换 ===== */
.page-home .home-versions {
  padding: 56px 0 48px;
  background: var(--color-paper);
}

.page-home .home-versions__grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

@media (min-width: 820px) {
  .page-home .home-versions__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.page-home .home-versions .panel {
  border-radius: var(--home-radius);
}

.page-home .home-version-switch {
  overflow: hidden;
  border: 2px solid var(--color-gold);
  border-radius: var(--home-radius);
  background: var(--color-dark-panel);
}

.page-home .home-version-switch__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  list-style: none;
  color: var(--color-paper);
  font-weight: 700;
  cursor: pointer;
}

.page-home .home-version-switch__bar::-webkit-details-marker {
  display: none;
}

.page-home .home-version-switch__bar .version-chip {
  margin-left: auto;
}

.page-home .home-version-switch__chevron {
  color: var(--color-gold);
  font-size: 18px;
  line-height: 1;
}

.page-home .home-version-switch__menu {
  margin: 0;
  padding: 8px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.page-home .home-version-switch__menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: var(--color-light-gray);
}

.page-home .home-version-switch__menu li:last-child {
  border-bottom: 0;
}

.page-home .home-version-switch__menu .is-current {
  color: var(--color-gold);
  font-weight: 800;
}

.page-home .home-version-switch__note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.7);
}

.page-home .home-versions__feature {
  padding: 22px;
}

.page-home .home-version-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-version-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 29, 58, 0.1);
  font-size: 15px;
  font-weight: 600;
}

.page-home .home-version-features li:last-child {
  border-bottom: 0;
}

.page-home .home-version-features li .num {
  min-width: 28px;
  font-weight: 900;
  color: var(--color-red);
}

/* ===== 底部常驻栏 ===== */
.page-home .home-bottombar {
  padding: 56px 0 48px;
  background: var(--color-dark-panel);
  color: var(--color-paper);
}

.page-home .home-bottombar .section-title {
  color: var(--color-paper);
}

.page-home .home-bottombar .section-desc {
  color: rgba(245, 240, 232, 0.7);
}

.page-home .home-bottombar__grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.page-home .home-bottombar__image {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-soft);
}

.page-home .home-bottombar__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-bottombar__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.page-home .home-bottombar__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-soft);
}

.page-home .home-bottombar__card.panel--gold {
  color: var(--color-ink);
}

.page-home .home-bottombar__card.panel--dark {
  background: var(--color-ink);
  color: var(--color-paper);
}

.page-home .home-bottombar__card.panel--dark .home-bottombar__card-desc {
  color: rgba(245, 240, 232, 0.72);
}

.page-home .home-bottombar__card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.page-home .home-bottombar__card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.78;
}

/* ===== 信任区 ===== */
.page-home .home-trust {
  padding: 56px 0 64px;
  background: var(--color-paper);
}

.page-home .home-trust__inner {
  padding: 32px;
  border: 2px solid var(--color-ink);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.page-home .home-trust__text {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.9;
  color: var(--color-deep-gray);
}

.page-home .home-trust__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-trust__links {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--color-mid-gray);
}

.page-home .home-trust__links a {
  margin-right: 16px;
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 29, 58, 0.2);
}

.page-home .home-trust__links a:hover {
  border-bottom-color: var(--color-ink);
}

/* ===== 深色背景下的幽灵按钮 ===== */
.page-home .home-hero .btn--ghost,
.page-home .home-favorites .btn--ghost,
.page-home .home-bottombar .btn--ghost {
  border-color: rgba(245, 240, 232, 0.45);
  color: var(--color-paper);
}
