.page-home {
  --hm-gap: clamp(20px, 3vw, 32px);
  --hm-band: clamp(52px, 8vw, 96px);
  background-color: var(--night);
  color: var(--warm);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.page-home .hm-figcap {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.page-home .text-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}

.page-home .text-link:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 页内细竖条 ---------- */
.page-home .hm-rail {
  display: none;
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  padding-top: clamp(26px, 5vw, 52px);
  padding-bottom: clamp(40px, 6vw, 76px);
  overflow: hidden;
}

.page-home .hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(155deg, #000 0%, transparent 64%);
  mask-image: linear-gradient(155deg, #000 0%, transparent 64%);
  pointer-events: none;
}

.page-home .hm-hero__grid {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.page-home .hm-hero__ctx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-home .hm-hero__title {
  margin-top: 20px;
  font-size: clamp(32px, 9vw, 92px);
  font-weight: 200;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--pure);
}

.page-home .hm-hero__lede {
  max-width: 34em;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--warm);
  opacity: 0.86;
}

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

.page-home .hm-hero__index {
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.page-home .hm-hero__index li {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  column-gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

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

.page-home .hm-hero__index a {
  font-size: 17px;
  font-weight: 500;
  color: var(--pure);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.page-home .hm-hero__index a:hover {
  border-bottom-color: var(--cyan);
}

.page-home .hm-hero__meta {
  grid-column: 2;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .hm-hero__panel {
  position: relative;
  padding: clamp(26px, 5vw, 44px) clamp(16px, 3vw, 26px);
  background-color: var(--stand);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.page-home .hm-hero__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  width: 3px;
  height: 54px;
  background-color: var(--orange);
}

.page-home .hm-hero__shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.page-home .hm-hero__cap {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 通用区块 ---------- */
.page-home .hm-sec {
  padding-block: var(--hm-band);
  border-top: 1px solid var(--line);
}

.page-home .hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-home .hm-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background-color: var(--cyan);
}

.page-home .hm-title {
  margin-top: 16px;
  max-width: 20em;
  font-size: clamp(27px, 4.4vw, 44px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--pure);
}

.page-home .hm-title--soft {
  font-size: clamp(25px, 3.8vw, 36px);
}

.page-home .hm-body {
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--warm);
  opacity: 0.84;
}

.page-home .hm-compare__head .hm-body,
.page-home .hm-scorers__main .hm-body,
.page-home .hm-install .hm-title + .hm-install__grid,
.page-home .hm-directory__head .hm-body,
.page-home .hm-local__lead .hm-body,
.page-home .hm-docs__head .hm-body {
  margin-top: 18px;
}

/* ---------- 球员数据对照 ---------- */
.page-home .hm-compare__body {
  display: grid;
  gap: var(--hm-gap);
  margin-top: clamp(24px, 4vw, 40px);
}

.page-home .hm-table__scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background-color: var(--stand);
}

.page-home .hm-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.page-home .hm-table__cap {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
}

.page-home .hm-table th,
.page-home .hm-table td {
  padding: 15px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.page-home .hm-table tr:last-child th,
.page-home .hm-table tr:last-child td {
  border-bottom: 0;
}

.page-home .hm-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-home .hm-table thead th:first-child,
.page-home .hm-table tbody th {
  text-align: left;
}

.page-home .hm-table tbody th {
  font-weight: 500;
}

.page-home .hm-table__id {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--pure);
}

.page-home .hm-table__pos {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--mist);
}

.page-home .hm-table tbody td {
  font-family: var(--font-mono);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--pure);
}

.page-home .hm-table tbody tr {
  transition: background-color 0.2s var(--ease);
}

.page-home .hm-table tbody tr:hover {
  background-color: var(--board);
}

.page-home .hm-compare__aside {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  background-color: var(--night);
}

.page-home .hm-aside__num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange);
}

.page-home .hm-aside__title {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--pure);
}

.page-home .hm-aside__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 射手榜 ---------- */
.page-home .hm-scorers__grid {
  display: grid;
  gap: var(--hm-gap);
}

.page-home .hm-board {
  margin-top: clamp(24px, 4vw, 36px);
  border-top: 1px solid var(--line);
}

.page-home .hm-board__row {
  display: grid;
  grid-template-columns: 2.8em minmax(0, 1fr) 3.4em;
  column-gap: 12px;
  align-items: baseline;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-home .hm-board__row:hover {
  border-bottom-color: var(--cyan);
  background-color: var(--stand);
}

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

.page-home .hm-board__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--pure);
}

.page-home .hm-board__meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--mist);
}

.page-home .hm-board__value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--pure);
}

.page-home .hm-board__row:hover .hm-board__value {
  color: var(--cyan);
}

.page-home .hm-scorers__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
}

.page-home .hm-scorers__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.9) contrast(1.05);
}

/* ---------- 目录速查 ---------- */
.page-home .hm-directory__head {
  display: grid;
  gap: 18px;
}

.page-home .hm-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: clamp(22px, 3vw, 32px);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .hm-filter__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-right: 2px;
}

