.page-home {
  --p-gap: clamp(16px, 3.4vw, 26px);
}

/* ---------- 上下文与首屏 ---------- */

.page-home .p-hero {
  padding-block: 22px 48px;
}

.page-home .p-context {
  margin: 0 0 22px;
}

.page-home .p-context .crumb__item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ice-300);
}

.page-home .p-context .crumb__item[aria-current="page"] {
  color: var(--cyan-500);
}

.page-home .p-hero__intro {
  max-width: 46em;
}

.page-home h1 {
  margin: 10px 0 16px;
  font-size: clamp(38px, 9vw, 76px);
  font-weight: 200;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--ice-050);
}

.page-home .p-hero__lead {
  max-width: 38em;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ice-300);
}

.page-home .p-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 首屏拼贴 ---------- */

.page-home .p-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--p-gap);
  margin-top: 36px;
}

.page-home .p-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--sky-600);
  border-radius: var(--r-xl);
  background: var(--sky-700);
  color: var(--ice-050);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.page-home .p-tile:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-500);
}

.page-home .p-tile:focus-visible,
.page-home .p-league:focus-visible,
.page-home .p-index-list a:focus-visible,
.page-home .p-rail__link:focus-visible,
.page-home .p-query__input:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

.page-home .p-tile__no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan-500);
}

.page-home .p-tile__title {
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-home .p-tile__title--sm {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ice-300);
}

.page-home .p-tile__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ice-300);
}

.page-home .p-tile--main {
  min-height: 330px;
  justify-content: flex-end;
  padding-bottom: 26px;
}

.page-home .p-tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-home .p-tile--main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 11, 31, 0.3) 0%,
    rgba(6, 11, 31, 0.78) 55%,
    rgba(6, 11, 31, 0.94) 100%
  );
}

.page-home .p-tile--main > :not(.p-tile__bg):not(.p-tile__peek) {
  position: relative;
  z-index: 1;
}

.page-home .p-tile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--sky-600);
}

.page-home .p-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.page-home .p-stat .num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan-500);
}

.page-home .p-stat .unit {
  font-size: 12px;
  color: var(--ice-300);
}

.page-home .p-tile__peek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 22px 18px;
  background: linear-gradient(
    180deg,
    rgba(6, 11, 31, 0) 0%,
    rgba(6, 11, 31, 0.92) 55%,
    rgba(6, 11, 31, 0.98) 100%
  );
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .p-tile:hover .p-tile__peek,
.page-home .p-tile:focus-visible .p-tile__peek {
  opacity: 1;
  transform: translateY(0);
}

.page-home .p-tile__peek-line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--cyan-300);
}

.page-home .p-tile--a,
.page-home .p-tile--b {
  min-height: 150px;
}

.page-home .p-tile--mob {
  min-height: 120px;
}

.page-home .p-tile--idx {
  background: var(--sky-800);
  gap: 4px;
}

.page-home .p-index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .p-index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ice-050);
  text-decoration: none;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.page-home .p-index-list a::after {
  content: "\2192";
  color: var(--cyan-500);
  font-size: 13px;
}

.page-home .p-index-list a:hover {
  background: var(--sky-700-hi);
  border-color: var(--sky-600);
}

/* ---------- 章节通用 ---------- */

.page-home .p-sec {
  padding-block: 56px;
}

.page-home .sec-head {
  max-width: 42em;
}

.page-home .sec-head__no {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(44px, 9vw, 76px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--sky-600);
  transition: color 0.25s var(--ease);
}

.page-home .sec-head.is-in .sec-head__no {
  color: var(--cyan-500);
}

.page-home .sec-head__title {
  margin: 12px 0 10px;
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ice-050);
}

.page-home .sec-head__note {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ice-300);
}

@supports (-webkit-text-stroke: 1px #000) {
  .page-home .sec-head__no {
    color: transparent;
    -webkit-text-stroke: 1px var(--sky-600);
    transition: -webkit-text-stroke-color 0.25s var(--ease);
  }

  .page-home .sec-head.is-in .sec-head__no {
    color: transparent;
    -webkit-text-stroke-color: var(--cyan-500);
  }
}

/* ---------- 数据面板卡片 ---------- */

.page-home .p-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 30px;
}

.page-home .p-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--r-lg);
}

.page-home .p-card .card__title {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ice-050);
}

.page-home .p-card .card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ice-300);
}

.page-home .p-card__metric {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 6px 0 0;
}

.page-home .p-card__metric .num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan-500);
}

.page-home .p-card__metric .unit {
  font-size: 12px;
  color: var(--ice-300);
}

/* ---------- 交锋对比 ---------- */

.page-home .p-h2h {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 30px;
}

.page-home .p-h2h__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--sky-600);
}

.page-home .p-h2h__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--sky-600);
  transition: background-color 0.16s var(--ease);
}

.page-home .p-h2h__row:hover {
  background: rgba(30, 47, 102, 0.28);
}

.page-home .p-h2h__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.page-home .p-h2h__when {
  font-size: 14px;
  color: var(--ice-050);
}

.page-home .p-h2h__where {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ice-300);
}

.page-home .p-h2h__score {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  justify-self: end;
}

.page-home .p-h2h__score .num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan-500);
}

.page-home .p-h2h__score .num--orange {
  color: var(--orange-500);
}

.page-home .p-h2h__sep {
  font-family: var(--font-mono);
  color: var(--ice-300);
}

