.page-home {
  --hm-mint: #E2F0E8;
  --hm-line: rgba(255, 255, 255, .22);
  --hm-shadow: 0 1px 2px rgba(20, 24, 27, .06);
  background: var(--paper);
  color: var(--ink);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-head);
  letter-spacing: -.02em;
}

.page-home a:focus-visible,
.page-home .hm-scroller:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

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

/* ---------- 首屏封面 ---------- */
.hm-cover {
  padding: 26px 0 0;
  background: var(--paper);
}

.hm-cover__inner {
  display: grid;
  gap: 24px;
  align-items: start;
}

.hm-cover h1 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 8vw, 52px);
  font-weight: 800;
  line-height: 1.12;
}

.hm-cover .lead {
  max-width: 34em;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hm-cover .btn-row {
  margin-top: 20px;
}

.hm-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
}

.hm-brief dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.hm-brief dd {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
}

.hm-cover__shot {
  margin: 0;
}

/* ---------- 关注球队色带 ---------- */
.hm-strip {
  margin-top: 28px;
  padding: 18px 0 20px;
  background: var(--green-900);
  border-top: 3px solid var(--green-600);
  color: var(--paper);
}

.hm-strip__label {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .04em;
  color: #CFE3D6;
}

.hm-strip__label .mono {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.hm-strip__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 0 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.hm-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 7px 13px;
  border: 1px solid var(--hm-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}

.hm-chip:first-child {
  background: var(--green-300);
  border-color: transparent;
  color: var(--green-900);
  font-weight: 700;
}

/* ---------- 最近 5 场数据带 ---------- */
.hm-band {
  background: var(--hm-mint);
}

.hm-scroller {
  display: flex;
  gap: 12px;
  padding: 2px 0 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hm-game {
  flex: 0 0 208px;
  scroll-snap-align: start;
  padding: 14px 14px 16px;
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--hm-shadow);
}

.hm-game__round {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.hm-game__score {
  margin: 8px 0 2px;
  font-size: 30px;
  font-weight: 700;
  transform: skewX(-3deg);
}

.hm-game__meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.hm-game__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.hm-summary li {
  padding-top: 9px;
  border-top: 2px solid var(--green-600);
}

.hm-summary b {
  display: block;
  font-size: 21px;
}

.hm-summary span {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.hm-wide-shot {
  margin: 28px 0 0;
}

/* ---------- 红黄牌与伤停 ---------- */
.hm-alert {
  display: grid;
  gap: 18px;
}

.hm-alert__shot {
  margin: 0;
}

.hm-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hm-tile {
  padding: 14px;
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.hm-tile--red {
  border-top: 3px solid var(--red);
}

.hm-tile--yellow {
  border-top: 3px solid var(--yellow);
}

.hm-tile--green {
  border-top: 3px solid var(--green-600);
}

.hm-tile__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.hm-tile__value {
  margin: 6px 0 8px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  transform: skewX(-2deg);
}

.hm-tile--red .hm-tile__value {
  color: var(--red);
}

.hm-tile--yellow .hm-tile__value {
  color: var(--amber);
}

.hm-tile p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.hm-chart {
  margin: 24px 0 0;
}

.page-home .table-wrap {
  margin-top: 18px;
}

.page-home .table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-pure);
}

.page-home .table th,
.page-home .table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-size: 14px;
}

.page-home .table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

/* ---------- 筛选与导出条 ---------- */
.hm-ops {
  padding: 40px 0 44px;
  background: var(--green-900);
  color: var(--paper);
}

.page-home .hm-ops .chapter-head h2 {
  color: var(--paper);
}

.page-home .hm-ops .chapter-note {
  color: #C9DCD2;
}

.page-home .hm-ops .chapter-num {
  background: var(--yellow);
  color: var(--ink);
}

.hm-ops__grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.hm-op {
  padding: 16px;
  border: 1px solid var(--hm-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}

.hm-op h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #FFFFFF;
}

.hm-op p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #C9DCD2;
}

.hm-op a {
  display: inline-block;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- 轮次区间 ---------- */
.hm-rounds .tabs {
  margin: 6px 0 4px;
}

.hm-round {
  margin-top: 20px;
  padding: 6px 0 6px 16px;
  border-left: 3px solid var(--green-600);
}

.hm-round__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.hm-round__desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hm-round__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-round__stats li {
  border-top: 1px solid var(--rule);
  padding-top: 8px;
}

.hm-round__stats b {
  display: block;
  font-size: 18px;
}

.hm-round__stats span {
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- 战报目录 ---------- */
.hm-index {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.hm-index li {
  display: grid;
  gap: 4px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}

.hm-index__no {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--green-600);
}

.hm-index a {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.hm-index a:hover {
  color: var(--green-600);
  border-bottom-color: var(--green-300);
}

.hm-index__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

/* ---------- 规模与团队 ---------- */
.hm-scale__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hm-scale__cell {
  padding: 14px;
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--hm-shadow);
}

.hm-scale__cell b {
  display: block;
  font-size: 22px;
}

.hm-scale__cell span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- 收尾 ---------- */
.hm-close {
  padding: 8px 0 56px;
}

.hm-close__inner {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--hm-mint);
  border-left: 4px solid var(--green-600);
}

.hm-close h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hm-close p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .hm-index li {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 18px;
  }

  .hm-round__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hm-scale__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hm-game {
    flex-basis: 232px;
  }

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

@media (min-width: 900px) {
  .hm-cover {
    padding-top: 42px;
  }

  .hm-cover__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 44px;
  }

  .hm-cover__shot {
    margin-top: 44px;
  }

  .hm-alert {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .hm-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-ops__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-round {
    padding-left: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-index a {
    transition: none;
  }
}
</main>
