.page-home {
  --home-gap: 14px;
  --home-pad: clamp(44px, 6vw, 72px);
}

/* ---------- 左侧章节轨道 ---------- */
.page-home .home-rail {
  display: none;
}

@media (min-width: 1480px) {
  .page-home .home-rail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
  }
}

.page-home .home-rail__dot {
  display: block;
  padding: 6px 10px 6px 13px;
  border-left: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}

.page-home .home-rail__dot:hover,
.page-home .home-rail__dot:focus-visible {
  color: var(--ink);
  border-left-color: var(--amber);
}

.page-home .home-rail__dot[data-active] {
  color: var(--vermilion);
  border-left-color: var(--vermilion);
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero {
  position: relative;
  padding: calc(var(--header-h) + 34px) 0 clamp(34px, 5vw, 58px);
}

.page-home .home-hero__ctx {
  margin: 0 0 16px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--ink-2);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-hero__tile {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--sheet);
  box-shadow: var(--shadow-paper);
}

.page-home .home-hero__tile--lead {
  padding: 26px 22px 24px;
  border-left: 3px solid var(--vermilion);
}

.page-home .home-hero__verb {
  margin: 0 0 12px;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: var(--ink-2);
}

.page-home .home-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 8.6vw, 62px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.page-home .home-hero__lead {
  margin: 0 0 22px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}

.page-home .home-hero__side {
  margin: 20px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
}

.page-home .home-hero__tile--photo {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--paper-bg);
  overflow: hidden;
}

.page-home .home-hero__tile--photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.96);
}

.page-home .home-hero__cap {
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  background: var(--sheet);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.page-home .home-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px 18px;
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ink-2);
  box-shadow: var(--shadow-lift);
}

.page-home .home-entry__badge {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-2);
}

.page-home .home-entry__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
}

.page-home .home-entry__meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.page-home .home-entry__reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease),
    margin-top var(--dur) var(--ease);
}

.page-home .home-entry:hover .home-entry__reveal,
.page-home .home-entry:focus-visible .home-entry__reveal {
  max-height: 9em;
  margin-top: 8px;
  opacity: 1;
}

@media (min-width: 960px) {
  .page-home .home-hero {
    padding-bottom: 76px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    grid-template-areas:
      "lead lead lead lead lead lead lead photo photo photo photo photo"
      "lead lead lead lead lead lead lead ver ver ver ver ver"
      "notes notes notes notes notes sup sup sup sup sup sup sup";
  }

  .page-home .home-hero__tile--lead {
    grid-area: lead;
    padding: 34px 30px 30px;
  }

  .page-home .home-hero__tile--photo {
    grid-area: photo;
    transform: translateY(16px);
  }

  .page-home .home-hero__tile--photo img {
    aspect-ratio: auto;
    min-height: 260px;
    height: 100%;
  }

  .page-home .home-hero__tile--ver { grid-area: ver; }
  .page-home .home-hero__tile--notes { grid-area: notes; }
  .page-home .home-hero__tile--sup { grid-area: sup; }

  .page-home .home-hero__tile--ver { transform: translateY(16px); }
  .page-home .home-hero__tile--sup .home-entry__title { font-size: 18px; }
}

/* ---------- 月份归档索引带 ---------- */
.page-home .home-archives {
  padding: var(--home-pad) 0 clamp(38px, 5vw, 56px);
}

.page-home .home-archives__head {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

@media (min-width: 960px) {
  .page-home .home-archives__head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 40px;
    align-items: end;
  }
}

.page-home .home-archives__ctx {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}

.page-home .home-archives__title-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.32;
  color: var(--ink);
}

.page-home .home-archives__intro {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.page-home .home-archives__rail {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 20px 0 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-archives__rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 36px);
  pointer-events: none;
}

.page-home .home-archives__rail::-webkit-scrollbar {
  height: 5px;
}

.page-home .home-archives__rail::-webkit-scrollbar-thumb {
  background: var(--rule);
}

.page-home .month-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 16px 13px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .month-chip:hover,
.page-home .month-chip:focus-visible {
  transform: translateY(-2px);
  border-top-color: var(--amber);
}

.page-home .month-chip--now {
  border-top-color: var(--vermilion);
}

.page-home .month-chip--year {
  background: var(--paper-bg);
  border-style: dashed;
  border-top-style: solid;
  border-top-color: var(--cyan-pale);
}

