.page-home {
  --hm-line-soft: rgba(31, 85, 70, 0.6);
  --hm-fog-soft: rgba(233, 242, 239, 0.8);
  display: block;
  background: var(--c-ink);
  color: var(--c-fog);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home p,
.page-home ol,
.page-home ul,
.page-home dl,
.page-home dd,
.page-home figure,
.page-home figcaption {
  margin: 0;
  padding: 0;
}

.page-home ol,
.page-home ul {
  list-style: none;
}

.page-home a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 章节轨 ---------- */
.page-home .hm-toc {
  display: none;
}

/* ---------- 封面 ---------- */
.page-home .hm-cover {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vw, 132px) 0 clamp(72px, 10vw, 148px);
  background:
    radial-gradient(ellipse at 76% 14%, rgba(63, 224, 200, 0.12), transparent 56%),
    radial-gradient(ellipse at 12% 88%, rgba(14, 42, 39, 0.9), transparent 62%),
    var(--c-ink);
}

.page-home .hm-cover__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  opacity: 0.2;
  filter: saturate(0.7);
  z-index: 0;
}

.page-home .hm-cover__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(24px, 4vw, 40px);
}

.page-home .hm-cover__ctx {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-moss);
}

.page-home .hm-cover__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--c-fog);
  max-width: 12em;
}

.page-home .hm-cover__lede {
  max-width: 34em;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.85;
  color: var(--hm-fog-soft);
  font-weight: 400;
}

.page-home .hm-cover__side {
  display: grid;
  row-gap: clamp(24px, 3.4vw, 36px);
  align-content: end;
}

.page-home .hm-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 52px);
  padding-top: clamp(16px, 2.4vw, 24px);
  border-top: 1px solid var(--hm-line-soft);
}

.page-home .hm-facts__item {
  min-width: 6.5em;
}

.page-home .hm-facts__k {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-moss);
  margin-bottom: 8px;
}

.page-home .hm-facts__v {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--c-fog);
  line-height: 1.4;
}

.page-home .hm-cover__index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hm-line-soft);
}

.page-home .hm-cover__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(31, 85, 70, 0.32);
  color: var(--c-moss);
  transition: color var(--t-hover) var(--ease), padding-left var(--t-hover) var(--ease);
}

.page-home .hm-cover__link:hover,
.page-home .hm-cover__link:focus-visible {
  color: var(--c-cyan);
  padding-left: 8px;
}

.page-home .hm-cover__no {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-steel);
  flex: 0 0 auto;
}

.page-home .hm-cover__txt {
  font-size: 15px;
}

/* ---------- 通用区块 ---------- */
.page-home .hm-sec {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9.5vw, 148px) 0;
  background: var(--c-ink);
}

.page-home .hm-sec__inner {
  position: relative;
  z-index: 1;
}

.page-home .hm-sec__head {
  max-width: 46em;
  margin-bottom: clamp(36px, 5vw, 68px);
}

.page-home .hm-kicker {
  display: block;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-moss);
  margin-bottom: 16px;
}

.page-home .hm-sec__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.4vw, 3.05rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--c-fog);
}

.page-home .hm-sec__lede {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 42em;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--hm-fog-soft);
}

/* ---------- 净胜球时间轴 ---------- */
.page-home .hm-timeline__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  z-index: 0;
}

.page-home .hm-axis {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-home .hm-axis__track {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.page-home .hm-axis__list {
  display: flex;
  gap: clamp(16px, 2.6vw, 34px);
  min-width: max-content;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hm-line-soft);
}

.page-home .hm-axis__item {
  position: relative;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-steel);
  padding-bottom: 10px;
}

.page-home .hm-axis__item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 8px;
  background: var(--c-line);
  transform: translateX(-50%);
}

.page-home .hm-axis__item.is-current {
  color: var(--c-cyan);
}

.page-home .hm-axis__item.is-current::after {
  height: 14px;
  background: var(--c-cyan);
}

.page-home .hm-axis__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-moss);
}

.page-home .hm-chartwrap {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--hm-line-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20, 58, 49, 0.55), rgba(8, 22, 31, 0.2));
}

.page-home .hm-chart {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .hm-chart__grid line {
  stroke: var(--c-line);
  stroke-width: 1;
  opacity: 0.5;
}

.page-home .hm-chart__area {
  fill: url(#hmAreaGrad);
}

.page-home .hm-chart__line {
  fill: none;
  stroke: var(--c-cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .hm-chart__dot {
  fill: var(--c-cyan);
}

.page-home .hm-chart__mark {
  fill: none;
  stroke: var(--c-cyan);
  stroke-width: 1;
  opacity: 0.45;
  stroke-dasharray: 3 4;
}

.page-home .hm-chartwrap figcaption {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-moss);
}

/* ---------- 补时阶段 ---------- */
.page-home .hm-stoppage {
  background: var(--c-deep);
  border-top: 1px solid var(--hm-line-soft);
  border-bottom: 1px solid var(--hm-line-soft);
}

.page-home .hm-stoppage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
}

.page-home .hm-bars {
  display: block;
  width: 100%;
  height: auto;
}

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

.page-home .hm-bars__g rect {
  fill: var(--c-cyan);
  opacity: 0.55;
}

.page-home .hm-bars__g rect.is-warn {
  fill: var(--c-warn);
  opacity: 0.9;
}

.page-home .hm-bars__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-steel);
  padding-right: 2%;
}

.page-home .hm-bars-wrap figcaption {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-moss);
}

.page-home .hm-stoppage__side {
  display: grid;
  row-gap: clamp(24px, 3.4vw, 36px);
  align-content: start;
}

.page-home .hm-legend {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--hm-line-soft);
}

