.page-home {
  --home-cut: 16px 16px 16px 4px;
  --home-sheen: linear-gradient(160deg, rgba(22, 62, 102, 0.78) 0%, rgba(12, 38, 68, 0.92) 100%);
  --home-shadow: 0 18px 44px rgba(3, 12, 24, 0.45);
  background: var(--void);
  color: var(--mist);
  overflow-x: clip;
}

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

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(26px, 6vw, 64px) clamp(48px, 9vw, 96px);
  background:
    radial-gradient(130% 96% at 100% 0%, rgba(22, 62, 102, 0.9) 0%, rgba(7, 26, 51, 0) 60%),
    linear-gradient(180deg, var(--night) 0%, var(--void) 100%);
}

.page-home .hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.65) contrast(1.08);
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 64%);
  mask-image: linear-gradient(100deg, transparent 0%, #000 64%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: clamp(22px, 4vw, 52px);
  background: var(--void);
  clip-path: polygon(0 66%, 100% 0, 100% 100%, 0 100%);
}

.page-home .hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-home .hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.page-home .hero__copy .breadcrumbs,
.page-home .hero__copy .eyebrow {
  margin-bottom: 0;
}

.page-home .hero h1 {
  margin: 0;
  font-size: clamp(30px, 6.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--mist);
  max-width: 16em;
}

.page-home .hero .lead {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  color: var(--mist);
  opacity: 0.86;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero__compat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 44ch;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--teal);
  border-radius: var(--home-cut);
  background: var(--glass-bg);
}

.page-home .hero__compat p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
  opacity: 0.82;
}

/* ---------- 数据板 ---------- */

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

.page-home .board {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid var(--hair);
  border-radius: 20px 20px 20px 6px;
  background: var(--glass-bg);
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(10px);
  transition: background-color 0.2s var(--ease);
}

.page-home .board:hover,
.page-home .board:focus-within {
  background: var(--glass-bg-hover);
}

.page-home .board__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hair);
}

.page-home .board__title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--line);
}

.page-home .board__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
}

.page-home .board__scores {
  display: grid;
  gap: 10px;
}

.page-home .score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px 12px 12px 3px;
  background: rgba(7, 26, 51, 0.62);
  border-left: 3px solid var(--orange);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-home .score:hover,
.page-home .score:focus-within {
  transform: translateX(4px);
  background: rgba(22, 62, 102, 0.78);
}

.page-home .score__meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--line);
}

.page-home .score__val {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.page-home .score .tag {
  justify-self: start;
}

.page-home .board__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--hair);
}

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

.page-home .board__stat b {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
}

.page-home .board__stat span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--line);
}

/* ---------- 通用章节小注 ---------- */

.page-home .section-note {
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--line);
}

/* ---------- 联赛直达带 ---------- */

.page-home .league-band {
  position: relative;
  padding-block: clamp(30px, 6vw, 72px);
  background: linear-gradient(180deg, var(--void) 0%, var(--night) 100%);
}

.page-home .league-band__grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(20px, 3vw, 32px);
}

.page-home .leagues {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-home .league {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 16px 16px 14px;
  border: 1px solid var(--hair);
  border-radius: var(--home-cut);
  background: var(--home-sheen);
  color: var(--mist);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.page-home .league:hover,
.page-home .league:focus-visible {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 14px 28px rgba(3, 12, 24, 0.5);
}

.page-home .league:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.page-home .league__code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--teal);
}

.page-home .league__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .league__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--line);
}

.page-home .league__go {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange-soft);
}

.page-home .league:hover .league__go,
.page-home .league:focus-visible .league__go {
  color: var(--orange);
}

/* ---------- 媒体容器 ---------- */

.page-home .media {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--hair);
  border-radius: var(--home-cut);
  overflow: hidden;
  background: var(--glass);
}

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

.page-home .media__caption {
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--line);
  background: rgba(7, 26, 51, 0.72);
}

/* ---------- 战报速读 ---------- */

