.page-home {
  --page-skew: -5deg;
  --page-glow: 0 0 24px rgba(0, 255, 163, 0.35);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== 首屏拼贴 ===== */
.page-home .home-hero {
  position: relative;
  padding: 2rem 0 3rem;
}
.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(123, 47, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(0, 255, 163, 0.12), transparent 55%);
}
.page-home .hero-collage,
.page-home .hero-stats {
  position: relative;
  z-index: 1;
}
.page-home .hero-collage {
  display: grid;
  gap: 1rem;
}
.page-home .hero-brand {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(17, 34, 64, 0.92), rgba(17, 34, 64, 0.6));
  border-left: 3px solid var(--accent-1);
}
.page-home .hero-brand__kicker {
  margin: 0 0 0.4rem;
  color: var(--accent-1);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-home .hero-brand h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.05;
  color: var(--text-strong);
}
.page-home .hero-brand__lead {
  margin: 0;
  max-width: 36em;
  color: var(--text-dim);
  line-height: 1.8;
}
.page-home .hero-brand__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.page-home .hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .hero-note {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid rgba(0, 255, 163, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.page-home .hero-note--version {
  border-color: rgba(255, 215, 0, 0.35);
}
.page-home .hero-note--guide {
  background: rgba(123, 47, 255, 0.16);
  border-color: rgba(123, 47, 255, 0.4);
}
.page-home .hero-note__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.page-home .hero-note--version .hero-note__label {
  color: var(--accent-3);
}
.page-home .hero-note strong {
  font-size: 1.1rem;
  color: var(--text-strong);
}
.page-home .hero-note__meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
}
.page-home .hero-note__link {
  justify-self: start;
  margin-top: 0.15rem;
  color: var(--accent-1);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 163, 0.4);
}
.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}
.page-home .hero-stats__item {
  margin: 0;
  padding: 1rem;
  background: var(--bg-ink);
  border-radius: var(--radius);
  border-top: 2px solid var(--accent-2);
}
.page-home .hero-stats dt {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.page-home .hero-stats dd {
  margin: 0.2rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-strong);
}

/* ===== 分类导航 ===== */
.page-home .home-cats {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}
.page-home .home-cats::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 34, 64, 0.6), transparent);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.page-home .home-cats > .container {
  position: relative;
  z-index: 1;
}
.page-home .home-cats h2 {
  margin: 0.5rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  color: var(--text-strong);
  max-width: 18em;
}
.page-home .home-cats__intro {
  max-width: 52em;
  color: var(--text-dim);
  line-height: 1.7;
}
.page-home .guide-steps {
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.page-home .guide-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: rgba(17, 34, 64, 0.7);
  border-radius: var(--radius);
  font-weight: 700;
}
.page-home .guide-steps li span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--text-strong);
  font-size: 0.8rem;
}
.page-home .cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.page-home .cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid rgba(168, 178, 209, 0.18);
  border-top: 2px solid rgba(0, 255, 163, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.page-home .cat-card:nth-child(even) {
  border-top-color: var(--accent-2);
}
.page-home .cat-card:nth-child(3n) .cat-card__num {
  color: var(--accent-3);
}
.page-home .cat-card__num {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  opacity: 0.7;
}
.page-home .cat-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.6rem;
  color: var(--accent-1);
}
.page-home .cat-card:nth-child(even) .cat-card__icon {
  color: var(--accent-2);
}
.page-home .cat-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: var(--text-strong);
}
.page-home .cat-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.page-home .cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-1);
  box-shadow: var(--page-glow);
}
.page-home .cat-card:hover .cat-card__icon {
  color: var(--accent-1);
  filter: drop-shadow(0 0 8px rgba(0, 255, 163, 0.7));
}
.page-home .home-cats__footnote {
  margin: 1.5rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent-2);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ===== 版本与性能 ===== */
.page-home .home-version {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
.page-home .home-version::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -5%;
  right: 25%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(123, 47, 255, 0.25), rgba(17, 34, 64, 0.9) 60%);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.page-home .version-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}
