.page-home {
  --hm-glow: rgba(76, 240, 218, 0.14);
  --hm-hot: rgba(255, 106, 43, 0.2);
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(88% 58% at 88% 2%, rgba(76, 240, 218, 0.08), transparent 62%),
    radial-gradient(70% 50% at 2% 26%, rgba(255, 106, 43, 0.07), transparent 64%);
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 5vw, 46px) 0 clamp(58px, 10vw, 116px);
  border-bottom: 1px solid var(--nx-line);
}

.page-home .hm-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: -3;
  filter: saturate(0.62) contrast(1.05);
}

.page-home .hm-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 92% at 6% 4%, rgba(11, 18, 48, 0.3), rgba(11, 18, 48, 0.96) 66%),
    linear-gradient(97deg, rgba(11, 18, 48, 0.97) 0 47%, rgba(20, 30, 72, 0.52) 47% 100%);
}

.page-home .hm-hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -2px;
  height: clamp(88px, 18vw, 200px);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(101deg,
      transparent 0 37%,
      rgba(76, 240, 218, 0.22) 37% 37.5%,
      transparent 37.5% 63%,
      rgba(255, 106, 43, 0.28) 63% 63.6%,
      transparent 63.6%);
  clip-path: polygon(0 100%, 0 56%, 100% 0, 100% 100%);
}

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

.page-home .hm-hero__ctx {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 clamp(26px, 5vw, 52px);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--nx-mist);
}

.page-home .hm-hero__grid {
  display: grid;
  gap: clamp(28px, 6vw, 56px);
}

.page-home .hm-hero__title {
  display: flex;
  flex-direction: column;
  margin: 0 0 clamp(16px, 3vw, 26px);
  font-family: var(--nx-display);
  font-weight: 800;
  font-size: clamp(50px, 14vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.page-home .hm-hero__l1 {
  color: var(--nx-white);
}

.page-home .hm-hero__l2 {
  color: var(--nx-cyan);
  padding-left: 0.05em;
}

@supports (-webkit-text-stroke: 1px #000) {
  .page-home .hm-hero__l2 {
    color: transparent;
    -webkit-text-stroke: 2px var(--nx-cyan);
  }
}

.page-home .hm-hero__sub {
  margin: 0 0 14px;
  max-width: 44ch;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.8;
  color: var(--nx-white);
}

.page-home .hm-hero__meta {
  margin: 0 0 20px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--nx-mist);
}

.page-home .hm-hero__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  font-size: 14px;
  color: var(--nx-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 240, 218, 0.4);
  transition: color var(--nx-t) var(--nx-ease), border-color var(--nx-t) var(--nx-ease);
}

.page-home .hm-hero__more:hover {
  color: var(--nx-white);
  border-color: var(--nx-white);
}

/* 首屏状态卡 */
.page-home .hm-status {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-xl);
  background: linear-gradient(155deg, rgba(27, 39, 87, 0.94), rgba(11, 18, 48, 0.9));
  box-shadow: var(--nx-shadow);
}

.page-home .hm-status::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 76px;
  height: 34px;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(76, 240, 218, 0.55) 0 1px, transparent 1px 8px);
  opacity: 0.55;
}

.page-home .hm-status__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.page-home .hm-status__mono {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--nx-cyan);
}

.page-home .hm-status__label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--nx-mist);
}

.page-home .hm-count {
  margin: 0 0 20px;
  font-family: var(--nx-mono);
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--nx-orange);
}

.page-home .hm-status__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 18px 0 0;
  border-top: 1px dashed var(--nx-line-soft);
  display: grid;
  gap: 10px;
}

.page-home .hm-status__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--nx-mist);
}

.page-home .hm-status__cta {
  display: grid;
  gap: 10px;
}

.page-home .hm-status__quiet {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--nx-mist);
  text-decoration: none;
  border-bottom: 1px solid var(--nx-line-soft);
  transition: color var(--nx-t) var(--nx-ease);
}

.page-home .hm-status__quiet:hover {
  color: var(--nx-cyan);
}

/* ---------- 主体骨架 ---------- */
.page-home .hm-body {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(34px, 6vw, 68px) 0 clamp(56px, 9vw, 108px);
}

.page-home .hm-body__main {
  min-width: 0;
}

.page-home .hm-rail__title {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--nx-mist);
}

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

.page-home .hm-rail__link {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--nx-mist);
  text-decoration: none;
  border: 1px solid var(--nx-line-soft);
  border-radius: var(--nx-r-pill);
  transition: color var(--nx-t) var(--nx-ease), border-color var(--nx-t) var(--nx-ease);
}

.page-home .hm-rail__link[data-active] {
  color: var(--nx-cyan);
  border-color: var(--nx-cyan);
}

/* ---------- 章节 ---------- */
.page-home .hm-sec {
  position: relative;
  padding: clamp(30px, 5vw, 54px) 0;
  border-top: 1px solid var(--nx-line);
}

.page-home .hm-sec:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-home .hm-sec__cta {
  margin: clamp(22px, 4vw, 32px) 0 0;
}

.page-home .hm-split {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
}

.page-home .hm-split__body {
  min-width: 0;
}

.page-home .hm-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  background: linear-gradient(150deg, var(--nx-cabin), var(--nx-midnight));
}

.page-home .hm-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .hm-frame__cap {
  padding: 10px 16px;
  border-top: 1px solid var(--nx-line);
  font-family: var(--nx-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--nx-mist);
}

/* 刻度列表 */
.page-home .hm-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .hm-ticks li {
  display: grid;
  grid-template-columns: minmax(56px, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--nx-line-soft);
}

