/* ===== 首页 · 数据入口与版本对照 ===== */

.page-home {
  --home-gap: clamp(20px, 2.6vw, 34px);
  --home-veil: rgba(10, 26, 47, .72);
  overflow-x: hidden;
}

.page-home .crumb {
  padding: 18px 0 4px;
}

/* ---------- 首屏：斜切色块 + 双入口 ---------- */

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5vw, 66px) 0 clamp(84px, 11vw, 146px);
  background: linear-gradient(167deg, var(--bg-2) 0%, var(--bg) 54%, #071322 100%);
}

.page-home .hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero__canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .36;
  mix-blend-mode: screen;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(104deg, transparent 40%, rgba(0, 229, 199, .10) 40.4%, rgba(0, 229, 199, .10) 60%, transparent 60.4%),
    linear-gradient(170deg, rgba(10, 26, 47, .1) 0%, var(--home-veil) 74%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -36%;
  width: 68%;
  height: 90%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(146deg, rgba(255, 107, 53, .24), rgba(255, 107, 53, 0) 70%);
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.page-home .hero__rail {
  max-width: 42ch;
}

.page-home .hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 7.2vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.page-home .hero__lede {
  margin: 20px 0 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-home .hero__stat {
  min-width: 82px;
}

.page-home .hero__stat dt {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .hero__stat dd {
  margin: 6px 0 0;
  font-size: 26px;
  line-height: 1;
  color: var(--cyan);
}

.page-home .hero__stream {
  display: grid;
  gap: 16px;
}

.page-home .entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(150deg, rgba(19, 43, 69, .92), rgba(14, 33, 56, .88));
  color: var(--ink);
  text-decoration: none;
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}

.page-home .entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: var(--r-pill);
  background: var(--cyan);
}

.page-home .entry--warm::before {
  background: var(--orange);
}

.page-home .entry:hover,
.page-home .entry:focus-visible {
  transform: translateX(4px);
  border-color: var(--cyan);
}

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

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

.page-home .entry__body {
  display: grid;
  gap: 6px;
  flex: 1;
}

.page-home .entry__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.page-home .entry__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .entry__arrow {
  font-size: 20px;
  color: var(--cyan);
  transition: transform .22s var(--ease);
}

.page-home .entry--warm .entry__arrow {
  color: var(--orange);
}

.page-home .entry:hover .entry__arrow {
  transform: translateX(4px);
}

.page-home .hero__note {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 第二栏：横向贯通的数据面板 ---------- */

.page-home .databar {
  position: relative;
  z-index: 3;
  margin-top: clamp(-64px, -6vw, -40px);
}

.page-home .databar > .container {
  padding: clamp(26px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: calc(var(--r-card) + 8px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 229, 199, .10) 0%, transparent 58%),
    linear-gradient(180deg, var(--card) 0%, #102540 100%);
  box-shadow: 0 28px 70px rgba(3, 10, 20, .55);
}

.page-home .databar__head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-home .databar__headlines h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.page-home .databar__live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

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

.page-home .databar__faster b {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--orange);
  margin: 0 2px;
}

.page-home .databar__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  padding: 24px 0;
}

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

.page-home .league-list__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--muted);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.page-home .league-list__item .num {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .league-list__item.is-active {
  border-color: var(--cyan);
  background: rgba(0, 229, 199, .10);
  color: var(--ink);
}

.page-home .league-list__item.is-active .num {
  color: var(--cyan);
}

.page-home .sortbar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.page-home .sortbar__label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .sortbar__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .sortbar__opts li {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(30, 62, 92, .5);
  font-size: 13px;
  color: var(--ink);
}

.page-home .databar__figure {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
}

.page-home .databar__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .metric {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(14, 33, 56, .7);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}

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

.page-home .metric__num {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  color: var(--cyan);
}

.page-home .metric:nth-child(2) .metric__num {
  color: var(--cyan-soft);
}

.page-home .metric:nth-child(3) .metric__num {
  color: var(--gold);
}

.page-home .metric:nth-child(4) .metric__num {
  color: var(--orange-soft);
}

.page-home .metric__label {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 当日赛事日历 ---------- */

.page-home .schedule-block .rail h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.page-home .schedule-block .rail .lede {
  margin: 16px 0 26px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .schedule-block .figure {
  margin: 0 0 var(--home-gap);
}

.page-home .schedule {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgba(14, 33, 56, .6);
}

.page-home .schedule__row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  grid-template-areas:
    "time league pill"
    "time detail detail";
  gap: 4px 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}

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

.page-home .schedule__row:hover {
  background: rgba(0, 229, 199, .06);
}

.page-home .schedule__time {
  grid-area: time;
  font-size: 18px;
  color: var(--cyan);
}

.page-home .schedule__league {
  grid-area: league;
  font-size: 15px;
  color: var(--ink);
}

.page-home .schedule__detail {
  grid-area: detail;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .schedule__row .pill {
  grid-area: pill;
  justify-self: end;
}

/* ---------- 旧版本与升级版对照 ---------- */

.page-home .versions__head {
  max-width: 62ch;
  margin-bottom: var(--home-gap);
}

.page-home .versions__head h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.page-home .versions__head .lede {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .versions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .versions__art img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--r-card);
  opacity: .85;
}

.page-home .vcard {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(165deg, var(--card) 0%, #0F2440 100%);
  transition: border-color .24s var(--ease);
}

.page-home .vcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--muted);
}

.page-home .vcard--old::before {
  background: var(--cyan);
}

.page-home .vcard--new::before {
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.page-home .vcard--old:hover {
  border-color: var(--cyan);
}

.page-home .vcard--new:hover {
  border-color: var(--orange);
}

.page-home .vcard__tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .vcard--new .vcard__tag {
  color: var(--orange);
}

.page-home .vcard__title {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
}

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

.page-home .vcard__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .vcard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-home .vcard--new .vcard__list li::before {
  background: var(--orange);
}

.page-home .versions__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: var(--home-gap);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-home .versions__foot p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 延伸入口 ---------- */

.page-home .explore__head {
  margin-bottom: var(--home-gap);
}

.page-home .explore__head h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.018em;
}

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

.page-home .xcard {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 24px 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgba(14, 33, 56, .62);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}

.page-home .xcard:hover {
  border-color: var(--cyan);
  background: rgba(19, 43, 69, .9);
  transform: translateY(-3px);
}

.page-home .xcard--warm:hover {
  border-color: var(--orange);
}

.page-home .xcard__label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .xcard--warm .xcard__label {
  color: var(--orange);
}

.page-home .xcard__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.page-home .xcard__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .xcard__arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform .22s var(--ease), color .22s var(--ease);
}

