.page-home {
  --hm-pad: clamp(16px, 4vw, 40px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home .hm-wrap {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--hm-pad);
}

/* ---------- 通用文字件 ---------- */
.page-home .hm-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--rust);
}

.page-home .hm-eyebrow::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 8px;
  vertical-align: middle;
  border-left: 7px solid var(--orange);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.page-home .hm-h2 {
  margin: 0 0 14px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(25px, 4.6vw, 42px);
  line-height: 1.14;
  letter-spacing: -.018em;
  color: var(--ink);
}

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

.page-home .hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}

.page-home .hm-btn:focus-visible {
  outline: 2px dashed var(--orange);
  outline-offset: 2px;
}

.page-home .hm-btn--solid {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.page-home .hm-btn--solid:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.page-home .hm-btn--accent {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.page-home .hm-btn--accent:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--paper);
}

.page-home .hm-btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 首屏拼贴 ---------- */
.page-home .hm-hero {
  padding: 18px 0 48px;
  overflow-x: clip;
}

.page-home .hm-grid {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--hm-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "match"
    "dates"
    "ticker"
    "sub";
  gap: 14px;
}

.page-home .hm-head {
  grid-area: head;
  padding-top: 4px;
}

.page-home .hm-title {
  margin: 0 0 20px;
  padding-right: 8px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 6.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -.022em;
  color: var(--ink);
  transform: rotate(-4deg);
  transform-origin: left center;
}

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

/* 今日对阵大块 */
.page-home .hm-match {
  grid-area: match;
  position: relative;
  isolation: isolate;
  min-height: 340px;
  padding: 22px 18px 54px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
}

.page-home .hm-match__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  filter: saturate(1.1) contrast(1.05);
}

.page-home .hm-match__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(195deg, rgba(32, 24, 15, .08) 0%, rgba(32, 24, 15, .86) 58%, rgba(32, 24, 15, .96) 100%);
}

.page-home .hm-match__body {
  position: relative;
}

.page-home .hm-match__kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(246, 241, 228, .82);
  font-variant-numeric: tabular-nums;
}

.page-home .hm-match__kicker b {
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
}

.page-home .hm-match__title {
  margin: 8px 0 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .hm-fixtures {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.page-home .hm-fixture {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 0;
  border-top: 1px solid rgba(246, 241, 228, .18);
}

.page-home .hm-fixture__time {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: rgba(246, 241, 228, .72);
}

.page-home .hm-fixture__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-home .hm-fixture__pair {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.page-home .hm-fixture__pair b {
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
}

.page-home .hm-fixture__score {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 15px;
  color: var(--gold);
}

.page-home .hm-fixture__venue {
  font-size: 12px;
  color: rgba(246, 241, 228, .6);
}

.page-home .hm-fixture__state {
  padding: 3px 7px;
  font-size: 11px;
  letter-spacing: .08em;
  white-space: nowrap;
  border: 1px solid rgba(246, 241, 228, .3);
  color: rgba(246, 241, 228, .82);
}

.page-home .hm-fixture__state--live {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

.page-home .hm-match__note {
  margin: 16px 0 0;
  padding-left: 10px;
  border-left: 1px solid rgba(246, 241, 228, .3);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(246, 241, 228, .66);
}

/* 日期刻度 */
.page-home .hm-dates {
  grid-area: dates;
  padding: 14px 16px 16px;
  background: var(--sheen);
  border: 1px solid var(--line);
}

.page-home .hm-dates__label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--char);
}

.page-home .hm-dates__track {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
}

.page-home .hm-dates__track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 9px);
}

.page-home .hm-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--char);
}

.page-home .hm-date b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}

.page-home .hm-date--now {
  margin-top: -6px;
  padding: 10px 10px 8px;
  background: var(--green);
  color: rgba(246, 241, 228, .82);
}

.page-home .hm-date--now b {
  color: var(--paper);
}

.page-home .hm-dates__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--char);
}

/* 比分播报带 */
.page-home .hm-ticker {
  grid-area: ticker;
  display: flex;
  align-items: stretch;
  min-height: 60px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-left: 4px solid var(--orange);
}

