.page-home {
  --hm-gap: 1rem;
  --hm-panel: rgba(35, 46, 59, .5);
  --hm-rule: rgba(243, 239, 230, .13);
  display: block;
  padding-block: clamp(1rem, 3.5vw, 2rem) clamp(2.5rem, 8vw, 5rem);
}

/* ---------- 页面上下文 ---------- */
.page-home .hm-context {
  width: var(--shell);
  margin: 0 auto clamp(1rem, 3vw, 1.6rem);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .hm-context span {
  margin-inline: .4rem;
  color: var(--hair-2);
}

/* ---------- 首屏拼贴 ---------- */
.page-home .hm-hero {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--hm-gap);
}

.page-home .hm-hero__col {
  display: flex;
  flex-direction: column;
  gap: var(--hm-gap);
  min-width: 0;
}

.page-home .hm-hero__pair {
  display: flex;
  flex-direction: column;
  gap: var(--hm-gap);
  min-width: 0;
}

.page-home .hm-hero__main,
.page-home .hm-hero__data,
.page-home .hm-hero__read,
.page-home .hm-hero__venue {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--hm-panel);
  overflow: hidden;
}

.page-home .hm-hero__main {
  display: flex;
  flex-direction: column;
}

.page-home .hm-hero__main-media {
  position: relative;
  background: var(--ink-deep);
}

.page-home .hm-hero__main-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-home .hm-hero__main-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 21, .12) 0%, rgba(6, 13, 21, .78) 100%);
  pointer-events: none;
}

.page-home .hm-hero__main-body {
  padding: 1.15rem 1.2rem 1.45rem;
}

.page-home .hm-stamp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .32rem .78rem;
  border: 1px solid rgba(63, 224, 198, .38);
  border-radius: var(--cap);
  background: rgba(63, 224, 198, .07);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .05em;
  color: var(--cyan);
}

.page-home .hm-hero__main h1 {
  margin: .95rem 0 0;
  font-size: clamp(1.8rem, 7.4vw, 3.1rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .005em;
  color: var(--paper);
  transform: skewX(-3deg);
  transform-origin: left bottom;
}

.page-home .hm-hero__main-body p {
  margin: .9rem 0 0;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(243, 239, 230, .76);
}

.page-home .hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.25rem;
}

/* 右侧数据块 */
.page-home .hm-hero__data {
  padding: 1.2rem;
  background:
    linear-gradient(158deg, rgba(63, 224, 198, .11) 0%, rgba(13, 27, 42, .55) 62%),
    var(--hm-panel);
  border-color: rgba(63, 224, 198, .3);
}

.page-home .hm-hero__data-bg {
  position: absolute;
  inset: 0;
}

.page-home .hm-hero__data-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
}

.page-home .hm-hero__data > :not(.hm-hero__data-bg) {
  position: relative;
  z-index: 1;
}

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

.page-home .hm-figures li {
  border-top: 1px solid var(--hair-2);
  padding-top: .7rem;
}

.page-home .hm-figure__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 11vw, 3.2rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: .01em;
  color: var(--paper);
}

.page-home .hm-figure__label {
  display: block;
  margin-top: .45rem;
  max-width: 17rem;
  font-size: .85rem;
  line-height: 1.7;
  color: rgba(243, 239, 230, .68);
}

/* 首屏两张小卡 */
.page-home .hm-hero__read,
.page-home .hm-hero__venue {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.25rem;
}

.page-home .hm-hero__read h2,
.page-home .hm-hero__venue h2 {
  margin: .1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--paper);
}

.page-home .hm-hero__read p,
.page-home .hm-hero__venue p {
  margin: .5rem 0 0;
  font-size: .88rem;
  line-height: 1.75;
  color: rgba(243, 239, 230, .66);
}

.page-home .hm-hero__read .hm-arrow-link,
.page-home .hm-hero__venue .hm-arrow-link {
  margin-top: auto;
  padding-top: 1rem;
}

/* ---------- 通用小件 ---------- */
.page-home .hm-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .hm-kicker::before {
  content: "";
  display: block;
  width: 1.3rem;
  height: 1px;
  background: currentColor;
}

.page-home .hm-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  margin-top: .8rem;
  padding-bottom: .12rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 69, .35);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .hm-arrow-link span {
  transition: transform .2s var(--ease);
}

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

.page-home .hm-arrow-link:hover span {
  transform: translateX(3px);
}

/* ---------- 主体骨架 ---------- */
.page-home .hm-body {
  width: var(--shell);
  margin: clamp(3rem, 8vw, 5.5rem) auto 0;
}

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

.page-home .hm-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(2.75rem, 7vw, 5rem);
  min-width: 0;
}

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

.page-home .hm-block__head {
  margin-bottom: 1.6rem;
}

.page-home .hm-block h2 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.16;
  font-weight: 800;
  color: var(--paper);
}

.page-home .hm-lede {
  margin: .8rem 0 0;
  max-width: 44rem;
  font-size: .98rem;
  line-height: 1.85;
  color: rgba(243, 239, 230, .72);
}

/* ---------- 本周推荐 ---------- */
.page-home .hm-reads {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hm-rule);
}

.page-home .hm-read {
  border-bottom: 1px solid var(--hm-rule);
}

.page-home .hm-read summary {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .85rem;
  padding: 1.05rem 2.4rem 1.05rem 0;
  cursor: pointer;
  list-style: none;
}

.page-home .hm-read summary::-webkit-details-marker {
  display: none;
}

.page-home .hm-read summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--hair-2);
  border-radius: var(--cap);
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--cyan);
  transition: border-color .2s var(--ease);
}

