/* ===== 首页 · 海报式分层路线图 ===== */

.page-home {
  display: block;
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  padding: 36px 0 68px;
  color: var(--cream);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background:
    radial-gradient(110% 82% at 6% -12%, rgba(200, 144, 31, 0.30), transparent 62%),
    radial-gradient(88% 70% at 102% 8%, rgba(47, 107, 94, 0.30), transparent 60%),
    linear-gradient(172deg, #0F2440 0%, #1B3A63 54%, #0A1830 100%);
  overflow: hidden;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(114deg, rgba(251, 246, 236, 0.05) 0 1px, transparent 1px 9px);
}

.page-home .home-hero__route {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 190px;
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}

.page-home .home-hero__lead .kicker {
  margin: 0 0 14px;
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(38px, 9.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cream);
  text-wrap: balance;
}

.page-home .home-hero__intro {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(251, 246, 236, 0.82);
}

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

.page-home .home-hero__note {
  margin: 16px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(232, 197, 122, 0.85);
}

/* 首屏右侧：地图底图 + 两张错位落脚卡 */

.page-home .home-hero__aside {
  position: relative;
  padding-bottom: 4px;
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  opacity: 0.38;
}

.page-home .home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.06);
}

.page-home .home-hero__cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.page-home .landing-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border-radius: var(--r-md);
  background: rgba(251, 246, 236, 0.97);
  color: var(--ink);
  border: 1px solid rgba(200, 144, 31, 0.38);
  box-shadow: 0 22px 40px -26px rgba(10, 24, 48, 0.85);
}

.page-home .landing-card--second {
  background: rgba(232, 197, 122, 0.97);
  border-color: rgba(196, 58, 43, 0.3);
}

.page-home .landing-card__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .landing-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #33393f;
}

.page-home .landing-card__link {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 2px solid rgba(200, 144, 31, 0.6);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .landing-card__link:hover,
.page-home .landing-card__link:focus-visible {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

/* ---------- 通用章节底色 ---------- */

.page-home .home-section {
  padding: 58px 0 66px;
}

.page-home .home-section + .home-section {
  border-top: 1px dashed rgba(92, 100, 112, 0.28);
}

/* ---------- 01 三步认路 ---------- */

.page-home .home-section--steps .section__lead {
  max-width: 40em;
}

.page-home .steps-layout {
  display: grid;
  gap: 30px;
  margin-top: 34px;
}

.page-home .step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  order: 1;
}

.page-home .step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px 20px;
  border-radius: var(--r-md);
  background: rgba(15, 36, 64, 0.6);
  border: 1px solid rgba(200, 144, 31, 0.26);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.page-home .step-item:hover,
.page-home .step-item:focus-within {
  border-color: rgba(232, 197, 122, 0.7);
  transform: translateY(-2px);
}

.page-home .step-item__num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-home .step-item__title {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.35;
  color: var(--cream);
}

.page-home .step-item__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(251, 246, 236, 0.78);
}

.page-home .home-steps__media {
  order: 2;
}

.page-home .home-steps__media .media__frame {
  border-radius: var(--r-md);
}

.page-home .home-steps__media .media__cap {
  color: rgba(251, 246, 236, 0.7);
}

/* ---------- 02 日常回访 ---------- */

.page-home .home-section--return .lane-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.page-home .lane {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--r-md);
  background: rgba(255, 253, 247, 0.86);
  border-left: 6px solid var(--gold);
  box-shadow: 0 16px 32px -26px rgba(10, 24, 48, 0.7);
}

.page-home .lane:nth-child(2) {
  border-left-color: var(--teal);
}

.page-home .lane__title {
  margin: 12px 0 8px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
}

.page-home .lane__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.82;
  color: #33393f;
}

.page-home .home-return__tip {
  margin-top: 24px;
}

/* ---------- 03 换设备 ---------- */

.page-home .device-layout {
  display: grid;
  gap: 34px;
}

.page-home .device-layout .section__lead {
  max-width: 34em;
}

.page-home .device-points {
  list-style: none;
  margin: 28px 0 26px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .device-points li {
  position: relative;
  padding: 0 0 0 26px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(251, 246, 236, 0.82);
}

.page-home .device-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 10px;
  height: 2px;
  background: var(--gold);
  border-radius: var(--r-pill);
}