.page-home .hm-ticker__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 92px;
  overflow: hidden;
}

.page-home .hm-ticker__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hm-ticker__thumb::after {
  content: "实时";
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  background: var(--orange);
  color: var(--ink);
}

.page-home .hm-ticker__viewport {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.page-home .hm-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: hm-marquee 42s linear infinite;
  will-change: transform;
}

.page-home .hm-ticker:hover .hm-ticker__track,
.page-home .hm-ticker:focus-within .hm-ticker__track {
  animation-play-state: paused;
}

@keyframes hm-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.page-home .hm-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 0 18px;
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid rgba(246, 241, 228, .16);
}

.page-home .hm-ticker__item strong {
  font-weight: 600;
  color: var(--paper);
}

.page-home .hm-ticker__item em {
  font-style: normal;
  font-size: 12px;
  color: var(--gold);
}

/* 订阅条 */
.page-home .hm-sub {
  grid-area: sub;
  display: grid;
  align-items: start;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  background: var(--moss);
  border-left: 4px solid var(--green);
}

.page-home .hm-sub h2 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--ink);
}

.page-home .hm-sub p {
  margin: 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.72;
  color: var(--char);
}

.page-home .hm-sub__panel summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.page-home .hm-sub__panel summary::-webkit-details-marker {
  display: none;
}

.page-home .hm-sub__panel summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid var(--rust);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform .22s var(--ease);
}

.page-home .hm-sub__panel[open] summary::before {
  transform: rotate(90deg);
}

.page-home .hm-sub__panel summary:focus-visible {
  outline: 2px dashed var(--orange);
  outline-offset: 2px;
}

.page-home .hm-sub__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  border-top: 1px solid rgba(32, 24, 15, .16);
}

.page-home .hm-sub__list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--char);
  border-bottom: 1px solid rgba(32, 24, 15, .08);
}

/* ---------- 球队动态 ---------- */
.page-home .hm-teams {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.page-home .hm-teams__grid {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

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

.page-home .hm-teams__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
}

.page-home .hm-teams__figure figcaption {
  margin-top: 12px;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-size: 13px;
  line-height: 1.65;
  color: var(--char);
}

.page-home .hm-teams__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .hm-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  min-height: 44px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .hm-team:first-child {
  border-top: 1px solid var(--line);
}

.page-home .hm-team__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}

.page-home .hm-team__tag {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: .1em;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  color: var(--char);
}

.page-home .hm-team__text {
  grid-column: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--char);
}

/* ---------- 第 12 轮 ---------- */
.page-home .hm-round {
  position: relative;
  margin-top: 34px;
  padding: 52px 0 58px;
  background: var(--ink);
  color: var(--paper);
}

.page-home .hm-round::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 24px;
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

.page-home .hm-round__inner {
  display: grid;
  gap: 18px;
}

.page-home .hm-round__index {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: .9;
}

.page-home .hm-round__num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(64px, 12vw, 128px);
  letter-spacing: -.05em;
  color: var(--gold);
}

.page-home .hm-round__unit {
  font-size: 20px;
  font-weight: 700;
  color: rgba(246, 241, 228, .6);
}

.page-home .hm-round .hm-h2 {
  color: var(--paper);
}

.page-home .hm-round p {
  margin: 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(246, 241, 228, .78);
}

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

.page-home .hm-round .hm-btn--solid {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.page-home .hm-round .hm-btn--solid:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.page-home .hm-round .hm-btn--ghost {
  border-color: rgba(246, 241, 228, .5);
  color: var(--paper);
}

.page-home .hm-round .hm-btn--ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* ---------- 交锋速览 ---------- */
.page-home .hm-h2h {
  padding: 52px 0;
  border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(32, 24, 15, .045) 0 1px, transparent 1px 48px),
    var(--paper);
}

.page-home .hm-h2h__legend {
  display: flex;
  gap: 18px;
  margin: 24px 0 10px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--char);
}

.page-home .hm-h2h__key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-home .hm-h2h__key::before {
  content: "";
  display: block;
  width: 14px;
  height: 8px;
}

.page-home .hm-h2h__key--home::before { background: var(--green); }
.page-home .hm-h2h__key--away::before { background: var(--sky); }

