.page-home {
  --home-edge: rgba(30, 74, 110, .62);
  --home-edge-soft: rgba(30, 74, 110, .36);
  --home-dim: rgba(221, 228, 236, .72);
  --home-card: rgba(18, 48, 74, .62);
  --home-rule: rgba(34, 26, 20, .16);
  background: var(--navy);
  color: var(--bright);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

.page-home .chapter-mark {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 14px;
}

.page-home .chapter-mark::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--home-edge-soft);
  align-self: center;
}

.page-home .chapter-mark__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--press);
}

.page-home .chapter-mark h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: clamp(1.35rem, 4.4vw, 2.1rem);
  line-height: 1.24;
  color: var(--bright);
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: 44px 0 64px;
  background:
    radial-gradient(1100px 640px at 80% -10%, rgba(30, 74, 110, .9), transparent 68%),
    linear-gradient(180deg, var(--navy) 0%, #07121e 100%);
  overflow: hidden;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -130px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 120, .2), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero__bg {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  height: 46%;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 66px, rgba(30, 74, 110, .5) 66px 67px),
    repeating-linear-gradient(0deg, transparent 0 44px, rgba(30, 74, 110, .34) 44px 45px);
  transform: perspective(520px) rotateX(64deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 92%);
  mask-image: linear-gradient(to top, #000 8%, transparent 92%);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
  align-items: start;
}

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

.page-home .hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.04;
  font-size: clamp(2.05rem, 9vw, 5.2rem);
  color: var(--bright);
}

.page-home .hero__title em {
  font-style: normal;
  color: var(--lamp);
}

.page-home .hero__lede {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.75;
  color: var(--home-dim);
}

.page-home .hero__points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .hero__points li {
  border: 1px solid var(--home-edge);
  border-radius: var(--pill);
  padding: 7px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--bright);
  background: rgba(18, 48, 74, .55);
}

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

.page-home .hero__panel {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  background: linear-gradient(165deg, rgba(18, 48, 74, .94), rgba(8, 20, 32, .97));
}

.page-home .hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 201, 120, .14), transparent 34%);
  pointer-events: none;
  z-index: 2;
}

.page-home .hero__panel-media {
  position: relative;
  aspect-ratio: 16 / 11;
}

.page-home .hero__panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hero__panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 42, .12) 0%, rgba(10, 26, 42, .55) 52%, rgba(10, 26, 42, .97) 100%);
}

.page-home .hero__panel-body {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  padding: 0 22px 28px;
}

.page-home .hero__version {
  margin: 8px 0 10px;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--lamp);
}

.page-home .hero__state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--bright);
}

.page-home .hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(79, 168, 138, .16);
  animation: home-breath 2.4s ease-in-out infinite;
}

@keyframes home-breath {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .42; transform: scale(.78); }
}

.page-home .hero__sync {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--silver);
}

/* ---------- 地标入口带 ---------- */

.page-home .landmarks {
  padding: 60px 0 68px;
  background: linear-gradient(180deg, #07121e 0%, var(--navy) 46%, #0b1d2e 100%);
}

.page-home .landmarks__lede {
  margin: 0 0 28px;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--home-dim);
}

.page-home .landmarks__grid {
  display: grid;
  gap: 14px;
}

.page-home .landmark {
  position: relative;
  display: block;
  padding: 24px 22px 22px;
  border: 1px solid var(--home-edge);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--home-card), rgba(10, 26, 42, .92));
  color: var(--bright);
  text-decoration: none;
  transition: transform 210ms var(--ease), border-color 210ms var(--ease), box-shadow 210ms var(--ease);
}

.page-home .landmark:hover,
.page-home .landmark:focus-visible {
  transform: translateX(6px);
  border-color: var(--neon);
  box-shadow: 0 0 0 1px rgba(255, 106, 43, .36), 0 22px 44px -26px rgba(0, 0, 0, .95);
}

.page-home .landmark__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid var(--home-edge);
  border-radius: 14px;
  color: var(--lamp);
  background: rgba(10, 26, 42, .55);
}

