/* ============================================================
   page-home —— 首页专属样式
   全部选择器限定在 .page-home 作用域内
   ============================================================ */

.page-home {
  --home-slant: -18deg;
  --home-card-radius: 2px 22px 2px 22px;
  --home-hairline: rgba(217, 164, 65, .30);
  background: var(--c-ink);
  color: var(--c-fog);
  font-family: var(--font-body);
}

/* ---------- 通用小件 ---------- */

.page-home .section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--c-amber);
  margin: 0 0 14px;
}

.page-home .section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.page-home .section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.22;
  letter-spacing: .1em;
  margin: 0 0 16px;
}

.page-home .lede {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(242, 245, 244, .80);
  margin: 0;
}

.page-home .coord-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--c-amber);
  padding: 3px 9px;
  border: 1px solid var(--home-hairline);
  border-radius: 2px 10px 2px 10px;
}

/* ============================================================
   1. 首屏坐标台
   ============================================================ */

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

.page-home .home-hero__stage {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 600px;
  padding: calc(var(--header-h) + 76px) 0 112px;
  overflow: hidden;
  background: linear-gradient(168deg, #061a26 0%, #0b2a3a 46%, #10374a 100%);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 28%;
  opacity: .34;
  filter: saturate(.72) contrast(1.06);
}

.page-home .home-hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}

.page-home .home-hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(118% 88% at 88% 4%, rgba(217, 164, 65, .18), transparent 56%),
    linear-gradient(180deg, rgba(6, 26, 38, .34) 0%, rgba(6, 26, 38, .74) 58%, rgba(6, 26, 38, .96) 100%);
  pointer-events: none;
}

.page-home .home-hero__big {
  position: absolute;
  top: 7%;
  right: 5%;
  z-index: 1;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(104px, 23vw, 232px);
  line-height: .84;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(217, 164, 65, .44);
  pointer-events: none;
  user-select: none;
}

.page-home .home-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.page-home .home-hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--c-amber);
  margin: 0 0 20px;
}

.page-home .home-hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(34px, 7vw, 66px);
  line-height: 1.1;
  letter-spacing: .12em;
  margin: 0 0 22px;
  max-width: 14ch;
}

.page-home .home-hero__lede {
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(242, 245, 244, .82);
  margin: 0 0 18px;
}

.page-home .home-hero__footnote {
  max-width: 42ch;
  font-family: var(--font-note);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-mist);
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(53, 224, 200, .42);
}

.page-home .home-hero__compass {
  display: none;
  position: absolute;
  right: 7%;
  bottom: 14%;
  width: 128px;
  height: 128px;
  z-index: 2;
  opacity: .92;
}

.page-home .home-hero__needle {
  transform-origin: 60px 60px;
  animation: home-needle 9s var(--ease) infinite;
}

@keyframes home-needle {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(9deg); }
}

/* 斜向江流分割的入口条带 */

.page-home .home-hero__launch {
  position: relative;
  z-index: 4;
  margin-top: -48px;
  padding: 88px 0 48px;
  background: linear-gradient(112deg, #0e3446 0%, #0b2a3a 58%, #123a4e 100%);
  clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-hero__launch-grid {
  display: grid;
  gap: 16px;
}

.page-home .home-route {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px 22px;
  border: 1px solid var(--home-hairline);
  border-radius: var(--home-card-radius);
  background: rgba(6, 26, 38, .52);
  color: var(--c-fog);
  text-decoration: none;
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}

.page-home .home-route:hover,
.page-home .home-route:focus-visible {
  border-color: var(--c-amber-bright);
  background: rgba(217, 164, 65, .10);
  transform: translateY(-3px);
}

.page-home .home-route__idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--c-amber);
  padding-top: 3px;
}

.page-home .home-route__body {
  display: block;
}

.page-home .home-route__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .12em;
}

.page-home .home-route__desc {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--c-mist);
}

/* ============================================================
   2. 常用页面入口与收藏书签
   ============================================================ */

