.page-home {
  --home-line: rgba(108, 124, 138, 0.32);
  --home-radius: 16px;
  --home-glass: rgba(18, 63, 90, 0.52);
  --home-text-soft: #b9ccd8;
  --home-text-mute: #a8bdcb;
  color: var(--ice);
  background: var(--deep);
  overflow-x: clip;
  padding-bottom: clamp(48px, 8vw, 96px);
}

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

/* ---------- 面包屑上下文 ---------- */
.page-home .breadcrumbs {
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--silver);
}

.page-home .breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .breadcrumbs-item[aria-current="page"] {
  color: var(--aqua);
}

/* ---------- 首屏框景 ---------- */
.page-home .hero {
  padding-top: clamp(10px, 2vw, 20px);
}

.page-home .hero-frame {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(440px, 76vh, 700px);
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--deep-2);
  isolation: isolate;
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(31, 224, 192, 0.16);
  border-radius: 10px;
  pointer-events: none;
  z-index: 3;
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 52% at 82% 8%, rgba(31, 224, 192, 0.2), transparent 68%),
    radial-gradient(120% 96% at 6% 24%, rgba(6, 26, 43, 0.55), rgba(6, 26, 43, 0.95) 72%),
    linear-gradient(102deg, rgba(6, 26, 43, 0.94), rgba(11, 46, 71, 0.55));
}

.page-home .hero-ticks {
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 12px;
  z-index: 3;
  background-image: repeating-linear-gradient(
    to right,
    rgba(108, 124, 138, 0.85) 0 1px,
    transparent 1px 26px
  );
  opacity: 0.5;
  pointer-events: none;
}

.page-home .hero-swarm {
  position: absolute;
  right: -8%;
  bottom: 0;
  z-index: 1;
  width: 74%;
  height: 80%;
  opacity: 0.55;
  pointer-events: none;
}

.page-home .hero-swarm path {
  fill: none;
  stroke: var(--aqua);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 6 15;
  opacity: 0.5;
  animation: home-swim 28s linear infinite;
}

@keyframes home-swim {
  to {
    stroke-dashoffset: -420;
  }
}

.page-home .hero-chip {
  position: absolute;
  z-index: 4;
  top: clamp(18px, 3vw, 30px);
  right: clamp(18px, 3vw, 30px);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 11px 15px;
  border: 1px solid rgba(31, 224, 192, 0.36);
  border-radius: 10px;
  background: rgba(6, 26, 43, 0.6);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--silver-2);
  text-align: right;
}

.page-home .hero-chip strong {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  color: var(--aqua);
}

.page-home .hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 26px);
  max-width: min(100%, 720px);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 60px);
}

.page-home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--aqua);
}

.page-home .eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--aqua);
}

.page-home .hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 6.2vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--white);
}

.page-home .hero h1 .hl {
  color: var(--aqua);
}

.page-home .hero-lead {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.78;
  color: var(--home-text-soft);
}

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

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-home .btn-primary {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--coral);
  color: #2a0e06;
}

.page-home .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(62% 130% at 22% 8%, rgba(255, 255, 255, 0.55), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.page-home .btn-primary:hover::after,
.page-home .btn-primary:focus-visible::after {
  opacity: 1;
}

.page-home .btn-primary:hover,
.page-home .btn-primary:focus-visible {
  transform: translateY(-2px);
}

.page-home .btn-ghost {
  border: 1px solid rgba(108, 124, 138, 0.6);
  background: transparent;
  color: var(--ice);
}

.page-home .btn-ghost:hover,
.page-home .btn-ghost:focus-visible {
  border-color: var(--aqua);
  color: var(--aqua);
}

.page-home .hero-facts {
  list-style: none;
  margin: 0;
  padding: clamp(14px, 2vw, 20px) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(16px, 3vw, 32px);
  border-top: 1px solid var(--home-line);
  width: 100%;
  font-size: 0.82rem;
  color: var(--home-text-mute);
}

.page-home .hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.page-home .hero-facts b {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--aqua);
}

/* ---------- 章节通用 ---------- */
.page-home .section {
  padding-block: clamp(52px, 8vw, 104px) 0;
}