.page-home .landmark__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.page-home .landmark h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -.01em;
  color: var(--bright);
}

.page-home .landmark p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--home-dim);
}

.page-home .landmark__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--neon);
}

.page-home .landmark__go::after {
  content: "→";
  font-size: 14px;
}

.page-home .landmark--b {
  padding: 0;
}

.page-home .landmark__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-md) var(--r-md) 0 0;
}

.page-home .landmark__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .landmark__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 26, 42, .9) 100%);
}

.page-home .landmark__body {
  padding: 20px 22px 22px;
}

/* ---------- 版本身份 ---------- */

.page-home .identity {
  padding: 64px 0 70px;
  background: var(--navy);
}

.page-home .identity__inner {
  display: grid;
  gap: 32px;
}

.page-home .identity__lede {
  margin: 0 0 22px;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--home-dim);
}

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

.page-home .identity__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--home-dim);
}

.page-home .identity__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 1px;
  background: var(--press);
}

.page-home .identity__list .mono {
  color: var(--lamp);
  font-weight: 700;
}

.page-home .identity__panel {
  padding: 24px 22px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--home-edge);
  background: linear-gradient(170deg, rgba(18, 48, 74, .78), rgba(10, 26, 42, .94));
}

.page-home .identity__num {
  margin: 8px 0 20px;
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 10vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--lamp);
}

.page-home .identity__rows {
  margin: 0;
  display: grid;
}

.page-home .identity__row {
  padding: 13px 0;
  border-top: 1px solid var(--home-edge-soft);
}

.page-home .identity__row dt {
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--silver);
}

.page-home .identity__row dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bright);
}

.page-home .identity__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  transform: translateY(-1px);
}

/* ---------- 分类预览（奶油纸） ---------- */

.page-home .cat-section {
  padding: 62px 0 68px;
  background: var(--cream);
  color: var(--ink);
}

.page-home .cat-section .chapter-mark::after {
  background: var(--home-rule);
}

.page-home .cat-section .chapter-mark h2 {
  color: var(--ink);
}

.page-home .cat-section .chapter-mark__num {
  color: var(--press);
}

.page-home .cat-section__lede {
  margin: 0 0 26px;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(34, 26, 20, .78);
}

.page-home .cat-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
}

.page-home .cat-item {
  padding: 20px 0 18px;
  border-top: 1px solid var(--home-rule);
}

.page-home .cat-item__no {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--press);
}

.page-home .cat-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-home .cat-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(34, 26, 20, .76);
}

.page-home .cat-section .btn--ghost {
  color: var(--ink);
  border-color: rgba(34, 26, 20, .3);
}

.page-home .cat-section .btn--ghost:hover,
.page-home .cat-section .btn--ghost:focus-visible {
  border-color: var(--press);
  color: var(--press);
}

/* ---------- 家庭场景 ---------- */

.page-home .family {
  padding: 66px 0 70px;
  background: linear-gradient(180deg, #0b1d2e 0%, var(--navy) 60%, var(--navy) 100%);
}

.page-home .family__banner {
  margin: 0 0 28px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--home-edge);
}

.page-home .family__banner img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-home .family__banner figcaption {
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--silver);
  background: rgba(10, 26, 42, .82);
  border-top: 1px solid var(--home-edge-soft);
}

.page-home .family__tabs {
  position: relative;
}

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

.page-home .family__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.page-home .family__label {
  cursor: pointer;
  padding: 9px 18px;
  border: 1px solid var(--home-edge);
  border-radius: var(--pill);
  font-size: 14px;
  line-height: 1.4;
  color: var(--bright);
  background: rgba(18, 48, 74, .5);
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.page-home .family__label:hover {
  border-color: var(--lamp);
}

.page-home #fam-a:checked ~ .family__labels label[for="fam-a"],
.page-home #fam-b:checked ~ .family__labels label[for="fam-b"],
.page-home #fam-c:checked ~ .family__labels label[for="fam-c"] {
  background: var(--neon);
  border-color: var(--neon);
  color: #0a1a2a;
  font-weight: 700;
}

