/* ===== 首页专属样式 · 作用域 .page-home ===== */

.page-home {
  --home-cut: 22px;
  --home-cut-sm: 14px;
  color: var(--mist);
}

.page-home a {
  color: inherit;
}

/* ---------- 页面上下文提示 ---------- */
.page-home .page-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 20px 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--slate);
}

.page-home .page-context::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--neon);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(37, 245, 194, .9);
}

/* ---------- 框景首屏 ---------- */
.page-home .hero {
  padding-top: 14px;
}

.page-home .hero__frame {
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%,
    0 var(--home-cut)
  );
  background:
    linear-gradient(155deg, var(--cabin) 0%, var(--night) 58%, #041014 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}

.page-home .hero__frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  z-index: 3;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 1px,
    transparent 1px 44px
  );
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  filter: saturate(.55) contrast(1.08);
}

.page-home .hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 92% at 6% -6%, rgba(59, 44, 110, .62), transparent 58%),
    radial-gradient(90% 70% at 96% 100%, rgba(124, 33, 64, .34), transparent 60%),
    linear-gradient(180deg, rgba(5, 19, 24, .36) 0%, rgba(5, 19, 24, .9) 74%, var(--night) 100%);
}

.page-home .hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 6vw, 66px) clamp(20px, 4.4vw, 54px) clamp(22px, 3vw, 34px);
  max-width: 900px;
}

.page-home .hero h1 {
  margin: 16px 0 0;
  font-size: clamp(33px, 7.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -.02em;
  font-weight: 900;
  color: var(--mist);
}

.page-home .hero__lead {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(233, 245, 243, .82);
}

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

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line-faint);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 12px 18px;
  background: rgba(11, 40, 49, .74);
}

.page-home .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 5.4vw, 42px);
  font-weight: 600;
  line-height: 1;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.page-home .stat__num--heat {
  color: var(--heat);
}

.page-home .stat__label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
}

/* 开球时段分布 */
.page-home .hero__dist {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 4.4vw, 54px) clamp(28px, 4vw, 42px);
}

.page-home .hero__dist-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line-faint);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate);
}

.page-home .hero__dist-note {
  font-family: var(--font-mono);
  color: var(--heat);
}

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

.page-home .slot {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
}

.page-home .slot__t {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.page-home .slot__bar {
  height: 6px;
  background: linear-gradient(90deg, var(--neon), rgba(37, 245, 194, .18));
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.page-home .slot--heat .slot__bar {
  background: linear-gradient(90deg, var(--heat), rgba(255, 107, 44, .16));
}

.page-home .slot__bar--1 { width: 30%; }
.page-home .slot__bar--2 { width: 46%; }
.page-home .slot__bar--3 { width: 62%; }
.page-home .slot__bar--4 { width: 94%; }
.page-home .slot__bar--5 { width: 64%; }

.page-home .slot__n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.page-home .slot--heat .slot__n {
  color: var(--heat);
}

/* ---------- 今日对阵 ---------- */
.page-home .section-head {
  margin-bottom: 24px;
}

.page-home .section-head__aside {
  max-width: 34em;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .filter-bar {
  margin-bottom: 18px;
}

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

.page-home .fixture {
  border-bottom: 1px solid var(--line-faint);
}

.page-home .fixture[hidden] {
  display: none;
}

.page-home .fixture__row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 10px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s var(--ease);
}

.page-home .fixture__row:hover {
  background: rgba(18, 58, 68, .6);
}

.page-home .fixture__row:focus-visible {
  outline: 1px solid var(--neon);
  outline-offset: -2px;
}

.page-home .fixture__time {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.page-home .fixture__main {
  display: block;
  min-width: 0;
}

.page-home .fixture__league {
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--slate);
}

.page-home .fixture__teams {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mist);
  overflow-wrap: anywhere;
}

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

.page-home .fixture__sign {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--slate);
  transition: transform .18s var(--ease), color .18s var(--ease);
}

.page-home .fixture__row[aria-expanded="true"] .fixture__sign {
  transform: rotate(45deg);
  color: var(--neon);
}

.page-home .fixture .expand-panel {
  display: none;
  padding: 2px 12px 18px;
  background: rgba(11, 40, 49, .5);
}

.page-home .fixture__row[aria-expanded="true"] + .expand-panel {
  display: block;
}

.page-home .expand-panel__title {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--heat);
}

.page-home .injury-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 9px 0;
  border-top: 1px dashed var(--line-faint);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(233, 245, 243, .86);
}

.page-home .injury-line__role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}

.page-home .filter-empty {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px dashed var(--line-soft);
  font-size: 14px;
  color: var(--slate);
}

/* ---------- 伤停滚动带 ---------- */
.page-home .injury-section {
  background:
    linear-gradient(180deg, rgba(11, 40, 49, 0) 0%, rgba(11, 40, 49, .55) 40%, rgba(11, 40, 49, 0) 100%);
}

.page-home .injury-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.page-home .injury-rail {
  position: relative;
  max-height: 430px;
  overflow-y: auto;
  padding: 4px 0;
  background: var(--cabin);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(
    var(--home-cut-sm) 0,
    100% 0,
    100% calc(100% - var(--home-cut-sm)),
    calc(100% - var(--home-cut-sm)) 100%,
    0 100%,
    0 var(--home-cut-sm)
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 245, 194, .4) transparent;
}

