.page-home {
  --home-notch: 18px;
  --home-gap: clamp(18px, 2.6vw, 28px);
  --home-pad-y: clamp(56px, 8vw, 104px);
  display: block;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 78px) 0 clamp(52px, 7.5vw, 96px);
  color: var(--cream);
  background:
    radial-gradient(115% 85% at 86% 8%, rgba(25, 211, 197, .2), transparent 58%),
    radial-gradient(90% 70% at 6% 98%, rgba(255, 107, 74, .16), transparent 62%),
    linear-gradient(158deg, var(--deep) 0%, var(--night) 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(127, 240, 230, .07) 0 1px, transparent 1px 14px);
}

.page-home .home-hero__slash {
  position: absolute;
  z-index: -1;
  left: -14%;
  right: -14%;
  bottom: -26%;
  height: 58%;
  pointer-events: none;
  opacity: .3;
  background: linear-gradient(96deg, rgba(255, 107, 74, .85), rgba(255, 107, 74, 0) 60%);
  clip-path: polygon(0 46%, 100% 0, 100% 58%, 0 100%);
}

.page-home .home-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(30px, 5vw, 52px);
}

.page-home .home-hero__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-lt);
}

.page-home .home-hero__title {
  margin: 16px 0 0;
  font-size: clamp(40px, 10.4vw, 104px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--cream);
}

.page-home .home-hero__accent {
  font-style: normal;
  color: var(--coral);
}

.page-home .home-hero__lede {
  margin: 22px 0 0;
  max-width: 40ch;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.85;
  color: rgba(247, 241, 228, .82);
}

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

.page-home .home-hero__actions .btn--ghost {
  border-color: rgba(127, 240, 230, .5);
  color: var(--cream);
}

.page-home .home-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(22px, 4vw, 46px);
  margin: 32px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid rgba(127, 240, 230, .26);
}

.page-home .home-hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-home .home-hero__facts .metric {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan-lt);
  font-variant-numeric: tabular-nums;
}

.page-home .home-hero__facts li > span:last-child {
  font-size: 13px;
  color: rgba(247, 241, 228, .68);
}

.page-home .home-hero__panel {
  position: relative;
  overflow: hidden;
  background: var(--night);
  border: 1px solid rgba(127, 240, 230, .24);
  clip-path: polygon(var(--home-notch) 0, 100% 0, 100% calc(100% - var(--home-notch)), calc(100% - var(--home-notch)) 100%, 0 100%, 0 var(--home-notch));
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: clamp(180px, 26vw, 268px);
  object-fit: cover;
  object-position: center 35%;
}

.page-home .home-hero__panel-body {
  padding: clamp(20px, 3vw, 28px);
}

.page-home .home-hero__panel-title {
  margin: 12px 0 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--cream);
}

.page-home .home-hero__meta {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-hero__meta li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  font-size: 14px;
  color: rgba(247, 241, 228, .78);
  border-bottom: 1px dashed rgba(127, 240, 230, .2);
}

.page-home .home-hero__meta li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .home-hero__meta .metric {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

/* ---------- 两栏找法 ---------- */
.page-home .home-finder {
  padding: var(--home-pad-y) 0;
  background: var(--cream);
}

.page-home .home-finder__head,
.page-home .home-library__head,
.page-home .home-rhythm__head {
  max-width: 64ch;
}

.page-home .section-title {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
}

.page-home .home-finder__head .lede,
.page-home .home-library__head .lede {
  margin: 16px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--slate);
}

.page-home .home-finder__grid {
  display: grid;
  gap: var(--home-gap);
  align-items: start;
  margin-top: clamp(28px, 4vw, 46px);
}

