.page-home {
  --hm-pad: clamp(20px, 4vw, 40px);
  --hm-gap: clamp(14px, 2.2vw, 26px);
  --hm-radius: 20px;
}

.page-home .hm-section-note {
  margin: 0;
  max-width: 66ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--nx-mist);
}

.page-home .hm-h2 {
  margin: 10px 0 14px;
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--nx-paper);
}

/* ---------- 首屏拼贴 ---------- */

.page-home .hm-hero {
  position: relative;
  padding-block: clamp(28px, 6vw, 68px) clamp(40px, 7vw, 84px);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hm-hero::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 10%, rgba(180, 76, 240, 0.32), transparent 44%),
    radial-gradient(circle at 8% 72%, rgba(63, 224, 208, 0.18), transparent 48%),
    conic-gradient(from 200deg at 68% 42%, rgba(242, 65, 142, 0.2), transparent 34%);
  animation: hm-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hm-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-1.6%, 1.4%, 0) scale(1.05); }
}

.page-home .hm-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--hm-gap);
}

.page-home .hm-hero__coords {
  display: none;
}

.page-home .hm-hero__rudder {
  display: block;
  width: 1px;
  height: 88px;
  background: linear-gradient(180deg, var(--nx-cyan), transparent);
}

.page-home .hm-hero__intro {
  grid-column: 1 / -1;
  display: grid;
  align-content: start;
  gap: 14px;
}

.page-home .hm-hero__eyebrow {
  margin: 0;
  color: var(--nx-cyan);
}

.page-home .hm-hero__title {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: clamp(42px, 11vw, 104px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--nx-paper);
  transform: skewY(-2deg);
  transform-origin: left bottom;
}

.page-home .hm-hero__title span {
  display: block;
}

.page-home .hm-hero__title-em {
  font-weight: 800;
  background: linear-gradient(96deg, var(--nx-cyan) 0%, var(--nx-orange) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--nx-cyan);
  -webkit-text-fill-color: transparent;
}

.page-home .hm-hero__lede {
  margin: 0;
  max-width: 58ch;
}

.page-home .hm-tile {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  padding: var(--hm-pad);
  border-radius: var(--hm-radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--nx-panel);
  border: 1px solid rgba(43, 58, 102, 0.9);
  isolation: isolate;
  transition:
    transform 0.5s var(--nx-ease),
    border-color 0.5s var(--nx-ease),
    box-shadow 0.5s var(--nx-ease),
    opacity 0.5s var(--nx-ease);
}

.page-home .hm-tile__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.6s var(--nx-ease), transform 0.9s var(--nx-ease);
}

.page-home .hm-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(8, 13, 34, 0.12) 0%,
    rgba(8, 13, 34, 0.78) 52%,
    var(--nx-space) 100%
  );
}

.page-home .hm-tile:hover,
.page-home .hm-tile:focus-visible {
  transform: translateY(-6px);
  border-color: var(--nx-cyan);
  box-shadow: 0 0 0 1px rgba(63, 224, 208, 0.45), 0 26px 52px rgba(0, 0, 0, 0.45);
}

.page-home .hm-tile:hover .hm-tile__img,
.page-home .hm-tile:focus-visible .hm-tile__img {
  opacity: 0.82;
  transform: scale(1.05);
}

.page-home .hm-hero__grid:has(.hm-tile--gift:hover) .hm-tile--cal,
.page-home .hm-hero__grid:has(.hm-tile--gift:focus-visible) .hm-tile--cal,
.page-home .hm-hero__grid:has(.hm-tile--cal:hover) .hm-tile--gift,
.page-home .hm-hero__grid:has(.hm-tile--cal:focus-visible) .hm-tile--gift {
  opacity: 0.5;
}

.page-home .hm-tile__body {
  position: relative;
  display: grid;
  gap: 8px;
}

.page-home .hm-tile__title {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--nx-paper);
}

.page-home .hm-tile__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--nx-mist);
}

.page-home .hm-tile__cta {
  margin-top: 8px;
  font-family: var(--nx-mono-font);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--nx-cyan);
}

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

/* ---------- 更新索引横向轨道 ---------- */

.page-home .hm-updates__head {
  max-width: 66ch;
  margin-bottom: clamp(22px, 4vw, 40px);
}

.page-home .hm-updates__head .nx-index {
  display: block;
  margin-bottom: 6px;
}

.page-home .hm-updates__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(252px, 316px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--nx-line) transparent;
}

.page-home .hm-updates__track:focus-visible {
  outline: 1px dashed var(--nx-cyan);
  outline-offset: 6px;
}

.page-home .hm-upd {
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(18, 26, 56, 0.92), rgba(18, 26, 56, 0.42));
}

.page-home .hm-upd__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-home .hm-upd__ver {
  font-size: 13px;
  color: var(--nx-cyan);
}

.page-home .hm-upd__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--nx-paper);
}

.page-home .hm-upd__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--nx-mist);
}

.page-home .hm-upd__time {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--nx-amber);
}

/* ---------- 品类分区 ---------- */

.page-home .hm-cats__head {
  max-width: 68ch;
  margin-bottom: clamp(22px, 3.6vw, 36px);
}

