.page-home {
  --hm-panel-bg: rgba(12, 34, 51, 0.86);
  --hm-line: rgba(90, 224, 255, 0.22);
  --hm-line-soft: rgba(215, 227, 234, 0.12);
  --hm-orange-deep: #C24A16;
  background: var(--ink);
  color: var(--fog);
  overflow-x: hidden;
}

.page-home .hm-section {
  padding: 52px 0;
  border-top: 1px solid var(--hm-line-soft);
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 48px;
  background:
    radial-gradient(120% 85% at 82% 0%, rgba(90, 224, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #071522 0%, #0A1C2B 68%, #071522 100%);
}

.page-home .hm-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-home .hm-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  display: block;
}

.page-home .hm-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 34, 0.55) 0%, rgba(7, 21, 34, 0.9) 72%, #071522 100%);
}

.page-home .hm-hero-grid {
  position: relative;
  display: grid;
  gap: 30px;
}

.page-home .hm-rail {
  order: 2;
  border: 1px solid var(--hm-line);
  background: rgba(7, 21, 34, 0.66);
  padding: 16px 14px;
  border-radius: var(--radius);
}

.page-home .hm-rail-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--cyan);
}

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

.page-home .hm-rail-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 6px;
  color: var(--grey);
  text-decoration: none;
  font-size: 14px;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.page-home .hm-rail-list a:hover,
.page-home .hm-rail-list a:focus-visible {
  color: var(--fog);
  border-left-color: var(--cyan);
  background: rgba(90, 224, 255, 0.06);
}

.page-home .hm-rail-num {
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.06em;
}

.page-home .hm-rail-list a:hover .hm-rail-num {
  color: var(--cyan);
}

.page-home .hm-rail-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hm-line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.page-home .hm-hero-main {
  order: 1;
}

.page-home .hm-hero-main h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 8.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.page-home .hm-lede {
  margin: 18px 0 0;
  max-width: 44em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--fog);
}

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

.page-home .hm-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hm-line);
}

.page-home .hm-fact dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--grey);
}

.page-home .hm-fact dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(20px, 5vw, 30px);
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

/* ---------- 01 实时比分 ---------- */
.page-home .hm-live-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.page-home .hm-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.page-home .hm-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .hm-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border: 1px solid var(--hm-line);
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.page-home .hm-chip:hover {
  color: var(--fog);
  border-color: var(--cyan);
}

.page-home .hm-radio:checked + .hm-chip {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #03131E;
  font-weight: 700;
}

.page-home .hm-radio:focus-visible + .hm-chip {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .hm-feed {
  flex-basis: 100%;
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.page-home #hmf-foot:checked ~ .hm-feed .hm-match:not(.is-foot),
.page-home #hmf-bask:checked ~ .hm-feed .hm-match:not(.is-bask),
.page-home #hmf-esport:checked ~ .hm-feed .hm-match:not(.is-esport) {
  display: none;
}

.page-home .hm-match {
  border: 1px solid var(--hm-line-soft);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(12, 34, 51, 0.92), rgba(7, 21, 34, 0.94));
  padding: 14px 16px 12px;
  transition: border-color 0.2s;
}

.page-home .hm-match:hover {
  border-color: var(--hm-line);
}

.page-home .hm-match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .hm-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  white-space: nowrap;
}

.page-home .hm-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.page-home .hm-state--done {
  color: var(--grey);
}

.page-home .hm-state--done i {
  background: var(--grey);
}

.page-home .hm-match-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 10px 0 8px;
}

.page-home .hm-team {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--fog);
  text-align: right;
  overflow-wrap: anywhere;
}

.page-home .hm-team--away {
  text-align: left;
}

.page-home .hm-goals {
  font-family: var(--font-mono);
  font-size: clamp(26px, 7.5vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-home .hm-colon {
  color: var(--slate);
  padding: 0 2px;
}

.page-home .hm-match-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.02em;
}

.page-home .hm-live-art {
  margin: 0;
}

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

.page-home .hm-live-note {
  margin: 26px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  font-size: 14px;
  line-height: 1.85;
  color: var(--grey);
}

/* ---------- 02 版本对照 ---------- */
.page-home .hm-compare {
  background: var(--ink);
}

.page-home .cream-panel.hm-compare-panel,
.page-home .cream-panel.hm-service-panel {
  color: var(--brown);
  padding: 26px 20px 28px;
  border: 1px solid rgba(26, 21, 18, 0.14);
}

.page-home .hm-compare-panel .chapter-num,
.page-home .hm-service-panel .chapter-num {
  color: var(--hm-orange-deep);
}

.page-home .hm-compare-panel .chapter-label,
.page-home .hm-service-panel .chapter-label {
  color: rgba(26, 21, 18, 0.62);
}

.page-home .hm-compare-panel .chapter-title,
.page-home .hm-service-panel .chapter-title {
  color: var(--brown);
}

.page-home .hm-compare-figure {
  margin: 22px 0 26px;
}

.page-home .hm-compare-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(26, 21, 18, 0.12);
}

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

.page-home .hm-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(26, 21, 18, 0.28);
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(26, 21, 18, 0.72);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-home .hm-tab:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.page-home #hm-ver-new:checked + .hm-tab,
.page-home #hm-ver-old:checked + .hm-tab {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
  font-weight: 700;
}