.page-home .home-entry {
  background: linear-gradient(180deg, #0b2a3a 0%, #0d3040 100%);
}

.page-home .home-entry__grid {
  display: grid;
  gap: 40px;
}

.page-home .home-entry__main .lede {
  max-width: 54ch;
}

.page-home .home-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .home-steps__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 18px 0 18px 18px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line);
  position: relative;
}

.page-home .home-steps__item::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-amber);
}

.page-home .home-steps__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--c-amber);
}

.page-home .home-steps__text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(242, 245, 244, .84);
}

.page-home .home-entry__aside {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(242, 245, 244, .78);
  padding: 4px 0 4px 18px;
  border-left: 2px solid rgba(217, 164, 65, .48);
}

.page-home .home-entry__side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-home .home-entry__panel {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--home-hairline);
  border-radius: var(--home-card-radius);
  background: rgba(58, 46, 92, .30);
}

.page-home .home-entry__panel-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-amber-bright);
}

.page-home .home-entry__panel-label {
  font-size: 14px;
  line-height: 1.72;
  color: var(--c-mist);
}

/* ============================================================
   3. 三大入口索引
   ============================================================ */

.page-home .home-index {
  background: #081f2c;
}

.page-home .home-index__grid {
  display: grid;
  gap: 20px;
}

.page-home .home-index__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px 28px;
  border: 1px solid var(--home-hairline);
  border-radius: var(--home-card-radius);
  background: rgba(11, 42, 58, .62);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}

.page-home .home-index__card:hover {
  border-color: rgba(240, 200, 120, .68);
  transform: translateY(-4px);
}

.page-home .home-index__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .12em;
  margin: 0;
}

.page-home .home-index__text {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(242, 245, 244, .78);
  margin: 0;
}

.page-home .home-index__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--c-amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 65, .42);
  padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  color: var(--c-amber-bright);
  border-color: var(--c-amber-bright);
}

.page-home .home-index__card--media .figure-frame {
  width: 100%;
  margin: 0 0 4px;
}

.page-home .home-index__card--media .figure-frame__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px 14px 2px 14px;
}

/* 图片框通用 */

.page-home .figure-frame {
  margin: 0;
}

.page-home .figure-frame__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--home-card-radius);
  border: 1px solid var(--home-hairline);
  object-fit: cover;
}

.page-home .figure-frame__cap {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--c-mist);
}

/* ============================================================
   4. 板块地图纵轴
   ============================================================ */

.page-home .home-map {
  background: var(--c-ink);
}

.page-home .home-map__body {
  display: grid;
  gap: 36px;
}

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

.page-home .home-map__list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(217, 164, 65, .62), rgba(53, 224, 200, .36) 42%, rgba(201, 212, 210, .10) 100%);
}

.page-home .home-map__row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "no name"
    "no meta";
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background .2s var(--ease);
}

.page-home .home-map__row::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(217, 164, 65, .58);
  background: var(--c-ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.page-home .home-map__row:hover::before {
  background: var(--c-amber-bright);
  border-color: var(--c-amber-bright);
  box-shadow: 0 0 0 5px rgba(217, 164, 65, .16);
}

.page-home .home-map__row:hover {
  background: rgba(217, 164, 65, .05);
}

.page-home .home-map__no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: .06em;
  color: var(--c-amber);
}

.page-home .home-map__name {
  grid-area: name;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .12em;
}

.page-home .home-map__meta {
  grid-area: meta;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--c-mist);
}

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

.page-home .home-map__figure .figure-frame__img {
  aspect-ratio: 3 / 4;
  object-position: center;
}

/* ============================================================
   5. 近期更新摘录
   ============================================================ */

.page-home .home-log {
  background: linear-gradient(180deg, #081f2c 0%, #0b2a3a 100%);
}

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

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--c-cyan), rgba(53, 224, 200, .34) 46%, rgba(201, 212, 210, .10) 100%);
}

.page-home .timeline__item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
}

.page-home .timeline__item:last-child {
  margin-bottom: 0;
}

.page-home .timeline__dot {
  position: absolute;
  left: 0;
  top: 24px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c-amber);
  border: 2px solid var(--c-ink);
  box-sizing: content-box;
}

