.page-shell { width: 100%; min-width: 0; margin-left: 0; background: var(--canvas); }
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1720 / 640;
  min-height: 430px;
  max-height: 640px;
  background: #a9c4dc;
}
.hero-swiper { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-swiper .swiper-slide { height: 100%; }
.hero-swiper img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-swiper .swiper-pagination { z-index: 2; bottom: 156px; }
.hero-swiper .swiper-pagination-bullet { width: 6px; height: 6px; background: #fff; opacity: .55; }
.hero-swiper .swiper-pagination-bullet-active { width: 28px; border-radius: 4px; opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 23, 48, .02) 34%, rgba(5, 23, 48, .14) 58%, rgba(5, 23, 48, .76) 100%);
}
.step-dock {
  position: absolute;
  z-index: 5;
  bottom: 27px;
  left: calc(50% + 6px);
  display: flex;
  width: min(1116px, calc(100% - 48px));
  min-height: 116px;
  align-items: flex-start;
  gap: 13px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  transform: translateX(-50%);
}
.step-tab {
  position: relative;
  display: flex;
  width: 84px;
  min-width: 84px;
  flex: 0 0 84px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease;
}
.step-tab:hover,
.step-tab:focus-visible { background: transparent; outline: none; transform: translateY(-2px); }
.step-tab .step-icon {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
  transition: opacity .18s ease;
}
.step-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: 84px;
  background: var(--step-hover-icon) center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.step-tab:hover::before { opacity: 1; }
.step-tab:hover .step-icon { opacity: 0; }
.step-connector {
  display: block;
  width: 148px;
  height: 32px;
  min-width: 0;
  max-width: 148px;
  flex: 1 1 148px;
  margin-top: 25px;
  object-fit: fill;
  pointer-events: none;
}
.step-tab span:last-child { overflow: visible; font-size: 16px; line-height: 24px; text-align: center; text-shadow: 0 1px 3px rgba(2, 15, 31, .7); white-space: nowrap; }

