.page-home {
  --hm-gap: clamp(18px, 2.4vw, 34px);
  --hm-edge: rgba(66, 245, 209, .15);
  --hm-line-soft: rgba(66, 245, 209, .09);
  --hm-card: #0C2B23;
  --hm-sect: clamp(46px, 6.4vw, 96px);
  color: var(--paper);
  background: linear-gradient(180deg, var(--ink-base) 0%, var(--ink-base) 52%, var(--ink-deep) 100%);
  padding-bottom: clamp(28px, 4vw, 56px);
}

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

.page-home [id] {
  scroll-margin-top: 88px;
}

.page-home .hm-h2 {
  margin: .28em 0 .5em;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--paper);
}

.page-home .hm-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color .18s var(--ease);
}

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

/* 首屏 */
.hm-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(26px, 4vw, 56px) clamp(46px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.hm-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
  filter: saturate(.55) brightness(.8);
  pointer-events: none;
}

.hm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hm-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hm-line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .55;
}

.hm-hero__inner {
  position: relative;
  z-index: 1;
}

.hm-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 clamp(18px, 2.4vw, 30px);
}

.hm-context__dot {
  width: 20px;
  height: 1px;
  background: var(--gold-deep);
}

.hm-context__meta {
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--mist);
}

.hm-lead {
  max-width: 60ch;
}

.hm-lead__title {
  margin: 0 0 .32em;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--paper);
}

.hm-lead__accent {
  color: var(--cyan);
  font-weight: 500;
}

.hm-lead__lede {
  max-width: 54ch;
  margin: 0;
  font-size: clamp(.98rem, 1.3vw, 1.1rem);
  line-height: 1.85;
  color: var(--mist);
}

.hm-lead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.6vw, 30px);
}

/* 首屏分栏 */
.hm-grid {
  display: grid;
  gap: var(--hm-gap);
  margin-top: clamp(32px, 4.6vw, 58px);
}

.hm-rail {
  display: grid;
  gap: clamp(20px, 2.6vw, 32px);
  align-content: start;
}

.hm-rail__block {
  padding: 16px 16px 18px;
  background: linear-gradient(180deg, rgba(12, 43, 35, .82), rgba(6, 26, 21, .66));
  border: 1px solid var(--hm-edge);
}

.hm-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hm-rail__title {
  margin: 0;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--paper);
}

.hm-rail__count {
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: .06em;
}

.hm-rail__note {
  margin: 12px 0 0;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--mist);
}

/* 时间轴 */
.hm-timeline {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.hm-timeline__row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0 12px 2px;
  border-bottom: 1px solid var(--hm-line-soft);
}

.hm-timeline__row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.hm-timeline__row.is-now {
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(66, 245, 209, .1), transparent 72%);
  box-shadow: inset 2px 0 0 var(--cyan);
}

.hm-timeline__node {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 8px;
  border-radius: 50%;
  background: rgba(155, 201, 190, .32);
}

.hm-timeline__row.is-now .hm-timeline__node {
  width: auto;
  height: auto;
  background: none;
}

.hm-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(66, 245, 209, .55);
  animation: hm-pulse 1.8s ease-out infinite;
}

@keyframes hm-pulse {
  70%, 100% {
    box-shadow: 0 0 0 12px rgba(66, 245, 209, 0);
  }
}

.hm-timeline__body {
  min-width: 0;
}

.hm-timeline__league {
  display: block;
  font-size: .92rem;
  color: var(--paper);
  overflow-wrap: break-word;
}

.hm-timeline__meta {
  display: block;
  margin-top: 3px;
  font-size: .74rem;
  color: var(--mist);
}

.hm-timeline__time {
  font-size: .78rem;
  color: var(--mist);
  white-space: nowrap;
}

.hm-timeline__row.is-now .hm-timeline__time {
  color: var(--cyan);
}

/* 标签云 */
.hm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

/* 对照卡矩阵 */
.hm-matrix {
  min-width: 0;
}

.hm-matrix__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hm-matrix__title {
  margin: 0;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--paper);
}

.hm-matrix__hint {
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--mist);
}

.hm-matrix__grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hm-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 15px 15px 13px;
  background: linear-gradient(165deg, var(--hm-card) 0%, #081E18 100%);
  border: 1px solid var(--hm-edge);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.hm-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.hm-card.is-active {
  border-color: var(--line-strong);
}

.hm-card.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
}

.hm-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hm-card__no {
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--mist);
}

.hm-card__title {
  margin: 0;
  font-size: .96rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--paper);
}

.hm-card__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
}

.hm-card__fields dt {
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--mist);
}

.hm-card__fields dd {
  margin: 3px 0 0;
  font-size: .84rem;
  color: var(--paper);
}

.hm-card__src {
  margin: 0;
  font-size: .68rem;
  line-height: 1.6;
  color: rgba(155, 201, 190, .72);
}

.hm-matrix__foot {
  margin: 18px 0 0;
  font-size: .84rem;
  line-height: 1.85;
  color: var(--mist);
}

