.page-home {
  --home-panel: rgba(12, 44, 74, 0.72);
  --home-edge: rgba(53, 242, 224, 0.28);
  position: relative;
  overflow-x: clip;
  background: var(--bg);
}

/* ---------- 左侧坐标轴 ---------- */
.page-home .home-axis {
  display: none;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding: clamp(84px, 13vw, 148px) 0 clamp(52px, 8vw, 96px);
  background: var(--c-deep);
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  z-index: -4;
}

.page-home .home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.85) contrast(1.05);
}

.page-home .home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 88% at 80% 6%, rgba(53, 242, 224, 0.2), transparent 58%),
    radial-gradient(88% 72% at 4% 98%, rgba(138, 91, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(6, 26, 46, 0.5) 0%, rgba(6, 26, 46, 0.88) 64%, var(--c-deep) 100%);
}

.page-home .home-hero__shard {
  position: absolute;
  z-index: -3;
  pointer-events: none;
}

.page-home .home-hero__shard--a {
  top: -14%;
  right: -18%;
  width: 74%;
  height: 82%;
  background: linear-gradient(148deg, rgba(12, 44, 74, 0.94) 0%, rgba(6, 26, 46, 0) 74%);
  border-left: 1px solid rgba(53, 242, 224, 0.22);
  clip-path: polygon(22% 0, 100% 0, 100% 78%, 0 100%);
}

.page-home .home-hero__shard--b {
  bottom: -22%;
  left: -20%;
  width: 60%;
  height: 64%;
  background: linear-gradient(318deg, rgba(255, 194, 75, 0.12) 0%, rgba(6, 26, 46, 0) 72%);
  border-top: 1px solid rgba(255, 194, 75, 0.26);
  clip-path: polygon(0 14%, 82% 0, 100% 100%, 0 100%);
}

.page-home .home-hero__glow {
  position: absolute;
  z-index: -2;
  right: 6%;
  bottom: 4%;
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 242, 224, 0.16) 0%, rgba(53, 242, 224, 0) 68%);
  pointer-events: none;
}

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

.page-home .home-hero__crumb {
  margin-bottom: 22px;
}

.page-home .home-hero__kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-amber);
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.95rem, 6.4vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--c-paper);
}

.page-home .home-hero__accent {
  display: block;
  color: var(--c-cyan);
  text-shadow: 0 0 28px rgba(53, 242, 224, 0.25);
}

.page-home .home-hero__lead {
  margin: 20px 0 0;
  max-width: 56ch;
  color: var(--ink-2);
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-3);
  background: var(--line-3);
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(6, 26, 46, 0.82);
}

.page-home .home-stat__num {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-cyan);
}

.page-home .home-stat__label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.page-home .home-hero__coords {
  display: flex;
  gap: 10px;
  margin: 26px 0 0;
  padding: 4px 2px 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.page-home .home-coord {
  flex: 0 0 auto;
  min-width: 142px;
  scroll-snap-align: start;
  padding: 13px 15px 14px;
  border: 1px solid var(--edge, rgba(53, 242, 224, 0.24));
  border-left: 2px solid rgba(255, 194, 75, 0.6);
  border-radius: var(--radius);
  background: linear-gradient(158deg, var(--home-panel), rgba(6, 26, 46, 0.6));
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.page-home .home-coord:hover,
.page-home .home-coord:focus-within {
  border-color: var(--c-cyan);
  border-left-color: var(--c-cyan);
  transform: translateY(-3px);
}

.page-home .home-coord__region {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--c-amber);
}

.page-home .home-coord__city {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  color: var(--c-paper);
}

.page-home .home-hero__more {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* ---------- 章节通用 ---------- */
.page-home .home-head {
  max-width: 720px;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-home .section__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--c-paper);
}

.page-home .section__lead {
  margin: 16px 0 0;
  color: var(--ink-2);
}

.page-home .section__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

/* ---------- 城市总览 ---------- */
.page-home .home-map {
  padding: clamp(56px, 9vw, 104px) 0;
}

.page-home .home-map__regions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-3);
  border: 1px solid var(--line-3);
}

.page-home .home-region {
  position: relative;
  padding: 18px 18px 17px;
  background: var(--c-deep);
  transition: background-color var(--t-fast) var(--ease);
}

.page-home .home-region::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--c-grid);
  transition: background-color var(--t-fast) var(--ease);
}

.page-home .home-region:hover {
  background: rgba(12, 44, 74, 0.7);
}

.page-home .home-region:hover::before {
  background: var(--c-cyan);
}

.page-home .home-region__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--c-paper);
}

.page-home .home-region__cities {
  margin: 9px 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-home .home-region__meta {
  margin: 10px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--c-amber);
}

.page-home .home-map__figure {
  margin: clamp(26px, 4vw, 44px) 0 0;
}

.page-home .home-map__note,
.page-home .home-change__foot,
.page-home .home-migrate__foot,
.page-home .home-pin__foot {
  margin: 24px 0 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-3);
}

/* ---------- V4 对照 ---------- */
.page-home .home-v4 {
  padding: clamp(56px, 9vw, 104px) 0;
}

