/* ===== 页面作用域基座 ===== */
.page-home {
  background: var(--deep-space);
  color: var(--text-light);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ===== 首屏 · 多块拼贴 ===== */
.page-home .home-hero {
  position: relative;
  padding: 28px 0 44px;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(155, 89, 246, 0.20), transparent 44%),
    radial-gradient(ellipse at 88% 4%, rgba(255, 107, 53, 0.12), transparent 36%),
    var(--deep-space);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 8% 22%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 18% 68%, rgba(214, 179, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 32% 36%, rgba(255, 209, 102, 0.5), transparent),
    radial-gradient(1px 1px at 52% 14%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 76% 44%, rgba(155, 89, 246, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 94% 74%, rgba(255, 107, 53, 0.4), transparent);
}

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

.page-home .home-hero__decor {
  pointer-events: none;
}

.page-home .home-hero__orbit {
  position: absolute;
  top: 28px;
  right: -120px;
  width: 640px;
  height: 320px;
  opacity: 0.9;
}

.page-home .home-hero__title {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  background: linear-gradient(93deg, var(--white) 10%, var(--lavender) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .home-hero__slogan {
  margin: 10px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--text-deep);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 30px;
  align-items: stretch;
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 28px;
  }
}

/* ===== 首屏赛事大卡 ===== */
.page-home .hero-match {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--galaxy);
  border: 1px solid rgba(155, 89, 246, 0.24);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.page-home .hero-match:hover {
  border-color: rgba(155, 89, 246, 0.55);
  box-shadow: 0 0 32px var(--glow);
}

.page-home .hero-match__frame {
  position: relative;
  overflow: hidden;
}

.page-home .hero-match__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.page-home .hero-match__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 18px 20px;
  background: linear-gradient(to top, rgba(11, 16, 38, 0.96) 8%, rgba(11, 16, 38, 0.55) 62%, transparent);
}

.page-home .hero-match__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.page-home .hero-match__league {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--lavender);
}

.page-home .hero-match__scorebox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.page-home .hero-match__team {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-light);
}

.page-home .hero-match__score {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.page-home .hero-match__meta {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-deep);
  text-align: center;
  letter-spacing: 0.06em;
}

.page-home .hero-match__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 22px;
}

.page-home .hero-match__desc {
  max-width: 380px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-deep);
}

/* ===== 首屏快捷服务 ===== */
.page-home .hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .hero-actions__label {
  margin: 0 2px 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-deep);
}

.page-home .hero-action {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(26, 42, 90, 0.72);
  border: 1px solid rgba(155, 89, 246, 0.18);
  text-decoration: none;
  color: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.page-home .hero-action:hover {
  border-color: rgba(155, 89, 246, 0.75);
  background: rgba(30, 48, 104, 0.9);
  box-shadow: 0 0 28px var(--glow);
}

.page-home .hero-action__idx {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  color: var(--orange);
  opacity: 0.9;
}

.page-home .hero-action__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-home .hero-action__tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--lavender);
  text-transform: uppercase;
}

.page-home .hero-action__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: var(--white);
}

.page-home .hero-action__note {
  font-size: 12px;
  color: var(--text-deep);
}

.page-home .hero-action__arrow {
  font-size: 22px;
  color: var(--orange);
  font-weight: 700;
}

.page-home .hero-action--merge {
  background: linear-gradient(135deg, rgba(155, 89, 246, 0.2), rgba(26, 42, 90, 0.9) 70%);
  border-color: rgba(155, 89, 246, 0.44);
}

.page-home .hero-action--download {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-home .hero-action--download .hero-action__idx {
  position: absolute;
  top: 10px;
  right: 14px;
}

.page-home .hero-action__thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
}

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

.page-home .hero-action--download .hero-action__body {
  flex: 1 1 180px;
}

.page-home .hero-action--download .btn {
  margin-top: 8px;
  align-self: flex-start;
}

/* ===== 平台关键数据 ===== */
.page-home .home-kpi {
  padding: 30px 0;
  border-bottom: 1px solid rgba(155, 89, 246, 0.12);
  background: linear-gradient(180deg, rgba(26, 42, 90, 0.24), transparent);
}

.page-home .home-kpi__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (min-width: 760px) {
  .page-home .home-kpi__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.page-home .data-kpi {
  padding: 20px 12px 18px;
  text-align: center;
  background: rgba(26, 42, 90, 0.54);
  border: 1px solid rgba(155, 89, 246, 0.14);
  border-radius: 16px;
}

.page-home .data-kpi__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.1;
  color: var(--orange);
}

.page-home .data-kpi__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-deep);
}

/* ===== 热门赛事速览 ===== */
.page-home .home-matches {
  padding: 40px 0 44px;
}

.page-home .section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.page-home .home-matches__groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .page-home .home-matches__groups {
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
  }
}

.page-home .home-matches__groupbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-home .home-matches__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}

.page-home .home-matches__pulse--muted {
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(155, 89, 246, 0.14);
}

.page-home .home-matches__groupname {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
}

.page-home .home-matches__groupmeta {
  font-size: 12px;
  color: var(--text-deep);
}