.page-home .hm-cats__head .nx-index {
  display: block;
  margin-bottom: 6px;
}

.page-home .hm-cats__figure {
  margin: 0 0 clamp(20px, 3vw, 32px);
  border-radius: var(--hm-radius);
  overflow: hidden;
  background: linear-gradient(140deg, rgba(180, 76, 240, 0.24), rgba(63, 224, 208, 0.12) 60%, transparent);
}

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

.page-home .hm-cats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .hm-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(18, 26, 56, 0.72);
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--nx-paper);
  font-size: 15px;
  transition:
    border-color 0.35s var(--nx-ease),
    background 0.35s var(--nx-ease),
    transform 0.35s var(--nx-ease);
}

.page-home .hm-cat:hover,
.page-home .hm-cat:focus-visible {
  border-color: var(--nx-cyan);
  background: rgba(63, 224, 208, 0.09);
  transform: translateX(4px);
}

.page-home .hm-cat .nx-mono {
  font-size: 12px;
  color: var(--nx-cyan);
}

.page-home .hm-cat__name {
  letter-spacing: 0.02em;
}

/* ---------- 企业采购 ---------- */

.page-home .hm-biz__grid {
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.page-home .hm-biz__media {
  margin: 0;
  border-radius: var(--hm-radius);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(63, 224, 208, 0.18), rgba(18, 26, 56, 0.6));
}

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

.page-home .hm-biz__body .nx-index {
  display: block;
  margin-bottom: 6px;
}

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

.page-home .hm-biz__list li {
  position: relative;
  padding: 15px 0 15px 22px;
  border-bottom: 1px solid var(--nx-line);
  font-size: 15px;
  line-height: 1.72;
  color: var(--nx-mist);
}

.page-home .hm-biz__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--nx-cyan);
  box-shadow: 0 0 10px rgba(63, 224, 208, 0.7);
}

.page-home .hm-biz__list strong {
  color: var(--nx-paper);
  font-weight: 700;
}

.page-home .hm-biz__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 30px);
}

/* ---------- 规模数字 ---------- */

.page-home .hm-scale__head {
  max-width: 68ch;
  margin-bottom: clamp(22px, 3.6vw, 38px);
}

.page-home .hm-scale__head .nx-index {
  display: block;
  margin-bottom: 6px;
}

.page-home .hm-scale__link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--nx-mono-font);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--nx-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 224, 208, 0.4);
  padding-bottom: 2px;
}

.page-home .hm-scale__link:hover,
.page-home .hm-scale__link:focus-visible {
  border-bottom-color: var(--nx-cyan);
  color: var(--nx-paper);
}

.page-home .hm-scale__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}

.page-home .hm-stat {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(18, 26, 56, 0.94), rgba(8, 13, 34, 0.55));
  border-top: 1px solid var(--nx-line);
}

.page-home .hm-stat__num {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--nx-paper);
}

.page-home .hm-stat__num em {
  font-style: normal;
  font-size: 0.5em;
  margin-left: 4px;
  color: var(--nx-orange);
}

.page-home .hm-stat__label {
  font-size: 14px;
  line-height: 1.62;
  color: var(--nx-mist);
}

/* ---------- 联系通道 ---------- */

.page-home .hm-contact__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-home .hm-contact__lead .nx-index {
  display: block;
  margin-bottom: 6px;
}

.page-home .hm-contact__lead .nx-btn {
  margin-top: clamp(20px, 3vw, 28px);
}

.page-home .hm-contact__list {
  margin: 0;
  display: grid;
}

.page-home .hm-contact__list > div {
  display: grid;
  gap: 7px;
  padding: 18px 0;
  border-bottom: 1px solid var(--nx-line);
}

.page-home .hm-contact__list > div:first-child {
  border-top: 1px solid var(--nx-line);
}

.page-home .hm-contact__list dt {
  color: var(--nx-cyan);
}

.page-home .hm-contact__list dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--nx-paper);
  overflow-wrap: anywhere;
}

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

@media (min-width: 720px) {
  .page-home .hm-cats__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .hm-hero__coords {
    display: grid;
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    align-content: start;
    gap: 14px;
    padding-top: 10px;
  }

  .page-home .hm-hero__intro {
    grid-column: 2 / 13;
    grid-row: 1;
    gap: 18px;
  }

  .page-home .hm-tile--gift {
    grid-column: 2 / 8;
    grid-row: 2;
    min-height: 300px;
  }

  .page-home .hm-tile--cal {
    grid-column: 8 / 13;
    grid-row: 2;
    min-height: 340px;
  }

  .page-home .hm-updates__track {
    grid-auto-columns: minmax(272px, 1fr);
  }

  .page-home .hm-biz__grid {
    grid-template-columns: 1fr 1.05fr;
  }

  .page-home .hm-contact__grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

@media (min-width: 1024px) {
  .page-home .hm-cats__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-hero::before {
    animation: none;
  }

  .page-home .hm-tile,
  .page-home .hm-tile__img,
  .page-home .hm-cat,
  .page-home .hm-scale__link {
    transition-duration: 0.01ms;
  }

  .page-home .hm-tile:hover,
  .page-home .hm-tile:focus-visible {
    transform: none;
  }
}
