/* ============ page-home 作用域 ============ */
.page-home {
  --home-pad: clamp(20px, 5vw, 40px);
  --home-gap: clamp(24px, 4vw, 56px);
  --home-rule: rgba(140, 151, 147, 0.32);
  --home-rule-dark: rgba(242, 206, 107, 0.26);
  --home-muted: #4E5C56;
  display: block;
}

.page-home .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ---------- 首屏 ---------- */
.page-home .hero-shard {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, var(--ink) 0%, var(--deep) 56%, #0E3A28 100%);
  color: var(--paper);
  padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 9vw, 120px);
}

.page-home .hero-shard::before {
  content: "";
  position: absolute;
  top: -32%;
  right: -16%;
  width: 68%;
  height: 176%;
  background: linear-gradient(
    104deg,
    rgba(217, 161, 40, 0) 0%,
    rgba(217, 161, 40, 0.22) 40%,
    rgba(242, 206, 107, 0.09) 66%,
    rgba(217, 161, 40, 0) 100%
  );
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-shard::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(24px, 4vw, 52px);
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
  pointer-events: none;
}

.page-home .hero-shard__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-home .hero-shard__tag {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 12px;
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--home-rule-dark);
  background: rgba(11, 31, 23, 0.5);
}

.page-home .hero-shard__title {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--warm);
  text-wrap: balance;
}

.page-home .hero-shard__lede {
  margin: 0 0 30px;
  max-width: 38ch;
  font-size: var(--fs-body);
  line-height: 1.9;
  color: rgba(246, 244, 238, 0.84);
}

.page-home .hero-shard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.page-home .hero-shard__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: box-shadow 0.22s ease, transform 0.18s ease, background 0.22s ease, color 0.22s ease;
}

.page-home .hero-shard__actions .btn--coral {
  color: var(--warm);
  background: var(--coral);
  box-shadow: inset 0 0 0 1px rgba(255, 252, 246, 0.18);
}

.page-home .hero-shard__actions .btn--coral:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--coral), 0 0 0 6px rgba(255, 90, 54, 0.16);
}

.page-home .hero-shard__actions .btn--ghost {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--home-rule-dark);
}

.page-home .hero-shard__actions .btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--ink);
  background: linear-gradient(120deg, var(--amber), var(--gold));
  border-color: transparent;
}

.page-home .hero-shard__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--home-rule-dark);
}

.page-home .hero-shard__figures li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .hero-shard__figures .mono {
  font-size: clamp(1.5rem, 3.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-home .hero-shard__figures em {
  font-style: normal;
  font-size: var(--fs-small);
  color: rgba(246, 244, 238, 0.7);
}

.page-home .hero-shard__figure {
  margin: 0;
}

.page-home .hero-shard__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--home-rule-dark);
  box-shadow: 20px 20px 0 -8px rgba(217, 161, 40, 0.16);
}

/* ---------- 能力速览 ---------- */
.page-home .capability {
  padding: clamp(48px, 8vw, 100px) 0;
}

.page-home .capability__head {
  max-width: 40rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.page-home .capability .eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .capability .section-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .capability__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .capability__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--home-rule);
}

.page-home .capability__item {
  position: relative;
  padding: 26px 0 26px 60px;
  border-bottom: 1px solid var(--home-rule);
}

.page-home .capability__num {
  position: absolute;
  left: 0;
  top: 30px;
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  color: var(--amber);
}

.page-home .capability__name {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .capability__item p {
  margin: 0;
  max-width: 40ch;
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--home-muted);
}

.page-home .capability__figure {
  margin: 0;
}

.page-home .capability__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

/* ---------- 时间轴 ---------- */
.page-home .timeline {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0;
}

.page-home .timeline__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  pointer-events: none;
}

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

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

.page-home .timeline__head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.page-home .timeline .timeline__eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .timeline__title {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--warm);
}

.page-home .timeline__note {
  margin: 0;
  max-width: 42ch;
  font-size: var(--fs-body);
  line-height: 1.9;
  color: rgba(246, 244, 238, 0.72);
}

.page-home .timeline__track {
  margin: 0;
  padding: 0 0 0 24px;
  list-style: none;
  border-left: 1px solid var(--home-rule-dark);
}

.page-home .timeline__node {
  position: relative;
  padding: 0 0 30px 4px;
}

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

.page-home .timeline__dot {
  position: absolute;
  left: -31px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 206, 107, 0.16);
}

.page-home .timeline__ver {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  color: var(--ink);
  background: linear-gradient(120deg, var(--amber), var(--gold));
}

.page-home .timeline__node h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--warm);
}

.page-home .timeline__node p {
  margin: 0;
  max-width: 34ch;
  font-size: var(--fs-small);
  line-height: 1.85;
  color: rgba(246, 244, 238, 0.7);
}