.page-home .hm-ticks li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .hm-ticks__k {
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1;
  color: var(--nx-cyan);
}

.page-home .hm-ticks__v {
  font-size: 15px;
  line-height: 1.8;
  color: var(--nx-white);
}

/* 步骤 */
.page-home .hm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .hm-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  background: linear-gradient(160deg, rgba(20, 30, 72, 0.68), rgba(11, 18, 48, 0.42));
}

.page-home .hm-steps__no {
  font-size: 18px;
  line-height: 1.4;
  color: var(--nx-orange);
}

.page-home .hm-steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--nx-white);
}

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

/* 卡片 */
.page-home .hm-cards {
  display: grid;
  gap: 14px;
}

.page-home .hm-card {
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  background: linear-gradient(160deg, rgba(20, 30, 72, 0.72), rgba(11, 18, 48, 0.46));
  transition: transform var(--nx-t) var(--nx-ease), border-color var(--nx-t) var(--nx-ease);
}

.page-home .hm-card:hover {
  transform: translateY(-3px);
  border-color: var(--nx-cyan);
}

.page-home .hm-card h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--nx-white);
}

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

.page-home .hm-card__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--nx-line-soft);
  font-size: 13px;
  color: var(--nx-mist);
  opacity: 0.8;
  transition: color var(--nx-t) var(--nx-ease), opacity var(--nx-t) var(--nx-ease);
}

.page-home .hm-card:hover .hm-card__note {
  opacity: 1;
  color: var(--nx-cyan);
}

/* 评测（奶油底） */
.page-home .hm-review {
  padding: clamp(24px, 4vw, 44px);
  border: 0;
  border-radius: var(--nx-r-xl);
  background: var(--nx-cream);
  color: var(--nx-brown);
}

.page-home .hm-review .nx-head__no {
  color: var(--nx-red);
}

.page-home .hm-review .nx-head__title {
  color: var(--nx-brown);
}

.page-home .hm-review .nx-head__desc {
  color: rgba(42, 28, 20, 0.78);
}

.page-home .hm-review__list {
  list-style: none;
  margin: clamp(18px, 3vw, 28px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .hm-review__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(42, 28, 20, 0.22);
}

.page-home .hm-review__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .hm-review__no {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--nx-red);
}

.page-home .hm-review__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--nx-brown);
}

.page-home .hm-review__cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(20px, 3vw, 28px);
  padding: 12px 24px;
  border-radius: var(--nx-r-pill);
  background: var(--nx-brown);
  color: var(--nx-cream);
  font-size: 15px;
  text-decoration: none;
  transition: background var(--nx-t) var(--nx-ease);
}

.page-home .hm-review__cta:hover {
  background: var(--nx-red);
}

/* 索引 */
.page-home .hm-idx {
  border-top: 1px solid var(--nx-line);
}

.page-home .hm-idx__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--nx-line);
  color: var(--nx-white);
  text-decoration: none;
  transition: background var(--nx-t) var(--nx-ease), padding-left var(--nx-t) var(--nx-ease);
}

.page-home .hm-idx__row:hover {
  padding-left: 14px;
  background: rgba(76, 240, 218, 0.06);
}

.page-home .hm-idx__no {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--nx-cyan);
}

.page-home .hm-idx__title {
  font-size: 17px;
  line-height: 1.5;
}

.page-home .hm-idx__meta {
  font-size: 13px;
  color: var(--nx-mist);
  text-align: right;
}

/* 联系 */
.page-home .hm-contact {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-xl);
  background: linear-gradient(150deg, rgba(27, 39, 87, 0.62), rgba(11, 18, 48, 0.58));
}

.page-home .hm-contact__item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.page-home .hm-contact__k {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--nx-cyan);
}

.page-home .hm-contact__v {
  font-size: 16px;
  line-height: 1.6;
  color: var(--nx-white);
  overflow-wrap: anywhere;
}

.page-home .hm-contact__v a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--nx-line-soft);
  transition: color var(--nx-t) var(--nx-ease), border-color var(--nx-t) var(--nx-ease);
}

.page-home .hm-contact__v a:hover {
  color: var(--nx-cyan);
  border-color: var(--nx-cyan);
}

.page-home .hm-contact__note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--nx-line-soft);
  font-size: 13px;
  line-height: 1.8;
  color: var(--nx-mist);
}

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

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

@media (min-width: 900px) {
  .page-home .hm-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: center;
  }

  .page-home .hm-split--flip {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  }
}

@media (min-width: 980px) {
  .page-home .hm-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: end;
    gap: clamp(32px, 5vw, 72px);
  }
}

@media (min-width: 1100px) {
  .page-home .hm-body {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: clamp(28px, 4vw, 60px);
  }

  .page-home .hm-rail {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 132px;
    align-self: start;
  }

  .page-home .hm-body__main {
    grid-column: 1;
    grid-row: 1;
  }

  .page-home .hm-rail__list {
    flex-direction: column;
    gap: 2px;
  }

  .page-home .hm-rail__link {
    padding: 6px 0 6px 12px;
    border: 0;
    border-left: 2px solid var(--nx-line-soft);
    border-radius: 0;
  }

  .page-home .hm-rail__link[data-active] {
    border-left-color: var(--nx-cyan);
  }
}

@media (max-width: 640px) {
  .page-home .hm-idx__row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-home .hm-idx__meta {
    grid-column: 2;
    text-align: left;
  }

  .page-home .hm-ticks li {
    grid-template-columns: minmax(48px, auto) minmax(0, 1fr);
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-card,
  .page-home .hm-idx__row,
  .page-home .hm-rail__link {
    transition: none;
  }
}
