.page-home {
  --home-pad: clamp(2.75rem, 7vw, 5.5rem);
  background: var(--night-900);
  color: var(--ink-soft);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.25rem 0 3rem;
  background:
    radial-gradient(60% 50% at 15% 8%, rgba(47, 243, 224, 0.22), transparent 70%),
    radial-gradient(55% 45% at 88% 0%, rgba(255, 63, 164, 0.24), transparent 72%),
    radial-gradient(45% 40% at 62% 102%, rgba(255, 154, 61, 0.14), transparent 70%),
    var(--night-900);
}

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

.page-home .hero-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-home .hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .hero h1 {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.2vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--paper-100);
  text-shadow: 2px 2px 0 rgba(255, 63, 164, 0.55), -2px -2px 0 rgba(47, 243, 224, 0.3);
}

.page-home .hero-br {
  display: none;
}

.page-home .hero-lede {
  margin: 1rem 0 0;
  max-width: 33em;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.page-home .hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.page-home .hero-btn--primary {
  background: var(--orange-500);
  color: var(--ink-900);
  border: 1px solid var(--orange-500);
  box-shadow: 4px 4px 0 rgba(255, 63, 164, 0.5);
}

.page-home .hero-btn--primary:hover,
.page-home .hero-btn--primary:focus-visible {
  transform: translate(-1px, -2px);
  box-shadow: 6px 7px 0 rgba(255, 63, 164, 0.62);
}

.page-home .hero-btn--ghost {
  background: transparent;
  color: var(--paper-100);
  border: 1px solid var(--line-cyan);
}

.page-home .hero-btn--ghost:hover,
.page-home .hero-btn--ghost:focus-visible {
  background: rgba(47, 243, 224, 0.14);
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.page-home .hero-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.6) 48%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.34s ease;
  pointer-events: none;
}

.page-home .hero-btn--primary:hover::after,
.page-home .hero-btn--primary:focus-visible::after {
  transform: translateX(120%);
}

.page-home .hero-note {
  margin: 1.1rem 0 0;
  max-width: 30em;
  padding-left: 0.85rem;
  border-left: 2px solid var(--orange-500);
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--lavender-300);
}

.page-home .hero-card {
  margin: 0;
  padding: 0.75rem 0.75rem 0.9rem;
  border: 1px solid rgba(47, 243, 224, 0.4);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(23, 20, 61, 0.94), rgba(8, 7, 27, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 63, 164, 0.22),
    12px 16px 0 -6px rgba(255, 63, 164, 0.16),
    0 30px 70px -40px rgba(47, 243, 224, 0.6);
  transform: rotate(-1.5deg);
}

.page-home .hero-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.page-home .hero-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-dim);
}

/* ---------- 章节骨架 ---------- */
.page-home .chapter {
  position: relative;
  padding: var(--home-pad) 0;
}

.page-home .chapter--night {
  background:
    radial-gradient(70% 60% at 92% 0%, rgba(255, 63, 164, 0.14), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(47, 243, 224, 0.12), transparent 70%),
    linear-gradient(180deg, var(--night-900), var(--night-700) 60%, var(--night-900));
  color: var(--ink-soft);
}

.page-home .chapter--night::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-400), var(--magenta-500), var(--orange-500));
}

.page-home .chapter--paper {
  background: var(--paper-100);
  color: var(--ink-900);
  padding-top: calc(var(--home-pad) + 1.5rem);
}

.page-home .chapter--paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: var(--night-900);
  clip-path: polygon(0 0, 100% 0, 100% 18%, 0 100%);
}

.page-home .chapter-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.35rem 1rem;
  margin-bottom: 1.8rem;
}

.page-home .chapter-num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 5rem);
  line-height: 0.78;
  font-weight: 700;
  color: var(--magenta-500);
}

.page-home .chapter--night .chapter-num {
  color: var(--cyan-400);
}

.page-home .chapter-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 2.1rem);
  line-height: 1.28;
}

.page-home .chapter-head p {
  margin: 0.5rem 0 0;
  max-width: 36em;
  font-size: 0.95rem;
  line-height: 1.8;
}

.page-home .chapter--paper .chapter-head p {
  color: #4A3B52;
}

/* ---------- 版本对照卡 ---------- */
.page-home .cmp {
  position: relative;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(36, 26, 46, 0.16);
  border-radius: 6px;
  background: var(--paper-100);
  box-shadow: 10px 10px 0 -2px rgba(255, 63, 164, 0.16), var(--shadow-paper);
}

.page-home .cmp-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page-home .cmp-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(36, 26, 46, 0.2);
  border-radius: 999px;
  background: rgba(36, 26, 46, 0.05);
}

.page-home .cmp-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: #5A4A63;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.page-home #cmp-new:checked ~ .cmp-switch .cmp-btn--new,
.page-home #cmp-old:checked ~ .cmp-switch .cmp-btn--old {
  background: var(--ink-900);
  color: var(--paper-100);
  box-shadow: inset 0 0 0 1px var(--cyan-400);
}

.page-home .cmp-radio:focus-visible ~ .cmp-switch {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
}

.page-home .cmp-panels {
  margin-top: 1.1rem;
}

