.page-home {
  --hh-line: rgba(90, 107, 122, 0.28);
  --hh-line-soft: rgba(90, 107, 122, 0.16);
  --hh-band-entry: 6px;
  --hh-band-section: 4px;
  --hh-band-version: 3px;
  --hh-band-feedback: 5px;
  color: var(--ink);
  background: var(--paper);
}

/* ---------- 首屏 ---------- */
.page-home .hh-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 36px) 0 52px;
  background:
    radial-gradient(120% 88% at 6% 0%, rgba(255, 251, 243, 0.95) 0%, rgba(255, 251, 243, 0) 62%),
    linear-gradient(180deg, var(--paper) 0%, #EFE7D7 100%);
}
.page-home .hh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(11, 43, 69, 0.22) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}
.page-home .hh-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
}
.page-home .hh-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}
.page-home .hh-sentinel {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
}

.page-home .hh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}
.page-home .hh-hero-body {
  max-width: var(--measure);
}
.page-home .hh-hero-body .breadcrumb {
  margin: 0 0 18px;
}

.page-home h1 {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--deep);
}
.page-home .hh-hero-body .lede {
  margin: 0 0 30px;
  max-width: 34em;
}

/* 章节预览 01/02/03 */
.page-home .hh-chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hh-line);
}
.page-home .hh-chapter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--hh-line);
}
.page-home .hh-chapter-num {
  font-size: var(--fs-21);
  line-height: 1;
  color: var(--gold);
  padding-top: 3px;
}
.page-home .hh-chapter-title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-21);
  color: var(--deep);
}
.page-home .hh-chapter-desc {
  margin: 0;
  color: var(--slate);
  line-height: 1.8;
}

/* 索引带 */
.page-home .index-rail {
  order: -1;
}
.page-home .index-rail .eyebrow {
  margin: 0 0 10px;
}
.page-home .hh-rail-list {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-home .hh-rail-list::-webkit-scrollbar {
  display: none;
}
.page-home .hh-rail-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hh-line);
  border-radius: var(--pill);
  background: rgba(255, 251, 243, 0.72);
  color: var(--slate);
  font-size: var(--fs-14);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.page-home .hh-rail-list a .mono-num {
  color: var(--slate);
}
.page-home .hh-rail-list a[aria-current="true"] {
  color: var(--deep);
  border-color: var(--gold);
  background: var(--warm);
}
.page-home .hh-rail-list a[aria-current="true"] .mono-num {
  color: var(--gold);
}
.page-home .hh-rail-list a:hover,
.page-home .hh-rail-list a:focus-visible {
  color: var(--deep);
  border-color: var(--gold);
}

/* 小屏入口卡 */
.page-home .hh-edge-card {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(158deg, var(--deep) 0%, var(--deep-2) 62%, var(--indigo) 100%);
  color: var(--warm);
  box-shadow: 0 18px 40px rgba(11, 43, 69, 0.18);
}
.page-home .hh-edge-visual svg {
  display: block;
  width: 104px;
  height: auto;
  margin-bottom: 14px;
}
.page-home .hh-edge-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-21);
  color: var(--warm);
}
.page-home .hh-edge-text {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-size: var(--fs-14);
  line-height: 1.75;
}
.page-home .hh-edge-btn {
  display: inline-block;
  font-size: var(--fs-14);
  text-decoration: none;
}

/* ---------- 通用区块头 ---------- */
.page-home .hh-sec-head {
  max-width: var(--measure);
  margin-bottom: 30px;
}
.page-home .hh-sec-head .section-title {
  margin: 0 0 14px;
}
.page-home .hh-sec-head .lede {
  margin: 0;
}

