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

.page-home {
  background: var(--ink-void);
  color: var(--white-hi);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.page-home .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-signal);
  margin: 0;
}

.page-home .section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.page-home .section-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--white-hi);
}

.page-home .lede {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--grey-index);
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-capsule);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.page-home .btn-solid {
  background: var(--blue-volt);
  border-color: var(--blue-volt);
  color: var(--white-hi);
}

.page-home .btn-solid:hover {
  background: var(--cyan-signal);
  border-color: var(--cyan-signal);
  color: var(--ink-void);
  transform: translateY(-2px);
}

.page-home .btn-ghost {
  background: transparent;
  border-color: var(--line-steel);
  color: var(--white-hi);
}

.page-home .btn-ghost:hover {
  border-color: var(--cyan-signal);
  color: var(--cyan-signal);
  transform: translateY(-2px);
}

.page-home .btn:focus-visible {
  outline: 2px solid var(--cyan-signal);
  outline-offset: 2px;
}

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

.page-home .home-hero {
  position: relative;
  padding-block: 48px 80px;
  isolation: isolate;
}

.page-home .hero-glow {
  position: absolute;
  inset: -10% -20% 20% -10%;
  background: linear-gradient(140deg, rgba(47, 107, 255, 0.32), rgba(36, 224, 214, 0.08) 46%, transparent 72%);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 0 92%);
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(43, 54, 70, 0.5) 0 1px, transparent 1px 96px);
  opacity: 0.5;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}

.page-home .hero-context {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-index);
}

.page-home .hero-context-brand {
  color: var(--cyan-signal);
}

.page-home .hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 10vw, 92px);
  font-weight: 250;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--white-hi);
}

.page-home .hero-title em {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(96deg, var(--cyan-signal), var(--blue-volt) 62%, var(--magenta-neon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero-lede {
  margin: 22px 0 0;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--grey-index);
}

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

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line-steel);
}

.page-home .hero-stats .stat {
  min-width: 0;
}

.page-home .hero-stats dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-index);
}

.page-home .hero-stats dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white-hi);
}

.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan-signal);
  margin-right: 2px;
}

.page-home .hero-visual {
  position: relative;
  min-width: 0;
}

.page-home .hero-frame {
  border: 1px solid var(--line-steel);
  border-radius: var(--r-card);
  background: var(--ink-slate);
  overflow: hidden;
  box-shadow: inset 0 0 70px rgba(47, 107, 255, 0.16), 0 26px 60px rgba(5, 7, 12, 0.7);
}

.page-home .hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .hero-ver {
  position: absolute;
  top: -14px;
  left: 20px;
  padding: 7px 16px;
  border-radius: var(--r-capsule);
  border: 1px solid var(--cyan-signal);
  background: rgba(5, 7, 12, 0.92);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan-signal);
}

.page-home .hero-tick {
  position: absolute;
  padding: 6px 12px;
  border-radius: var(--r-capsule);
  border: 1px solid var(--line-steel);
  background: rgba(15, 22, 34, 0.94);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--grey-index);
  white-space: nowrap;
}

.page-home .hero-tick--a {
  top: 18%;
  right: -6px;
}

.page-home .hero-tick--b {
  bottom: 16%;
  left: -6px;
}

.page-home .hero-signal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-signal svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Bento 入口板 ---------- */

.page-home .entry-board {
  position: relative;
  padding-block: 72px;
  border-top: 1px solid var(--line-steel);
  overflow: hidden;
}

.page-home .board-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

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

.page-home .bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.page-home .bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border: 1px solid var(--line-steel);
  border-radius: var(--r-card);
  background: linear-gradient(160deg, rgba(15, 22, 34, 0.96), rgba(5, 7, 12, 0.92));
  box-shadow: inset 0 1px 0 rgba(243, 247, 255, 0.04);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.page-home .bento-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-volt), var(--cyan-signal), transparent);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.page-home .bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-volt);
  box-shadow: inset 0 1px 0 rgba(243, 247, 255, 0.06), 0 20px 44px rgba(5, 7, 12, 0.6);
}

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

.page-home .bento-card:focus-visible {
  outline: 2px solid var(--cyan-signal);
  outline-offset: 2px;
}

.page-home .bento-idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-index);
}

.page-home .bento-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--white-hi);
}

.page-home .bento-card--lead .bento-title {
  font-size: 27px;
}

.page-home .bento-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--grey-index);
}

.page-home .bento-go {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cyan-signal);
}

/* ---------- 三端同步带 ---------- */

.page-home .sync-band {
  padding-block: 76px;
  border-block: 1px solid var(--line-steel);
  background: linear-gradient(180deg, rgba(15, 22, 34, 0.9), rgba(5, 7, 12, 0.2));
}

.page-home .sync-grid {
  display: grid;
  gap: 40px;
}

.page-home .sync-list {
  margin: 0;
  border-top: 1px solid var(--line-steel);
}

.page-home .sync-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(43, 54, 70, 0.7);
}

.page-home .sync-term {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan-signal);
  padding-top: 4px;
}

.page-home .sync-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white-hi);
}

.page-home .sync-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--grey-index);
  max-width: 54ch;
}

.page-home .sync-visual {
  border: 1px solid var(--line-steel);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ink-slate);
}

.page-home .sync-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- 首次到访三步 ---------- */

.page-home .first-visit {
  padding-block: 76px;
}

