/* ===== 首页 page-home ===== */

.page-home {
  background: var(--xy-ink);
  color: var(--xy-white);
  overflow-x: clip;
}

/* ---------- 面包屑 ---------- */

.page-home .xy-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(14px, 2.6vw, 24px);
  font-family: var(--xy-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--xy-mist);
}

.page-home .xy-crumbs__steps + .xy-crumbs__steps::before {
  content: "›";
  margin-right: 10px;
  color: var(--xy-rule);
}

/* ---------- 首屏框景 ---------- */

.page-home .home-hero {
  padding: clamp(22px, 4vw, 44px) 0 clamp(40px, 7vw, 82px);
}

.page-home .home-hero__frame {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3.4vw, 46px);
  border: 1px solid var(--xy-rule);
  border-radius: var(--xy-r-l);
  background:
    radial-gradient(120% 88% at 100% 0%, rgba(44, 229, 210, .14), transparent 58%),
    radial-gradient(90% 70% at 0% 100%, rgba(255, 107, 69, .12), transparent 60%),
    linear-gradient(178deg, var(--xy-indigo), var(--xy-ink) 72%);
  box-shadow: var(--xy-shadow-card);
}

.page-home .home-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--xy-rule) 0 1px, transparent 1px 46px);
  opacity: .3;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 46%);
  mask-image: linear-gradient(180deg, #000, transparent 46%);
}

.page-home .home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 42px);
}

.page-home .home-hero__title {
  margin: .16em 0 .42em;
  font-size: clamp(2.55rem, 8.4vw, 5.4rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.02em;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--xy-cyan);
}

.page-home .home-hero__lead {
  max-width: 54ch;
  margin: 0 0 clamp(20px, 3vw, 28px);
  color: #cfe0f2;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
}

.page-home .home-hero__version {
  margin-bottom: clamp(18px, 2.6vw, 26px);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.page-home .home-hero__hint {
  max-width: 30ch;
  margin: 0;
}

.page-home .home-hero__stage {
  position: relative;
  margin: 0;
  border-radius: var(--xy-r-m);
  overflow: hidden;
  border: 1px solid var(--xy-rule);
  background: var(--xy-deep);
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  opacity: .92;
}

.page-home .home-hero__cap {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--xy-rule);
  background: rgba(10, 26, 47, .88);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--xy-mist);
}

@media (min-width: 880px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
  }

  .page-home .home-hero__stage::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 8px;
    background-image: repeating-linear-gradient(180deg, var(--xy-gold) 0 1px, transparent 1px 22px);
    opacity: .5;
  }
}

/* ---------- 第二栏：暖金下载横幅 ---------- */

.page-home .home-band {
  padding: 0 0 clamp(48px, 8vw, 92px);
}

.page-home .home-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(22px, 3.4vw, 42px);
  border-radius: var(--xy-r-l);
  color: var(--xy-deep);
  background: linear-gradient(118deg, var(--xy-gold), #fbd47a 52%, var(--xy-gold));
  box-shadow: 0 34px 70px -50px rgba(247, 183, 51, .9);
}

.page-home .home-band__eyebrow {
  margin: 0 0 10px;
  font-family: var(--xy-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(6, 16, 31, .68);
}

.page-home .home-band__title {
  margin: 0 0 10px;
  color: var(--xy-deep);
}

.page-home .home-band__lead {
  max-width: 58ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(6, 16, 31, .78);
}

.page-home .home-band__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
}

.page-home .home-band__list {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 2px 2px 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-band__list > li {
  flex: 0 0 78%;
  min-width: 0;
  scroll-snap-align: start;
}

.page-home .home-band__list a {
  display: grid;
  gap: 7px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(6, 16, 31, .18);
  border-radius: var(--xy-r-m);
  background: rgba(255, 255, 255, .56);
  color: var(--xy-deep);
  text-decoration: none;
  transition: background .22s var(--xy-ease), transform .22s var(--xy-ease);
}

.page-home .home-band__list a:hover {
  background: rgba(255, 255, 255, .88);
  transform: translateY(-2px);
}

.page-home .home-band__k {
  font-family: var(--xy-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(6, 16, 31, .55);
}

.page-home .home-band__list strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}

.page-home .home-band__list a > span:last-child {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(6, 16, 31, .74);
}

.page-home .home-band__figure {
  margin: 0;
  border-radius: var(--xy-r-m);
  overflow: hidden;
  border: 1px solid rgba(6, 16, 31, .18);
  background: rgba(255, 255, 255, .4);
}

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

@media (min-width: 780px) {
  .page-home .home-band__list {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .home-band__list > li {
    flex: 1 1 190px;
  }
}

@media (min-width: 980px) {
  .page-home .home-band__body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: stretch;
  }
}

/* ---------- 路径轴 + 卡片流 ---------- */

.page-home .home-routes {
  padding: 0 0 clamp(48px, 8vw, 92px);
}

.page-home .home-routes__head {
  max-width: 62ch;
  margin-bottom: clamp(22px, 3.6vw, 38px);
}

.page-home .home-routes__head .xy-h2 {
  margin: 0 0 12px;
}

.page-home .home-routes__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--xy-mist);
}

.page-home .home-routes__map {
  margin: 0 0 clamp(26px, 4vw, 46px);
  border: 1px solid var(--xy-rule);
  border-radius: var(--xy-r-m);
  overflow: hidden;
  background: var(--xy-deep);
}

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

.page-home .home-routes__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.page-home .home-routes__axis {
  display: flex;
  gap: 6px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-routes__node {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding-right: 14px;
  font-family: var(--xy-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--xy-mist);
}

.page-home .home-routes__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--xy-cyan);
  background: transparent;
}

