/* ============================================================
   page-home —— 易倍体育赛事首页
   所有页面专属样式限定在 .page-home 作用域内
   ============================================================ */

.page-home {
  --home-space: clamp(3rem, 7.5vw, 6rem);
  --home-cut: 18px;
  position: relative;
  overflow-x: clip;
}

/* ---------- 小节节奏与标题 ---------- */
.page-home .section {
  padding-block: var(--home-space);
}

.page-home .section-head {
  position: relative;
  max-width: 46rem;
  padding-top: 1.5rem;
}
.page-home .section-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--c-signal), transparent);
}
.page-home .section-title {
  margin: .7rem 0 0;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.15;
}
.page-home .section-head .lede {
  margin-top: .9rem;
}

/* ============================================================
   首屏
   ============================================================ */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 8vw, 5rem) clamp(2rem, 5.5vw, 4rem);
}
.page-home .hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.page-home .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  opacity: .32;
  filter: saturate(1.2) contrast(1.06);
}
.page-home .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 80% at 6% 2%, rgba(57, 255, 136, .20), transparent 56%),
    radial-gradient(85% 75% at 94% 98%, rgba(255, 138, 61, .18), transparent 60%),
    linear-gradient(168deg, rgba(10, 26, 47, .78) 0%, rgba(5, 11, 20, .93) 58%, var(--c-deep) 100%);
}
.page-home .hero__inner {
  position: relative;
}
.page-home .hero__grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
}

.page-home .hero__title {
  margin: .85rem 0 0;
  font-size: clamp(2.15rem, 6.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--c-white);
}
.page-home .hero__title .hl {
  position: relative;
  display: inline-block;
  color: var(--c-signal);
}
.page-home .hero__title .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: -.08em;
  bottom: .05em;
  height: .07em;
  background: linear-gradient(90deg, var(--c-flare), transparent);
}

.page-home .hero__lede {
  margin: 1.15rem 0 0;
  max-width: 40rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.78;
  color: var(--c-mist);
}

.page-home .hero__meta {
  list-style: none;
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  padding: clamp(.9rem, 2vw, 1.15rem) 0 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.9rem;
}
.page-home .hero__meta li {
  display: flex;
  align-items: baseline;
  gap: .45rem;
}
.page-home .hero__meta b {
  font-family: var(--font-data);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--c-white);
}
.page-home .hero__meta span {
  font-size: .82rem;
  color: var(--c-mist);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: clamp(1.4rem, 3.5vw, 2rem);
}

/* 章节预览面板 */
.page-home .chapter-panel {
  position: relative;
  padding: clamp(1rem, 2.6vw, 1.4rem);
  border: 1px solid var(--line-soft);
  background: linear-gradient(158deg, rgba(17, 43, 74, .86), rgba(10, 26, 47, .58));
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, 0 100%);
}
.page-home .chapter-panel__title {
  margin: 0 0 .55rem;
  font-family: var(--font-data);
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--c-mist);
}
.page-home .chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-home .chapter-list > li + li {
  border-top: 1px solid var(--line-soft);
}
.page-home .chapter-link {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .5rem;
  padding: .6rem .3rem;
  text-decoration: none;
  color: var(--c-white);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.page-home .chapter-link:hover,
.page-home .chapter-link:focus-visible {
  background: var(--signal-soft);
  color: var(--c-signal);
}
.page-home .chapter-link__num {
  font-family: var(--font-data);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--c-signal);
}
.page-home .chapter-link__label {
  font-size: .93rem;
}
.page-home .chapter-link__hint {
  font-family: var(--font-data);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--c-mist);
}

@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: end;
  }
}

/* ============================================================
   实时数据看板
   ============================================================ */
.page-home .ticker {
  list-style: none;
  margin: clamp(1.5rem, 4vw, 2rem) 0 0;
  padding: 0 0 .6rem;
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--c-steel) transparent;
}
.page-home .ticker__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: .42rem .8rem;
  border: 1px solid var(--line-soft);
  background: rgba(17, 43, 74, .55);
  font-family: var(--font-data);
  font-size: .76rem;
  letter-spacing: .03em;
  color: var(--c-mist);
  white-space: nowrap;
}
.page-home .ticker__item b {
  color: var(--c-signal);
  font-weight: 700;
}