.page-home .version-content h2 {
  margin: 0.5rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  color: var(--text-strong);
  max-width: 17em;
}
.page-home .version-content__lead {
  margin: 0;
  max-width: 46em;
  color: var(--text-dim);
  line-height: 1.8;
}
.page-home .version-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.page-home .version-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
}
.page-home .version-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55em;
  height: 0.55em;
  background: var(--accent-1);
  transform: rotate(45deg);
}
.page-home .speed-meter {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(10, 25, 47, 0.75);
  border: 1px solid rgba(0, 255, 163, 0.3);
}
.page-home .speed-meter__label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.page-home .speed-meter__label strong {
  color: var(--accent-1);
  font-size: 1rem;
}
.page-home .speed-meter__track {
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(168, 178, 209, 0.2);
  overflow: hidden;
}
.page-home .speed-meter__fill {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  animation: page-speed-pulse 2s ease-in-out infinite alternate;
}
@keyframes page-speed-pulse {
  from {
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.6);
  }
  to {
    box-shadow: 0 0 24px rgba(123, 47, 255, 0.9);
  }
}
.page-home .version-content__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.page-home .version-visual {
  position: relative;
  border-radius: var(--radius);
}
.page-home .version-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 163, 0.28);
}
.page-home .version-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 30px rgba(0, 255, 163, 0.1);
  pointer-events: none;
}

/* ===== 订阅与记录 ===== */
.page-home .home-subscribe {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}
.page-home .home-subscribe::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -5%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(123, 47, 255, 0.3), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.page-home .home-subscribe > .container {
  position: relative;
  z-index: 1;
}
.page-home .home-subscribe h2 {
  margin: 0.5rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  color: var(--text-strong);
  max-width: 20em;
}
.page-home .home-subscribe__intro {
  max-width: 54em;
  color: var(--text-dim);
  line-height: 1.8;
}
.page-home .subscribe-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
.page-home .subscribe-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.page-home .subscribe-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid rgba(255, 215, 0, 0.18);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.page-home .subscribe-features li:hover {
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateX(4px);
}
.page-home .subscribe-features__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--accent-3);
}
.page-home .subscribe-features strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-strong);
}
.page-home .subscribe-features span {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}
.page-home .subscribe-visual {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.page-home .subscribe-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 215, 0, 0.25);
}

/* ===== 空间展示 ===== */
.page-home .home-space {
  position: relative;
  padding: 4rem 0 5rem;
}
.page-home .space-layout {
  display: grid;
  gap: 2rem;
}
.page-home .space-copy h2 {
  margin: 0.5rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  color: var(--text-strong);
}
.page-home .space-copy p {
  max-width: 50em;
  color: var(--text-dim);
  line-height: 1.8;
}
.page-home .space-copy a {
  color: var(--accent-1);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 163, 0.4);
}
.page-home .space-figure {
  margin: 0;
}
.page-home .space-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.page-home .space-figure figcaption {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ===== 桌面布局 ===== */
@media (min-width: 768px) {
  .page-home .home-hero {
    padding: 3.5rem 0 4rem;
  }
  .page-home .hero-collage {
    grid-template-columns: repeat(12, 1fr);
  }
  .page-home .hero-brand {
    grid-column: span 7;
    padding: 2.5rem;
  }
  .page-home .hero-visual {
    grid-column: span 5;
  }
  .page-home .hero-note--version {
    grid-column: span 4;
    align-content: start;
  }
  .page-home .hero-note--guide {
    grid-column: span 8;
    align-content: start;
  }
  .page-home .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .guide-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .home-version {
    padding: 6rem 0;
  }
  .page-home .version-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .page-home .home-subscribe {
    padding: 5rem 0;
  }
  .page-home .subscribe-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .page-home .home-space {
    padding: 5rem 0 6rem;
  }
  .page-home .space-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .page-home .hero-brand h1 {
    font-size: 3.5rem;
  }
  .page-home .cat-grid {
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .speed-meter__fill {
    animation: none;
  }
}