.page-home .home-routes__node:nth-child(3) .home-routes__dot {
  border-color: var(--xy-gold);
}

.page-home .home-routes__node:nth-child(5) .home-routes__dot {
  border-color: var(--xy-coral);
}

.page-home .home-routes__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .route-card {
  padding: 20px 20px 22px;
  border: 1px solid var(--xy-rule);
  border-radius: var(--xy-r-m);
  background: linear-gradient(158deg, rgba(18, 41, 74, .95), rgba(10, 26, 47, .95));
  transition: border-color .24s var(--xy-ease), transform .24s var(--xy-ease);
}

.page-home .route-card:hover {
  border-color: rgba(44, 229, 210, .55);
  transform: translateY(-2px);
}

.page-home .route-card__meta {
  margin: 0 0 8px;
  font-family: var(--xy-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--xy-gold);
}

.page-home .route-card__title {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  line-height: 1.4;
}

.page-home .route-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #c3d5ea;
}

.page-home .route-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(44, 229, 210, .38);
  font-size: 14px;
  color: var(--xy-cyan);
  text-decoration: none;
}

.page-home .route-card__link::after {
  content: "→";
  font-family: var(--xy-mono);
}

.page-home .route-card__link:hover {
  border-bottom-color: var(--xy-cyan);
}

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

@media (min-width: 900px) {
  .page-home .home-routes__layout {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 36px;
  }

  .page-home .home-routes__axis {
    position: relative;
    flex-direction: column;
    gap: 30px;
    padding: 10px 0;
    overflow: visible;
  }

  .page-home .home-routes__axis::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 4px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--xy-cyan), var(--xy-gold) 55%, var(--xy-coral));
  }

  .page-home .home-routes__axis::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background-image: repeating-linear-gradient(180deg, var(--xy-rule) 0 1px, transparent 1px 16px);
    opacity: .5;
  }

  .page-home .home-routes__node {
    position: relative;
    z-index: 1;
    padding-right: 0;
  }
}

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

  .page-home .home-routes__cards > .route-card:first-child {
    grid-column: span 2;
  }
}

/* ---------- 三种浏览方式 ---------- */

.page-home .home-views {
  padding: 0 0 clamp(48px, 8vw, 92px);
}

.page-home .home-views__head {
  max-width: 58ch;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.page-home .home-views__head .xy-h2 {
  margin: 0 0 12px;
}

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

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

.page-home .home-views__tab {
  padding: 9px 18px;
  border: 1px solid var(--xy-rule);
  border-radius: var(--xy-pill);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--xy-mist);
  text-decoration: none;
  transition: color .2s var(--xy-ease), border-color .2s var(--xy-ease);
}

.page-home .home-views__tab:hover {
  color: var(--xy-white);
  border-color: var(--xy-cyan);
}

.page-home .home-views__panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .home-views__pane {
  padding: 20px 22px 22px;
  border: 1px solid var(--xy-rule);
  border-radius: var(--xy-r-m);
  background: rgba(18, 41, 74, .55);
  transition: border-color .22s var(--xy-ease), background .22s var(--xy-ease);
}

.page-home .home-views__pane:target {
  border-color: var(--xy-cyan);
  background: rgba(18, 41, 74, .92);
}

.page-home .home-views__panes:has(.home-views__pane:target) > .home-views__pane:not(:target) {
  display: none;
}

.page-home .home-views__pane .xy-h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--xy-cyan);
}

.page-home .home-views__pane p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #c3d5ea;
}

@media (min-width: 860px) {
  .page-home .home-views__panes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
}

/* ---------- 回访通道 ---------- */

.page-home .home-return {
  padding: 0 0 clamp(48px, 8vw, 92px);
}

.page-home .home-return__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.6vw, 40px);
  align-items: center;
}

.page-home .home-return__copy .xy-h2 {
  margin: 0 0 14px;
}

.page-home .home-return__text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.85;
  color: #c3d5ea;
}

.page-home .home-return__note {
  margin: 0 0 22px;
}

.page-home .home-return__figure {
  position: relative;
  margin: 0;
  border-radius: var(--xy-r-m);
  overflow: hidden;
  border: 1px solid var(--xy-rule);
  background: var(--xy-deep);
}

.page-home .home-return__figure::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--xy-gold), var(--xy-coral));
  z-index: 1;
}

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

@media (min-width: 900px) {
  .page-home .home-return__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- 更新节奏与服务响应 ---------- */

.page-home .home-cadence {
  padding: 0 0 clamp(54px, 9vw, 104px);
}

.page-home .home-cadence__head {
  margin-bottom: clamp(22px, 3.4vw, 34px);
}

.page-home .home-cadence__head .xy-h2 {
  margin: 0;
}

.page-home .home-cadence__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 clamp(20px, 3vw, 30px);
  padding: 0;
  list-style: none;
}

.page-home .home-cadence__stats li {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px 18px 20px;
  border: 1px solid var(--xy-rule);
  border-radius: var(--xy-r-m);
  background: linear-gradient(165deg, rgba(18, 41, 74, .9), rgba(10, 26, 47, .9));
}

.page-home .home-cadence__num {
  font-family: var(--xy-mono);
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--xy-gold);
}

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

.page-home .home-cadence__note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--xy-rule);
}

.page-home .home-cadence__note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #c3d5ea;
}

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

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

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .route-card,
  .page-home .home-band__list a,
  .page-home .home-views__pane {
    transition: none;
  }

  .page-home .route-card:hover,
  .page-home .home-band__list a:hover {
    transform: none;
  }
}
