.page-home {
  display: block;
  padding-bottom: 64px;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: 28px 0 44px;
  border-bottom: 3px solid var(--gx-rail);
  overflow: hidden;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-home .home-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 78% at 50% 14%, rgba(111, 77, 245, 0.34), rgba(6, 10, 28, 0) 72%),
    linear-gradient(180deg, rgba(6, 10, 28, 0.28) 0%, rgba(6, 10, 28, 0.95) 84%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__title {
  margin: 16px 0 0;
  font-family: var(--gx-font-display);
  font-weight: 200;
  font-size: clamp(2.25rem, 9.5vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--gx-dust);
  max-width: 15ch;
}

.page-home .home-hero__lead {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--gx-mist);
}

/* 三步路径条 */
.page-home .home-path {
  margin-top: 32px;
}

.page-home .home-path__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.page-home .home-path__tab {
  flex: 1 1 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--gx-hull);
  border: 3px solid var(--gx-rail);
  color: var(--gx-mist);
  font-family: var(--gx-font-body);
  font-size: var(--gx-fs-16);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms var(--gx-ease), border-color 180ms var(--gx-ease),
    color 180ms var(--gx-ease), box-shadow 180ms var(--gx-ease);
}

.page-home .home-path__tab:hover {
  border-color: var(--gx-beam);
  color: var(--gx-dust);
}

.page-home .home-path__tab[aria-selected="true"] {
  border-color: var(--gx-gold);
  color: var(--gx-dust);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 rgba(42, 55, 102, 0.6);
}

.page-home .home-path__num {
  font-family: var(--gx-font-mono);
  font-size: var(--gx-fs-12);
  letter-spacing: 0.08em;
  color: var(--gx-beam);
}

.page-home .home-path__tab[aria-selected="true"] .home-path__num {
  color: var(--gx-gold);
}

.page-home .home-path__label {
  font-weight: 600;
}

.page-home .home-path__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--gx-hull);
  border: 3px solid var(--gx-rail);
  box-shadow: 10px 14px 0 rgba(42, 55, 102, 0.4);
}

.page-home .home-path__panel[hidden] {
  display: none;
}

.page-home .home-path__icon {
  display: block;
  width: 64px;
  height: 64px;
}

.page-home .home-path__heading {
  margin: 0;
  font-size: var(--gx-fs-24);
  font-weight: 600;
  color: var(--gx-dust);
  line-height: 1.35;
}

.page-home .home-path__text {
  margin: 0;
  max-width: 66ch;
  font-size: var(--gx-fs-16);
  line-height: 1.75;
  color: var(--gx-mist);
}

.page-home .home-path__panel .gx-btn {
  align-self: flex-start;
}

/* ---------- 分类星图 ---------- */
.page-home .home-map__figure {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 28px auto 0;
  aspect-ratio: 1 / 1;
}

.page-home .home-map__arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .home-map__arcs circle {
  fill: none;
  stroke: var(--gx-rail);
  stroke-width: 1.5;
  stroke-dasharray: 4 9;
  opacity: 0.85;
}

.page-home .home-map__arcs circle:nth-child(2) {
  stroke: rgba(111, 77, 245, 0.55);
}

.page-home .home-map__arcs circle:nth-child(1) {
  stroke: rgba(53, 227, 210, 0.45);
}

.page-home .home-map__nodes {
  position: absolute;
  inset: 0;
}

.page-home .home-map__node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  transform: translate(-50%, -50%);
  background: var(--gx-hull);
  border: 3px solid var(--gx-rail);
  color: var(--gx-dust);
  font-size: var(--gx-fs-14);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms var(--gx-ease), box-shadow 180ms var(--gx-ease),
    transform 180ms var(--gx-ease);
}

.page-home .home-map__node:hover,
.page-home .home-map__node:focus-visible {
  border-color: var(--gx-beam);
  box-shadow: 0 0 0 4px rgba(53, 227, 210, 0.22);
  transform: translate(-50%, -50%) scale(1.04);
}

