.page-home {
  background: var(--mist);
  color: var(--graphite);
}

/* ---------- 首屏分屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--indigo);
  color: var(--white);
  padding: 44px 0 56px;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 88% 10%, rgba(0, 229, 204, .2), transparent 58%),
    linear-gradient(160deg, rgba(17, 30, 78, .92), rgba(26, 42, 108, 1) 54%, rgba(11, 79, 92, .9));
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 38px;
}

.page-home .home-hero__context {
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .5);
  margin: 0 0 22px;
}

.page-home .home-hero__eyebrow {
  color: var(--cyan);
  letter-spacing: .18em;
  margin: 0;
}

.page-home .home-hero__title {
  margin: 14px 0 18px;
  font-size: clamp(34px, 7.2vw, 72px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-home .home-hero__title span {
  display: inline;
  color: var(--cyan);
}

.page-home .home-hero__lead {
  max-width: 32em;
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .78);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.page-home .home-hero .btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--indigo-deep);
}

.page-home .home-hero .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .42);
  color: var(--white);
}

.page-home .home-hero .btn--ghost:hover,
.page-home .home-hero .btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.page-home .home-hero__stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-hero__stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .55);
  order: 2;
}

.page-home .home-hero__stats dd {
  order: 1;
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--white);
}

.page-home .home-hero__stats dd small {
  font-size: 12px;
  font-weight: 500;
  margin-left: 4px;
  color: rgba(255, 255, 255, .62);
}

.page-home .home-hero__visual {
  position: relative;
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
}

.page-home .home-hero__caption {
  margin: 12px 0 0;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .52);
}

/* ---------- 主体骨架 ---------- */
.page-home .home-body {
  display: grid;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 84px;
}

.page-home .home-index {
  display: none;
}

.page-home .home-index__label {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--slate);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .home-index__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  font-size: 14px;
  color: var(--graphite);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.page-home .home-index__list a:hover,
.page-home .home-index__list a:focus-visible {
  color: var(--indigo);
  background: var(--white);
  border-left-color: var(--cyan);
}

.page-home .home-index__list .mono {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: .1em;
}

.page-home .home-flow > * + * {
  margin-top: 66px;
}

/* ---------- 章节头 ---------- */
.page-home .home-chapter__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.page-home .home-chapter__no {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 42px);
  line-height: .9;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--orange);
}

.page-home .home-chapter__heading {
  min-width: 0;
}

.page-home .home-chapter__eyebrow {
  margin: 0;
  color: var(--slate);
  letter-spacing: .18em;
}

.page-home .home-chapter h2 {
  margin: 6px 0 0;
  font-size: clamp(23px, 3.4vw, 36px);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--indigo);
}

.page-home .home-chapter__intro {
  max-width: 42em;
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--slate);
}

/* ---------- 入口目录 ---------- */
.page-home .entry-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .entry-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px 20px 22px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.page-home .entry-card::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

.page-home .entry-card::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, transparent 50%, var(--mist) 50%);
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 34px -26px rgba(17, 30, 78, .7);
}

.page-home .entry-card:hover::before,
.page-home .entry-card:focus-within::before {
  transform: scaleX(1);
}

.page-home .entry-card__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--orange);
}

.page-home .entry-card__title {
  margin: 8px 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--indigo);
}

.page-home .entry-card__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--slate);
}

.page-home .entry-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .entry-card__tags li {
  padding: 3px 9px;
  font-size: 12px;
  border-radius: var(--radius);
  background: var(--fog);
  color: var(--teal);
}

/* ---------- 图片容器 ---------- */
.page-home .home-figure {
  margin: 24px 0 0;
}

.page-home .home-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
}

.page-home .home-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 记录与版本 ---------- */
.page-home .home-split {
  display: grid;
  gap: 16px;
}

.page-home .record-panel,
.page-home .compare-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 20px;
}

.page-home .record-panel__label,
.page-home .compare-panel__label {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--slate);
  margin: 0 0 12px;
}

