.page-home {
  --home-gap: clamp(56px, 9vw, 108px);
  display: block;
  background: var(--night);
  color: var(--body-text);
}

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

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 6vw, 60px) 0 clamp(48px, 7vw, 92px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -20% -16% auto -16%;
  height: 132%;
  background:
    linear-gradient(148deg, rgba(255, 106, 26, .18) 0%, rgba(255, 106, 26, 0) 48%),
    linear-gradient(38deg, rgba(77, 216, 230, .12) 0%, rgba(8, 26, 48, 0) 62%);
  clip-path: polygon(0 0, 100% 0, 100% 56%, 44% 100%, 0 82%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 16%, var(--line) 84%, transparent);
}

.page-home .home-hero__inner {
  display: grid;
  gap: clamp(34px, 6vw, 58px);
  align-items: start;
}

.page-home .home-hero__copy {
  position: relative;
  z-index: 2;
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.85rem, 12.5vw, 5.4rem);
  line-height: .93;
  letter-spacing: -.035em;
  color: var(--white);
}

.page-home .home-hero__title span {
  color: var(--orange);
  position: relative;
}

.page-home .home-hero__title span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 6%;
  bottom: .06em;
  height: .1em;
  background: linear-gradient(90deg, rgba(255, 106, 26, .55), rgba(184, 255, 77, .28) 70%, transparent);
  border-radius: 999px;
}

.page-home .home-hero__lead {
  margin: 24px 0 0;
  max-width: 54ch;
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  line-height: 1.82;
  color: var(--body-text);
}

.page-home .home-hero__hint {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid rgba(77, 216, 230, .55);
}

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

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: var(--edge);
}

.page-home .hero-stat {
  min-width: 0;
}

.page-home .hero-stat__label {
  margin: 0;
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--muted);
}

.page-home .hero-stat__value {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.3rem, 4.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--white);
  line-height: 1.1;
}

.page-home .hero-stat__value span {
  font-size: .62em;
  margin-left: 2px;
  color: var(--muted);
}

.page-home .hero-stat__value--lime {
  color: var(--lime);
}

/* 首屏舞台 */

.page-home .home-hero__stage {
  position: relative;
  display: grid;
  gap: 0;
}

.page-home .hero__frame {
  position: relative;
  overflow: hidden;
  border: var(--edge);
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
  box-shadow: var(--shadow-2);
  background: var(--night-deep);
}

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

.page-home .hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(205deg, rgba(8, 26, 48, 0) 28%, rgba(5, 15, 28, .86) 100%);
  pointer-events: none;
}

.page-home .hero-card {
  position: relative;
  z-index: 2;
  display: block;
  margin: -74px 12px 0;
  padding: 18px 18px 16px;
}

.page-home .hero-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: var(--edge);
}

.page-home .hero-card__league {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--white);
}

.page-home .hero-card__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.page-home .hero-card__row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(39, 70, 103, .5);
}

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

.page-home .hero-card__rank {
  font-size: .78rem;
  color: var(--orange-soft);
}

.page-home .hero-card__team {
  font-size: .92rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .hero-card__pts {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lime);
}

.page-home .hero-card__foot {
  margin: 12px 0 0;
  font-size: .76rem;
  color: var(--muted);
  letter-spacing: .04em;
}

@media (min-width: 940px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 64px;
  }

  .page-home .home-hero__stage {
    padding-top: clamp(10px, 3vw, 38px);
  }

  .page-home .hero-card {
    margin: -96px 0 0 auto;
    max-width: 358px;
  }
}

/* ---------- 积分榜 ---------- */

.page-home .home-standings {
  padding: var(--home-gap) 0;
  background: linear-gradient(180deg, rgba(15, 39, 70, .62), rgba(8, 26, 48, 0) 82%);
}

.page-home .stand-grid {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.page-home .stand-card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 18px;
  border: var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(15, 39, 70, .94), rgba(8, 26, 48, .9));
  box-shadow: var(--shadow-1);
}

.page-home .stand-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--lime) 62%, transparent);
}

.page-home .stand-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(39, 70, 103, .7);
}

.page-home .stand-card__league {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--white);
}

.page-home .stand-card__meta {
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--cyan);
}

.page-home .stand-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.page-home .stand-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(39, 70, 103, .42);
}

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

.page-home .stand-row__rank {
  font-size: .8rem;
  color: var(--muted);
}

.page-home .stand-row__team {
  font-size: .94rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .stand-row__pts {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.page-home .stand-row__delta {
  font-size: .8rem;
  text-align: right;
  color: var(--muted);
}

.page-home .stand-card__note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(39, 70, 103, .6);
  font-size: .78rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .stand-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

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

  .page-home .stand-actions {
    justify-content: flex-start;
  }
}

/* ---------- 小屏与共看 ---------- */

.page-home .home-viewing {
  padding: var(--home-gap) 0;
}

.page-home .viewing-grid {
  display: grid;
  gap: 40px;
  margin-top: 34px;
}

.page-home .viewing-item {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-home .viewing-item__figure {
  position: relative;
  overflow: hidden;
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--deep);
  box-shadow: var(--shadow-1);
}

.page-home .viewing-item__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-width: 100%;
}

