/* ============================================================
   首页 page-home
   ============================================================ */

.page-home {
  --home-cut: 22px;
  --home-cut-lg: 34px;
}

/* ---------- 开场 ---------- */

.page-home .home-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 76px) 0 clamp(44px, 6vw, 84px);
  background:
    radial-gradient(110% 82% at 86% 4%, rgba(53, 240, 200, 0.16), transparent 58%),
    radial-gradient(78% 68% at 6% 94%, rgba(138, 92, 255, 0.14), transparent 60%),
    var(--ink-0);
}

.page-home .home-stage__grid {
  display: grid;
  gap: var(--sp-8);
}

.page-home .home-stage__context {
  margin: 0 0 var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .home-stage__title {
  margin: 0;
  max-width: 15em;
}

.page-home .home-stage__lede {
  margin: var(--sp-6) 0 0;
  max-width: 36em;
  line-height: 1.85;
  color: var(--cream-dim);
}

.page-home .home-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}

.page-home .home-stage__index {
  display: grid;
  gap: var(--sp-5);
  min-width: 0;
}

.page-home .home-stage__figure {
  margin: 0;
  overflow: hidden;
  background: var(--ink-1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut-lg)), calc(100% - var(--home-cut-lg)) 100%, 0 100%);
}

.page-home .home-stage__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.9);
}

.page-home .home-stage__index-label {
  margin: 0;
  color: var(--cream-faint);
  letter-spacing: 0.18em;
}

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

.page-home .home-index__link {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, padding-left 180ms ease;
}

.page-home .home-index__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: width 180ms ease;
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  background: var(--cyan-mist);
  color: var(--cyan);
  padding-left: var(--sp-6);
}

.page-home .home-index__link:hover::before,
.page-home .home-index__link:focus-visible::before {
  width: 14px;
}

.page-home .home-index__num {
  font-size: var(--fs-sm);
  color: var(--cyan);
}

.page-home .home-index__text {
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.page-home .home-index__hint {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--cream-faint);
}

/* ---------- 当季资料状态台 ---------- */

.page-home .home-desk {
  position: relative;
  padding: clamp(52px, 7vw, 96px) 0;
  background: var(--ink-1);
  clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-desk__lead {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.page-home .home-desk__lead-text {
  min-width: 0;
}

.page-home .home-desk__text {
  margin: var(--sp-5) 0 0;
  max-width: 34em;
  line-height: 1.85;
  color: var(--cream-dim);
}

.page-home .home-desk__figure {
  margin: 0;
  overflow: hidden;
  background: var(--ink-0);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .home-desk__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.95);
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-6);
  margin: var(--sp-8) 0 0;
  padding: var(--sp-6) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .home-stats__item {
  display: grid;
  gap: 6px;
}

.page-home .home-stats__value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .home-stats__label {
  font-size: var(--fs-sm);
  color: var(--cream-dim);
}

/* 阵容记录筛选 */

.page-home .home-squad {
  margin-top: var(--sp-8);
}

.page-home .home-squad__head {
  display: grid;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.page-home .home-squad__title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .home-squad__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.page-home .home-squad__status {
  margin: var(--sp-3) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--cream-faint);
  min-height: 1em;
}

.page-home .home-squad__list {
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-squad__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px var(--sp-4);
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.page-home .home-squad__item:hover {
  background: rgba(53, 240, 200, 0.06);
}

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

.page-home .home-squad__pos {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .home-squad__desc {
  grid-column: 1 / -1;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--cream);
}

.page-home .home-squad__stage {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  font-size: var(--fs-xs);
  color: var(--cream-faint);
}

.page-home .home-squad__more {
  margin: var(--sp-6) 0 0;
}

.page-home .home-squad__link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--orange);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.page-home .home-squad__link:hover,
.page-home .home-squad__link:focus-visible {
  color: var(--orange-soft);
  border-color: var(--orange-soft);
}

/* ---------- 三步走到任意赛事 ---------- */

.page-home .home-path {
  padding: clamp(52px, 7vw, 96px) 0;
  background: var(--ink-0);
}

.page-home .home-path__lede {
  margin: var(--sp-5) 0 0;
  max-width: 36em;
  line-height: 1.85;
  color: var(--cream-dim);
}

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

.page-home .home-steps__item {
  position: relative;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--line);
}

.page-home .home-steps__item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--cyan);
}

.page-home .home-steps__num {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-home .home-steps__title {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .home-steps__text {
  margin: var(--sp-3) 0 0;
  max-width: 30em;
  line-height: 1.85;
  color: var(--cream-dim);
}

/* ---------- 安卓端注册与实时比分 ---------- */

.page-home .home-mobile {
  padding: clamp(52px, 7vw, 96px) 0;
  background:
    linear-gradient(200deg, rgba(53, 240, 200, 0.07), transparent 46%),
    var(--ink-1);
}

.page-home .home-mobile__grid {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

.page-home .home-mobile__text {
  margin: var(--sp-5) 0 0;
  max-width: 34em;
  line-height: 1.85;
  color: var(--cream-dim);
}

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

.page-home .home-mobile__points li {
  position: relative;
  padding-left: var(--sp-6);
  line-height: 1.8;
  color: var(--cream-dim);
}

.page-home .home-mobile__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 2px;
  background: var(--cyan);
}

.page-home .home-mobile__points strong {
  color: var(--cream);
  font-weight: 800;
}

.page-home .home-mobile__body .btn {
  margin-top: var(--sp-7);
}

.page-home .home-mobile__figure {
  position: relative;
  margin: 0 auto;
  max-width: 330px;
  width: 100%;
  padding: 8px;
  background: linear-gradient(150deg, rgba(53, 240, 200, 0.42), rgba(138, 92, 255, 0.28));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.page-home .home-mobile__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: brightness(0.92);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

/* ---------- 回看适配清单 ---------- */

.page-home .home-replay {
  padding: clamp(52px, 7vw, 96px) 0;
  background: var(--ink-0);
}

.page-home .home-replay__head {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.page-home .home-replay__intro {
  min-width: 0;
}

.page-home .home-replay__text {
  margin: var(--sp-5) 0 0;
  max-width: 34em;
  line-height: 1.85;
  color: var(--cream-dim);
}

.page-home .home-replay__figure {
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .home-replay__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.95);
}

.page-home .home-replay__railwrap {
  margin-top: var(--sp-7);
}

.page-home .home-replay__rail {
  padding-bottom: var(--sp-4);
}

.page-home .home-replay__card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: min(80vw, 268px);
  padding: var(--sp-5);
  background: var(--ink-1);
  border-top: 2px solid var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .home-replay__card-title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--cream);
}

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

.page-home .home-replay__marks li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--cream-dim);
}

