/* =========================================================
   page-home 首页专属样式
   作用域：.page-home
   ========================================================= */
.page-home {
  --home-hero-glow: rgba(0, 166, 255, 0.2);
  --home-line-white: rgba(255, 255, 255, 0.16);
  --home-line-dark: rgba(26, 26, 26, 0.1);
}

/* ---------- 首屏 hero ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-height) + 36px) 0 52px;
  background:
    radial-gradient(circle at 82% 18%, var(--home-hero-glow), transparent 38%),
    linear-gradient(135deg, var(--c-green) 0%, var(--c-space) 100%);
  color: var(--c-white);
}

.page-home .home-hero__bg,
.page-home .home-hero__bg::after {
  position: absolute;
  inset: 0;
}

.page-home .home-hero__bg {
  z-index: -1;
  overflow: hidden;
}

.page-home .home-hero__bg::after {
  content: "";
  background: linear-gradient(180deg, rgba(11, 59, 36, 0.82), rgba(0, 51, 102, 0.86));
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.32;
  transform: scale(1.03);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
}

.page-home .home-hero__crumb {
  margin: 0 0 10px;
  font: 600 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.page-home .home-hero__crumb span {
  margin: 0 6px;
  color: var(--c-gold);
}

.page-home .home-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.page-home .home-hero .tag {
  color: var(--c-white);
  border-color: var(--home-line-white);
}

.page-home .home-hero .tag--gold {
  color: var(--c-gold);
  border-color: rgba(255, 215, 0, 0.6);
}

.page-home .home-hero__title {
  margin: 0 0 16px;
  font: 700 2.8rem/1.08 var(--font-display);
  letter-spacing: 0.02em;
}

.page-home .home-hero__title-divider {
  margin: 0 0.1em;
  color: var(--c-gold);
}

.page-home .home-hero__title strong {
  display: block;
  color: var(--c-blue);
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-home .home-hero__lead {
  max-width: 640px;
  margin: 0 0 24px;
  font: 400 1rem/1.7 var(--font-body);
  color: rgba(255, 255, 255, 0.84);
}

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

.page-home .home-hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--c-white);
}

.page-home .home-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-hero__metric strong {
  display: block;
  font: 700 1.9rem/1 var(--font-display);
  color: var(--c-white);
}

.page-home .home-hero__metric strong > span {
  font-size: 0.6em;
  color: var(--c-blue);
}

.page-home .home-hero__metric > span {
  display: block;
  margin-top: 4px;
  font: 400 0.8rem/1.4 var(--font-body);
  color: rgba(255, 255, 255, 0.66);
}

/* hero 面板 */
.page-home .home-hero__panel {
  position: relative;
  padding: 24px 22px 18px;
  border: var(--border-brutal) solid var(--home-line-white);
  background: rgba(4, 20, 34, 0.78);
  box-shadow: var(--shadow-hard);
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
}

.page-home .home-hero__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-home .home-hero__panel-title {
  font: 600 1.15rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .home-hero__coord {
  font: 400 0.7rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  color: var(--c-blue);
}

.page-home .home-hero__panel-tip {
  margin: 8px 0 6px;
  font: 400 0.78rem/1.5 var(--font-body);
  color: rgba(255, 255, 255, 0.58);
}

.page-home .home-hero__matches {
  margin-top: 10px;
  border-top: 1px solid var(--home-line-white);
}

.page-home .home-hero__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "round round possession"
    "home score away";
  gap: 3px 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--home-line-white);
  text-decoration: none;
  color: var(--c-white);
}

.page-home .home-hero__match-round {
  grid-area: round;
  font: 400 0.72rem/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.page-home .home-hero__match-possession {
  position: relative;
  grid-area: possession;
  justify-self: end;
  padding-top: 8px;
  font: 400 0.7rem/1.2 var(--font-body);
  color: rgba(255, 255, 255, 0.62);
}

.page-home .home-hero__match-possession i {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-sprout));
}

.page-home .home-hero__match-team {
  font: 500 0.98rem/1.3 var(--font-body);
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .home-hero__match-team--home {
  grid-area: home;
}

.page-home .home-hero__match-team--away {
  grid-area: away;
  text-align: right;
}

.page-home .home-hero__match-score {
  grid-area: score;
  min-width: 44px;
  font: 700 1.35rem/1 var(--font-display);
  color: var(--c-gold);
  text-align: center;
}

.page-home .home-hero__panel-cta {
  display: inline-block;
  margin-top: 14px;
  font: 600 0.85rem/1.2 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--c-blue);
  text-decoration: none;
}

