.page-home {
  --home-band: clamp(2.8rem, 6.5vw, 5rem);
  --home-radius: var(--radius-xl);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2rem, 5vw, 3.6rem) clamp(3rem, 7vw, 5.4rem);
  background:
    radial-gradient(58% 52% at 88% 6%, rgba(53, 224, 208, 0.14), transparent 72%),
    radial-gradient(52% 46% at 6% 92%, rgba(216, 169, 74, 0.13), transparent 74%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
}
.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(135deg, rgba(245, 241, 230, 0.028) 0 1px, transparent 1px 13px);
  pointer-events: none;
}
.page-home .hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
.page-home .hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: none;
}
.page-home .hero__kicker-num {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink-950);
  font-size: 0.7rem;
  letter-spacing: 0;
}
.page-home .hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.3rem, 8.6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: 0.045em;
  font-weight: 800;
  color: var(--text);
}
.page-home .hero__title-hl {
  position: relative;
  color: var(--gold-soft);
  padding-inline: 0.08em;
}
.page-home .hero__title-hl::after {
  content: "";
  position: absolute;
  left: 0.06em;
  right: 0.06em;
  bottom: 0.06em;
  height: 0.16em;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  opacity: 0.55;
  border-radius: 999px;
}
.page-home .hero__lede {
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.2vw, 1.06rem);
  line-height: 1.85;
  margin: 0 0 1.6rem;
}
.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.9rem;
}
.page-home .hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(46, 90, 78, 0.8);
}
.page-home .hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.page-home .hero__facts strong {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.page-home .hero__facts span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.page-home .hero__side {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.page-home .cmd {
  padding: 1.3rem 1.2rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(53, 224, 208, 0.22);
}
.page-home .cmd__status {
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}
.page-home .cmd__ver {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: clamp(2.3rem, 8vw, 3rem);
  line-height: 1;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}
.page-home .cmd__ver span {
  display: inline-block;
  margin-left: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  vertical-align: 0.55em;
}
.page-home .cmd__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.page-home .cmd__list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 0.8rem;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(46, 90, 78, 0.7);
  font-size: 0.84rem;
}
.page-home .cmd__list span {
  color: var(--muted);
  letter-spacing: 0.06em;
}
.page-home .cmd__list b {
  color: var(--text);
  font-weight: 500;
}
.page-home .cmd__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.page-home .cmd__jump a {
  padding: 0.34rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 224, 208, 0.35);
  color: var(--cyan);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.page-home .cmd__jump a:hover,
.page-home .cmd__jump a:focus-visible {
  background: rgba(53, 224, 208, 0.14);
  transform: translateY(-2px);
}
.page-home .hero__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--home-radius);
  border: 1px solid rgba(46, 90, 78, 0.85);
}
.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page-home .hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7, 28, 24, 0) 42%, rgba(7, 28, 24, 0.66));
  pointer-events: none;
}

/* ---------- 通用章节 ---------- */
.page-home .band {
  padding-block: var(--home-band);
  border-top: 1px solid rgba(46, 90, 78, 0.45);
}
.page-home .band--narrow {
  background: linear-gradient(180deg, rgba(12, 42, 36, 0.55), rgba(7, 28, 24, 0));
}
.page-home .band__head {
  max-width: 46rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}
.page-home .band__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 4.4vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: 0.035em;
  color: var(--text);
  font-weight: 700;
}
.page-home .band__lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}
.page-home .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.page-home .kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding-inline: 0.3rem;
  border-radius: 5px;
  border: 1px solid rgba(216, 169, 74, 0.55);
  color: var(--gold-soft);
  font-size: 0.68rem;
  letter-spacing: 0;
}

/* ---------- 换机找回时间轴 ---------- */
.page-home .track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .track__step {
  position: relative;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(18, 58, 49, 0.62);
  border: 1px solid rgba(46, 90, 78, 0.72);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-home .track__step:hover {
  border-color: rgba(53, 224, 208, 0.5);
  transform: translateY(-3px);
}
.page-home .track__num {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--ink-800);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.page-home .track__step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  color: var(--text);
}
.page-home .track__step p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
}
.page-home .track__link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 208, 0.45);
  padding-bottom: 1px;
}
.page-home .track__link:hover,
.page-home .track__link:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}
.page-home .recover__figure {
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
}
.page-home .recover__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--home-radius);
  border: 1px solid rgba(46, 90, 78, 0.7);
}
.page-home .recover__figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ---------- 版本对照 ---------- */
.page-home .compare__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 4vw, 2.4rem);
}
.page-home .compare__panel {
  min-width: 0;
}
.page-home .ctable {
  margin-top: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  color: var(--ink-800);
}
.page-home .crow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.9rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid rgba(12, 42, 36, 0.14);
}
.page-home .crow:last-child {
  border-bottom: 0;
}
.page-home .crow--head {
  display: none;
}
.page-home .crow__k {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--ink-800);
}
.page-home .crow__v {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #2c4a41;
}
.page-home .compare__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}
.page-home .compare__side {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}
.page-home .compare__note {
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 169, 74, 0.3);
}
.page-home .compare__note .status {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.page-home .compare__note h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.03em;
}
.page-home .compare__note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
}
.page-home .compare__figure {
  margin: 0;
}
.page-home .compare__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 520;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 90, 78, 0.7);
}

