.page-home {
  --hm-gap: clamp(0.9rem, 2.2vw, 1.75rem);
  --hm-line: rgba(143, 163, 184, 0.18);
  --hm-line-soft: rgba(143, 163, 184, 0.36);
  --hm-pad: clamp(3.25rem, 8vw, 7rem);
  position: relative;
  z-index: 0;
  overflow-x: clip;
  color: var(--lm-cream);
  background: var(--lm-ink);
  font-family: var(--lm-font);
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hm-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hm-line) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.55;
}

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

/* ---------- 上下文条 ---------- */
.page-home .hm-context {
  position: relative;
  z-index: 2;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--hm-line);
}

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

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.25rem, 5.5vw, 4.5rem) var(--hm-pad);
  overflow-x: clip;
}

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

.page-home .hm-hero__title {
  margin: 0.65rem 0 1.1rem;
  font-size: clamp(2.05rem, 5.6vw, 4.1rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--lm-white);
  max-width: 15em;
}

.page-home .hm-hero .lm-lead {
  max-width: 34em;
  color: var(--lm-cream);
}

.page-home .hm-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-home .hm-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hm-line);
}

.page-home .hm-fact dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--lm-mist);
}

.page-home .hm-fact dd {
  margin: 0.35rem 0 0;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--lm-white);
}

.page-home .hm-fact dd span {
  font-size: 0.62em;
  margin-left: 0.25em;
  color: var(--lm-mist);
}

.page-home .hm-hero__visual {
  position: relative;
  border-radius: var(--lm-r);
}

.page-home .hm-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--lm-r);
  filter: saturate(1.06) contrast(1.04);
}

.page-home .hm-hero__beam {
  position: absolute;
  inset: 0;
  border-radius: var(--lm-r);
  pointer-events: none;
  background:
    linear-gradient(198deg, rgba(26, 42, 58, 0) 34%, rgba(14, 25, 38, 0.82) 100%),
    linear-gradient(0deg, rgba(255, 107, 53, 0.16), transparent 46%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.page-home .hm-rounds {
  position: absolute;
  left: 1.1rem;
  bottom: 1.15rem;
  display: flex;
  gap: 5px;
  z-index: 3;
}

.page-home .hm-rounds i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.32);
}

.page-home .hm-rounds i:nth-child(n + 13) {
  background: rgba(255, 107, 53, 0.72);
}

.page-home .hm-rounds i:nth-child(17) {
  background: var(--lm-amber);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.2);
}

.page-home .hm-hero__card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  width: min(210px, 62%);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.page-home .hm-hero__cardLabel {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.page-home .hm-hero__cardNum {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--lm-orange);
}

.page-home .hm-hero__cardNum span {
  font-size: 0.5em;
}

.page-home .hm-hero__cardNote {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.78;
}

/* ---------- 章节通用 ---------- */
.page-home .hm-chapter {
  position: relative;
  z-index: 1;
  padding-block: var(--hm-pad);
  border-top: 1px solid var(--hm-line);
}

.page-home .hm-chapter__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .hm-num {
  display: block;
  font-family: var(--lm-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: rgba(244, 241, 234, 0.16);
  transform-origin: left center;
  transition: color 420ms var(--lm-ease), transform 420ms var(--lm-ease);
}

.page-home .hm-chapter.is-active .hm-num {
  color: var(--lm-orange);
  transform: scale(1.06);
}

.page-home .hm-chapter__title {
  margin: 0.75rem 0 0.9rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--lm-white);
}

.page-home .hm-chapter__lead {
  margin: 0;
  max-width: 36ch;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--lm-mist);
}

.page-home .hm-chapter__body {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  min-width: 0;
}

/* ---------- 01 主客场 ---------- */
.page-home .hm-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
}

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

.page-home .hm-fig img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--lm-r);
}

.page-home .hm-panel {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.1rem, 2.6vw, 1.85rem);
  min-width: 0;
}

.page-home .hm-panel__kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--lm-teal-soft);
}

.page-home .hm-bars {
  display: grid;
  gap: 1rem;
}

.page-home .hm-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
}

.page-home .hm-bar__label {
  font-size: 0.82rem;
  color: var(--lm-mist);
}

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

.page-home .hm-bar__track {
  grid-column: 1 / -1;
  display: block;
  height: 9px;
  border-radius: var(--lm-pill);
  background: rgba(143, 163, 184, 0.16);
  overflow: hidden;
}

