.page-home {
  --home-gap: clamp(20px, 4vw, 46px);
  display: block;
}

/* ---------- 页面上下文条 ---------- */
.page-home .home-context {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
}

.page-home .home-context__meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ---------- 首屏分屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 56px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(115% 85% at 92% 0%, rgba(182, 255, 63, 0.13), transparent 58%),
    radial-gradient(90% 70% at 2% 105%, rgba(255, 138, 43, 0.11), transparent 62%),
    var(--bg);
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: center;
}

.page-home .hero__copy h1 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
}

.page-home .hero__copy .lede {
  margin: 18px 0 0;
  max-width: 46ch;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .hero__facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.88rem;
  color: var(--muted);
}

.page-home .hero__facts .num {
  color: var(--lime);
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: 5px;
}

.page-home .hero__visual {
  position: relative;
  isolation: isolate;
}

.page-home .hero__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cool);
}

.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.page-home .hero__hud {
  position: relative;
  z-index: 2;
  margin: -62px 14px 0;
}

/* ---------- 仪表板玻璃层 ---------- */
.page-home .dash {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.page-home .dash:hover {
  border-color: rgba(182, 255, 63, 0.5);
  transform: translateY(-3px);
}

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

.page-home .dash__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.page-home .dash-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(182, 255, 63, 0.18);
  animation: home-pulse 2.2s var(--ease) infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.page-home .dash__spark {
  display: block;
  width: 100%;
  height: 76px;
  margin: 14px 0 10px;
}

.page-home .dash__rows {
  margin: 0;
  display: grid;
  gap: 8px;
}

.page-home .dash__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(43, 61, 70, 0.7);
}

.page-home .dash__row dt {
  font-size: 0.8rem;
  color: var(--muted);
}

.page-home .dash__row dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--num);
}

/* ---------- 版本获取 ---------- */
.page-home .download {
  padding: clamp(44px, 8vw, 92px) 0;
  position: relative;
}

.page-home .download__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: start;
}

.page-home .download__copy h2 {
  margin: 12px 0 0;
}

.page-home .download__copy p {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.page-home .download__copy .num {
  color: var(--lime);
  font-weight: 700;
}

.page-home .download__copy .btn {
  margin-top: 26px;
}

.page-home .spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .spec__item {
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(23, 36, 44, 0.45);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .spec__item:hover {
  border-color: rgba(182, 255, 63, 0.45);
  background: rgba(23, 36, 44, 0.72);
}

.page-home .spec__label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.page-home .spec__value {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--num);
  letter-spacing: -0.01em;
}

.page-home .download__note {
  margin: 16px 0 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid var(--orange);
  padding-left: 14px;
}

/* ---------- 栏目导览 ---------- */
.page-home .channels {
  padding: clamp(44px, 8vw, 92px) 0;
}

.page-home .channels__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: center;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .channels__head h2 {
  margin: 12px 0 0;
}

.page-home .channels__head .lede {
  margin: 16px 0 0;
}

.page-home .channels__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .channels__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(248px, 78%);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}

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

.page-home .rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.page-home .rail__item {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  border-top: 2px solid var(--line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(13, 32, 25, 0.85);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .rail__item:hover {
  border-top-color: var(--lime);
  background: rgba(13, 32, 25, 1);
}

.page-home .rail__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.page-home .rail__item h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .rail__item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 数据亮点 ---------- */
.page-home .stats {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 8vw, 92px) 0;
}

.page-home .stats__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .stats__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
}

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

.page-home .stats__inner .section-head h2 {
  margin: 12px 0 0;
  max-width: 22ch;
}

.page-home .stats__grid {
  list-style: none;
  margin: clamp(28px, 4vw, 46px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.page-home .stats__grid li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-home .stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--lime);
}

.page-home .stat__unit {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 5px;
}

.page-home .stat__label {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.page-home .meters {
  margin-top: clamp(30px, 4vw, 46px);
  display: grid;
  gap: 16px;
}

.page-home .meter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.page-home .meter__val {
  font-family: var(--font-mono);
  color: var(--num);
}

/* ---------- 通勤与收藏 ---------- */
.page-home .commute {
  padding: clamp(44px, 8vw, 92px) 0 clamp(30px, 5vw, 58px);
}

.page-home .commute__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: center;
}

.page-home .commute__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cool);
}

.page-home .commute__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.page-home .commute__copy h2 {
  margin: 12px 0 0;
}

.page-home .commute__copy > p {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 54ch;
}

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

.page-home .commute__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .commute__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--lime);
}

.page-home .commute__copy .btn {
  margin-top: 28px;
}

/* ---------- 收束信任条 ---------- */
.page-home .trustbar {
  padding-bottom: clamp(46px, 8vw, 96px);
}

.page-home .trustbar__inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 34px;
}

.page-home .trustbar__text {
  margin: 0;
  max-width: 64ch;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .trustbar__text .num {
  color: var(--lime);
  font-weight: 700;
}

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

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

  .page-home .spec {
    gap: 14px;
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(36px, 5vw, 72px);
  }

  .page-home .hero__hud {
    position: absolute;
    right: 20px;
    bottom: 22px;
    width: min(310px, 76%);
    margin: 0;
  }

  .page-home .download__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
  }

  .page-home .channels__head {
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(28px, 4vw, 56px);
  }

  .page-home .rail {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .page-home .commute__grid {
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(32px, 5vw, 68px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .dash-dot {
    animation: none;
  }

  .page-home .dash,
  .page-home .spec__item,
  .page-home .rail__item {
    transition: none;
  }

  .page-home .dash:hover,
  .page-home .spec__item:hover,
  .page-home .rail__item:hover {
    transform: none;
  }
}
