.page-home {
  --home-pad: clamp(34px, 6vw, 76px);
  --home-gap: clamp(22px, 4vw, 40px);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: var(--home-pad) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 70% at 88% 4%, rgba(63, 216, 224, 0.12), transparent 58%),
    radial-gradient(70% 60% at 4% 96%, rgba(242, 180, 65, 0.07), transparent 60%);
}
.page-home .hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: center;
}
.page-home .hero__main {
  min-width: 0;
}
.page-home .hero__title {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--white);
  text-wrap: balance;
}
.page-home .hero__title mark {
  background: none;
  color: var(--cyan);
}
.page-home .hero__lede {
  max-width: 34em;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}
.page-home .hero__visual {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-700);
  box-shadow: var(--shadow-2);
}
.page-home .hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(63, 216, 224, 0.14);
}
.page-home .hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (min-width: 920px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

/* ---------- 入口块 ---------- */
.page-home .paths {
  display: grid;
  gap: 10px;
  max-width: 560px;
}
.page-home .path {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 34, 55, 0.92), rgba(11, 22, 38, 0.92));
  box-shadow: var(--shadow-1);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.page-home .path:hover,
.page-home .path:focus-visible {
  border-color: var(--cyan-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.page-home .path__no {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  border-radius: var(--radius);
  padding: 6px 9px;
}
.page-home .path__label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.page-home .path__hint {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}
.page-home .path__clicks {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  white-space: nowrap;
}
@media (max-width: 420px) {
  .page-home .path {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .page-home .path__clicks {
    grid-column: 2;
  }
}

/* ---------- 主栏 + 侧栏 ---------- */
.page-home .layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  padding-top: var(--home-pad);
  padding-bottom: var(--home-pad);
}
.page-home .layout__main {
  min-width: 0;
}
.page-home .layout__side {
  min-width: 0;
}
@media (min-width: 1000px) {
  .page-home .layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
  .page-home .layout__side {
    position: sticky;
    top: 92px;
  }
}

/* ---------- 章节目录 ---------- */
.page-home .toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 34, 55, 0.7);
  padding: 16px;
}
.page-home .toc__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.page-home .toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.page-home .toc__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.page-home .toc__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--line);
  transition: color 0.16s ease;
}
.page-home .toc__link:hover {
  color: var(--white);
  background: rgba(63, 216, 224, 0.06);
}
.page-home .toc__link.is-active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: var(--cyan-soft);
}
.page-home .toc__link.is-active .toc__no {
  color: var(--gold);
}

/* ---------- 章节通用 ---------- */
.page-home .section {
  min-width: 0;
}
.page-home .section + .section {
  margin-top: clamp(38px, 6vw, 76px);
}
.page-home .section__head {
  margin-bottom: 22px;
}

/* ---------- 时间轴 ---------- */
.page-home .timeline {
  list-style: none;
  margin: 0 0 24px;
  padding: 0 0 0 22px;
  position: relative;
}
.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan-line), var(--line) 72%);
}
.page-home .timeline__item {
  position: relative;
  padding-bottom: 24px;
}
.page-home .timeline__item:last-child {
  padding-bottom: 0;
}
.page-home .timeline__dot {
  position: absolute;
  left: -22px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--cyan-line);
  background: var(--ink-900);
  box-shadow: 0 0 0 4px rgba(63, 216, 224, 0.06);
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}
.page-home .timeline__item:hover .timeline__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(63, 216, 224, 0.16);
}
.page-home .timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.page-home .timeline__when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.page-home .timeline__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--white);
}
.page-home .timeline__text {
  margin: 0;
  max-width: 38em;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--muted);
}
.page-home .timeline__thumb {
  margin-top: 14px;
  max-width: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-700);
}
.page-home .timeline__thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 卡关索引 ---------- */
.page-home .stuck__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
}
.page-home .stuck__intro .media-frame {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .stuck__intro .media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.page-home .facts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}
.page-home .facts li:first-child {
  padding-top: 0;
}
.page-home .facts li::before {
  content: "▸";
  font-size: 11px;
  color: var(--gold);
}
@media (min-width: 720px) {
  .page-home .stuck__intro {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 30px;
  }
}

.page-home .tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.page-home .tagcell {
  position: relative;
  display: block;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(91, 75, 158, 0.17);
  text-decoration: none;
  color: var(--white);
  overflow: hidden;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
.page-home .tagcell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(63, 216, 224, 0.16) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.26s ease;
}
.page-home .tagcell:hover,
.page-home .tagcell:focus-visible {
  border-color: var(--cyan-line);
  transform: translateY(-2px);
}
.page-home .tagcell:hover::after {
  opacity: 1;
}
.page-home .tagcell__name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.page-home .tagcell__desc {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- 适配 ---------- */
.page-home .devices {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.page-home .devices__visual {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-700);
}
.page-home .devices__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .devices__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.page-home .devicecol {
  min-width: 0;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 34, 55, 0.72);
}
.page-home .devicecol--app {
  border-color: rgba(110, 36, 64, 0.7);
  background: linear-gradient(180deg, rgba(110, 36, 64, 0.22), rgba(18, 34, 55, 0.72));
}
.page-home .devicecol__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.page-home .devicecol__meta {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.page-home .devicecol ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}
.page-home .devicecol li + li {
  margin-top: 6px;
}
@media (min-width: 640px) {
  .page-home .devices__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .cmd {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(11, 22, 38, 0.88);
  padding: 16px 18px;
}
.page-home .cmd__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.page-home .cmd__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid rgba(36, 56, 79, 0.62);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--white);
}
.page-home .cmd__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.page-home .cmd__row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.page-home .cmd__row b {
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- 版本演进 ---------- */
.page-home .versions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.page-home .vstep {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 34, 55, 0.7);
}
.page-home .vstep__no {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  border-radius: var(--radius);
}
.page-home .vstep__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.page-home .vstep__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.74;
  color: var(--muted);
}
@media (min-width: 760px) {
  .page-home .versions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
}
.page-home .compare__row {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.page-home .compare__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.page-home .compare__path {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--white);
  overflow-wrap: anywhere;
}
.page-home .compare__path--now {
  color: var(--cyan);
}
.page-home .compare__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
@media (min-width: 820px) {
  .page-home .compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

/* ---------- 支持通道 ---------- */
.page-home .support {
  padding: var(--home-pad) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(72% 120% at 50% 0%, rgba(63, 216, 224, 0.06), transparent 62%),
    var(--ink-850);
}
.page-home .support__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.page-home .sup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 34, 55, 0.66);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.page-home .sup:hover,
.page-home .sup:focus-visible {
  border-color: var(--cyan-line);
  transform: translateY(-2px);
}
.page-home .sup__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.page-home .sup__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.page-home .sup__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.74;
  color: var(--muted);
}
.page-home .sup__more {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}
@media (min-width: 780px) {
  .page-home .support__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .path,
  .page-home .tagcell,
  .page-home .sup,
  .page-home .timeline__dot,
  .page-home .toc__link {
    transition: none;
  }
  .page-home .path:hover,
  .page-home .path:focus-visible,
  .page-home .tagcell:hover,
  .page-home .tagcell:focus-visible,
  .page-home .sup:hover,
  .page-home .sup:focus-visible {
    transform: none;
  }
}
</main>