.page-home .record-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.page-home .record-item {
  padding: 11px 12px 11px 14px;
  border-left: 2px solid transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.page-home .record-item + .record-item {
  border-top: 1px solid var(--line);
}

.page-home .record-item:hover,
.page-home .record-item:focus-within {
  background: var(--fog);
  border-left-color: var(--cyan);
}

.page-home .record-item__time {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--slate);
  margin-bottom: 3px;
}

.page-home .record-item__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--graphite);
}

.page-home .record-item__note {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.page-home .text-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--cyan);
}

.page-home .text-link:hover,
.page-home .text-link:focus-visible {
  color: var(--teal);
}

.page-home .compare-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.page-home .compare-row:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.page-home .compare-row__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--slate);
  min-width: 42px;
}

.page-home .compare-row--now .compare-row__tag {
  color: var(--orange);
}

.page-home .compare-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .compare-steps li {
  position: relative;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.page-home .compare-steps li + li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--slate);
  transform: translateY(-50%);
}

.page-home .compare-row--now .compare-steps li {
  border-color: var(--cyan);
  background: var(--fog);
  color: var(--teal);
  font-weight: 700;
}

.page-home .compare-panel__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- 适配状态条 ---------- */
.page-home .home-chapter--teal {
  background: var(--teal);
  color: var(--white);
  padding: 30px 20px 34px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .home-chapter--teal .home-chapter__head {
  border-bottom-color: var(--line-dark);
}

.page-home .home-chapter--teal .home-chapter__no {
  color: var(--cyan);
}

.page-home .home-chapter--teal .home-chapter__eyebrow {
  color: rgba(255, 255, 255, .6);
}

.page-home .home-chapter--teal h2 {
  color: var(--white);
}

.page-home .home-chapter--teal .home-chapter__intro {
  color: rgba(255, 255, 255, .78);
}

.page-home .device-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .device-chip {
  display: grid;
  gap: 6px;
  padding: 12px 11px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .06);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.page-home .device-chip:hover,
.page-home .device-chip:focus-within {
  background: rgba(0, 229, 204, .12);
  border-color: var(--cyan);
}

.page-home .device-chip__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.page-home .device-chip__ver {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--cyan);
  word-break: break-all;
}

.page-home .compat-facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}

.page-home .compat-facts li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--cyan);
  transform: rotate(45deg);
  vertical-align: middle;
}

.page-home .home-chapter--teal .btn--accent {
  margin-top: 22px;
}

.page-home .home-chapter--teal .home-figure img {
  border-color: var(--line-dark);
}

.page-home .home-chapter--teal .home-figure figcaption {
  color: rgba(255, 255, 255, .62);
}

/* ---------- 场景化行动 ---------- */
.page-home .path-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .path-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  background: var(--white);
  border-top: 2px solid var(--indigo);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-home .path-card:hover,
.page-home .path-card:focus-within {
  transform: translateY(-2px);
  border-top-color: var(--orange);
}

.page-home .path-card__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--orange);
}

.page-home .path-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--graphite);
}

.page-home .path-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--slate);
}

.page-home .path-card__link {
  justify-self: start;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--cyan);
}

.page-home .path-card__link::after {
  content: "→";
  margin-left: 6px;
}

.page-home .path-card__link:hover,
.page-home .path-card__link:focus-visible {
  color: var(--teal);
}

.page-home .home-tail {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .home-tail a {
  color: var(--indigo);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
}

.page-home .home-tail a:hover,
.page-home .home-tail a:focus-visible {
  color: var(--teal);
}

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

  .page-home .device-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-chapter--teal {
    padding: 34px 30px 38px;
  }
}

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

@media (min-width: 960px) {
  .page-home .home-hero {
    padding: 64px 0 78px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 56px;
  }

  .page-home .home-hero__visual img {
    aspect-ratio: 4 / 5;
  }

  .page-home .home-hero__lead {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-body {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 60px;
    padding-top: 68px;
    padding-bottom: 100px;
  }

  .page-home .home-index {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
  }

  .page-home .entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .device-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card,
  .page-home .entry-card::before,
  .page-home .path-card,
  .page-home .device-chip,
  .page-home .record-item,
  .page-home .home-index__list a {
    transition: none;
  }

  .page-home .entry-card:hover,
  .page-home .path-card:hover {
    transform: none;
  }
}
