.page-home {
  --home-hero-bg: linear-gradient(135deg, var(--color-navy) 0%, var(--color-grad-d) 100%);
  --home-lineup-bg: linear-gradient(120deg, var(--color-grad-d) 0%, var(--color-navy) 100%);
  background: var(--color-canvas);
}

/* ---------- 首屏分屏 ---------- */
.page-home .home-hero {
  position: relative;
  background: var(--home-hero-bg);
  color: var(--color-white);
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 247, 250, 0.1);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 247, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 250, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(255, 107, 10, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-6);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.page-home .home-hero__content {
  max-width: 44rem;
}

.page-home .home-hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-orange);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 8px 14px;
  margin: 0 0 var(--space-4);
}

.page-home .home-hero h1 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(2.9rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}

.page-home .home-hero__lead {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(244, 247, 250, 0.82);
  max-width: 34em;
  margin: 0 0 var(--space-5);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.page-home .home-hero__stats {
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0 0;
  border-top: 1px solid rgba(244, 247, 250, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.page-home .home-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .home-hero__stats strong {
  font-family: var(--font-numeric);
  font-weight: 900;
  font-size: 28px;
  color: var(--color-orange);
}

.page-home .home-hero__stats span {
  font-size: 13px;
  color: rgba(244, 247, 250, 0.66);
}

.page-home .home-hero__visual {
  position: relative;
}

.page-home .home-hero__panel {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(244, 247, 250, 0.06);
  outline: 1px solid rgba(244, 247, 250, 0.22);
  outline-offset: -1px;
  overflow: hidden;
}

.page-home .home-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.page-home .home-hero__chart {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}

.page-home .home-hero__v4tag {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: var(--space-4);
  background: var(--color-orange);
  color: var(--color-navy);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  letter-spacing: 0.04em;
}

/* ---------- 通用区块索引与标题 ---------- */
.page-home .home-section__index {
  margin: 0 0 var(--space-2);
  font-family: var(--font-numeric);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-orange);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 2.4rem;
  line-height: 1;
}

.page-home h2 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}

/* ---------- 回访老用户 · 收藏赛事 ---------- */
.page-home .home-fav {
  background: var(--color-canvas);
  color: var(--color-ink);
}

.page-home .home-fav__inner {
  display: grid;
  gap: var(--space-6);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.page-home .home-fav__visual {
  background: var(--color-navy);
  display: block;
}

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

.page-home .home-fav__content p {
  line-height: 1.8;
  max-width: 40em;
}

.page-home .home-fav__steps {
  list-style: none;
  margin: var(--space-4) 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .home-fav__steps li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 42, 74, 0.14);
  font-size: 15px;
}

.page-home .home-fav__steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- 战报对照V4入口 ---------- */
.page-home .home-v4 {
  background: var(--color-navy);
  color: var(--color-white);
}

.page-home .home-v4 .home-section__index {
  color: var(--color-gold);
}

.page-home .home-v4__head {
  max-width: 58rem;
}

.page-home .home-v4__head p {
  color: rgba(244, 247, 250, 0.74);
  line-height: 1.8;
  max-width: 60ch;
}

.page-home .home-v4__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(245, 166, 35, 0.5);
  padding: 7px 14px;
  color: var(--color-gold);
  font-size: 14px;
  margin: var(--space-3) 0 var(--space-4);
}

.page-home .home-v4__dot {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  display: inline-block;
}

.page-home .home-v4__stage {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.page-home .home-v4__report {
  background: rgba(244, 247, 250, 0.06);
  outline: 1px solid rgba(244, 247, 250, 0.14);
  padding: var(--space-5);
}

.page-home .home-v4__league {
  font-size: 13px;
  color: rgba(244, 247, 250, 0.55);
  margin: 0 0 var(--space-4);
  letter-spacing: 0.05em;
}

.page-home .home-v4__team {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 28px;
  margin: 0 0 var(--space-4);
}

.page-home .home-v4__data {
  margin: 0;
  display: grid;
}

.page-home .home-v4__data div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(244, 247, 250, 0.1);
}

.page-home .home-v4__data dt {
  color: rgba(244, 247, 250, 0.6);
  font-size: 14px;
}

.page-home .home-v4__data dd {
  margin: 0;
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-gold);
}

.page-home .home-v4__score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.page-home .home-v4__score-label {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(244, 247, 250, 0.55);
  margin: 0;
}

.page-home .home-v4__score-num {
  margin: 0;
  font-family: var(--font-numeric);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--color-orange);
}

.page-home .home-v4__sync-static {
  margin: var(--space-4) 0 0;
  color: rgba(244, 247, 250, 0.6);
  font-size: 14px;
}

.page-home .home-v4__expand {
  margin-top: var(--space-4);
  border-top: 1px solid rgba(244, 247, 250, 0.14);
  padding-top: var(--space-3);
}

.page-home .home-v4__expand-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-orange);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-home .home-v4__expand-btn::before {
  content: "+";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--color-orange);
  color: var(--color-navy);
  font-weight: 900;
  text-align: center;
  line-height: 20px;
}

.page-home .detail__content {
  display: block;
}

.page-home .home-v4__sync,
.page-home .home-lineup__more {
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: rgba(244, 247, 250, 0.06);
  color: rgba(244, 247, 250, 0.78);
  line-height: 1.8;
  font-size: 15px;
  max-width: 70ch;
}