.page-home .hm-fill {
  display: block;
  height: 100%;
  border-radius: var(--lm-pill);
  transition: width 420ms var(--lm-ease);
}

.page-home .hm-fill--orange {
  background: linear-gradient(90deg, var(--lm-orange-soft), var(--lm-orange));
}

.page-home .hm-fill--teal {
  background: linear-gradient(90deg, var(--lm-teal-soft), var(--lm-teal));
}

.page-home .hm-w-54 { width: 54.2%; }
.page-home .hm-w-47 { width: 46.8%; }
.page-home .hm-w-68 { width: 68%; }
.page-home .hm-w-44 { width: 44%; }

.page-home .hm-run {
  padding-top: 1.1rem;
  border-top: 1px solid var(--hm-line);
}

.page-home .hm-run__label {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--lm-mist);
}

.page-home .hm-run__list {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-run__i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--lm-r-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.page-home .hm-run__i--w {
  background: rgba(0, 168, 150, 0.22);
  color: var(--lm-teal-soft);
}

.page-home .hm-run__i--d {
  background: rgba(255, 209, 102, 0.2);
  color: var(--lm-amber);
}

.page-home .hm-run__i--l {
  background: rgba(143, 163, 184, 0.16);
  color: var(--lm-mist);
}

.page-home .hm-panel__note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--lm-mist);
}

/* ---------- 02 控球率 ---------- */
.page-home .hm-chapter--data {
  background: linear-gradient(180deg, rgba(14, 25, 38, 0.92), rgba(26, 42, 58, 0.4));
}

.page-home .hm-heatwrap {
  position: relative;
  min-width: 0;
}

.page-home .hm-heatwrap__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--lm-r);
  opacity: 0.3;
  z-index: 0;
}

.page-home .hm-heat {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  padding: clamp(1rem, 2.6vw, 1.6rem);
  background: rgba(14, 25, 38, 0.78);
  backdrop-filter: blur(2px);
}

.page-home .hm-heat__legend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.page-home .hm-heat__legendTxt {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--lm-mist);
}

.page-home .hm-heat__scale {
  display: flex;
  gap: 4px;
}

.page-home .hm-heat__scale .hm-cell {
  width: 18px;
  height: 10px;
  aspect-ratio: auto;
  border-radius: 3px;
}

.page-home .hm-heat__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.page-home .hm-cell {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  position: relative;
  transition: transform 200ms var(--lm-ease), box-shadow 200ms var(--lm-ease);
}

.page-home .hm-cell:hover {
  transform: scale(1.14);
  z-index: 5;
  box-shadow: 0 0 0 2px var(--lm-amber);
}

.page-home .hm-cell:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.42rem 0.6rem;
  border-radius: var(--lm-r-sm);
  background: var(--lm-ink-2);
  color: var(--lm-cream);
  border: 1px solid var(--hm-line-soft);
  font-family: var(--lm-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.page-home .hm-cell--1 { background: rgba(95, 224, 208, 0.14); }
.page-home .hm-cell--2 { background: rgba(95, 224, 208, 0.34); }
.page-home .hm-cell--3 { background: rgba(0, 168, 150, 0.58); }
.page-home .hm-cell--4 { background: rgba(255, 138, 92, 0.74); }
.page-home .hm-cell--5 { background: var(--lm-orange); }

.page-home .hm-heat__foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--lm-mist);
}

.page-home .hm-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lm-teal-soft);
  animation: hmPulse 1.9s ease-in-out infinite;
}

@keyframes hmPulse {
  0%, 100% { opacity: 0.32; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

.page-home .hm-ctaRow,
.page-home .hm-linkRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- 03 社团注册 ---------- */
.page-home .hm-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-step {
  position: relative;
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: var(--lm-r);
  background: rgba(244, 241, 234, 0.045);
  border: 1px solid var(--hm-line);
  border-top: 2px solid var(--lm-orange);
}

.page-home .hm-step__n {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lm-orange);
}

.page-home .hm-step__t {
  margin: 0.6rem 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--lm-white);
}

.page-home .hm-step__p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--lm-mist);
}

.page-home .hm-strip {
  position: relative;
  margin: 0;
  border-radius: var(--lm-r);
  overflow: hidden;
}

.page-home .hm-strip img {
  display: block;
  width: 100%;
  height: clamp(170px, 26vw, 260px);
  object-fit: cover;
  border-radius: var(--lm-r);
}