/* ---------- 三段路径 ---------- */
.page-home .hh-paths {
  padding: 56px 0;
  background: var(--paper);
  border-top: 1px solid var(--hh-line-soft);
}
.page-home .hh-path-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.page-home .hh-path {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 24px 22px 24px 26px;
  border-radius: var(--radius-md);
  background: var(--warm);
  border: 1px solid var(--hh-line-soft);
}
.page-home .hh-path::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 6px;
  border-radius: 0 var(--pill) var(--pill) 0;
}
.page-home .hh-path--section::before {
  background: var(--gold);
  width: var(--hh-band-section);
}
.page-home .hh-path--version::before {
  background: var(--mist);
  width: var(--hh-band-version);
}
.page-home .hh-path--feedback::before {
  background: var(--coral);
  width: var(--hh-band-feedback);
}
.page-home .hh-path-num {
  font-size: var(--fs-14);
  color: var(--slate);
}
.page-home .hh-path-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-21);
  color: var(--deep);
}
.page-home .hh-path-body p {
  margin: 0;
  color: var(--slate);
  line-height: 1.8;
}
.page-home .hh-path-link {
  justify-self: start;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--deep);
  font-size: var(--fs-14);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.page-home .hh-path--feedback .hh-path-link {
  border-bottom-color: var(--coral);
}
.page-home .hh-path-link:hover,
.page-home .hh-path-link:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* ---------- 小屏入口说明 ---------- */
.page-home .hh-entry {
  padding: 20px 0 60px;
}
.page-home .hh-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.page-home .hh-entry-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--deep) 0%, var(--mist) 100%);
  border: 1px solid var(--hh-line-soft);
}
.page-home .hh-entry-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .hh-entry-body .section-title {
  margin: 0 0 14px;
}
.page-home .hh-entry-body > p {
  color: var(--slate);
  line-height: 1.85;
}
.page-home .hh-entry-steps {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: none;
}
.page-home .hh-entry-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(143, 189, 180, 0.14);
  color: var(--ink);
  line-height: 1.75;
}
.page-home .hh-entry-steps .mono-num {
  color: var(--deep-2);
}
.page-home .hh-entry-note {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  color: var(--slate);
  font-size: var(--fs-14);
}

/* ---------- 当季栏目速览 ---------- */
.page-home .hh-season {
  padding: 56px 0;
  background: linear-gradient(180deg, rgba(143, 189, 180, 0.12) 0%, rgba(246, 241, 231, 0) 100%);
}
.page-home .hh-season-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.page-home .hh-season-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hh-line-soft);
  background: linear-gradient(140deg, var(--gold-soft) 0%, var(--mist) 100%);
}
.page-home .hh-season-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .hh-season-folders {
  display: grid;
  gap: 12px;
}
.page-home .hh-folder {
  border-radius: var(--radius-md);
  background: var(--warm);
  border: 1px solid var(--hh-line-soft);
  border-left-width: 4px;
  border-left-color: var(--gold);
  overflow: hidden;
}
.page-home .hh-folder--version {
  border-left-color: var(--mist);
  border-left-width: 3px;
}
.page-home .hh-folder--feedback {
  border-left-color: var(--coral);
  border-left-width: 5px;
}
.page-home .hh-folder summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.page-home .hh-folder summary::-webkit-details-marker {
  display: none;
}
.page-home .hh-folder summary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.page-home .hh-folder summary .mono-num {
  color: var(--slate);
}
.page-home .hh-folder-name {
  flex: 1 1 auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-17);
  color: var(--deep);
}
.page-home .hh-folder-arrow {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.page-home .hh-folder[open] .hh-folder-arrow {
  transform: rotate(225deg);
}
.page-home .hh-folder p {
  margin: 0;
  padding: 0 18px 18px 46px;
  color: var(--slate);
  font-size: var(--fs-14);
  line-height: 1.8;
}

/* ---------- 深色版本节奏区 ---------- */
.page-home .hh-version {
  position: relative;
  padding: 56px 0;
  background: linear-gradient(150deg, var(--deep) 0%, #0A2338 58%, var(--indigo) 100%);
  color: var(--warm);
  overflow: hidden;
}
.page-home .hh-version::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(240, 217, 168, 0.24) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
}
.page-home .hh-version-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.page-home .hh-eyebrow-dark {
  color: var(--gold-soft);
}
.page-home .hh-version-body .section-title {
  margin: 0 0 16px;
  color: var(--warm);
}
.page-home .hh-version-lede {
  margin: 0 0 26px;
  max-width: 34em;
  color: var(--gold-soft);
  line-height: 1.85;
}
.page-home .hh-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}
.page-home .hh-stat {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 251, 243, 0.06);
  border: 1px solid rgba(240, 217, 168, 0.26);
}
.page-home .hh-stat dt {
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
}
.page-home .hh-stat dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-17);
  color: var(--warm);
}
.page-home .hh-stat dd .mono-num {
  font-size: var(--fs-28);
  color: var(--gold);
  margin-right: 4px;
}
.page-home .hh-version-note {
  margin: 0 0 26px;
  max-width: 34em;
  color: rgba(255, 251, 243, 0.86);
  line-height: 1.85;
}
.page-home .hh-version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-home .hh-version-actions .btn {
  text-decoration: none;
  font-size: var(--fs-14);
}
.page-home .hh-version-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(240, 217, 168, 0.28);
  background: linear-gradient(120deg, rgba(143, 189, 180, 0.3) 0%, rgba(217, 162, 74, 0.3) 100%);
}
.page-home .hh-version-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.9;
}

