.page-home {
  --hm-block-gap: clamp(3.5rem, 9vw, 7.5rem);
  --hm-radius: 0px;
  background: var(--c-night);
  color: var(--c-chalk);
  overflow-x: hidden;
}

.page-home .cdx-mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- 面包屑 ---------- */
.page-home .hm-crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  font-size: 0.8125rem;
  color: var(--c-muted);
  letter-spacing: 0.03em;
}
.page-home .hm-crumb__sep {
  color: var(--c-line);
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
  background:
    linear-gradient(158deg, rgba(22, 81, 63, 0.62) 0%, rgba(11, 43, 34, 0) 52%),
    radial-gradient(120% 80% at 88% 6%, rgba(43, 233, 200, 0.13) 0%, rgba(11, 43, 34, 0) 60%),
    var(--c-night);
}
.page-home .hm-hero__tex {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
}
.page-home .hm-hero__inner {
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.page-home .hm-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 3.5rem);
  align-items: stretch;
}

.page-home .hm-hero__lead {
  position: relative;
  padding-left: clamp(0.9rem, 3vw, 1.6rem);
  border-left: 2px solid var(--c-accent);
}
.page-home .hm-hero__lead::before,
.page-home .hm-hero__lead::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 14px;
  height: 2px;
  background: var(--c-accent);
}
.page-home .hm-hero__lead::before { top: 0; }
.page-home .hm-hero__lead::after { bottom: 0; width: 26px; background: var(--c-gold); }

.page-home .hm-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 9.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--c-chalk);
}
.page-home .hm-hero__ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-accent);
  text-shadow: 8px 8px 0 rgba(22, 81, 63, 0.55);
}

.page-home .hm-hero__sub {
  max-width: 34em;
  margin: 0 0 2rem;
  font-size: clamp(0.98rem, 2.4vw, 1.075rem);
  line-height: 1.8;
  color: var(--c-chalk);
}

.page-home .hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.page-home .hm-hero__meters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 5vw, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
}
.page-home .hm-meter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 88px;
}
.page-home .hm-meter__num {
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
}
.page-home .hm-meter__label {
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.5;
}

.page-home .hm-hero__figure {
  position: relative;
  margin: 0;
  min-height: 220px;
  border: 1px solid var(--c-line);
  background: var(--c-stand);
  overflow: hidden;
}
.page-home .hm-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 480px;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.82);
}
.page-home .hm-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 43, 34, 0.15) 0%, rgba(11, 43, 34, 0.8) 100%);
  pointer-events: none;
}
.page-home .hm-hero__figure-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  color: var(--c-night);
  background: var(--c-accent);
}

/* 首屏信息带 */
.page-home .hm-band {
  display: flex;
  margin: clamp(2rem, 6vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  scrollbar-width: thin;
}
.page-home .hm-band__item {
  flex: 1 0 68%;
  min-width: 200px;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--c-line);
}
.page-home .hm-band__item:last-child { border-right: 0; }
.page-home .hm-band__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-warn);
  line-height: 1.1;
}
.page-home .hm-band__unit {
  margin-left: 0.15rem;
  font-size: 0.8125rem;
  color: var(--c-muted);
}
.page-home .hm-band__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ---------- 通用区块 ---------- */
.page-home .hm-block {
  padding: var(--hm-block-gap) 0;
  border-bottom: 1px solid var(--c-line);
}
.page-home .hm-block:last-of-type { border-bottom: 0; }

.page-home .hm-block__head {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 5vw, 3rem);
}
.page-home .hm-block__title {
  margin: 0.5rem 0 0.9rem;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.55rem, 4.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--c-chalk);
}
.page-home .hm-block__lead {
  margin: 0;
  max-width: 40em;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-muted);
}

/* ---------- 签表区 ---------- */
.page-home .hm-bracketwrap {
  background: linear-gradient(180deg, rgba(16, 58, 46, 0.85) 0%, rgba(11, 43, 34, 1) 100%);
}

.page-home .hm-bracket__scroll {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  background: rgba(11, 43, 34, 0.7);
  scrollbar-width: thin;
}
.page-home .hm-bracket__svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  padding: 1rem;
}

.page-home .hm-line path {
  fill: none;
  stroke: var(--c-line);
  stroke-width: 1;
}

