.page-home {
  --home-line: rgba(27, 42, 74, .12);
  --home-line-light: rgba(250, 247, 240, .16);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--indigo);
  color: var(--prayer);
  padding-block: clamp(2.25rem, 7vw, 4.5rem) 0;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(250, 247, 240, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 247, 240, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  top: -14%;
  right: -8%;
  width: min(64%, 660px);
  aspect-ratio: 1 / 1;
  z-index: -1;
  background: linear-gradient(150deg, rgba(76, 111, 165, .40), rgba(14, 23, 43, .92));
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.35rem;
  padding: .4rem .85rem .4rem .7rem;
  border: 1px solid rgba(201, 164, 92, .35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--sand);
}

.page-home .hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(62, 124, 116, .28);
}

.page-home h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.04;
}

.page-home .hero-brand {
  display: block;
  font-size: clamp(1.85rem, 5.4vw, 3.5rem);
  color: var(--prayer);
}

.page-home .hero-line {
  display: block;
  margin-top: .5rem;
  font-size: clamp(1.45rem, 4.4vw, 2.85rem);
  color: var(--sand);
}

.page-home .hero-lede {
  margin: 1.25rem 0 0;
  max-width: 47ch;
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  line-height: 1.85;
  color: rgba(250, 247, 240, .82);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  margin-top: 1.75rem;
}

.page-home .hero-alt {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding-bottom: .25rem;
  font-size: .92rem;
  color: var(--prayer);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 247, 240, .35);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .hero-alt:hover {
  color: var(--sand);
  border-bottom-color: var(--sand);
}

.page-home .hero-note {
  margin: 1.15rem 0 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(250, 247, 240, .56);
}

.page-home .hero-visual {
  position: relative;
}

.page-home .hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.page-home .hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  filter: saturate(.7) contrast(.95);
  opacity: .92;
}

.page-home .hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 164, 92, .3);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  pointer-events: none;
}

.page-home .hero-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  padding: .6rem .75rem;
  border: 1px solid rgba(201, 164, 92, .42);
  border-radius: 999px;
  background: rgba(14, 23, 43, .85);
}

.page-home .hero-dock-label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  color: var(--sand);
  padding-right: .35rem;
  border-right: 1px solid rgba(201, 164, 92, .35);
}

.page-home .hero-dock-tag {
  padding: .28rem .65rem;
  border-radius: 999px;
  background: rgba(250, 247, 240, .08);
  font-size: .76rem;
  color: rgba(250, 247, 240, .9);
  white-space: nowrap;
}

.page-home .hero-toc {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--home-line-light);
  border-bottom: 1px solid var(--home-line-light);
}

.page-home .hero-toc-list {
  display: flex;
  gap: .3rem;
  overflow-x: auto;
  padding-block: .55rem;
  scrollbar-width: none;
}

.page-home .hero-toc-list::-webkit-scrollbar {
  display: none;
}

.page-home .hero-toc-list a {
  flex: 0 0 auto;
  padding: .32rem .62rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .71rem;
  letter-spacing: .07em;
  color: rgba(250, 247, 240, .7);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .hero-toc-list a:hover {
  color: var(--sand);
  border-color: var(--sand-line);
}

/* ---------- 章节头 ---------- */
.page-home .hm-head {
  display: grid;
  gap: .7rem;
}

.page-home .hm-num {
  font-family: var(--font-num);
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: .02em;
  color: var(--sand-deep);
}

.page-home .hm-title {
  margin: .45rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(1.45rem, 3.4vw, 2.3rem);
  line-height: 1.12;
  color: var(--indigo);
}

.page-home .hm-lede {
  margin: .7rem 0 0;
  max-width: 64ch;
  font-size: clamp(.94rem, 1.4vw, 1.02rem);
  line-height: 1.78;
  color: var(--stone);
}

.page-home .hm-head--light .hm-num {
  color: var(--sand);
}

.page-home .hm-head--light .hm-title {
  color: var(--prayer);
}

.page-home .hm-head--light .hm-lede {
  color: rgba(250, 247, 240, .72);
}

.page-home .hm-head--light .eyebrow {
  color: var(--sand);
}

.page-home .hm-after {
  margin: 1.5rem 0 0;
}

.page-home .hm-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding-bottom: .22rem;
  border-bottom: 1px solid var(--sand-line);
  font-size: .9rem;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .hm-link::after {
  content: "→";
}

.page-home .hm-link:hover {
  color: var(--sand-deep);
  border-bottom-color: var(--sand);
}

.page-home .hm-link--light {
  color: var(--prayer);
  border-bottom-color: rgba(201, 164, 92, .5);
}

.page-home .hm-link--light:hover {
  color: var(--sand);
}

/* ---------- 01 双版本对照 ---------- */
.page-home .hm-mirror {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .hm-mirror-media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}

.page-home .hm-mirror-media img {
  display: block;
  width: 100%;
  height: clamp(110px, 17vw, 180px);
  max-width: 100%;
  object-fit: cover;
  filter: saturate(.6) contrast(.92);
}

.page-home .hm-pair {
  display: grid;
  gap: .9rem;
  margin-top: 1.1rem;
}

.page-home .hm-vers {
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--prayer);
  box-shadow: var(--card-shadow);
}

