.page-home {
  --home-line: rgba(126, 230, 240, .16);
  --home-line-soft: rgba(126, 230, 240, .08);
  --home-radius: 30px;
  position: relative;
  background: var(--ink-900);
  color: var(--read-dark);
  overflow-x: clip;
}

/* ---------- 开场 ---------- */
.page-home .h-open {
  position: relative;
  padding: clamp(26px, 6vw, 62px) 0 clamp(38px, 7vw, 80px);
  background:
    radial-gradient(120% 90% at 80% 4%, rgba(22, 193, 214, .20), transparent 58%),
    radial-gradient(90% 70% at 6% 100%, rgba(255, 107, 74, .10), transparent 62%),
    var(--ink-900);
}

.page-home .h-open::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-line-soft) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 84%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 84%);
  pointer-events: none;
}

.page-home .h-open .wrap {
  position: relative;
  z-index: 1;
}

.page-home .h-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(20px, 4vw, 36px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--aqua-300);
}

.page-home .h-context-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-400);
  box-shadow: 0 0 0 4px rgba(216, 243, 74, .16);
}

.page-home .h-open-grid {
  display: grid;
  gap: clamp(26px, 5vw, 48px);
  align-items: center;
}

.page-home .h-open .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--aqua-500);
}

.page-home .h-open h1 {
  margin: 14px 0 22px;
  font-size: clamp(46px, 11vw, 108px);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.035em;
}

.page-home .h-open-sub {
  display: block;
  margin-top: 6px;
  font-weight: 300;
  font-size: .5em;
  letter-spacing: .01em;
  color: var(--aqua-300);
}

.page-home .h-open-copy {
  max-width: 40ch;
  margin: 0 0 14px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: rgba(234, 246, 250, .78);
}

.page-home .h-open-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .h-open-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--home-radius);
  background: var(--ink-700);
  -webkit-clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
}

.page-home .h-open-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}

.page-home .h-open-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(22, 193, 214, .30), rgba(5, 18, 31, .78) 64%);
  pointer-events: none;
}

/* ---------- 坐标索引 ---------- */
.page-home .h-coords {
  display: grid;
  gap: 10px;
  margin: clamp(38px, 6vw, 68px) 0 0;
  padding: clamp(18px, 3vw, 26px) 0 0;
  border-top: 1px solid var(--home-line);
  list-style: none;
}

.page-home .h-coord {
  position: relative;
}

.page-home .h-coord-link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num meta";
  column-gap: 12px;
  row-gap: 3px;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(12, 36, 56, .68), rgba(5, 18, 31, .42));
  color: inherit;
  text-decoration: none;
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}

.page-home .h-coord-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua-500), var(--lime-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}

.page-home .h-coord-link:hover,
.page-home .h-coord-link:focus-visible {
  border-color: rgba(22, 193, 214, .55);
  background: linear-gradient(150deg, rgba(22, 193, 214, .16), rgba(5, 18, 31, .55));
  transform: translateY(-2px);
}

.page-home .h-coord-link:hover::before,
.page-home .h-coord-link:focus-visible::before {
  transform: scaleX(1);
}

.page-home .h-coord-num {
  grid-area: num;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--lime-400);
}

.page-home .h-coord-title {
  grid-area: title;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.page-home .h-coord-meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(234, 246, 250, .55);
}

/* ---------- 数据快照 ---------- */
.page-home .h-snapshot {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 8vw, 96px) 0;
  background: var(--ink-900);
}

.page-home .h-snap-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
  pointer-events: none;
}

.page-home .h-snapshot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 18, 31, .84), rgba(5, 18, 31, .96));
  pointer-events: none;
}

.page-home .h-snap-in {
  position: relative;
  z-index: 2;
}

.page-home .h-snap-head {
  max-width: 62ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-home .h-snap-head .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--aqua-500);
  margin-bottom: 12px;
}

.page-home .h-snap-note {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(234, 246, 250, .68);
}

