.page-home {
  --home-grad-title: linear-gradient(96deg, #8E86FF 0%, var(--magenta) 52%, var(--cyan) 100%);
  position: relative;
  display: block;
  background: var(--space);
  color: var(--stardust);
  overflow-x: clip;
}

.page-home .home-h2 {
  margin: 0.55rem 0 0;
  max-width: 24ch;
  font-size: clamp(1.45rem, 3.4vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: 0.03em;
  font-weight: 800;
  color: var(--stardust);
}

.page-home .home-h3 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.02rem, 1.9vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--stardust);
}

.page-home .home-sub {
  margin: 0.85rem 0 0;
  max-width: 58ch;
  color: var(--mist);
  line-height: 1.85;
}

.page-home .prose {
  color: var(--mist);
  line-height: 1.85;
}

.page-home .section__head {
  margin-bottom: 1.7rem;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(1.5rem, 4vw, 2.4rem) clamp(2.6rem, 6vw, 4.5rem);
  background:
    radial-gradient(115% 85% at 88% -12%, rgba(91, 75, 255, 0.38) 0%, rgba(8, 16, 42, 0) 58%),
    radial-gradient(95% 80% at -6% 106%, rgba(192, 68, 255, 0.26) 0%, rgba(8, 16, 42, 0) 62%),
    var(--space);
  border-bottom: 1px solid var(--hairline);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(154, 166, 212, 0.07) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(154, 166, 212, 0.07) 0 1px, transparent 1px 92px);
  -webkit-mask-image: radial-gradient(circle at 72% 34%, #000 0%, rgba(0, 0, 0, 0.32) 46%, transparent 74%);
  mask-image: radial-gradient(circle at 72% 34%, #000 0%, rgba(0, 0, 0, 0.32) 46%, transparent 74%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  z-index: 0;
  width: min(760px, 76vw);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background: conic-gradient(
    from 210deg,
    rgba(91, 75, 255, 0.46),
    rgba(192, 68, 255, 0.34) 32%,
    rgba(56, 232, 223, 0.12) 56%,
    rgba(8, 16, 42, 0) 74%
  );
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  filter: blur(2px);
  opacity: 0.85;
}

.page-home .home-hero > .shell {
  position: relative;
  z-index: 1;
}

.page-home .breadcrumbs {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .home-hero__frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.9rem;
}

.page-home .home-rail__label {
  margin: 0 0 0.6rem;
}

.page-home .home-rail__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-rail__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.page-home .home-rail__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(154, 166, 212, 0.65);
  transition: color 0.2s ease;
}

.page-home .home-rail__link:hover,
.page-home .home-rail__link:focus-visible {
  color: var(--stardust);
  border-color: var(--cyan);
  outline: none;
  background: rgba(56, 232, 223, 0.08);
}

.page-home .home-rail__link.is-active {
  color: var(--stardust);
  border-color: var(--cyan);
  background: rgba(56, 232, 223, 0.1);
}

.page-home .home-hero__stage {
  position: relative;
  min-width: 0;
}

.page-home .home-hero__title {
  margin: 0.7rem 0 0;
  max-width: 20ch;
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  line-height: 1.17;
  letter-spacing: 0.015em;
  font-weight: 800;
  color: var(--stardust);
  text-wrap: balance;
}

.page-home .home-hero__title em {
  font-style: normal;
  background: var(--home-grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-home .home-hero__lead {
  margin: 1.15rem 0 0;
  max-width: 52ch;
  color: var(--mist);
  font-size: clamp(0.94rem, 1.15vw, 1.02rem);
  line-height: 1.9;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.page-home .home-hero__visual {
  position: relative;
  margin: 2rem 0 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  overflow: hidden;
  background: var(--space-2);
  box-shadow: 0 40px 90px -50px rgba(110, 29, 118, 0.95);
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.9;
}

.page-home .home-hero__float {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.55rem;
  margin: -2.6rem 0.9rem 0 clamp(0.6rem, 3vw, 2.6rem);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(192, 68, 255, 0.38);
  border-radius: 3px;
  background: linear-gradient(150deg, rgba(17, 29, 69, 0.97), rgba(8, 16, 42, 0.95));
  box-shadow: 0 30px 60px -34px rgba(110, 29, 118, 1);
}

.page-home .home-hero__float p {
  margin: 0;
  color: var(--mist);
  font-size: 0.86rem;
  line-height: 1.75;
}

/* ---------- 章节通用 ---------- */
.page-home .home-section {
  position: relative;
  padding-block: clamp(2.6rem, 6vw, 4.4rem);
  border-bottom: 1px solid var(--hairline);
}

.page-home .home-section--alt {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(91, 75, 255, 0.16) 0%, rgba(8, 16, 42, 0) 62%),
    var(--space-2);
}

/* ---------- 双栏总览 ---------- */
.page-home .home-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}

.page-home .home-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.page-home .home-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--mist);
  line-height: 1.78;
}

