.page-home {
  --home-rule-light: rgba(28, 22, 19, 0.14);
  --home-shell-pad: clamp(20px, 5vw, 56px);
}

/* ---------- 面包屑与版本状态 ---------- */
.page-home .home-crumb {
  margin-bottom: 16px;
}

.page-home .home-statusbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  width: fit-content;
  margin: 0 0 clamp(26px, 4vw, 44px);
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.page-home .home-statusbar .t-mono {
  color: var(--neon);
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 50px) 0 clamp(56px, 9vw, 118px);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  width: min(780px, 92vw);
  height: min(780px, 92vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(79, 211, 232, 0.16),
      rgba(15, 92, 140, 0.09) 42%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: home-beacon 11s ease-in-out infinite;
}

.page-home .home-hero > .shell {
  position: relative;
  z-index: 1;
}

@keyframes home-beacon {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

.page-home .home-hero__shell {
  display: grid;
  gap: clamp(30px, 5vw, 54px);
  align-items: center;
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-size: clamp(34px, 7vw, 74px);
  line-height: 1.14;
  letter-spacing: 0.045em;
  color: var(--pearl);
}

.page-home .home-hero__lede {
  margin: 22px 0 0;
  max-width: 36ch;
  color: rgba(247, 242, 232, 0.78);
}

.page-home .home-hero__action {
  margin: clamp(28px, 4vw, 42px) 0 0;
}

.page-home .home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 0 clamp(30px, 5vw, 56px);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(17px, 2.1vw, 23px);
  letter-spacing: 0.14em;
  border-width: 4px;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.page-home .home-hero__cta:hover,
.page-home .home-hero__cta:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(28, 22, 19, 0.9), 0 0 30px rgba(79, 211, 232, 0.5);
}

.page-home .home-hero__figure {
  margin: 0;
  border: 3px solid var(--brown);
  box-shadow: var(--shadow-brut);
}

/* ---------- 坐标索引 ---------- */
.page-home .home-coord {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: clamp(34px, 5vw, 54px) 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

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

.page-home .home-coord .t-mono {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--sea-bright);
}

/* ---------- 三步导览 ---------- */
.page-home .home-tour {
  padding: clamp(54px, 9vw, 112px) 0;
}

.page-home .home-tour__head {
  max-width: 60ch;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.page-home .home-tour__head .t-section {
  margin: 12px 0 16px;
  color: var(--brown);
}

.page-home .home-tour__body {
  display: grid;
  gap: clamp(30px, 5vw, 62px);
}

.page-home .home-tour__figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 3px solid var(--brown);
  box-shadow: var(--shadow-brut);
  background: var(--ink-deep);
}

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

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

.page-home .home-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 22px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--home-rule-light);
}

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

.page-home .home-step__no {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--coral);
}

.page-home .home-step__body h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--brown);
}

.page-home .home-step__body p {
  margin: 0;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(28, 22, 19, 0.78);
}

/* ---------- 板块横向叙事 ---------- */
.page-home .home-rail {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(56px, 9vw, 116px) 0 clamp(46px, 7vw, 86px);
}

.page-home .home-rail__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.page-home .home-rail__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 26, 43, 0.74) 0%,
    rgba(10, 26, 43, 0.92) 56%,
    rgba(10, 26, 43, 0.98) 100%);
}

.page-home .home-rail__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-home .home-rail__inner {
  position: relative;
  z-index: 1;
}

.page-home .home-rail__head {
  max-width: 46ch;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.page-home .home-rail__head .t-section {
  margin: 12px 0 0;
  color: var(--pearl);
}

.page-home .home-rail__track {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 4px 4px 22px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-rail__track::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-rail__track::-webkit-scrollbar-thumb {
  background: rgba(53, 167, 216, 0.42);
  border-radius: 999px;
}

.page-home .home-rail__panel {
  flex: 0 0 min(82%, 320px);
  scroll-snap-align: start;
  padding: 24px 22px 28px;
  border-top: 3px solid var(--coral);
  background: rgba(247, 242, 232, 0.06);
  transition: background-color 220ms ease, transform 220ms ease;
}

.page-home .home-rail__panel:hover {
  background: rgba(247, 242, 232, 0.11);
  transform: translateY(-4px);
}

.page-home .home-rail__panel .t-mono {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--sea-bright);
}

.page-home .home-rail__panel h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--pearl);
}