.page-home .h-snap-grid {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--home-line-soft);
}

.page-home .h-snap-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 22px 30px;
  background: linear-gradient(160deg, rgba(12, 36, 56, .94), rgba(5, 18, 31, .97));
}

.page-home .h-snap-value {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--read-dark);
}

.page-home .h-snap-value::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--lime-400);
}

.page-home .h-snap-unit {
  margin-left: 5px;
  font-size: .36em;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--aqua-300);
}

.page-home .h-snap-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--read-dark);
}

.page-home .h-snap-meta {
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(234, 246, 250, .56);
}

/* ---------- 三条主路径 ---------- */
.page-home .h-routes {
  padding: clamp(46px, 8vw, 96px) 0;
  background: var(--ink-700);
}

.page-home .h-routes-head {
  max-width: 52ch;
}

.page-home .h-routes-head .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--coral-500);
  margin-bottom: 12px;
}

.page-home .h-routes-grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(24px, 4vw, 44px);
}

.page-home .h-route {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--panel);
  transition: transform .38s cubic-bezier(.2, .7, .3, 1), border-color .38s ease;
}

.page-home .h-route:hover,
.page-home .h-route:focus-within {
  transform: translateY(-4px);
  border-color: rgba(22, 193, 214, .5);
}

.page-home .h-route-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-900);
}

.page-home .h-route-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .86;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.page-home .h-route:hover .h-route-media img {
  transform: scale(1.04);
}

.page-home .h-route-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 18, 31, .10), rgba(5, 18, 31, .82));
  pointer-events: none;
}

.page-home .h-route-bar {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--aqua-500), rgba(22, 193, 214, 0));
}

.page-home .h-route-bar--lime {
  background: linear-gradient(90deg, var(--lime-400), rgba(216, 243, 74, 0));
}

.page-home .h-route-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 26px;
}

.page-home .h-route-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--aqua-500);
}

.page-home .h-route-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.35;
}

.page-home .h-route-copy {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(234, 246, 250, .72);
}

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

.page-home .h-route-tags li {
  padding: 5px 11px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--aqua-300);
}

.page-home .h-route-go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral-500);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 74, .35);
  align-self: flex-start;
  transition: color .28s ease, border-color .28s ease;
}

.page-home .h-route-go:hover,
.page-home .h-route-go:focus-visible {
  color: var(--lime-400);
  border-color: rgba(216, 243, 74, .6);
}

/* ---------- 收藏台 ---------- */
.page-home .h-fav {
  padding: clamp(46px, 8vw, 96px) 0;
  background: var(--paper-100);
  color: var(--read-paper);
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
}

.page-home .h-fav .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: #b8482c;
  margin-bottom: 12px;
}

.page-home .h-fav .section-title {
  color: var(--read-paper);
}

.page-home .h-fav-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-home .h-fav-lead {
  max-width: 40ch;
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(16, 32, 46, .78);
}

.page-home .h-fav-points {
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-home .h-fav-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(16, 32, 46, .82);
}

.page-home .h-fav-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 3px;
  border-radius: 3px;
  background: var(--coral-500);
}

.page-home .h-fav-board {
  padding: 24px 22px 26px;
  border: 1px solid rgba(126, 230, 240, .24);
  border-radius: var(--home-radius);
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
  color: var(--read-dark);
  box-shadow: 0 34px 60px -44px rgba(5, 18, 31, .85);
}

.page-home .h-fav-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(126, 230, 240, .26);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--aqua-300);
}

.page-home .h-fav-count {
  color: var(--lime-400);
}

.page-home .h-fav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .h-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(126, 230, 240, .26);
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(234, 246, 250, .84);
}

.page-home .h-chip::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(126, 230, 240, .5);
}

.page-home .h-chip--on {
  border-color: rgba(216, 243, 74, .55);
  background: rgba(216, 243, 74, .1);
  color: var(--read-dark);
}

