/* =========================================================
   page-home —— 星空体育官方首页
   所有页面专属选择器均限定在 .page-home 作用域
   ========================================================= */

.page-home {
  --home-cut: 16px;
  --home-cut-sm: 10px;
  display: block;
  background: var(--ink-void);
  color: var(--star-white);
  overflow-x: clip;
}

/* ---------- 通用排版块 ---------- */
.page-home .blk-title {
  margin: 0 0 .8rem;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--star-white);
}

.page-home .blk-text {
  margin: 0 0 1.2rem;
  max-width: 62ch;
  color: var(--haze);
  font-size: .96rem;
  line-height: 1.85;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.3rem;
  font-size: .9rem;
  letter-spacing: .03em;
  text-decoration: none;
}

/* =========================================================
   1. 首屏拼贴
   ========================================================= */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: clamp(1.4rem, 3.5vw, 2.4rem) 0 clamp(2.4rem, 6vw, 4.5rem);
  background:
    radial-gradient(115% 85% at 82% 6%, rgba(255, 61, 139, .24), transparent 58%),
    radial-gradient(95% 75% at 8% 88%, rgba(53, 224, 214, .16), transparent 62%),
    var(--ink-void);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11, 8, 32, .5) 0%, rgba(11, 8, 32, .8) 58%, var(--ink-void) 100%);
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
}

.page-home .hero__context {
  display: inline-block;
  margin: 0 0 clamp(.9rem, 2.5vw, 1.4rem);
  padding-left: .7rem;
  border-left: 3px solid var(--cyan);
  color: var(--haze);
  font-size: .76rem;
  letter-spacing: .16em;
  line-height: 1.6;
}

.page-home .hero__title {
  margin: 0 0 clamp(.9rem, 2vw, 1.2rem);
  max-width: 15ch;
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 8vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.04em;
  color: var(--star-white);
  text-shadow: 0 0 38px rgba(53, 224, 214, .2);
}

.page-home .hero__title em {
  font-style: normal;
  color: var(--magenta);
  text-shadow: 0 0 44px rgba(255, 61, 139, .45);
}

.page-home .hero__lead {
  margin: 0 0 clamp(1.4rem, 4vw, 2.2rem);
  max-width: 52ch;
  color: var(--haze);
  font-size: clamp(.95rem, 1.7vw, 1.05rem);
  line-height: 1.85;
}

.page-home .hero__collage {
  display: grid;
  gap: .85rem;
}

.page-home .hero__stack {
  display: grid;
  gap: .85rem;
}

.page-home .hero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.05rem, 2.6vw, 1.55rem);
  background: linear-gradient(155deg, rgba(36, 28, 92, .92), rgba(22, 17, 58, .9));
  border: 1px solid var(--line-quiet);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%, 0 var(--home-cut));
  color: inherit;
  text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}

.page-home .hero__card:hover,
.page-home .hero__card:focus-visible {
  border-color: var(--line-cyan);
  transform: translateY(-3px);
  background: linear-gradient(155deg, rgba(46, 36, 116, .95), rgba(22, 17, 58, .92));
}

.page-home .hero__card-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  line-height: 1.24;
  letter-spacing: -.02em;
  color: var(--star-white);
}

.page-home .hero__card--main .hero__card-title {
  font-size: clamp(1.5rem, 4.4vw, 2.4rem);
}

.page-home .hero__card-text {
  margin: 0;
  color: var(--haze);
  font-size: .91rem;
  line-height: 1.75;
}

.page-home .hero__go {
  position: relative;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: .35rem;
  color: var(--cyan);
  font-size: .86rem;
  letter-spacing: .05em;
}

.page-home .hero__go::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.page-home .hero__card:hover .hero__go::after,
.page-home .hero__card:focus-visible .hero__go::after {
  transform: scaleX(1);
}

.page-home .hero__ticker {
  list-style: none;
  margin: clamp(1.5rem, 4vw, 2.2rem) 0 0;
  padding: clamp(1rem, 2.4vw, 1.3rem) 0 0;
  border-top: 1px solid var(--line-softer);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.1rem;
}

.page-home .hero__tick {
  display: flex;
  flex-direction: column;
  gap: .18rem;
}

.page-home .hero__tick-value {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .hero__tick-label {
  color: var(--haze);
  font-size: .78rem;
  letter-spacing: .05em;
}

/* =========================================================
   2. 赛事覆盖与刷新节奏
   ========================================================= */
.page-home .coverage {
  padding: clamp(2.6rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--ink-void) 0%, var(--ink-orbit) 42%, var(--ink-void) 100%);
}

.page-home .coverage__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.6rem);
}

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

.page-home .coverage__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line-quiet);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .ladder {
  list-style: none;
  margin: 1.1rem 0 1.4rem;
  padding: 0;
}