.page-home .cmp-panel {
  display: none;
}

.page-home #cmp-new:checked ~ .cmp-panels .cmp-panel--new,
.page-home #cmp-old:checked ~ .cmp-panels .cmp-panel--old {
  display: block;
}

.page-home .cmp-list {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.page-home .cmp-list > div {
  padding-left: 0.85rem;
  border-left: 3px solid var(--cyan-400);
}

.page-home .cmp-panel--old .cmp-list > div {
  border-left-color: var(--magenta-500);
}

.page-home .cmp-list dt {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--magenta-500);
}

.page-home .cmp-list dd {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-900);
}

.page-home .cmp-foot {
  margin: 1.1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(36, 26, 46, 0.22);
  font-size: 0.86rem;
  line-height: 1.7;
  color: #5A4A63;
}

/* ---------- 品类 ---------- */
.page-home .cat-jump {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding: 0.2rem 0 0.8rem;
  -webkit-overflow-scrolling: touch;
}

.page-home .cat-jump a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.page-home .cat-jump a:hover,
.page-home .cat-jump a:focus-visible {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--night-900);
}

.page-home .cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.page-home .cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.1rem 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 4px 16px 4px 16px;
  background: linear-gradient(155deg, rgba(23, 20, 61, 0.96), rgba(8, 7, 27, 0.94));
  scroll-margin-top: 5rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.page-home .cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-cyan);
}

.page-home .cat-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.1rem;
  width: 42px;
  height: 3px;
  background: var(--magenta-500);
}

.page-home .cat-card:nth-child(even)::before {
  background: var(--cyan-400);
}

.page-home .cat-card h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--paper-100);
}

.page-home .cat-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .cat-card .cat-meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--lavender-300);
}

.page-home .cats-foot {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.6rem;
}

.page-home .cats-foot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.page-home .cats-foot-copy p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---------- 评测 ---------- */
.page-home .reviews-grid {
  display: grid;
  gap: 1.6rem;
}

.page-home .review-cover {
  margin: 0;
}

.page-home .review-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #FFFFFF;
  border-radius: 4px;
  box-shadow: 12px 14px 0 -4px rgba(47, 243, 224, 0.35), var(--shadow-paper);
  transform: rotate(-1deg);
}

.page-home .review-cover figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.page-home .review-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.page-home .review-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.9rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(36, 26, 46, 0.22);
}

.page-home .rv-no {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--magenta-500);
}

.page-home .rv-title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-900);
}

.page-home .rv-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #6B5B74;
}

.page-home .review-list .tag {
  grid-column: 2;
  justify-self: start;
}

.page-home .review-note {
  margin: 1.1rem 0 1.2rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #4A3B52;
}

.page-home .paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--ink-900);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.page-home .paper-link:hover,
.page-home .paper-link:focus-visible {
  background: var(--ink-900);
  color: var(--paper-100);
}

/* ---------- 版本档案 ---------- */
.page-home .stat-band {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.page-home .stat-item {
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-left: 2px solid rgba(47, 243, 224, 0.5);
}

.page-home .stat-item:nth-child(2) {
  border-left-color: var(--magenta-500);
}

.page-home .stat-item:nth-child(3) {
  border-left-color: var(--orange-500);
}

.page-home .stat-item dt {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--lavender-300);
}

.page-home .stat-item dd {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .stat-num {
  margin-right: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.9rem);
  line-height: 1;
  color: var(--paper-100);
}

.page-home .archive-note {
  margin: 1.4rem 0 0;
  max-width: 40em;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-dim);
}

/* ---------- 三步上手 ---------- */
.page-home .steps {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid rgba(36, 26, 46, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
}

.page-home .step-no {
  grid-row: span 3;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--magenta-500);
}

.page-home .steps h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink-900);
}

.page-home .steps p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #4A3B52;
}

.page-home .steps a {
  justify-self: start;
  margin-top: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
  border-bottom: 2px solid var(--cyan-400);
}

.page-home .steps a:hover,
.page-home .steps a:focus-visible {
  color: var(--magenta-500);
  border-bottom-color: var(--magenta-500);
}

.page-home .start-help {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
  padding: 1.1rem 1.2rem;
  border: 1px dashed rgba(36, 26, 46, 0.3);
}

.page-home .start-help p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #4A3B52;
}

.page-home .start-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .page-home .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .cat-card:nth-child(3n + 1) {
    min-height: 176px;
  }
}

@media (min-width: 860px) {
  .page-home .hero-br {
    display: inline;
  }

  .page-home .cmp-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .page-home .cats-foot {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 2rem;
  }

  .page-home .stat-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
  }

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

@media (min-width: 900px) {
  .page-home .hero {
    padding: 3.5rem 0 4.5rem;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }

  .page-home .reviews-grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: start;
  }
}

@media (min-width: 640px) {
  .page-home .review-list li {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .page-home .review-list .tag {
    grid-column: 3;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-btn,
  .page-home .hero-btn--primary::after,
  .page-home .cat-card,
  .page-home .cat-jump a {
    transition: none;
  }

  .page-home .hero-card,
  .page-home .review-cover img {
    transform: none;
  }
}
