.page-home {
  --hm-cut: 18px;
  --hm-gap: clamp(18px, 3vw, 34px);
  --hm-soft: rgba(46, 242, 255, 0.06);
}

/* ---------- 上下文条 ---------- */
.page-home .hm-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  padding-bottom: 4px;
}

.page-home .hm-context__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.page-home .hm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 211, 154, 0.15);
  animation: hm-pulse 2.4s var(--ease) infinite;
}

@keyframes hm-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 211, 154, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(34, 211, 154, 0.04); }
}

/* ---------- 框景首屏 ---------- */
.page-home .hm-hero {
  padding: 20px 0 0;
}

.page-home .hm-frame {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(46, 242, 255, 0.12), transparent 58%),
    radial-gradient(90% 80% at 4% 96%, rgba(255, 106, 26, 0.1), transparent 60%),
    var(--panel);
  clip-path: polygon(0 var(--hm-cut), var(--hm-cut) 0, 100% 0, 100% calc(100% - var(--hm-cut)), calc(100% - var(--hm-cut)) 100%, 0 100%);
}

.page-home .hm-frame__ruler {
  display: block;
  height: 12px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px);
  background-position: left bottom;
  background-size: auto 100%;
  border-bottom: 1px solid var(--line);
  opacity: 0.9;
}

.page-home .hm-frame__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
  padding: clamp(22px, 4vw, 46px) clamp(18px, 3.6vw, 44px) clamp(20px, 3vw, 34px);
}

.page-home .hm-hero__text h1 {
  margin: 12px 0 18px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

.page-home .hm-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .hm-metrics li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .hm-metrics__v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}

.page-home .hm-metrics li:nth-child(2) .hm-metrics__v,
.page-home .hm-metrics li:nth-child(4) .hm-metrics__v {
  color: var(--orange);
}

.page-home .hm-metrics__k {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.page-home .hm-hero__visual {
  position: relative;
  margin: 0;
}

.page-home .hm-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  filter: saturate(1.08) contrast(1.05);
}

.page-home .hm-hero__visual figcaption {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.page-home .hm-frame__foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.page-home .hm-frame__foot a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 240ms var(--ease), color 240ms var(--ease);
}

.page-home .hm-frame__foot a:nth-child(2n) {
  border-right: 0;
}

.page-home .hm-frame__foot a:hover,
.page-home .hm-frame__foot a:focus-visible {
  background: var(--hm-soft);
  color: var(--cyan);
}

.page-home .hm-frame__foot .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.08em;
}

/* ---------- 双栏指挥台 ---------- */
.page-home .hm-deck {
  padding: clamp(46px, 7vw, 88px) 0 clamp(30px, 5vw, 56px);
}

.page-home .hm-sec-head {
  max-width: 46em;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.page-home .hm-sec-head h2 {
  margin: 10px 0 14px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.4vw, 2.4rem);
  line-height: 1.16;
  color: var(--ink);
}

.page-home .hm-deck__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
}

.page-home .hm-compare,
.page-home .hm-league {
  padding: clamp(18px, 2.6vw, 28px);
}

.page-home .hm-compare__note,
.page-home .hm-league__note {
  margin: 12px 0 18px;
  font-size: 14px;
  line-height: 1.7;
}

.page-home .hm-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(120deg, rgba(46, 242, 255, 0.12), rgba(7, 11, 26, 0) 70%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.page-home .hm-match__side {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

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

.page-home .hm-match__vs {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

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

.page-home .hm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .hm-row__k {
  flex: 1 0 100%;
  font-size: 13px;
  color: var(--ink-2);
}

.page-home .hm-row__a,
.page-home .hm-row__b {
  flex: 0 0 4.6em;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .hm-row__b {
  text-align: right;
  color: var(--ink);
}

.page-home .hm-row__bar {
  flex: 1 1 40px;
  height: 6px;
  background: rgba(30, 42, 85, 0.9);
  overflow: hidden;
}

.page-home .hm-row__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  transform-origin: left center;
  animation: hm-grow 700ms var(--ease) both;
}

.page-home .hm-rows li:nth-child(1) .hm-row__bar i { width: 57%; }
.page-home .hm-rows li:nth-child(2) .hm-row__bar i { width: 55%; }
.page-home .hm-rows li:nth-child(3) .hm-row__bar i { width: 57%; }
.page-home .hm-rows li:nth-child(4) .hm-row__bar i { width: 61%; }
.page-home .hm-rows li:nth-child(5) .hm-row__bar i { width: 51%; }

@keyframes hm-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.page-home .hm-style {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.07);
}

.page-home .hm-style__k {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .hm-style__v {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.page-home .hm-heat {
  margin: 20px 0 0;
}

.page-home .hm-heat img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
}

.page-home .hm-heat figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-2);
}

.page-home .hm-compare__cta {
  margin-top: 20px;
}

/* 联赛导航栏 */
.page-home .hm-scoreboard {
  margin: 0 0 16px;
}

.page-home .hm-scoreboard img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

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

.page-home .hm-group:last-of-type {
  border-bottom: 1px solid var(--line);
}

.page-home .hm-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

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

.page-home .hm-group > summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 16px;
  color: var(--cyan);
}

