/* ============================================================
   page-home · 首页专属样式（作用域限定在 .page-home）
   ============================================================ */

.page-home {
  --home-diag: 2.5deg;
  --home-panel-bg: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
  display: block;
  position: relative;
  overflow-x: clip;
  background: var(--ink-900);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page-home .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.page-home .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 01 封面 ---------- */

.page-home .cover {
  position: relative;
  padding-block: clamp(20px, 3vw, 34px) clamp(52px, 8vw, 104px);
  background:
    radial-gradient(ellipse 78% 62% at 70% -8%, rgba(18, 196, 139, .16), transparent 62%),
    radial-gradient(ellipse 62% 50% at 4% 8%, rgba(255, 90, 43, .09), transparent 60%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
}

.page-home .cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 58, 102, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 102, .4) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 78%);
}

.page-home .cover__crumb {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.page-home .cover__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4.5vw, 60px);
  align-items: start;
}

.page-home .cover__kicker {
  margin: 0 0 clamp(14px, 1.6vw, 20px);
  color: var(--emerald-500);
}

.page-home .cover__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ice-100);
  text-wrap: balance;
}

.page-home .cover__title em {
  font-style: normal;
  color: var(--emerald-500);
  position: relative;
  white-space: nowrap;
}

.page-home .cover__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-500), rgba(18, 196, 139, 0));
}

.page-home .cover__text {
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
  color: var(--text-body);
}

.page-home .cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 2.6vw, 32px);
}

.page-home .cover__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(28px, 3.6vw, 44px) 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.page-home .cover__stat {
  background: rgba(12, 27, 51, .82);
  padding: 14px 16px 16px;
}

.page-home .cover__stat dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}

.page-home .cover__stat dd {
  margin: 8px 0 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1;
  color: var(--ice-100);
}

.page-home .cover__stat dd small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.page-home .cover__aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(12px, 1.6vw, 20px);
  align-items: stretch;
}

.page-home .cover__media {
  margin: 0;
  min-height: 0;
}

.page-home .cover__index {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.page-home .cover__index-label {
  margin: 0;
  color: var(--slate-500);
}

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

.page-home .cover__index a {
  display: block;
  writing-mode: vertical-rl;
  padding: 14px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--muted);
  text-decoration: none;
  background: rgba(7, 15, 30, .55);
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.page-home .cover__index a:hover,
.page-home .cover__index a:focus-visible {
  color: var(--emerald-500);
  border-color: var(--emerald-500);
  background: rgba(18, 196, 139, .07);
}

/* ---------- 通用画板 ---------- */

.page-home .sheet {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--home-panel-bg);
  box-shadow: 0 -16px 38px -16px rgba(3, 8, 18, .7);
  padding-block: clamp(48px, 7vw, 96px);
}

.page-home .sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 196, 139, .45) 22%, rgba(30, 58, 102, .9) 60%, transparent);
}

.page-home .section__head {
  max-width: 72ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-home .section__kicker {
  margin: 0 0 12px;
  color: var(--emerald-500);
}

.page-home .section__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ice-100);
  text-wrap: balance;
}

.page-home .section__note {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 15px;
  color: var(--text-body);
}

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

.page-home .dims {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0 0 clamp(26px, 3.4vw, 40px);
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.page-home .dims__item {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-areas:
    "no name"
    "no desc";
  align-items: center;
  column-gap: 10px;
  background: rgba(7, 15, 30, .6);
  padding: 12px 14px;
}

.page-home .dims__no {
  grid-area: no;
  font-size: 12px;
  color: var(--flare-500);
  align-self: start;
  padding-top: 3px;
}

.page-home .dims__name {
  grid-area: name;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ice-100);
}

.page-home .dims__desc {
  grid-area: desc;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.page-home .leagues__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

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

.page-home .lrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms var(--ease), padding-left 160ms var(--ease);
}

.page-home .lrow:hover {
  background: rgba(18, 196, 139, .05);
  padding-left: 10px;
}

.page-home .lrow__no {
  width: 26px;
  font-size: 12px;
  color: var(--slate-500);
}

.page-home .lrow__name {
  flex: 1 1 170px;
  min-width: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ice-100);
}

.page-home .lrow__round,
.page-home .lrow__time,
.page-home .lrow__count {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.page-home .lrow__time {
  color: var(--amber-400);
}

.page-home .leagues__texture {
  margin: clamp(34px, 4.4vw, 56px) 0 0;
  border-radius: var(--r-sm);
}

/* ---------- 03 比赛日脉搏 ---------- */

.page-home .pulse__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.6vw, 44px);
  align-items: start;
}

.page-home .pulse__tabs .tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 2.6vw, 28px);
}

.page-home .pulse__panel-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.35;
  color: var(--ice-100);
}

.page-home .pulse__panel p {
  margin: 0;
  max-width: 60ch;
  color: var(--text-body);
}

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

.page-home .pulse__facts li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--muted);
  background: rgba(7, 15, 30, .55);
}