.page-home .p-h2h__sum {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ice-300);
}

.page-home .p-h2h__sum .num--plain {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ice-050);
}

.page-home .p-h2h__fig {
  margin: 0;
}

/* ---------- 战报 ---------- */

.page-home .p-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 30px;
}

.page-home .p-post {
  gap: 12px;
}

.page-home .p-more {
  margin: 26px 0 0;
}

/* ---------- 联赛索引 ---------- */

.page-home .p-leagues__fig {
  margin: 30px 0 0;
}

.page-home .p-leagues {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.page-home .p-league {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "no name count"
    "no desc count";
  align-items: center;
  gap: 4px 14px;
  padding: 16px 18px;
  border: 1px solid var(--sky-600);
  border-radius: var(--r-lg);
  background: var(--sky-700);
  color: var(--ice-050);
  text-decoration: none;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.page-home .p-league:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-500);
  background: var(--sky-700-hi);
}

.page-home .p-league__no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan-500);
}

.page-home .p-league__name {
  grid-area: name;
  font-size: 17px;
  font-weight: 500;
}

.page-home .p-league__desc {
  grid-area: desc;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ice-300);
}

.page-home .p-league__count {
  grid-area: count;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  justify-self: end;
}

.page-home .p-league__count .num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan-500);
}

.page-home .p-league__count .unit {
  font-size: 11px;
  color: var(--ice-300);
}

/* ---------- 30 秒路径 ---------- */

.page-home .p-route {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 30px;
}

.page-home .p-route__fig {
  margin: 0;
}

.page-home .p-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.page-home .p-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sky-600);
}

.page-home .p-step:first-child {
  padding-top: 0;
}

.page-home .p-step__no {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 200;
  line-height: 1.2;
  color: var(--sky-600);
  transition: color 0.22s var(--ease);
}

.page-home .p-step.is-in .p-step__no {
  color: var(--cyan-500);
}

.page-home .p-step__text h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ice-050);
}

.page-home .p-step__text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ice-300);
}

.page-home .p-query {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--sky-600);
  border-radius: var(--r-lg);
  background: var(--sky-700);
}

.page-home .p-query__label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ice-300);
}

.page-home .p-query__input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--sky-600);
  border-radius: var(--r-pill);
  background: var(--sky-900);
  color: var(--ice-050);
  font-family: var(--font-head);
  font-size: 16px;
  transition: border-color 0.18s var(--ease);
}

.page-home .p-query__input::placeholder {
  color: var(--ice-300);
}

.page-home .p-query__input:focus {
  border-color: var(--cyan-500);
}

.page-home .p-query__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s var(--ease), opacity 0.18s var(--ease),
    margin-top 0.22s var(--ease);
}

.page-home .p-query:focus-within .p-query__hints {
  max-height: 140px;
  margin-top: 12px;
  opacity: 1;
}

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

/* ---------- 侧边章节索引 ---------- */

.page-home .p-rail {
  display: none;
}

/* ---------- 桌面布局 ---------- */

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

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

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

@media (min-width: 900px) {
  .page-home .p-hero {
    padding-block: 30px 64px;
  }

  .page-home .p-map {
    grid-template-columns: 1.6fr 0.85fr 0.85fr;
    grid-template-areas:
      "main ta idx"
      "main tb idx"
      "mob mob mob";
  }

  .page-home .p-tile--main {
    grid-area: main;
    min-height: 420px;
  }

  .page-home .p-tile--a {
    grid-area: ta;
  }

  .page-home .p-tile--b {
    grid-area: tb;
  }

  .page-home .p-tile--mob {
    grid-area: mob;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }

  .page-home .p-tile--mob .p-tile__desc {
    margin-left: auto;
    max-width: 34em;
  }

  .page-home .p-tile--idx {
    grid-area: idx;
  }

  .page-home .p-h2h {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .page-home .p-route {
    grid-template-columns: 0.75fr 1.25fr;
    align-items: start;
  }

  .page-home .p-sec {
    padding-block: 72px;
  }
}

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

  .page-home .p-cards > .p-card--lead {
    grid-column: span 2;
  }

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

  .page-home .p-leagues {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .page-home .p-rail {
    position: fixed;
    top: 50%;
    right: 26px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-50%);
  }

  .page-home .p-rail__link {
    padding: 5px 10px;
    border-left: 2px solid var(--sky-600);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ice-300);
    text-decoration: none;
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
  }

  .page-home .p-rail__link:hover {
    color: var(--cyan-300);
    border-left-color: var(--sky-700-hi);
  }

  .page-home .p-rail__link[aria-current="true"] {
    color: var(--cyan-500);
    border-left-color: var(--cyan-500);
  }
}

@media (max-width: 899px) {
  .page-home .p-tile--main {
    min-height: 300px;
  }

  .page-home .p-h2h__row {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  .page-home .p-h2h__row .tag {
    grid-column: 2;
    justify-self: end;
  }

  .page-home .p-query {
    position: sticky;
    bottom: 10px;
    z-index: 4;
    box-shadow: 0 -10px 26px rgba(6, 11, 31, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .p-tile,
  .page-home .p-league,
  .page-home .p-tile__peek,
  .page-home .p-query__hints {
    transition: none;
  }

  .page-home .p-tile:hover,
  .page-home .p-league:hover {
    transform: none;
  }
}
<<<END>>>
