.page-home {
  --home-pad: clamp(1.25rem, 4vw, 4.5rem);
  --home-gap: clamp(1rem, 2vw, 1.75rem);
  --home-deep: #0F7A6E;
  display: block;
}

/* ---------- 顶部上下文条 ---------- */
.page-home .home-context {
  border-bottom: 1px solid var(--line-dark-soft);
}
.page-home .home-context__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0;
}
.page-home .home-context__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(40, 224, 200, 0.14);
  flex: none;
}
.page-home .home-context__text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--slate);
}

/* ---------- 首屏分屏 ---------- */
.page-home .home-hero {
  position: relative;
  border-bottom: 1px solid var(--line-dark-soft);
}
.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .page-home .home-hero__grid {
    grid-template-columns: 38fr 62fr;
  }
}

.page-home .home-hero__narrative {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.6rem, 3vw, 2.5rem);
  align-content: center;
  padding: clamp(2.25rem, 5vw, 4.5rem) var(--home-pad) clamp(2rem, 4vw, 3.5rem);
}
.page-home .home-hero__narrative::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 29, 51, 0.52) 0%, rgba(11, 29, 51, 0.86) 58%, var(--ink) 100%);
}
.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.page-home .home-hero__narrative-body,
.page-home .version-rail {
  position: relative;
  z-index: 1;
}
.page-home .home-hero__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
}
.page-home .home-hero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.1rem, 5.2vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--cream);
  max-width: 11em;
}
.page-home .home-hero__lede {
  margin: 1.2rem 0 0;
  max-width: 30em;
  font-size: var(--fs-base);
  line-height: 1.78;
  color: var(--cream);
  opacity: 0.84;
}
.page-home .home-hero__actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (min-width: 1000px) {
  .page-home .home-hero__narrative {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: calc(var(--home-pad) + 2vw);
  }
}

/* 竖向版本刻度 */
.page-home .version-rail {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
}
@media (min-width: 1000px) {
  .page-home .version-rail {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-self: stretch;
    border-top: 0;
    border-left: 1px solid var(--line-dark);
    padding: 1rem 0 1rem 0.9rem;
    gap: 1.15rem;
  }
}
.page-home .version-rail__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.page-home .version-rail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-soft);
  opacity: 0.5;
  flex: none;
}
.page-home .version-rail__dot.is-live {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(242, 180, 65, 0.16);
  animation: home-pulse 2.4s var(--ease) infinite;
}
@keyframes home-pulse {
  0%, 100% {
    opacity: 0.45;
    box-shadow: 0 0 0 3px rgba(242, 180, 65, 0.1);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 7px rgba(242, 180, 65, 0.22);
  }
}
.page-home .version-rail__label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--cream);
}
.page-home .version-rail__note {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--slate);
}

/* 右侧卡片流 */
.page-home .home-hero__index {
  background: var(--paper);
  color: var(--ink-text);
  padding: clamp(1.75rem, 4vw, 3.25rem) var(--home-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}
.page-home .home-hero__index-head {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.008em;
  color: var(--ink-text);
}
.page-home .home-hero__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.page-home .archive-card__link {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.05rem 1.15rem;
  background: var(--cream);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.page-home .archive-card__link:hover,
.page-home .archive-card__link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 1px 0 rgba(20, 32, 46, 0.05), 0 20px 34px -24px rgba(11, 29, 51, 0.6);
  outline: none;
}
.page-home .archive-card__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: var(--ink);
  border-radius: var(--radius);
  padding: 0.3rem 0.42rem;
  line-height: 1;
}
.page-home .archive-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  min-width: 0;
}
.page-home .archive-card__title {
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-text);
}
.page-home .archive-card__desc {
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: rgba(20, 32, 46, 0.74);
}
.page-home .archive-card__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  color: rgba(20, 32, 46, 0.52);
}

/* ---------- 通用章节 ---------- */
.page-home .section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.page-home .section__head {
  display: grid;
  gap: 0.55rem;
  max-width: 64ch;
  margin: 0 0 clamp(1.6rem, 3vw, 2.5rem);
}
.page-home .section__num {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.page-home .section__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.page-home .section__note {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.78;
  color: rgba(253, 251, 247, 0.72);
}

/* ---------- 按情况选入口 ---------- */
.page-home .home-paths {
  background: var(--paper);
  color: var(--ink-text);
}
.page-home .home-paths .section__num {
  color: var(--home-deep);
}
.page-home .home-paths .section__title {
  color: var(--ink-text);
}
.page-home .home-paths .section__note {
  color: rgba(20, 32, 46, 0.72);
}
.page-home .path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) {
  .page-home .path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .page-home .path-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.page-home .path-item {
  background: var(--paper-3);
  padding: 1.5rem 1.3rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.page-home .path-item__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.16em;
  color: var(--home-deep);
}
.page-home .path-item__title {
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-text);
}
.page-home .path-item__desc {
  margin: 0;
  flex: 1;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: rgba(20, 32, 46, 0.72);
}
.page-home .path-item__link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--ink-text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(20, 32, 46, 0.28);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.page-home .path-item__link:hover,
.page-home .path-item__link:focus-visible {
  color: var(--home-deep);
  border-color: var(--home-deep);
  outline: none;
}

/* ---------- 版本轨迹带 ---------- */
.page-home .home-trace__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}
@media (min-width: 980px) {
  .page-home .home-trace__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}
