.page-home {
  --hm-r: 26px;
  --hm-line: rgba(140, 136, 119, 0.42);
}

/* ---------- 顶部上下文条 ---------- */
.page-home .hm-context {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 32px) 6px;
}

.page-home .hm-context__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--stone);
}

.page-home .hm-context__brand {
  color: var(--grass);
  font-weight: 600;
}

.page-home .hm-context__sep {
  color: var(--stone-lift);
}

/* ---------- 框景首屏 ---------- */
.page-home .hm-hero {
  padding: 6px clamp(12px, 3vw, 28px) clamp(44px, 7vw, 88px);
}

.page-home .hm-frame {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border: var(--frame) solid var(--ink);
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--night);
}

.page-home .hm-frame__tick {
  position: absolute;
  z-index: 5;
  width: 30px;
  height: 30px;
  border: 0 solid var(--neon);
  opacity: 0.8;
  pointer-events: none;
}

.page-home .hm-frame__tick--tl {
  top: 16px;
  left: 16px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.page-home .hm-frame__tick--tr {
  top: 16px;
  right: 16px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.page-home .hm-frame__tick--bl {
  bottom: 16px;
  left: 16px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.page-home .hm-frame__tick--br {
  bottom: 16px;
  right: 16px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

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

.page-home .hm-hero__bg .media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.85) contrast(1.06);
}

.page-home .hm-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(158deg, rgba(14, 31, 25, 0.94) 0%, rgba(14, 31, 25, 0.68) 46%, rgba(20, 53, 42, 0.92) 100%);
}

.page-home .hm-hero__body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
  padding: clamp(28px, 5vw, 64px);
}

.page-home .hm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 6px 15px;
  border: 1px solid rgba(31, 214, 208, 0.42);
  border-radius: var(--r-pill);
  background: rgba(31, 214, 208, 0.08);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--neon);
}

.page-home .hm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  animation: hm-pulse 1.6s infinite;
}

@keyframes hm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 214, 208, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(31, 214, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 214, 208, 0); }
}

.page-home .hm-title {
  margin: 16px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(38px, 7.4vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}

.page-home .hm-lead {
  max-width: 48ch;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: rgba(247, 241, 227, 0.82);
}

.page-home .hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .hm-score {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  margin-top: clamp(26px, 4vw, 42px);
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(247, 241, 227, 0.18);
  border-radius: var(--r-card);
  background: rgba(14, 31, 25, 0.55);
}

.page-home .hm-score__side {
  display: grid;
  gap: 4px;
}

.page-home .hm-score__side--r {
  text-align: right;
}

.page-home .hm-score__name {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .hm-score__sub {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(247, 241, 227, 0.58);
}

.page-home .hm-score__mid {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.page-home .hm-score__digit {
  font-family: var(--font-mono);
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.page-home .hm-score__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--neon);
}

.page-home .hm-score__state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  animation: hm-pulse 1.6s infinite;
}

/* ---------- 首屏悬浮数据卡片 ---------- */
.page-home .hm-panel {
  align-self: start;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid rgba(31, 214, 208, 0.34);
  border-radius: var(--r-card);
  background: rgba(20, 53, 42, 0.86);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.9);
}

.page-home .hm-panel__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--neon);
}

.page-home .hm-panel__big {
  margin: 12px 0 4px;
  font-family: var(--font-mono);
  font-size: clamp(46px, 8vw, 68px);
  font-weight: 700;
  line-height: 1;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.page-home .hm-panel__cap {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(247, 241, 227, 0.66);
}

.page-home .hm-panel__list {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .hm-panel__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(247, 241, 227, 0.16);
  font-size: 13.5px;
}

.page-home .hm-panel__list li span {
  color: rgba(247, 241, 227, 0.64);
}

.page-home .hm-panel__list li b {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

/* ---------- 章节通用骨架 ---------- */
.page-home .hm-sec {
  padding: clamp(52px, 8vw, 110px) 0;
}

.page-home .hm-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-home .hm-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--clay);
}

.page-home .hm-num--neon {
  color: var(--neon);
}

.page-home .hm-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.page-home .hm-head__lead {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.78;
  color: var(--ink-soft);
}

/* ---------- 01 当轮看板 ---------- */
.page-home .hm-board__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-board__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--hm-line);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.page-home .hm-board__match {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .hm-board__match b {
  margin: 0 8px;
  font-family: var(--font-mono);
  font-size: 1.2em;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}

.page-home .hm-board__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone);
}

.page-home .hm-board__meta--live {
  color: var(--grass);
}

/* ---------- 02 费用入口 ---------- */
.page-home .hm-fee {
  border-top: 1px solid var(--hm-line);
  border-bottom: 1px solid var(--hm-line);
  background: linear-gradient(180deg, rgba(46, 158, 99, 0.08), rgba(232, 117, 58, 0.07));
}

.page-home .hm-fee__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.page-home .hm-steps {
  display: grid;
  gap: 16px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: hmstep;
}