.mobile-step-menu { display: none; }
.mobile-step-toggle {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(4, 47, 101, .28);
  cursor: pointer;
}
.mobile-step-toggle span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: top .2s ease, transform .2s ease, opacity .16s ease;
}
.mobile-step-toggle span:nth-child(1) { top: 15px; }
.mobile-step-toggle span:nth-child(2) { top: 22px; }
.mobile-step-toggle span:nth-child(3) { top: 29px; }
.mobile-step-panel {
  position: absolute;
  top: 50%;
  left: 60px;
  width: min(260px, calc(100vw - 84px));
  overflow: hidden;
  border: 1px solid rgba(9, 84, 165, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 38px rgba(6, 34, 71, .22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-8px, -50%);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.mobile-step-link {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid #e8edf4;
  padding: 11px 16px;
  background: transparent;
  color: #26364c;
  font: 600 14px/1.45 inherit;
  text-align: left;
  cursor: pointer;
}
.mobile-step-link:last-child { border-bottom: 0; }
.mobile-step-link:hover,
.mobile-step-link:focus-visible { background: #edf5ff; color: var(--blue); outline: none; }
body.mobile-step-open .mobile-step-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}
body.mobile-step-open .mobile-step-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.mobile-step-open .mobile-step-toggle span:nth-child(2) { opacity: 0; }
body.mobile-step-open .mobile-step-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.home-content { padding: 50px 24px 53px; }
.safe-area {
  width: min(calc(100% - 36px), var(--safe));
  margin: 0 auto;
}
.content-grid { width: min(100%, 1462px); margin: 0 auto; }
.main-column { display: grid; grid-template-columns: minmax(0, 1092px) 350px; gap: 18px; min-width: 0; align-items: start; }
.notice-stack, .journey-rail, .discover-section { grid-column: 1; }
.ad-column { grid-column: 2; grid-row: 1 / span 3; }
.notice-stack {
  width: 1088px;
  min-height: 259px;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 23px 30px 25px 23px;
  background: #fff;
  box-shadow: var(--shadow);
}
.notice-head {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--blue);
}
.notice-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice-head-icon { font-size: 26px; }
.notice-head h2 { margin: 0; font-size: 18px; font-weight: 700; line-height: 28px; }
.notice-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.notice-more .material-symbols-rounded { font-size: 19px; }
.notice-board-body {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 23px;
}
.notice-media {
  display: block;
  width: 268px;
  height: 167px;
  overflow: hidden;
  border-radius: 5px;
}
.notice-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.notice-list { display: grid; height: 167px; grid-template-rows: repeat(3, 1fr); }
.notice-card {
  display: grid;
  min-height: 55px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #d6d6d6;
  color: #111;
}
.notice-card:last-child { border-bottom: 0; }
.notice-title { overflow: hidden; margin: 0; font-size: 18px; font-weight: 400; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.notice-card.featured .notice-title { color: var(--blue); }
.notice-date { color: #777; font-size: 14px; line-height: 1; white-space: nowrap; }

.ad-column { display: grid; width: 350px; gap: 0; }
    .ad-card {
      width: 350px;
      position: relative;
      display: block;
  overflow: hidden;
  border-radius: 8px;
      background: #fff;
      box-shadow: 0 4px 15px rgba(24, 42, 72, .08);
    }
    .ad-column .ad-card img,
    .ad-column .swiper-slide > img { display: block !important; }
    .ad-card img { width: 100%; height: 100%; object-fit: cover; }
.ad-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(calc(var(--carousel-index, 0) * -100%), 0, 0);
  transition: transform .7s ease-in-out;
  will-change: transform;
}
.ad-carousel-slide { flex: 0 0 100%; min-width: 0; }
.ad-card.tall { height: 608px; }
.ad-card.jd { height: 234px; }
.ad-card.banner { height: 164px; }
.ad-column > .ad-card.jd { margin-top: 16px; }
.small-ad-swiper { width: 350px; margin-top: 18px; overflow: visible; }
.small-ad-swiper .swiper-wrapper { display: grid; gap: 17px; transform: none; }
.small-ad-swiper .swiper-slide { width: 350px; height: 164px; }
.small-ad-swiper .swiper-pagination { display: none; }
.ad-card--standalone { margin-top: 19px; }
/* 仅在宽屏桌面端对齐底部 */
@media (min-width: 901px) {
  .main-column > .ad-column {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
  }

  .main-column > .ad-column > .small-ad-swiper {
    align-self: start;
    min-height: 0;
  }

  .main-column > .ad-column > .small-ad-swiper .swiper-wrapper {
    height: max-content;
    align-content: start;
  }

  /* 广告数量达到 4 个时，才使用剩余空间拉开广告间距 */
  .main-column > .ad-column > .small-ad-swiper:has(.swiper-slide:nth-child(4)) {
    flex: 1 1 auto;
    align-self: stretch;
  }

  .main-column > .ad-column > .small-ad-swiper:has(.swiper-slide:nth-child(4)) .swiper-wrapper {
    height: 100%;
    display: grid;
    grid-auto-rows: 164px;
    align-content: space-between;
    row-gap: 17px;
  }

  .main-column > .ad-column > :first-child {
    margin-top: 0;
  }

  .main-column > .ad-column > .ad-card--standalone {
    margin-top: 19px;
  }
}
.ad-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 14px;
  display: grid;
  min-width: 49px;
  height: 27px;
  place-items: center;
  border-radius: 14px;
  background: rgba(22, 24, 29, .88);
  color: #fff;
  font: 700 12px/1 Arial, sans-serif;
  pointer-events: none;
}
.ad-dots {
  position: absolute;
  top: 18px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ad-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.85); transition: width .35s ease, border-radius .35s ease; }
.ad-dots i.active { width: 31px; border-radius: 4px; }

.journey-rail {
  --journey-marker-size: 56px;
  --journey-heading-gap: 65px;
  --journey-discover-gap: 40px;
  position: relative;
  display: flow-root;
  width: 1088px;
}
.journey-rail::before {
  position: absolute;
  z-index: 0;
  top: calc(var(--journey-heading-gap) + (var(--journey-marker-size) / 2));
  bottom: calc((var(--journey-discover-gap) + (var(--journey-marker-size) / 2)) * -1);
  left: calc((var(--journey-marker-size) / 2) - .5px);
  border-left: 1px dashed #cfd7e3;
  content: "";
  pointer-events: none;
}
.journey-rail > * { position: relative; z-index: 1; }
.guide-heading,
.discover-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 65px 0 11px;
}
.section-mark {
  position: relative;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e7edf7;
  color: #657187;
}
.section-mark .material-symbols-rounded { font-size: 30px; }
.journey-plane-icon { display: block; width: 37px; height: 27px; object-fit: contain; }
.guide-heading h2 {
  position: absolute;
  left: calc(50% + 20px);
  margin: 0;
  color: #084783;
  font-size: 32px;
  font-weight: 700;
  transform: translateX(-50%);
}

