.page-home {
  --hm-soft: rgba(237, 244, 242, .82);
  --hm-dim: rgba(143, 166, 163, .95);
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.7;
}

.page-home .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.page-home .num--gold {
  color: var(--gold);
}

/* ---------- 01 专题封面 ---------- */

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px) 0 clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--hair);
  background:
    radial-gradient(115% 85% at 82% 4%, rgba(41, 231, 206, .18), transparent 58%),
    radial-gradient(85% 70% at 4% 98%, rgba(124, 31, 53, .34), transparent 62%),
    var(--night);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-home .home-hero > .shell {
  position: relative;
  z-index: 1;
}

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

@media (min-width: 920px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.page-home .home-hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .home-hero__kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--cyan);
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 9.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--orange);
}

.page-home .home-hero__lede {
  max-width: 36ch;
  margin: 0 0 32px;
  font-size: clamp(1rem, 2.4vw, 1.14rem);
  line-height: 1.85;
  color: var(--hm-soft);
}

.page-home .home-index {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hair);
}

.page-home .home-index__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "no label"
    "no desc";
  column-gap: 14px;
  row-gap: 4px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair);
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}

.page-home .home-index__item:hover,
.page-home .home-index__item:focus-visible {
  color: var(--cyan);
}

.page-home .home-index__no {
  grid-area: no;
  padding-top: 3px;
  font-size: .82rem;
  color: var(--cyan);
}

.page-home .home-index__label {
  grid-area: label;
  font-weight: 700;
  font-size: 1.02rem;
}

.page-home .home-index__desc {
  grid-area: desc;
  font-size: .86rem;
  line-height: 1.6;
  color: var(--mist);
}

@media (min-width: 640px) {
  .page-home .home-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .home-index__item {
    padding: 18px 20px;
    border-bottom: none;
    border-left: 1px solid var(--hair);
  }
  .page-home .home-index__item:first-child {
    padding-left: 0;
    border-left: none;
  }
}

.page-home .home-hero__media {
  position: relative;
  margin: 0;
  border: 1px solid var(--hair);
}

.page-home .home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.8) contrast(1.06) brightness(.88);
}

.page-home .home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(41, 231, 206, .14), transparent 46%, rgba(5, 16, 15, .7));
}

/* ---------- 章节骨架 ---------- */

.page-home .home-chapter {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--hair);
}

.page-home .home-chapter--green {
  background: linear-gradient(180deg, var(--green), var(--night) 92%);
}

.page-home .home-chapter--wine {
  background: linear-gradient(180deg, var(--wine), var(--night) 88%);
}

.page-home .home-chapter--indigo {
  background: linear-gradient(180deg, var(--indigo), var(--night) 90%);
}

.page-home .home-chapter__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.page-home .home-chapter__no {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--cyan);
}

.page-home .home-chapter__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.32rem, 3.6vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: -.01em;
}

.page-home .home-chapter__sub {
  max-width: 54ch;
  margin: 0 0 30px;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- 02 联赛分栏 ---------- */

.page-home .home-leagues {
  overflow: hidden;
}

.page-home .home-leagues__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .13;
  filter: grayscale(.4) contrast(1.15);
  pointer-events: none;
}

.page-home .home-leagues > .shell {
  position: relative;
  z-index: 1;
}

.page-home .home-leagues__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--hair) transparent;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-leagues__list::-webkit-scrollbar {
  height: 3px;
}

.page-home .home-leagues__list::-webkit-scrollbar-thumb {
  background: var(--hair);
}

.page-home .home-leagues__btn {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--mist);
  font-family: inherit;
  font-size: .92rem;
  padding: 9px 16px;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.page-home .home-leagues__btn:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.page-home .home-leagues__btn[aria-selected="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--night-deep);
  font-weight: 700;
}

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

.page-home .home-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 18px 0 18px;
  -webkit-overflow-scrolling: touch;
}

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

.page-home .home-rail::-webkit-scrollbar-thumb {
  background: rgba(41, 231, 206, .4);
}