.page-home .hm-node rect {
  fill: var(--c-turf);
  stroke: var(--c-line);
  stroke-width: 1;
  transition: fill var(--cdx-dur) var(--cdx-ease), stroke var(--cdx-dur) var(--cdx-ease);
}
.page-home .hm-node__r {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--c-chalk);
}
.page-home .hm-node__s {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  fill: var(--c-accent);
}
.page-home .hm-node:hover rect,
.page-home .hm-node:focus-visible rect {
  stroke: var(--c-accent);
  fill: var(--c-stand);
}
.page-home .hm-node--gold rect { stroke: var(--c-gold); }
.page-home .hm-node--gold .hm-node__s { fill: var(--c-gold); }
.page-home .hm-node:focus { outline: none; }
.page-home .hm-node:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.page-home .hm-flag rect {
  fill: none;
  stroke: var(--c-accent);
  stroke-dasharray: 4 3;
}
.page-home .hm-flag text {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--c-accent);
}

.page-home .hm-matchrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .hm-match {
  position: relative;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--c-line);
  background: var(--c-stand);
  transition: transform var(--cdx-dur) var(--cdx-ease), border-color var(--cdx-dur) var(--cdx-ease);
}
.page-home .hm-match:hover,
.page-home .hm-match:focus-within {
  transform: translateY(-3px);
  border-color: var(--c-accent);
}
.page-home .hm-match--gold { border-left: 3px solid var(--c-gold); }

.page-home .hm-match__meta {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  color: var(--c-muted);
  letter-spacing: 0.06em;
}
.page-home .hm-match__score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
}
.page-home .hm-match__half {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-warn);
}
.page-home .hm-match__full {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-chalk);
}
.page-home .hm-match__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-chalk);
}
.page-home .hm-match__note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--c-muted);
}
.page-home .hm-match__path {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--c-accent);
  opacity: 0;
  transition: max-height var(--cdx-dur) var(--cdx-ease),
              opacity var(--cdx-dur) var(--cdx-ease),
              margin-top var(--cdx-dur) var(--cdx-ease);
}
.page-home .hm-match:hover .hm-match__path,
.page-home .hm-match:focus-within .hm-match__path {
  max-height: 8rem;
  margin-top: 0.75rem;
  opacity: 1;
}
.page-home .hm-match__path .cdx-mono {
  color: var(--c-muted);
  margin-right: 0.35rem;
}

.page-home .hm-sketch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  align-items: center;
}
.page-home .hm-sketch img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 260px;
  border: 1px solid var(--c-line);
  filter: saturate(0.7) brightness(0.9);
}
.page-home .hm-sketch__cap {
  max-width: 30em;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--c-muted);
  border-left: 2px solid var(--c-gold);
  padding-left: 0.9rem;
}

/* ---------- 号码检索带 ---------- */
.page-home .hm-lookup {
  background:
    linear-gradient(90deg, rgba(22, 81, 63, 0.5) 0%, rgba(11, 43, 34, 0) 70%),
    var(--c-night);
}
.page-home .hm-lookup__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: start;
}
.page-home .hm-lookup__figure {
  margin: 0;
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.page-home .hm-lookup__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.85);
}

.page-home .hm-lookup__search {
  margin: 1.5rem 0 1.25rem;
  max-width: 26rem;
}
.page-home .hm-lookup__search .cdx-search__input {
  width: 100%;
}

.page-home .hm-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.page-home .hm-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--c-line);
  background: var(--c-stand);
  transition: border-color var(--cdx-dur) var(--cdx-ease), background var(--cdx-dur) var(--cdx-ease);
}
.page-home .hm-chip:hover {
  border-color: var(--c-accent-2);
  background: var(--c-turf);
}
.page-home .hm-chip__no {
  flex: 0 0 auto;
  min-width: 2.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-warn);
  text-align: center;
  border-right: 1px solid var(--c-line);
  padding-right: 0.75rem;
}
.page-home .hm-chip__txt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-chalk);
}

.page-home .hm-lookup__foot {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--c-muted);
}
.page-home .hm-lookup__foot .cdx-mono {
  color: var(--c-gold);
  font-weight: 700;
}

/* ---------- 数据面板 ---------- */
.page-home .hm-panels {
  background: var(--c-stand);
}
.page-home .hm-panelrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.page-home .hm-panel {
  padding: 1.4rem 1.25rem;
  background: var(--c-night);
  transition: background var(--cdx-dur) var(--cdx-ease);
}
.page-home .hm-panel:hover { background: var(--c-turf); }
.page-home .hm-panel__title {
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-chalk);
  border-bottom: 1px solid var(--c-line);
  letter-spacing: 0.01em;
}
.page-home .hm-panel__cap {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--c-muted);
}