.page-home .section-head {
  margin-bottom: clamp(24px, 4vw, 44px);
}

.page-home .section-num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6.6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(31, 224, 192, 0.16);
  -webkit-text-stroke: 1px rgba(31, 224, 192, 0.5);
}

.page-home .section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.4vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-home .section-desc {
  margin: 0;
  max-width: 38ch;
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--home-text-soft);
}

/* ---------- 01 服务标签 ---------- */
.page-home .svc-layout {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.page-home .svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.page-home .svc-tag {
  display: block;
  padding: 14px 14px 12px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--home-glass), rgba(6, 26, 43, 0.42));
  text-decoration: none;
  color: var(--ice);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease),
    background 0.22s var(--ease);
}

.page-home .svc-idx {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--silver);
}

.page-home .svc-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.page-home .svc-hint {
  display: block;
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--silver);
  transition: max-height 0.25s var(--ease), opacity 0.25s var(--ease);
}

.page-home .svc-tag::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin-top: 10px;
  background: rgba(31, 224, 192, 0.34);
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}

.page-home .svc-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .svc-aside img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--home-line);
  border-radius: 12px;
}

.page-home .svc-aside p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--home-text-soft);
}

.page-home .svc-scale {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--aqua);
  border-top: 1px solid var(--home-line);
  padding-top: 12px;
}

/* ---------- 02 换机延续 ---------- */
.page-home .swap-grid {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
}

.page-home .swap-media {
  position: relative;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--deep-2);
}

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

.page-home .swap-media::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 107, 74, 0.6);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .swap-kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--aqua);
}

.page-home .swap-lead {
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  max-width: 38ch;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--home-text-soft);
}

.page-home .swap-list {
  list-style: none;
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .swap-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(108, 124, 138, 0.28);
  font-size: 0.93rem;
  line-height: 1.7;
  color: #c6d7e1;
}

.page-home .swap-list .mono {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--aqua);
}

.page-home .swap-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(18px, 2.6vw, 26px);
}

.page-home .swap-stats > div {
  flex: 1 1 150px;
  padding: 14px 16px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: var(--home-glass);
}

.page-home .swap-stats .stat-v {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--aqua);
}

.page-home .swap-stats .stat-k {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--silver-2);
}

/* ---------- 03 案例时间线 ---------- */
.page-home .cases-panel {
  padding: clamp(22px, 4.4vw, 54px);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, var(--ice), var(--silver-2));
  color: var(--ink);
}

.page-home .cases-panel .section-num {
  color: rgba(8, 16, 24, 0.1);
  -webkit-text-stroke: 1px rgba(8, 16, 24, 0.34);
}

.page-home .cases-panel .section-title {
  color: var(--ink);
}

.page-home .cases-panel .section-desc {
  color: #3a4650;
}

.page-home .cases-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(18px, 3vw, 28px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 16, 24, 0.06);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #24322c;
}

.page-home .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.page-home .cases-grid {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
}

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

.page-home .tl-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.page-home .tl-item:nth-child(even) {
  margin-left: clamp(0px, 2vw, 18px);
}

.page-home .tl-time {
  display: block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31, 224, 192, 0.34);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  color: #10251f;
}

.page-home .tl-body {
  padding: 13px 15px;
  border: 1px solid rgba(8, 16, 24, 0.09);
  border-radius: 12px;
  background: var(--white);
}

.page-home .tl-cat {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #2a6b7a;
}

.page-home .tl-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #28323a;
}

.page-home .cases-media {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .cases-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(8, 16, 24, 0.1);
}

.page-home .cases-cta {
  justify-self: start;
}

/* ---------- 04 上门流程 ---------- */
.page-home .flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.page-home .flow-idx {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--coral);
}

.page-home .flow-list h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .flow-list p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.74;
  color: var(--home-text-mute);
}

.page-home .flow-foot {
  display: grid;
  gap: 18px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--home-line);
}

.page-home .flow-note {
  margin: 0;
  max-width: 40ch;
  font-size: 0.93rem;
  line-height: 1.76;
  color: var(--home-text-soft);
}