.page-home .home-finder__coltitle {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-home .home-finder__colnote {
  margin: 8px 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

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

.page-home .home-cmp {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}

.page-home .home-cmp:hover,
.page-home .home-cmp:focus-within {
  transform: translateY(-4px);
  border-color: var(--cyan);
  border-left-color: var(--coral);
}

.page-home .home-cmp__num {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.page-home .home-cmp__t {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.page-home .home-cmp__d {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

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

.page-home .home-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .home-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 108px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: var(--cream);
  background: var(--deep);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background-color .28s var(--ease);
}

.page-home .home-tile:hover,
.page-home .home-tile:focus-visible {
  background: #123A63;
}

.page-home .home-tile:first-child {
  grid-column: span 2;
  min-height: 132px;
  background: linear-gradient(118deg, var(--deep), #16406B);
  border-left: 3px solid var(--coral);
}

.page-home .home-tile:first-child:hover {
  background: linear-gradient(118deg, #123A63, #1B4E7C);
}

.page-home .home-tile__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-home .home-tile__t {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.page-home .home-tile__d {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 241, 228, .68);
}

/* ---------- 横屏场景条 ---------- */
.page-home .home-scene {
  padding: 0 0 var(--home-pad-y);
  background: var(--cream);
}

.page-home .home-scene__inner {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(118deg, var(--paper) 0%, rgba(25, 211, 197, .16) 100%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .home-scene__media {
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .home-scene__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-scene__title {
  margin: 12px 0 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.018em;
  color: var(--ink);
}

.page-home .home-scene__copy p:not(.tag) {
  margin: 14px 0 0;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .home-scene__copy .btn {
  margin-top: 20px;
}

/* ---------- 跨设备同步 ---------- */
.page-home .home-sync {
  position: relative;
  overflow: hidden;
  padding: var(--home-pad-y) 0;
  color: var(--cream);
  background:
    radial-gradient(90% 80% at 92% 0%, rgba(255, 107, 74, .14), transparent 60%),
    var(--deep);
}

.page-home .home-sync__inner {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.page-home .home-sync__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(127, 240, 230, .22);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-home .home-sync__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-home .home-sync .section-num {
  color: var(--cyan);
}

.page-home .home-sync .section-title {
  color: var(--cream);
}

.page-home .home-sync .lede {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: rgba(247, 241, 228, .78);
}

.page-home .home-sync__steps {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: syncstep;
}

.page-home .home-sync__steps li {
  position: relative;
  counter-increment: syncstep;
  padding: 14px 16px 14px 54px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(247, 241, 228, .88);
  background: rgba(7, 26, 47, .6);
  border-left: 2px solid rgba(25, 211, 197, .5);
}

.page-home .home-sync__steps li::before {
  content: counter(syncstep, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-lt);
}

.page-home .home-sync__copy .btn {
  margin-top: 26px;
}

/* ---------- 内容中心 ---------- */
.page-home .home-library {
  padding: var(--home-pad-y) 0;
  background: var(--cream);
}

.page-home .home-library__grid {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(26px, 4vw, 44px);
}

.page-home .home-lib {
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}

.page-home .home-lib:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.page-home .home-lib__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.page-home .home-lib h3 {
  margin: 14px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-home .home-lib p:last-child {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .home-lib--deep {
  background: var(--deep);
  border-color: rgba(25, 211, 197, .4);
}

.page-home .home-lib--deep .home-lib__num {
  color: var(--cyan);
}

.page-home .home-lib--deep h3 {
  color: var(--cream);
}

.page-home .home-lib--deep p:last-child {
  color: rgba(247, 241, 228, .76);
}

.page-home .home-library__link {
  margin: clamp(24px, 3vw, 34px) 0 0;
  font-size: 15px;
}

/* ---------- 更新节奏 ---------- */
.page-home .home-rhythm {
  padding: var(--home-pad-y) 0;
  color: var(--cream);
  background: var(--deep);
}

.page-home .home-rhythm .section-num {
  color: var(--cyan);
}

.page-home .home-rhythm .section-title {
  color: var(--cream);
}

.page-home .home-rhythm .lede {
  margin: 16px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: rgba(247, 241, 228, .76);
}

.page-home .home-rhythm__rail {
  display: flex;
  gap: 16px;
  margin-top: clamp(26px, 4vw, 40px);
  padding: 4px clamp(18px, 4vw, 40px) 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.page-home .home-round {
  flex: 0 0 min(80vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--night);
  border: 1px solid rgba(127, 240, 230, .2);
  border-top: 3px solid var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .home-round--now {
  background: linear-gradient(150deg, #123A63, var(--night));
  border-top-color: var(--coral);
}

.page-home .home-round__k {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan-lt);
}

.page-home .home-round__t {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--cream);
}

.page-home .home-round__d {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(247, 241, 228, .74);
}

.page-home .home-round__m {
  margin: auto 0 0;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  border-top: 1px dashed rgba(127, 240, 230, .24);
  font-variant-numeric: tabular-nums;
}

.page-home .home-rhythm__foot {
  margin-top: 8px;
}

/* ---------- 城市收尾 ---------- */
.page-home .home-city {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0;
  color: var(--cream);
  background: var(--night);
}

.page-home .home-city__ridge {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  opacity: .34;
}

.page-home .home-city__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 26, 47, .92) 0%, rgba(7, 26, 47, .7) 48%, rgba(7, 26, 47, .95) 100%),
    linear-gradient(100deg, rgba(11, 42, 74, .8), rgba(7, 26, 47, .5));
}

.page-home .home-city__inner {
  position: relative;
  max-width: 62ch;
}

.page-home .home-city .section-num {
  color: var(--cyan-lt);
}

.page-home .home-city .section-title {
  color: var(--cream);
}

.page-home .home-city__inner > p:not(.section-num) {
  margin: 18px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: rgba(247, 241, 228, .82);
}

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

.page-home .home-city__links .btn--ghost {
  border-color: rgba(127, 240, 230, .5);
  color: var(--cream);
}

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

  .page-home .home-lib--wide {
    grid-column: span 2;
  }
}

@media (min-width: 860px) {
  .page-home .home-scene__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }
}

@media (min-width: 880px) {
  .page-home .home-sync__inner {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(32px, 5vw, 68px);
  }

  .page-home .home-sync__copy {
    padding-bottom: 8px;
  }
}

@media (min-width: 940px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: end;
    gap: clamp(32px, 4vw, 64px);
  }

  .page-home .home-hero__panel {
    margin-inline-end: clamp(0px, 2vw, 24px);
  }
}

@media (min-width: 960px) {
  .page-home .home-finder__grid {
    grid-template-columns: minmax(0, 1.04fr) 56px minmax(0, .96fr);
  }

  .page-home .home-finder__hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: stretch;
    min-height: 260px;
    padding-top: clamp(30px, 6vw, 78px);
  }

  .page-home .home-finder__hubline {
    flex: 1 1 auto;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  }

  .page-home .home-finder__hubtext {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .2em;
    color: var(--slate);
    writing-mode: vertical-rl;
  }
}

@media (min-width: 1040px) {
  .page-home .home-library__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-lib--wide {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-cmp,
  .page-home .home-lib,
  .page-home .home-tile {
    transition: none;
  }

  .page-home .home-cmp:hover,
  .page-home .home-lib:hover {
    transform: none;
  }
}