.page-home .home-trace__figure {
  margin: 0;
}
.page-home .home-trace__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.page-home .home-trace__body {
  display: flow-root;
}
.page-home .trace-axis {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  position: relative;
  display: flex;
  gap: 0.6rem;
}
.page-home .trace-axis::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1.45rem;
  height: 1px;
  background: var(--line-dark);
}
.page-home .trace-axis__node {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.page-home .trace-axis__dot {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--cyan);
}
.page-home .trace-axis__node--current .trace-axis__dot {
  background: var(--amber);
  border-color: var(--amber);
  animation: home-pulse 2.4s var(--ease) infinite;
}
.page-home .trace-axis__ver {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--cyan-soft);
}
.page-home .trace-axis__node--current .trace-axis__ver {
  color: var(--amber);
}
.page-home .trace-axis__what {
  font-size: var(--fs-sm);
  line-height: 1.68;
  color: var(--cream);
  opacity: 0.86;
}
.page-home .trace-axis__when {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--slate);
}
@media (max-width: 719px) {
  .page-home .trace-axis {
    flex-direction: column;
    padding: 0 0 0 1.4rem;
    gap: 0;
  }
  .page-home .trace-axis::before {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0.8rem;
    width: 1px;
    height: auto;
  }
  .page-home .trace-axis__node {
    flex: none;
    padding: 0 0 1.15rem;
  }
  .page-home .trace-axis__dot {
    top: 0.42rem;
    left: -1.4rem;
    transform: none;
  }
}
.page-home .home-trace__foot {
  margin: 1.8rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark-soft);
  font-size: var(--fs-sm);
  line-height: 1.82;
  color: rgba(253, 251, 247, 0.68);
  max-width: 62ch;
}

/* ---------- 六个栏目 ---------- */
.page-home .home-tracks__layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
@media (min-width: 980px) {
  .page-home .home-tracks__layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }
}
.page-home .home-tracks__figure {
  margin: 0;
}
.page-home .home-tracks__figure img {
  width: 100%;
  height: auto;
}
.page-home .track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 660px) {
  .page-home .track-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.page-home .track-item {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(40, 224, 200, 0.06), rgba(11, 29, 51, 0) 58%);
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-home .track-item:hover {
  border-color: rgba(40, 224, 200, 0.42);
  transform: translateY(-2px);
}
.page-home .track-item__step {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--cyan);
  opacity: 0.72;
}
.page-home .track-item__title {
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.42;
  color: var(--cream);
}
.page-home .track-item__desc {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: rgba(253, 251, 247, 0.74);
}
.page-home .track-item__meta {
  margin: 0.15rem 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  color: var(--slate);
}

/* ---------- 适配平台 ---------- */
.page-home .home-compat__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
@media (min-width: 980px) {
  .page-home .home-compat__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }
}
.page-home .compat-tags {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.page-home .compat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
  padding: 0.42rem 0.72rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.page-home .compat-tag:hover,
.page-home .compat-tag:focus-visible {
  transform: translateY(-2px);
  outline: none;
}
.page-home .compat-tag__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.page-home .compat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-dark-soft);
  border: 1px solid var(--line-dark-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px) {
  .page-home .compat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.page-home .compat-item {
  background: var(--ink-2);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.page-home .compat-item:target {
  background: rgba(242, 180, 65, 0.1);
  box-shadow: inset 0 0 0 1px var(--amber);
}
.page-home .compat-item__os {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  color: var(--cyan-soft);
}
.page-home .compat-item__req {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--cream);
}
.page-home .compat-item__size {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  color: var(--slate);
}
.page-home .home-compat__figure {
  margin: 0;
}
.page-home .home-compat__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

/* ---------- 起步三步与咨询 ---------- */
.page-home .home-start__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 980px) {
  .page-home .home-start__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    align-items: start;
  }
}
.page-home .start-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 720px) {
  .page-home .start-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.page-home .start-step {
  border-top: 2px solid var(--cyan);
  padding-top: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home .start-step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}
.page-home .start-step__title {
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.45;
  color: var(--cream);
}
.page-home .start-step__desc {
  margin: 0;
  flex: 1;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: rgba(253, 251, 247, 0.72);
}
.page-home .start-step__link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--cyan-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(140, 244, 231, 0.34);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.page-home .start-step__link:hover,
.page-home .start-step__link:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
  outline: none;
}

.page-home .home-help {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(40, 224, 200, 0.09), rgba(11, 29, 51, 0) 72%);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.page-home .home-help__title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 900;
  line-height: 1.35;
  color: var(--cream);
}
.page-home .home-help__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.78;
  color: rgba(253, 251, 247, 0.74);
}
.page-home .home-help__list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line-dark-soft);
  display: grid;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.015em;
  color: var(--cream);
  word-break: break-word;
}
.page-home .home-help__key {
  display: inline-block;
  min-width: 3.2em;
  margin-right: 0.5rem;
  color: var(--amber);
  letter-spacing: 0.08em;
}
.page-home .home-help__note {
  margin: 0.35rem 0 0.6rem;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .version-rail__dot.is-live,
  .page-home .trace-axis__node--current .trace-axis__dot {
    animation: none;
    opacity: 1;
  }
  .page-home .archive-card__link,
  .page-home .track-item,
  .page-home .compat-tag,
  .page-home .compat-item {
    transition: none;
  }
}