.page-home .home-hero__watermark {
  position: absolute;
  z-index: 0;
  bottom: -6%;
  left: -2%;
  font: 700 clamp(9rem, 24vw, 22rem)/1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.09);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}

/* ---------- 近期战绩动态面板 ---------- */
.page-home .home-results {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-space) 0%, var(--c-green) 100%);
  color: var(--c-white);
}

.page-home .home-results .section-heading__title {
  color: var(--c-white);
}

.page-home .home-results .section-heading__meta {
  color: rgba(255, 255, 255, 0.66);
}

.page-home .home-results .section-heading__num {
  color: var(--c-blue);
}

.page-home .home-results__hint {
  margin: 18px 0 0;
  font: 400 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.page-home .home-results__track {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  padding: 4px 4px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.page-home .home-results__card {
  flex: 0 0 264px;
  scroll-snap-align: start;
  padding: 18px;
  background: var(--c-white);
  border: var(--border-brutal) solid var(--c-ink);
  box-shadow: var(--shadow-hard);
  color: var(--c-ink);
}

.page-home .home-results__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.page-home .home-results__card-live {
  font: 600 0.68rem/1.2 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-space);
}

.page-home .home-results__card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
}

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

.page-home .home-results__team--away {
  text-align: right;
}

.page-home .home-results__team-name {
  display: block;
  font: 600 0.94rem/1.3 var(--font-body);
  color: var(--c-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .home-results__team-info {
  display: block;
  margin-top: 4px;
  font: 400 0.7rem/1.2 var(--font-body);
  color: rgba(26, 26, 26, 0.6);
}

.page-home .home-results__score {
  font: 700 2rem/1 var(--font-display);
  color: var(--c-ink);
  text-align: center;
}

.page-home .home-results__score span {
  color: var(--c-blue);
}

.page-home .home-results__bar {
  height: 6px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(0, 51, 102, 0.12);
  overflow: hidden;
}

.page-home .home-results__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-sprout));
}

.page-home .home-results__footnote {
  margin: 30px 0 0;
  max-width: 740px;
  font: 400 0.92rem/1.7 var(--font-body);
  color: rgba(255, 255, 255, 0.72);
}

.page-home .home-results__journal-link {
  color: var(--c-blue);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.page-home .home-results__deco {
  position: absolute;
  right: -30px;
  bottom: 18px;
  width: 200px;
  pointer-events: none;
  opacity: 0.14;
}

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

/* ---------- 为什么选择 ---------- */
.page-home .home-why {
  background: var(--c-fog);
  color: var(--c-ink);
}

.page-home .home-why .section-heading__title,
.page-home .home-why__lead {
  color: var(--c-ink);
}

.page-home .home-why .section-heading__meta {
  color: rgba(26, 26, 26, 0.6);
}

.page-home .home-why .section-heading__num {
  color: var(--c-blue);
}

.page-home .home-why__grid {
  display: grid;
  gap: 34px;
}

.page-home .home-why__lead {
  margin: 0 0 26px;
  font: 500 1.12rem/1.7 var(--font-body);
  color: rgba(26, 26, 26, 0.82);
}

.page-home .home-why__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-home .home-why__bars {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.page-home .home-why__bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  font: 400 0.78rem/1.2 var(--font-body);
  color: rgba(26, 26, 26, 0.68);
}

.page-home .home-why__bar-row > span:last-child {
  position: relative;
  display: flex;
  align-items: center;
  height: 20px;
  padding-left: 10px;
  border-radius: 999px;
  background: rgba(0, 51, 102, 0.08);
  overflow: hidden;
}

.page-home .home-why__bar-row i {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-sprout));
  opacity: 0.24;
}

.page-home .home-why__bar-row em {
  position: relative;
  z-index: 1;
  font: 600 0.75rem/1.2 var(--font-body);
  font-style: normal;
  color: var(--c-space);
}

.page-home .home-why__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-top: 2px solid var(--home-line-dark);
  list-style: none;
  font: 400 0.8rem/1.4 var(--font-body);
  color: rgba(26, 26, 26, 0.68);
}

.page-home .home-why__certs li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-home .home-why__certs li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
}

/* ---------- 合作伙伴注册流程 ---------- */
.page-home .home-process {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 215, 0, 0.14), transparent 34%),
    linear-gradient(145deg, var(--c-space) 0%, var(--c-green) 100%);
  color: var(--c-white);
}