.page-home .hm-radio:focus-visible + .hm-tab {
  outline: 2px solid var(--hm-orange-deep);
  outline-offset: 2px;
}

.page-home .hm-tab-body {
  flex-basis: 100%;
  width: 100%;
  margin-top: 18px;
}

.page-home .hm-pane {
  display: none;
}

.page-home #hm-ver-new:checked ~ .hm-tab-body .hm-pane--new,
.page-home #hm-ver-old:checked ~ .hm-tab-body .hm-pane--old {
  display: block;
}

.page-home .hm-compare-list {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(26, 21, 18, 0.16);
}

.page-home .hm-compare-list > div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 21, 18, 0.16);
}

.page-home .hm-compare-list dt {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--brown);
}

.page-home .hm-compare-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(26, 21, 18, 0.82);
}

.page-home .hm-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--hm-orange-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.page-home .hm-link:hover {
  color: var(--brown);
}

.page-home .hm-link--light {
  color: var(--cyan);
  margin-top: 18px;
}

.page-home .hm-link--light:hover {
  color: var(--fog);
}

/* ---------- 03 赛事日历 ---------- */
.page-home .hm-cal-grid {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.page-home .hm-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  border-left: 1px solid var(--hm-line);
  display: grid;
  gap: 28px;
}

.page-home .hm-timeline li {
  position: relative;
}

.page-home .hm-timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(90, 224, 255, 0.1);
}

.page-home .hm-tl-num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .hm-tl-when {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fog);
  letter-spacing: 0.04em;
}

.page-home .hm-tl-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.page-home .hm-tl-text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--grey);
}

.page-home .hm-watch {
  border: 1px solid var(--hm-line);
  background: rgba(12, 34, 51, 0.72);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.page-home .hm-watch-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.page-home .hm-watch-text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--fog);
}

.page-home .hm-watch-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hm-line-soft);
}

.page-home .hm-watch-stats dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

.page-home .hm-watch-stats dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .hm-watch-btn {
  margin-top: 22px;
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ---------- 04 伤停与球员数据 ---------- */
.page-home .hm-cards {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.page-home .hm-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hm-line-soft);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  min-width: 0;
}

.page-home .hm-card--alert {
  background: linear-gradient(165deg, rgba(255, 106, 43, 0.09), rgba(12, 34, 51, 0.94) 46%);
  border-color: rgba(255, 106, 43, 0.32);
}

.page-home .hm-card--data {
  background: linear-gradient(165deg, rgba(90, 224, 255, 0.08), rgba(18, 56, 79, 0.86) 60%);
  border-color: var(--hm-line);
}

.page-home .hm-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.page-home .hm-card > *:not(.hm-card-bg) {
  position: relative;
  z-index: 1;
}

.page-home .hm-card-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--orange);
}

.page-home .hm-card--data .hm-card-label {
  color: var(--cyan);
}

.page-home .hm-card-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 5.4vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.page-home .hm-card-text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--fog);
}

.page-home .hm-pill-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}

.page-home .hm-pill {
  padding: 5px 11px;
  border: 1px solid var(--hm-line-soft);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fog);
  white-space: nowrap;
}

.page-home .hm-card--alert .hm-pill {
  border-color: rgba(255, 106, 43, 0.35);
}

/* ---------- 05 快速访问 ---------- */
.page-home .hm-service-grid {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  border-top: 1px solid rgba(26, 21, 18, 0.16);
}

.page-home .hm-service-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 21, 18, 0.16);
}

.page-home .hm-service-item dt {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(26, 21, 18, 0.6);
}

.page-home .hm-service-item dd {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown);
  overflow-wrap: anywhere;
}

.page-home .hm-service-item .num {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.page-home .hm-service-mail {
  font-family: var(--font-mono);
  font-size: 15px;
}

.page-home .hm-service-text {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(26, 21, 18, 0.82);
}

.page-home .hm-quick-links {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(26, 21, 18, 0.16);
  display: grid;
  gap: 2px;
}

.page-home .hm-quick-links a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 21, 18, 0.1);
  transition: color 0.2s, padding-left 0.2s;
}

.page-home .hm-quick-links a:hover,
.page-home .hm-quick-links a:focus-visible {
  color: var(--hm-orange-deep);
  padding-left: 6px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .hm-section {
    padding: 68px 0;
  }

  .page-home .hm-hero {
    padding: 56px 0 72px;
  }

  .page-home .cream-panel.hm-compare-panel,
  .page-home .cream-panel.hm-service-panel {
    padding: 38px 34px 40px;
  }

  .page-home .hm-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .page-home .hm-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

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

@media (min-width: 960px) {
  .page-home .hm-hero-grid {
    grid-template-columns: minmax(0, 208px) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .hm-rail {
    order: 1;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    padding: 20px 16px;
  }

  .page-home .hm-hero-main {
    order: 2;
  }

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

  .page-home .hm-feed {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .page-home .hm-watch-btn {
    width: auto;
  }

  .page-home .hm-compare-list > div {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
}

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

  .page-home .hm-hero-main h1 {
    max-width: 15em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
