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

.page-home {
  display: block;
}

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

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-offset) + clamp(20px, 4vw, 48px));
  padding-bottom: clamp(56px, 9vw, 128px);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(30, 155, 255, 0.18), transparent 58%),
    linear-gradient(158deg, #071229 0%, var(--navy) 46%, var(--indigo) 100%);
  color: var(--cloud);
}

.page-home .hero__cut {
  position: absolute;
  right: -14%;
  bottom: -30%;
  width: 86%;
  height: 138%;
  background: linear-gradient(158deg, var(--flame) 0%, #d13325 100%);
  clip-path: polygon(32% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.88;
  pointer-events: none;
}

@media (max-width: 900px) {
  .page-home .hero__cut {
    right: -46%;
    bottom: -22%;
    width: 130%;
    height: 96%;
    opacity: 0.5;
  }
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 4vw, 44px);
}

.page-home .hero__context {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(247, 244, 239, 0.86);
}

.page-home .hero__title {
  margin: 0;
  max-width: 13ch;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--cloud);
}

.page-home .hero__lede {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: rgba(247, 244, 239, 0.9);
}

.page-home .hero__note {
  margin: 16px 0 0;
  max-width: 44ch;
  padding-left: 16px;
  border-left: 2px solid var(--flame);
  font-size: 15px;
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.66);
}

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

.page-home .hero__score {
  display: grid;
  gap: 8px;
  align-self: end;
  padding: clamp(20px, 3vw, 32px) clamp(22px, 3vw, 36px);
  border-radius: var(--radius-card);
  border: 1px solid var(--glass-line);
  background: linear-gradient(152deg, rgba(7, 18, 41, 0.94), rgba(20, 48, 107, 0.86));
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(10px);
}

.page-home .hero__score-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .hero__score-num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(64px, 13vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--cloud);
  animation: heroScoreFlash 640ms var(--ease) both;
}

.page-home .hero__score-sep {
  color: var(--flame);
  margin: 0 0.04em;
}

.page-home .hero__score-stamp {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(247, 244, 239, 0.62);
}

@keyframes heroScoreFlash {
  from { color: var(--flame); }
  to { color: var(--cloud); }
}

.page-home .hero__media {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-2);
  background: var(--indigo);
}

.page-home .hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (min-width: 960px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    column-gap: clamp(36px, 5vw, 72px);
  }
  .page-home .hero__copy {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .page-home .hero__score {
    grid-column: 2;
    grid-row: 1;
  }
  .page-home .hero__media {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ---------- 联赛分区看板 ---------- */

.page-home .leagues__head {
  max-width: 760px;
}

.page-home .board {
  position: relative;
  margin-top: clamp(28px, 4vw, 46px);
}

.page-home .board__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.page-home .board__tab {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: rgba(247, 244, 239, 0.86);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .board__tab:hover {
  border-color: var(--flame);
  color: var(--cloud);
}

.page-home .board__radio:focus-visible + .board__tabs .board__tab {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.page-home #lg-eu:checked ~ .board__tabs .board__tab[for="lg-eu"],
.page-home #lg-cn:checked ~ .board__tabs .board__tab[for="lg-cn"],
.page-home #lg-asia:checked ~ .board__tabs .board__tab[for="lg-asia"],
.page-home #lg-am:checked ~ .board__tabs .board__tab[for="lg-am"],
.page-home #lg-cup:checked ~ .board__tabs .board__tab[for="lg-cup"],
.page-home #lg-es:checked ~ .board__tabs .board__tab[for="lg-es"] {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--navy);
}

.page-home .board__panels {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius-card);
  border: 1px solid var(--glass-line);
  background: linear-gradient(150deg, rgba(7, 18, 41, 0.72), rgba(20, 48, 107, 0.5));
}

.page-home .board__panel {
  display: none;
  gap: 0;
}

.page-home #lg-eu:checked ~ .board__panels #panel-eu,
.page-home #lg-cn:checked ~ .board__panels #panel-cn,
.page-home #lg-asia:checked ~ .board__panels #panel-asia,
.page-home #lg-am:checked ~ .board__panels #panel-am,
.page-home #lg-cup:checked ~ .board__panels #panel-cup,
.page-home #lg-es:checked ~ .board__panels #panel-es {
  display: grid;
  animation: panelIn 280ms var(--ease) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .board__row {
  display: grid;
  gap: 6px 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-home .board__state {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.page-home .board__state--live {
  background: rgba(224, 54, 44, 0.2);
  border: 1px solid rgba(224, 54, 44, 0.52);
  color: var(--flame-soft);
}

.page-home .board__state--soon {
  background: rgba(245, 197, 66, 0.16);
  border: 1px solid rgba(245, 197, 66, 0.46);
  color: var(--gold);
}

.page-home .board__state--done {
  background: rgba(0, 168, 143, 0.16);
  border: 1px solid rgba(0, 168, 143, 0.46);
  color: var(--jade);
}

.page-home .board__row-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.78);
}

.page-home .board__row-text strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 700;
  color: var(--cloud);
}

@media (min-width: 720px) {
  .page-home .board__row {
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: baseline;
  }
}

.page-home .leagues__figure {
  margin: clamp(32px, 5vw, 58px) 0 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-2);
}

.page-home .leagues__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- 比分时间轴 ---------- */

