.page-home {
  --home-line-soft: rgba(138, 151, 163, 0.16);
  --home-gold-line: rgba(201, 162, 39, 0.34);
  padding-top: clamp(18px, 3vw, 36px);
}

.page-home .home-layout {
  padding-bottom: clamp(48px, 7vw, 96px);
}

/* ---------- 本页章节导航 ---------- */
.page-home .home-toc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
  margin-bottom: clamp(22px, 4vw, 40px);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.page-home .home-toc__title {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mist);
  text-transform: uppercase;
}

.page-home .home-toc__list {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.page-home .home-toc__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 3px;
  font-size: 13px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-toc__list a .mono {
  font-size: 11px;
  color: var(--lake);
}

.page-home .home-toc__list a:hover,
.page-home .home-toc__list a:focus-visible,
.page-home .home-toc__list a[aria-current="true"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.page-home .home-toc__list a[aria-current="true"] .mono {
  color: var(--gold);
}

/* ---------- 章节通用 ---------- */
.page-home .home-flow > section {
  padding-block: clamp(38px, 6vw, 78px);
}

.page-home .home-flow > section + section {
  border-top: 1px solid var(--line-soft);
}

.page-home .home-flow > section:first-child {
  padding-top: 0;
}

.page-home .section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: clamp(18px, 2.6vw, 26px);
  border-bottom: 1px solid var(--line);
}

.page-home .section-head__index {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  flex: none;
}

.page-home .section-head__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.36;
  color: var(--paper);
}

.page-home .link-more {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13.5px;
  color: var(--lake);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .link-more:hover,
.page-home .link-more:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* ---------- 首屏 ---------- */
.page-home .hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 3vw, 30px);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-home .hero__meta-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--home-gold-line), transparent);
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
}

.page-home .hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(29px, 4.6vw, 52px);
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-wrap: balance;
}

.page-home .hero__lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.9;
  color: rgba(242, 237, 228, 0.78);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .hero__figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--home-gold-line);
  background: linear-gradient(155deg, var(--ink-2), var(--ink-3));
  overflow: hidden;
}

.page-home .hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(138, 151, 163, 0.1) 119px 120px),
    linear-gradient(180deg, transparent 52%, rgba(11, 13, 16, 0.88));
}

.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .hero__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(242, 237, 228, 0.66);
}

/* ---------- 章节预览卡 ---------- */
.page-home .chapters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: clamp(26px, 3.6vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.page-home .chapter__link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-areas:
    "no title"
    "no note";
  gap: 6px 10px;
  height: 100%;
  padding: clamp(15px, 2vw, 22px);
  color: inherit;
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}

.page-home .chapter__link:hover,
.page-home .chapter__link:focus-visible {
  background: var(--ink-3);
}

.page-home .chapter__no {
  grid-area: no;
  align-self: start;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  transition: color var(--dur) var(--ease), font-size var(--dur) var(--ease);
}

.page-home .chapter__link:hover .chapter__no,
.page-home .chapter__link:focus-visible .chapter__no {
  color: var(--gold-bright);
  font-size: 15px;
}

.page-home .chapter__title {
  grid-area: title;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  color: var(--paper);
}

.page-home .chapter__note {
  grid-area: note;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 目录尺度 ---------- */
.page-home .scale__lead {
  margin: 0;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(242, 237, 228, 0.8);
}

.page-home .gauge {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--home-line-soft);
  border: 1px solid var(--home-line-soft);
}

.page-home .gauge__item {
  position: relative;
  display: grid;
  gap: 6px;
  padding: clamp(16px, 2vw, 22px);
  background: var(--ink-2);
}

.page-home .gauge__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.page-home .gauge__num {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1;
  color: var(--gold-bright);
}

.page-home .gauge__num small {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.36em;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-home .gauge__label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
}

.page-home .gauge__note {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .scale__note {
  margin-top: clamp(22px, 3vw, 32px);
  padding-left: clamp(14px, 2vw, 20px);
  border-left: 2px solid var(--lake);
}

.page-home .scale__note p {
  margin: 0 0 12px;
  max-width: 36em;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(242, 237, 228, 0.76);
}

/* ---------- 两级栏目剖面 ---------- */
.page-home .structure__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.page-home .structure__figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--home-gold-line);
  background: var(--ink-2);
  overflow: hidden;
}

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

.page-home .structure__figure figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(242, 237, 228, 0.7);
}

.page-home .structure__body p {
  margin: 0 0 14px;
  max-width: 32em;
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(242, 237, 228, 0.8);
}

.page-home .structure__body {
  align-self: center;
}