.page-home .injury-rail:focus-visible {
  outline: 1px solid var(--neon);
  outline-offset: 2px;
}

.page-home .injury-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .injury-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-faint);
  transition: background .18s var(--ease);
}

.page-home .injury-item:hover {
  background: rgba(18, 58, 68, .62);
}

.page-home .injury-item__t {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--heat);
  font-variant-numeric: tabular-nums;
}

.page-home .injury-item__body {
  display: block;
  min-width: 0;
}

.page-home .injury-item__team {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
}

.page-home .injury-item__text {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .injury-aside {
  padding: 22px 20px 24px;
  background: linear-gradient(160deg, rgba(18, 58, 68, .9), rgba(5, 19, 24, .9));
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(
    0 0,
    calc(100% - var(--home-cut-sm)) 0,
    100% var(--home-cut-sm),
    100% 100%,
    var(--home-cut-sm) 100%,
    0 calc(100% - var(--home-cut-sm))
  );
}

.page-home .injury-aside__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--slate);
}

.page-home .injury-aside__count .data {
  color: var(--heat);
}

.page-home .injury-aside__text {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(233, 245, 243, .78);
}

.page-home .stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 14px;
  background: rgba(255, 107, 44, .12);
  border: 1px solid rgba(255, 107, 44, .45);
  color: var(--heat);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background .18s var(--ease);
}

.page-home .stamp:hover {
  background: rgba(255, 107, 44, .2);
}

.page-home .stamp__dot {
  width: 6px;
  height: 6px;
  background: var(--heat);
  border-radius: 50%;
  animation: home-pulse 1.9s var(--ease) infinite;
}

@keyframes home-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 44, .7); }
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 44, 0); }
}

.page-home .stamp-note {
  display: none;
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 2px solid var(--heat);
  background: rgba(5, 19, 24, .7);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(233, 245, 243, .78);
}

.page-home .stamp[aria-expanded="true"] + .stamp-note {
  display: block;
}

.page-home .injury-aside__media {
  margin-top: 20px;
}

.page-home .injury-aside__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  opacity: .9;
}

/* ---------- 平板与手机 ---------- */
.page-home .tablet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.page-home .tablet-figure {
  margin: 0;
}

.page-home .tablet-copy__lead {
  margin: 0 0 20px;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(233, 245, 243, .82);
}

.page-home .tablet-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 78%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 245, 194, .4) transparent;
}

.page-home .tablet-card {
  scroll-snap-align: start;
  padding: 20px 18px 22px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
}

.page-home .tablet-card__no {
  margin: 0;
  color: var(--neon);
  letter-spacing: .1em;
}

.page-home .tablet-card__title {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--mist);
}

.page-home .tablet-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--heat);
  font-variant-numeric: tabular-nums;
}

.page-home .tablet-card__note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(233, 245, 243, .76);
}

/* ---------- 对照查询路径 ---------- */
.page-home .path-figure {
  margin: 0 0 26px;
}

.page-home .path-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-faint);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.page-home .path-step {
  position: relative;
  padding: 26px 22px 30px;
  background: var(--night);
}

.page-home .path-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.page-home .path-step__no {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--neon);
}

.page-home .path-step h3 {
  margin: 14px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--mist);
}

.page-home .path-step p {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(233, 245, 243, .78);
}

.page-home .path-step a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 入口确认 ---------- */
.page-home .verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-faint);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(
    var(--home-cut-sm) 0,
    100% 0,
    100% calc(100% - var(--home-cut-sm)),
    calc(100% - var(--home-cut-sm)) 100%,
    0 100%,
    0 var(--home-cut-sm)
  );
}

.page-home .verify__main {
  padding: clamp(26px, 4.4vw, 46px) clamp(20px, 4vw, 48px);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(59, 44, 110, .6), transparent 58%),
    linear-gradient(160deg, var(--cabin), var(--night));
}

.page-home .verify__main h2 {
  margin: 14px 0 0;
  font-size: clamp(24px, 4.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 900;
  color: var(--mist);
}

.page-home .verify__lead {
  margin: 18px 0 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(233, 245, 243, .82);
}

.page-home .verify__lead a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.page-home .verify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(5, 19, 24, .72);
}

.page-home .verify-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 18px clamp(20px, 4vw, 34px);
  border-bottom: 1px solid var(--line-faint);
}

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

.page-home .verify-item__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--slate);
}

.page-home .verify-item__v {
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .verify-item__v a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-home .path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .fixture__row {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    padding: 16px 14px;
  }

  .page-home .injury-line {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .page-home .tablet-cards {
    grid-auto-columns: minmax(240px, 58%);
  }
}

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

  .page-home .tablet-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 34px;
  }

  .page-home .verify {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .page-home .injury-rail {
    max-height: 470px;
  }

  .page-home .tablet-cards {
    grid-auto-columns: minmax(230px, 48%);
  }
}

@media (max-width: 480px) {
  .page-home .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .stat {
    padding: 14px 8px 16px;
  }

  .page-home .slot {
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    gap: 8px;
  }

  .page-home .fixture__row {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 14px 6px;
  }

  .page-home .fixture__teams {
    font-size: 14px;
  }

  .page-home .injury-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .stamp__dot {
    animation: none;
  }

  .page-home .fixture__sign,
  .page-home .fixture__row,
  .page-home .injury-item,
  .page-home .stamp {
    transition: none;
  }
}
