.page-home {
  --home-grid-line: rgba(32, 227, 255, 0.055);
  --home-gap: clamp(14px, 2.6vw, 26px);
  background-color: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-home .section {
  padding: clamp(48px, 8vw, 104px) 0;
  position: relative;
}

.page-home .section--tight {
  padding: clamp(36px, 6vw, 76px) 0;
}

.page-home .section-head {
  max-width: 64ch;
  margin-bottom: clamp(22px, 3.4vw, 42px);
}

.page-home .section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 4.2vw, 46px);
  line-height: 1.08;
  margin: 10px 0 0;
  color: var(--paper);
}

.page-home .section-lead {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--paper-70);
}

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

.page-home .hero {
  position: relative;
  padding: clamp(16px, 2.6vw, 38px) 0 clamp(30px, 5vw, 64px);
  background-image:
    linear-gradient(to right, var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 72% 0%, rgba(32, 227, 255, 0.12), transparent 62%),
    radial-gradient(90% 60% at 0% 100%, rgba(255, 106, 42, 0.07), transparent 60%);
}

.page-home .hero__crumb {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.page-home .hero-shell {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-strong);
  background: linear-gradient(158deg, rgba(14, 22, 38, 0.97) 0%, rgba(7, 11, 20, 0.99) 66%);
  padding: clamp(14px, 2.4vw, 30px);
}

.page-home .hero-tick {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--cyan);
  pointer-events: none;
  z-index: 2;
}

.page-home .hero-tick--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.page-home .hero-tick--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.page-home .hero-tick--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.page-home .hero-tick--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.page-home .hero-grid {
  display: grid;
  gap: var(--home-gap);
}

/* 联赛索引抽屉 */

.page-home .league-drawer {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 42, 58, 0.92), rgba(14, 22, 38, 0.78));
  padding: 14px 12px 16px;
}

.page-home .league-drawer__eyebrow {
  margin: 0 0 10px 4px;
}

.page-home .league-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.page-home .league-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "idx name"
    "idx state";
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 9px 10px 9px 12px;
  border-left: 2px solid transparent;
  color: var(--paper);
  text-decoration: none;
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.page-home .league-item__idx {
  grid-area: idx;
  font-size: 11px;
  color: var(--moss);
  letter-spacing: 0.04em;
}

.page-home .league-item__name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.page-home .league-item__state {
  grid-area: state;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--lime);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.page-home .league-item:hover,
.page-home .league-item:focus-visible {
  background-color: rgba(32, 227, 255, 0.1);
  border-left-color: var(--cyan);
  transform: translateX(3px);
  outline: none;
}

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

.page-home .league-drawer__cta {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}

/* 数据跑道 */

.page-home .hero-stream {
  position: relative;
  min-width: 0;
  padding-top: 4px;
}

.page-home .hero-stream__media {
  position: absolute;
  inset: 0 0 0 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(108deg, transparent 6%, #000 78%);
  mask-image: linear-gradient(108deg, transparent 6%, #000 78%);
}

.page-home .hero-stream__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.17;
}

.page-home .hero-kicker,
.page-home .hero-stream h1,
.page-home .hero-lead,
.page-home .stream-track,
.page-home .hero-actions {
  position: relative;
  z-index: 1;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--moss);
}

.page-home .hero-stream h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  color: var(--paper);
}

.page-home .hero-lead {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
  color: var(--paper-70);
}

.page-home .stream-track {
  margin-top: clamp(20px, 3vw, 30px);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .stream-track::-webkit-scrollbar {
  height: 4px;
}

.page-home .stream-track::-webkit-scrollbar-track {
  background: rgba(143, 163, 155, 0.14);
}

.page-home .stream-track::-webkit-scrollbar-thumb {
  background: var(--slate);
}

.page-home .stream-card {
  flex: 0 0 auto;
  width: min(266px, 76vw);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 42, 58, 0.94), rgba(14, 22, 38, 0.92));
  padding: 13px 14px 12px;
}

