.page-home {
  --home-pad: 52px;
  display: block;
}

@media (min-width: 900px) {
  .page-home {
    --home-pad: 90px;
  }
}

/* ---------- 通用 ---------- */
.page-home h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-100);
  margin: 12px 0 14px;
}

.page-home h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  color: var(--text-100);
  margin: 0 0 8px;
}

.page-home p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-400);
  margin: 0;
}

.page-home .home-link {
  display: inline-block;
  color: var(--neon-400);
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 242, 208, 0.34);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .home-link:hover,
.page-home .home-link:focus-visible {
  color: var(--amber-300);
  border-bottom-color: rgba(255, 195, 138, 0.6);
}

.page-home .split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

@media (min-width: 900px) {
  .page-home .split--7-5 {
    grid-template-columns: 7fr 5fr;
    gap: 52px;
    align-items: start;
  }

  .page-home .split--8-4 {
    grid-template-columns: 8fr 4fr;
    gap: 52px;
    align-items: start;
  }
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--home-pad) 0 calc(var(--home-pad) * 0.8);
  background:
    radial-gradient(130% 96% at 6% -6%, rgba(28, 92, 79, 0.5) 0%, rgba(10, 15, 14, 0) 62%),
    var(--ink-900);
}

.page-home .home-hero__wedge {
  position: absolute;
  top: -20%;
  left: -34%;
  width: 172%;
  height: 112%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(155deg, #0F3B33 0%, #0A2A24 46%, rgba(10, 15, 14, 0) 100%);
  clip-path: polygon(0 0, 100% 0, 58% 100%, 0 68%);
}

.page-home .home-hero__beam {
  position: absolute;
  top: -22%;
  left: 44%;
  width: 1px;
  height: 152%;
  z-index: 1;
  pointer-events: none;
  transform: rotate(20deg);
  transform-origin: 50% 0;
  background: linear-gradient(180deg, transparent 0%, rgba(53, 242, 208, 0.85) 26%, rgba(53, 242, 208, 0.2) 64%, transparent 100%);
}

.page-home .home-hero__plate {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  margin: 0;
  z-index: 0;
  opacity: 0.24;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(196deg, transparent 0%, rgba(0, 0, 0, 0.9) 56%, #000 100%);
  mask-image: linear-gradient(196deg, transparent 0%, rgba(0, 0, 0, 0.9) 56%, #000 100%);
}

.page-home .home-hero__plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.06);
}

@media (min-width: 900px) {
  .page-home .home-hero__wedge {
    top: -18%;
    left: -8%;
    width: 84%;
    height: 126%;
    clip-path: polygon(0 0, 100% 0, 52% 100%, 0 78%);
  }

  .page-home .home-hero__plate {
    width: 50%;
    height: 88%;
    opacity: 0.32;
  }
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 46px;
    align-items: start;
  }
}

.page-home .home-hero__leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-hero__leagues li {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-400);
}

@media (min-width: 900px) {
  .page-home .home-hero__leagues {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 8px 0 0 20px;
    border-left: 1px solid var(--hairline);
  }

  .page-home .home-hero__leagues li {
    writing-mode: vertical-rl;
    letter-spacing: 0.32em;
  }
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 7.2vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-100);
  margin: 14px 0 20px;
  max-width: 15em;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--neon-400);
  position: relative;
}

.page-home .home-hero__lede {
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.82;
}

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

/* ---------- 战报看板 ---------- */
.page-home .home-report {
  padding: var(--home-pad) 0;
  border-top: 1px solid var(--hairline);
}

.page-home .home-report__head {
  max-width: 58ch;
}

.page-home .home-report__plate {
  position: relative;
  margin: 32px 0 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%);
}

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

.page-home .home-report__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 15, 14, 0.12) 0%, rgba(10, 15, 14, 0.86) 100%);
}

.page-home .home-report__plate figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-100);
}

@media (min-width: 760px) {
  .page-home .home-report__plate figcaption {
    left: 28px;
    bottom: 22px;
  }
}

.page-home .home-scores {
  margin-top: 30px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.page-home .home-scores__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-home .home-scores__hint {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-400);
}

.page-home .home-scores__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

.page-home .home-scores__track::-webkit-scrollbar {
  display: none;
}

.page-home .score-slip {
  flex: 0 0 auto;
  min-width: 216px;
  padding: 6px 22px 8px;
  border-right: 1px solid var(--hairline);
  scroll-snap-align: start;
}

.page-home .score-slip:first-child {
  padding-left: 2px;
}

.page-home .score-slip:last-child {
  border-right: 0;
}

.page-home .score-slip__league {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan-600);
}

.page-home .score-slip__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.page-home .score-slip__team {
  font-size: 15px;
  color: var(--text-100);
}

.page-home .score-slip__num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-100);
}

.page-home .score-slip:first-child .score-slip__num {
  color: var(--ember-500);
}

.page-home .score-slip__meta {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-400);
}

/* ---------- 检索 ---------- */
.page-home .home-find {
  padding: var(--home-pad) 0;
  background: var(--ink-800);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.page-home .home-find__lede {
  max-width: 46ch;
}

.page-home .home-find__label {
  display: block;
  margin: 28px 0 0;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-400);
}

.page-home .home-find__field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cyan-600);
  transition: border-color 0.3s var(--ease);
}

.page-home .home-find__field:focus-within {
  border-bottom-color: var(--neon-400);
}