.page-home .h-chip--on::before {
  background: var(--lime-400);
}

.page-home .h-fav-hint {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(234, 246, 250, .58);
}

/* ---------- 最近更新 ---------- */
.page-home .h-feed {
  padding: clamp(46px, 8vw, 96px) 0;
  background: var(--ink-900);
}

.page-home .h-feed-grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

.page-home .h-feed-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-line);
  aspect-ratio: 3 / 4;
  background: var(--ink-700);
}

.page-home .h-feed-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.page-home .h-feed-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(22, 193, 214, .26), rgba(5, 18, 31, .70) 70%);
  pointer-events: none;
}

.page-home .h-feed-main .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--aqua-500);
  margin-bottom: 12px;
}

.page-home .h-feed-list {
  margin: clamp(18px, 3vw, 28px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--home-line-soft);
}

.page-home .h-feed-item {
  border-bottom: 1px solid var(--home-line-soft);
}

.page-home .h-feed-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num text"
    "num meta";
  column-gap: 14px;
  row-gap: 4px;
  align-items: baseline;
  padding: 18px 6px;
  color: inherit;
  text-decoration: none;
  transition: background .28s ease, padding-left .28s ease;
}

.page-home .h-feed-link:hover,
.page-home .h-feed-link:focus-visible {
  background: rgba(22, 193, 214, .07);
  padding-left: 14px;
}

.page-home .h-feed-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--lime-400);
}

.page-home .h-feed-text {
  grid-area: text;
  font-size: 15.5px;
  line-height: 1.7;
}

.page-home .h-feed-meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(234, 246, 250, .5);
}

.page-home .h-feed-more {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--aqua-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 230, 240, .4);
  transition: color .28s ease, border-color .28s ease;
}

.page-home .h-feed-more:hover,
.page-home .h-feed-more:focus-visible {
  color: var(--lime-400);
  border-color: rgba(216, 243, 74, .6);
}

/* ---------- 咨询入口 ---------- */
.page-home .h-cta {
  padding: clamp(30px, 5vw, 56px) 0 clamp(56px, 9vw, 108px);
  background: var(--ink-900);
}

.page-home .h-cta-in {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(126, 230, 240, .28);
  border-radius: var(--home-radius);
  background:
    radial-gradient(120% 140% at 6% 0%, rgba(22, 193, 214, .26), transparent 60%),
    linear-gradient(120deg, rgba(255, 107, 74, .16), rgba(5, 18, 31, .92) 62%);
}

.page-home .h-cta-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.page-home .h-cta-copy p {
  max-width: 46ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(234, 246, 250, .76);
}

.page-home .h-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.page-home .h-cta-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--aqua-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 230, 240, .4);
  transition: color .28s ease, border-color .28s ease;
}

.page-home .h-cta-link:hover,
.page-home .h-cta-link:focus-visible {
  color: var(--lime-400);
  border-color: rgba(216, 243, 74, .6);
}

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

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

@media (min-width: 880px) {
  .page-home .h-open-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: end;
  }

  .page-home .h-open-visual {
    margin-bottom: 8px;
  }

  .page-home .h-coords {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .page-home .h-routes-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .h-route--media {
    display: flex;
  }

  .page-home .h-fav-grid {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: 54px;
  }

  .page-home .h-feed-grid {
    grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
    gap: 48px;
  }

  .page-home .h-cta-in {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
  }
}

@media (min-width: 1080px) {
  .page-home .h-snap-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .h-open-grid {
    gap: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .h-coord-link,
  .page-home .h-route,
  .page-home .h-route-media img,
  .page-home .h-feed-link,
  .page-home .h-coord-link::before {
    transition: none;
  }

  .page-home .h-coord-link:hover,
  .page-home .h-route:hover,
  .page-home .h-route:focus-within {
    transform: none;
  }

  .page-home .h-route:hover .h-route-media img {
    transform: none;
  }
}