.page-home #fam-a:focus-visible ~ .family__labels label[for="fam-a"],
.page-home #fam-b:focus-visible ~ .family__labels label[for="fam-b"],
.page-home #fam-c:focus-visible ~ .family__labels label[for="fam-c"] {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

.page-home .family__panel {
  display: none;
  padding: 24px 22px;
  border: 1px solid var(--home-edge);
  border-radius: var(--r-md);
  background: linear-gradient(165deg, rgba(18, 48, 74, .62), rgba(10, 26, 42, .92));
}

.page-home #fam-a:checked ~ .family__panels #panel-a,
.page-home #fam-b:checked ~ .family__panels #panel-b,
.page-home #fam-c:checked ~ .family__panels #panel-c {
  display: block;
}

.page-home .family__panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--bright);
}

.page-home .family__panel > p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--home-dim);
}

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

.page-home .family__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--silver);
}

.page-home .family__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--lamp);
}

/* ---------- 三步路径 ---------- */

.page-home .steps {
  padding: 64px 0 68px;
  background: var(--deep);
}

.page-home .steps__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .step {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--home-edge);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(10, 26, 42, .55), rgba(10, 26, 42, .88));
}

.page-home .step__no {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--press);
}

.page-home .step h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--bright);
}

.page-home .step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--home-dim);
}

.page-home .step a {
  color: var(--lamp);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 201, 120, .45);
}

.page-home .step a:hover,
.page-home .step a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* ---------- 笔记与客服指引 ---------- */

.page-home .notes {
  padding: 66px 0 76px;
  background: var(--navy);
}

.page-home .notes__inner {
  display: grid;
  gap: 34px;
}

.page-home .note-list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
}

.page-home .note {
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--home-edge-soft);
  text-decoration: none;
  color: inherit;
  transition: padding-left 220ms var(--ease);
}

.page-home .note:hover,
.page-home .note:focus-visible {
  padding-left: 8px;
}

.page-home .note__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 11px;
  border: 1px solid rgba(255, 201, 120, .38);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--lamp);
}

.page-home .note h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--bright);
  transition: color 200ms var(--ease);
}

.page-home .note:hover h3,
.page-home .note:focus-visible h3 {
  color: var(--lamp);
}

.page-home .note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--home-dim);
}

.page-home .notes__figure {
  margin: 0 0 24px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--home-edge);
}

.page-home .notes__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-home .help-card {
  padding: 22px;
  border: 1px solid rgba(255, 106, 43, .34);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 106, 43, .16), transparent 62%),
    rgba(18, 48, 74, .72);
}

.page-home .help-card__text {
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--home-dim);
}

.page-home .help-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 620px) {
  .page-home .cat-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 44px;
  }

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

@media (min-width: 760px) {
  .page-home .hero {
    padding: 64px 0 84px;
  }

  .page-home .landmarks {
    padding: 76px 0 84px;
  }

  .page-home .landmarks__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .landmark--a { grid-column: span 5; }
  .page-home .landmark--b { grid-column: span 7; }
  .page-home .landmark--c { grid-column: span 6; }
  .page-home .landmark--d { grid-column: span 6; }

  .page-home .identity,
  .page-home .cat-section,
  .page-home .family,
  .page-home .steps,
  .page-home .notes {
    padding-top: 84px;
    padding-bottom: 92px;
  }
}

@media (min-width: 900px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 5%;
    align-items: center;
  }

  .page-home .hero__panel {
    transform: translateY(-6px);
  }

  .page-home .identity__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: 6%;
    align-items: start;
  }

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

  .page-home .family__panel {
    padding: 30px 28px;
  }

  .page-home .family__panel h3 {
    font-size: 1.3rem;
  }
}

@media (min-width: 960px) {
  .page-home .notes__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: 6%;
    align-items: start;
  }

  .page-home .notes__aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
