.page-home {
  --home-rule-dark: 1px solid rgba(232, 220, 192, .18);
  --home-rule-ink: 1px solid rgba(16, 32, 31, .14);
  --home-body-dark: rgba(232, 220, 192, .84);
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

.page-home .home-context {
  padding-top: 16px;
  padding-bottom: 12px;
}

.page-home .chapter,
.page-home .home-hero {
  scroll-margin-top: 120px;
}

/* ---------- 章节通用 ---------- */
.page-home .chapter {
  position: relative;
  padding: 52px 0;
}

.page-home .section-head {
  margin-bottom: 14px;
}

.page-home .section-head__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--flame);
}

.page-home .section-head__num::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--lime);
}

.page-home .section-head h2 {
  margin: 10px 0 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.02em;
}

.page-home .chapter__lead {
  max-width: 62ch;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(16, 32, 31, .78);
}

.page-home .chapter__lead--dark {
  color: var(--home-body-dark);
}

.page-home .chapter__actions {
  margin: 22px 0 0;
}

.page-home .chapter--deep,
.page-home .chapter--night,
.page-home .chapter--strip {
  background: var(--deep);
  color: var(--sand);
}

.page-home .chapter--night,
.page-home .chapter--strip {
  background: var(--night);
}

.page-home .chapter--deep .section-head h2,
.page-home .chapter--night .section-head h2,
.page-home .chapter--strip .section-head h2 {
  color: var(--paper);
}

.page-home .chapter--paper {
  background: var(--paper);
  color: var(--ink);
}

.page-home .chapter--sand {
  background: var(--sand);
  color: var(--ink);
}

.page-home .prose {
  max-width: 64ch;
}

.page-home .prose p {
  margin: 0 0 1.2em;
  font-size: 16px;
  line-height: 1.8;
}

.page-home .prose--dark p {
  color: var(--home-body-dark);
}

/* ---------- 首屏框景 ---------- */
.page-home .home-hero {
  padding: 6px var(--gutter) 0;
  background: var(--night);
}

.page-home .home-hero__frame {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 18px 30px;
  border: 1px solid rgba(232, 220, 192, .22);
  border-radius: var(--radius-m);
  background: var(--night);
  overflow: hidden;
}

.page-home .tick {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--lime);
  pointer-events: none;
  z-index: 3;
}

.page-home .tick--tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.page-home .tick--tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.page-home .tick--bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.page-home .tick--br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 12% 20%, rgba(6, 43, 46, .45) 0%, rgba(6, 43, 46, .92) 72%),
    linear-gradient(180deg, rgba(6, 43, 46, .5) 0%, rgba(6, 43, 46, .9) 82%);
}

.page-home .home-hero__body {
  position: relative;
  z-index: 2;
}

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

.page-home .home-hero__title {
  max-width: 22ch;
  margin: 14px 0 14px;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .home-hero__lead {
  max-width: 54ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.82;
  color: var(--home-body-dark);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-home .home-hero__seasons {
  margin-top: 26px;
  padding-top: 16px;
  border-top: var(--home-rule-dark);
}

.page-home .season-rail__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
}

.page-home .season-rail__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .season-rail__list a {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid rgba(232, 220, 192, .24);
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sand);
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.page-home .season-rail__list a:hover,
.page-home .season-rail__list a:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

.page-home .home-hero__stages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.page-home .stage-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(185, 242, 39, .14);
  border: 1px solid rgba(185, 242, 39, .45);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime);
}

.page-home .stage-note {
  font-size: 12px;
  color: var(--mist);
}

/* ---------- 右侧轮次轴 ---------- */
.page-home .round-axis {
  display: none;
}

/* ---------- 三层数据旅程 ---------- */
.page-home .journey {
  margin: 0 0 20px;
}

.page-home .journey__map {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
}

.page-home .journey__map text {
  font-family: var(--font-mono);
  font-size: 14px;
  fill: var(--sand);
}

.page-home .journey__map .journey__step {
  font-size: 12px;
  fill: var(--lime);
  letter-spacing: .1em;
}

.page-home .layer-stack {
  display: grid;
  gap: 12px;
}

.page-home .layer {
  border: var(--home-rule-dark);
  border-radius: var(--radius-m);
  background: rgba(6, 43, 46, .42);
  transition: border-color .2s var(--ease);
}

.page-home .layer[open] {
  border-color: rgba(185, 242, 39, .5);
}

.page-home .layer__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.page-home .layer__summary::-webkit-details-marker {
  display: none;
}

.page-home .layer__num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--lime);
}

.page-home .layer__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--paper);
}

.page-home .layer__hint {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.page-home .layer__body {
  padding: 0 16px 16px;
  color: var(--home-body-dark);
  font-size: 15px;
  line-height: 1.85;
}

.page-home .layer__body p {
  margin: 0;
  max-width: 62ch;
}

/* ---------- 最近一轮主题带 ---------- */
.page-home .chapter--strip {
  padding: 56px 0;
  overflow: hidden;
}

.page-home .strip__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
}

.page-home .strip__inner {
  position: relative;
  z-index: 2;
}

.page-home .stat-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .stat-band__item {
  padding-top: 12px;
  border-top: 2px solid rgba(185, 242, 39, .5);
}

