.page-home {
  --home-line: rgba(33, 42, 38, .14);
  --home-soft: rgba(33, 42, 38, .06);
  padding-bottom: clamp(36px, 6vw, 80px);
  background: var(--sand);
}

.page-home .home-p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 38ch;
}

.page-home .home-h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(25px, 5.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* ---------- 页面上下文 ---------- */
.page-home .home-context {
  padding-top: clamp(16px, 3vw, 30px);
}

.page-home .home-context__line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-2);
}

.page-home .home-context__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-mist);
}

/* ---------- 首屏橱窗 ---------- */
.page-home .hero {
  padding: clamp(18px, 4vw, 40px) 0 clamp(30px, 5vw, 64px);
}

.page-home .hero__grid {
  display: grid;
  gap: clamp(26px, 5vw, 52px);
  align-items: center;
}

.page-home .hero__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 10.5vw, 74px);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--ink);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.page-home .hero__title span {
  display: block;
}

.page-home .hero__title-shift {
  margin-left: .28em;
}

.page-home .hero__title em {
  font-style: normal;
  padding: 0 .05em;
  background: linear-gradient(transparent 62%, var(--mint) 62%, var(--mint) 94%, transparent 94%);
}

.page-home .hero__lede {
  margin: 20px 0 0;
  max-width: 22ch;
  color: var(--ink-2);
}

.page-home .hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .hero__window {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(150deg, var(--mint) 0%, var(--mint-deep) 100%);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

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

.page-home .hero__tag {
  position: absolute;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  transition: transform 180ms var(--ease);
}

.page-home .hero__tag--a {
  top: 16px;
  left: 16px;
}

.page-home .hero__tag--b {
  right: 16px;
  bottom: 16px;
  background: var(--volt);
  color: var(--paper);
}

.page-home .hero__window:hover .hero__tag--a {
  transform: translate(-5px, -6px) rotate(-4deg);
}

.page-home .hero__window:hover .hero__tag--b {
  transform: translate(5px, 6px) rotate(3deg);
}

/* ---------- 章节预告 ---------- */
.page-home .chapters {
  padding: clamp(28px, 5vw, 62px) 0;
  border-top: 1px dashed var(--home-line);
}

.page-home .chapters__grid {
  display: grid;
  gap: clamp(24px, 4vw, 46px);
}

.page-home .chapters__figure {
  margin: 24px 0 0;
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-2);
}

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

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

.page-home .chapter-item {
  border-top: 1px dashed var(--home-line);
}

.page-home .chapter-item:last-child {
  border-bottom: 1px dashed var(--home-line);
}

.page-home .chapter-link {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
  padding: 18px 4px;
  color: inherit;
  text-decoration: none;
  transition: background 160ms var(--ease), padding-left 160ms var(--ease);
}

.page-home .chapter-link:hover,
.page-home .chapter-link:focus-visible {
  background: var(--sand-2);
  padding-left: 12px;
}

.page-home .chapter-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--flame);
}

.page-home .chapter-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .chapter-note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- 登录与版本入口 ---------- */
.page-home .gate {
  padding: clamp(32px, 6vw, 72px) 0;
  background: var(--sand-2);
}

.page-home .gate__lead {
  max-width: 36ch;
}

.page-home .gate__panels {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.page-home .gate__panel {
  background: var(--paper);
  padding: clamp(20px, 3.4vw, 30px);
  border-top: 4px solid var(--mint);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%
  );
}

.page-home .gate__panel--volt {
  border-top-color: var(--volt);
}

.page-home .gate__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .gate__text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-home .gate__list {
  margin: 16px 0 0;
  padding: 0 0 0 2px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-home .gate__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.page-home .gate__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--mint);
}

.page-home .gate__stack {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
}

.page-home .gate__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--sand-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-2);
}

.page-home .gate__row--mark {
  background: var(--mint-mist);
  border: 1px dashed var(--mint-deep);
  color: var(--ink);
}

.page-home .gate__link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--volt);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}

.page-home .gate__link:hover,
.page-home .gate__link:focus-visible {
  border-bottom-color: var(--volt);
}

/* ---------- 横向索引卡 ---------- */
.page-home .shelf {
  padding: clamp(30px, 5.5vw, 68px) 0;
}

.page-home .shelf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.page-home .shelf__arrows {
  display: flex;
  gap: 8px;
}

.page-home .shelf__arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--home-line);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .shelf__arrow:hover,
.page-home .shelf__arrow:focus-visible {
  background: var(--mint);
  border-color: var(--mint);
}

.page-home .shelf__lead {
  margin-bottom: 4px;
}

.page-home .shelf__rail {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 6px 2px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.page-home .shelf-card {
  flex: 0 0 min(80vw, 296px);
  scroll-snap-align: start;
  scroll-margin-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.page-home .shelf-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: var(--shadow-lift);
}

.page-home .shelf-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--flame);
}