.page-home .home-match {
  position: relative;
  flex: 0 0 clamp(240px, 74%, 330px);
  scroll-snap-align: start;
  padding: 22px 20px 24px;
  background: var(--night-deep);
  border: 1px solid rgba(143, 166, 163, .22);
}

.page-home .home-match::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -1px;
  width: 44px;
  height: 2px;
  background: var(--orange);
}

.page-home .home-match__meta {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .home-match__teams {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .home-match__vs {
  padding: 0 5px;
  font-size: .86em;
  font-weight: 400;
  color: var(--cyan);
}

.page-home .home-match__note {
  margin: 0;
  font-size: .86rem;
  line-height: 1.78;
  color: var(--hm-dim);
}

.page-home .home-rail__track {
  position: relative;
  height: 1px;
  margin-top: 4px;
  background: rgba(143, 166, 163, .34);
}

.page-home .home-rail__track::before {
  content: "";
  position: absolute;
  inset: -4px 0;
  background-image: repeating-linear-gradient(90deg, rgba(143, 166, 163, .45) 0 1px, transparent 1px 32px);
  opacity: .7;
}

.page-home .home-rail__track::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--orange);
  animation: home-pulse 3.2s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 122, 47, .16); }
  50% { box-shadow: 0 0 0 11px rgba(255, 122, 47, .04); }
}

/* ---------- 03 临时排名 ---------- */

.page-home .home-rank {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
}

@media (min-width: 960px) {
  .page-home .home-rank {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }
}

.page-home .home-board__search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .home-board__label {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .home-board__search .filter__input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--night-deep);
  border: 1px solid var(--hair);
  border-radius: 0;
  color: var(--paper);
  font-family: inherit;
  font-size: .94rem;
}

.page-home .home-board__search .filter__input::placeholder {
  color: rgba(143, 166, 163, .72);
}

.page-home .home-board__search .filter__input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.page-home .home-board__search .tag {
  flex: 0 0 auto;
}

.page-home .home-board__head,
.page-home .home-board__row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 50px 58px;
  gap: 10px;
  align-items: center;
}

.page-home .home-board__head {
  padding: 0 4px 9px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .home-board {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-board__row {
  padding: 11px 4px;
  border-bottom: 1px solid rgba(143, 166, 163, .16);
}

.page-home .home-board__row[hidden] {
  display: none;
}

.page-home .home-board__pos {
  font-size: .92rem;
  color: var(--mist);
}

.page-home .home-board__row:nth-child(-n+3) .home-board__pos {
  color: var(--gold);
}

.page-home .home-board__team {
  font-size: .97rem;
  overflow-wrap: anywhere;
}

.page-home .home-board__played,
.page-home .home-board__pts {
  font-size: .9rem;
  text-align: right;
}

.page-home .home-board__played {
  color: var(--hm-dim);
}

.page-home .home-board__pts {
  color: var(--gold);
}

.page-home .filter__empty {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px dashed var(--hair);
  color: var(--mist);
  font-size: .9rem;
}

.page-home .home-rank__figure {
  margin: 0 0 20px;
}

.page-home .home-rank__figure .figure__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}

.page-home .home-rank__figure .figure__caption {
  margin-top: 10px;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .home-rank__meta {
  display: grid;
  gap: 1px;
  margin: 0;
  background: rgba(143, 166, 163, .22);
  border: 1px solid rgba(143, 166, 163, .22);
}

.page-home .home-rank__meta > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  background: var(--night-deep);
}

.page-home .home-rank__meta dt {
  margin: 0;
  font-size: .84rem;
  color: var(--mist);
}

.page-home .home-rank__meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .95rem;
  color: var(--cyan);
}

/* ---------- 04 安卓切换三步 ---------- */

.page-home .home-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
  align-items: start;
}

@media (min-width: 920px) {
  .page-home .home-steps__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.page-home .home-steps__media {
  margin: 0;
}

.page-home .home-steps__media .figure__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05) brightness(.92);
}

.page-home .home-steps__media .figure__caption {
  margin-top: 10px;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--mist);
}

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

.page-home .home-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(143, 166, 163, .18);
}

.page-home .home-step__no {
  padding-top: 2px;
  font-size: 1.05rem;
  color: var(--cyan);
}