.page-home .stat-band__value {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 6vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--lime);
  border-radius: var(--radius-s);
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.page-home .stat-band__item:hover .stat-band__value {
  background: var(--lime);
  color: var(--night);
  padding: 0 8px;
  transform: scale(1.04);
}

.page-home .stat-band__plus {
  font-size: .62em;
}

.page-home .stat-band__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 239, 226, .8);
}

.page-home .strip__note {
  max-width: 66ch;
  margin: 24px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--flame);
  font-size: 14px;
  line-height: 1.8;
  color: var(--home-body-dark);
}

/* ---------- 记录规模 ---------- */
.page-home .record__numbers ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .record__numbers li {
  padding-left: 12px;
  border-left: 3px solid var(--steel);
}

.page-home .record__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--steel);
}

.page-home .record__plus {
  font-size: .6em;
  color: var(--flame);
}

.page-home .record__cap {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(16, 32, 31, .68);
}

/* ---------- 六个年龄组 ---------- */
.page-home .age-layout {
  display: grid;
  gap: 28px;
}

.page-home .age-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .age-item {
  padding: 14px 16px;
  border: var(--home-rule-ink);
  border-radius: var(--radius-m);
  background: var(--paper);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-home .age-item:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
}

.page-home .age-item__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--steel);
}

.page-home .age-item__desc {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(16, 32, 31, .78);
}

.page-home .age-item--wide {
  background: var(--celadon);
}

/* ---------- 更新节奏 ---------- */
.page-home .update-figure {
  margin: 4px 0 0;
}

/* ---------- 三条路径 ---------- */
.page-home .path-tree {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .path-tree__item {
  position: relative;
  padding: 0 0 26px 40px;
}

.page-home .path-tree__item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 26px;
  bottom: 0;
  width: 1px;
  background: rgba(185, 242, 39, .4);
}

.page-home .path-tree__item:last-child {
  padding-bottom: 0;
}

.page-home .path-tree__item:last-child::before {
  display: none;
}

.page-home .path-tree__index {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: var(--deep);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  color: var(--lime);
}

.page-home .path-tree__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--paper);
}

.page-home .path-tree__body p {
  max-width: 58ch;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.82;
  color: var(--home-body-dark);
}

.page-home .path-tree__link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 242, 39, .45);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.page-home .path-tree__link:hover,
.page-home .path-tree__link:focus-visible {
  color: var(--paper);
  border-color: var(--paper);
}

.page-home .chapter__more {
  margin-top: 32px;
  padding-top: 20px;
  border-top: var(--home-rule-dark);
}

.page-home .chapter__more-text {
  max-width: 62ch;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.82;
  color: var(--home-body-dark);
}

.page-home .chapter__more-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

/* ---------- 交互反馈统一 ---------- */
.page-home a:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ---------- 断点 ---------- */
@media (min-width: 620px) {
  .page-home .age-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .age-item--wide {
    grid-column: span 2;
  }

  .page-home .record__numbers ul {
    gap: 20px 18px;
  }
}

@media (min-width: 860px) {
  .page-home .chapter {
    padding: 84px 0;
  }

  .page-home .chapter--strip {
    padding: 72px 0;
  }

  .page-home .section-head h2 {
    font-size: 36px;
  }

  .page-home .home-hero {
    padding-top: 14px;
  }

  .page-home .home-hero__frame {
    padding: 62px 52px 54px;
  }

  .page-home .home-hero__title {
    font-size: 50px;
  }

  .page-home .home-hero__lead {
    font-size: 17px;
  }

  .page-home .stat-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .page-home .record__num {
    font-size: 34px;
  }
}

@media (min-width: 900px) {
  .page-home .age-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 42px;
  }
}

@media (min-width: 1180px) {
  .page-home .round-axis {
    display: block;
    position: fixed;
    right: 14px;
    top: 52%;
    transform: translateY(-50%);
    z-index: 20;
  }

  .page-home .round-axis__list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .page-home .round-axis__item a {
    position: relative;
    display: block;
    width: 11px;
    height: 11px;
    text-decoration: none;
  }

  .page-home .round-axis__dot {
    display: block;
    width: 11px;
    height: 11px;
    border: 1.5px solid var(--mist);
    border-radius: 50%;
    background: transparent;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  }

  .page-home .round-axis__label {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translate(6px, -50%);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mist);
    opacity: 0;
    transition: opacity .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
  }

  .page-home .round-axis__item a:hover .round-axis__dot,
  .page-home .round-axis__item a:focus-visible .round-axis__dot {
    background: var(--lime);
    border-color: var(--lime);
    transform: scale(1.25);
  }

  .page-home .round-axis__item a:hover .round-axis__label,
  .page-home .round-axis__item a:focus-visible .round-axis__label {
    opacity: 1;
    transform: translate(0, -50%);
    color: var(--lime);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .age-item,
  .page-home .stat-band__value,
  .page-home .round-axis__dot,
  .page-home .round-axis__label,
  .page-home .season-rail__list a,
  .page-home .layer {
    transition-duration: .01ms;
  }

  .page-home .age-item:hover,
  .page-home .stat-band__item:hover .stat-band__value,
  .page-home .round-axis__item a:hover .round-axis__dot {
    transform: none;
  }
}
