.page-home {
  --home-gap: 16px;
  --home-pad: 18px;
  overflow-x: clip;
}

.page-home .breadcrumb {
  margin: 16px 0 4px;
}

/* ---------- 首屏 ---------- */
.page-home .hero-section {
  padding-top: 10px;
}

.page-home .hero-stage {
  position: relative;
}

.page-home .hero-slash,
.page-home .hero-speed {
  display: none;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .hero-search {
  padding: var(--home-pad);
  background:
    linear-gradient(168deg, var(--pitch-800) 0%, var(--ink-700) 62%, var(--ink-900) 100%);
  border: 1px solid var(--edge-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

.page-home .hero-search .plate {
  margin-bottom: 6px;
}

.page-home .hero-search h1 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 7.4vw, 40px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.page-home .hero-search__lede {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
}

.page-home .seg {
  display: flex;
  gap: 4px;
  margin: 16px 0 0;
  border-bottom: 1px solid var(--edge);
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .seg::-webkit-scrollbar {
  display: none;
}

.page-home .seg__btn {
  appearance: none;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  margin-bottom: -1px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-home .seg__btn[aria-selected="true"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .seg__btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .fixtures {
  padding-top: 4px;
}

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

.page-home .fixture {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 11px 2px;
  border-bottom: 1px solid var(--edge);
}

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

.page-home .fixture__time {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

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

.page-home .fixture__name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.page-home .fixture__meta {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--mist);
}

.page-home .fixture__flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  vertical-align: 1px;
}

.page-home .fixture__flag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: home-pulse 2.4s ease-in-out infinite;
}

.page-home .fixtures__note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .hero-search__foot {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--edge);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-home .hero-channel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 330px;
  overflow: hidden;
  background: var(--ink-700);
  border: 1px solid var(--edge-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.page-home .hero-channel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(0.9) contrast(1.1);
}

.page-home .hero-channel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 15, 0.28) 0%, rgba(6, 17, 15, 0.88) 60%, var(--ink-900) 100%);
  pointer-events: none;
}

.page-home .hero-channel__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px var(--home-pad);
}

.page-home .hero-channel h2 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  color: var(--paper);
}

.page-home .hero-channel__lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
}

.page-home .channel-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  padding: 0;
}

.page-home .channel-facts li {
  padding: 5px 9px;
  font-size: 13px;
  color: var(--silver);
  border: 1px solid var(--edge-2);
  border-radius: 2px;
}

.page-home .channel-more {
  max-height: 220px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.page-home .channel-more p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}

.page-home .hero-channel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* ---------- 联赛覆盖带 ---------- */
.page-home .league-band {
  padding-top: 8px;
}

.page-home .league-band .section__head {
  align-items: flex-end;
  gap: 10px;
}

.page-home .league-band h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.2;
  color: var(--paper);
}

.page-home .league-band__link {
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 230, 210, 0.4);
  padding-bottom: 2px;
  white-space: nowrap;
}

.page-home .league-band__note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .league-track {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0 0 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .league-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
  background: var(--ink-700);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.page-home .league-chip--on {
  background: var(--pitch-800);
  border-color: var(--edge-2);
}

.page-home .league-chip--on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--orange);
}

.page-home .league-chip__abbr {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
  text-transform: uppercase;
}

.page-home .league-chip__name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--paper);
}

.page-home .league-chip__meta {
  font-size: 13px;
  color: var(--mist);
}

/* ---------- V3 通道速览 ---------- */
.page-home .v3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .v3-media {
  margin: 0;
}

.page-home .v3-media figcaption,
.page-home .team-media figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .v3-copy h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 5.4vw, 32px);
  line-height: 1.2;
  color: var(--paper);
}

.page-home .v3-copy p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
}

.page-home .v3-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0;
  padding: 0;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .v3-stats > div {
  padding: 12px 10px;
  background: var(--ink-700);
}

.page-home .v3-stats dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .v3-stats dd {
  margin: 5px 0 0;
  font-size: 17px;
  line-height: 1.3;
  color: var(--cyan);
}

.page-home .v3-copy__tail {
  font-size: 14px;
  color: var(--mist);
}

/* ---------- 球队资料 ---------- */
.page-home .team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.page-home .team-cards h2 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 5.4vw, 32px);
  line-height: 1.2;
  color: var(--paper);
}