.page-home .ladder__item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-bottom: .45rem;
  padding: .62rem .9rem;
  overflow: hidden;
}

.page-home .ladder__item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 100%);
  background: linear-gradient(90deg, rgba(255, 61, 139, .2), rgba(53, 224, 214, .05));
  border-left: 3px solid var(--magenta);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.page-home .ladder__item:hover::before,
.page-home .ladder__item:focus-within::before {
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(53, 224, 214, .18), rgba(53, 224, 214, .03));
}

.page-home .ladder__item:nth-child(1) { --w: 100%; }
.page-home .ladder__item:nth-child(2) { --w: 90%; }
.page-home .ladder__item:nth-child(3) { --w: 80%; }
.page-home .ladder__item:nth-child(4) { --w: 70%; }
.page-home .ladder__item:nth-child(5) { --w: 60%; }
.page-home .ladder__item:nth-child(6) { --w: 50%; }

.page-home .ladder__name,
.page-home .ladder__refresh {
  position: relative;
  z-index: 1;
}

.page-home .ladder__name {
  color: var(--star-white);
  font-size: .92rem;
  font-weight: 600;
}

.page-home .ladder__refresh {
  color: var(--cyan);
  font-size: .78rem;
  letter-spacing: .04em;
}

/* =========================================================
   3. 会员三档对照
   ========================================================= */
.page-home .tiers {
  padding: clamp(2.6rem, 7vw, 5rem) 0;
  background: var(--ink-void);
}

.page-home .tiers__panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(150deg, rgba(36, 28, 92, .72), rgba(22, 17, 58, .5));
  border: 1px solid var(--line-quiet);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%, 0 var(--home-cut));
}

.page-home .tier-table-wrap {
  margin: 0 0 1.4rem;
}

.page-home .tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.page-home .tier-table th,
.page-home .tier-table td {
  padding: .85rem .7rem;
  text-align: left;
  border-bottom: 1px solid var(--line-softer);
  line-height: 1.6;
}

.page-home .tier-table thead th {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--star-white);
  border-bottom: 1px solid var(--line-cyan);
  vertical-align: bottom;
}

.page-home .tier-table thead th:nth-child(3) {
  color: var(--cyan);
}

.page-home .tier-table thead th:nth-child(4) {
  color: var(--orange);
}

.page-home .tier-table thead th span {
  display: block;
  margin-top: .2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--haze);
}

.page-home .tier-table tbody th {
  color: var(--star-white);
  font-weight: 600;
}

.page-home .tier-table tbody td {
  color: var(--haze);
  font-variant-numeric: tabular-nums;
}

.page-home .tier-table tbody tr:hover td {
  color: var(--star-white);
}

/* =========================================================
   4. 人员变动时间轴
   ========================================================= */
.page-home .transfers {
  padding: clamp(2.6rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--ink-void), var(--ink-orbit) 55%, var(--ink-void));
}

.page-home .transfers__banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  margin: .4rem 0 1.8rem;
  border: 1px solid var(--line-softer);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .timeline {
  position: relative;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: .8rem;
  bottom: 1.2rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 61, 139, .7), rgba(53, 224, 214, .45), rgba(53, 224, 214, .04));
}

.page-home .timeline__item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .4rem 1rem;
  padding: 0 0 1.3rem 2.3rem;
}

.page-home .timeline__item:last-child {
  padding-bottom: 0;
}

.page-home .timeline__node {
  position: absolute;
  left: 3px;
  top: .5rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink-void);
  border: 2px solid var(--magenta);
  box-shadow: 0 0 0 4px rgba(255, 61, 139, .14);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.page-home .timeline__item:hover .timeline__node,
.page-home .timeline__item:focus-within .timeline__node {
  background: var(--magenta);
  box-shadow: 0 0 0 6px rgba(255, 61, 139, .2);
}

.page-home .timeline__body {
  flex: 1 1 200px;
  min-width: 0;
}

.page-home .timeline__league {
  display: block;
  margin-bottom: .15rem;
  color: var(--cyan);
  font-size: .72rem;
  letter-spacing: .16em;
}

.page-home .timeline__title {
  margin: 0 0 .2rem;
  font-family: var(--font-head);
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--star-white);
}

.page-home .timeline__note {
  margin: 0;
  color: var(--haze);
  font-size: .84rem;
  line-height: 1.7;
  max-height: 2em;
  overflow: hidden;
  transition: max-height .32s var(--ease), color .3s var(--ease);
}

.page-home .timeline__item:hover .timeline__note,
.page-home .timeline__item:focus-within .timeline__note {
  max-height: 5em;
  color: var(--star-white);
}

/* =========================================================
   5. 球队库数据面板
   ========================================================= */
