.page-home {
  --hm-glow: rgba(54, 241, 178, 0.14);
  --hm-diag: polygon(56% 0, 100% 0, 100% 100%, 30% 100%);
  background: var(--ink-900);
  color: var(--white);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 80% at 88% 6%, var(--hm-glow), transparent 62%),
    linear-gradient(158deg, var(--ink-800) 0%, var(--ink-900) 60%, var(--ink-900) 100%);
}

.page-home .hm-hero::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -10%;
  width: min(54vw, 580px);
  height: 128%;
  background: var(--mint);
  opacity: 0.07;
  clip-path: var(--hm-diag);
  pointer-events: none;
  z-index: 0;
}

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

.page-home .hm-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.page-home .hm-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, var(--ink-900) 16%, rgba(8, 17, 14, 0.6) 54%, rgba(8, 17, 14, 0.25) 100%);
}

.page-home .hm-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.page-home .hm-hero__copy {
  min-width: 0;
}

.page-home .hm-hero h1 {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 17em;
}

.page-home .hm-hero__lead {
  margin: 1rem 0 0;
  max-width: 36em;
  color: var(--mist);
  font-size: clamp(0.98rem, 2.5vw, 1.1rem);
  line-height: 1.8;
}

.page-home .hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.page-home .hm-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  margin-top: 1.5rem;
}

.page-home .hm-index a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 59, 48, 0.35);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .hm-index a:hover,
.page-home .hm-index a:focus-visible,
.page-home .hm-index a[data-active="true"] {
  color: var(--mint);
  border-color: var(--mint);
}

/* ---------- 比分卡通用 ---------- */
.page-home .hm-card {
  position: relative;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
}

