/* ============================================================
   首页专属样式 · 作用域 .page-home
   ============================================================ */

.page-home {
  --home-gap: clamp(18px, 3vw, 34px);
  --home-band: clamp(46px, 7vw, 100px);
  display: block;
  overflow-x: clip;
  background:
    radial-gradient(115% 72% at 88% 0%, rgba(0, 229, 255, .10), transparent 58%),
    radial-gradient(90% 60% at 4% 12%, rgba(255, 107, 26, .07), transparent 62%),
    var(--ink);
  color: var(--text);
}

.page-home .breadcrumbs {
  padding-top: clamp(14px, 2.4vw, 22px);
}

/* ---------- 首屏分屏 ---------- */

.page-home .home-hero {
  position: relative;
  padding-block: clamp(20px, 3.4vw, 40px) clamp(38px, 6vw, 82px);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 5vw, 52px);
  align-items: center;
}

.page-home .home-hero__eyebrow {
  display: inline-block;
  color: var(--cyan);
  border: 1px solid var(--line-cyan);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  background: rgba(0, 229, 255, .07);
}

.page-home .home-hero__title {
  margin: 18px 0 0;
  font-size: clamp(29px, 5.4vw, 56px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--cream);
  max-width: 17em;
}

.page-home .home-hero__mark {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 229, 255, .35);
}

.page-home .home-hero__lede {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--text-soft);
}

.page-home .home-hero__lede + .home-hero__lede {
  margin-top: 12px;
  color: var(--text-dim);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

/* 右侧脉冲面板 */

.page-home .pulse-panel {
  position: relative;
  min-height: clamp(300px, 60vw, 470px);
  background: var(--surface-deep);
  overflow: hidden;
  clip-path: polygon(0 3.5%, 100% 0, 100% 96.5%, 0 100%);
}

.page-home .pulse-panel__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  filter: saturate(.9) contrast(1.06) brightness(.55);
}

.page-home .pulse-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(158deg,
      rgba(0, 229, 255, .30) 0%,
      rgba(6, 20, 16, .80) 48%,
      rgba(255, 107, 26, .24) 100%);
}

.page-home .pulse-panel__svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 140;
  pointer-events: none;
}

.page-home .pulse-panel__svg polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(0, 229, 255, .55));
}

.page-home .pulse-panel__svg circle {
  fill: var(--orange);
}

.page-home .pulse-panel__readout {
  position: absolute;
  z-index: 3;
  top: clamp(30px, 5vw, 50px);
  left: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.6vw, 34px);
}

.page-home .pulse-panel__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page-home .pulse-panel__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(21px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.page-home .pulse-panel__num--warm {
  color: var(--orange);
}

.page-home .pulse-panel__key {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(242, 239, 230, .62);
}

/* ---------- 三步自查 ---------- */

.page-home .home-flow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--home-band);
  border-block: 1px solid var(--line);
}

.page-home .home-flow__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-home .home-flow__ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .24;
  filter: saturate(1.25) contrast(1.05);
}

.page-home .home-flow__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 31, 26, .96) 0%,
    rgba(11, 31, 26, .72) 42%,
    rgba(11, 31, 26, .98) 100%);
}

.page-home .flow {
  margin-top: clamp(26px, 3.4vw, 44px);
}

.page-home .flow__list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .flow__item {
  position: relative;
}

.page-home .flow__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .flow__label {
  display: block;
  height: 100%;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(6, 20, 16, .55);
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.page-home .flow__label:hover {
  border-color: rgba(0, 229, 255, .45);
}

.page-home .flow__radio:checked + .flow__label {
  border-color: var(--cyan);
  background: linear-gradient(150deg, rgba(0, 229, 255, .12), rgba(46, 74, 60, .46));
  transform: translateY(-3px);
}

.page-home .flow__radio:focus-visible + .flow__label {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-home .flow__index {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-home .flow__name {
  margin: 12px 0 0;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--cream);
}

.page-home .flow__text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--text-soft);
}

.page-home .home-flow__more {
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-dim);
}

.page-home .home-flow__link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cyan);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-flow__link:hover {
  color: var(--orange);
  border-color: var(--line-warm);
}

/* ---------- 赛后时间轴 ---------- */

.page-home .home-rail {
  padding-block: var(--home-band);
}

.page-home .home-rail__lede {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  max-width: 66ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--text-soft);
}

.page-home .home-rail__media {
  margin: clamp(26px, 3.6vw, 46px) 0 clamp(22px, 3vw, 36px);
}

.page-home .rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 78%);
  gap: 14px;
  margin: 0;
  padding: 4px 2px 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--cyan-deep) rgba(140, 150, 141, .18);
  scrollbar-width: thin;
}

