.page-home {
  --hm-ease: var(--ease);
  display: block;
  background: var(--ink-800);
  color: var(--cream);
  font-family: var(--font-sans);
}

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

.page-home a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 首屏 ---------- */

.page-home .hm-hero {
  position: relative;
  padding: clamp(38px, 6vw, 82px) var(--gutter) clamp(46px, 8vw, 96px);
  border-bottom: 1px solid var(--gold-line);
  background:
    radial-gradient(120% 82% at 88% 4%, rgba(30, 95, 138, 0.48) 0%, rgba(30, 95, 138, 0) 58%),
    radial-gradient(84% 72% at 4% 98%, rgba(200, 164, 74, 0.15) 0%, rgba(200, 164, 74, 0) 62%),
    linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
}

.page-home .hm-hero__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 54px);
  align-items: center;
}

.page-home .hm-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 14px;
}

.page-home .hm-hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 5.2vw, 52px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin: 0 0 20px;
}

.page-home .hm-hero__title em {
  font-style: normal;
  color: var(--gold-light);
}

.page-home .hm-hero__lede {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.95;
  color: var(--muted);
  max-width: 40ch;
  margin: 0 0 30px;
}

.page-home .hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.25s var(--hm-ease), background 0.25s var(--hm-ease), color 0.25s var(--hm-ease), border-color 0.25s var(--hm-ease);
}

.page-home .hm-btn--primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--ink-900);
  font-weight: 600;
}

.page-home .hm-btn--primary:hover {
  transform: translateY(-2px);
}

.page-home .hm-btn--ghost {
  border: 1px solid var(--gold-line);
  color: var(--cream);
}

.page-home .hm-btn--ghost:hover {
  border-color: var(--gold-line-strong);
  background: rgba(200, 164, 74, 0.1);
}

/* 首屏右侧：四区桌台网格 */

.page-home .hm-hero__visual {
  position: relative;
  aspect-ratio: 8 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-line);
  background: var(--ink-900);
  overflow: hidden;
}

.page-home .hm-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .hm-zones {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.page-home .hm-zone {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line);
  background: rgba(7, 26, 22, 0.62);
  transition: border-color 0.3s var(--hm-ease), background 0.3s var(--hm-ease);
}

.page-home .hm-zone:hover {
  border-color: var(--gold-line-strong);
  background: rgba(18, 58, 92, 0.52);
}

.page-home .hm-zone__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.page-home .hm-zone__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .hm-zone__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  opacity: 0.55;
  transition: opacity 0.3s var(--hm-ease), color 0.3s var(--hm-ease);
}

.page-home .hm-zone:hover .hm-zone__count {
  opacity: 1;
  color: var(--gold-light);
}

.page-home .hm-zone__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  flex: 1;
  align-content: start;
}

.page-home .hm-zone__list li {
  font-family: var(--font-mono);
  font-size: clamp(8px, 1vw, 11px);
  line-height: 1;
  text-align: center;
  padding: 4px 0;
  border-radius: 4px;
  border: 1px solid rgba(200, 164, 74, 0.18);
  color: rgba(244, 241, 232, 0.66);
  transition: color 0.25s var(--hm-ease), border-color 0.25s var(--hm-ease);
}

.page-home .hm-zone:hover .hm-zone__list li {
  border-color: rgba(200, 164, 74, 0.45);
  color: var(--gold-light);
}

/* ---------- 画布与章节索引 ---------- */

.page-home .hm-canvas {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) var(--gutter) clamp(60px, 10vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

.page-home .hm-index {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-line);
  scrollbar-width: none;
  min-width: 0;
}

.page-home .hm-index::-webkit-scrollbar {
  display: none;
}

.page-home .hm-index__link {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.25s var(--hm-ease), background 0.25s var(--hm-ease);
}

.page-home .hm-index__link:hover {
  color: var(--cream);
}

.page-home .hm-index__link.is-active {
  color: var(--gold-light);
  background: rgba(200, 164, 74, 0.12);
}

/* ---------- 章节通用 ---------- */

.page-home .hm-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 9vw, 124px);
  min-width: 0;
}

.page-home .hm-sec {
  min-width: 0;
  scroll-margin-top: 120px;
}

.page-home .hm-head {
  margin-bottom: clamp(22px, 3vw, 34px);
}

.page-home .hm-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(23px, 3.1vw, 33px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin: 0 0 14px;
}

.page-home .hm-lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.95;
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

.page-home .hm-rule {
  display: block;
  width: 76px;
  height: 1px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(200, 164, 74, 0) 100%);
}

.page-home .hm-para {
  font-size: 15.5px;
  line-height: 1.95;
  color: rgba(244, 241, 232, 0.82);
  margin: 0 0 16px;
  max-width: 52ch;
}

.page-home .hm-para:last-child {
  margin-bottom: 0;
}

/* ---------- 分栏 ---------- */

.page-home .hm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 46px);
  align-items: start;
}

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

/* ---------- 图片 ---------- */

.page-home .hm-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-line);
  background: var(--ink-900);
  overflow: hidden;
}

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

.page-home .hm-figure figcaption {
  padding: 14px 18px 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  border-top: 1px solid var(--gold-line);
}

/* ---------- 业务块 ---------- */

.page-home .hm-block + .hm-block {
  margin-top: 30px;
}