.page-home .team-cards__lede {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
}

.page-home .team-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-home .team-card {
  padding: 16px 15px 18px;
  background: var(--ink-700);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
}

.page-home .team-card h3 {
  margin: 10px 0 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--paper);
}

.page-home .team-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .team-cards__tail {
  margin: 14px 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
}

.page-home .team-cards__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}

.page-home .team-cards__links a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 230, 210, 0.35);
  padding-bottom: 2px;
  align-self: flex-start;
}

.page-home .team-media {
  margin: 0;
}

/* ---------- 约球清单 ---------- */
.page-home .pitch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .pitch-media {
  margin: 0;
}

.page-home .pitch-copy h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 5.4vw, 32px);
  line-height: 1.2;
  color: var(--paper);
}

.page-home .pitch-copy > p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
}

.page-home .pitch-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
}

.page-home .pitch-steps li {
  position: relative;
  counter-increment: step;
  padding-left: 34px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
}

.page-home .pitch-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
}

/* ---------- 数据带 ---------- */
.page-home .numbers-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(20px, 4.8vw, 26px);
  line-height: 1.25;
  color: var(--paper);
}

.page-home .numbers {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .numbers li {
  padding: 16px 14px;
  background: var(--ink-700);
}

.page-home .numbers b {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  color: var(--paper);
  letter-spacing: 0.01em;
}

.page-home .numbers span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mist);
}

.page-home .numbers-foot {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .numbers-foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 230, 210, 0.35);
}

/* ---------- 收束 ---------- */
.page-home .closing {
  padding: 48px 0 60px;
}

.page-home .closing__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--edge);
}

.page-home .closing__line {
  margin: 0;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(19px, 4.6vw, 24px);
  line-height: 1.4;
  color: var(--paper);
}

.page-home .closing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.page-home .closing__link {
  font-size: 13px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--edge-2);
  padding-bottom: 2px;
}

.page-home .closing__link:hover {
  color: var(--cyan);
}

@keyframes home-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- 中等屏 ---------- */
@media (min-width: 560px) {
  .page-home {
    --home-gap: 20px;
    --home-pad: 22px;
  }

  .page-home .league-track {
    grid-auto-flow: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .team-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .team-card:nth-child(2) {
    margin-top: 18px;
  }

  .page-home .team-card:nth-child(3) {
    grid-column: span 2;
  }

  .page-home .team-cards__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }

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

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-home {
    --home-gap: 26px;
    --home-pad: 26px;
  }

  .page-home .hero-section {
    padding-top: 18px;
  }

  .page-home .hero-stage {
    padding-block: 10px 6px;
  }

  .page-home .hero-slash {
    display: block;
    position: absolute;
    inset: -8% -12% 6% -8%;
    z-index: 0;
    background:
      radial-gradient(62% 78% at 28% 18%, rgba(18, 49, 41, 0.95), transparent 72%),
      linear-gradient(112deg, rgba(12, 33, 29, 0.9), transparent 64%);
    clip-path: polygon(0 6%, 64% 0, 100% 88%, 6% 100%);
    pointer-events: none;
  }

  .page-home .hero-speed {
    display: block;
    position: absolute;
    left: 53%;
    top: 9%;
    z-index: 2;
    transform: rotate(-6deg);
    pointer-events: none;
  }

  .page-home .hero-grid {
    grid-template-columns: 6fr 4fr;
    align-items: start;
    gap: 22px;
  }

  .page-home .hero-channel {
    margin-top: 46px;
    min-height: 420px;
  }

  .page-home .channel-more {
    max-height: 0;
    opacity: 0;
  }

  .page-home .hero-channel:hover .channel-more,
  .page-home .hero-channel:focus-within .channel-more {
    max-height: 220px;
    opacity: 1;
  }

  .page-home .league-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .page-home .v3-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: var(--home-gap);
  }

  .page-home .team-grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: var(--home-gap);
  }

  .page-home .pitch-grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: var(--home-gap);
  }

  .page-home .numbers {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-home .closing {
    padding: 64px 0 78px;
  }

  .page-home .closing__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

@media (min-width: 1180px) {
  .page-home .hero-grid {
    gap: 30px;
  }

  .page-home .hero-channel {
    margin-top: 58px;
  }
}

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

  .page-home .channel-more,
  .page-home .seg__btn {
    transition: none;
  }
}
