.page-home {
  --home-card-shadow: 6px 6px 0 rgba(0, 0, 0, 0.32);
  background: var(--ink);
  color: var(--paper);
}

.page-home .section {
  padding: 56px 0;
}

@media (min-width: 900px) {
  .page-home .section {
    padding: 84px 0;
  }
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 64px;
  background: var(--ink);
  isolation: isolate;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0.4;
  filter: saturate(0.6) contrast(1.06);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 31, 26, 0.74) 0%, rgba(11, 31, 26, 0.86) 52%, var(--ink) 100%);
  pointer-events: none;
}

.page-home .home-hero__slabs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.page-home .home-hero__slab {
  position: absolute;
  display: block;
}

.page-home .home-hero__slab--a {
  top: -6%;
  right: -16%;
  width: 74%;
  height: 78%;
  background: linear-gradient(150deg, rgba(53, 240, 200, 0.14), rgba(22, 51, 44, 0.92) 58%, rgba(16, 51, 44, 0.5));
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-hero__slab--b {
  bottom: -10%;
  left: -10%;
  width: 58%;
  height: 48%;
  background: linear-gradient(20deg, rgba(16, 51, 44, 0.92), rgba(22, 51, 44, 0.08));
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.page-home .home-hero__seam {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 26%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pulse) 20%, var(--pulse-soft) 58%, transparent);
  transform: rotate(-6deg);
  opacity: 0.85;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
}

.page-home .home-hero__crumbs {
  margin-bottom: 18px;
}

.page-home .home-hero__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--mute);
}

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

.page-home .home-hero__crumbs li + li::before {
  content: "/";
  color: var(--line);
}

.page-home .home-hero__crumbs a {
  color: var(--mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-home .home-hero__crumbs a:hover,
.page-home .home-hero__crumbs a:focus-visible {
  color: var(--pulse);
  border-bottom-color: var(--pulse);
}

.page-home .home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
}

.page-home .home-hero__title {
  margin: 0 0 18px;
  max-width: 17ch;
  font-size: clamp(30px, 7.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.page-home .home-hero__lede {
  max-width: 58ch;
  margin: 0 0 26px;
  color: var(--paper);
  opacity: 0.88;
}

.page-home .home-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .page-home .home-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .home-hero__stats .stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.page-home .home-hero__stats .stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 7vw, 44px);
  font-weight: 700;
  line-height: 1;
}

.page-home .home-hero__stats .stat__label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute);
}

.page-home .home-hero__spark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 62px;
  opacity: 0.6;
  pointer-events: none;
  transition: transform 0.22s ease;
}

.page-home .home-hero__sparkline {
  fill: none;
  stroke: var(--pulse);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.22s ease;
}

@media (hover: hover) {
  .page-home .home-hero__spark:hover {
    transform: translateY(-3px);
  }

  .page-home .home-hero__spark:hover .home-hero__sparkline {
    stroke: var(--pulse-soft);
  }
}

/* ---------- 区块标题 ---------- */

.page-home .home-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 68ch;
  margin-bottom: 32px;
}

.page-home .home-head__lede {
  color: var(--mute);
}

/* ---------- 比分脉冲墙 ---------- */

.page-home .home-pulse {
  background: linear-gradient(180deg, var(--ink), var(--stand) 45%, var(--ink));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

@media (min-width: 640px) {
  .page-home .home-pulse__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .page-home .home-pulse__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .score-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--home-card-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) {
  .page-home .score-card:hover {
    transform: translateY(-2px);
    border-color: var(--pulse);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.38);
  }
}

.page-home .score-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.page-home .score-card__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .score-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.page-home .score-card__team {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .score-card__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--pulse);
}

.page-home .score-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--mute);
}

.page-home .score-card__clock {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ref);
}

/* ---------- 球员数据对照 ---------- */

.page-home .home-compare__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .page-home .home-compare__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 52px;
  }
}

.page-home .home-compare__body .h2 {
  margin: 6px 0 14px;
}

.page-home .home-compare__p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mute);
}

.page-home .home-compare__list {
  display: flex;
  flex-direction: column;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.page-home .home-compare__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.65;
}

.page-home .home-compare__list .num {
  flex: none;
  padding-top: 3px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--pulse);
}

.page-home .home-compare__link {
  display: inline-block;
  font-size: 15px;
}

.page-home .home-compare__figure {
  position: relative;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.page-home .home-compare__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- 赛事索引 ---------- */

.page-home .home-leagues {
  background: var(--stand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

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

.page-home .league-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
  .page-home .league-card:hover {
    transform: translateY(-2px);
    border-color: var(--line);
    border-left-color: var(--pulse);
  }
}

.page-home .league-card__idx {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.page-home .league-card__name {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.page-home .league-card__desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mute);
}

.page-home .league-card .tag {
  margin-top: auto;
}

/* ---------- 订阅球队动态 ---------- */

.page-home .home-sub__banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 250px;
  margin-bottom: 20px;
  padding: 26px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

@media (min-width: 900px) {
  .page-home .home-sub__banner {
    min-height: 300px;
    padding: 34px 32px;
  }
}

.page-home .home-sub__banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(0.7);
}

.page-home .home-sub__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 26, 0.3), rgba(11, 31, 26, 0.94));
  pointer-events: none;
}

.page-home .home-sub__bannercopy {
  position: relative;
  z-index: 1;
  max-width: 58ch;
}

.page-home .home-sub__bannercopy .h2 {
  margin: 8px 0 12px;
}

.page-home .home-sub__bannercopy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper);
  opacity: 0.86;
}

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

@media (min-width: 768px) {
  .page-home .home-sub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .home-sub__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.page-home .home-sub__card .card__title {
  margin: 0;
  font-size: 18px;
}

.page-home .home-sub__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--mute);
}

.page-home .home-sub__card--pulse {
  background: linear-gradient(160deg, rgba(53, 240, 200, 0.12), var(--panel) 62%);
  border-color: rgba(53, 240, 200, 0.45);
}

.page-home .home-sub__cta {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- 更新节奏 ---------- */

.page-home .home-rhythm {
  border-top: 1px solid var(--line);
}

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

@media (min-width: 960px) {
  .page-home .home-rhythm__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 52px;
    align-items: start;
  }
}

.page-home .home-rhythm__body .h2 {
  margin: 6px 0 14px;
}

.page-home .home-rhythm__p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mute);
}

.page-home .home-rhythm__timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 26px 0 26px;
  padding: 0 0 0 20px;
  list-style: none;
  border-left: 1px solid var(--line);
}

.page-home .home-rhythm__timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mute);
}

.page-home .home-rhythm__timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--pulse);
  box-shadow: 0 0 0 3px rgba(53, 240, 200, 0.16);
}

.page-home .home-rhythm__year {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ref);
}

.page-home .home-rhythm__timeline strong {
  margin-right: 6px;
  font-family: var(--font-display);
  color: var(--paper);
}

.page-home .home-rhythm__more {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mute);
}

.page-home .home-rhythm__figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.page-home .home-rhythm__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .score-card,
  .page-home .league-card,
  .page-home .home-hero__spark,
  .page-home .home-hero__sparkline {
    transition: none;
  }

  .page-home .score-card:hover,
  .page-home .league-card:hover,
  .page-home .home-hero__spark:hover {
    transform: none;
  }
}
</main>