.page-home .home-rail__panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(247, 242, 232, 0.74);
}

/* ---------- 两条路径 ---------- */
.page-home .home-paths {
  padding: clamp(54px, 9vw, 110px) 0;
}

.page-home .home-paths__title {
  margin: 0 0 14px;
  color: var(--brown);
}

.page-home .home-paths__lede {
  max-width: 48ch;
  margin: 0 0 clamp(30px, 4vw, 50px);
  color: rgba(28, 22, 19, 0.72);
}

.page-home .home-paths__grid {
  display: grid;
  gap: 26px;
}

.page-home .home-path {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 4px clamp(18px, 2.6vw, 28px);
  border-left: 3px solid var(--sea);
}

.page-home .home-path__step {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--sea);
}

.page-home .home-path h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--brown);
}

.page-home .home-path p {
  margin: 0;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(28, 22, 19, 0.76);
}

.page-home .home-path__link {
  align-self: flex-start;
  margin-top: 4px;
  padding-bottom: 3px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.07em;
  color: var(--sea);
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  transition: color 180ms ease;
}

.page-home .home-path__link:hover,
.page-home .home-path__link:focus-visible {
  color: var(--brown);
}

/* ---------- 多端与版本 ---------- */
.page-home .home-stable {
  padding: clamp(54px, 9vw, 108px) 0;
}

.page-home .home-stable__head {
  max-width: 52ch;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.page-home .home-stable__head .t-section {
  margin: 12px 0 16px;
  color: var(--brown);
}

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

.page-home .home-fact {
  padding-top: 18px;
  border-top: 2px solid var(--sea);
}

.page-home .home-fact__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brown);
}

.page-home .home-fact p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(28, 22, 19, 0.72);
}

/* ---------- 页面末尾 ---------- */
.page-home .home-outro {
  padding: clamp(54px, 8vw, 100px) 0 clamp(62px, 9vw, 118px);
}

.page-home .home-outro__shell {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.page-home .home-outro__figure {
  margin: 0;
  border: 3px solid rgba(53, 167, 216, 0.42);
}

.page-home .home-outro__title {
  margin: 12px 0 18px;
  color: var(--pearl);
}

.page-home .home-outro__body p {
  margin: 0 0 18px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(247, 242, 232, 0.76);
}

.page-home .home-outro__body p:last-child {
  margin-bottom: 0;
}

.page-home .home-outro__link {
  display: inline-block;
  padding-bottom: 3px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--sea-bright);
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  transition: color 180ms ease;
}

.page-home .home-outro__link:hover,
.page-home .home-outro__link:focus-visible {
  color: var(--coral);
}

/* ---------- 通用图片安全 ---------- */
.page-home img {
  display: block;
  max-width: 100%;
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-home .home-rail__panel {
    flex-basis: 306px;
  }

  .page-home .home-coord {
    margin-top: clamp(40px, 5vw, 62px);
  }
}

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

@media (min-width: 900px) {
  .page-home .home-tour__body {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
  }

  .page-home .home-outro__shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

@media (min-width: 940px) {
  .page-home .home-hero__shell {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(48px, 6vw, 94px);
  }
}

@media (min-width: 1040px) {
  .page-home .home-stable__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 34px;
  }
}

@media (max-width: 639px) {
  .page-home .home-stable__list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) and (max-width: 1039px) {
  .page-home .home-stable__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 30px;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero::after {
    animation: none;
    opacity: 0.75;
  }

  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-home .home-hero__cta,
  .page-home .home-rail__panel {
    transition: none;
  }
}