/* ---------- 目录索引 ---------- */
.page-home .directory {
  padding: clamp(48px, 8vw, 100px) 0;
}

.page-home .directory__head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-home .directory .eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .directory .section-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .directory__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--home-rule);
}

.page-home .directory__item {
  border-bottom: 1px solid var(--home-rule);
}

.page-home .directory__link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "idx body"
    "go  go";
  gap: 10px 16px;
  align-items: start;
  padding: 22px 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.24s ease;
}

.page-home .directory__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--gold));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.page-home .directory__link:hover,
.page-home .directory__link:focus-visible {
  padding-left: 16px;
}

.page-home .directory__link:hover::before,
.page-home .directory__link:focus-visible::before {
  opacity: 1;
}

.page-home .directory__idx {
  grid-area: idx;
  padding-top: 4px;
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  color: var(--amber);
}

.page-home .directory__body {
  grid-area: body;
  display: block;
}

.page-home .directory__body strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.22s ease;
}

.page-home .directory__body em {
  display: block;
  max-width: 58ch;
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.85;
  color: var(--home-muted);
}

.page-home .directory__go {
  grid-area: go;
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  color: var(--teal);
  white-space: nowrap;
  transition: color 0.22s ease;
}

.page-home .directory__link:hover .directory__body strong {
  color: var(--deep);
}

.page-home .directory__link:hover .directory__go {
  color: var(--coral);
}

/* ---------- 共用设备 ---------- */
.page-home .devices {
  padding: clamp(48px, 8vw, 100px) 0;
}

.page-home .devices__head {
  max-width: 44rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.page-home .devices .eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .devices .section-title {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .devices__lede {
  margin: 0;
  max-width: 46ch;
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--home-muted);
}

.page-home .devices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}

.page-home .devices__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 26px;
  background: var(--warm);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.page-home .devices__card:hover {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(217, 161, 40, 0.55);
}

.page-home .devices__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  color: var(--warm);
  background: var(--teal);
}

.page-home .devices__card h3 {
  margin: 4px 0 0;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .devices__card p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.85;
  color: var(--home-muted);
}

/* ---------- 提交之后的节奏 ---------- */
.page-home .aftercare {
  padding: clamp(48px, 8vw, 100px) 0;
}

.page-home .aftercare__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
}

.page-home .aftercare .eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .aftercare .section-title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .aftercare__copy > p {
  margin: 0 0 18px;
  max-width: 42ch;
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--home-muted);
}

.page-home .aftercare__contact {
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  font-size: var(--fs-small);
  line-height: 2;
  color: var(--ink);
}

.page-home .aftercare__contact .mono {
  display: inline-block;
  min-width: 5em;
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  color: var(--teal);
}

.page-home .aftercare__copy .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 24px;
  font-weight: 700;
  transition: box-shadow 0.22s ease, transform 0.18s ease;
}

.page-home .aftercare__copy .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(217, 161, 40, 0.16);
}

.page-home .aftercare__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}

.page-home .aftercare__step {
  position: relative;
  padding: 22px 20px 24px;
  background: var(--warm);
}

.page-home .aftercare__n {
  display: block;
  margin-bottom: 10px;
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  color: var(--amber);
}

.page-home .aftercare__step h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .aftercare__step p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--home-muted);
}

/* ---------- 底部天际线 ---------- */
.page-home .page-home__skyline {
  margin: 0;
  line-height: 0;
  background: var(--deep);
}

.page-home .page-home__skyline img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.55;
}

/* ============ 响应式 ============ */
@media (min-width: 640px) {
  .page-home .devices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .directory__link {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas: "idx .page-home go";
    align-items: center;
    gap: 0 24px;
    padding: 26px 0;
  }

  .page-home .directory__idx {
    padding-top: 0;
  }

  .page-home .directory__go {
    align-self: center;
  }
}

@media (min-width: 880px) {
  .page-home .hero-shard__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
  }

  .page-home .hero-shard__figure {
    transform: translateY(-12px);
  }

  .page-home .timeline__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--home-rule-dark);
  }

  .page-home .timeline__node {
    padding: 34px 28px 0 0;
  }

  .page-home .timeline__node:last-child {
    padding-bottom: 0;
    padding-right: 0;
  }

  .page-home .timeline__dot {
    left: 0;
    top: -6px;
  }
}

@media (min-width: 1000px) {
  .page-home .capability__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
  }

  .page-home .capability__figure {
    position: sticky;
    top: 96px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-shard__actions .btn,
  .page-home .directory__link,
  .page-home .directory__link::before,
  .page-home .devices__card,
  .page-home .aftercare__copy .btn {
    transition: none;
  }

  .page-home .hero-shard__actions .btn:hover,
  .page-home .aftercare__copy .btn:hover {
    transform: none;
  }
}
