.page-home {
  --hm-gap: clamp(0.85rem, 2vw, 1.5rem);
  --hm-r: 20px;
  --hm-pad: clamp(1.1rem, 2.4vw, 1.9rem);
  --hm-line: rgba(143, 166, 156, 0.18);
  --hm-line-strong: rgba(143, 166, 156, 0.32);
  background: var(--ink-900);
  color: var(--snow);
  overflow-x: clip;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home .hm-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(1.2rem, 3vw, 2.4rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
}

.page-home .hm-shell a {
  color: inherit;
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  padding-bottom: clamp(1.6rem, 4vw, 3rem);
}

.page-home .hm-railscale {
  display: none;
}

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

.page-home .hm-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 0.4rem;
}

.page-home .hm-hero__intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--snow);
}

.page-home .hm-hero__intro .lede {
  margin: 0;
  max-width: 46ch;
  color: rgba(244, 248, 242, 0.82);
}

.page-home .hm-hero__cta {
  margin-top: 0.5rem;
}

.page-home .hm-hero__meta {
  color: var(--mist);
  margin: 0;
}

.page-home .hm-hero__media {
  margin: 0;
  border-radius: var(--hm-r);
  overflow: hidden;
}

.page-home .media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .hm-hero__media img {
  aspect-ratio: 16 / 10;
  min-height: 200px;
}

/* 记分牌卡 */
.page-home .hm-score {
  background: linear-gradient(155deg, var(--ink-800) 0%, var(--ink-950) 100%);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r);
  padding: var(--hm-pad);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-home .hm-score__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.page-home .hm-score__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.55rem;
  border-bottom: 1px dashed var(--hm-line-strong);
}

.page-home .hm-score__row:last-child {
  border-bottom: 0;
}

.page-home .hm-score__label {
  font-size: 0.86rem;
  color: var(--mist);
}

.page-home .hm-score__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--snow);
  white-space: nowrap;
}

.page-home .hm-score__num em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--mist);
  margin-left: 0.15rem;
}

.page-home .hm-score__num--orange {
  color: var(--orange);
}

/* 悬浮入口锚点 */
.page-home .hm-anchors {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.page-home .hm-anchor {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem 0.95rem 1.1rem;
  border-radius: 16px;
  background: var(--ink-800);
  border: 1px solid var(--hm-line);
  border-left: 3px solid var(--lime);
  text-decoration: none;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.page-home .hm-anchor:hover,
.page-home .hm-anchor:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(200, 255, 61, 0.6);
  background: #1a3a30;
}

.page-home .hm-anchor__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.page-home .hm-anchor__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .hm-anchor__desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--mist);
}

/* ---------- 通用章节 ---------- */
.page-home .hm-section {
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
  border-top: 1px solid var(--hm-line);
}

.page-home .hm-section__head {
  max-width: 62ch;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.page-home .hm-section__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--snow);
}

.page-home .hm-section__head .lede {
  margin: 0;
  color: rgba(244, 248, 242, 0.76);
}

.page-home .hm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: var(--hm-pad);
  border-radius: var(--hm-r);
  background: var(--ink-800);
  border: 1px solid var(--hm-line);
}

.page-home .hm-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
}

.page-home .hm-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(244, 248, 242, 0.78);
}

.page-home .hm-track--paper {
  background: var(--paper);
  color: var(--ink-900);
  border-color: transparent;
  border-radius: 26px 26px 8px 26px;
}

.page-home .hm-track--paper h3 {
  color: var(--ink-950);
}

.page-home .hm-track--paper p {
  color: #22392f;
}

.page-home .hm-list {
  list-style: none;
  margin: 0.2rem 0 0.4rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.page-home .hm-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #22392f;
}

.page-home .hm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ink-900);
}

.page-home .hm-track--paper .btn {
  align-self: flex-start;
  margin-top: auto;
}

.page-home .hm-link {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 0.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 255, 61, 0.45);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .hm-link:hover,
.page-home .hm-link:focus-visible {
  color: var(--snow);
  border-color: var(--snow);
}

.page-home .hm-track__media {
  margin: 0 0 0.3rem;
  border-radius: 14px;
  overflow: hidden;
}

.page-home .hm-track__media img {
  aspect-ratio: 4 / 3;
}

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

/* ---------- 一周节奏 ---------- */
.page-home .hm-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}

.page-home .hm-weekly__media {
  margin: 0;
  border-radius: var(--hm-r);
  overflow: hidden;
}

.page-home .hm-weekly__media img {
  aspect-ratio: 3 / 2;
}

.page-home .hm-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  position: relative;
}

.page-home .hm-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(180deg, rgba(200, 255, 61, 0.55) 0 6px, transparent 6px 13px);
}

.page-home .hm-step {
  position: relative;
  padding-left: 2.9rem;
}

.page-home .hm-step__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid rgba(200, 255, 61, 0.55);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lime);
}

.page-home .hm-step h3 {
  margin: 0.25rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--snow);
}

.page-home .hm-step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(244, 248, 242, 0.76);
}

/* ---------- 平板视角 ---------- */
.page-home .hm-tablet__copy {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.page-home .hm-points li {
  display: grid;
  gap: 0.25rem;
  padding-left: 0.95rem;
  border-left: 2px solid var(--hm-line-strong);
}

.page-home .hm-points strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--snow);
}

