.page-home {
  --home-pad: clamp(56px, 8vw, 112px);
  --home-gap: clamp(20px, 3.5vw, 40px);
  position: relative;
  color: var(--bone);
  background:
    radial-gradient(900px 520px at 80% -8%, rgba(77, 227, 234, 0.12), transparent 62%),
    radial-gradient(760px 460px at 4% 2%, rgba(139, 124, 255, 0.12), transparent 66%),
    var(--ink);
  overflow-x: clip;
}

.page-home .home-section {
  padding-block: var(--home-pad);
  scroll-margin-top: 96px;
}

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

.page-home .home-head {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-home .home-head__title {
  margin: 14px 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.page-home .home-head__note {
  margin: 0;
  max-width: 32em;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero {
  position: relative;
  padding-block: clamp(28px, 5vw, 62px) clamp(40px, 7vw, 88px);
}

.page-home .home-hero__glow {
  position: absolute;
  inset: -18% 42% 48% -12%;
  background: radial-gradient(closest-side, rgba(77, 227, 234, 0.2), transparent 72%);
  filter: blur(24px);
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

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

.page-home .home-hero__title {
  margin: 18px 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 13vw, 128px);
  line-height: 0.9;
  letter-spacing: 0.005em;
  color: var(--bone);
}

.page-home .home-hero__title span {
  background: linear-gradient(100deg, var(--cyan) 8%, var(--violet) 58%, var(--rose) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .home-hero__lead {
  margin: 0 0 26px;
  max-width: 30em;
  color: var(--mist);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
}

.page-home .home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: linear-gradient(160deg, rgba(20, 31, 58, 0.9), rgba(7, 12, 26, 0.95));
}

.page-home .home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: saturate(0.92) contrast(1.06);
}

.page-home .home-hero__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 26, 0.72);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.page-home .home-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-index__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .home-index__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
}

.page-home .home-index__item:hover,
.page-home .home-index__item[aria-current="true"] {
  color: var(--bone);
  border-color: rgba(77, 227, 234, 0.5);
  background: rgba(77, 227, 234, 0.08);
}

/* ---------- 三张路径卡 ---------- */
.page-home .path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(20, 31, 58, 0.92), rgba(12, 20, 40, 0.96));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.page-home .path-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 0 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 227, 234, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.page-home .path-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 227, 234, 0.42);
  box-shadow: 0 26px 50px -34px rgba(77, 227, 234, 0.6);
}

.page-home .path-card:hover::after {
  opacity: 1;
}

.page-home .path-card:hover .path-card__num {
  color: var(--cyan);
}

.page-home .path-card__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--amber);
  transition: color 0.22s ease;
}

.page-home .path-card__title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--bone);
}

.page-home .path-card__text {
  margin: 0;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.8;
}

.page-home .path-card__link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  border-bottom: 1px solid rgba(77, 227, 234, 0.4);
  padding-bottom: 2px;
}

.page-home .path-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.page-home .path-card__shot {
  margin: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: linear-gradient(180deg, rgba(77, 227, 234, 0.16), rgba(7, 12, 26, 0.9));
}

.page-home .path-card__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 夜场切片 ---------- */
.page-home .scene-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}

.page-home .scene-strip > * {
  scroll-snap-align: start;
}

.page-home .scene {
  flex: 0 0 min(76vw, 250px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(12, 20, 40, 0.82);
}

.page-home .scene__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.page-home .scene__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--bone);
}

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

.page-home .scene__figure {
  flex: 0 0 min(80vw, 320px);
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(12, 20, 40, 0.82);
}

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

/* ---------- 版本刻度 ---------- */
.page-home .version-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: start;
}

.page-home .version-track {
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 28px;
  position: relative;
}

.page-home .version-track::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--rose), var(--cyan) 58%, var(--violet));
  opacity: 0.7;
}

.page-home .version-item {
  position: relative;
  padding-bottom: 28px;
}

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

.page-home .version-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(77, 227, 234, 0.12);
}

.page-home .version-item--rose::before {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 92, 138, 0.14);
}

.page-home .version-item--amber::before {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(244, 184, 96, 0.14);
}

.page-home .version-item__code {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-home .version-item--rose .version-item__code {
  color: var(--rose);
}

.page-home .version-item--amber .version-item__code {
  color: var(--amber);
}

.page-home .version-item__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--bone);
}

