.page-home {
  --home-line: rgba(16, 22, 15, .14);
  --home-soft: #3a463c;
  --home-soft-light: #cfe3c6;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(20px, 4vw, 48px) 0 clamp(36px, 6vw, 72px);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  right: -14%;
  top: 0;
  width: min(560px, 74vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: radial-gradient(circle, var(--ink) 0 2.2px, transparent 2.8px);
  background-size: 34px 34px;
  opacity: .13;
  -webkit-mask-image: radial-gradient(circle, #000 0 50%, transparent 66%);
  mask-image: radial-gradient(circle, #000 0 50%, transparent 66%);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.page-home .home-hero .breadcrumb {
  margin-bottom: 2px;
}

.page-home .home-hero__title {
  margin: 0;
  font-size: clamp(38px, 10.6vw, 88px);
  line-height: .96;
  letter-spacing: -.035em;
}

.page-home .home-hero__title span {
  display: block;
  font-weight: 200;
  color: var(--ink);
}

.page-home .home-hero__title strong {
  display: block;
  font-weight: 900;
  color: var(--ink);
}

.page-home .home-hero__lead {
  margin: 0;
  max-width: 34em;
  color: var(--home-soft);
}

.page-home .home-hero__shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--sprout);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}

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

.page-home .home-hero__shot::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, transparent 50%, var(--paper) 50%);
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  pointer-events: none;
}

.page-home .home-hero__cap {
  position: absolute;
  left: 0;
  top: 0;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
}

/* ---------- 章节索引卡 ---------- */
.page-home .home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .home-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px 18px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow-paper-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.page-home .home-card:hover,
.page-home .home-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-paper);
  background: var(--sprout);
}

.page-home .home-card__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--leaf);
}

.page-home .home-card__name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.page-home .home-card__note {
  font-size: 12.5px;
  line-height: 1.5;
  color: #4a5850;
}

/* ---------- 通用小节头 ---------- */
.page-home .home-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(22px, 4vw, 36px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--leaf);
}

.page-home .home-divider span {
  white-space: nowrap;
}

.page-home .home-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: currentColor;
  opacity: .4;
}

.page-home .home-sec-head {
  max-width: 46em;
  margin-bottom: clamp(22px, 4vw, 38px);
}

.page-home .home-h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 4.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -.022em;
  font-weight: 800;
  color: var(--ink);
}

.page-home .home-h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.4;
  font-weight: 800;
  color: var(--ink);
}

.page-home .home-sec-lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--home-soft);
}

/* ---------- 第二栏双锚点 ---------- */
.page-home .home-focus {
  padding: clamp(36px, 6vw, 76px) 0 clamp(40px, 7vw, 88px);
  background: var(--mist);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-focus__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.page-home .home-panel {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}

.page-home .home-panel__shot {
  position: relative;
  margin: 0;
  border-bottom: 1px solid var(--ink);
  background: var(--sprout);
}

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

.page-home .home-panel__shot::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.page-home .home-panel__shot:hover::after,
.page-home .home-panel__shot:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.page-home .home-panel__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
}

.page-home .home-panel__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--home-soft);
}

.page-home .home-panel__meta {
  font-family: var(--font-mono);
  font-size: 12px !important;
  letter-spacing: .08em;
  color: var(--leaf) !important;
}

/* ---------- 四个入口 ---------- */
.page-home .home-entries {
  padding: clamp(40px, 7vw, 88px) 0;
  background: var(--leaf);
  color: var(--paper);
}

.page-home .home-entries .home-divider {
  color: var(--sprout);
}

.page-home .home-entries .home-h2 {
  color: var(--paper);
}

.page-home .home-entries .home-sec-lead {
  color: var(--home-soft-light);
}

.page-home .home-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(245, 241, 230, .2);
}

.page-home .home-legend__item {
  display: grid;
  grid-template-columns: 34px 12px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(245, 241, 230, .2);
}

.page-home .home-legend__no {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--sprout);
}

.page-home .home-legend__dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--sprout);
  box-shadow: 0 0 0 3px rgba(183, 226, 122, .22);
}

.page-home .home-legend__item:nth-child(2) .home-legend__dot {
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 211, 75, .22);
}

