/* ===== 开心体育平台首页 · 页面专属样式 ===== */
/* 作用域：.page-home */

.page-home {
  --home-red: #EF4444;
}

/* ---------- 基础工具 ---------- */
.page-home .data-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-graphite);
}

.page-home .data-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-ink);
}

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

.page-home .section-head__desc {
  margin-top: 10px;
  color: var(--c-graphite);
  font-size: 16px;
  line-height: 1.65;
}

.page-home .section-head--light .section-title {
  color: var(--c-white);
}

.page-home .section-head--light .section-head__desc {
  color: rgba(255, 255, 255, 0.75);
}

.page-home .media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-graphite);
}

.page-home .section--tint {
  background-color: var(--c-paper);
}

.page-home .section--dark {
  background-color: var(--c-ink);
}

/* ---------- Hero 首屏 · 赛场速览 ---------- */
.page-home .hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  background-color: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
}

.page-home .hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.page-home .hero__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.5) 50%, var(--c-ink) 100%);
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 640px;
  padding-top: 24px;
  padding-bottom: 40px;
}

.page-home .hero__breadcrumbs {
  margin-bottom: auto;
  padding-top: 12px;
  padding-bottom: 0;
}

.page-home .hero__breadcrumbs .breadcrumbs__link,
.page-home .hero__breadcrumbs .breadcrumbs__item {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-home .hero__breadcrumbs .breadcrumbs__item[aria-current="page"] {
  color: var(--c-orange);
}

.page-home .hero__card {
  max-width: 780px;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 4px solid var(--c-orange);
}

.page-home .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .hero .status-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25), 0 0 16px rgba(249, 115, 22, 0.6);
}

.page-home .hero__title {
  margin: 14px 0 0;
  color: var(--c-white);
}

.page-home .hero__title em {
  font-style: italic;
  color: var(--c-orange);
}

.page-home .hero__lead {
  max-width: 640px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.75;
}

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

.page-home .hero .btn--primary {
  background-color: var(--c-orange);
  border-color: var(--c-orange);
}

.page-home .hero .btn--outline {
  border-color: var(--c-white);
  color: var(--c-white);
}

.page-home .hero .btn--outline:hover,
.page-home .hero .btn--outline:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.page-home .hero__stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--c-orange);
}

.page-home .hero__stat:nth-child(1) {
  border-left-color: var(--c-orange);
}

.page-home .hero__stat:nth-child(2) {
  border-left-color: var(--c-blue);
}

.page-home .hero__stat:nth-child(3) {
  border-left-color: var(--c-green);
}

.page-home .hero__stat:nth-child(4) {
  border-left-color: var(--c-yellow);
}

.page-home .hero__stat .data-label {
  color: rgba(255, 255, 255, 0.6);
}

.page-home .hero__stat .data-value {
  font-size: 22px;
  color: var(--c-white);
  line-height: 1;
}

.page-home .hero__stat-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 2px;
}

/* ---------- 实时数据面板 ---------- */
.page-home .datascreen {
  position: relative;
}

.page-home .datascreen::before {
  content: "";
  display: block;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--c-orange) 0 14px, transparent 14px 28px);
}

.page-home .datascreen__layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.page-home .datascreen__board {
  position: relative;
  overflow: hidden;
  background: var(--c-white);
  border: 2px solid var(--c-ink);
  box-shadow: var(--shadow-1);
  padding: 24px;
}

.page-home .datascreen__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.page-home .datascreen__board-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.page-home .datascreen__match {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-ink);
}

.page-home .datascreen__meter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .datascreen__meter li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--c-paper);
  border-left: 3px solid var(--c-blue);
}

.page-home .datascreen__meter .data-value {
  font-size: 20px;
}

.page-home .datascreen__spark {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin-top: 20px;
}

.page-home .datascreen__spark path {
  fill: none;
}