.page-home .stream-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .stream-card__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--moss);
  letter-spacing: 0.05em;
}

.page-home .rank-mini {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.page-home .rank-mini li {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.page-home .rank-mini li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .rank-mini__pos {
  color: var(--cyan);
  font-size: 13px;
}

.page-home .rank-mini__name {
  color: var(--paper-70);
}

.page-home .rank-mini__delta {
  font-size: 12px;
  color: var(--moss);
}

.page-home .rank-mini__delta.is-up { color: var(--orange); }
.page-home .rank-mini__delta.is-down { color: var(--moss); }

.page-home .stream-card__foot {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--moss);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(18px, 2.6vw, 26px);
}

/* ---------- 版本通道 ---------- */

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

.page-home .devices-figure {
  position: relative;
  margin: 0 0 clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(120deg, var(--cabin), var(--slate));
}

.page-home .devices-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  opacity: 0.88;
}

.page-home .device-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .device-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(27, 42, 58, 0.92), rgba(7, 11, 20, 0.97));
}

.page-home .device-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 100px;
  height: 100px;
  transform: rotate(45deg);
  background: var(--orange);
  opacity: 0.16;
  pointer-events: none;
}

.page-home .device-card--phone::after {
  background: var(--cyan);
  opacity: 0.2;
}

.page-home .device-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.16;
  margin: 12px 0 0;
  color: var(--paper);
}

.page-home .device-card__lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper-70);
}

.page-home .device-features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .device-features li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-70);
}

.page-home .device-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}

.page-home .device-card--screen .device-features li::before {
  background: var(--orange);
}

.page-home .device-card__cta {
  margin-top: 20px;
}

.page-home .flow-strip {
  list-style: none;
  margin: var(--home-gap) 0 0;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(14, 22, 38, 0.72);
  display: grid;
  grid-template-columns: 1fr;
}

.page-home .flow-step {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.page-home .flow-step:last-child {
  border-bottom: 0;
}

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

.page-home .flow-step strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--paper);
}

.page-home .flow-step span:last-child {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--paper-55);
}

/* ---------- 刷新节奏 ---------- */

.page-home .cadence__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(27, 42, 58, 0.94), rgba(14, 22, 38, 0.96) 55%, rgba(7, 11, 20, 0.99));
  padding: clamp(20px, 3.2vw, 44px);
}

.page-home .cadence__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(180deg, rgba(32, 227, 255, 0.16), transparent 70%);
  clip-path: polygon(0 0, 100% 0, 34% 100%, 0 100%);
  pointer-events: none;
}

.page-home .cadence__grid {
  position: relative;
  display: grid;
  gap: clamp(22px, 3.4vw, 44px);
}

.page-home .cadence__copy h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(25px, 4vw, 44px);
  line-height: 1.08;
  margin: 10px 0 0;
  color: var(--paper);
}

.page-home .cadence-pulse {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .cadence-pulse li {
  display: grid;
  grid-template-columns: minmax(48px, auto) 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .cadence-pulse__league {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--paper);
}

.page-home .cadence-pulse__note {
  font-size: 13.5px;
  color: var(--paper-55);
}

.page-home .cadence-pulse__flag {
  font-size: 12px;
  color: var(--moss);
}

.page-home .cadence-pulse__flag.is-up {
  color: var(--orange);
}

.page-home .cadence__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-home .cadence__figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(140deg, var(--cabin), var(--void));
}

.page-home .cadence__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.9;
}

/* ---------- 专题速览 ---------- */

.page-home .topics {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.page-home .topics__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(120% 90% at 88% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 88% 0%, #000 0%, transparent 72%);
}

.page-home .topics__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
}

.page-home .topics > .container {
  position: relative;
  z-index: 1;
}

.page-home .topic-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .topic-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(27, 42, 58, 0.9), rgba(7, 11, 20, 0.96));
  overflow: hidden;
}