.page-home .flow-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(16px, 3vw, 34px);
  font-size: 0.8rem;
  color: var(--home-text-mute);
}

.page-home .flow-metrics li {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.page-home .flow-metrics b {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--aqua);
}

/* ---------- 05 收束 ---------- */
.page-home .closing {
  padding-block: clamp(52px, 8vw, 104px) 0;
}

.page-home .closing-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.6vw, 58px);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background:
    radial-gradient(70% 120% at 88% 0%, rgba(31, 224, 192, 0.16), transparent 62%),
    linear-gradient(160deg, rgba(18, 63, 90, 0.72), rgba(6, 26, 43, 0.92));
}

.page-home .closing-inner::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(31, 224, 192, 0.18);
  box-shadow: 0 0 0 42px rgba(31, 224, 192, 0.05), 0 0 0 96px rgba(31, 224, 192, 0.03);
  pointer-events: none;
}

.page-home .closing-inner > * {
  position: relative;
  z-index: 1;
}

.page-home .closing-lead {
  margin: 0 0 clamp(20px, 3vw, 28px);
  max-width: 40ch;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--home-text-soft);
}

.page-home .closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(18px, 3vw, 26px);
}

.page-home .closing-note {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--silver);
}

.page-home .closing-note a {
  color: var(--aqua);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 224, 192, 0.35);
}

.page-home .closing-note a:hover,
.page-home .closing-note a:focus-visible {
  border-bottom-color: var(--aqua);
}

/* ---------- 悬停能力 ---------- */
@media (hover: hover) {
  .page-home .svc-tag:hover {
    border-color: rgba(31, 224, 192, 0.55);
    background: linear-gradient(160deg, rgba(18, 63, 90, 0.78), rgba(6, 26, 43, 0.5));
    transform: translateY(-3px);
  }

  .page-home .svc-tag:hover .svc-hint,
  .page-home .svc-tag:focus-visible .svc-hint {
    max-height: 4.8em;
    opacity: 1;
  }

  .page-home .svc-tag:hover::after,
  .page-home .svc-tag:focus-visible::after {
    width: 46px;
    background: var(--aqua);
  }
}

@media (hover: none) {
  .page-home .svc-hint {
    max-height: none;
    opacity: 0.9;
  }
}

/* ---------- 窄屏适配 ---------- */
@media (max-width: 600px) {
  .page-home .hero-frame {
    min-height: 0;
  }

  .page-home .hero-swarm {
    width: 110%;
    height: 58%;
    opacity: 0.4;
  }

  .page-home .tl-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .page-home .tl-item:nth-child(even) {
    margin-left: 0;
  }

  .page-home .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  .page-home .flow-metrics {
    gap: 10px 18px;
  }
}

/* ---------- 中屏 ---------- */
@media (min-width: 620px) {
  .page-home .hero-chip {
    display: flex;
  }

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

@media (min-width: 900px) {
  .page-home .section-head {
    display: grid;
    grid-template-columns: 190px minmax(0, 640px);
    column-gap: clamp(24px, 4vw, 52px);
    align-items: start;
  }

  .page-home .section-num {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    text-align: left;
  }

  .page-home .section-title {
    grid-column: 2;
  }

  .page-home .section-desc {
    grid-column: 2;
  }

  .page-home .svc-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 284px);
    align-items: start;
  }

  .page-home .swap-grid {
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .cases-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    align-items: start;
  }

  .page-home .cases-media {
    position: sticky;
    top: 100px;
  }

  .page-home .flow-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--home-line);
    padding-top: 26px;
  }

  .page-home .flow-list li {
    padding: 0 clamp(10px, 1.6vw, 22px);
    border-left: 1px solid var(--home-line);
  }

  .page-home .flow-list li:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .page-home .flow-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .page-home .svc-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 34px;
  }

  .page-home .cases-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-swarm path {
    animation: none;
  }

  .page-home .btn,
  .page-home .svc-tag,
  .page-home .svc-hint,
  .page-home .svc-tag::after,
  .page-home .btn-primary::after {
    transition: none;
  }

  .page-home .btn-primary:hover,
  .page-home .svc-tag:hover {
    transform: none;
  }
}