.page-home .hm-block__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--gold-light);
  margin: 0 0 12px;
}

.page-home .hm-block p {
  font-size: 15.5px;
  line-height: 1.95;
  color: rgba(244, 241, 232, 0.82);
  margin: 0 0 12px;
  max-width: 48ch;
}

.page-home .hm-block p:last-child {
  margin-bottom: 0;
}

/* ---------- 分区清单 ---------- */

.page-home .hm-zonelist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.page-home .hm-zonelist li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line);
  background: var(--ink-700);
}

.page-home .hm-zonelist__key {
  font-size: 13px;
  color: var(--cream);
}

.page-home .hm-zonelist__val {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold);
}

/* ---------- 核算 ---------- */

.page-home .hm-settle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.page-home .hm-version {
  padding: 26px 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-line-strong);
  background: linear-gradient(158deg, rgba(18, 58, 92, 0.55) 0%, rgba(11, 43, 36, 0.92) 100%);
}

.page-home .hm-version__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 12px;
}

.page-home .hm-version__no {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  margin: 0 0 10px;
}

.page-home .hm-version__meta {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 18px;
}

.page-home .hm-version__link {
  display: inline-block;
  font-size: 14px;
  color: var(--gold-light);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold-line);
}

.page-home .hm-version__link:hover {
  border-bottom-color: var(--gold-light);
}

/* ---------- 返水档位 ---------- */

.page-home .hm-rates {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .hm-rate {
  padding: 20px 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-line);
  background: var(--ink-700);
  transition: border-color 0.3s var(--hm-ease), background 0.3s var(--hm-ease);
}

.page-home .hm-rate:hover {
  border-color: var(--gold-line-strong);
  background: var(--ink-900);
}

.page-home .hm-rate__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}

.page-home .hm-rate__val {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(23px, 3.2vw, 32px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.page-home .hm-fields {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .hm-fields li {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-line);
  font-size: 13px;
  color: var(--cream);
}

/* ---------- 班次 ---------- */

.page-home .hm-shifts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.page-home .hm-shift {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-line);
  background: linear-gradient(150deg, rgba(20, 69, 58, 0.92) 0%, rgba(11, 43, 36, 0.88) 100%);
}

.page-home .hm-shift__name {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--cream);
  margin: 0 0 10px;
}

.page-home .hm-shift__time {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 0;
}

/* ---------- 数据速览 ---------- */

.page-home .hm-sec--figures {
  position: relative;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-line);
  background: linear-gradient(155deg, var(--table-a) 0%, var(--ink-800) 56%, var(--ink-900) 100%);
  overflow: hidden;
}

.page-home .hm-figures__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
}

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

.page-home .hm-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  background: var(--gold-line);
  overflow: hidden;
}

.page-home .hm-stat {
  padding: 20px 16px 22px;
  background: rgba(7, 26, 22, 0.9);
}

.page-home .hm-stat__figure {
  display: block;
  margin-bottom: 10px;
}

.page-home .hm-stat__num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.page-home .hm-stat__unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-left: 4px;
}

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

.page-home .hm-figures__note {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(244, 241, 232, 0.76);
  max-width: 70ch;
}

.page-home .hm-figures__note a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
}

.page-home .hm-figures__note a:hover {
  border-bottom-color: var(--gold-light);
}

/* ---------- 路径 ---------- */

.page-home .hm-paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .hm-path {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-line);
  background: var(--ink-700);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--hm-ease), background 0.3s var(--hm-ease), transform 0.3s var(--hm-ease);
}

.page-home .hm-path:hover {
  border-color: var(--gold-line-strong);
  background: var(--ink-900);
  transform: translateY(-3px);
}

.page-home .hm-path__idx {
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}

.page-home .hm-path__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  color: var(--cream);
  margin: 0;
}

.page-home .hm-path__desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.page-home .hm-path__go {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

/* ---------- 响应式 ---------- */

@media (max-width: 700px) {
  .page-home .hm-hero__visual {
    aspect-ratio: 4 / 3;
  }

  .page-home .hm-hero__lede {
    max-width: none;
  }

  .page-home .hm-lead,
  .page-home .hm-para,
  .page-home .hm-block p {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .page-home .hm-zone__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .hm-hero__visual {
    aspect-ratio: 1 / 1;
  }
}

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

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

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

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

@media (min-width: 800px) {
  .page-home .hm-split--5-7 {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .hm-split--7-5 {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .hm-settle {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 26px;
  }
}

@media (min-width: 940px) {
  .page-home .hm-hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (min-width: 1060px) {
  .page-home .hm-canvas {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 54px;
  }

  .page-home .hm-index {
    position: sticky;
    top: 104px;
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    padding: 0 0 0 14px;
    border-bottom: 0;
    border-left: 1px solid var(--gold-line);
  }

  .page-home .hm-index__link {
    padding: 8px 0;
    border-radius: 0;
    font-size: 13px;
    white-space: normal;
  }

  .page-home .hm-index__link.is-active {
    background: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-btn,
  .page-home .hm-path,
  .page-home .hm-rate,
  .page-home .hm-zone,
  .page-home .hm-index__link {
    transition: none;
  }

  .page-home .hm-btn--primary:hover,
  .page-home .hm-path:hover {
    transform: none;
  }
}