.page-home .hm-vers--before {
  background: var(--bone);
}

.page-home .hm-vers-tag {
  display: inline-block;
  margin: 0 0 .85rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: .69rem;
  letter-spacing: .12em;
  color: var(--stone);
}

.page-home .hm-vers-tag--sand {
  color: var(--sand-deep);
  border-bottom-color: var(--sand-line);
}

.page-home .hm-vers-title {
  margin: 0 0 .85rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-home .hm-vers-list {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-vers-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .9rem;
  line-height: 1.72;
  color: var(--ink);
}

.page-home .hm-vers-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--stone);
  opacity: .45;
}

.page-home .hm-vers--after .hm-vers-list li::before {
  background: var(--sand);
  opacity: 1;
}

/* ---------- 02 手机短路径 ---------- */
.page-home .hm-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.page-home .hm-split-media img {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.page-home .hm-steps {
  counter-reset: hmstep;
  display: grid;
  gap: .85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-steps li {
  counter-increment: hmstep;
  position: relative;
  padding-left: 2.6rem;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--ink);
}

.page-home .hm-steps li::before {
  content: "0" counter(hmstep);
  position: absolute;
  left: 0;
  top: .12em;
  font-family: var(--font-num);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--sand-deep);
}

.page-home .hm-steps--light li {
  color: rgba(250, 247, 240, .85);
}

.page-home .hm-steps--light li::before {
  color: var(--sand);
}

.page-home .hm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.5rem;
}

.page-home .hm-chip {
  padding: .38rem .72rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--prayer);
  font-family: var(--font-mono);
  font-size: .71rem;
  letter-spacing: .06em;
  color: var(--indigo);
}

/* ---------- 03 深色指标带 ---------- */
.page-home .hm-band {
  background: var(--night);
  color: var(--prayer);
}

.page-home .hm-metrics {
  display: grid;
  gap: 1px;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--home-line-light);
  background: var(--home-line-light);
}

.page-home .hm-metric {
  display: block;
  padding: clamp(1.2rem, 3vw, 1.9rem);
  background: var(--night);
  color: var(--prayer);
  text-decoration: none;
  transition: background .25s var(--ease);
}

.page-home .hm-metric:hover {
  background: #16233d;
}

.page-home .hm-metric-num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(2.9rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.02em;
  color: var(--sand);
}

.page-home .hm-metric-unit {
  display: block;
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: rgba(250, 247, 240, .62);
}

.page-home .hm-metric-text {
  margin: .85rem 0 0;
  font-size: .9rem;
  line-height: 1.75;
  color: rgba(250, 247, 240, .78);
}

.page-home .hm-metric-go {
  display: inline-block;
  margin-top: 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--turquoise);
  border-bottom: 1px solid rgba(62, 124, 116, .5);
  padding-bottom: .15rem;
}

.page-home .hm-metric:hover .hm-metric-go {
  color: var(--sand);
  border-bottom-color: var(--sand-line);
}

.page-home .hm-trust {
  margin: clamp(1.5rem, 3.5vw, 2.25rem) 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--home-line-light);
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 2;
  letter-spacing: .04em;
  color: rgba(250, 247, 240, .6);
}

/* ---------- 04 标签索引 ---------- */
.page-home .hm-axes {
  display: grid;
  gap: 1px;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--hairline);
  background: var(--hairline);
}