.page-home .rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .rail::-webkit-scrollbar-track {
  background: rgba(140, 150, 141, .16);
  border-radius: var(--r-pill);
}

.page-home .rail::-webkit-scrollbar-thumb {
  background: var(--cyan-deep);
  border-radius: var(--r-pill);
}

.page-home .rail__card {
  scroll-snap-align: start;
  padding: 22px 20px 26px;
  background: linear-gradient(180deg, rgba(46, 74, 60, .52), rgba(46, 74, 60, .16));
  clip-path: polygon(0 0, 100% 3.5%, 100% 100%, 0 96.5%);
  transition: background var(--dur) var(--ease);
}

.page-home .rail__card:hover {
  background: linear-gradient(180deg, rgba(0, 229, 255, .16), rgba(46, 74, 60, .26));
}

.page-home .rail__round {
  display: block;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--orange);
}

.page-home .rail__name {
  margin: 12px 0 0;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--cream);
}

.page-home .rail__text {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

/* ---------- 三类终端 ---------- */

.page-home .home-devices {
  padding-block: var(--home-band);
  border-top: 1px solid var(--line);
}

.page-home .devices {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.page-home .devices__media {
  margin: 0;
  order: 2;
}

.page-home .devices__body {
  order: 1;
}

.page-home .devices__list {
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.page-home .devices__item {
  position: relative;
  padding: 18px 0 18px 22px;
  border-top: 1px solid var(--line);
}

.page-home .devices__item:last-child {
  border-bottom: 1px solid var(--line);
}

.page-home .devices__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, .55);
}

.page-home .devices__item:nth-child(2)::before {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 107, 26, .5);
}

.page-home .devices__item:nth-child(3)::before {
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(245, 211, 0, .45);
}

.page-home .devices__name {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 700;
  color: var(--cream);
}

.page-home .devices__text {
  margin: 8px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--text-soft);
}

/* ---------- Bento 分支 ---------- */

.page-home .home-more {
  padding-block: var(--home-band);
}

.page-home .home-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 1.8vw, 20px);
  margin-top: clamp(24px, 3.2vw, 40px);
}

.page-home .home-bento__cell {
  position: relative;
  display: block;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(6, 20, 16, .58);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.page-home .home-bento__cell::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, .18), transparent 68%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.page-home .home-bento__cell:hover,
.page-home .home-bento__cell:focus-visible {
  border-color: var(--cyan);
  transform: translateY(-4px);
  background: rgba(46, 74, 60, .40);
}

.page-home .home-bento__cell:hover::after {
  opacity: 1;
}

.page-home .home-bento__tag {
  display: inline-block;
  color: var(--orange);
}

.page-home .home-bento__name {
  margin: 12px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--cream);
}

.page-home .home-bento__text {
  margin: 10px 0 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--text-soft);
}

.page-home .home-bento__arrow {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cyan);
  transition: transform var(--dur) var(--ease);
}

.page-home .home-bento__cell:hover .home-bento__arrow {
  transform: translateX(6px);
}

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

@media (min-width: 620px) {
  .page-home .rail {
    grid-auto-columns: minmax(0, 46%);
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(34px, 5vw, 74px);
  }

  .page-home .flow__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 28px);
  }

  .page-home .flow__list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
      rgba(0, 229, 255, .70),
      rgba(255, 107, 26, .50) 62%,
      rgba(245, 211, 0, .55));
    border-radius: var(--r-pill);
  }

  .page-home .flow__item {
    padding-top: 26px;
  }

  .page-home .flow__item::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--cyan);
  }

  .page-home .flow__item:nth-child(2)::before {
    border-color: var(--orange);
  }

  .page-home .flow__item:nth-child(3)::before {
    border-color: var(--yellow);
  }

  .page-home .rail {
    grid-auto-columns: minmax(0, 31%);
  }

  .page-home .devices {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .page-home .devices__media {
    order: 2;
  }

  .page-home .devices__body {
    order: 1;
  }

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

  .page-home .home-bento__cell--wide {
    grid-column: span 7;
  }

  .page-home .home-bento__cell--narrow {
    grid-column: span 5;
  }
}

@media (min-width: 1120px) {
  .page-home .rail {
    grid-auto-columns: minmax(0, 24%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-bento__cell,
  .page-home .home-bento__arrow,
  .page-home .flow__label,
  .page-home .rail__card {
    transition-property: opacity, border-color;
  }

  .page-home .home-bento__cell:hover {
    transform: none;
  }

  .page-home .flow__radio:checked + .flow__label {
    transform: none;
  }
}