.page-home .home-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 232, 223, 0.8);
}

/* ---------- 步骤轨道 ---------- */
.page-home .home-steprail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem 0.5rem;
  margin: 1.9rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px dashed var(--hairline-strong);
  list-style: none;
}

.page-home .home-tick {
  position: relative;
  padding-top: 0.7rem;
  border-top: 2px solid rgba(38, 54, 95, 0.95);
  transition: border-color 0.2s ease;
}

.page-home .home-tick__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: rgba(154, 166, 212, 0.72);
  transition: color 0.2s ease;
}

.page-home .home-tick__name {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.64rem;
  line-height: 1.35;
  color: rgba(154, 166, 212, 0.5);
  transition: color 0.2s ease;
}

.page-home .home-tick:hover {
  border-top-color: var(--cyan);
}

.page-home .home-tick:hover .home-tick__no {
  color: var(--cyan);
}

.page-home .home-tick:hover .home-tick__name {
  color: var(--stardust);
}

.page-home .home-tick:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-top-color: var(--cyan);
}

.page-home .home-tick--key {
  border-top-color: var(--gold);
}

.page-home .home-tick--key .home-tick__no {
  color: var(--gold);
}

.page-home .home-tick--key .home-tick__name {
  color: rgba(244, 198, 106, 0.85);
}

.page-home .home-stepnote {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  margin-top: 1.9rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--hairline-strong);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  background: linear-gradient(100deg, rgba(17, 29, 69, 0.9), rgba(8, 16, 42, 0.55));
}

.page-home .home-stepnote p {
  margin: 0;
  max-width: 62ch;
  color: var(--mist);
  line-height: 1.8;
}

.page-home .home-stepnote .btn {
  margin-top: 0.15rem;
}

/* ---------- 左右分区 ---------- */
.page-home .home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

.page-home .home-figure {
  margin: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(91, 75, 255, 0.22), rgba(192, 68, 255, 0.14) 55%, rgba(56, 232, 223, 0.08)),
    var(--space);
}

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

.page-home .home-figure figcaption {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-home .home-split__copy .btn,
.page-home .home-collect__body .btn {
  margin-top: 1.3rem;
}

/* ---------- IOS 星块 ---------- */
.page-home .home-ios {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border: 1px solid rgba(192, 68, 255, 0.34);
  border-radius: 3px;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(91, 75, 255, 0.32) 0%, rgba(8, 16, 42, 0) 62%),
    radial-gradient(120% 130% at 100% 100%, rgba(192, 68, 255, 0.26) 0%, rgba(8, 16, 42, 0) 64%),
    var(--space-2);
}

.page-home .home-ios::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -46%;
  width: min(460px, 62vw);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(56, 232, 223, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 60px -18px rgba(56, 232, 223, 0.5);
  pointer-events: none;
}

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

.page-home .home-ios__media {
  margin: 0;
  border: 1px solid rgba(56, 232, 223, 0.28);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(8, 16, 42, 0.6);
}

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

.page-home .home-ios__copy .btn {
  margin-top: 1.3rem;
}

/* ---------- 收藏预览 ---------- */
.page-home .home-collect {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

.page-home .home-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-badge {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.8rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: linear-gradient(160deg, rgba(17, 29, 69, 0.88), rgba(8, 16, 42, 0.62));
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mist);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-home .home-badge__coord {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(154, 166, 212, 0.55);
}

.page-home .home-badge:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--stardust);
  box-shadow: 0 0 0 1px rgba(56, 232, 223, 0.3), 0 0 30px -8px rgba(56, 232, 223, 0.6);
}