.page-home .topic-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 24px 24px;
  border-color: transparent transparent var(--slate) transparent;
  pointer-events: none;
}

.page-home .topic-card > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 9px;
  padding: clamp(16px, 2.2vw, 26px);
}

.page-home .topic-card > summary::-webkit-details-marker {
  display: none;
}

.page-home .topic-card > summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}

.page-home .topic-card__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.2;
  color: var(--paper);
}

.page-home .topic-card__more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .topic-card__more::after {
  content: "＋";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s var(--ease);
}

.page-home .topic-card[open] .topic-card__more::after {
  transform: rotate(45deg);
}

.page-home .topic-card__body {
  padding: 0 clamp(16px, 2.2vw, 26px) clamp(16px, 2.2vw, 26px);
}

.page-home .topic-card__body p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--paper-70);
}

.page-home .topic-card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(32, 227, 255, 0.4);
  padding-bottom: 2px;
}

.page-home .topic-card__link:hover,
.page-home .topic-card__link:focus-visible {
  border-bottom-color: var(--cyan);
  outline: none;
}

.page-home .changelog {
  margin-top: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  background: rgba(14, 22, 38, 0.7);
  padding: clamp(16px, 2.2vw, 26px);
}

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

.page-home .changelog__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

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

.page-home .changelog__ver {
  font-size: 12px;
  color: var(--stamp);
  letter-spacing: 0.06em;
}

.page-home .changelog__txt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-70);
}

.page-home .changelog__note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--moss);
}

/* ---------- 选择理由 ---------- */

.page-home .reasons {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--void), rgba(14, 22, 38, 0.55) 50%, var(--void));
}

.page-home .reason-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--home-gap);
}

.page-home .reason {
  position: relative;
  border-left: 2px solid var(--slate);
  padding: 4px 0 4px 16px;
}

.page-home .reason__no {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .reason h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  margin: 6px 0 0;
  color: var(--paper);
}

.page-home .reason p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--paper-70);
}

.page-home .reasons-stats {
  list-style: none;
  margin: clamp(26px, 3.6vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.page-home .reasons-stats li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .reasons-stats__n {
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--cyan);
  line-height: 1.1;
}

.page-home .reasons-stats__l {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--paper-55);
}

.page-home .reasons-cta {
  margin-top: clamp(26px, 3.6vw, 42px);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(27, 42, 58, 0.88), rgba(7, 11, 20, 0.96));
}

.page-home .reasons-cta__copy h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.16;
  margin: 0;
  color: var(--paper);
}

.page-home .reasons-cta__copy p {
  margin: 10px 0 0;
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--paper-70);
}

.page-home .reasons-cta__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-home .reasons-cta__textlink {
  font-size: 13.5px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(32, 227, 255, 0.4);
  padding-bottom: 2px;
}

.page-home .reasons-cta__textlink:hover,
.page-home .reasons-cta__textlink:focus-visible {
  border-bottom-color: var(--cyan);
  outline: none;
}

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

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

  .page-home .flow-step {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .page-home .flow-step:last-child {
    border-right: 0;
  }

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

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: 238px minmax(0, 1fr);
    gap: clamp(20px, 3vw, 42px);
  }

  .page-home .league-drawer {
    align-self: start;
  }

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

  .page-home .cadence__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .page-home .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .topic-card:nth-child(2) {
    margin-top: 34px;
  }

  .page-home .topic-card:nth-child(3) {
    margin-top: 68px;
  }

  .page-home .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 38px) clamp(24px, 4vw, 56px);
  }

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

  .page-home .reasons-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1180px) {
  .page-home .stream-card {
    width: 272px;
  }
}

@media (hover: hover) {
  .page-home .league-item__state {
    opacity: 0;
    transform: translateX(-4px);
  }

  .page-home .league-item:hover .league-item__state,
  .page-home .league-item:focus-visible .league-item__state {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .league-item,
  .page-home .league-item__state,
  .page-home .topic-card__more::after {
    transition: none;
  }
}