.page-home .viewing-item__figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(8, 26, 48, 0), rgba(5, 15, 28, .8));
  pointer-events: none;
}

.page-home .viewing-item__title {
  margin: 0;
  font-size: clamp(1.18rem, 3.6vw, 1.42rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--white);
}

.page-home .viewing-item__text {
  margin: 0;
  font-size: .96rem;
  line-height: 1.85;
  color: var(--body-text);
}

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

.page-home .viewing-item__list li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
  border-bottom: 1px solid rgba(39, 70, 103, .4);
}

.page-home .viewing-item__list li:last-child {
  border-bottom: 0;
}

.page-home .viewing-item__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(45deg);
}

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

  .page-home .viewing-item:nth-child(2) {
    margin-top: 54px;
  }
}

/* ---------- 注册引导 ---------- */

.page-home .home-register {
  padding: var(--home-gap) 0 0;
}

.page-home .register-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 48px) clamp(20px, 4vw, 46px);
  border: var(--edge);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 90% at 92% 4%, rgba(255, 106, 26, .18), transparent 60%),
    linear-gradient(160deg, rgba(15, 39, 70, .96), rgba(8, 26, 48, .94));
  box-shadow: var(--shadow-2);
}

.page-home .register-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(184, 255, 77, .16);
  pointer-events: none;
}

.page-home .register-panel__head .section__title {
  margin-top: 10px;
}

.page-home .register-panel__desc {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .register-steps {
  list-style: none;
  counter-reset: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-home .register-step {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid rgba(39, 70, 103, .8);
  border-radius: var(--radius);
  background: rgba(5, 15, 28, .52);
}

.page-home .register-step__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--orange);
  line-height: 1;
}

.page-home .register-step__title {
  margin: 12px 0 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--white);
}

.page-home .register-step__text {
  margin: 8px 0 0;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .register-panel__foot {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: var(--edge);
}

.page-home .register-panel__note {
  margin: 0;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--body-text);
}

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

  .page-home .register-panel__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
  }

  .page-home .register-panel__foot .btn--block {
    width: auto;
    padding-left: 34px;
    padding-right: 34px;
  }
}

/* ---------- 赛后复盘 ---------- */

.page-home .home-review {
  padding: var(--home-gap) 0;
}

.page-home .review-grid {
  display: grid;
  gap: 30px;
  margin-top: 34px;
}

.page-home .review-figure {
  position: relative;
  margin: 0;
  border: var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow-1);
}

.page-home .review-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-width: 100%;
}

.page-home .review-figure .media-frame__caption {
  display: block;
  padding: 12px 16px 14px;
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--muted);
  border-top: var(--edge);
}

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

.page-home .review-list__item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(39, 70, 103, .55);
}

.page-home .review-list__item:first-child {
  padding-top: 0;
}

.page-home .review-list__tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--cyan);
  padding-bottom: 6px;
}

.page-home .review-list__title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
}

.page-home .review-list__text {
  margin: 8px 0 0;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .review-body .btn {
  margin-top: 26px;
}

@media (min-width: 880px) {
  .page-home .review-grid {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .review-figure {
    position: sticky;
    top: 96px;
  }
}

/* ---------- 服务地图 ---------- */

.page-home .home-map {
  padding: 0 0 var(--home-gap);
}

.page-home .map-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  border-top: var(--edge);
}

.page-home .map-item__link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  grid-template-areas:
    "index label arrow"
    ". note .";
  align-items: center;
  gap: 4px 14px;
  padding: 18px 6px;
  border-bottom: var(--edge);
  text-decoration: none;
  transition: background-color 180ms var(--ease), padding-left 180ms var(--ease);
}

.page-home .map-item__index {
  grid-area: index;
  font-size: .84rem;
  color: var(--orange);
}

.page-home .map-item__label {
  grid-area: label;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
}

.page-home .map-item__note {
  grid-area: note;
  font-size: .84rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .map-item__arrow {
  grid-area: arrow;
  justify-self: end;
  font-size: 1rem;
  color: var(--line);
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

.page-home .map-item__link:hover,
.page-home .map-item__link:focus-visible {
  background: rgba(15, 39, 70, .72);
  padding-left: 14px;
}

.page-home .map-item__link:hover .map-item__arrow,
.page-home .map-item__link:focus-visible .map-item__arrow {
  color: var(--orange);
  transform: translateX(4px);
}

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

@media (min-width: 760px) {
  .page-home .map-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    border-top: 0;
  }

  .page-home .map-item__link {
    border-top: var(--edge);
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .map-item__link,
  .page-home .map-item__arrow {
    transition: none;
  }
}