.page-home .timeline__dot.pulse-dot {
  background: var(--c-cyan);
  box-shadow: 0 0 0 0 rgba(53, 224, 200, .5);
  animation: home-pulse 2.4s ease-out infinite;
}

@keyframes home-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 224, 200, .52); }
  70%  { box-shadow: 0 0 0 12px rgba(53, 224, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 224, 200, 0); }
}

.page-home .timeline__card {
  border: 1px solid var(--line);
  border-radius: var(--home-card-radius);
  background: rgba(6, 26, 38, .58);
  overflow: hidden;
  transition: border-color .22s var(--ease);
}

.page-home .timeline__card:hover {
  border-color: var(--home-hairline);
}

.page-home .fold {
  display: block;
}

.page-home .fold__trigger {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

.page-home .fold__trigger:focus-visible {
  outline: 2px solid var(--c-amber);
  outline-offset: -3px;
}

.page-home .fold__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--c-amber);
}

.page-home .home-log__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--c-fog);
}

.page-home .fold__panel {
  overflow: hidden;
  max-height: 0;
  padding: 0 20px;
  transition: max-height .22s var(--ease), padding .22s var(--ease);
}

.page-home .fold.is-open .fold__panel {
  max-height: 30rem;
  padding: 0 20px 20px;
}

.page-home .fold.is-open .fold__trigger .home-log__label {
  color: var(--c-amber-bright);
}

.page-home .fold__panel p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.88;
  color: rgba(242, 245, 244, .80);
}

.page-home .fold__panel p:last-child {
  margin-bottom: 0;
}

.page-home .note-hand {
  font-family: var(--font-note);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-cyan);
  padding-left: 14px;
  border-left: 2px solid rgba(53, 224, 200, .42);
}

.page-home .home-log__more {
  margin: 32px 0 0;
}

/* ============================================================
   6. 联络坐标与服务时段
   ============================================================ */

.page-home .home-reach {
  background: linear-gradient(160deg, #0b2a3a 0%, #061a26 100%);
}

.page-home .home-reach__inner {
  display: grid;
  gap: 36px;
}

.page-home .home-reach__lead .lede {
  margin-bottom: 24px;
  max-width: 46ch;
}

.page-home .home-reach__list {
  margin: 0;
  border-top: 1px solid var(--home-hairline);
}

.page-home .home-reach__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-reach__row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--c-amber);
}

.page-home .home-reach__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(242, 245, 244, .86);
  word-break: break-word;
}

/* ============================================================
   动效降级
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__needle,
  .page-home .timeline__dot.pulse-dot {
    animation: none;
  }
  .page-home .home-route,
  .page-home .home-index__card,
  .page-home .fold__panel,
  .page-home .home-map__row,
  .page-home .home-map__row::before {
    transition: none;
  }
}

/* ============================================================
   响应式
   ============================================================ */

@media (min-width: 720px) {
  .page-home .home-hero__launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .page-home .home-hero__launch {
    padding: 96px 0 56px;
  }

  .page-home .home-reach__row {
    grid-template-columns: minmax(0, 130px) minmax(0, 1fr);
    align-items: baseline;
    gap: 20px;
  }

  .page-home .home-steps__item {
    grid-template-columns: minmax(0, 130px) minmax(0, 1fr);
    align-items: baseline;
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__compass {
    display: block;
  }

  .page-home .home-hero__stage {
    min-height: 660px;
    padding-bottom: 132px;
  }

  .page-home .home-entry__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 64px;
    align-items: start;
  }

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

  .page-home .home-map__body {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .home-map__figure .figure-frame__img {
    aspect-ratio: 3 / 4.4;
  }

  .page-home .home-reach__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 60px;
    align-items: start;
  }

  .page-home .home-reach__list {
    border-top: 0;
    padding-top: 6px;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero__stage {
    min-height: 700px;
    padding-bottom: 148px;
  }

  .page-home .home-hero__launch {
    padding: 108px 0 64px;
  }

  .page-home .home-map__list {
    padding-left: 34px;
  }

  .page-home .home-map__row::before {
    left: -34px;
  }
}