.page-home .home-legend__item:nth-child(3) .home-legend__dot {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 44, .22);
}

.page-home .home-legend__item:nth-child(4) .home-legend__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(23, 224, 176, .22);
}

.page-home .home-legend__title {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  color: var(--paper);
}

.page-home .home-legend__body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--home-soft-light);
}

.page-home .home-entries__note {
  margin: clamp(22px, 4vw, 34px) 0 0;
  padding: 15px 18px;
  border-left: 3px solid var(--yellow);
  background: rgba(245, 241, 230, .07);
  font-size: 15px;
  line-height: 1.72;
  color: #e2eeda;
}

/* ---------- 固定路线 ---------- */
.page-home .home-route {
  padding: clamp(40px, 7vw, 88px) 0;
  background: var(--paper);
}

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

.page-home .home-step {
  position: relative;
  padding: 22px 20px 24px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow-paper-sm);
}

.page-home .home-step__no {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 2px;
  background: var(--leaf);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
}

.page-home .home-step p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--home-soft);
}

.page-home .home-route__meta {
  margin: clamp(22px, 4vw, 32px) 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--leaf);
}

/* ---------- 内容与版本 ---------- */
.page-home .home-updates {
  padding: clamp(40px, 7vw, 88px) 0;
  background: var(--sprout);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.page-home .home-updates__shot {
  margin: 0 0 clamp(24px, 4vw, 38px);
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}

.page-home .home-updates__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-updates__cap {
  padding: 10px 14px;
  border-top: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink);
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  overflow: hidden;
}

.page-home .home-stat {
  background: var(--paper);
  padding: 18px 16px 20px;
}

.page-home .home-stat dt {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--leaf);
}

.page-home .home-stat dd {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}

.page-home .home-updates__links {
  margin: clamp(20px, 4vw, 30px) 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: #26332a;
}

.page-home .home-updates__links a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 700;
}

.page-home .home-updates__links a:hover {
  color: var(--leaf);
}

/* ---------- 结尾 ---------- */
.page-home .home-contact {
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px);
  background: var(--paper);
}

.page-home .home-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--yellow);
  box-shadow: var(--shadow-paper);
}

.page-home .home-contact__text .home-h2 {
  font-size: clamp(24px, 4vw, 36px);
}

.page-home .home-contact__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #2c352d;
}

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

.page-home .home-contact__note {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--leaf);
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-home .home-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-home .home-contact__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: 28px;
  }
}

@media (min-width: 760px) {
  .page-home .home-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
  .page-home .home-card:nth-child(2) {
    margin-top: 22px;
  }
  .page-home .home-card:nth-child(4) {
    margin-top: 32px;
  }
  .page-home .home-legend__item {
    grid-template-columns: 52px 12px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 0;
  }
}

@media (min-width: 860px) {
  .page-home .home-focus__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
  }
  .page-home .home-panel--b {
    margin-top: clamp(40px, 6vw, 72px);
  }
  .page-home .home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .page-home .home-step + .home-step::before {
    content: "";
    position: absolute;
    top: 32px;
    left: -20px;
    width: 20px;
    height: 2px;
    background: var(--leaf);
    opacity: .45;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    grid-template-areas:
      "crumb shot"
      "head  shot"
      "lead  shot"
      "cards cards";
    column-gap: clamp(28px, 4vw, 56px);
    row-gap: 18px;
    align-items: start;
  }
  .page-home .home-hero .breadcrumb {
    grid-area: crumb;
  }
  .page-home .home-hero__head {
    grid-area: head;
  }
  .page-home .home-hero__lead {
    grid-area: lead;
  }
  .page-home .home-hero__shot {
    grid-area: shot;
    align-self: stretch;
  }
  .page-home .home-hero__shot img {
    height: 100%;
    aspect-ratio: 4 / 5;
  }
  .page-home .home-cards {
    grid-area: cards;
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-card,
  .page-home .home-panel__shot::after {
    transition: none;
  }
  .page-home .home-card:hover,
  .page-home .home-card:focus-visible {
    transform: none;
  }
  .page-home .home-panel__shot:hover::after,
  .page-home .home-panel__shot:focus-within::after {
    transform: none;
  }
}