.page-home .live__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}

.page-home .board {
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(17, 43, 74, .92), rgba(10, 26, 47, .78));
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, 0 100%);
  overflow: hidden;
}
.page-home .board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 2.4vw, 1.4rem);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(57, 255, 136, .13), transparent 62%);
}
.page-home .board__title {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
}
.page-home .board__live {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-data);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--c-signal);
}
.page-home .board__live::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--c-signal);
  animation: homePulse 2.2s var(--ease) infinite;
}

@keyframes homePulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 136, .45); }
  70% { box-shadow: 0 0 0 .6rem rgba(57, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 255, 136, 0); }
}

.page-home .board__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-home .match {
  padding: .85rem clamp(1rem, 2.4vw, 1.4rem);
  border-bottom: 1px solid var(--line-soft);
  transition: background .22s var(--ease);
}
.page-home .match:last-child {
  border-bottom: 0;
}
.page-home .match:hover {
  background: rgba(57, 255, 136, .06);
}
.page-home .match__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.page-home .match__league {
  font-family: var(--font-data);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--c-ice);
}
.page-home .match__clock {
  font-family: var(--font-data);
  font-size: .76rem;
  color: var(--c-mist);
}
.page-home .match__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  margin-top: .45rem;
  font-family: var(--font-data);
  font-size: .78rem;
  color: var(--c-mist);
}
.page-home .match__stat b {
  font-size: .98rem;
  font-weight: 700;
  color: var(--c-white);
}
.page-home .match__stat--flare b {
  color: var(--c-flare);
}

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

@media (min-width: 960px) {
  .page-home .live__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    align-items: start;
  }
}

/* ============================================================
   四条数据服务线
   ============================================================ */
.page-home .services__grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(17, 43, 74, .86), rgba(10, 26, 47, .66));
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, 0 100%);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.page-home .svc::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-signal), transparent);
}
.page-home .svc--bench::after,
.page-home .svc--window::after {
  background: linear-gradient(90deg, var(--c-flare), transparent);
}
.page-home .svc__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.3;
}
.page-home .svc__text {
  margin: 0;
  font-size: .94rem;
  line-height: 1.75;
  color: var(--c-mist);
}
.page-home .svc__metric {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin-top: auto;
  padding-top: .5rem;
}
.page-home .svc__num {
  font-family: var(--font-data);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--c-white);
}
.page-home .svc__num--signal { color: var(--c-signal); }
.page-home .svc__num--flare { color: var(--c-flare); }
.page-home .svc__unit {
  font-family: var(--font-data);
  font-size: .8rem;
  color: var(--c-mist);
}
.page-home .svc__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-data);
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--c-ice);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.page-home .svc__link::after {
  content: "→";
  transition: transform .22s var(--ease);
}
.page-home .svc__link:hover,
.page-home .svc__link:focus-visible {
  color: var(--c-signal);
}
.page-home .svc__link:hover::after {
  transform: translateX(.2rem);
}
.page-home .svc__media {
  margin: 0 0 .2rem;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}
.page-home .svc__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (hover: hover) {
  .page-home .svc:hover {
    transform: translateY(-4px);
    border-color: var(--line);
  }
}

@media (min-width: 900px) {
  .page-home .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "corners corners reports"
      "bench window window";
  }
  .page-home .svc--corners { grid-area: corners; }
  .page-home .svc--reports { grid-area: reports; }
  .page-home .svc--bench   { grid-area: bench; }
  .page-home .svc--window  { grid-area: window; }
}

/* ============================================================
   赛季覆盖与积累
   ============================================================ */
.page-home .coverage {
  position: relative;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(30, 90, 58, .48), transparent 62%),
    radial-gradient(90% 80% at 0% 100%, rgba(17, 43, 74, .9), transparent 68%),
    var(--c-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.page-home .coverage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-signal), transparent);
}

.page-home .coverage__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.page-home .coverage__figure {
  margin: 0;
}