.page-home .month-chip__no {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-home .month-chip__name {
  font-size: 13.5px;
  color: var(--ink);
}

.page-home .month-chip__time {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.page-home .home-archives__foot {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ---------- 版本锚点 ---------- */
.page-home .home-versions {
  padding: clamp(34px, 5vw, 54px) 0;
}

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

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

.page-home .home-versions__media {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--rule);
  background: var(--sheet);
}

.page-home .home-versions__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.7) contrast(0.95);
}

.page-home .home-versions__cap {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.page-home .home-versions__ctx {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}

.page-home .home-versions__body h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 3.2vw, 32px);
  line-height: 1.34;
  color: var(--ink);
}

.page-home .home-versions__lead {
  margin: 0 0 4px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 40em;
}

.page-home .version-ladder {
  list-style: none;
  margin: 20px 0 18px;
  padding: 0;
}

.page-home .version-ladder__item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  grid-template-areas:
    "band name date"
    "band desc desc";
  gap: 3px 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.page-home .version-ladder__item:first-child {
  border-top: 1px solid var(--rule);
}

.page-home .version-ladder__band {
  grid-area: band;
  align-self: stretch;
  border-radius: 1px;
}

.page-home .version-ladder__item--main .version-ladder__band { background: var(--cyan-deep); }
.page-home .version-ladder__item--stable .version-ladder__band { background: var(--cyan-pale); }
.page-home .version-ladder__item--archive .version-ladder__band { background: var(--rule); }

.page-home .version-ladder__name {
  grid-area: name;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.page-home .version-ladder__desc {
  grid-area: desc;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.page-home .version-ladder__date {
  grid-area: date;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  white-space: nowrap;
}

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

/* ---------- 五步路径 ---------- */
.page-home .home-walk {
  padding: clamp(34px, 5vw, 52px) 0;
}

.page-home .walk-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

@media (min-width: 960px) {
  .page-home .walk-list {
    max-width: 780px;
  }
}

.page-home .walk-list__item {
  position: relative;
  padding: 0 0 24px 52px;
}

.page-home .walk-list__item:last-child {
  padding-bottom: 0;
}

.page-home .walk-list__item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 2px;
  width: 1px;
  background: var(--rule);
}

.page-home .walk-list__item:last-child::before {
  display: none;
}

.page-home .walk-list__no {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  background: var(--sheet);
  font-size: 12px;
  color: var(--ink-2);
  transition: border-color var(--dur-fast) linear, color var(--dur-fast) linear;
}

.page-home .walk-list__item:hover .walk-list__no,
.page-home .walk-list__item:focus-within .walk-list__no {
  border-color: var(--amber);
  color: var(--amber-deep);
}

.page-home .walk-list__title {
  margin: 4px 0 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
}

.page-home .walk-list__text {
  margin: 0;
  max-width: 44em;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.page-home .home-walk__more {
  margin: 26px 0 0;
}

/* ---------- 栏目状态面板 ---------- */
.page-home .home-status {
  padding: clamp(30px, 4.6vw, 48px) 0 clamp(40px, 5vw, 60px);
}

.page-home .home-status__plate {
  padding: 32px 22px 28px;
}

@media (min-width: 960px) {
  .page-home .home-status__plate {
    padding: 40px 44px 34px;
  }
}

.page-home .home-status__ctx {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--cyan-pale);
}

.page-home .home-status__plate h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.36;
  color: var(--sheet);
}

.page-home .home-status__lead {
  margin: 0 0 22px;
  max-width: 44em;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(251, 250, 247, 0.68);
}

.page-home .status-board {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(216, 213, 205, 0.22);
}

.page-home .status-board__row {
  display: grid;
  gap: 5px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(216, 213, 205, 0.22);
}

@media (min-width: 720px) {
  .page-home .status-board__row {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
  }
}

.page-home .status-board__key {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--sheet);
}

.page-home .status-board__val {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(251, 250, 247, 0.72);
}

.page-home .status-board__val .mono {
  color: var(--cyan-pale);
}

.page-home .home-status__foot {
  margin: 22px 0 0;
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: 0.06em;
  color: rgba(251, 250, 247, 0.55);
}

/* ---------- 页尾过渡图 ---------- */
.page-home .home-coda {
  margin: 0;
  padding: 0 0 clamp(40px, 5vw, 64px);
}

.page-home .home-coda img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 560;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: saturate(0.6) contrast(0.94);
}

.page-home .home-coda__cap {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .month-chip,
  .page-home .home-hero__tile--photo,
  .page-home .home-hero__tile--ver {
    transform: none !important;
    transition: opacity var(--dur-fast) linear !important;
  }

  .page-home .home-entry__reveal {
    transition: opacity var(--dur-fast) linear !important;
    max-height: none;
    opacity: 1;
    margin-top: 8px;
  }
}