.page-home .device-points strong {
  color: var(--gold-sand);
  font-weight: 700;
}

.page-home .device-layout__media {
  margin: 0;
}

.page-home .device-layout__media .media__frame {
  border-radius: var(--r-md);
  border: 1px solid rgba(200, 144, 31, 0.35);
}

.page-home .device-layout__media .media__cap {
  color: rgba(251, 246, 236, 0.68);
}

/* ---------- 04 路线索引 ---------- */

.page-home .index-grid {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.page-home .index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(92, 100, 112, 0.22);
  text-decoration: none;
  color: inherit;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), background-color 0.24s var(--ease);
}

.page-home .index-card:hover,
.page-home .index-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: #FFFDF7;
}

.page-home .index-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cinnabar);
}

.page-home .index-card__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.page-home .index-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: #3d434a;
}

.page-home .index-card__hint {
  margin-top: 6px;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(27, 58, 99, 0.1);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--indigo-2);
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease);
}

.page-home .index-card:hover .index-card__hint,
.page-home .index-card:focus-visible .index-card__hint {
  background: var(--gold);
  color: var(--ink);
}

.page-home .index-strip {
  margin: 34px 0 0;
  border-radius: var(--r-md);
  overflow: hidden;
}

.page-home .index-strip img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.04);
}

/* ---------- 05 常见问答 ---------- */

.page-home .home-section--faq .section__lead {
  max-width: 36em;
}

.page-home .faq-pair {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.page-home .faq-item {
  border-radius: var(--r-md);
  background: rgba(15, 36, 64, 0.62);
  border: 1px solid rgba(200, 144, 31, 0.28);
  overflow: hidden;
}

.page-home .faq-item__q {
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.45;
  color: var(--cream);
  list-style: none;
}

.page-home .faq-item__q::-webkit-details-marker {
  display: none;
}

.page-home .faq-item__q::after {
  content: "＋";
  float: right;
  margin-left: 14px;
  color: var(--gold);
  font-weight: 700;
}

.page-home .faq-item[open] .faq-item__q::after {
  content: "－";
}

.page-home .faq-item__a {
  padding: 0 22px 22px;
}

.page-home .faq-item__a p {
  margin: 0;
  font-size: 16px;
  line-height: 1.82;
  color: rgba(251, 246, 236, 0.8);
}

.page-home .faq-item__a strong {
  color: var(--gold-sand);
}

.page-home .faq-more {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(251, 246, 236, 0.72);
}

.page-home .faq-more a {
  color: var(--gold-sand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 197, 122, 0.6);
}

.page-home .faq-more a:hover,
.page-home .faq-more a:focus-visible {
  color: var(--cream);
  border-color: var(--cream);
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .page-home .home-hero {
    padding: 52px 0 86px;
  }

  .page-home .home-section {
    padding: 72px 0 80px;
  }

  .page-home .lane-list,
  .page-home .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .index-grid > .index-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 66px 0 104px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 60px;
    align-items: start;
  }

  .page-home .home-hero__cards {
    gap: 20px;
    padding: 12px 0 0;
  }

  .page-home .landing-card--first {
    transform: translateX(-22px);
  }

  .page-home .landing-card--second {
    transform: translateX(16px);
  }

  .page-home .steps-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 48px;
    align-items: start;
  }

  .page-home .home-steps__media {
    order: 1;
    margin: 0;
  }

  .page-home .step-list {
    order: 2;
  }

  .page-home .device-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    gap: 52px;
    align-items: center;
  }

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

  .page-home .index-grid > .index-card:last-child {
    grid-column: auto;
  }

  .page-home .faq-pair {
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero__title {
    font-size: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .landing-card__link,
  .page-home .step-item,
  .page-home .index-card,
  .page-home .index-card__hint {
    transition: none;
  }

  .page-home .step-item:hover,
  .page-home .index-card:hover,
  .page-home .index-card:focus-visible {
    transform: none;
  }

  .page-home .landing-card--first,
  .page-home .landing-card--second {
    transform: none;
  }
}
