.page-home {
  --hm-seam: 1px solid var(--df-line);
  display: block;
  background: var(--df-ink);
  color: var(--df-white);
  font-family: var(--df-font-body);
  overflow-x: hidden;
}

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

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  padding: 22px 0 44px;
  border-bottom: var(--hm-seam);
  background-color: var(--df-ink);
  background-image:
    linear-gradient(to right, rgba(34, 48, 74, 0.7) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 48, 74, 0.7) 1px, transparent 1px);
  background-size: 30px 30px;
}

.page-home .hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 58% at 84% 2%, rgba(224, 74, 63, 0.20), transparent 62%),
    radial-gradient(70% 46% at 6% 98%, rgba(79, 214, 196, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(10, 17, 32, 0.34) 0%, rgba(10, 17, 32, 0.88) 64%, var(--df-ink) 100%);
}

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

.page-home .hm-hero__crumbs {
  margin: 0 0 18px;
}

.page-home .hm-hero__frame {
  display: grid;
  gap: 22px;
}

.page-home .hm-hero__title {
  margin: 12px 0 16px;
  font-family: var(--df-font-head);
  font-weight: 800;
  font-size: clamp(38px, 11.5vw, 94px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--df-white);
}

.page-home .hm-hero__title-accent {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.1em;
}

.page-home .hm-hero__title-accent::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.02em;
  right: -0.02em;
  top: 0.12em;
  bottom: 0.08em;
  background: linear-gradient(96deg, var(--df-red) 0%, var(--df-red-deep) 100%);
  transform: skewX(-7deg);
}

.page-home .hm-hero__lede {
  max-width: 40ch;
  margin: 0;
  color: var(--df-muted);
}

.page-home .hm-hero__actions {
  margin-top: 22px;
}

.page-home .hm-hero__visual {
  position: relative;
  margin: 0;
  border: var(--hm-seam);
  background: var(--df-ink-deep);
  overflow: hidden;
}

.page-home .hm-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .hm-hero__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 10px;
  font-family: var(--df-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--df-mint);
  background: rgba(7, 12, 22, 0.84);
  border-top: 1px solid var(--df-line);
  border-right: 1px solid var(--df-line);
}

/* ---------- 首屏信息卡组 ---------- */
.page-home .hm-deck {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.page-home .hm-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px;
  background: var(--df-panel);
  border: var(--hm-seam);
}

.page-home .hm-cell--accent { border-left: 3px solid var(--df-red); }
.page-home .hm-cell--mint { border-left: 3px solid var(--df-mint); }
.page-home .hm-cell--gold { border-left: 3px solid var(--df-gold); }

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

.page-home .hm-deck__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--df-white);
}

.page-home .hm-switch {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--df-line);
}

.page-home .hm-steps-mini {
  display: grid;
  gap: 8px;
}

.page-home .hm-step-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--df-line);
  background: rgba(10, 17, 32, 0.55);
}

.page-home .hm-step-mini__no {
  grid-row: 1 / span 2;
  padding-top: 2px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--df-red);
}

.page-home .hm-step-mini__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--df-white);
}

.page-home .hm-step-mini__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--df-muted);
}

.page-home .hm-deck__line {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--df-white);
}

.page-home .hm-deck__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--df-muted);
}

.page-home .hm-deck__status .df-chip,
.page-home .hm-deck__vip .df-chip {
  align-self: flex-start;
}

.page-home .hm-link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  font-family: var(--df-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--df-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 184, 92, 0.55);
}

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

/* ---------- 通用章节节奏 ---------- */
.page-home .df-section {
  padding: 52px 0;
}

.page-home .hm-head {
  margin-bottom: 24px;
}

.page-home .hm-head__lede {
  max-width: 58ch;
}

/* ---------- 第二栏入口带 ---------- */
.page-home .hm-rail-sec {
  border-bottom: var(--hm-seam);
  background: linear-gradient(180deg, var(--df-ink) 0%, var(--df-ink-deep) 100%);
}

.page-home .hm-rail {
  position: relative;
}

.page-home .hm-rail__bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.page-home .df-rail__track {
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}

.page-home .df-rail__track > .hm-card {
  flex: 0 0 auto;
  width: min(80vw, 300px);
  scroll-snap-align: start;
}

.page-home .hm-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--df-panel);
  border: var(--hm-seam);
}

.page-home .hm-card--lead {
  background: linear-gradient(180deg, var(--df-panel) 0%, var(--df-ink-deep) 100%);
  border-color: rgba(79, 214, 196, 0.42);
}

.page-home .hm-card .df-chip {
  align-self: flex-start;
}

.page-home .hm-card__media {
  margin: 0;
  border: 1px solid var(--df-line);
  background: var(--df-ink-deep);
  overflow: hidden;
}

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

.page-home .hm-card__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--df-white);
}

.page-home .hm-card__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--df-muted);
}