.page-home .hm-filter__label:not(:first-child) {
  margin-left: 12px;
}

.page-home .chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--mist);
  background-color: transparent;
  border: 1px solid var(--line);
}

.page-home .chip.is-active {
  color: var(--pure);
  border-color: var(--cyan);
}

.page-home .hm-cards {
  display: grid;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 36px);
}

.page-home .hm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 20px 22px;
  background-color: var(--stand);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .hm-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-home .hm-card__num {
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 4px 9px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--night);
  background-color: var(--cyan);
}

.page-home .hm-card__title {
  font-size: 19px;
  font-weight: 500;
  color: var(--pure);
}

.page-home .hm-card__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .hm-card__meta {
  margin-top: auto;
  padding-top: 18px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

/* ---------- 安装四步 ---------- */
.page-home .hm-install__grid {
  display: grid;
  gap: var(--hm-gap);
  margin-top: clamp(24px, 4vw, 40px);
}

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

.page-home .hm-step {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  column-gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s var(--ease);
}

.page-home .hm-step:hover {
  background-color: var(--stand);
}

.page-home .hm-step__num {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cyan);
}

.page-home .hm-step__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--pure);
}

.page-home .hm-step__meta {
  grid-column: 2;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .hm-install__side img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.88) contrast(1.05);
}

/* ---------- 河北本地服务 ---------- */
.page-home .hm-local {
  padding-block: calc(var(--hm-band) * 1.15);
  background: linear-gradient(180deg, var(--night) 0%, var(--stand) 22%, var(--stand) 78%, var(--night) 100%);
  border-top: 1px solid var(--line);
}

.page-home .hm-local__grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.page-home .hm-local__lead .hm-body {
  margin-top: 20px;
  max-width: 30em;
}

.page-home .hm-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.page-home .hm-cities li {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--mist);
  border: 1px solid var(--line);
}

.page-home .hm-cities li.is-open {
  color: var(--warm);
  border-color: var(--cyan);
}

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

.page-home .hm-stat__label {
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .hm-stat__num {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--pure);
}

.page-home .hm-local__cta {
  margin-top: 30px;
}

.page-home .hm-local__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.9) contrast(1.04);
}

/* ---------- 帮助文档 ---------- */
.page-home .hm-docs__head {
  display: grid;
  gap: 18px;
}

.page-home .hm-topics {
  display: grid;
  gap: 1px;
  margin-top: clamp(26px, 4vw, 38px);
  background-color: var(--line);
  border: 1px solid var(--line);
}

.page-home .hm-topic {
  padding: 18px 20px;
  background-color: var(--night);
  transition: background-color 0.2s var(--ease);
}

.page-home .hm-topic:hover {
  background-color: var(--stand);
}

.page-home .hm-topic__title {
  font-size: 17px;
  font-weight: 500;
  color: var(--pure);
}

.page-home .hm-topic__text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .hm-topic__count {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .hm-docs__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.page-home .hm-docs__note {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

/* ---------- 收束 ---------- */
.page-home .hm-close {
  border-top: 1px solid var(--line);
  padding-block: 34px;
}

.page-home .hm-close__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
}

.page-home .hm-close__idx {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-home .hm-close__text {
  flex: 1 1 16em;
  font-size: 14px;
  color: var(--mist);
}

.page-home .hm-close__links {
  display: flex;
  gap: 22px;
}

.page-home .hm-close__links .text-link {
  margin-top: 0;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .hm-hero__index li {
    grid-template-columns: 3.2em minmax(0, 10em) minmax(0, 1fr);
  }

  .page-home .hm-hero__meta {
    grid-column: 3;
    margin-top: 0;
  }

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

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

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

  .page-home .hm-hero__panel {
    margin-top: 26px;
    clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
  }

  .page-home .hm-compare__body {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: start;
  }

  .page-home .hm-scorers__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .hm-install__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .hm-install__side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-home .hm-directory__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 24px 40px;
  }

  .page-home .hm-local__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }

  .page-home .hm-docs__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 24px 40px;
  }
}

@media (min-width: 1000px) {
  .page-home .hm-cards {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .hm-card:nth-child(1) {
    grid-column: span 7;
  }

  .page-home .hm-card:nth-child(2) {
    grid-column: span 5;
  }

  .page-home .hm-card:nth-child(3) {
    grid-column: span 5;
  }

  .page-home .hm-card:nth-child(4) {
    grid-column: span 7;
  }

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

@media (min-width: 1100px) {
  .page-home .hm-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }

  .page-home .hm-rail a {
    display: block;
    width: 3px;
    height: 20px;
    background-color: var(--line);
    transition: background-color 0.2s var(--ease), height 0.2s var(--ease);
  }

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

  .page-home .hm-rail a[aria-current="true"] {
    height: 32px;
    background-color: var(--cyan);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-card,
  .page-home .hm-board__row,
  .page-home .hm-step,
  .page-home .hm-rail a {
    transition: none;
  }

  .page-home .hm-card:hover {
    transform: none;
  }
}