/* ---------- 尾部指引 ---------- */
.page-home .hh-next {
  padding: 48px 0 64px;
  background: var(--paper);
  border-top: 1px solid var(--hh-line-soft);
}
.page-home .hh-next-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: end;
}
.page-home .hh-next-grid .section-title {
  margin: 0 0 12px;
}
.page-home .hh-next-grid p {
  margin: 0;
  max-width: 38em;
  color: var(--slate);
  line-height: 1.85;
}
.page-home .hh-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-home .hh-next-actions .btn {
  text-decoration: none;
  font-size: var(--fs-14);
}

/* ---------- 断点 ---------- */
@media (min-width: 768px) {
  .page-home .hh-hero {
    padding: calc(var(--header-h) + 56px) 0 72px;
  }
  .page-home .hh-chapter {
    gap: 24px;
  }
  .page-home .hh-chapter--version {
    margin-left: 28px;
  }
  .page-home .hh-chapter--feedback {
    margin-left: 56px;
  }
  .page-home .hh-path {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 26px 26px 26px 32px;
  }
  .page-home .hh-path:nth-child(2) {
    margin-left: 26px;
  }
  .page-home .hh-path:nth-child(3) {
    margin-left: 52px;
  }
  .page-home .hh-path-body {
    border-left: 1px solid var(--hh-line-soft);
    padding-left: 22px;
  }
  .page-home .hh-entry-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
  }
  .page-home .hh-season-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 36px;
  }
  .page-home .hh-version-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 42px;
  }
  .page-home .hh-next-grid {
    grid-template-columns: minmax(0, 1.4fr) auto;
  }
}

@media (min-width: 1024px) {
  .page-home .hh-hero-grid {
    grid-template-columns: var(--rail) minmax(0, 1fr) 296px;
    gap: 40px;
    align-items: start;
  }
  .page-home .hh-hero-body {
    max-width: none;
  }
  .page-home .index-rail {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding-right: 12px;
  }
  .page-home .hh-rail-list {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
    border-left: 1px solid var(--hh-line-soft);
  }
  .page-home .hh-rail-list a {
    border: none;
    border-radius: 0;
    background: none;
    padding: 9px 0 9px 12px;
    font-size: var(--fs-12);
    white-space: normal;
    line-height: 1.5;
    border-left: 2px solid transparent;
    margin-left: -1px;
  }
  .page-home .hh-rail-list a[aria-current="true"] {
    background: none;
    border-left-color: var(--gold);
  }
  .page-home .hh-rail-list a .mono-num {
    font-size: var(--fs-12);
  }
  .page-home .hh-season-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
  }
  .page-home .hh-season-figure {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

@media (max-width: 560px) {
  .page-home .hh-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-home .hh-version-actions .btn,
  .page-home .hh-next-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hh-rail-list a,
  .page-home .hh-folder-arrow,
  .page-home .hh-path-link {
    transition: none;
  }
}
</main>