.page-home .timeline {
  list-style: none;
  position: relative;
  margin: 1.75rem 0 0;
  padding: 0;
}
.page-home .timeline::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .4rem;
  bottom: .4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--c-signal), var(--c-steel) 60%, transparent);
}
.page-home .timeline > li {
  position: relative;
  padding: 0 0 1.15rem 1.6rem;
}
.page-home .timeline > li:last-child {
  padding-bottom: 0;
}
.page-home .timeline > li::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .32rem;
  width: .55rem;
  height: .55rem;
  transform: translateX(-50%) rotate(45deg);
  background: var(--c-deep);
  border: 1px solid var(--c-signal);
}
.page-home .timeline b {
  display: block;
  font-family: var(--font-data);
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--c-signal);
}
.page-home .timeline span {
  display: block;
  margin-top: .25rem;
  font-size: .93rem;
  line-height: 1.7;
  color: var(--c-mist);
}

.page-home .coverage__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.page-home .coverage__stat {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  background: var(--c-black);
}
.page-home .coverage__stat-label {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--c-mist);
}

@media (min-width: 960px) {
  .page-home .coverage__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: start;
  }
}
@media (min-width: 720px) {
  .page-home .coverage__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ============================================================
   谁在用这些数据
   ============================================================ */
.page-home .audience__list {
  list-style: none;
  display: grid;
  gap: 1px;
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  padding: 0;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.page-home .audience__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .3rem 1rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  background: var(--c-deep);
  border-left: 2px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.page-home .audience__item:hover {
  background: var(--c-mid);
  border-left-color: var(--c-signal);
}
.page-home .audience__index {
  grid-row: 1 / span 2;
  padding-top: .25rem;
  font-family: var(--font-data);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--c-flare);
}
.page-home .audience__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-white);
}
.page-home .audience__text {
  grid-column: 2;
  margin: 0;
  font-size: .93rem;
  line-height: 1.75;
  color: var(--c-mist);
}

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

/* ============================================================
   最新观察与专题
   ============================================================ */
.page-home .insights__list {
  list-style: none;
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  padding: 0;
}
.page-home .insight {
  display: grid;
  gap: .5rem;
  padding: clamp(1rem, 2.8vw, 1.5rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
.page-home .insight:first-child {
  border-top: 1px solid var(--line-soft);
}
.page-home .insight__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.4;
}
.page-home .insight__link {
  color: var(--c-white);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.page-home .insight__link:hover,
.page-home .insight__link:focus-visible {
  color: var(--c-signal);
}
.page-home .insight__text {
  margin: .45rem 0 0;
  max-width: 46rem;
  font-size: .93rem;
  line-height: 1.75;
  color: var(--c-mist);
}
.page-home .insight__meta {
  font-family: var(--font-data);
  font-size: .74rem;
  letter-spacing: .05em;
  color: var(--c-ice);
}

@media (min-width: 720px) {
  .page-home .insight {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 1.5rem;
  }
}

/* ============================================================
   收束：从哪里开始
   ============================================================ */
.page-home .start__panel {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(57, 255, 136, .20), transparent 58%),
    radial-gradient(70% 110% at 0% 100%, rgba(255, 138, 61, .16), transparent 60%),
    linear-gradient(150deg, var(--c-mid), var(--c-deep));
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.page-home .start__panel .section-title {
  margin-top: .7rem;
}
.page-home .start__panel .lede {
  margin-top: .9rem;
}
.page-home .start__note {
  margin: 1rem 0 0;
  font-size: .88rem;
  color: var(--c-mist);
}
.page-home .start__note a {
  color: var(--c-ice);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.page-home .start__note a:hover {
  color: var(--c-signal);
}
.page-home .start__links {
  list-style: none;
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
}
.page-home .start__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line-soft);
  background: rgba(5, 11, 20, .5);
  font-size: .95rem;
  color: var(--c-white);
  text-decoration: none;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.page-home .start__link span:last-child {
  font-family: var(--font-data);
  color: var(--c-signal);
}
.page-home .start__link:hover,
.page-home .start__link:focus-visible {
  border-color: var(--c-signal);
  background: rgba(57, 255, 136, .09);
  transform: translateX(3px);
}

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

/* ============================================================
   降低动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .page-home .board__live::before {
    animation: none;
  }
  .page-home .svc,
  .page-home .audience__item,
  .page-home .start__link,
  .page-home .chapter-link {
    transition: none;
  }
  .page-home .svc:hover {
    transform: none;
  }
  .page-home .start__link:hover {
    transform: none;
  }
}