.page-home .structure__body .btn {
  margin-top: 6px;
}

/* 层级别切换 */
.page-home .tier-switch {
  position: relative;
  margin-top: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.page-home .tier-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .tier-switch__head {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.page-home .tier-switch__tab {
  flex: 1 1 130px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--mist);
  cursor: pointer;
  border-right: 1px solid var(--home-line-soft);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .tier-switch__tab:hover {
  color: var(--paper);
}

.page-home .tier-switch__tab .mono {
  font-size: 11px;
  color: var(--lake);
}

.page-home .tier-switch__panels {
  padding: clamp(16px, 2.4vw, 26px);
}

.page-home .tier-switch__panel {
  display: none;
}

.page-home .tier-switch__panel p {
  margin: 0;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(242, 237, 228, 0.8);
}

.page-home .tier-switch__input:focus-visible + .tier-switch__input + .tier-switch__input + .tier-switch__head .tier-switch__tab {
  outline: none;
}

.page-home .tier-switch__input:focus-visible ~ .tier-switch__head .tier-switch__tab {
  outline: 2px solid var(--lake);
  outline-offset: -2px;
}

.page-home #tier-1:checked ~ .tier-switch__head .tier-switch__tab[for="tier-1"],
.page-home #tier-2:checked ~ .tier-switch__head .tier-switch__tab[for="tier-2"],
.page-home #tier-3:checked ~ .tier-switch__head .tier-switch__tab[for="tier-3"] {
  color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.09);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.page-home #tier-1:checked ~ .tier-switch__panels > .tier-switch__panel:nth-child(1),
.page-home #tier-2:checked ~ .tier-switch__panels > .tier-switch__panel:nth-child(2),
.page-home #tier-3:checked ~ .tier-switch__panels > .tier-switch__panel:nth-child(3) {
  display: block;
}

/* ---------- 检索与收藏 ---------- */
.page-home .find__figure {
  position: relative;
  margin: 0 0 clamp(20px, 3vw, 30px);
  border: 1px solid var(--home-gold-line);
  overflow: hidden;
}

.page-home .find__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 760;
  object-fit: cover;
}

.page-home .find__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(11, 13, 16, 0.88) 0%, rgba(11, 13, 16, 0.3) 52%, rgba(47, 143, 168, 0.2) 100%);
}

.page-home .find__figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(242, 237, 228, 0.74);
}

.page-home .find__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.page-home .find__card {
  padding: clamp(16px, 2vw, 22px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--lake);
  box-shadow: 5px 5px 0 -1px var(--ink-3);
}

.page-home .find__card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .find__card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .find__foot {
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  max-width: 38em;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(242, 237, 228, 0.76);
}

.page-home .find__foot .link-more {
  margin-left: 6px;
}

/* ---------- 版本近况 ---------- */
.page-home .versions__lead {
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  max-width: 34em;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(242, 237, 228, 0.8);
}

.page-home .ledger {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .ledger__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--home-line-soft);
}

.page-home .ledger__tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--clay);
  padding-top: 3px;
}

.page-home .ledger__name {
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper);
}

.page-home .ledger__time {
  grid-column: 2;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .versions__actions {
  margin-top: clamp(22px, 3vw, 30px);
}

/* ---------- 沟通与支持 ---------- */
.page-home .support__figure {
  position: relative;
  margin: 0 0 clamp(20px, 3vw, 32px);
  border: 1px solid var(--home-gold-line);
  overflow: hidden;
}

.page-home .support__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
}

.page-home .support__body p {
  margin: 0;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(242, 237, 228, 0.8);
}

.page-home .support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.8vw, 28px);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .gauge {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .ledger__row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: baseline;
  }

  .page-home .ledger__time {
    grid-column: 3;
    text-align: right;
  }
}

@media (min-width: 760px) {
  .page-home .chapters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: end;
  }

  .page-home .structure__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }
}

@media (min-width: 1080px) {
  .page-home .gauge {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .page-home .home-layout {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    column-gap: clamp(28px, 3.6vw, 56px);
    align-items: start;
  }

  .page-home .home-toc {
    position: sticky;
    top: 96px;
    overflow: visible;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line);
    padding: 4px 0 4px 16px;
    margin-bottom: 0;
  }

  .page-home .home-toc__list {
    flex-direction: column;
    gap: 11px;
    white-space: normal;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .chapter__link,
  .page-home .chapter__no,
  .page-home .home-toc__list a,
  .page-home .link-more,
  .page-home .tier-switch__tab {
    transition: none;
  }
}
<<<END>>>