.page-home .home-v4__sync p,
.page-home .home-lineup__more p {
  margin: 0;
}

/* ---------- 联赛专题矩阵 ---------- */
.page-home .home-leagues {
  position: relative;
  background: var(--color-grad-d);
  color: var(--color-white);
  overflow: hidden;
}

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

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

.page-home .home-leagues__content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.page-home .home-leagues__lead {
  max-width: 52rem;
  color: rgba(244, 247, 250, 0.7);
  line-height: 1.8;
}

.page-home .home-leagues__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: var(--space-5);
  background: rgba(244, 247, 250, 0.14);
}

.page-home .home-leagues__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 150px;
  padding: var(--space-5);
  background: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.page-home .home-leagues__card:hover,
.page-home .home-leagues__card:focus-visible {
  background: var(--color-orange);
  color: var(--color-navy);
}

.page-home .home-leagues__name {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.02em;
  margin: 0;
}

.page-home .home-leagues__focus {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-gold);
  opacity: 0.72;
  transform: translateY(4px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), color var(--duration) var(--ease);
}

.page-home .home-leagues__card:hover .home-leagues__focus,
.page-home .home-leagues__card:focus-visible .home-leagues__focus {
  opacity: 1;
  transform: translateY(0);
  color: var(--color-navy);
}

/* ---------- 体育赛事订阅栏目 ---------- */
.page-home .home-sub {
  background: var(--color-canvas);
  color: var(--color-ink);
}

.page-home .home-sub__head {
  max-width: 54rem;
}

.page-home .home-sub__head > p {
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.72);
}

.page-home .home-sub__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(11, 42, 74, 0.14);
}

.page-home .home-sub__filter {
  border: 1px solid var(--color-navy);
  background: transparent;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.page-home .home-sub__filter:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.page-home .home-sub__filter.is-active {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-white);
}

.page-home .home-sub__list {
  display: grid;
  gap: 0;
  margin-bottom: var(--space-5);
  border-top: 1px solid rgba(11, 42, 74, 0.2);
}

.page-home .home-sub__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(11, 42, 74, 0.14);
}

.page-home .home-sub__item.is-hidden {
  display: none;
}

.page-home .home-sub__name {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 20px;
  margin: 0;
  min-width: 56px;
}

.page-home .home-sub__tag {
  font-size: 12px;
  border: 1px solid var(--color-navy);
  padding: 2px 8px;
  color: var(--color-navy);
  line-height: 1.6;
}

.page-home .home-sub__form {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.page-home .home-sub__form i {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--color-gold);
}

.page-home .home-sub__form i.is-w {
  background: var(--color-orange);
}

.page-home .home-sub__form i.is-d {
  background: var(--color-gold);
}

.page-home .home-sub__form i.is-l {
  background: var(--color-red);
}

.page-home .home-sub__meta {
  font-family: var(--font-numeric);
  font-size: 14px;
  color: rgba(26, 26, 26, 0.72);
  min-width: 92px;
}

.page-home .home-sub__visual {
  background: var(--color-navy);
  display: block;
}

.page-home .home-sub__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* ---------- 两步阵容确认 ---------- */
.page-home .home-lineup {
  background: var(--home-lineup-bg);
  color: var(--color-white);
}

.page-home .home-lineup__inner {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.page-home .home-lineup__lead {
  max-width: 54rem;
  color: rgba(244, 247, 250, 0.72);
  line-height: 1.8;
}

.page-home .home-lineup__steps {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: var(--space-3);
  align-items: center;
  margin: var(--space-5) 0 var(--space-3);
}

.page-home .home-lineup__step {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  background: rgba(244, 247, 250, 0.07);
  outline: 1px solid rgba(244, 247, 250, 0.14);
}

.page-home .home-lineup__step-num {
  display: block;
  font-family: var(--font-numeric);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1;
  color: var(--color-orange);
  margin-bottom: var(--space-2);
}

.page-home .home-lineup__step-text {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 18px;
}

.page-home .home-lineup__arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .home-lineup__arrow::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-gold) 80%, transparent);
}

.page-home .home-lineup__arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
  transform: translateY(-50%) rotate(45deg);
}

.page-home .home-lineup__detail {
  margin: var(--space-4) 0;
}

.page-home .home-lineup__btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-orange);
  cursor: pointer;
}

.page-home .home-lineup__cta {
  margin: var(--space-3) var(--space-3) 0 0;
}

.page-home .home-lineup__note {
  color: rgba(244, 247, 250, 0.55);
  font-size: 13px;
  margin-top: var(--space-3);
}

/* ---------- 信任脚注 ---------- */
.page-home .home-trust {
  background: var(--color-canvas);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(11, 42, 74, 0.12);
}

.page-home .home-trust__inner {
  display: grid;
  gap: var(--space-2);
  color: rgba(26, 26, 26, 0.68);
  font-size: 13px;
  line-height: 1.7;
  max-width: 62rem;
}

/* ---------- 桌面端优化 ---------- */
@media (min-width: 860px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: var(--space-7);
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .page-home .home-hero__lead {
    font-size: 18px;
  }

  .page-home .home-hero__stats strong {
    font-size: 34px;
  }

  .page-home .home-fav__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-7);
  }

  .page-home .home-v4__stage {
    grid-template-columns: 1fr 200px 1fr;
    align-items: stretch;
  }
}

@media (min-width: 640px) {
  .page-home .home-leagues__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .page-home .home-leagues__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