.page-home .shelf-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .shelf-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-home .shelf-card__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--volt);
  text-decoration: none;
  border-bottom: 1px solid var(--mint);
  padding-bottom: 2px;
}

.page-home .shelf-card__link:hover,
.page-home .shelf-card__link:focus-visible {
  border-bottom-color: var(--volt);
}

.page-home .shelf-card--figure {
  padding: 0;
  overflow: hidden;
  background: var(--archive);
  border-color: var(--archive-2);
  gap: 0;
}

.page-home .shelf-card--figure img {
  display: block;
  width: 100%;
  height: 148px;
  max-width: 100%;
  object-fit: cover;
}

.page-home .shelf-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
}

/* ---------- 30 天周期 ---------- */
.page-home .cycle {
  padding: clamp(32px, 6vw, 72px) 0;
  background: linear-gradient(180deg, var(--sand) 0%, var(--mint-mist) 100%);
}

.page-home .cycle__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.page-home .cycle-rows {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.page-home .cycle-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.page-home .cycle-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.page-home .cycle-row__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--archive-2);
}

.page-home .cycle-track {
  position: relative;
  height: 14px;
  margin-top: 9px;
  border-radius: 999px;
  overflow: hidden;
  background-color: rgba(33, 42, 38, .08);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 calc(100% / 30 - 1px),
    rgba(33, 42, 38, .18) calc(100% / 30 - 1px) calc(100% / 30)
  );
}

.page-home .cycle-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.page-home .cycle-fill--a {
  width: 34%;
  background: var(--mint);
}

.page-home .cycle-fill--b {
  width: 100%;
  background: var(--mint-deep);
}

.page-home .cycle-fill--c {
  width: 100%;
  background: var(--volt);
}

.page-home .cycle-row__note {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

.page-home .cycle-tip {
  margin: 26px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--flame);
  background: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-home .cycle-tip a {
  color: var(--volt);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--mint);
}

.page-home .cycle__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  background: var(--paper);
}

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

/* ---------- 近期更新 ---------- */
.page-home .updates {
  padding: clamp(32px, 6vw, 70px) 0;
}

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

.page-home .update-item {
  display: grid;
  gap: 8px;
  padding: 20px 20px 20px 18px;
  background: var(--paper);
  border-left: 3px solid var(--mint);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.page-home .update-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.page-home .update-item__time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--flame);
}

.page-home .update-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .update-item__text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-home .updates__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- 收尾 ---------- */
.page-home .home-cta {
  padding: clamp(20px, 3vw, 36px) 0 clamp(10px, 2vw, 20px);
}

.page-home .home-cta__box {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 5vw, 52px);
  background: var(--ink);
  color: var(--sand);
  clip-path: polygon(
    0 0,
    calc(100% - 28px) 0,
    100% 28px,
    100% 100%,
    28px 100%,
    0 calc(100% - 28px)
  );
}

.page-home .home-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 4.4vw, 32px);
  line-height: 1.25;
  color: var(--sand);
}

.page-home .home-cta__text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(251, 243, 228, .78);
  max-width: 40ch;
}

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

.page-home .home-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: var(--mint);
  color: var(--ink);
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}

.page-home .home-cta__link:hover,
.page-home .home-cta__link:focus-visible {
  background: var(--mint-deep);
  transform: translateY(-2px);
}

.page-home .home-cta__link--quiet {
  background: transparent;
  color: var(--sand);
  border: 1px solid rgba(251, 243, 228, .42);
}

.page-home .home-cta__link--quiet:hover,
.page-home .home-cta__link--quiet:focus-visible {
  background: rgba(251, 243, 228, .12);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-home .home-p {
    font-size: 17px;
  }

  .page-home .gate__panels {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .update-item {
    grid-template-columns: 132px 1fr;
    gap: 20px;
    align-items: start;
    padding: 22px 24px;
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: 5fr 6fr;
  }

  .page-home .hero__title-shift {
    margin-left: .5em;
  }

  .page-home .chapters__grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .page-home .cycle__grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }

  .page-home .home-cta__box {
    grid-template-columns: 6fr 5fr;
    align-items: center;
  }

  .page-home .home-cta__acts {
    justify-content: flex-end;
  }

  .page-home .shelf-card {
    flex-basis: 300px;
  }
}

@media (min-width: 1180px) {
  .page-home .hero__window {
    aspect-ratio: 5 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__tag,
  .page-home .chapter-link,
  .page-home .shelf-card,
  .page-home .update-item,
  .page-home .home-cta__link {
    transition: none;
  }

  .page-home .hero__window:hover .hero__tag--a,
  .page-home .hero__window:hover .hero__tag--b,
  .page-home .shelf-card:hover,
  .page-home .update-item:hover,
  .page-home .home-cta__link:hover {
    transform: none;
  }
}
<<<END>>>
