.page-home {
  --home-spine: 6px;
  --home-pad: clamp(20px, 4vw, 40px);
  overflow-x: hidden;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home .wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.page-home .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.page-home .cta--gold {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 34%, var(--gold-hi) 54%, var(--gold) 78%);
  background-size: 180% 100%;
  color: #1a0f24;
  box-shadow: var(--shadow-gold);
}

.page-home .cta--gold:hover {
  background-position: 100% 0;
}

.page-home .cta--jade {
  background: linear-gradient(100deg, #0f7a5c, var(--jade));
  color: #03130e;
  box-shadow: 0 14px 30px -18px rgba(23, 165, 124, .95);
}

.page-home .cta--ruby {
  background: linear-gradient(100deg, #9c2039, var(--ruby));
  color: #1a0309;
  box-shadow: 0 14px 30px -18px rgba(198, 43, 76, .95);
}

.page-home .cta--ghost {
  background: rgba(75, 36, 130, .18);
  border-color: var(--edge);
  color: var(--ivory);
}

.page-home .cta--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.page-home .cta--sm {
  padding: 11px 20px;
  font-size: 14px;
}

.page-home .cta:hover {
  transform: translateY(-2px);
}

.page-home .cta:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
}

.page-home .eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
}

.page-home .section-title {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -.015em;
  font-size: clamp(22px, 4.4vw, 32px);
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--ivory);
}

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

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 0 88px;
  background:
    radial-gradient(120% 90% at 12% -12%, #311757 0%, rgba(18, 10, 31, 0) 62%),
    var(--night);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  filter: saturate(1.15) contrast(1.05);
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 10, 31, .5) 0%, rgba(18, 10, 31, .84) 60%, var(--night) 100%);
}

.page-home .hero__slash {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 54%;
  height: 2px;
  z-index: -1;
  transform: rotate(-8deg);
  transform-origin: 50% 50%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(227, 176, 75, .18) 20%,
    var(--gold) 46%,
    var(--gold-hi) 51%,
    rgba(227, 176, 75, .18) 80%,
    transparent 100%);
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 20px;
  display: grid;
  gap: 34px;
}

.page-home .hero__kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid rgba(227, 176, 75, .42);
  border-radius: 999px;
  background: rgba(227, 176, 75, .09);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-home .hero__title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: clamp(30px, 7.2vw, 56px);
  line-height: 1.16;
  background: linear-gradient(104deg, var(--gold-hi) 0%, var(--gold) 46%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-home .hero__lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: clamp(15px, 2.3vw, 17px);
  line-height: 1.85;
  color: var(--ivory);
}

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

.page-home .hero__device {
  position: relative;
  margin: 0 auto;
  width: min(100%, 300px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: linear-gradient(160deg, #2b1550, #170b2c);
  box-shadow: var(--shadow-panel);
  transition: transform .45s ease;
}

.page-home .hero__device img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- 双路径切换 ---------- */

.page-home .paths {
  position: relative;
  padding: 0 0 8px;
  margin-top: -52px;
}

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

.page-home .switch {
  position: relative;
  padding: 26px 18px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: linear-gradient(180deg, var(--panel), #190a2e);
  box-shadow: var(--shadow-panel);
}

.page-home .switch::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  right: 20px;
  height: 6px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 42%, var(--gold-hi) 62%, var(--gold));
}

.page-home .path-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.page-home .path-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgba(18, 10, 31, .72);
}

.page-home .path-tab {
  display: block;
  padding: 11px 6px;
  border-radius: 999px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--silver);
  cursor: pointer;
  user-select: none;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.page-home #path-a:checked ~ .path-tabs .path-tab--jade {
  background: linear-gradient(100deg, #0f7a5c, var(--jade));
  color: #03130e;
  box-shadow: 0 12px 26px -16px rgba(23, 165, 124, .95);
}

.page-home #path-b:checked ~ .path-tabs .path-tab--ruby {
  background: linear-gradient(100deg, #9c2039, var(--ruby));
  color: #1a0309;
  box-shadow: 0 12px 26px -16px rgba(198, 43, 76, .95);
}

.page-home #path-a:focus-visible ~ .path-tabs .path-tab--jade,
.page-home #path-b:focus-visible ~ .path-tabs .path-tab--ruby {
  outline: 3px solid var(--gold-hi);
  outline-offset: 2px;
}

.page-home .path-body {
  display: none;
}

.page-home #path-a:checked ~ .path-bodies .path-body--a,
.page-home #path-b:checked ~ .path-bodies .path-body--b {
  display: block;
  animation: home-wipe .42s ease-out both;
}

@keyframes home-wipe {
  from {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    opacity: .3;
  }
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
}

.page-home .path-body__title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.35;
  color: var(--ivory);
}

.page-home .path-body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--silver);
}

.page-home .path-body ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.page-home .path-body li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ivory);
}

.page-home .path-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-home .path-body--a li::before {
  background: var(--jade);
}

.page-home .path-body--b li::before {
  background: var(--ruby);
}

.page-home .paths__visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: linear-gradient(150deg, #2a1348, #150a28);
  box-shadow: var(--shadow-panel);
}

.page-home .paths__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 面板堆叠 ---------- */

.page-home .stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 56px 20px 0;
}

.page-home .panel {
  position: relative;
  padding: 34px 20px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: linear-gradient(170deg, rgba(43, 21, 80, .96), rgba(24, 10, 45, .99));
  box-shadow: var(--shadow-panel);
}