.journey-list { display: grid; gap: 20px; }
.journey-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.journey-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 14px;
  padding: 0 38px 0 43px;
  color: var(--blue);
}
.journey-header .pin { font-size: 32px; }
.journey-header h3 { margin: 0; font-size: 22px; }
.journey-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.journey-action.gold { color: var(--blue); }
.journey-action.gold:hover { color: var(--gold); }
.journey-action .material-symbols-rounded { font-size: 20px; }
#station-3 {
  border: 1px solid var(--blue);
  box-shadow: none;
}
#station-3 { margin-top: 7px; }
#station-3 .journey-header { min-height: 100px; }
#station-3 .journey-action {
  min-width: 112px;
  height: 42px;
  justify-content: center;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
}
#station-3 .journey-action:hover { background: #003f91; color: #fff; }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 28px 45px 53px;
}
.resource-card {
  display: block;
  min-width: 0;
  color: #242a33;
  transition: color .18s ease, transform .18s ease;
}
.resource-card:hover { color: var(--blue); transform: translateY(-2px); }
.resource-card img {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  border-radius: 3px;
  object-fit: cover;
}
.resource-card strong { display: block; margin-top: 16px; font-size: 18px; font-weight: 500; line-height: 1.35; }
.resource-card p { margin: 5px 0 0; color: #747c88; font-size: 12px; line-height: 1.45; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 38px 36px;
}
.service-card img { width: 100%; aspect-ratio: 242 / 152; object-fit: cover; }
.service-card h4 { margin: 18px 0 7px; font-size: 17px; font-weight: 500; }
.service-card p { margin: 0; color: #747c88; font-size: 12px; }
.journey-copy { margin: -6px 0 30px; padding: 0 85px; color: #737c89; font-size: 14px; line-height: 1.75; }
.journey-card.compact .journey-header { min-height: 104px; }
/* 第三、第五站高度与第四站保持一致 */
#station-3,
#station-5 {
  min-height: 104px;
}

#station-3 .journey-header,
#station-5 .journey-header {
  min-height: 58px;
  padding-bottom: 0;
}

#station-3 .journey-copy,
#station-5 .journey-copy {
  margin: -2px 0 15px;
}
.journey-card:first-child { margin-bottom: 5px; }
.journey-card.passport .journey-header { min-height: 58px; padding-bottom: 0; }
.journey-card.passport { min-height: 104px; margin-top: 8px; }
.journey-card.passport .journey-copy { margin: -2px 0 15px; }
#station-5 { margin-top: 8px; }