.page-home .hm-group[open] > summary::after {
  content: "−";
  color: var(--orange);
}

.page-home .hm-group > summary:hover {
  color: var(--cyan);
}

.page-home .hm-group__n {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

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

.page-home .hm-group__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0 9px 14px;
  border-left: 2px solid var(--line);
}

.page-home .hm-group__list li:hover {
  border-left-color: var(--cyan);
  background: var(--hm-soft);
}

.page-home .hm-group__list a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

.page-home .hm-group__list a:hover,
.page-home .hm-group__list a:focus-visible {
  color: var(--cyan);
}

.page-home .hm-group__list .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

.page-home .hm-league__foot {
  margin-top: 18px;
}

.page-home .hm-league__foot .meta {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- 时间线 ---------- */
.page-home .hm-watch {
  padding: clamp(34px, 5vw, 62px) 0;
  background: linear-gradient(180deg, transparent, rgba(16, 26, 58, 0.55) 30%, rgba(16, 26, 58, 0.55) 70%, transparent);
}

.page-home .hm-watch__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
}

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

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

.page-home .hm-watch__visual figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
}

.page-home .hm-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.page-home .hm-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--orange) 65%, rgba(4, 6, 15, 0));
}

.page-home .hm-node {
  position: relative;
  padding: 0 0 26px;
}

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

.page-home .hm-node::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
}

.page-home .hm-node:last-child::before {
  border-color: var(--orange);
}

.page-home .hm-node__time {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .hm-node h3 {
  margin: 8px 0 8px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.page-home .hm-node p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

.page-home .hm-node .meta {
  margin: 0;
  font-size: 12px;
  color: var(--gold);
}

.page-home .hm-watch__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(24px, 3vw, 38px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-home .hm-watch__foot .prose {
  margin: 0;
  flex: 1 1 320px;
}

/* ---------- 收藏同步 ---------- */
.page-home .hm-sync {
  padding: clamp(34px, 5vw, 64px) 0;
}

.page-home .hm-sync__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(46, 242, 255, 0.1), transparent 45%),
    var(--panel);
  clip-path: polygon(var(--hm-cut) 0, 100% 0, 100% calc(100% - var(--hm-cut)), calc(100% - var(--hm-cut)) 100%, 0 100%, 0 var(--hm-cut));
}

.page-home .hm-sync__text h2 {
  margin: 10px 0 14px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.18;
  color: var(--ink);
}

.page-home .hm-steps {
  margin: 18px 0 14px;
  border: 1px solid var(--line);
  background: rgba(4, 6, 15, 0.5);
}

.page-home .hm-steps > summary {
  padding: 13px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  list-style: none;
}

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

.page-home .hm-steps > summary::before {
  content: "▸ ";
  font-family: var(--mono);
  color: var(--orange);
}

.page-home .hm-steps[open] > summary::before {
  content: "▾ ";
}

.page-home .hm-steps ol {
  margin: 0;
  padding: 4px 18px 18px 34px;
  color: var(--ink-2);
  font-size: 14px;
}

.page-home .hm-steps li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.page-home .hm-steps li:last-child {
  margin-bottom: 0;
}

.page-home .hm-sync__board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.page-home .hm-sync__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: rgba(4, 6, 15, 0.6);
  border: 1px solid var(--line);
}

.page-home .hm-sync__cell--wide {
  grid-column: 1 / -1;
  gap: 12px;
}

.page-home .hm-sync__num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.page-home .hm-sync__k {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.page-home .hm-sync__cell .btn {
  align-self: flex-start;
}

/* ---------- 信任信息 ---------- */
.page-home .hm-trust {
  padding: 0 0 clamp(40px, 6vw, 74px);
}

.page-home .hm-trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.page-home .hm-trust__col h2 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.page-home .hm-trust__col p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 40em;
}

.page-home .hm-trust__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.page-home .hm-trust__list li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

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

.page-home .hm-contact {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: minmax(5.5em, auto) 1fr;
  gap: 10px 16px;
  align-items: baseline;
}

.page-home .hm-contact dt {
  font-size: 13px;
  color: var(--ink-2);
}

.page-home .hm-contact dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  word-break: break-word;
}

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

.page-home .hm-trust__icp {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

/* ---------- 响应式 ---------- */
@media (min-width: 680px) {
  .page-home .hm-frame__foot {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .hm-frame__foot a {
    border-bottom: 0;
  }

  .page-home .hm-frame__foot a:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .page-home .hm-frame__foot a:last-child {
    border-right: 0;
  }

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

  .page-home .hm-row__k {
    flex: 0 0 8.5em;
  }

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

@media (min-width: 960px) {
  .page-home .hm-frame__body {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .page-home .hm-deck__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .page-home .hm-watch__grid {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: start;
  }

  .page-home .hm-sync__card {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
  }

  .page-home .hm-trust__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-home .hm-league {
    position: sticky;
    top: 24px;
  }
}

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