.page-home .hm-strip__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.2rem 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--lm-cream);
  background: linear-gradient(0deg, rgba(14, 25, 38, 0.92), transparent);
}

/* ---------- 04 收藏 ---------- */
.page-home .hm-chapter--fav {
  background: var(--lm-cream);
  color: var(--lm-ink);
  border-top-color: rgba(26, 42, 58, 0.12);
}

.page-home .hm-chapter--fav .hm-num {
  color: rgba(26, 42, 58, 0.15);
}

.page-home .hm-chapter--fav.is-active .hm-num {
  color: var(--lm-orange);
}

.page-home .hm-chapter--fav .hm-chapter__title {
  color: var(--lm-ink-2);
}

.page-home .hm-chapter--fav .hm-chapter__lead {
  color: #4a5b6d;
}

.page-home .hm-pinwrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
  align-items: start;
}

.page-home .hm-pin {
  display: grid;
  gap: 0.5rem;
  padding: 1.1rem;
  border-radius: var(--lm-r);
  background: var(--lm-white);
  box-shadow: 0 18px 40px -26px rgba(14, 25, 38, 0.55);
}

.page-home .hm-pin__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--lm-r-sm);
  font-size: 0.9rem;
  color: #40525f;
  background: rgba(143, 163, 184, 0.12);
}

.page-home .hm-pin__row--on {
  background: rgba(255, 107, 53, 0.13);
  color: var(--lm-ink-2);
  font-weight: 600;
}

.page-home .hm-pin__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lm-mist);
  flex: none;
}

.page-home .hm-pin__row--on .hm-pin__dot {
  background: var(--lm-orange);
}

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

.page-home .hm-pinlist li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.96rem;
  line-height: 1.74;
  color: #3f5163;
}

.page-home .hm-pinlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  border-radius: var(--lm-pill);
  background: var(--lm-teal);
}

.page-home .hm-chapter--fav .lm-btn--ghost {
  border-color: rgba(26, 42, 58, 0.28);
  color: var(--lm-ink-2);
}

/* ---------- 合作与联系 ---------- */
.page-home .hm-partners {
  position: relative;
  z-index: 1;
  padding-block: var(--hm-pad);
  background: linear-gradient(180deg, rgba(14, 25, 38, 0.96), rgba(26, 42, 58, 0.86));
  overflow-x: clip;
}

.page-home .hm-partners__head {
  max-width: 62ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .hm-partners__title {
  margin: 0.6rem 0 0.9rem;
  font-size: clamp(1.55rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--lm-white);
}

.page-home .hm-partners__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--lm-mist);
}

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

.page-home .hm-pcard {
  display: grid;
  gap: 0.55rem;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
}

.page-home .hm-pcard__num {
  margin: 0.35rem 0 0;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--lm-orange);
}

.page-home .hm-pcard__txt {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--lm-mist);
}

.page-home .hm-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--hm-line);
  border-radius: var(--lm-r);
  overflow: hidden;
  background: var(--hm-line);
}

.page-home .hm-contact__item {
  padding: 1.05rem 1.2rem;
  background: rgba(14, 25, 38, 0.9);
}

.page-home .hm-contact__k {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--lm-mist);
}

.page-home .hm-contact__v {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lm-white);
  word-break: break-word;
}

.page-home .hm-contact__note {
  margin: 1.1rem 0 0;
  max-width: 62ch;
  font-size: 0.88rem;
  line-height: 1.74;
  color: var(--lm-mist);
}

.page-home .hm-linkRow--end {
  margin-top: 1.4rem;
}

.page-home .hm-skyline {
  display: block;
  width: 100%;
  height: clamp(60px, 9vw, 118px);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.page-home .hm-skyline path {
  fill: rgba(143, 163, 184, 0.16);
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-home .hm-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .hm-heat__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
  }

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

@media (min-width: 860px) {
  .page-home .hm-split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
    align-items: stretch;
  }

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

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

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

@media (min-width: 1024px) {
  .page-home .hm-hero__grid {
    grid-template-columns: 5fr 7fr;
  }

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

  .page-home .hm-chapter__head {
    position: sticky;
    top: 6.5rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-num,
  .page-home .hm-cell,
  .page-home .hm-fill {
    transition: none;
  }

  .page-home .hm-pulse {
    animation: none;
    opacity: 1;
  }

  .page-home .hm-chapter.is-active .hm-num {
    transform: none;
  }
}