.page-home .home-step__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

.page-home .home-step__text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.78;
  color: var(--hm-soft);
}

.page-home .home-steps__more {
  margin: 24px 0 0;
}

/* ---------- 05 提速对比 ---------- */

.page-home .home-speed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(143, 166, 163, .22);
  border: 1px solid rgba(143, 166, 163, .22);
}

@media (min-width: 760px) {
  .page-home .home-speed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .home-speed__cell {
  padding: 26px 22px;
  background: var(--night-deep);
}

.page-home .home-speed__label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .home-speed__value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  font-size: clamp(1.3rem, 3.6vw, 1.7rem);
  color: var(--paper);
}

.page-home .home-speed__arrow {
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--orange);
}

.page-home .home-speed__bar {
  position: relative;
  height: 4px;
  background: rgba(143, 166, 163, .2);
  overflow: hidden;
}

.page-home .home-speed__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.page-home .home-speed__foot {
  margin: 14px 0 0;
  font-size: .87rem;
  line-height: 1.75;
  color: var(--hm-dim);
}

.page-home .home-speed__note {
  margin: 26px 0 0;
  max-width: 56ch;
  font-size: .92rem;
  line-height: 1.8;
  color: var(--hm-soft);
}

/* ---------- 06 最新条目 ---------- */

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

.page-home .home-feed__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(143, 166, 163, .18);
}

@media (min-width: 760px) {
  .page-home .home-feed__item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
}

.page-home .home-feed__item .tag {
  justify-self: start;
}

.page-home .home-feed__title {
  margin: 0 0 6px;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.55;
}

.page-home .home-feed__title a {
  color: inherit;
  text-decoration: none;
  transition: color .16s ease;
}

.page-home .home-feed__title a:hover,
.page-home .home-feed__title a:focus-visible {
  color: var(--cyan);
}

.page-home .home-feed__note {
  margin: 0;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--hm-dim);
}

.page-home .home-feed__more {
  margin: 28px 0 0;
}

/* ---------- 07 场景与服务数据 ---------- */

.page-home .home-scenes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(143, 166, 163, .22);
  border: 1px solid rgba(143, 166, 163, .22);
}

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

.page-home .home-scene {
  padding: 26px 22px;
  background: var(--night);
}

.page-home .home-scene__no {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-home .home-scene__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .home-scene__text {
  margin: 0;
  font-size: .89rem;
  line-height: 1.8;
  color: var(--hm-soft);
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  background: rgba(143, 166, 163, .22);
  border: 1px solid rgba(143, 166, 163, .22);
}

@media (min-width: 760px) {
  .page-home .home-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .home-stats > div {
  padding: 20px 18px;
  background: var(--night-deep);
}

.page-home .home-stats dt {
  margin: 0 0 8px;
  font-size: .8rem;
  color: var(--mist);
}

.page-home .home-stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.2rem, 3.6vw, 1.6rem);
  color: var(--gold);
}

.page-home .home-tail {
  margin: 28px 0 0;
  max-width: 58ch;
  font-size: .92rem;
  line-height: 1.85;
  color: var(--hm-soft);
}

.page-home .home-tail a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .home-tail a:hover,
.page-home .home-tail a:focus-visible {
  color: var(--orange);
}

/* ---------- 共享按钮与标签在浅淡背景上的可读性兜底 ---------- */

.page-home .btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.page-home .btn--primary {
  background: var(--orange);
  color: var(--night-deep);
}

.page-home .btn--primary:hover,
.page-home .btn--primary:focus-visible {
  background: var(--gold);
  color: var(--night-deep);
}

.page-home .btn--ghost {
  border-color: var(--hair);
  color: var(--paper);
}

.page-home .btn--ghost:hover,
.page-home .btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--hair);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--mist);
  white-space: nowrap;
}

.page-home .tag--live {
  border-color: rgba(41, 231, 206, .5);
  color: var(--cyan);
}

.page-home .tag--gold {
  border-color: rgba(232, 180, 87, .5);
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-rail__track::after {
    animation: none;
  }
  .page-home * {
    transition-duration: .01ms !important;
  }
}
</main>