.page-home .hm-points span {
  font-size: 0.88rem;
  line-height: 1.72;
  color: rgba(244, 248, 242, 0.76);
}

.page-home .hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-home .hm-tablet__media {
  margin: 0;
  border-radius: 26px 8px 26px 26px;
  overflow: hidden;
}

.page-home .hm-tablet__media img {
  aspect-ratio: 4 / 5;
  min-height: 240px;
}

/* ---------- 三步上手 ---------- */
.page-home .hm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
}

.page-home .hm-steps__item {
  position: relative;
  padding: var(--hm-pad);
  border-radius: var(--hm-r);
  background: var(--ink-800);
  border: 1px solid var(--hm-line);
}

.page-home .hm-steps__item:nth-child(2) {
  background: #143029;
}

.page-home .hm-steps__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.page-home .hm-steps__item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--snow);
}

.page-home .hm-steps__item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(244, 248, 242, 0.78);
}

.page-home .hm-start__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--hm-line-strong);
}

.page-home .hm-start__foot p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mist);
}

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

/* ---------- 专栏 ---------- */
.page-home .hm-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
}

.page-home .hm-post {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: var(--hm-pad);
  border-radius: var(--hm-r);
  background: linear-gradient(170deg, rgba(22, 51, 43, 0.95), rgba(7, 17, 14, 0.95));
  border: 1px solid var(--hm-line);
  text-decoration: none;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.page-home .hm-post:hover,
.page-home .hm-post:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(77, 216, 255, 0.5);
}

.page-home .hm-post__cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-home .hm-post h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--snow);
}

.page-home .hm-post p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(244, 248, 242, 0.72);
}

.page-home .hm-post .meta {
  margin-top: auto;
  color: var(--mist);
}

.page-home .hm-columns {
  margin-top: var(--hm-gap);
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  border-radius: 8px 26px 26px 26px;
}

.page-home .hm-columns h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink-950);
}

.page-home .hm-columns__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.page-home .hm-columns__list li {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 26, 0.3);
  font-size: 0.78rem;
  color: #22392f;
}

/* ---------- 运营数据带 ---------- */
.page-home .hm-band {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.3rem, 3.5vw, 2.4rem);
  border-radius: 26px;
  background: radial-gradient(120% 140% at 0% 0%, #1d4638 0%, var(--ink-950) 62%);
  border: 1px solid var(--hm-line);
  display: grid;
  gap: 1.3rem;
}

.page-home .hm-band__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.page-home .hm-band__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(200, 255, 61, 0.45);
}

.page-home .hm-band__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
}

.page-home .hm-band__num--orange {
  color: var(--orange);
}

.page-home .hm-band__label {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .hm-band__copy p {
  margin: 0 0 0.9rem;
  max-width: 60ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(244, 248, 242, 0.8);
}

/* ---------- 平板 / 桌面 ---------- */
@media (min-width: 720px) {
  .page-home .hm-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 960px) {
  .page-home .hm-hero__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1rem, 1.6vw, 1.6rem);
    align-content: start;
  }

  .page-home .hm-hero__intro {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
    padding-right: 1rem;
  }

  .page-home .hm-hero__media {
    grid-column: 7 / 13;
    grid-row: 1 / 2;
  }

  .page-home .hm-score {
    grid-column: 7 / 10;
    grid-row: 2 / 3;
  }

  .page-home .hm-anchors {
    grid-column: 10 / 13;
    grid-row: 2 / 3;
  }

  .page-home .hm-tracks {
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1rem, 1.6vw, 1.5rem);
  }

  .page-home .hm-track--a {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
  }

  .page-home .hm-track--b {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
  }

  .page-home .hm-track--c {
    grid-column: 8 / 13;
    grid-row: 2 / 3;
  }

  .page-home .hm-split {
    grid-template-columns: 7fr 5fr;
    gap: clamp(1.5rem, 3vw, 2.8rem);
  }

  .page-home .hm-split--reverse {
    grid-template-columns: 6fr 6fr;
  }

  .page-home .hm-split--reverse .hm-tablet__copy {
    order: 2;
  }

  .page-home .hm-split--reverse .hm-tablet__media {
    order: 1;
  }

  .page-home .hm-weekly__media img {
    aspect-ratio: 4 / 3;
  }

  .page-home .hm-tablet__media img {
    aspect-ratio: 5 / 6;
  }

  .page-home .hm-band {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 2rem;
  }

  .page-home .hm-band__copy p {
    margin-bottom: 1rem;
  }
}

@media (min-width: 1200px) {
  .page-home .hm-hero {
    padding-left: 2.2rem;
  }

  .page-home .hm-railscale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    left: 0;
    top: 0.6rem;
    bottom: 2.4rem;
    width: 1.2rem;
  }

  .page-home .hm-railscale::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(180deg, rgba(143, 166, 156, 0.5) 0 8px, transparent 8px 16px);
  }

  .page-home .hm-railscale__tick {
    position: relative;
    padding-left: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--mist);
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .page-home .hm-railscale__tick::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 0;
    width: 9px;
    height: 1px;
    background: var(--mist);
  }

  .page-home .hm-railscale__tick--on {
    color: var(--lime);
  }

  .page-home .hm-railscale__tick--on::before {
    background: var(--lime);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-anchor,
  .page-home .hm-post,
  .page-home .hm-link {
    transition: none;
  }

  .page-home .hm-anchor:hover,
  .page-home .hm-post:hover {
    transform: none;
  }
}
