.page-home {
  --rail-top: 96px;
  --home-cut: 18px;
}

.page-home .breadcrumbs {
  padding-top: 18px;
  padding-bottom: 4px;
}

/* ---------- 分屏骨架 ---------- */
.page-home .home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 64px;
}

.page-home .home-rail {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-rail > * {
  flex: 0 0 min(80vw, 292px);
  scroll-snap-align: start;
}

.page-home .rail-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  padding: 16px 16px 18px;
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--home-cut));
}

.page-home .rail-title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.page-home .rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .rail-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .rail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .rail-freq {
  background: linear-gradient(160deg, var(--panel), var(--near-black));
  border-left-color: var(--orange);
}

.page-home .rail-freq-num {
  margin: 0;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.page-home .rail-freq-num span {
  font-size: 14px;
  margin-left: 4px;
  color: var(--copper-bright);
}

.page-home .rail-freq-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .home-chapter-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(10, 13, 12, .6);
  border: 1px solid var(--line-soft);
  padding: 8px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .home-chapter-nav a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 8px;
  font-size: 13px;
  color: var(--paper);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.page-home .home-chapter-nav a:hover,
.page-home .home-chapter-nav a.is-active {
  border-left-color: var(--orange);
  background: rgba(255, 122, 51, .1);
  color: var(--orange);
}

.page-home .home-chapter-nav .chapter-nav-num {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--muted);
}

.page-home .home-main {
  display: grid;
  gap: clamp(42px, 6vw, 76px);
  min-width: 0;
}

/* ---------- 首屏声明 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 18px 28px;
  background: linear-gradient(150deg, var(--panel) 0%, var(--ink) 62%, var(--near-black) 100%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .home-hero-media {
  position: relative;
  margin: -6px -6px 14px;
}

.page-home .home-hero-media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: .42;
}

.page-home .home-hero-copy {
  position: relative;
  z-index: 1;
}

.page-home .home-kicker {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--cyan);
}

.page-home .home-h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .home-lede {
  margin: 0 0 12px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--paper);
}

.page-home .home-lede--sub {
  color: var(--muted);
  font-size: 14px;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-home .hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.page-home .hero-facts div {
  min-width: 0;
}

.page-home .hero-facts dt {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.page-home .hero-facts dd {
  margin: 4px 0 0;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}

/* ---------- 通用区块标题 ---------- */
.page-home .section-sub {
  margin: 10px 0 0;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 计数器 ---------- */
.page-home .counter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.page-home .counter-card {
  padding: 20px 18px 16px;
}

.page-home .counter-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
}

.page-home .counter-value {
  margin: 0;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(38px, 8vw, 62px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .counter-card--blue .counter-value {
  color: var(--blue);
}

.page-home .counter-card--orange .counter-value {
  color: var(--orange);
}

.page-home .counter-foot {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .counter-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  background: rgba(58, 199, 255, .07);
  border-left: 3px solid var(--blue);
}

/* ---------- 玩法入口 ---------- */
.page-home .mode-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.page-home .mode-card {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 20px;
}

.page-home .mode-card--warm {
  border-color: rgba(184, 130, 63, .7);
  background: linear-gradient(165deg, rgba(184, 130, 63, .18), var(--panel) 55%);
}

.page-home .mode-media {
  overflow: hidden;
  margin: -16px -16px 16px;
}

.page-home .mode-media img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  opacity: .72;
}

.page-home .mode-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .mode-diff {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--copper-bright);
}

.page-home .mode-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.page-home .mode-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--paper);
}

.page-home .mode-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
}

.page-home .mode-card .btn-link {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- 厂商时间轴 ---------- */
.page-home .tl-figure {
  margin: 0 0 6px;
}

.page-home .tl-figure img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  opacity: .8;
}

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

.page-home .timeline-item {
  padding-bottom: 20px;
}

.page-home .tl-date {
  margin: 0 0 4px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--copper-bright);
}

.page-home .tl-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .tl-text {
  margin: 0;
  max-width: 58ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .makers-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 热力带 ---------- */
.page-home .heat-panel {
  margin-top: 24px;
  padding: 18px 16px;
}

.page-home .heat-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.page-home .heat-strip {
  display: grid;
  grid-template-columns: repeat(24, minmax(30px, 1fr));
  gap: 4px;
  min-width: 720px;
}

.page-home .heat-cell {
  display: block;
  height: 58px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg,
      rgba(43, 224, 176, calc(var(--heat) * .95)),
      rgba(255, 122, 51, calc(var(--heat) * .95)));
  transition: transform .22s ease, box-shadow .22s ease;
}

.page-home .heat-cell em {
  display: block;
  padding-top: 22px;
  text-align: center;
  font-family: var(--font-num);
  font-style: normal;
  font-size: 10px;
  color: rgba(11, 33, 29, .78);
}

.page-home .heat-cell:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
}

.page-home .heat-cell--peak {
  border-color: var(--orange);
}

.page-home .heat-legend {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.page-home .heat-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--paper);
}

.page-home .heat-key::before {
  content: "";
  width: 22px;
  height: 8px;
}

.page-home .heat-key--low::before {
  background: rgba(43, 224, 176, .3);
}

.page-home .heat-key--mid::before {
  background: rgba(43, 224, 176, .75);
}

.page-home .heat-key--high::before {
  background: var(--orange);
}

.page-home .heat-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-heat > .btn-ghost {
  margin-top: 16px;
}

/* ---------- 三步开始 ---------- */
.page-home .steps {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.page-home .step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-right: 3px solid var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .step-num {
  margin: 0;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  font-weight: 700;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px var(--copper);
}

.page-home .step-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .step-text {
  margin: 0;
  max-width: 56ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .start-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

/* ---------- 密度转换斜条 ---------- */
.page-home .home-heat::before,
.page-home .home-start::before {
  content: "";
  display: block;
  height: 10px;
  margin-bottom: 26px;
  background: repeating-linear-gradient(115deg,
    var(--line) 0 2px,
    transparent 2px 10px);
  opacity: .7;
}

/* ---------- 中屏 ---------- */
@media (min-width: 700px) {
  .page-home .home-hero {
    padding: 32px 28px 34px;
  }

  .page-home .home-hero-media img {
    height: 260px;
  }

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

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

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

  .page-home .heat-legend {
    grid-template-columns: auto auto auto 1fr;
    align-items: center;
    gap: 16px;
  }

  .page-home .tl-figure img {
    height: 240px;
  }
}

/* ---------- 桌面分屏 ---------- */
@media (min-width: 1100px) {
  .page-home .home-split {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    padding-bottom: 96px;
  }

  .page-home .home-rail {
    position: sticky;
    top: var(--rail-top);
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .home-rail > * {
    flex: 0 0 auto;
  }

  .page-home .home-hero {
    padding: 40px 36px 40px;
    min-height: 460px;
  }

  .page-home .home-hero-media {
    position: absolute;
    inset: 0;
    margin: 0;
  }

  .page-home .home-hero-media img {
    width: 100%;
    height: 100%;
    opacity: .2;
  }

  .page-home .home-hero-copy {
    max-width: 78%;
  }

  .page-home .home-lede {
    font-size: 16px;
  }

  .page-home .tl-figure img {
    height: 300px;
  }

  .page-home .heat-strip {
    min-width: 0;
  }
}

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

.page-home {
  --heat: transparent;
}