.page-home .visit-grid {
  display: grid;
  gap: 44px;
}

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

.page-home .step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(43, 54, 70, 0.7);
}

.page-home .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan-signal);
  padding-top: 3px;
}

.page-home .step-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--white-hi);
}

.page-home .step-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--grey-index);
  max-width: 56ch;
}

.page-home .visit-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.page-home .phone-shell {
  width: 100%;
  max-width: 300px;
  padding: 14px;
  border: 1px solid var(--line-steel);
  border-radius: 34px;
  background: linear-gradient(180deg, var(--ink-slate), var(--ink-void));
  box-shadow: inset 0 0 44px rgba(47, 107, 255, 0.18), 0 22px 50px rgba(5, 7, 12, 0.7);
}

.page-home .phone-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
}

.page-home .visit-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-index);
}

/* ---------- 近期更新索引 ---------- */

.page-home .updates {
  padding-block: 76px;
  border-top: 1px solid var(--line-steel);
}

.page-home .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.page-home .chip {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--line-steel);
  border-radius: var(--r-capsule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey-index);
  background: rgba(15, 22, 34, 0.6);
  cursor: pointer;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.page-home .chip:hover {
  border-color: var(--blue-volt);
  color: var(--white-hi);
}

.page-home .filter-radio:checked + .chip {
  background: var(--cyan-signal);
  border-color: var(--cyan-signal);
  color: var(--ink-void);
}

.page-home .filter-radio:focus-visible + .chip {
  outline: 2px solid var(--cyan-signal);
  outline-offset: 2px;
}

.page-home .updates-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-steel);
}

.page-home .update-item {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(43, 54, 70, 0.7);
}

.page-home .update-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--blue-volt);
}

.page-home .update-item.u-device .update-tag {
  color: var(--cyan-signal);
}

.page-home .update-item.u-register .update-tag {
  color: var(--magenta-neon);
}

.page-home .update-item.u-content .update-tag {
  color: var(--grey-index);
}

.page-home .update-title {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--white-hi);
}

.page-home .update-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey-index);
}

.page-home .updates-filter:has(#upd-version:checked) .update-item:not(.u-version),
.page-home .updates-filter:has(#upd-device:checked) .update-item:not(.u-device),
.page-home .updates-filter:has(#upd-register:checked) .update-item:not(.u-register),
.page-home .updates-filter:has(#upd-content:checked) .update-item:not(.u-content) {
  display: none;
}

.page-home .updates-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 22px;
}

.page-home .updates-more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan-signal);
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 224, 214, 0.4);
  padding-bottom: 2px;
}

.page-home .updates-more:hover {
  color: var(--white-hi);
  border-bottom-color: var(--white-hi);
}

.page-home .updates-more:focus-visible {
  outline: 2px solid var(--cyan-signal);
  outline-offset: 2px;
}

.page-home .updates-year {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-index);
}

/* ---------- 页面收尾动作区 ---------- */

.page-home .action-hub {
  padding-block: 40px 84px;
}

.page-home .hub-capsule {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 22px;
  border: 1px solid var(--line-steel);
  border-radius: var(--r-card);
  background: linear-gradient(120deg, rgba(15, 22, 34, 0.96), rgba(5, 7, 12, 0.9));
  box-shadow: 0 24px 56px rgba(5, 7, 12, 0.6);
}

.page-home .hub-capsule::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-volt), var(--cyan-signal), var(--magenta-neon), transparent);
}

.page-home .hub-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white-hi);
}

.page-home .hub-text {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--grey-index);
}

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

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

@media (min-width: 720px) {
  .page-home .shell {
    padding-inline: 32px;
  }

  .page-home .home-hero {
    padding-block: 64px 96px;
  }

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

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

  .page-home .bento-card--lead {
    grid-column: span 6;
  }

  .page-home .bento-card {
    grid-column: span 3;
  }

  .page-home .entry-board,
  .page-home .sync-band,
  .page-home .first-visit,
  .page-home .updates {
    padding-block: 92px;
  }

  .page-home .update-item {
    grid-template-columns: 116px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 20px;
  }

  .page-home .hub-capsule {
    padding: 26px 32px;
    border-radius: var(--r-capsule);
  }

  .page-home .hub-capsule::before {
    left: 32px;
    right: 32px;
  }
}

@media (min-width: 1080px) {
  .page-home .shell {
    padding-inline: var(--gutter);
  }

  .page-home .hero-grid {
    grid-template-columns: 6.5fr 5.5fr;
    align-items: center;
    column-gap: 64px;
    gap: 0;
  }

  .page-home .hero-visual {
    transform: translateY(30px);
  }

  .page-home .hero-signal {
    height: 120px;
  }

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

  .page-home .bento-card--lead {
    grid-column: span 7;
  }

  .page-home .bento-card {
    grid-column: span 4;
  }

  .page-home .bento-card:nth-child(2) {
    grid-column: span 5;
  }

  .page-home .sync-grid {
    grid-template-columns: 6fr 6fr;
    align-items: center;
    column-gap: 72px;
  }

  .page-home .visit-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    column-gap: 64px;
  }

  .page-home .phone-shell {
    max-width: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .bento-card,
  .page-home .btn,
  .page-home .chip {
    transition: none;
  }

  .page-home .bento-card:hover,
  .page-home .btn:hover {
    transform: none;
  }
}