.page-home .hm-legend__item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(31, 85, 70, 0.34);
  font-size: 14px;
  color: var(--c-fog);
}

.page-home .hm-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.page-home .hm-legend__dot--warn { background: var(--c-warn); }
.page-home .hm-legend__dot--cyan { background: var(--c-cyan); }
.page-home .hm-legend__dot--moss { background: var(--c-moss); }
.page-home .hm-legend__dot--soft { background: var(--c-warn-soft); }

.page-home .hm-legend__t {
  color: var(--hm-fog-soft);
}

.page-home .hm-legend__n {
  font-size: 13px;
  color: var(--c-fog);
}

.page-home .hm-stoppage__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-card);
  border: 1px solid var(--hm-line-soft);
}

/* ---------- 数据板块索引 ---------- */
.page-home .hm-boards__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

.page-home .hm-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-lg);
  border: 1px solid var(--hm-line-soft);
  background: linear-gradient(160deg, rgba(20, 58, 49, 0.72), rgba(8, 22, 31, 0.5));
  transition: border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}

.page-home .hm-board:hover,
.page-home .hm-board:focus-within {
  border-color: rgba(63, 224, 200, 0.5);
  transform: translateY(-2px);
}

.page-home .hm-board--b,
.page-home .hm-board--d {
  background: linear-gradient(160deg, rgba(14, 42, 39, 0.86), rgba(8, 22, 31, 0.6));
}

.page-home .hm-board__no {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
}

.page-home .hm-board__h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.1;
  color: var(--c-fog);
}

.page-home .hm-board__p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--hm-fog-soft);
  max-width: 30em;
}

.page-home .hm-board__meta {
  font-size: 13px;
  color: var(--c-moss);
}

.page-home .hm-board__go {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-cyan);
  transition: border-color var(--t-hover) var(--ease);
}

.page-home .hm-board__go:hover,
.page-home .hm-board__go:focus-visible {
  border-color: var(--c-cyan);
}

/* ---------- 更新节奏 ---------- */
.page-home .hm-cadence {
  background: var(--c-deep);
  border-top: 1px solid var(--hm-line-soft);
}

.page-home .hm-cadence__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.page-home .hm-cadence__item {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--hm-line-soft);
}

.page-home .hm-cadence__no {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-warn);
  margin-bottom: 12px;
}

.page-home .hm-cadence__h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.2;
  color: var(--c-fog);
  margin-bottom: 10px;
}

.page-home .hm-cadence__p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--hm-fog-soft);
}

.page-home .hm-versions {
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--hm-line-soft);
}

.page-home .hm-versions__label {
  font-size: 13px;
  color: var(--c-moss);
  margin-bottom: 16px;
}

.page-home .hm-versions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .hm-versions__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-steel);
}

.page-home .hm-versions__item.is-current {
  border-color: var(--c-cyan);
  color: var(--c-ink);
  background: var(--c-cyan);
}

.page-home .hm-versions__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-moss);
  max-width: 46em;
}

/* ---------- 三条起点 ---------- */
.page-home .hm-paths {
  background: var(--c-ink);
}

.page-home .hm-paths__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  z-index: 0;
}

.page-home .hm-paths__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.page-home .hm-path {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3.4vw, 38px) clamp(20px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  border: 1px solid var(--hm-line-soft);
  background: rgba(14, 42, 39, 0.66);
  transition: background var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}

.page-home .hm-path:hover,
.page-home .hm-path:focus-visible {
  background: rgba(20, 58, 49, 0.9);
  border-color: rgba(63, 224, 200, 0.45);
}

.page-home .hm-path__k {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-moss);
}

.page-home .hm-path__h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.24;
  color: var(--c-fog);
}

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

@media (min-width: 960px) {
  .page-home .hm-cover__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    column-gap: clamp(36px, 5vw, 88px);
    align-items: end;
  }

  .page-home .hm-cover__ctx {
    grid-column: 1 / -1;
  }

  .page-home .hm-cover__title {
    grid-column: 1;
    align-self: end;
    margin-top: clamp(72px, 9vw, 148px);
  }

  .page-home .hm-cover__lede {
    grid-column: 1;
  }

  .page-home .hm-cover__side {
    grid-column: 2;
    grid-row: 2 / span 2;
    padding-bottom: 4px;
  }

  .page-home .hm-stoppage__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .hm-boards__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 24px);
  }

  .page-home .hm-board--a { grid-column: span 7; }
  .page-home .hm-board--b { grid-column: span 5; }
  .page-home .hm-board--c { grid-column: span 5; }
  .page-home .hm-board--d { grid-column: span 7; }

  .page-home .hm-paths__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }

  .page-home .hm-path:nth-child(1) { grid-column: span 5; }
  .page-home .hm-path:nth-child(2) { grid-column: span 4; }
  .page-home .hm-path:nth-child(3) { grid-column: span 3; }

  .page-home .hm-versions {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 2fr);
    column-gap: clamp(24px, 4vw, 56px);
    align-items: start;
  }

  .page-home .hm-versions__label {
    grid-column: 1;
  }

  .page-home .hm-versions__list {
    grid-column: 2;
    margin-bottom: 14px;
  }

  .page-home .hm-versions__note {
    grid-column: 2;
  }
}

@media (min-width: 1320px) {
  .page-home .hm-toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    padding-left: 12px;
    border-left: 1px solid rgba(31, 85, 70, 0.7);
  }

  .page-home .hm-toc__link {
    font-size: 12px;
    line-height: 1.9;
    letter-spacing: 0.08em;
    color: var(--c-steel);
    transition: color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
  }

  .page-home .hm-toc__link:hover,
  .page-home .hm-toc__link:focus-visible,
  .page-home .hm-toc__link.is-active {
    color: var(--c-cyan);
    transform: translateX(3px);
  }
}

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