.page-home .metrics {
  padding: clamp(2.6rem, 7vw, 5rem) 0;
  background: var(--ink-void);
}

.page-home .metrics__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.6rem);
}

.page-home .metrics__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1rem;
}

.page-home .metric-card {
  padding: 1.2rem 1.05rem;
  background: linear-gradient(160deg, rgba(36, 28, 92, .95), rgba(22, 17, 58, .88));
  border: 1px solid var(--line-quiet);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%, 0 var(--home-cut));
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.page-home .metric-card:hover {
  border-color: var(--line-cyan);
  transform: translateY(-6px);
}

.page-home .metric-card__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  transition: color .3s var(--ease);
}

.page-home .metric-card:hover .metric-card__value {
  color: var(--star-white);
}

.page-home .metric-card__label {
  display: block;
  margin-top: .35rem;
  color: var(--star-white);
  font-size: .84rem;
  letter-spacing: .04em;
}

.page-home .metric-card__note {
  margin: .6rem 0 0;
  color: var(--haze);
  font-size: .75rem;
  line-height: 1.6;
}

/* =========================================================
   6. 手机端三步上手
   ========================================================= */
.page-home .mobile {
  padding: clamp(2.6rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--ink-void), var(--ink-orbit) 45%, var(--ink-void));
}

.page-home .mobile__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.6rem);
}

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

.page-home .mobile__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line-quiet);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-home .steps {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.page-home .steps__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .2rem .9rem;
  padding-bottom: 1.15rem;
}

.page-home .steps__item:last-child {
  padding-bottom: 0;
}

.page-home .steps__num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .steps__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--star-white);
}

.page-home .steps__text {
  margin: 0;
  color: var(--haze);
  font-size: .87rem;
  line-height: 1.75;
}

/* =========================================================
   7. 纠错与咨询入口
   ========================================================= */
.page-home .help {
  padding: clamp(2.6rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background: var(--ink-void);
}

.page-home .help__grid {
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0 1.8rem;
}

.page-home .help__card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(1.1rem, 2.6vw, 1.5rem);
  background: linear-gradient(155deg, rgba(36, 28, 92, .85), rgba(22, 17, 58, .7));
  border: 1px solid var(--line-quiet);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%, 0 var(--home-cut));
  color: inherit;
  text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.page-home .help__card:hover,
.page-home .help__card:focus-visible {
  border-color: var(--line-cyan);
  transform: translateY(-3px);
}

.page-home .help__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.12rem;
  letter-spacing: -.01em;
  color: var(--star-white);
}

.page-home .help__text {
  margin: 0;
  color: var(--haze);
  font-size: .88rem;
  line-height: 1.78;
}

.page-home .help__go {
  margin-top: auto;
  padding-top: .4rem;
  color: var(--cyan);
  font-size: .84rem;
  letter-spacing: .05em;
}

.page-home .help__contact {
  display: grid;
  gap: .9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-softer);
}

.page-home .help__contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
}

.page-home .help__contact-label {
  color: var(--haze);
  font-size: .74rem;
  letter-spacing: .18em;
}

/* =========================================================
   响应式
   ========================================================= */
@media (min-width: 760px) {
  .page-home .hero__ticker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .page-home .timeline__note {
    max-height: 1.6em;
  }
}

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

  .page-home .hero__title {
    max-width: 14ch;
  }

  .page-home .metrics__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: center;
  }

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

  .page-home .metric-card:nth-child(2) {
    transform: translateY(-12px);
  }

  .page-home .metric-card:nth-child(2):hover {
    transform: translateY(-18px);
  }
}

@media (min-width: 880px) {
  .page-home .coverage__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }

  .page-home .mobile__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
}

@media (max-width: 720px) {
  .page-home .tier-table,
  .page-home .tier-table tbody,
  .page-home .tier-table tr,
  .page-home .tier-table th,
  .page-home .tier-table td {
    display: block;
    width: 100%;
  }

  .page-home .tier-table thead {
    display: none;
  }

  .page-home .tier-table tr {
    padding: .9rem 0;
    border-bottom: 1px solid var(--line-softer);
  }

  .page-home .tier-table tbody th {
    padding: 0 0 .5rem;
    border: 0;
    font-size: 1rem;
  }

  .page-home .tier-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .22rem 0;
    border: 0;
  }

  .page-home .tier-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--cyan);
    font-size: .72rem;
    letter-spacing: .14em;
  }
}

@media (max-width: 480px) {
  .page-home .ladder__item {
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
  }

  .page-home .ladder__item:nth-child(n) {
    --w: 100%;
  }

  .page-home .hero__card--main .hero__card-title {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__card,
  .page-home .metric-card,
  .page-home .help__card,
  .page-home .timeline__node,
  .page-home .timeline__note,
  .page-home .hero__go::after {
    transition: none;
  }
}