.page-home .hm-read[open] summary::after {
  content: "−";
  border-color: var(--cyan);
}

.page-home .hm-read__title {
  flex: 1 1 13rem;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--paper);
  transition: color .2s var(--ease);
}

.page-home .hm-read summary:hover .hm-read__title {
  color: var(--cyan);
}

.page-home .hm-read__meta {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--mist);
}

.page-home .hm-read__body {
  max-width: 42rem;
  padding: 0 0 1.2rem;
}

.page-home .hm-read__body p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.85;
  color: rgba(243, 239, 230, .72);
}

/* ---------- 球队库 ---------- */
.page-home .hm-points {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}

.page-home .hm-points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .95rem;
  line-height: 1.85;
  color: rgba(243, 239, 230, .78);
}

.page-home .hm-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: .72rem;
  height: 1px;
  background: var(--cyan);
}

.page-home .hm-note {
  margin: 1.4rem 0 0;
  padding-top: .95rem;
  border-top: 1px solid var(--hm-rule);
  font-size: .84rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .hm-note a {
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 179, 108, .4);
}

.page-home .hm-note a:hover,
.page-home .hm-note a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

.page-home .hm-frame--paper {
  border: 1px solid rgba(181, 106, 70, .45);
}

.page-home .hm-frame--paper .frame__cap {
  color: rgba(217, 179, 108, .8);
}

/* ---------- 三种用法 ---------- */
.page-home .hm-uses {
  display: grid;
  gap: 1rem;
}

.page-home .hm-use {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--hm-panel);
}

.page-home .hm-use::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--ember));
}

.page-home .hm-use__idx {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--mist);
}

.page-home .hm-use h3 {
  margin: .55rem 0 0;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .hm-use p {
  margin: .6rem 0 0;
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(243, 239, 230, .7);
}

.page-home .hm-use .hm-arrow-link {
  margin-top: auto;
  padding-top: .9rem;
}

.page-home .hm-frame--venue {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  border: 1px solid var(--hair);
}

/* ---------- 通勤阅读 ---------- */
.page-home .hm-steps {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.page-home .hm-step {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: .9rem;
}

.page-home .hm-step__idx {
  padding-top: .55rem;
  border-top: 1px solid var(--hair-2);
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--cyan);
}

.page-home .hm-step__body {
  padding-top: .55rem;
  border-top: 1px solid var(--hair-2);
}

.page-home .hm-step__body h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  color: var(--paper);
}

.page-home .hm-step__body p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.82;
  color: rgba(243, 239, 230, .7);
}

/* ---------- 结尾分流 ---------- */
.page-home .hm-next {
  display: grid;
  gap: 1px;
  border: 1px solid var(--hm-rule);
  border-radius: var(--r);
  background: var(--hm-rule);
  overflow: hidden;
}

.page-home .hm-next__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.35rem 3rem 1.4rem 1.25rem;
  background: var(--ink);
  text-decoration: none;
  transition: background .25s var(--ease);
}

.page-home .hm-next__item:hover,
.page-home .hm-next__item:focus-visible {
  background: var(--slate-deep);
}

.page-home .hm-next__item strong {
  font-size: 1.08rem;
  color: var(--paper);
}

.page-home .hm-next__item em {
  font-style: normal;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .hm-next__go {
  position: absolute;
  right: 1.1rem;
  bottom: 1.35rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ember);
  transition: transform .2s var(--ease);
}

.page-home .hm-next__item:hover .hm-next__go {
  transform: translateX(4px);
}

.page-home .hm-signoff {
  margin: 1.9rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--ember);
  font-size: clamp(1rem, 3.6vw, 1.15rem);
  line-height: 1.8;
  color: rgba(243, 239, 230, .82);
}

/* ---------- 桌面端 ---------- */
@media (min-width: 760px) {
  .page-home .hm-uses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .hm-hero {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .page-home .hm-hero__col--lead {
    flex: 1.28 1 0;
  }

  .page-home .hm-hero__col--side {
    flex: 1 1 0;
  }

  .page-home .hm-hero__data {
    margin-top: 3.25rem;
  }

  .page-home .hm-hero__pair {
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
  }

  .page-home .hm-hero__pair > * {
    flex: 1 1 0;
  }

  .page-home .hm-hero__pair > :last-child {
    margin-top: 2.5rem;
  }

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

  .page-home .hm-block--split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
  }

  .page-home .hm-block--narrow {
    max-width: 44rem;
  }
}

@media (min-width: 1024px) {
  .page-home .hm-body {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }

  .page-home .hm-rail {
    display: block;
    position: sticky;
    top: 7.5rem;
  }

  .page-home .hm-rail__label {
    margin: 0 0 1rem;
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mist);
  }

  .page-home .hm-rail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .page-home .hm-rail__item a {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    padding: .58rem 0 .58rem .9rem;
    border-left: 1px solid var(--hair-2);
    font-size: .82rem;
    line-height: 1.45;
    color: var(--mist);
    text-decoration: none;
    transition: color .2s var(--ease), border-color .2s var(--ease);
  }

  .page-home .hm-rail__item a span {
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--sand);
  }

  .page-home .hm-rail__item a:hover,
  .page-home .hm-rail__item a:focus-visible {
    color: var(--cyan);
    border-left-color: var(--cyan);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-arrow-link span,
  .page-home .hm-next__go,
  .page-home .hm-next__item,
  .page-home .hm-read summary::after {
    transition: none;
  }

  .page-home .hm-arrow-link:hover span,
  .page-home .hm-next__item:hover .hm-next__go {
    transform: none;
  }
}