.page-home .recap {
  padding-block: clamp(30px, 6vw, 72px);
  background: var(--night);
}

.page-home .recap__grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(18px, 3vw, 28px);
}

.page-home .recap__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.page-home .recap-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  padding: 14px 16px;
  border: 1px solid var(--hair-soft);
  border-radius: 12px;
  background: rgba(7, 26, 51, 0.5);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-home .recap-item:hover {
  transform: translateX(4px);
  background: rgba(22, 62, 102, 0.6);
}

.page-home .recap-item__num {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

.page-home .recap-item__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mist);
}

.page-home .recap-item__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--line);
}

.page-home .recap__foot {
  margin: clamp(20px, 3vw, 28px) 0 0;
}

/* ---------- 移动端三步 ---------- */

.page-home .mobile {
  padding-block: clamp(30px, 6vw, 76px);
  background: linear-gradient(180deg, var(--night) 0%, var(--void) 100%);
}

.page-home .mobile__grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(18px, 3vw, 28px);
}

.page-home .track {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.page-home .track__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 14px;
  padding: 16px;
  border: 1px solid var(--hair);
  border-radius: var(--home-cut);
  background: var(--glass-bg);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-home .track__step:hover {
  transform: translateY(-3px);
  background: var(--glass-bg-hover);
}

.page-home .track__num {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px 10px 10px 3px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.page-home .track__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mist);
}

.page-home .track__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--line);
}

.page-home .mobile__media {
  max-width: 420px;
  justify-self: center;
}

/* ---------- 登录两步核实 ---------- */

.page-home .help {
  padding-block: clamp(30px, 6vw, 72px);
  background: var(--void);
}

.page-home .help__cards {
  display: grid;
  gap: 12px;
  margin-top: clamp(18px, 3vw, 26px);
}

.page-home .fix {
  min-width: 0;
  border: 1px solid var(--hair);
  border-radius: var(--home-cut);
  background: var(--home-sheen);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.page-home .fix[open] {
  border-color: var(--teal);
}

.page-home .fix > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--mist);
}

.page-home .fix > summary::-webkit-details-marker {
  display: none;
}

.page-home .fix > summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -3px;
}

.page-home .fix__step {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--teal);
}

.page-home .fix__chev {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--orange);
  transition: transform 0.2s var(--ease);
}

.page-home .fix[open] .fix__chev {
  transform: rotate(45deg);
}

.page-home .fix__body {
  padding: 0 16px 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--line);
}

.page-home .fix__body p {
  margin: 0 0 8px;
}

.page-home .fix__body p:last-child {
  margin-bottom: 0;
}

/* ---------- 收束 ---------- */

.page-home .closing {
  padding-block: clamp(28px, 5vw, 60px) clamp(40px, 7vw, 88px);
  background: linear-gradient(180deg, var(--void) 0%, var(--night) 100%);
}

.page-home .closing__card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--orange);
  border-radius: 22px 22px 22px 6px;
  background: var(--home-sheen);
}

.page-home .closing__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--mist);
}

.page-home .closing__meta {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--line);
}

.page-home .closing__meta:last-child {
  margin-bottom: 0;
}

.page-home .closing__meta .mono {
  color: var(--mist);
}

.page-home .closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 响应式 ---------- */

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

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

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

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .hero__photo {
    width: 66%;
    left: auto;
    right: 0;
  }
}

@media (min-width: 960px) {
  .page-home .league-band__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .recap__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .mobile__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-home .closing__card {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-home .closing__actions {
    justify-content: flex-end;
  }

  .page-home .mobile__media {
    justify-self: end;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .league,
  .page-home .league:hover,
  .page-home .league:focus-visible,
  .page-home .score,
  .page-home .score:hover,
  .page-home .recap-item,
  .page-home .recap-item:hover,
  .page-home .track__step,
  .page-home .track__step:hover,
  .page-home .fix__chev {
    transform: none;
    transition: none;
  }
}