.page-home .home-matches__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .match-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "league round status"
    "home score away";
  gap: 4px 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(26, 42, 90, 0.5);
  border: 1px solid rgba(155, 89, 246, 0.1);
  text-decoration: none;
  color: var(--text-light);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.page-home .match-row:hover {
  background: rgba(26, 42, 90, 0.95);
  border-color: rgba(155, 89, 246, 0.7);
  box-shadow: 0 0 22px var(--glow);
}

.page-home .match-row__league {
  grid-area: league;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: var(--white);
}

.page-home .match-row__round {
  grid-area: round;
  font-size: 12px;
  color: var(--text-deep);
}

.page-home .match-row__team {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.page-home .match-row__team--home {
  grid-area: home;
  text-align: right;
}

.page-home .match-row__score {
  grid-area: score;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--yellow);
  white-space: nowrap;
}

.page-home .match-row__vs {
  grid-area: score;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-deep);
}

.page-home .match-row__team--away {
  grid-area: away;
}

.page-home .match-row__status {
  grid-area: status;
  justify-self: end;
  font-size: 12px;
  color: var(--orange);
  background: rgba(255, 107, 53, 0.1);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.page-home .match-row--live .match-row__status {
  color: var(--yellow);
  background: rgba(255, 209, 102, 0.12);
}

@media (min-width: 760px) {
  .page-home .match-row {
    grid-template-columns: 88px 108px 1fr 76px 1fr 116px;
    grid-template-areas: "league round home score away status";
    gap: 8px 10px;
    padding: 12px 18px;
  }

  .page-home .match-row__league {
    text-align: center;
  }

  .page-home .match-row__status {
    text-align: center;
    justify-self: center;
  }
}

/* ===== 联赛专题推荐 ===== */
.page-home .home-leagues {
  position: relative;
  padding: 44px 0 50px;
  background: linear-gradient(120deg, rgba(26, 42, 90, 0.4), rgba(11, 16, 38, 0.8)), var(--deep-space);
}

.page-home .home-leagues .section-head {
  margin-bottom: 22px;
}

.page-home .home-leagues__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 820px) {
  .page-home .home-leagues__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.page-home .home-league-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(160deg, rgba(26, 42, 90, 0.9), rgba(11, 16, 38, 0.85));
  border: 1px solid rgba(155, 89, 246, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.page-home .home-league-card:hover {
  border-color: rgba(155, 89, 246, 0.8);
  box-shadow: 0 0 30px var(--glow);
  transform: scale(1.02);
}

.page-home .home-league-card__media {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-bottom: 1px solid rgba(155, 89, 246, 0.16);
}

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

.page-home .home-league-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 18px 20px;
}

.page-home .home-league-card__meta {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.page-home .home-league-card__count {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: var(--orange);
}

.page-home .home-league-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
}

.page-home .home-league-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-deep);
}

.page-home .home-league-card .card__link {
  margin-top: 6px;
  font-weight: 600;
  color: var(--lavender);
  text-decoration: none;
}

.page-home .home-league-card .card__link:hover {
  color: var(--white);
}

/* ===== 球队资料最新动态 ===== */
.page-home .home-teams {
  padding: 44px 0 48px;
}

.page-home .home-teams__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 820px) {
  .page-home .home-teams__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.page-home .team-update {
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(26, 42, 90, 0.6);
  border: 1px solid rgba(155, 89, 246, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.page-home .team-update:hover {
  border-color: rgba(155, 89, 246, 0.7);
  box-shadow: 0 0 26px var(--glow);
}

.page-home .team-update__media {
  min-height: 140px;
  overflow: hidden;
}

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

.page-home .team-update__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
}

.page-home .team-update__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
}

.page-home .team-update__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-deep);
}

.page-home .team-update__meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lavender);
  background: rgba(155, 89, 246, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
}

.page-home .team-update .card__link {
  margin-top: 4px;
  font-weight: 600;
  color: var(--lavender);
  text-decoration: none;
}

.page-home .team-update .card__link:hover {
  color: var(--white);
}

@media (min-width: 720px) {
  .page-home .team-update {
    grid-template-columns: 220px 1fr;
  }

  .page-home .team-update__media {
    min-height: 100%;
  }
}

/* ===== 平台版本更新提示 ===== */
.page-home .home-version {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 107, 53, 0.12), transparent 32%),
    radial-gradient(circle at 12% 60%, rgba(155, 89, 246, 0.18), transparent 40%),
    var(--deep-space);
  border-top: 1px solid rgba(155, 89, 246, 0.14);
}

.page-home .home-version::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 32%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 66% 18%, rgba(214, 179, 255, 0.4), transparent),
    radial-gradient(1px 1px at 82% 66%, rgba(255, 209, 102, 0.3), transparent);
  pointer-events: none;
}

.page-home .home-version__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 40px 0;
}

@media (min-width: 840px) {
  .page-home .home-version__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

.page-home .home-version__badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(214, 179, 255, 0.32);
  background: radial-gradient(circle, rgba(155, 89, 246, 0.36), rgba(26, 42, 90, 0.72));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-home .home-version__v {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--orange);
}

.page-home .home-version__tick {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--lavender);
}

.page-home .home-version__content {
  max-width: 640px;
}

.page-home .home-version__content .kicker {
  margin-bottom: 6px;
}

.page-home .home-version__content h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  color: var(--white);
}

.page-home .home-version__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-deep);
}

.page-home .home-version__cta {
  flex-shrink: 0;
}