.page-home .xcard:hover .xcard__arrow {
  color: var(--cyan);
  transform: translateX(5px);
}

.page-home .xcard--warm:hover .xcard__arrow {
  color: var(--orange);
}

/* ---------- 响应式 ---------- */

@media (min-width: 700px) {
  .page-home .league-list {
    gap: 12px;
  }

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

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

@media (min-width: 981px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(300px, 5fr) 6fr;
    gap: clamp(34px, 5vw, 70px);
    align-items: center;
  }

  .page-home .databar__body {
    grid-template-columns: minmax(260px, 4fr) 7fr;
    align-items: start;
  }

  .page-home .versions__grid {
    grid-template-columns: 0.9fr 1fr 1fr;
    align-items: start;
  }

  .page-home .versions__art {
    align-self: center;
  }

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

@media (max-width: 560px) {
  .page-home .databar > .container {
    padding: 22px 18px;
  }

  .page-home .schedule__row {
    grid-template-columns: 58px 1fr auto;
    padding: 14px 16px;
  }

  .page-home .schedule__time {
    font-size: 16px;
  }

  .page-home .entry {
    padding: 18px 18px;
    gap: 14px;
  }

  .page-home .entry__title {
    font-size: 18px;
  }

  .page-home .hero__stats {
    gap: 12px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry,
  .page-home .metric,
  .page-home .xcard,
  .page-home .vcard,
  .page-home .entry__arrow,
  .page-home .xcard__arrow {
    transition: none;
  }
}