.page-home .hm-steps li {
  position: relative;
  padding-left: 52px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.page-home .hm-steps li::before {
  counter-increment: hmstep;
  content: "0" counter(hmstep);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 26px;
  border: 1px solid rgba(192, 73, 42, 0.42);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--clay);
}

.page-home .hm-fee__fig {
  margin: 0;
}

.page-home .hm-fee__fig .media__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hm-line);
  border-radius: var(--r-media);
}

.page-home .hm-fee__fig .media__cap,
.page-home .hm-fig .media__cap {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--stone);
}

/* ---------- 03 球员名录 ---------- */
.page-home .hm-roster__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
}

.page-home .hm-roster__acc {
  display: grid;
  gap: 12px;
}

.page-home .hm-roster__acc .acc__item {
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.page-home .hm-roster__acc .acc__btn {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: var(--r-card);
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 4px 0 0 transparent;
  transition: box-shadow 0.32s var(--ease), background 0.32s var(--ease);
}

.page-home .hm-roster__acc .acc__btn[aria-expanded="true"] {
  box-shadow: inset 4px 0 0 var(--grass);
  background: rgba(46, 158, 99, 0.06);
}

.page-home .hm-roster__no {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}

.page-home .hm-roster__name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .hm-roster__val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--grass);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.page-home .hm-roster__acc .acc__body {
  padding: 0 20px 20px 74px;
  font-size: 14.5px;
  line-height: 1.76;
  color: var(--ink-soft);
}

.page-home .hm-fig {
  margin: 0;
}

.page-home .hm-fig .media__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-media);
  object-fit: cover;
}

/* ---------- 04 联赛切换带 ---------- */
.page-home .hm-rail {
  display: flex;
  gap: 10px;
  margin: 0 0 clamp(24px, 4vw, 38px);
  padding: 4px 2px 14px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-home .hm-rail__chip {
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 1px solid var(--hm-line);
  border-radius: var(--r-pill);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.page-home .hm-rail__chip--on {
  border-color: var(--grass);
  background: var(--grass);
  color: #fff;
}

/* ---------- 05 刷新与本地覆盖 ---------- */
.page-home .hm-live {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
}

.page-home .hm-live::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 68% at 10% 0%, rgba(31, 214, 208, 0.15), transparent 70%),
    radial-gradient(52% 62% at 94% 100%, rgba(232, 117, 58, 0.18), transparent 72%);
}

.page-home .hm-live .wrap {
  position: relative;
  z-index: 1;
}

.page-home .hm-head--dark .hm-head__title {
  color: var(--paper);
}

.page-home .hm-head--dark .hm-head__lead {
  color: rgba(247, 241, 227, 0.76);
}

.page-home .hm-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 clamp(26px, 4vw, 42px);
}

.page-home .hm-stat {
  padding-left: 16px;
  border-left: 2px solid rgba(31, 214, 208, 0.5);
}

.page-home .hm-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.page-home .hm-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.62;
  color: rgba(247, 241, 227, 0.66);
}

.page-home .hm-live__foot {
  display: grid;
  gap: 20px;
  align-items: start;
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid rgba(247, 241, 227, 0.16);
}

.page-home .hm-live__note {
  max-width: 66ch;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(247, 241, 227, 0.8);
}

/* ---------- 06 下一步 ---------- */
.page-home .hm-next__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .hm-next__card {
  display: grid;
  gap: 10px;
  padding: 22px 20px;
  border: 1px solid var(--hm-line);
  border-radius: var(--r-card);
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.page-home .hm-next__card:hover,
.page-home .hm-next__card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--grass);
  box-shadow: var(--shadow-card);
}

.page-home .hm-next__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--clay);
}

.page-home .hm-next__name {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .hm-next__desc {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.page-home .hm-next__cta {
  margin: clamp(28px, 4vw, 42px) 0 0;
  text-align: center;
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-home .hm-score {
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
  }
}

@media (min-width: 760px) {
  .page-home .hm-board__row {
    grid-template-columns: 148px minmax(0, 1fr) 210px;
    align-items: center;
    gap: 20px;
  }

  .page-home .hm-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 24px;
    row-gap: 10px;
  }

  .page-home .hm-num {
    grid-row: span 2;
  }

  .page-home .hm-head__lead {
    grid-column: 2;
  }

  .page-home .hm-live__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-home .hm-hero__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }

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

  .page-home .hm-fee__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

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

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

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

@media (max-width: 480px) {
  .page-home .hm-roster__acc .acc__btn {
    grid-template-columns: 32px minmax(0, 1fr);
    row-gap: 6px;
  }

  .page-home .hm-roster__val {
    grid-column: 2;
  }

  .page-home .hm-roster__acc .acc__body {
    padding: 0 18px 18px 50px;
  }

  .page-home .hm-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-dot,
  .page-home .hm-score__state i {
    animation: none;
  }

  .page-home .hm-next__card {
    transition: none;
  }

  .page-home .hm-next__card:hover,
  .page-home .hm-next__card:focus-visible {
    transform: none;
  }
}
