.page-home {
  overflow-x: clip;
  background: var(--ink);
  color: var(--chalk);
}

.page-home .breadcrumbs {
  padding-top: 18px;
  font-size: 13px;
}

/* ---------- 首屏比分台 ---------- */
.page-home .stage {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) var(--gutter) 0;
  display: grid;
  gap: 30px;
}

.page-home .stage__copy {
  min-width: 0;
}

.page-home .stage h1 {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--chalk);
}

.page-home .stage__lede {
  margin: 0 0 26px;
  max-width: 44ch;
  font-size: var(--step-0);
  line-height: 1.78;
  color: var(--mist);
}

.page-home .lg-set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.page-home .lg-set__label {
  width: 100%;
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.page-home .lg-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .lg-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--mist);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.page-home .lg-chip:hover {
  border-color: var(--line-cyan);
  color: var(--chalk);
}

.page-home .lg-radio:checked + .lg-chip {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

.page-home .lg-radio:focus-visible + .lg-chip {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

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

.page-home .stage__escape {
  font-size: 13px;
  color: var(--steel);
  text-decoration: none;
  background-image: linear-gradient(var(--steel), var(--steel));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), background-size var(--dur) var(--ease);
}

.page-home .stage__escape:hover,
.page-home .stage__escape:focus-visible {
  color: var(--mist);
  background-size: 100% 1px;
}

.page-home .stage-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--steel);
}

/* ---------- 比分流面板 ---------- */
.page-home .stage__board {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--tunnel);
  overflow: hidden;
}

.page-home .stage__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.page-home .stage__board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 80% at 82% 0%, rgba(54, 242, 208, 0.16), transparent 62%);
}

.page-home .stage__lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  z-index: 1;
  width: 100%;
  height: 46%;
  color: var(--cyan);
  opacity: 0.3;
  pointer-events: none;
}

.page-home .score-stream {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head score"
    "meta score";
  align-items: center;
  column-gap: 16px;
  row-gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 17, 14, 0.58);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.page-home .score-row:hover,
.page-home .score-row:focus-visible {
  border-color: var(--line-cyan);
  background: rgba(18, 59, 45, 0.72);
  transform: translateY(-2px);
}

.page-home .score-row__head {
  grid-area: head;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.page-home .score-row__sport {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(54, 242, 208, 0.34);
  border-radius: 5px;
  padding: 2px 6px;
}

.page-home .score-row__league {
  font-size: 14px;
  color: var(--chalk);
}

.page-home .score-row__score {
  grid-area: score;
  align-self: center;
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--chalk);
}

.page-home .score-row__colon {
  color: var(--steel);
  padding: 0 2px;
}

.page-home .score-row__score--vs {
  font-size: 16px;
  color: var(--steel);
  letter-spacing: 0.06em;
}

.page-home .score-row.is-live .score-row__score {
  color: var(--orange);
}

.page-home .score-row__meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
}

.page-home .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.22);
}

.page-home .stream-note {
  position: relative;
  z-index: 2;
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--steel);
}

/* 联赛筛选：仅在有 :has 支持时改变可见条目 */
.page-home .stage:has(#lg-foot:checked) .score-row:not(.is-foot),
.page-home .stage:has(#lg-ball:checked) .score-row:not(.is-ball),
.page-home .stage:has(#lg-tennis:checked) .score-row:not(.is-tennis),
.page-home .stage:has(#lg-esports:checked) .score-row:not(.is-esports) {
  display: none;
}

/* ---------- 概况数据带 ---------- */
.page-home .metrics {
  padding: clamp(34px, 6vw, 62px) 0 clamp(8px, 2vw, 18px);
}

.page-home .metrics__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .metric__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.15;
  color: var(--chalk);
  letter-spacing: -0.01em;
}

.page-home .metric__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--steel);
}

/* ---------- 三步动线 ---------- */
.page-home .flow,
.page-home .replay,
.page-home .push,
.page-home .help,
.page-home .cta-band {
  padding: clamp(52px, 8vw, 100px) 0;
}

.page-home .flow__grid {
  display: grid;
  gap: 34px;
}