.page-home .home-map__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gx-nebula);
  box-shadow: 0 0 8px rgba(111, 77, 245, 0.9);
  flex: 0 0 auto;
}

.page-home .home-map__tip {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  width: 190px;
  padding: 8px 10px;
  transform: translateX(-50%);
  background: var(--gx-void);
  border: 2px solid var(--gx-beam);
  color: var(--gx-mist);
  font-size: var(--gx-fs-12);
  line-height: 1.6;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 4;
  transition: opacity 180ms var(--gx-ease), visibility 180ms var(--gx-ease);
}

.page-home .home-map__node:hover .home-map__tip,
.page-home .home-map__node:focus-visible .home-map__tip {
  opacity: 1;
  visibility: visible;
}

.page-home .home-map__node:nth-child(1) { left: 50%; top: 8%; }
.page-home .home-map__node:nth-child(2) { left: 85%; top: 31%; }
.page-home .home-map__node:nth-child(3) { left: 85%; top: 69%; }
.page-home .home-map__node:nth-child(4) { left: 50%; top: 92%; }
.page-home .home-map__node:nth-child(5) { left: 15%; top: 69%; }
.page-home .home-map__node:nth-child(6) { left: 15%; top: 31%; }

.page-home .home-map__note {
  margin: 28px auto 0;
  max-width: 62ch;
  font-size: var(--gx-fs-16);
  line-height: 1.75;
  color: var(--gx-mist);
  text-align: center;
}

/* ---------- 更新记录 ---------- */
.page-home .home-log__top {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.page-home .home-log__intro {
  margin: 0;
  max-width: 60ch;
  font-size: var(--gx-fs-16);
  line-height: 1.75;
  color: var(--gx-mist);
}

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

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

.page-home .home-log__list {
  display: flex;
  border: 3px solid var(--gx-rail);
  background: var(--gx-hull);
  overflow-x: auto;
}

.page-home .home-log__tab {
  flex: 1 0 auto;
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-right: 2px solid var(--gx-rail);
  color: var(--gx-mist);
  font-family: var(--gx-font-body);
  font-size: var(--gx-fs-14);
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms var(--gx-ease), color 180ms var(--gx-ease);
}

.page-home .home-log__tab:last-child {
  border-right: 0;
}

.page-home .home-log__tab:hover {
  color: var(--gx-dust);
  background: rgba(111, 77, 245, 0.16);
}

.page-home .home-log__tab[aria-selected="true"] {
  background: var(--gx-nebula);
  color: var(--gx-dust);
}

.page-home .home-log__panel[hidden] {
  display: none;
}

.page-home .home-log__stream {
  position: relative;
  margin: 26px 0 0;
  padding: 0 0 0 26px;
  list-style: none;
}

.page-home .home-log__stream::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--gx-rail);
}

.page-home .home-log__item {
  position: relative;
  padding-bottom: 22px;
}

.page-home .home-log__item:last-child {
  padding-bottom: 0;
}

.page-home .home-log__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gx-void);
  border: 3px solid var(--gx-beam);
}

.page-home .home-log__tag {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--gx-font-mono);
  font-size: var(--gx-fs-12);
  letter-spacing: 0.08em;
  color: var(--gx-nebula);
}

.page-home .home-log__what {
  margin: 0;
  max-width: 64ch;
  font-size: var(--gx-fs-16);
  line-height: 1.7;
  color: var(--gx-dust);
}

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

/* ---------- 费用与帮助 ---------- */
.page-home .home-help__grid {
  margin-top: 26px;
}

.page-home .home-help__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-help__kicker {
  margin: 0;
  color: var(--gx-beam);
}

.page-home .home-help__card .gx-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- 本地线路 ---------- */
.page-home .home-local__panel {
  margin-top: 26px;
  padding: 24px 20px;
  border: 3px solid var(--gx-rail);
  border-left: 6px solid var(--gx-nebula);
  background: linear-gradient(160deg, rgba(14, 23, 56, 0.98) 0%, rgba(6, 10, 28, 0.98) 100%);
}