.page-home .hm-live {
  border-top: 2px solid var(--mint);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.page-home .hm-live__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-home .hm-live__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.page-home .hm-live__league {
  color: var(--mist);
  font-size: 0.76rem;
}

.page-home .hm-live__time {
  margin: 0.55rem 0 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.page-home .hm-live__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.page-home .hm-live__team {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.page-home .hm-live__team--away {
  text-align: right;
}

.page-home .hm-live__score {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.page-home .hm-live__score span {
  padding: 0 0.1em;
  color: var(--mist);
  font-size: 0.62em;
}

.page-home .hm-live__events {
  margin: 1rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
}

.page-home .hm-live__events li {
  display: flex;
  gap: 0.6rem;
  padding: 0.25rem 0;
  color: var(--mist);
  font-size: 0.8rem;
  line-height: 1.55;
}

.page-home .hm-live__events li span {
  flex: 0 0 auto;
  min-width: 2.4rem;
  color: var(--mint);
  font-family: var(--font-mono);
}

.page-home .hm-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(54, 241, 178, 0.18);
  animation: hm-pulse 2.4s var(--ease) infinite;
}

@keyframes hm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

/* ---------- 比分条 ---------- */
.page-home .hm-tickerwrap {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .hm-ticker {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0 0.4rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.page-home .hm-ticker > li {
  flex: 0 0 82%;
  min-width: 0;
  scroll-snap-align: start;
}

.page-home .hm-tick {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--mint);
  border-radius: var(--radius);
  background: rgba(20, 59, 48, 0.5);
}

.page-home .hm-tick__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.page-home .hm-tick__state {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.page-home .hm-tick__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.page-home .hm-tick__team {
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.page-home .hm-tick__team--away {
  text-align: right;
}

.page-home .hm-tick__score {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ---------- 章节结构 ---------- */
.page-home .hm-section {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.page-home .hm-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem 1.1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .hm-head__text {
  min-width: 0;
}

.page-home .hm-head .yd-section-num {
  display: block;
  color: transparent;
  font-family: var(--font-editorial);
  font-size: clamp(2.2rem, 9vw, 4.2rem);
  line-height: 0.8;
  -webkit-text-stroke: 1px var(--line);
}

.page-home .hm-head__text h2 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.page-home .hm-head__lead {
  margin: 0.7rem 0 0;
  max-width: 46em;
  color: var(--mist);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* ---------- 赛程 ---------- */
.page-home .hm-schedule {
  display: grid;
  gap: 1.5rem;
}

.page-home .hm-timeline {
  margin: 0;
  padding: 0 0 0 1.1rem;
  border-left: 1px solid var(--line);
  list-style: none;
}

.page-home .hm-tl {
  position: relative;
  padding-bottom: 1.15rem;
}

.page-home .hm-tl:last-child {
  padding-bottom: 0;
}

.page-home .hm-tl::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: calc(-1.1rem - 3.5px);
  width: 7px;
  height: 7px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  background: var(--ink-900);
}

.page-home .hm-tl:first-child::before {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(54, 241, 178, 0.15);
}

.page-home .hm-tl__date {
  margin: 0;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.page-home .hm-tl__match {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.page-home .hm-tl__match span {
  padding: 0 0.25em;
  color: var(--mist);
  font-size: 0.82em;
  font-weight: 400;
}

.page-home .hm-tl__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.page-home .hm-scores {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.page-home .hm-score__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.page-home .hm-score__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0.2rem;
}

.page-home .hm-score__team {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.page-home .hm-score__team--away {
  text-align: right;
}

.page-home .hm-score__score {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .hm-score__score--live {
  color: var(--mint);
}

.page-home .hm-score__events {
  margin: 0.6rem 0 0;
  padding: 0.6rem 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
}

.page-home .hm-score__events li {
  display: flex;
  gap: 0.5rem;
  padding: 0.15rem 0;
  color: var(--mist);
  font-size: 0.78rem;
  line-height: 1.55;
}

.page-home .hm-score__events li span {
  flex: 0 0 auto;
  min-width: 2.2rem;
  color: var(--mint);
  font-family: var(--font-mono);
}

.page-home .hm-scores__note {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(20, 59, 48, 0.3);
  color: var(--mist);
  font-size: 0.78rem;
  line-height: 1.75;
}

.page-home .hm-scores__note strong {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.page-home .hm-schedule__fig {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

/* ---------- 图片 ---------- */
.page-home .yd-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .yd-media__img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ---------- 战报数据带 ---------- */
.page-home .hm-band {
  background:
    linear-gradient(102deg, rgba(54, 241, 178, 0.06) 0%, transparent 46%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
}

.page-home .hm-reports {
  display: grid;
  gap: 1.5rem;
}

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

.page-home .hm-reports__body {
  min-width: 0;
}

.page-home .hm-reports__text {
  margin: 0;
  color: var(--mist);
  font-size: 0.96rem;
  line-height: 1.85;
}

.page-home .hm-bars {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 1.2rem;
}

.page-home .hm-bar__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--mist);
  font-size: 0.8rem;
}

.page-home .hm-bar__val {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.page-home .hm-bar__delta {
  margin-left: 0.3rem;
  color: var(--magenta);
  font-size: 0.72rem;
  font-weight: 400;
}

.page-home .hm-bar__track {
  height: 6px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.page-home .hm-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), rgba(54, 241, 178, 0.35));
}

.page-home .hm-bar__fill--40 { width: 40%; }
.page-home .hm-bar__fill--50 { width: 50%; }
.page-home .hm-bar__fill--84 { width: 84%; }
.page-home .hm-bar__fill--87 { width: 87%; }

.page-home .hm-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--mint);
  color: var(--mint);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .hm-more:hover,
.page-home .hm-more:focus-visible {
  color: var(--white);
  border-color: var(--white);
}

/* ---------- 设备体验 ---------- */
.page-home .hm-devices {
  display: grid;
  gap: 1rem;
}

.page-home .hm-device {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-700), var(--ink-800));
}

.page-home .hm-device--land {
  border-top: 2px solid var(--mint);
}

.page-home .hm-device--port {
  border-top: 2px solid var(--amber);
}

.page-home .hm-device__bar {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}

.page-home .hm-device__bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.page-home .hm-device__bar span:first-child {
  background: var(--mint);
}

.page-home .hm-device__rows {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-device__rows li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius);
  background: rgba(8, 17, 14, 0.5);
  color: var(--mist);
  font-size: 0.78rem;
}

.page-home .hm-device__rows li span:first-child {
  color: var(--mint);
  font-family: var(--font-mono);
}

.page-home .hm-device__rows li b {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.page-home .hm-device__cap {
  margin: 0.7rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  color: var(--mist);
  font-size: 0.74rem;
  line-height: 1.6;
}

.page-home .hm-devices__fig {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

/* ---------- 官方直营 ---------- */
.page-home .hm-trust__panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border: 1px solid rgba(8, 17, 14, 0.12);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.page-home .hm-seal {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.page-home .hm-trust__panel h2 {
  margin: 0.85rem 0 0.6rem;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.page-home .hm-trust__panel p {
  margin: 0;
  color: rgba(8, 17, 14, 0.78);
  font-size: 0.94rem;
  line-height: 1.85;
}

.page-home .hm-trust__list {
  display: grid;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-trust__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  color: rgba(8, 17, 14, 0.82);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-home .hm-trust__list li::before {
  content: "›";
  color: var(--ink-800);
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-home .hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.page-home .hm-trust__panel .yd-btn--ghost {
  color: var(--ink-900);
  border-color: rgba(8, 17, 14, 0.4);
}

.page-home .hm-trust__panel .yd-btn--ghost:hover,
.page-home .hm-trust__panel .yd-btn--ghost:focus-visible {
  border-color: var(--ink-900);
  background: rgba(8, 17, 14, 0.06);
}

.page-home .hm-trust__links {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(8, 17, 14, 0.15);
}

.page-home .hm-trust__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(8, 17, 14, 0.16);
  border-radius: var(--radius);
  color: var(--ink-800);
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .hm-trust__links a span {
  font-family: var(--font-mono);
  color: var(--ink-700);
}

.page-home .hm-trust__links a:hover,
.page-home .hm-trust__links a:focus-visible {
  background: rgba(8, 17, 14, 0.06);
  border-color: var(--ink-800);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .hm-bars {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.6rem;
  }

  .page-home .hm-ticker > li {
    flex-basis: calc((100% - 1.5rem) / 3);
  }
}

@media (min-width: 760px) {
  .page-home .hm-devices {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: stretch;
  }
}

@media (min-width: 900px) {
  .page-home .hm-schedule {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.25rem;
    align-items: start;
  }

  .page-home .hm-reports {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 2.25rem;
    align-items: start;
  }

  .page-home .hm-head {
    gap: 1rem 1.75rem;
  }

  .page-home .hm-trust__panel {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.6fr);
    gap: 2.5rem;
  }

  .page-home .hm-trust__links {
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid rgba(8, 17, 14, 0.15);
    padding-left: 1.5rem;
  }
}

@media (min-width: 960px) {
  .page-home .hm-hero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
    align-items: end;
  }
}

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

  .page-home .hm-index a,
  .page-home .hm-more,
  .page-home .hm-trust__links a {
    transition: none;
  }
}