.page-home .flow h2,
.page-home .replay h2,
.page-home .push h2,
.page-home .help h2,
.page-home .cta-band h2 {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--chalk);
}

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

.page-home .flow__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.page-home .flow__num {
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .flow__body h3 {
  margin: 0 0 8px;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
  color: var(--chalk);
}

.page-home .flow__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .flow__link {
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--cyan);
  text-decoration: none;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .flow__link:hover,
.page-home .flow__link:focus-visible {
  color: var(--mist);
  background-size: 100% 1px;
}

.page-home .flow__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--tunnel);
}

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

.page-home .flow__media figcaption {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--steel);
  border-top: 1px solid var(--line);
}

/* ---------- 回看集锦 ---------- */
.page-home .replay {
  background: var(--tunnel);
}

.page-home .replay__lede {
  margin: 0;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .replay__grid {
  display: grid;
  gap: 30px;
  margin-top: 32px;
}

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

.page-home .replay-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: transform var(--dur) var(--ease);
}

.page-home .replay-item:first-child {
  border-top: 1px solid var(--line);
}

.page-home .replay-item:hover {
  transform: translateX(3px);
}

.page-home .replay-item__tag {
  align-self: start;
  padding: 4px 8px;
  border: 1px solid rgba(54, 242, 208, 0.3);
  border-radius: 6px;
  background: rgba(54, 242, 208, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .replay-item__body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--chalk);
}

.page-home .replay-item__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--steel);
}

.page-home .replay__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
}

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

.page-home .replay__media figcaption {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--steel);
  border-top: 1px solid var(--line);
}

.page-home .replay__more {
  margin-top: 30px;
}

/* ---------- 推送窗口 ---------- */
.page-home .push {
  position: relative;
  overflow: hidden;
  background: var(--pitch);
}

.page-home .push__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.page-home .push__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
}

.page-home .push__copy p {
  margin: 0;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .push__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.page-home .push__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 14px;
}

.page-home .push__facts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}

.page-home .push__num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1;
  color: var(--amber);
}

.page-home .push__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--chalk);
}

/* ---------- 入口自查 ---------- */
.page-home .help__lede {
  margin: 0;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .help__list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.page-home .help__item {
  padding: 2px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tunnel);
  transition: border-color var(--dur) var(--ease);
}

.page-home .help__item:hover,
.page-home .help__item[open] {
  border-color: var(--line-cyan);
}

.page-home .help__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--chalk);
}

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

.page-home .help__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--cyan);
}

.page-home .help__item[open] summary::after {
  content: "−";
}

.page-home .help__panel {
  padding-bottom: 20px;
}

.page-home .help__steps {
  margin: 0 0 14px;
  padding-left: 20px;
}

.page-home .help__steps li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .help__note {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--line-cyan);
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
}

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

/* ---------- 咨询与合作 ---------- */
.page-home .cta-band {
  background: var(--pitch);
  border-top: 1px solid var(--line-cyan);
}

.page-home .cta-band__inner {
  display: grid;
  gap: 28px;
}

.page-home .cta-band p {
  margin: 0;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist);
}

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

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-home .metrics__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .page-home .stage {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .stage__board {
    align-self: stretch;
  }

  .page-home .score-row:nth-child(2n) {
    margin-inline-start: 20px;
  }

  .page-home .score-row:nth-child(3n) {
    margin-inline-end: 26px;
  }

  .page-home .flow__grid {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: start;
  }

  .page-home .push__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
  }

  .page-home .cta-band__inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .cta-band__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 880px) {
  .page-home .replay__grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 48px;
    align-items: center;
  }
}

@media (max-width: 639px) {
  .page-home .stage__lines {
    opacity: 0.18;
  }

  .page-home .score-row {
    padding: 12px 13px;
    column-gap: 12px;
  }

  .page-home .help__item {
    padding: 2px 16px;
  }

  .page-home .help__item summary {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .lg-chip,
  .page-home .score-row,
  .page-home .flow__link,
  .page-home .stage__escape,
  .page-home .replay-item,
  .page-home .help__item {
    transition: none;
  }

  .page-home .score-row:hover,
  .page-home .score-row:focus-visible,
  .page-home .replay-item:hover {
    transform: none;
  }
}