.page-home .hm-axis {
  padding: clamp(1rem, 2.6vw, 1.5rem);
  background: var(--prayer);
}

.page-home .hm-axis-key {
  display: block;
  margin-bottom: .85rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--sand-deep);
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--sand-line);
}

.page-home .hm-axis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.page-home .hm-more {
  margin-top: 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bone);
}

.page-home .hm-more summary {
  cursor: pointer;
  padding: .85rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--indigo);
  list-style: none;
}

.page-home .hm-more summary::-webkit-details-marker {
  display: none;
}

.page-home .hm-more summary::before {
  content: "＋";
  margin-right: .5rem;
  font-family: var(--font-mono);
  color: var(--sand-deep);
}

.page-home .hm-more[open] summary::before {
  content: "－";
}

.page-home .hm-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  list-style: none;
}

.page-home .hm-cats li {
  padding: .3rem .62rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--ink);
  background: var(--prayer);
}

/* ---------- 05 企业 FAQ ---------- */
.page-home .hm-faq-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.page-home .hm-samples {
  display: grid;
  gap: .55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-samples li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem;
  padding: .72rem .9rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--prayer);
  font-size: .88rem;
  line-height: 1.65;
  color: var(--ink);
}

.page-home .hm-code {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--sand-deep);
}

.page-home .hm-faq-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  filter: saturate(.7);
}

/* ---------- 06 版本节奏 ---------- */
.page-home .hm-rhythm {
  display: grid;
  gap: 1px;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hairline);
  background: var(--hairline);
}

.page-home .hm-rhythm li {
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  background: var(--prayer);
}

.page-home .hm-rhythm-k {
  display: inline-block;
  margin-bottom: .6rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(201, 164, 92, .16);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--sand-deep);
}

.page-home .hm-rhythm h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .hm-rhythm p {
  margin: 0;
  font-size: .89rem;
  line-height: 1.75;
  color: var(--stone);
}

/* ---------- 07 客服 ---------- */
.page-home .hm-contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.page-home .hm-contact-card {
  padding: clamp(1.2rem, 3vw, 1.9rem);
  border: 1px solid rgba(201, 164, 92, .34);
  border-radius: var(--radius);
  background: rgba(250, 247, 240, .04);
}

.page-home .hm-contact-title {
  margin: 0 0 1.1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--home-line-light);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--sand);
}

.page-home .hm-contact-list {
  display: grid;
  gap: .95rem;
  margin: 0;
}

.page-home .hm-contact-list dt {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  color: rgba(250, 247, 240, .52);
  margin-bottom: .25rem;
}

.page-home .hm-contact-list dd {
  margin: 0;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--prayer);
  word-break: break-word;
}

.page-home .hm-contact-note {
  margin: 1.35rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid var(--home-line-light);
  font-size: .8rem;
  line-height: 1.8;
  color: rgba(250, 247, 240, .58);
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-home .hero-dock {
    position: absolute;
    left: 3%;
    right: 3%;
    bottom: 4%;
    margin-top: 0;
  }

  .page-home .hm-axes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .page-home .hm-head {
    grid-template-columns: minmax(56px, auto) minmax(0, 1fr);
    column-gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: start;
  }

  .page-home .hm-pair {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .page-home .hm-vers--before {
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .page-home .hm-vers--after {
    border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: inset -1px 0 0 rgba(201, 164, 92, .3);
  }

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

  .page-home .hm-rhythm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .page-home .hero-inner {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    column-gap: clamp(1.5rem, 4vw, 3.25rem);
  }

  .page-home .hm-split {
    grid-template-columns: 4fr 6fr;
    align-items: center;
  }

  .page-home .hm-split-media img {
    margin-inline: 0;
  }

  .page-home .hm-faq-grid {
    grid-template-columns: 6fr 5fr;
    align-items: center;
  }

  .page-home .hm-contact-grid {
    grid-template-columns: 6fr 5fr;
    align-items: start;
  }

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

@media (min-width: 1100px) {
  .page-home .hm-vers {
    padding: 1.9rem 1.95rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-metric,
  .page-home .hm-link,
  .page-home .hero-alt,
  .page-home .hero-toc-list a {
    transition: none;
  }
}
