.page-home {
  --home-line: rgba(175, 199, 218, 0.22);
  --home-card: rgba(6, 24, 38, 0.42);
  background: var(--navy);
  color: var(--sand);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--head-h) + 30px) 0 46px;
  background:
    radial-gradient(125% 85% at 94% 2%, rgba(255, 107, 87, 0.22), transparent 58%),
    radial-gradient(95% 78% at 0% 98%, rgba(125, 240, 208, 0.12), transparent 60%),
    var(--navy);
}

.page-home .home-hero__sweep {
  position: absolute;
  z-index: -2;
  top: -14%;
  right: -34%;
  width: 118%;
  height: 132%;
  border-radius: 48px;
  clip-path: polygon(34% 0%, 100% 0%, 100% 100%, 0% 76%);
  background: linear-gradient(152deg, var(--trench) 0%, rgba(36, 26, 82, 0.92) 58%, rgba(6, 24, 38, 0) 100%);
  opacity: 0.92;
}

.page-home .home-hero__visual {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.page-home .home-hero__inner {
  position: relative;
  display: grid;
  gap: 34px;
}

.page-home .home-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .home-hero__crumb span {
  color: var(--mint);
}

.page-home .home-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 11vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
}

.page-home .home-hero__accent {
  display: inline-block;
  color: var(--coral);
}

.page-home .home-hero__intro {
  max-width: 42ch;
  margin: 0 0 26px;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--sand);
  opacity: 0.86;
}

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

.page-home .home-hero__ver {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .home-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(125, 240, 208, 0.16);
}

/* 收藏书签卡片 */
.page-home .home-bookmark {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: center;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(6, 24, 38, 0.08);
  background: linear-gradient(168deg, var(--sand) 0%, #EFE6DA 100%);
  color: var(--ink);
  box-shadow: var(--shadow-panel);
  transform: rotate(-1.2deg);
}

.page-home .home-bookmark__shot {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.page-home .home-bookmark__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.page-home .home-bookmark__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .home-bookmark__chip {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.page-home .home-bookmark__list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-bookmark__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(6, 24, 38, 0.05);
  font-size: 0.88rem;
}

.page-home .home-bookmark__item::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--coral);
}

.page-home .home-bookmark__foot {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(6, 24, 38, 0.58);
}

/* ---------- 章节索引导航 ---------- */
.page-home .home-index {
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: rgba(13, 58, 70, 0.5);
}

.page-home .home-index__list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .home-index__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 9px 16px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-pill);
  color: var(--sand);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.page-home .home-index__list a:hover,
.page-home .home-index__list a:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
}

.page-home .home-index__list a[aria-current="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--navy);
}

.page-home .home-index__no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

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

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

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

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

.page-home .home-chapter--sand {
  background: var(--sand);
  color: var(--ink);
  --home-line: rgba(6, 24, 38, 0.16);
}

.page-home .home-chapter__head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 4px 16px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-chapter__num {
  grid-row: span 2;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--mist);
  opacity: 0.6;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.page-home .home-chapter.is-active .home-chapter__num {
  color: var(--coral);
  opacity: 1;
}

.page-home .home-chapter__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.02em;
}

.page-home .home-chapter__meta {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .home-chapter--sand .home-chapter__num {
  color: rgba(6, 24, 38, 0.32);
  opacity: 1;
}

.page-home .home-chapter--sand .home-chapter__meta {
  color: rgba(6, 24, 38, 0.55);
}

.page-home .home-chapter__foot {
  margin-top: 26px;
}

.page-home .home-lead {
  margin: 0 0 20px;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.88;
}

.page-home .home-link {
  color: var(--coral);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 87, 0.42);
  transition: border-color 0.2s var(--ease);
}

.page-home .home-link:hover,
.page-home .home-link:focus-visible {
  border-color: var(--coral);
}

/* ---------- 01 收藏 ---------- */
.page-home .home-save {
  display: grid;
  gap: 26px;
}

.page-home .home-save__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-save__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  line-height: 1.7;
  opacity: 0.9;
}

.page-home .home-save__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--coral);
}

.page-home .home-save__more {
  margin: 18px 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.page-home .home-save__stat {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-md);
  background: var(--home-card);
}

.page-home .home-save__stat b {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  color: var(--mint);
}