/* ---------- 四个日常栏目 ---------- */
.page-home .hm-columns__fig {
  margin: 0 0 20px;
  border: var(--hm-seam);
  background: var(--df-ink-deep);
  overflow: hidden;
}

.page-home .hm-columns__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
}

.page-home .hm-band {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hm-seam);
}

.page-home .hm-band__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 0 14px 14px;
  border-bottom: var(--hm-seam);
  border-left: 2px solid var(--df-line);
}

.page-home .hm-band__row:nth-child(1) { border-left-color: var(--df-mint); }
.page-home .hm-band__row:nth-child(2) { border-left-color: var(--df-red); }
.page-home .hm-band__row:nth-child(3) { border-left-color: var(--df-gold); }
.page-home .hm-band__row:nth-child(4) { border-left-color: var(--df-muted); }

.page-home .hm-band__idx {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--df-gold-soft);
}

.page-home .hm-band__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--df-white);
}

.page-home .hm-band__desc {
  flex: 1 1 200px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--df-muted);
}

.page-home .hm-band__state {
  flex: 0 0 auto;
  margin-left: auto;
}

/* ---------- 换设备路径 ---------- */
.page-home .hm-path {
  background: linear-gradient(180deg, var(--df-ink) 0%, var(--df-ink-deep) 100%);
  border-bottom: var(--hm-seam);
}

.page-home .hm-path__grid {
  display: grid;
  gap: 26px;
}

.page-home .hm-steps {
  counter-reset: hmstep;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hm-seam);
}

.page-home .hm-step {
  position: relative;
  padding: 16px 0 16px 60px;
  border-bottom: var(--hm-seam);
}

.page-home .hm-step::before {
  counter-increment: hmstep;
  content: "q-0" counter(hmstep);
  position: absolute;
  left: 0;
  top: 19px;
  font-family: var(--df-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--df-mint);
}

.page-home .hm-step::after {
  content: "";
  position: absolute;
  left: 45px;
  top: 24px;
  width: 7px;
  height: 7px;
  background: var(--df-ink-deep);
  border: 1px solid var(--df-mint);
  transform: rotate(45deg);
}

.page-home .hm-step__name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--df-white);
}

.page-home .hm-step__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--df-muted);
}

.page-home .hm-path__fig {
  margin: 0;
  border: var(--hm-seam);
  background: var(--df-ink-deep);
  overflow: hidden;
}

.page-home .hm-path__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

/* ---------- 更新与回访记录 ---------- */
.page-home .hm-cycle__grid {
  align-items: start;
  gap: 24px;
}

.page-home .hm-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hm-seam);
}

.page-home .hm-metrics__item {
  display: grid;
  grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: var(--hm-seam);
}

.page-home .hm-metrics__num {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--df-gold);
}

.page-home .hm-metrics__label {
  font-size: 13px;
  line-height: 1.7;
  color: var(--df-muted);
}

.page-home .hm-cycle__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .hm-scale {
  display: block;
}

.page-home .hm-scale__bar {
  display: block;
  height: 30px;
  border: var(--hm-seam);
  background-color: rgba(18, 28, 48, 0.7);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(79, 214, 196, 0.55) 0 1px,
    transparent 1px 14px
  );
}

.page-home .hm-scale__cap {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--df-muted);
}

/* ---------- 分流出口 ---------- */
.page-home .hm-exits__foot {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--df-muted);
}

.page-home .hm-exits__foot a {
  color: var(--df-gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 220, 160, 0.45);
}

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

.page-home .hm-exit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--df-panel);
  border: var(--hm-seam);
  color: var(--df-white);
  text-decoration: none;
  transition: border-color 0.25s var(--df-ease), transform 0.25s var(--df-ease);
}

.page-home .hm-exit:hover,
.page-home .hm-exit:focus-visible {
  border-color: var(--df-red);
  transform: translateY(-3px);
}

.page-home .hm-exit__idx {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--df-red);
}

.page-home .hm-exit__name {
  font-size: 17px;
  font-weight: 700;
}

.page-home .hm-exit__desc {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--df-muted);
}

.page-home .hm-exit__go {
  align-self: flex-start;
  padding-bottom: 2px;
  font-family: var(--df-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--df-mint);
  border-bottom: 1px solid rgba(79, 214, 196, 0.4);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .hm-steps-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 860px) {
  .page-home .hm-deck {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: stretch;
  }

  .page-home .df-rail__track > .hm-card {
    width: 320px;
  }
}

@media (min-width: 940px) {
  .page-home .hm-hero {
    background-size: 44px 44px;
    padding-top: 30px;
  }

  .page-home .hm-hero__frame {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 36px;
  }

  .page-home .hm-hero__title {
    margin-top: 16px;
  }
}

@media (min-width: 900px) {
  .page-home .df-section {
    padding: 72px 0;
  }

  .page-home .hm-path__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-exit {
    transition: none;
  }

  .page-home .hm-exit:hover,
  .page-home .hm-exit:focus-visible {
    transform: none;
  }
}