.page-home .version-item__text {
  margin: 0;
  max-width: 34em;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.8;
}

.page-home .version-figure {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, rgba(20, 31, 58, 0.9), rgba(7, 12, 26, 0.96));
}

.page-home .version-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.page-home .home-versions__more {
  margin-top: clamp(24px, 3vw, 36px);
}

/* ---------- 规则透明卡 ---------- */
.page-home .rule-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(24px, 4vw, 46px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(244, 184, 96, 0.28);
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(244, 184, 96, 0.14), transparent 70%),
    linear-gradient(160deg, rgba(20, 31, 58, 0.95), rgba(7, 12, 26, 0.98));
}

.page-home .rule-board__main {
  min-width: 0;
}

.page-home .rule-chapters {
  list-style: none;
  margin: 24px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.page-home .rule-chapters li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 12, 26, 0.55);
  font-size: 14px;
  color: var(--bone);
}

.page-home .rule-chapters span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.page-home .rule-plate {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 184, 96, 0.34);
  background: linear-gradient(150deg, rgba(244, 184, 96, 0.16), rgba(20, 31, 58, 0.9));
}

.page-home .rule-plate__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.page-home .rule-plate__value {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: 0.06em;
  color: var(--bone);
  line-height: 1.2;
}

.page-home .rule-plate__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 城市与服务网络 ---------- */
.page-home .net-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-home .net-stat {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 22px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(12, 20, 40, 0.72);
}

.page-home .net-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1;
  color: var(--cyan);
}

.page-home .net-stat:nth-child(2n) .net-stat__num {
  color: var(--bone);
}

.page-home .net-stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .home-network__note {
  margin: 26px 0 20px;
  max-width: 40em;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.85;
}

.page-home .home-network__more {
  display: inline-flex;
}

/* ---------- 收尾 ---------- */
.page-home .home-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(77, 227, 234, 0.14), rgba(139, 124, 255, 0.12) 55%, rgba(255, 92, 138, 0.12));
}

.page-home .home-cta__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.2;
  color: var(--bone);
}

.page-home .home-cta__text {
  margin: 0;
  max-width: 32em;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 桌面布局 ---------- */
@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) 88px;
    align-items: start;
  }

  .page-home .home-hero__media {
    aspect-ratio: 4 / 5;
    margin-top: 26px;
  }

  .page-home .home-index {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    position: sticky;
    top: 112px;
    align-self: start;
    border-left: 1px solid var(--line-strong);
    padding-left: 0;
  }

  .page-home .home-index__item {
    position: relative;
    border: 0;
    border-radius: 0;
    background: none;
    padding: 11px 0 11px 14px;
    font-size: 13px;
  }

  .page-home .home-index__item::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    width: 9px;
    height: 1px;
    background: var(--line-strong);
    transform: translateY(-50%);
    transition: background 0.2s ease;
  }

  .page-home .home-index__item:hover::before,
  .page-home .home-index__item[aria-current="true"]::before {
    background: var(--cyan);
  }

  .page-home .home-index__item:hover,
  .page-home .home-index__item[aria-current="true"] {
    background: none;
    border-color: transparent;
    color: var(--bone);
  }
}

@media (min-width: 860px) {
  .page-home .path-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }

  .page-home .path-card--a {
    grid-column: 1 / 8;
  }

  .page-home .path-card--b {
    grid-column: 8 / 13;
    margin-top: 56px;
  }

  .page-home .path-card--c {
    grid-column: 3 / 11;
  }

  .page-home .path-card--a {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
  }

  .page-home .path-card--a .path-card__shot {
    flex: 0 0 172px;
    aspect-ratio: 3 / 4;
  }

  .page-home .path-card--a .path-card__body {
    flex: 1 1 auto;
  }
}

@media (min-width: 900px) {
  .page-home .version-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: clamp(28px, 4vw, 52px);
  }

  .page-home .rule-board {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-home .scene-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr;
    gap: 18px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .scene,
  .page-home .scene__figure {
    flex: 0 1 auto;
  }

  .page-home .scene__figure {
    aspect-ratio: 3 / 2;
  }

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

@media (min-width: 1240px) {
  .page-home .home-hero__title {
    letter-spacing: 0.01em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .path-card,
  .page-home .path-card::after,
  .page-home .path-card__num,
  .page-home .home-index__item,
  .page-home .home-index__item::before {
    transition: none;
  }

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