.page-home .home-badge:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  color: var(--stardust);
}

.page-home .home-collect__note {
  margin: 1.15rem 0 0;
  color: var(--mist);
  line-height: 1.8;
  font-size: 0.9rem;
}

/* ---------- 本季更新 ---------- */
.page-home .home-season {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.page-home .home-fold {
  padding: 0.9rem 0;
  border-top: 1px solid var(--hairline);
}

.page-home .home-fold:last-of-type {
  border-bottom: 1px solid var(--hairline);
}

.page-home .home-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--stardust);
  line-height: 1.6;
}

.page-home .home-fold summary::-webkit-details-marker {
  display: none;
}

.page-home .home-fold summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--cyan);
  transition: transform 0.2s ease;
}

.page-home .home-fold[open] summary::after {
  content: "−";
}

.page-home .home-fold summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-home .home-fold p {
  margin: 0.8rem 0 0;
  color: var(--mist);
  line-height: 1.85;
  max-width: 66ch;
}

.page-home .home-contact-card {
  padding: 1.3rem 1.25rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  background: linear-gradient(160deg, rgba(17, 29, 69, 0.92), rgba(8, 16, 42, 0.5));
}

.page-home .home-contact {
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.95rem;
}

.page-home .home-contact__row {
  display: grid;
  gap: 0.15rem;
}

.page-home .home-contact__key {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: rgba(154, 166, 212, 0.62);
}

.page-home .home-contact__val {
  margin: 0;
  color: var(--stardust);
  line-height: 1.7;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.page-home .home-contact__val a {
  color: var(--stardust);
  text-decoration: underline;
  text-decoration-color: rgba(56, 232, 223, 0.5);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.page-home .home-contact__val a:hover,
.page-home .home-contact__val a:focus-visible {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
  outline: none;
}

.page-home .home-contact-card .btn {
  margin-top: 1.3rem;
}

/* ---------- 响应式 ---------- */
@media (min-width: 560px) {
  .page-home .home-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 700px) {
  .page-home .home-steprail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .page-home .home-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .page-home .home-duo__col {
    padding: 0 2.6rem 0 0;
  }

  .page-home .home-duo__col + .home-duo__col {
    padding: 0 0 0 2.6rem;
    border-left: 1px solid var(--hairline);
  }
}

@media (min-width: 880px) {
  .page-home .home-ios__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.6rem;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-home .home-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: center;
  }

  .page-home .home-season {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__frame {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 3.4rem;
    align-items: start;
  }

  .page-home .home-rail {
    position: sticky;
    top: 5.5rem;
    padding-left: 0;
    border-left: 1px solid var(--hairline-strong);
  }

  .page-home .home-rail__list {
    display: grid;
    flex-wrap: nowrap;
    gap: 0.1rem;
  }

  .page-home .home-rail__link {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    margin-left: -1.1rem;
    padding: 0.5rem 0.5rem 0.5rem 1.1rem;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    background: none;
    font-size: 0.84rem;
  }

  .page-home .home-rail__link:hover,
  .page-home .home-rail__link:focus-visible {
    background: rgba(56, 232, 223, 0.06);
  }

  .page-home .home-rail__link.is-active {
    border-left-color: var(--cyan);
    background: linear-gradient(90deg, rgba(56, 232, 223, 0.13), rgba(56, 232, 223, 0) 72%);
  }

  .page-home .home-rail__link.is-active .home-rail__num {
    color: var(--gold);
  }

  .page-home .home-collect {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    gap: 2.8rem;
    align-items: start;
  }

  .page-home .home-hero__float {
    margin-right: 2rem;
  }
}

@media (min-width: 1040px) {
  .page-home .home-steprail {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.6rem 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-rail__link,
  .page-home .home-badge,
  .page-home .home-tick,
  .page-home .home-tick__no,
  .page-home .home-tick__name,
  .page-home .home-contact__val a {
    transition: none;
  }

  .page-home .home-badge:hover {
    transform: none;
  }
}