.page-home .panel + .panel {
  margin-top: 26px;
}

.page-home .panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  right: 22px;
  height: 6px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 44%, var(--gold-hi) 70%, var(--gold));
}

.page-home .panel__grid {
  display: block;
}

.page-home .panel__main {
  min-width: 0;
}

.page-home .panel p {
  margin: 0 0 16px;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--silver);
}

.page-home .panel__lead {
  max-width: 40em;
}

.page-home .panel__foot {
  margin-top: 4px;
  font-size: 14px;
  color: var(--silver);
}

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

.page-home .panel__side {
  margin-top: 24px;
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(75, 36, 130, .95);
  background: rgba(18, 10, 31, .62);
}

.page-home .panel__note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--silver);
}

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

.page-home .panel__side--art {
  border-style: solid;
  border-color: rgba(75, 36, 130, .7);
  padding: 12px;
}

.page-home .panel__side--art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  opacity: .92;
}

.page-home .panel__side--art .panel__note {
  margin: 12px 6px 4px;
}

.page-home .stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(75, 36, 130, .55);
}

.page-home .stat:first-child {
  padding-top: 0;
}

.page-home .stat__label {
  font-size: 13px;
  color: var(--silver);
}

.page-home .stat__num {
  font-family: var(--num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-home .checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .checklist li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ivory);
}

.page-home .checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep));
}

/* ---------- 分类对比 ---------- */

.page-home .compare {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.page-home .compare__col {
  padding: 18px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(75, 36, 130, .85);
  background: rgba(18, 10, 31, .55);
}

.page-home .compare__col--fast {
  border-color: rgba(227, 176, 75, .55);
  background: linear-gradient(170deg, rgba(227, 176, 75, .1), rgba(18, 10, 31, .6));
}

.page-home .compare__head {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 800;
  color: var(--ivory);
}

.page-home .compare__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .compare__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--silver);
}

.page-home .compare__col--fast .compare__steps li {
  color: var(--ivory);
}

.page-home .compare__steps .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(227, 176, 75, .55);
  font-family: var(--num);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.page-home .compare__col--fast .dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a0f24;
}

.page-home .compare__tag {
  margin: 14px 0 0;
  font-family: var(--num);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-hi);
}

.page-home .compare__tag--muted {
  color: var(--silver);
  font-weight: 400;
}

/* ---------- 四步设置 ---------- */

.page-home .stepbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.page-home .stepbar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(227, 176, 75, .45);
  background: rgba(227, 176, 75, .1);
  font-family: var(--num);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.page-home .stepbar__link:hover {
  background: var(--gold);
  color: #1a0f24;
  transform: translateY(-2px);
}

.page-home .stepbar__link:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
}

.page-home .steps {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
}

.page-home .step {
  position: relative;
  padding: 22px 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(75, 36, 130, .85);
  background: rgba(18, 10, 31, .58);
  scroll-margin-top: 96px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.page-home .step:target {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(227, 176, 75, .4), 0 20px 42px -32px rgba(227, 176, 75, .95);
}

.page-home .step__num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--num);
  font-size: clamp(46px, 11vw, 66px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 56%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-home .step h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--ivory);
}

.page-home .step p {
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.8;
  color: var(--silver);
}

.page-home .step__hint {
  display: block;
  margin-top: 12px;
  padding: 9px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(227, 176, 75, .09);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ivory);
}

/* ---------- 团队数据 ---------- */

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

.page-home .metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(75, 36, 130, .8);
  background: rgba(18, 10, 31, .55);
}

.page-home .metric__num {
  font-family: var(--num);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-home .metric__label {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--silver);
}

/* ---------- 收尾 ---------- */

.page-home .finale {
  position: relative;
  margin-top: 64px;
  padding: 0 0 72px;
  overflow: hidden;
}

.page-home .snowline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--gold);
  opacity: .14;
  pointer-events: none;
}

.page-home .snowline svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .finale__inner {
  position: relative;
  padding: 34px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(227, 176, 75, .14) 0%, rgba(35, 16, 61, .96) 58%),
    var(--panel);
  box-shadow: var(--shadow-panel);
}

.page-home .finale__inner p {
  margin: 0 0 22px;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--silver);
}

.page-home .finale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

  .page-home .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .step__num {
    font-size: 60px;
  }

  .page-home .finale__inner {
    padding: 42px 32px;
  }
}

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

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

  .page-home .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
  }

  .page-home .hero__device {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4 / 5;
    transform: rotate(-3deg);
  }

  .page-home .hero__device:hover {
    transform: rotate(-1deg) translateY(-4px);
  }

  .page-home .hero__actions {
    gap: 18px 32px;
  }

  .page-home .paths {
    margin-top: -76px;
  }

  .page-home .paths__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .switch {
    padding: 30px 28px 28px;
  }

  .page-home .stack {
    padding-top: 76px;
  }

  .page-home .panel {
    padding: 42px 40px 56px;
  }

  .page-home .panel + .panel {
    margin-top: -32px;
  }

  .page-home .panel__grid {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 36px;
    align-items: start;
  }

  .page-home .panel__side {
    margin-top: 0;
  }

  .page-home .panel__grid .panel__main p {
    max-width: 40em;
  }
}

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

  .page-home .step {
    padding: 26px 24px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
  }
}