/* ---------- 三维索引 ---------- */
.page-home .lookup__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.page-home .dim {
  position: relative;
  padding: 1.3rem 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(18, 58, 49, 0.78), rgba(7, 28, 24, 0.55));
  border: 1px solid rgba(46, 90, 78, 0.7);
  border-top: 2px solid var(--gold);
}
.page-home .dim:nth-child(2) {
  border-top-color: var(--cyan);
}
.page-home .dim:nth-child(3) {
  border-top-color: var(--coral);
}
.page-home .dim__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.6rem;
}
.page-home .dim h3 {
  margin: 0 0 0.45rem;
  font-size: 1.04rem;
  color: var(--text);
  letter-spacing: 0.03em;
}
.page-home .dim p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
}
.page-home .dim__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.page-home .dim__list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.page-home .dim__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 2px;
  background: var(--cyan);
}
.page-home .lookup__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 169, 74, 0.32);
  background: rgba(18, 58, 49, 0.5);
}
.page-home .lookup__foot p {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 每周三更新 ---------- */
.page-home .weekly__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: start;
}
.page-home .weekly__main {
  min-width: 0;
}
.page-home .weekly__list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.page-home .witem {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(46, 90, 78, 0.65);
}
.page-home .witem__when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.page-home .witem h3 {
  margin: 0 0 0.28rem;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.03em;
}
.page-home .witem p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--muted);
}
.page-home .weekly__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.3rem;
}
.page-home .weekly__tags .tag {
  text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.page-home .weekly__tags .tag:hover,
.page-home .weekly__tags .tag:focus-visible {
  background: rgba(53, 224, 208, 0.16);
  transform: translateY(-2px);
}
.page-home .weekly__more {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.page-home .weekly__more a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 208, 0.45);
}
.page-home .weekly__figure {
  margin: 0;
}
.page-home .weekly__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--home-radius);
  border: 1px solid rgba(216, 169, 74, 0.35);
}
.page-home .weekly__figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 帮助中心 ---------- */
.page-home .help__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.page-home .help__card {
  display: block;
  padding: 1.1rem 1.1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(12, 42, 36, 0.72);
  border: 1px solid rgba(46, 90, 78, 0.7);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.page-home .help__card:hover,
.page-home .help__card:focus-visible {
  border-color: rgba(53, 224, 208, 0.55);
  background: rgba(18, 58, 49, 0.85);
  transform: translateY(-3px);
}
.page-home .help__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--coral);
  margin-bottom: 0.5rem;
}
.page-home .help__card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: 0.04em;
}
.page-home .help__card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--muted);
}
.page-home .help__side {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
}
.page-home .help__prep {
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(53, 224, 208, 0.24);
}
.page-home .help__prep h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.03em;
}
.page-home .help__prep ul {
  margin: 0 0 0.8rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.page-home .help__prep li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text);
}
.page-home .help__prep li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
}
.page-home .help__prep p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.8;
  color: var(--muted);
}
.page-home .help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .witem {
    grid-template-columns: 5.5rem 1fr;
    gap: 0.9rem;
    align-items: start;
  }
  .page-home .help__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .page-home .track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
    padding-top: 2.9rem;
  }
  .page-home .track::before {
    content: "";
    position: absolute;
    top: 1.15rem;
    left: 4%;
    right: 4%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--cyan) 62%, var(--coral));
    opacity: 0.6;
  }
  .page-home .track__step {
    padding-top: 1.35rem;
  }
  .page-home .track__num {
    position: absolute;
    top: -2.9rem;
    left: 1.1rem;
    margin-bottom: 0;
  }
  .page-home .crow {
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 0.4rem 1rem;
  }
  .page-home .crow--head {
    display: grid;
    padding: 0.6rem 0;
  }
  .page-home .crow--head .crow__k,
  .page-home .crow--head .crow__v {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: #57726a;
    font-weight: 500;
  }
  .page-home .crow__k {
    grid-column: auto;
    font-size: 0.88rem;
  }
  .page-home .lookup__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: 1.62fr 0.95fr;
    align-items: start;
  }
  .page-home .hero__side {
    position: sticky;
    top: calc(var(--header-offset) + 1rem);
  }
  .page-home .compare__grid {
    grid-template-columns: 1.22fr 0.78fr;
    align-items: start;
  }
  .page-home .weekly__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
  .page-home .help__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-home .help__side {
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
    margin-top: 1.5rem;
  }
  .page-home .help__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .track__step,
  .page-home .help__card,
  .page-home .cmd__jump a,
  .page-home .weekly__tags .tag {
    transition: none;
  }
  .page-home .track__step:hover,
  .page-home .help__card:hover,
  .page-home .cmd__jump a:hover,
  .page-home .weekly__tags .tag:hover {
    transform: none;
  }
}