.page-home .pulse__facts .num {
  color: var(--emerald-500);
  font-weight: 700;
  margin-right: 5px;
}

.page-home .pulse__figure {
  margin: 0;
  border-radius: var(--r-sm);
}

/* ---------- 04 四条动线 ---------- */

.page-home .routes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.page-home .route {
  display: block;
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  background: rgba(7, 15, 30, .68);
  text-decoration: none;
  color: inherit;
  transition: background 200ms var(--ease);
}

.page-home .route::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--emerald-500);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 240ms var(--ease);
}

.page-home .route:hover,
.page-home .route:focus-visible {
  background: rgba(18, 196, 139, .07);
}

.page-home .route:hover::after,
.page-home .route:focus-visible::after {
  transform: scaleY(1);
}

.page-home .route__no {
  display: block;
  font-size: 12px;
  color: var(--flare-500);
  margin-bottom: 14px;
}

.page-home .route__title {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.3;
  color: var(--ice-100);
}

.page-home .route__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-body);
}

.page-home .route__go {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--emerald-500);
}

.page-home .route__go::after {
  content: " →";
}

/* ---------- 05 会员权益 ---------- */

.page-home .tiers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.page-home .tier {
  background: rgba(7, 15, 30, .68);
  padding: clamp(22px, 2.6vw, 32px);
  position: relative;
}

.page-home .tier--mid {
  background: rgba(18, 39, 74, .82);
}

.page-home .tier--top {
  background:
    linear-gradient(180deg, rgba(255, 90, 43, .08), transparent 62%),
    rgba(18, 39, 74, .95);
}

.page-home .tier__head {
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 18px;
}

.page-home .tier__name {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(21px, 1.9vw, 26px);
  color: var(--ice-100);
}

.page-home .tier--top .tier__name {
  color: var(--flare-500);
}

.page-home .tier__for {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

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

.page-home .tier__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--text-body);
}

.page-home .tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 2px;
  background: var(--emerald-500);
}

.page-home .tiers__foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  margin-top: clamp(28px, 3.6vw, 46px);
}

.page-home .tiers__figure {
  margin: 0;
  border-radius: var(--r-sm);
}

.page-home .tiers__note p {
  margin: 0 0 14px;
  max-width: 58ch;
  color: var(--text-body);
  font-size: 14.5px;
}

.page-home .tiers__note .label {
  margin-bottom: 10px;
  color: var(--amber-400);
}

.page-home .tiers__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 06 先问后找 ---------- */

.page-home .ask__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.6vw, 44px);
  align-items: start;
}

.page-home .ask__list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.page-home .ask__item {
  padding: clamp(18px, 2.2vw, 24px) 0;
  border-bottom: 1px solid var(--line);
}

.page-home .ask__item dt {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ice-100);
  margin-bottom: 10px;
}

.page-home .ask__item dt::before {
  content: "?";
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-mono);
  color: var(--emerald-500);
}

.page-home .ask__item dd {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-body);
}

.page-home .ask__contact {
  position: relative;
  padding: clamp(22px, 2.8vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background:
    linear-gradient(160deg, rgba(255, 90, 43, .09), transparent 55%),
    rgba(12, 27, 51, .9);
  box-shadow: var(--shadow-2);
}

.page-home .ask__contact::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--flare-500), rgba(255, 90, 43, 0));
}

.page-home .ask__contact-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(19px, 1.8vw, 22px);
  color: var(--ice-100);
}

.page-home .ask__contact-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}

.page-home .ask__channels {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-home .ask__channels li {
  display: grid;
  gap: 4px;
}

.page-home .ask__channels .label {
  color: var(--slate-500);
}

.page-home .ask__channels a {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--ice-100);
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .ask__channels a:hover,
.page-home .ask__channels a:focus-visible {
  color: var(--emerald-500);
  border-bottom-color: var(--emerald-500);
}

.page-home .ask__actions {
  display: grid;
  gap: 10px;
}

/* ---------- 中屏 ---------- */

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

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

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

/* ---------- 桌面 ---------- */

@media (min-width: 900px) {
  .page-home .cover__grid {
    grid-template-columns: 7fr 5fr;
    gap: clamp(32px, 4vw, 64px);
  }

  .page-home .cover__aside {
    margin-bottom: -70px;
  }

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

  .page-home .pulse__body {
    grid-template-columns: 6fr 5fr;
    gap: clamp(32px, 4vw, 56px);
  }

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

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

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

  .page-home .tiers__foot {
    grid-template-columns: 5fr 6fr;
    gap: clamp(28px, 3.6vw, 52px);
  }

  .page-home .ask__grid {
    grid-template-columns: 7fr 5fr;
  }
}

@media (min-width: 1180px) {
  .page-home .cover__title {
    font-size: clamp(56px, 6.4vw, 88px);
  }
}

/* ---------- 动效收敛 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .cover__index a,
  .page-home .route,
  .page-home .route::after,
  .page-home .lrow,
  .page-home .ask__channels a {
    transition-duration: .01ms;
  }
}