/* 案例合集条带 */
.hm-cases {
  position: relative;
  overflow: hidden;
  padding-top: var(--hm-sect);
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
}

.hm-cases__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .13;
  pointer-events: none;
}

.hm-cases__head,
.hm-strip,
.hm-cases__foot {
  position: relative;
  z-index: 1;
}

.hm-cases__lede {
  max-width: 60ch;
  margin: 0;
  font-size: .92rem;
  line-height: 1.85;
  color: var(--mist);
}

.hm-strip {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 6px var(--gutter) clamp(30px, 4vw, 46px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.hm-strip::-webkit-scrollbar {
  height: 6px;
}

.hm-strip::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}

.hm-strip__item {
  flex: 0 0 84vw;
  max-width: 330px;
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
  background: rgba(6, 26, 21, .88);
  border: 1px solid var(--hm-edge);
  border-top: 2px solid var(--gold-deep);
}

.hm-strip__no {
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--gold);
}

.hm-strip__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--paper);
}

.hm-strip__desc {
  margin: 0;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--mist);
}

.hm-strip__meta {
  list-style: none;
  margin: 4px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--hm-line-soft);
  display: grid;
  gap: 6px;
  font-size: .76rem;
}

.hm-strip__meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--mist);
}

.hm-strip__meta b {
  font-weight: 500;
  color: var(--paper);
}

.hm-cases__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding-bottom: var(--hm-sect);
}

.hm-cases__foot .hm-link {
  font-size: .86rem;
}

/* 中心导出 */
.hm-export {
  padding-block: var(--hm-sect);
  border-top: 1px solid var(--line);
}

.hm-export__wrap {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.hm-export__lede {
  max-width: 56ch;
  margin: 0;
  font-size: .94rem;
  line-height: 1.9;
  color: var(--mist);
}

.hm-formats {
  list-style: none;
  margin: 24px 0 18px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.hm-formats li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  line-height: 1.7;
  color: var(--mist);
}

.hm-formats__key {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--gold);
}

.hm-export__list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hm-export__list li {
  position: relative;
  padding-left: 18px;
  font-size: .86rem;
  line-height: 1.75;
  color: var(--mist);
}

.hm-export__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.hm-export__figure {
  margin: 0;
}

.hm-export__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hm-edge);
  background: var(--ink-panel);
}

.hm-export__figure figcaption {
  margin-top: 10px;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--mist);
}

/* 回访路径 */
.hm-return {
  padding-block: var(--hm-sect);
  border-top: 1px solid var(--line);
}

.hm-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.hm-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.hm-step__idx {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--gold);
}

.hm-step__body h3 {
  margin: 0 0 6px;
  font-size: .98rem;
  font-weight: 500;
  color: var(--paper);
}

.hm-step__body p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.8;
  color: var(--mist);
}

.hm-return__note {
  margin: 22px 0 0;
  max-width: 66ch;
  font-size: .86rem;
  line-height: 1.9;
  color: var(--mist);
}

/* 更新节奏 */
.hm-cadence {
  padding-block: var(--hm-sect);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 56, 46, 0) 0%, rgba(16, 56, 46, .38) 100%);
}

.hm-cadence__grid {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.hm-cadence__cell {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}

.hm-cadence__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--cyan);
}

.hm-cadence__label {
  margin: 8px 0 8px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--gold);
}

.hm-cadence__cell p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.8;
  color: var(--mist);
}

.hm-cadence__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hm-cadence__foot p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.8;
  color: var(--mist);
}

.hm-cadence__foot .hm-link {
  font-size: .86rem;
  white-space: nowrap;
}

/* 右侧章节索引 */
.page-home .hm-toc {
  display: none;
}

.hm-toc__link {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  text-decoration: none;
  color: var(--mist);
}

.hm-toc__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--gold-deep);
}

/* 响应式 */
@media (min-width: 620px) {
  .hm-matrix__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .hm-cadence__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-cadence__cell {
    padding-right: 24px;
  }

  .hm-cadence__cell:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}

@media (min-width: 900px) {
  .hm-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .hm-export__wrap {
    grid-template-columns: 1.05fr .95fr;
  }

  .hm-export__figure {
    position: sticky;
    top: 88px;
  }

  .hm-strip__item {
    flex-basis: 330px;
  }
}

@media (min-width: 900px) {
  .hm-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 30px;
    border-top: 1px solid var(--line);
  }

  .hm-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 22px 24px 26px 0;
  }

  .hm-step:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

@media (min-width: 1024px) {
  .hm-cadence__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hm-cadence__cell {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 24px 22px 26px 0;
  }

  .hm-cadence__cell:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

@media (min-width: 1600px) {
  .page-home .hm-toc {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: grid;
    gap: 1px;
  }

  .page-home .hm-toc__link {
    padding: 7px 0 7px 12px;
    border-right: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: .06em;
    transition: color .18s var(--ease), border-color .18s var(--ease);
  }

  .page-home .hm-toc__link:hover {
    color: var(--cyan);
    border-right-color: var(--cyan);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-dot {
    animation: none;
  }

  .hm-card {
    transition: none;
  }

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