.page-home .line__head {
  max-width: 720px;
}

.page-home .line__grid {
  display: grid;
  gap: clamp(28px, 4vw, 50px);
  margin-top: clamp(28px, 4vw, 46px);
}

@media (min-width: 900px) {
  .page-home .line__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.page-home .mlist {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
}

.page-home .mlist::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(11, 27, 58, 0.3), rgba(11, 27, 58, 0.07));
}

.page-home .mlist__item {
  position: relative;
  padding-bottom: 10px;
}

.page-home .mlist__item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--cloud);
  box-shadow: 0 0 0 1px rgba(11, 27, 58, 0.22);
  transition: transform 0.22s var(--ease);
}

.page-home .mlist__item:hover::before {
  transform: scale(1.12);
}

.page-home .mlist__node {
  border-radius: 12px;
  transition: background-color 0.22s var(--ease);
}

.page-home .mlist__node[open] {
  background: rgba(11, 27, 58, 0.045);
}

.page-home .mlist__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  list-style: none;
  cursor: pointer;
}

.page-home .mlist__head::-webkit-details-marker {
  display: none;
}

.page-home .mlist__time {
  min-width: 58px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--flame);
}

.page-home .mlist__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--graphite);
}

.page-home .mlist__plus {
  margin-left: auto;
  font-size: 16px;
  line-height: 1;
  color: var(--flame);
  transition: transform 0.22s var(--ease);
}

.page-home .mlist__node[open] .mlist__plus {
  transform: rotate(45deg);
}

.page-home .mlist__body {
  margin: 0;
  padding: 0 12px 14px 82px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(42, 47, 58, 0.78);
}

@media (max-width: 560px) {
  .page-home .mlist__body {
    padding-left: 12px;
  }
}

.page-home .line__figure {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--navy);
  box-shadow: var(--shadow-1);
}

.page-home .line__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ---------- 大屏看球 ---------- */

.page-home .screen {
  color: var(--cloud);
}

.page-home .screen__inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.page-home .screen__figure {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-2);
}

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

@media (max-width: 899px) {
  .page-home .screen__figure img {
    aspect-ratio: 4 / 3;
  }
}

.page-home .screen__copy h2 {
  margin: 0;
  color: var(--cloud);
}

.page-home .screen__copy > p {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(247, 244, 239, 0.84);
}

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

.page-home .screen__list li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.86);
}

.page-home .screen__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--flame);
}

.page-home .screen__copy .btn {
  margin-top: 28px;
}

@media (min-width: 900px) {
  .page-home .screen__inner {
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
    gap: clamp(36px, 5vw, 72px);
  }
}

/* ---------- 通勤战报 ---------- */

.page-home .digest__head {
  max-width: 720px;
}

.page-home .digest__rail {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(252px, 82%);
  gap: 16px;
  margin: clamp(26px, 4vw, 42px) 0 0;
  padding: 4px 4px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .digest__card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
  background: #ffffff;
  box-shadow: var(--shadow-1);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.page-home .digest__card:hover {
  transform: translateY(-4px);
  border-color: var(--flame);
  box-shadow: var(--shadow-2);
}

.page-home .digest__badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 27, 58, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sky-deep);
}

.page-home .digest__copy {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite);
}

@media (min-width: 900px) {
  .page-home .digest__rail {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
    overflow: visible;
    padding: 0;
  }
}

/* ---------- 今日集锦 ---------- */

.page-home .clips__inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.page-home .clips__copy h2 {
  margin: 0;
  color: var(--cloud);
}

.page-home .clips__copy > p {
  margin: 18px 0 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(247, 244, 239, 0.82);
}

.page-home .clips__copy .btn {
  margin-top: 28px;
}

.page-home .clips__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--glass-line);
}

.page-home .clips__stats > div {
  padding: 24px 20px;
  background: rgba(7, 18, 41, 0.86);
}

.page-home .clips__stats dt {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(247, 244, 239, 0.6);
}

.page-home .clips__stats dd {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--flame);
}

.page-home .clips__stats dd span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(247, 244, 239, 0.74);
}

.page-home .clips__stats dd.is-text {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--cloud);
}

@media (min-width: 900px) {
  .page-home .clips__inner {
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  }
}

/* ---------- 开始入口 ---------- */

.page-home .start__head {
  max-width: 720px;
}

.page-home .start__paths {
  display: grid;
  gap: 18px;
  margin-top: clamp(26px, 4vw, 42px);
}

.page-home .start__path {
  display: grid;
  gap: 10px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.page-home .start__path:hover,
.page-home .start__path:focus-visible {
  transform: translateY(-4px);
  border-color: var(--flame);
  box-shadow: var(--shadow-2);
}

.page-home .start__path-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--flame);
}

.page-home .start__path-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.page-home .start__path-text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(42, 47, 58, 0.8);
}

.page-home .start__path-more {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sky-deep);
}

.page-home .start__foot {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(42, 47, 58, 0.78);
}

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

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__score-num,
  .page-home .board__panel {
    animation: none;
  }
  .page-home .mlist__item::before,
  .page-home .mlist__plus,
  .page-home .board__tab,
  .page-home .digest__card,
  .page-home .start__path {
    transition: none;
  }
  .page-home .mlist__item:hover::before {
    transform: none;
  }
}
</main>