.page-home .home-local__heading {
  margin: 0 0 18px;
  font-size: var(--gx-fs-24);
  font-weight: 600;
  color: var(--gx-dust);
  line-height: 1.4;
}

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

.page-home .home-local__fact {
  display: grid;
  gap: 6px;
  padding-left: 14px;
  border-left: 3px solid var(--gx-rail);
}

.page-home .home-local__key {
  font-family: var(--gx-font-mono);
  font-size: var(--gx-fs-12);
  letter-spacing: 0.08em;
  color: var(--gx-gold);
}

.page-home .home-local__val {
  font-size: var(--gx-fs-16);
  line-height: 1.75;
  color: var(--gx-mist);
}

.page-home .home-local__tail {
  margin: 22px 0 0;
  font-size: var(--gx-fs-16);
  line-height: 1.75;
  color: var(--gx-mist);
}

.page-home .home-local__tail a {
  color: var(--gx-beam);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .home-local__tail a:hover {
  color: var(--gx-gold);
}

/* ---------- 人工通道 ---------- */
.page-home .home-support__panel {
  margin-top: 26px;
  padding: 26px 20px 28px;
  border: 3px solid var(--gx-rail);
  box-shadow: 10px 14px 0 rgba(42, 55, 102, 0.4);
}

.page-home .home-support__text {
  margin: 0 0 14px;
  max-width: 66ch;
  font-size: var(--gx-fs-16);
  line-height: 1.75;
  color: var(--gx-mist);
}

.page-home .home-support__panel .gx-btn {
  margin-top: 8px;
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 720px) {
  .page-home .home-hero {
    padding: 44px 0 64px;
  }

  .page-home .home-path__panel {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 26px;
    row-gap: 10px;
    padding: 30px 32px;
  }

  .page-home .home-path__icon {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 96px;
    height: 96px;
  }

  .page-home .home-path__heading,
  .page-home .home-path__text,
  .page-home .home-path__panel .gx-btn {
    grid-column: 2;
  }

  .page-home .home-log__top {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 32px;
  }

  .page-home .home-local__panel,
  .page-home .home-support__panel {
    padding: 34px 36px 38px;
  }

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

@media (min-width: 1040px) {
  .page-home .home-path__tab {
    flex: 1 1 0;
  }

  .page-home .home-map__figure {
    max-width: 560px;
  }
}

/* ---------- 窄屏：星图退化为双列索引 ---------- */
@media (max-width: 639px) {
  .page-home .home-map__figure {
    aspect-ratio: auto;
    max-width: none;
  }

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

  .page-home .home-map__nodes {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-home .home-map__node {
    position: static;
    transform: none;
    white-space: normal;
    padding: 12px;
  }

  .page-home .home-map__node:hover,
  .page-home .home-map__node:focus-visible {
    transform: none;
  }

  .page-home .home-map__tip {
    position: static;
    width: auto;
    transform: none;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    border-width: 0 0 0 2px;
    background: transparent;
    padding: 0 0 0 8px;
    color: var(--gx-mist);
    font-size: var(--gx-fs-12);
  }

  .page-home .home-map__name {
    display: block;
    margin-top: 4px;
    font-weight: 600;
  }

  .page-home .home-map__node {
    flex-wrap: wrap;
  }

  .page-home .home-map__dot {
    margin-top: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-path__tab,
  .page-home .home-log__tab,
  .page-home .home-map__node,
  .page-home .home-map__tip {
    transition: opacity 120ms linear;
    transform: none;
  }

  .page-home .home-path__tab[aria-selected="true"] {
    transform: none;
  }

  .page-home .home-map__node:hover,
  .page-home .home-map__node:focus-visible {
    transform: translate(-50%, -50%);
  }
}