.discover-heading { margin: 45px 0 16px; }
.discover-heading h2 { margin: 0; color: #20262e; font-size: 28px; }
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.city-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(28, 52, 91, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.city-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(28, 52, 91, .12); }
.city-card img { width: 100%; aspect-ratio: 354 / 202; object-fit: cover; }
.city-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 21px 28px 19px;
}
.city-body h3 { margin: 0 0 12px; font-size: 21px; }
.city-body p { margin: 0; color: #77808d; font-size: 12px; line-height: 1.6; }
.city-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.city-card:hover .city-link { color: var(--gold); }

@media (max-width: 1700px) {
  .main-column { grid-template-columns: minmax(0, 1fr) 350px; }
  .notice-stack { width: auto; }
  .notice-board-body { grid-template-columns: 224px minmax(0, 1fr); }
  .notice-media { width: 224px; }
  .journey-rail { width: auto; margin-left: 0; }
  .resource-grid, .service-grid { padding-right: 26px; padding-left: 26px; }
}

@media (max-width: 1180px) {
  .hero { min-height: 390px; }
  .main-column { grid-template-columns: minmax(0, 1fr) 350px; }
  .guide-heading h2 { font-size: 28px; }
  .journey-header { padding-right: 28px; padding-left: 28px; }
  .resource-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { min-height: 340px; max-height: none; aspect-ratio: 16 / 7; }
  .step-dock { display: none; }
  .mobile-step-menu {
    position: fixed;
    z-index: 55;
    top: 58%;
    left: 12px;
    display: block;
    transform: translateY(-50%);
    transition: transform .2s ease;
  }
  body.mobile-step-peek .mobile-step-menu { transform: translate(-36px, -50%); }
  body.mobile-step-open .mobile-step-menu { transform: translateY(-50%); }
  .home-content { padding-top: 28px; }
  .main-column { display: block; }
  .ad-column { display: block; width: 100%; margin: 28px auto 34px; overflow: visible; }
  .ad-card { width: 100%; margin-top: 0 !important; }
  .ad-card.tall { height: auto; aspect-ratio: 350 / 608; }
  .ad-card.jd { height: auto; aspect-ratio: 350 / 234; margin-top: 16px !important; }
  .ad-card.banner { height: auto; aspect-ratio: 350 / 164; }
  .small-ad-swiper { width: 100%; margin-top: 18px; overflow: hidden; }
  .small-ad-swiper .swiper-wrapper { display: flex; gap: 0; transform: translate3d(0, 0, 0); }
  .small-ad-swiper .swiper-slide { width: 100%; height: auto; aspect-ratio: 350 / 164; }
  .small-ad-swiper .swiper-pagination { display: block; bottom: 10px; }
  .ad-card--standalone { margin-top: 18px !important; }
  .ad-card img { object-position: center; }
  .ad-card.tall img { object-position: center 35%; }
  .journey-rail { --journey-heading-gap: 38px; }
  .guide-heading { margin-top: var(--journey-heading-gap); }
  .guide-heading h2 { position: static; transform: none; }
  .journey-header h3 { font-size: 19px; }
  .city-grid { grid-template-columns: repeat(3, minmax(270px, 1fr)); overflow-x: auto; padding-bottom: 12px; }
}

@media (max-width: 620px) {
  .hero { min-height: auto; aspect-ratio: auto; }
  .hero-swiper img { object-position: 62% center; }
  .safe-area { width: min(calc(100% - 24px), var(--safe)); }
  .notice-stack { min-height: 0; padding: 14px 12px 12px; }
  .notice-head { min-height: 26px; margin-bottom: 8px; }
  .notice-head-icon { font-size: 23px; }
  .notice-head h2 { font-size: 17px; line-height: 26px; }
  .notice-more { font-size: 12px; }
  .notice-board-body { display: block; }
  .notice-media { display: none; }
  .notice-list { height: auto; }
  .notice-card { min-height: 52px; gap: 10px; }
  .notice-title { font-size: 16px; }
  .notice-date { font-size: 12px; }
  .journey-rail { --journey-marker-size: 44px; }
  .guide-heading, .discover-heading { gap: 12px; }
  .section-mark { width: 44px; height: 44px; }
  .journey-plane-icon { width: 29px; height: 21px; }
  .guide-heading h2 { font-size: 23px; }
  .journey-header { min-height: 76px; gap: 8px; padding: 0 14px; }
  .journey-header .pin { font-size: 25px; }
  .journey-header h3 { font-size: 17px; }
  .journey-action { gap: 3px; font-size: 12px; }
  #station-3 .journey-header { min-height: 82px; }
  #station-3 .journey-action { min-width: 86px; height: 34px; }
  .resource-grid, .service-grid { grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 12px 18px; }
  .resource-card { min-height: 0; }
  .resource-card strong { margin-top: 10px; font-size: 15px; }
  .resource-card p { margin-top: 3px; font-size: 11px; }
  .service-card h4 { margin-top: 10px; font-size: 15px; }
  .service-card p { display: none; }
  .journey-copy { margin-top: 0; padding: 0 44px 22px; font-size: 13px; }
  #station-3, .journey-card.passport, #station-5 { margin-top: 0; }
  .ad-column { grid-template-columns: repeat(8, minmax(245px, 78vw)); }
  .city-grid { grid-template-columns: repeat(3, minmax(265px, 82vw)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .ad-carousel-track { transform: translate3d(0, 0, 0) !important; }
}

.ad-swiper .swiper-slide { display: block; height: 100%; }
.ad-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.ad-swiper .swiper-pagination { bottom: 10px; }
.ad-card.tall .swiper-pagination { bottom: 24px; }
.ad-card.jd .swiper-pagination { padding-right: 20px; text-align: right; }
.ad-swiper .swiper-pagination-bullet { width: 6px; height: 6px; background: #fff; opacity: .5; }
.ad-swiper .swiper-pagination-bullet-active { width: 28px; border-radius: 4px; opacity: 1; }
.small-ad-swiper .swiper-pagination-bullet { width: 6px; height: 6px; background: #fff; opacity: .5; }
.small-ad-swiper .swiper-pagination-bullet-active { width: 28px; border-radius: 4px; opacity: 1; }