.page-home .home-process .section-heading__title {
  color: var(--c-white);
}

.page-home .home-process .section-heading__meta {
  color: rgba(255, 255, 255, 0.62);
}

.page-home .home-process .section-heading__num {
  color: var(--c-gold);
}

.page-home .home-process__grid {
  display: grid;
  gap: 36px;
}

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

.page-home .home-process__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--home-line-white);
}

.page-home .home-process__step-num {
  font: 700 2.4rem/1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}

.page-home .home-process__step h3 {
  margin: 0 0 6px;
  font: 600 1.06rem/1.3 var(--font-display);
  color: var(--c-white);
}

.page-home .home-process__step p {
  margin: 0;
  font: 400 0.9rem/1.6 var(--font-body);
  color: rgba(255, 255, 255, 0.72);
}

.page-home .home-process__aside {
  align-self: start;
  padding: 24px;
  border: var(--border-brutal) solid var(--home-line-white);
  background: rgba(4, 20, 34, 0.74);
  box-shadow: var(--shadow-hard);
  clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
}

.page-home .home-process__aside img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.page-home .home-process__aside p {
  margin: 0 0 18px;
  font: 400 0.92rem/1.65 var(--font-body);
  color: rgba(255, 255, 255, 0.8);
}

.page-home .home-process__aside-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.page-home .home-process__text-link {
  font: 600 0.85rem/1.2 var(--font-body);
  color: var(--c-blue);
  text-decoration: none;
}

/* ---------- 赛事数据服务特色 ---------- */
.page-home .home-features {
  background: var(--c-fog);
  color: var(--c-ink);
}

.page-home .home-features .section-heading__title {
  color: var(--c-ink);
}

.page-home .home-features .section-heading__meta {
  color: rgba(26, 26, 26, 0.6);
}

.page-home .home-features .section-heading__num {
  color: var(--c-blue);
}

.page-home .home-features__grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.page-home .home-features__card {
  position: relative;
  min-height: 220px;
  padding: 26px 24px 24px;
  background: var(--c-white);
  border: var(--border-brutal) solid var(--c-ink);
  box-shadow: var(--shadow-hard);
}

.page-home .home-features__card svg {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--c-blue);
}

.page-home .home-features__card h3 {
  margin: 0 0 10px;
  font: 600 1.12rem/1.35 var(--font-display);
  color: var(--c-ink);
}

.page-home .home-features__card p {
  margin: 0;
  font: 400 0.88rem/1.65 var(--font-body);
  color: rgba(26, 26, 26, 0.72);
}

.page-home .home-features__link {
  display: inline-block;
  margin-top: 16px;
  font: 600 0.8rem/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
  text-decoration: none;
}

/* ---------- 底部品牌背景 ---------- */
.page-home .home-outro {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 360px;
  overflow: hidden;
  background: var(--c-green);
}

.page-home .home-outro__media {
  position: absolute;
  inset: 0;
}

.page-home .home-outro__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.page-home .home-outro__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-home .home-outro__card {
  max-width: 680px;
  padding: 30px;
  border-left: var(--border-brutal) solid var(--c-blue);
  background: rgba(4, 20, 34, 0.84);
  box-shadow: var(--shadow-hard);
  color: var(--c-white);
}

.page-home .home-outro__card p {
  margin: 18px 0 22px;
  font: 400 0.95rem/1.7 var(--font-body);
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .home-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .page-home .home-hero {
    padding: calc(var(--header-height) + 80px) 0 92px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr);
    gap: 64px;
    align-items: center;
  }

  .page-home .home-hero__bg::after {
    background: linear-gradient(90deg, rgba(11, 59, 36, 0.94) 0%, rgba(11, 59, 36, 0.72) 46%, rgba(0, 51, 102, 0.52) 100%);
  }

  .page-home .home-hero__img {
    opacity: 0.6;
    object-position: 15% center;
  }

  .page-home .home-hero__title {
    font-size: clamp(3.4rem, 5.6vw, 5.2rem);
  }

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

  .page-home .home-why__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 64px;
  }

  .page-home .home-why__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-process__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.6fr);
    gap: 60px;
    align-items: start;
  }

  .page-home .home-outro {
    min-height: 420px;
  }

  .page-home .home-outro__card {
    padding: 40px 44px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .page-home .home-results__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .page-home .home-results__card {
    flex: unset;
  }
}

@media (min-width: 1200px) {
  .page-home .home-results__track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .page-home .home-results__card {
    flex: unset;
  }

  .page-home .home-features__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