.page-home .hm-h2h__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.page-home .hm-h2h__row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 74px;
  grid-template-areas: "label bars score";
  align-items: center;
  gap: 4px 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}

.page-home .hm-h2h__row:hover {
  background: var(--moss);
}

.page-home .hm-h2h__label {
  grid-area: label;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--char);
}

.page-home .hm-h2h__bars {
  grid-area: bars;
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 12px;
}

.page-home .hm-h2h__bar {
  display: block;
  height: 100%;
  min-width: 4px;
  transition: filter .2s var(--ease);
}

.page-home .hm-h2h__bar--home {
  width: var(--w, 0%);
  background: var(--green);
}

.page-home .hm-h2h__bar--away {
  width: var(--w, 0%);
  background: var(--sky);
}

.page-home .hm-h2h__row:hover .hm-h2h__bar {
  filter: brightness(1.18);
}

.page-home .hm-h2h__score {
  grid-area: score;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .hm-h2h__score em {
  font-family: var(--f-body);
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--char);
}

.page-home .hm-h2h__more {
  margin: 22px 0 0;
  font-size: 14px;
}

.page-home .hm-h2h__more a {
  color: var(--rust);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- 三步上手 ---------- */
.page-home .hm-steps {
  padding: 52px 0;
  background: var(--moss);
}

.page-home .hm-steps__list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .hm-step {
  padding: 18px 0 22px;
  border-top: 2px solid var(--green);
}

.page-home .hm-step__n {
  display: block;
  margin-bottom: 10px;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--rust);
}

.page-home .hm-step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}

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

.page-home .hm-steps__foot {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(32, 24, 15, .16);
  font-size: 14px;
  line-height: 1.7;
  color: var(--char);
}

.page-home .hm-steps__foot a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 1px;
}

/* ---------- 收尾氛围条 ---------- */
.page-home .hm-band {
  position: relative;
  margin-top: 52px;
  overflow: hidden;
  background: var(--ink);
}

.page-home .hm-band img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  opacity: .82;
}

.page-home .hm-band__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 26px var(--hm-pad) 18px;
  background: linear-gradient(to top, rgba(32, 24, 15, .92), rgba(32, 24, 15, 0));
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(17px, 3.4vw, 26px);
  letter-spacing: -.01em;
  color: var(--paper);
}

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .page-home .hm-sub {
    grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
    align-items: center;
    gap: 18px 28px;
    padding: 22px 24px;
  }

  .page-home .hm-sub__panel {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .page-home .hm-sub > .hm-btn {
    grid-column: 1;
    justify-self: start;
  }

  .page-home .hm-ticker__thumb {
    width: 160px;
  }

  .page-home .hm-steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
  }

  .page-home .hm-step:nth-child(2) { margin-top: 26px; }
  .page-home .hm-step:nth-child(3) { margin-top: 52px; }
}

@media (min-width: 900px) {
  .page-home .hm-hero {
    padding: 34px 0 64px;
  }

  .page-home .hm-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "head   match"
      "dates  match"
      "ticker ticker"
      "sub    sub";
    gap: 22px 30px;
    align-items: start;
  }

  .page-home .hm-match {
    padding: 30px 28px 56px;
    min-height: 420px;
  }

  .page-home .hm-match__note {
    max-width: 32em;
  }

  .page-home .hm-ticker__thumb {
    width: 220px;
  }

  .page-home .hm-teams {
    padding: 76px 0;
  }

  .page-home .hm-teams__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 36px;
    align-items: start;
    margin-top: 34px;
  }

  .page-home .hm-round {
    padding: 66px 0 72px;
  }

  .page-home .hm-round__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .page-home .hm-h2h {
    padding: 76px 0;
  }

  .page-home .hm-h2h__row {
    grid-template-columns: 64px minmax(0, 1fr) 92px;
    padding: 14px 12px;
  }

  .page-home .hm-steps {
    padding: 76px 0;
  }

  .page-home .hm-band {
    margin-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-ticker__track {
    animation: none;
  }

  .page-home * {
    transition-duration: .01ms !important;
  }
}

.page-home {
  --w: 1rem;
}