.page-home .home-find__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text-100);
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.02em;
  -webkit-appearance: none;
  appearance: none;
}

.page-home .home-find__input::placeholder {
  color: #4f645e;
  font-family: var(--font-body);
  font-size: 15px;
}

.page-home .home-find__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.page-home .home-find__prompt {
  flex: 0 0 auto;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--neon-400);
}

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

.page-home .find-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}

.page-home .find-row__pos {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon-400);
}

.page-home .find-row__name {
  font-size: 16px;
  color: var(--text-100);
}

.page-home .find-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.page-home .find-row__league {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-400);
}

.page-home .find-row__form {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ember-500);
}

.page-home .home-find__side {
  padding-top: 6px;
}

.page-home .home-find__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-find__note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}

/* ---------- 三步 ---------- */
.page-home .home-steps {
  padding: var(--home-pad) 0;
}

.page-home .home-steps__head {
  max-width: 56ch;
}

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

.page-home .home-step {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--hairline);
}

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

.page-home .home-step__no {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--forest-500);
  transition: color 0.5s var(--ease);
}

.page-home .home-step.is-in .home-step__no {
  color: var(--neon-400);
}

.page-home .home-step p {
  font-size: 15px;
  max-width: 40ch;
}

.page-home .home-step__bar {
  display: block;
  height: 2px;
  margin-top: 20px;
  background: var(--hairline);
  overflow: hidden;
}

.page-home .home-step__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-400), var(--ember-500));
  transition: width 0.85s var(--ease);
}

.page-home .home-step:nth-child(1).is-in .home-step__bar i {
  width: 34%;
}

.page-home .home-step:nth-child(2).is-in .home-step__bar i {
  width: 67%;
}

.page-home .home-step:nth-child(3).is-in .home-step__bar i {
  width: 100%;
}

.page-home .home-step__time {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber-300);
}

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

@media (min-width: 760px) {
  .page-home .home-steps__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-step {
    padding: 34px 36px 38px 0;
    border-bottom: 0;
  }

  .page-home .home-step + .home-step {
    padding-left: 36px;
    border-left: 1px solid var(--hairline);
  }
}

/* ---------- 排名曲线 ---------- */
.page-home .home-rank {
  padding: var(--home-pad) 0;
  background: var(--ink-800);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.page-home .home-rank .split__main > p {
  max-width: 46ch;
}

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

.page-home .rank-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.page-home .rank-chart__grid-line {
  stroke: var(--hairline);
  stroke-width: 1;
}

.page-home .rank-chart__area {
  fill: url(#rankFill);
  stroke: none;
}

.page-home .rank-chart__line {
  fill: none;
  stroke: var(--neon-400);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(53, 242, 208, 0.35));
}

.page-home .rank-chart__dot {
  fill: var(--ember-500);
}

.page-home .home-rank__chart figcaption {
  margin-top: 12px;
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-400);
}

.page-home .home-rank__chart figcaption .num {
  color: var(--text-100);
}

.page-home .badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .badge-slice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--forest-700);
  color: var(--text-100);
  font-family: var(--font-cond);
  font-size: 15px;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
  transition: background 0.3s var(--ease);
}

.page-home .badge-slice:hover,
.page-home .badge-slice:focus-visible {
  background: var(--forest-500);
  outline: none;
}

.page-home .badge-slice__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 3;
  padding: 6px 10px;
  white-space: nowrap;
  background: var(--ink-900);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-100);
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-home .badge-slice:hover .badge-slice__tip,
.page-home .badge-slice:focus-visible .badge-slice__tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.page-home .home-rank__shot {
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 38px), calc(100% - 38px) 100%, 0 100%);
}

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

.page-home .home-rank__aside {
  margin-top: 22px;
  font-size: 15px;
}

/* ---------- 多端 ---------- */
.page-home .home-device {
  padding: var(--home-pad) 0;
}

.page-home .home-device .split__main > p {
  max-width: 46ch;
}

.page-home .home-device__list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-device__list li {
  position: relative;
  padding: 15px 0 15px 26px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-400);
}

.page-home .home-device__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 12px;
  height: 2px;
  background: var(--neon-400);
}

.page-home .home-device__list strong {
  color: var(--text-100);
  font-weight: 600;
}

.page-home .home-device__cta {
  margin-top: 30px;
}

.page-home .home-device__shot {
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.page-home .home-device__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.05);
}

/* ---------- 收束 ---------- */
.page-home .home-close {
  padding: var(--home-pad) 0 calc(var(--home-pad) * 1.15);
}

.page-home .home-close__head {
  max-width: 54ch;
}

.page-home .home-close__row {
  display: grid;
  grid-template-columns: 1fr;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.page-home .home-card {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--hairline);
}

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

.page-home .home-card p {
  font-size: 15px;
  max-width: 38ch;
}

.page-home .home-card .home-link {
  margin-top: 16px;
}

@media (min-width: 760px) {
  .page-home .home-close__row {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-card {
    padding: 34px 34px 38px 0;
    border-bottom: 0;
  }

  .page-home .home-card + .home-card {
    padding-left: 34px;
    border-left: 1px solid var(--hairline);
  }
}

/* ---------- 进入视口的过渡 ---------- */
.js .page-home [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js .page-home [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-home .home-step__bar i,
  .page-home .home-step__no,
  .page-home .badge-slice {
    transition: none;
  }
}