.page-home .home-v4__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.page-home .home-v4__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-v4__modules .tag {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.page-home .home-v4__cta {
  margin-top: 28px;
}

.page-home .home-v4__figure {
  margin: 0;
}

/* ---------- 文档变更 ---------- */
.page-home .home-change {
  padding: clamp(56px, 9vw, 104px) 0;
}

.page-home .home-change__list {
  display: grid;
  gap: 8px;
}

.page-home .home-change__item {
  border: 1px solid var(--line-3);
  border-left: 2px solid rgba(255, 194, 75, 0.5);
  border-radius: var(--radius);
  background: rgba(12, 44, 74, 0.5);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.page-home .home-change__item[open] {
  border-left-color: var(--c-cyan);
  background: rgba(12, 44, 74, 0.8);
}

.page-home .home-change__item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

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

.page-home .home-change__code {
  flex: 0 0 auto;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--c-amber);
}

.page-home .home-change__title {
  flex: 1 1 auto;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--c-paper);
}

.page-home .home-change__indicator {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.page-home .home-change__indicator::before,
.page-home .home-change__indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--c-cyan);
  transform: translate(-50%, -50%);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.page-home .home-change__indicator::before {
  width: 12px;
  height: 1px;
}

.page-home .home-change__indicator::after {
  width: 1px;
  height: 12px;
}

.page-home .home-change__item[open] .home-change__indicator::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.page-home .home-change__body {
  padding: 0 16px 16px 16px;
  border-top: 1px dashed var(--line-3);
}

.page-home .home-change__body p {
  margin: 14px 0 0;
  max-width: 74ch;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ---------- 设备迁移 ---------- */
.page-home .home-migrate {
  padding: clamp(56px, 9vw, 104px) 0;
}

.page-home .home-migrate__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.page-home .home-migrate__steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-3);
  background: var(--line-3);
  counter-reset: none;
}

.page-home .home-step {
  position: relative;
  padding: 20px 18px 20px 62px;
  background: var(--c-deep);
  transition: background-color var(--t-fast) var(--ease);
}

.page-home .home-step:hover {
  background: rgba(12, 44, 74, 0.72);
}

.page-home .home-step__num {
  position: absolute;
  left: 18px;
  top: 22px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
}

.page-home .home-step__num::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, rgba(53, 242, 224, 0.5), rgba(53, 242, 224, 0));
  transform: translateX(-50%);
}

.page-home .home-step:last-child .home-step__num::after {
  display: none;
}

.page-home .home-step__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--c-paper);
}

.page-home .home-step__text {
  margin: 8px 0 0;
  font-size: 0.94rem;
  line-height: 1.82;
  color: var(--ink-2);
}

.page-home .home-migrate__figure {
  margin: 0;
}

/* ---------- 固定入口 ---------- */
.page-home .home-pin {
  padding: clamp(56px, 9vw, 104px) 0;
}

.page-home .home-pin__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .home-pin__card {
  padding: 22px 20px 24px;
  border-top: 2px solid rgba(255, 194, 75, 0.55);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.page-home .home-pin__card:nth-child(2n) {
  border-top-color: rgba(53, 242, 224, 0.55);
}

.page-home .home-pin__card:hover {
  border-top-color: var(--c-orange);
  transform: translateY(-4px);
}

.page-home .home-pin__name {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-paper);
}

.page-home .home-pin__text {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.82;
  color: var(--ink-2);
}

/* ---------- 出发 ---------- */
.page-home .home-start {
  padding: clamp(60px, 9vw, 112px) 0 clamp(64px, 10vw, 120px);
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(53, 242, 224, 0.16), transparent 60%),
    radial-gradient(80% 110% at 4% 100%, rgba(255, 122, 61, 0.14), transparent 62%),
    var(--c-night);
}

.page-home .home-start__inner {
  max-width: 620px;
}

.page-home .home-start__title {
  margin-top: 12px;
}

.page-home .home-start__lead {
  margin-top: 16px;
  color: var(--ink-2);
}

.page-home .home-start__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

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

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

@media (min-width: 900px) {
  .page-home .home-v4__split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
  }

  .page-home .home-migrate__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
  }

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

@media (min-width: 1120px) {
  .page-home .home-map__body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 34px;
    align-items: start;
  }

  .page-home .home-map__figure {
    margin-top: 0;
  }

  .page-home .home-head {
    max-width: 780px;
  }
}

@media (min-width: 1240px) {
  .page-home .home-axis {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    pointer-events: none;
  }

  .page-home .home-axis__rail {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(53, 242, 224, 0), rgba(53, 242, 224, 0.3) 20%, rgba(53, 242, 224, 0.3) 80%, rgba(53, 242, 224, 0));
    transform: translateX(-50%);
  }

  .page-home .home-axis__tick {
    position: relative;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(53, 242, 224, 0.42);
    background: var(--c-deep);
    transform: rotate(45deg);
  }

  .page-home .home-axis__tick:nth-child(2) {
    border-color: var(--c-cyan);
    background: var(--c-cyan);
    box-shadow: 0 0 12px rgba(53, 242, 224, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-coord,
  .page-home .home-pin__card,
  .page-home .home-region,
  .page-home .home-step,
  .page-home .home-change__item,
  .page-home .home-change__indicator::before,
  .page-home .home-change__indicator::after {
    transition: none;
  }

  .page-home .home-coord:hover,
  .page-home .home-pin__card:hover {
    transform: none;
  }
}

.page-home {
  --edge: currentColor;
}