.page-home .hm-rows {
  display: grid;
  gap: 0.55rem;
}
.page-home .hm-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(42, 74, 65, 0.7);
}
.page-home .hm-row__k {
  font-size: 0.8125rem;
  color: var(--c-muted);
}
.page-home .hm-row__v {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-chalk);
}
.page-home .hm-row--key .hm-row__v { color: var(--c-warn); }

.page-home .hm-bars {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .hm-bar {
  display: grid;
  grid-template-columns: 3.2rem 1fr 2.6rem;
  align-items: center;
  gap: 0.6rem;
}
.page-home .hm-bar__name {
  font-size: 0.75rem;
  color: var(--c-muted);
}
.page-home .hm-bar__track {
  position: relative;
  display: block;
  height: 8px;
  background: rgba(42, 74, 65, 0.55);
}
.page-home .hm-bar__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  background: var(--c-accent-2);
}
.page-home .hm-bar--alt .hm-bar__track i { background: var(--c-warn); }
.page-home .hm-bar__num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-chalk);
  text-align: right;
}

.page-home .hm-panelfig {
  margin: clamp(1.75rem, 5vw, 2.5rem) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.page-home .hm-panelfig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--c-line);
  filter: saturate(0.8) brightness(0.85);
}
.page-home .hm-panelfig__cap {
  max-width: 32em;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--c-muted);
}

/* ---------- 更新节奏 ---------- */
.page-home .hm-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--c-line);
  border-top: 1px solid var(--c-line);
}
.page-home .hm-step {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: var(--c-night);
}
.page-home .hm-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--c-accent-2);
}
.page-home .hm-step--gold::before { background: var(--c-gold); }
.page-home .hm-step__no {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent);
}
.page-home .hm-step--gold .hm-step__no { color: var(--c-gold); }
.page-home .hm-step__title {
  margin: 0.6rem 0 0.45rem;
  font-size: 1.0625rem;
  color: var(--c-chalk);
}
.page-home .hm-step__txt {
  margin: 0;
  max-width: 32em;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--c-muted);
}

/* ---------- 分流区 ---------- */
.page-home .hm-routegrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.page-home .hm-route {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--c-night);
  text-decoration: none;
  color: inherit;
  transition: background var(--cdx-dur) var(--cdx-ease), padding-left var(--cdx-dur) var(--cdx-ease);
}
.page-home .hm-route:hover,
.page-home .hm-route:focus-visible {
  background: var(--c-turf);
  padding-left: 1.6rem;
  outline: none;
}
.page-home .hm-route:focus-visible { box-shadow: inset 0 0 0 2px var(--c-accent); }
.page-home .hm-route__role {
  font-size: 0.75rem;
  color: var(--c-muted);
  letter-spacing: 0.06em;
}
.page-home .hm-route__name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--c-chalk);
  letter-spacing: -0.01em;
}
.page-home .hm-route:hover .hm-route__name { color: var(--c-accent); }
.page-home .hm-route__desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--c-muted);
}
.page-home .hm-route--cta {
  background: rgba(22, 81, 63, 0.75);
  border-top: 2px solid var(--c-accent);
}
.page-home .hm-route--cta .hm-route__name { color: var(--c-accent); }

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
  .page-home .hm-band__item { flex: 1 0 34%; min-width: 190px; }
  .page-home .hm-matchrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .hm-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .hm-panelrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .hm-routegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .hm-sketch { grid-template-columns: 220px minmax(0, 1fr); }
  .page-home .hm-panelfig { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
}

/* ---------- 桌面 ---------- */
@media (min-width: 960px) {
  .page-home .hm-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .page-home .hm-hero__figure img { max-height: 560px; }
  .page-home .hm-band__item { flex: 1 1 0; min-width: 0; }
  .page-home .hm-lookup__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
  }
  .page-home .hm-lookup__figure { position: sticky; top: 7rem; }
  .page-home .hm-panelrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .hm-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-home .hm-routegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .hm-route--cta { grid-column: span 3; }
  .page-home .hm-matchrow { gap: 1.5rem; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .hm-match,
  .page-home .hm-match__path,
  .page-home .hm-chip,
  .page-home .hm-route,
  .page-home .hm-node rect {
    transition: none;
  }
  .page-home .hm-match:hover,
  .page-home .hm-match:focus-within { transform: none; }
  .page-home .hm-route:hover,
  .page-home .hm-route:focus-visible { padding-left: 1.25rem; }
}
</final>

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