.page-home .home-replay__marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

/* ---------- 旧版本资料入口 ---------- */

.page-home .home-archive {
  padding: clamp(52px, 7vw, 96px) 0;
  background: var(--ink-1);
  clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-archive__grid {
  display: grid;
  gap: var(--sp-7);
}

.page-home .home-archive__text {
  margin: var(--sp-5) 0 0;
  max-width: 34em;
  line-height: 1.85;
  color: var(--cream-dim);
}

.page-home .home-archive__list {
  min-width: 0;
}

/* ---------- 资料更新节奏 ---------- */

.page-home .home-rhythm-section {
  padding: clamp(52px, 7vw, 96px) 0;
  background: var(--ink-0);
}

.page-home .home-rhythm {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  margin: var(--sp-8) 0 0;
  padding: 0 0 0 34px;
  list-style: none;
}

.page-home .home-rhythm::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}

.page-home .home-rhythm__item {
  position: relative;
}

.page-home .home-rhythm__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 5px;
  width: 13px;
  height: 13px;
  background: var(--ink-0);
  border: 2px solid var(--cyan);
  transform: rotate(45deg);
}

.page-home .home-rhythm__time {
  display: block;
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .home-rhythm__title {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--cream);
}

.page-home .home-rhythm__text {
  margin: var(--sp-2) 0 0;
  max-width: 30em;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--cream-dim);
}

/* ---------- 接下来去哪里 ---------- */

.page-home .home-next {
  padding: clamp(52px, 7vw, 96px) 0 clamp(60px, 8vw, 110px);
  background:
    radial-gradient(90% 70% at 92% 0%, rgba(255, 138, 61, 0.12), transparent 58%),
    var(--ink-1);
}

.page-home .home-next .speed-line {
  display: block;
  margin-bottom: var(--sp-7);
}

.page-home .home-next__grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.page-home .home-next__card {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5);
  background: var(--ink-0);
  color: var(--cream);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: background-color 200ms ease, transform 200ms ease;
}

.page-home .home-next__card:hover,
.page-home .home-next__card:focus-visible {
  background: #0d2621;
  transform: translateY(-3px);
}

.page-home .home-next__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-home .home-next__card-title {
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.page-home .home-next__card-text {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--cream-dim);
}

.page-home .home-next__contact {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  margin-top: var(--sp-8);
  padding: var(--sp-6) var(--sp-5);
  border-left: 3px solid var(--cyan);
  background: rgba(53, 240, 200, 0.07);
}

.page-home .home-next__contact-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .home-next__contact-value {
  margin: var(--sp-2) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--cream);
  word-break: break-all;
}

.page-home .home-next__contact-note {
  margin: var(--sp-3) 0 0;
  max-width: 34em;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--cream-dim);
}

.page-home .home-next__contact .btn {
  justify-self: start;
}

.page-home .home-next__extra {
  margin: var(--sp-7) 0 0;
  font-size: var(--fs-sm);
  color: var(--cream-faint);
}

.page-home .home-next__extra a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

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

/* ---------- 中等宽度 ---------- */

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

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

  .page-home .home-next__contact {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: var(--sp-7) var(--sp-6);
  }

  .page-home .home-next__contact .btn {
    justify-self: end;
  }
}

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

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

  .page-home .home-rhythm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-7);
    padding: 60px 0 0;
  }

  .page-home .home-rhythm::before {
    left: 0;
    right: 0;
    top: 6px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple) 62%, var(--line));
  }

  .page-home .home-rhythm__item::before {
    left: 0;
    top: -60px;
  }
}

@media (min-width: 900px) {
  .page-home .home-desk {
    clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .home-archive {
    clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .home-desk__lead {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
  }

  .page-home .home-mobile__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    gap: clamp(32px, 5vw, 76px);
  }

  .page-home .home-mobile__figure {
    max-width: 100%;
  }

  .page-home .home-replay__head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
  }

  .page-home .home-archive__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: start;
  }

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

@media (min-width: 960px) {
  .page-home .home-stage__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: start;
  }

  .page-home .home-stage__index {
    padding-top: var(--sp-6);
  }
}

/* ---------- 窄屏收尾 ---------- */

@media (max-width: 480px) {
  .page-home .home-index__hint {
    display: none;
  }

  .page-home .home-squad__item {
    grid-template-columns: 1fr;
  }

  .page-home .home-squad__stage {
    grid-row: auto;
    grid-column: 1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-index__link,
  .page-home .home-next__card,
  .page-home .home-squad__item {
    transition: none;
  }

  .page-home .home-next__card:hover,
  .page-home .home-next__card:focus-visible {
    transform: none;
  }
}