.page-home .datascreen__spark path:first-child {
  fill: url(#sparkGrad);
  stroke: none;
}

.page-home .datascreen__spark path:nth-child(2) {
  fill: none;
  stroke: var(--c-blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.page-home .datascreen__media img {
  width: 100%;
  height: auto;
  border: 2px solid var(--c-ink);
  box-shadow: var(--shadow-1);
}

/* ---------- 战报专栏 ---------- */
.page-home .report {
  background-color: var(--c-white);
}

.page-home .report__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.page-home .report__content {
  max-width: 560px;
}

.page-home .report__lede {
  margin-top: 14px;
  color: var(--c-graphite);
  line-height: 1.7;
}

.page-home .report__points {
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--c-paper);
}

.page-home .report__points li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 2px solid var(--c-paper);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-ink);
}

.page-home .report__points li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  width: 10px;
  height: 10px;
  background: var(--c-blue);
  transform: rotate(45deg);
}

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

.page-home .report__media img {
  width: 100%;
  height: auto;
  border: 2px solid var(--c-ink);
  box-shadow: var(--shadow-2);
}

/* ---------- 关键判罚视频 ---------- */
.page-home .videoclip {
  position: relative;
  color: var(--c-white);
}

.page-home .videoclip::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(90deg,
    var(--c-orange) 0 24%,
    var(--c-blue) 24% 48%,
    var(--c-yellow) 48% 60%,
    var(--c-ink) 60% 100%
  );
}

.page-home .videoclip__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.page-home .videoclip__media {
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.page-home .videoclip__media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .videoclip__heading {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--c-white);
  border-left: 4px solid var(--c-orange);
  padding-left: 12px;
}

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

.page-home .videoclip__event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .videoclip__event-time {
  min-width: 34px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-yellow);
}

.page-home .videoclip__event-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.page-home .videoclip__tag--red {
  background: var(--home-red);
  border-color: var(--home-red);
  color: #ffffff;
}

.page-home .videoclip__note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.46);
}

/* ---------- 频道入口 ---------- */
.page-home .channels {
  position: relative;
  background-color: var(--c-paper);
}

.page-home .channels::before {
  content: "";
  display: block;
  height: 8px;
  background: repeating-linear-gradient(45deg, var(--c-blue) 0 14px, transparent 14px 28px);
}

.page-home .channels__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.page-home .channels__item {
  display: block;
  padding: 24px;
  background: var(--c-white);
  border: 2px solid var(--c-ink);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.page-home .channels__item:hover,
.page-home .channels__item:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--c-ink);
}

.page-home .channels__name {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--c-ink);
}

.page-home .channels__desc {
  margin: 0 0 14px;
  color: var(--c-graphite);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .channels__item .link-more {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-orange);
}

/* ---------- 平板适配 ---------- */
@media (min-width: 640px) {
  .page-home .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* ---------- 桌面端适配 ---------- */
@media (min-width: 960px) {
  .page-home .hero {
    min-height: 720px;
  }

  .page-home .hero__inner {
    min-height: 720px;
    padding-bottom: 56px;
  }

  .page-home .hero__card {
    max-width: 820px;
    margin-top: 32px;
    padding-top: 36px;
  }

  .page-home .hero__lead {
    max-width: 620px;
    font-size: 18px;
  }

  .page-home .hero__stats {
    gap: 20px;
    margin-top: 48px;
  }

  .page-home .datascreen__layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 40px;
  }

  .page-home .datascreen__board {
    padding: 32px;
  }

  .page-home .datascreen__meter {
    gap: 14px;
  }

  .page-home .report__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
  }

  .page-home .report__content {
    max-width: 520px;
  }

  .page-home .videoclip__layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
    gap: 48px;
  }

  .page-home .channels__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
  }

  .page-home .channels__item:nth-child(even) {
    margin-top: 48px;
  }

  .page-home .channels__item--wide {
    grid-column: 1 / -1;
  }
}