.page-home .home-save__stat span {
  font-size: 0.8rem;
  color: var(--mist);
}

/* ---------- 02 栏目轨道 ---------- */
.page-home .home-collage {
  margin: 0 0 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .home-collage img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-collage__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .home-rail {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.page-home .home-rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 76%);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.page-home .home-col {
  display: grid;
  gap: 8px;
  padding: 20px 18px 22px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-md);
  background: var(--home-card);
  scroll-snap-align: start;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.page-home .home-col:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
}

.page-home .home-col__no {
  justify-self: start;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.page-home .home-col__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .home-col__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .home-columns__note {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.82;
}

/* ---------- 03 版本 ---------- */
.page-home .home-ver {
  display: grid;
  gap: 28px;
}

.page-home .home-ver__media {
  margin: 0;
}

.page-home .home-ver__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.page-home .home-ver__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .home-ver__item {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: 4px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--home-line);
}

.page-home .home-ver__item b {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--coral);
  white-space: nowrap;
}

.page-home .home-ver__item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .home-ver__item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--mist);
}

/* ---------- 04 反馈 ---------- */
.page-home .home-receipt {
  display: grid;
  gap: 26px;
}

.page-home .home-flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 14px 0;
}

.page-home .home-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 52px;
  bottom: -4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 107, 87, 0.7), rgba(255, 107, 87, 0.08));
}

.page-home .home-flow__no {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--home-line);
  background: rgba(244, 239, 230, 0.08);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.page-home .home-flow__step:last-child .home-flow__no {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--navy);
}

.page-home .home-flow__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .home-flow__text {
  margin: 2px 0 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .home-receipt__side {
  padding: 20px 18px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-md);
  background: rgba(6, 24, 38, 0.3);
}

.page-home .home-receipt__label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--mint);
}

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

.page-home .home-receipt__tags li {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--home-line);
  font-size: 0.82rem;
  color: var(--sand);
}

/* ---------- 收尾 ---------- */
.page-home .home-trust__grid {
  display: grid;
  gap: 30px;
}

.page-home .home-trust__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(6, 24, 38, 0.55);
}

.page-home .home-trust__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .home-trust__text {
  margin: 0;
  max-width: 58ch;
  font-size: 0.96rem;
  line-height: 1.85;
  color: rgba(6, 24, 38, 0.78);
}

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

.page-home .home-trust__facts li {
  border-top: 2px solid var(--ink);
  padding-top: 10px;
}

.page-home .home-trust__facts b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}

.page-home .home-trust__facts span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(6, 24, 38, 0.6);
}

.page-home .home-trust__aside {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: rgba(6, 24, 38, 0.06);
  border: 1px solid rgba(6, 24, 38, 0.12);
}

.page-home .home-trust__aside-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(6, 24, 38, 0.6);
}

.page-home .home-trust__aside-text {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(6, 24, 38, 0.78);
}

.page-home .home-trust__aside-text:last-child {
  margin-bottom: 0;
}

.page-home .home-trust__mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  word-break: break-all;
}

/* ---------- 窄屏与桌面适配 ---------- */
@media (max-width: 420px) {
  .page-home .home-bookmark {
    transform: none;
  }

  .page-home .home-hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.2rem);
  }

  .page-home .home-chapter__head {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .page-home .home-chapter__num {
    font-size: 1.5rem;
  }
}

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

  .page-home .home-save {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 40px;
  }

  .page-home .home-rail__track {
    grid-auto-columns: 264px;
    gap: 20px;
  }

  .page-home .home-col:nth-child(even) {
    margin-top: 24px;
  }

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

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: calc(var(--head-h) + 58px) 0 76px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 54px;
  }

  .page-home .home-bookmark {
    justify-self: end;
  }

  .page-home .home-hero__sweep {
    right: -14%;
    width: 84%;
    height: 126%;
  }

  .page-home .home-ver {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: 46px;
  }

  .page-home .home-receipt {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
    gap: 44px;
  }

  .page-home .home-trust__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
    gap: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-bookmark,
  .page-home .home-col,
  .page-home .home-chapter__num,
  .page-home .home-index__list a {
    transition: none;
    transform: none;
  }

  .page-home .home-col:hover {
    transform: none;
  }
}
