.page-home {
  --home-col-gap: clamp(20px, 3vw, 44px);
  --home-pad: clamp(20px, 3.4vw, 34px);
}

/* ---------- 页面上下文条 ---------- */
.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: clamp(18px, 3vw, 32px);
  padding-bottom: clamp(10px, 1.6vw, 18px);
}

.page-home .home-context-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-faint);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 420px at 74% 8%, rgba(226, 87, 30, 0.13), transparent 64%),
    linear-gradient(180deg, rgba(35, 39, 43, 0.6), rgba(20, 23, 26, 0) 60%);
  pointer-events: none;
}

.page-home .hero-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-col-gap);
  padding-bottom: clamp(34px, 5vw, 76px);
}

.page-home .hero-copy h1 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-900);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--white);
  overflow-wrap: anywhere;
}

.page-home .hero-lede {
  margin: 20px 0 0;
  max-width: 40ch;
  font-size: var(--fs-400);
  line-height: 1.75;
  color: var(--text-soft);
}

.page-home .hero-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 46ch;
}

.page-home .hero-points li {
  display: grid;
  grid-template-columns: minmax(52px, auto) minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line-faint);
  font-size: var(--fs-400);
  line-height: 1.7;
  color: var(--text-soft);
}

.page-home .hero-points li:last-child {
  border-bottom: 1px solid var(--line-faint);
}

.page-home .hp-key {
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.12em;
  color: var(--flare);
  padding-top: 3px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.page-home .hero-actions .qr-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.page-home .qr-panel {
  margin-top: 18px;
  max-width: 340px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(35, 39, 43, 0.72);
}

.page-home .qr-panel-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.1em;
  color: var(--flare);
}

.page-home .qr-figure {
  width: 118px;
  height: 118px;
  border: 1px solid var(--line-strong);
  background-color: var(--white);
  background-image:
    linear-gradient(90deg, var(--ink) 34%, transparent 34% 44%, var(--ink) 44% 56%, transparent 56% 66%, var(--ink) 66%),
    linear-gradient(180deg, var(--ink) 34%, transparent 34% 44%, var(--ink) 44% 56%, transparent 56% 66%, var(--ink) 66%);
  background-size: 22px 22px;
  opacity: 0.9;
}

.page-home .qr-panel-note {
  margin: 12px 0 0;
  font-size: var(--fs-300);
  line-height: 1.7;
  color: var(--text-soft);
}

/* 计分屏 */
.page-home .hero-board {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  background: var(--brick-dark);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero-board::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg, rgba(20, 23, 26, 0.2), rgba(20, 23, 26, 0.9) 66%);
  pointer-events: none;
}

.page-home .hero-board-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-home .scoreboard {
  position: absolute;
  z-index: 2;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  left: clamp(14px, 2.4vw, 28px);
  padding: 15px 17px 14px;
  border: 1px solid var(--line);
  background: rgba(20, 23, 26, 0.86);
  backdrop-filter: blur(6px);
}

.page-home .sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.page-home .sb-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--flare);
}

.page-home .sb-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: home-sb-pulse 1.6s ease-in-out infinite;
}

@keyframes home-sb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}

.page-home .sb-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 0 12px;
}

.page-home .sb-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-home .sb-side--away {
  text-align: right;
  align-items: flex-end;
}

.page-home .sb-team {
  font-size: var(--fs-200);
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.page-home .sb-score {
  font-family: var(--font-mono);
  font-size: clamp(34px, 5.2vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--teal);
}

.page-home .sb-divider {
  width: 1px;
  height: 42px;
  background: var(--line);
}

.page-home .sb-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid var(--line-faint);
}

.page-home .sb-stat dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.page-home .sb-stat dd {
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  color: var(--white);
}

.page-home .sb-bars {
  display: flex;
  gap: 3px;
  margin-top: 13px;
}

.page-home .sb-bar {
  height: 4px;
  flex: 1 1 0;
  background: var(--orange);
}

.page-home .sb-bar--dim {
  background: var(--brick-mid);
}

/* 城墙剪影 */
.page-home .hero-wall {
  display: block;
  width: 100%;
  height: clamp(26px, 3.6vw, 54px);
  fill: var(--brick-dark);
  opacity: 0.9;
}

/* ---------- 通用章节头部 ---------- */
.page-home .section-head {
  max-width: 62ch;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.page-home .section-head h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--white);
  overflow-wrap: anywhere;
}

.page-home .section-lede {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: var(--fs-400);
  line-height: 1.78;
  color: var(--text-soft);
}

/* ---------- 赛前前瞻 ---------- */
.page-home .home-preview {
  padding: clamp(56px, 8vw, 112px) 0;
  background: var(--brick-dark);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}

.page-home .preview-banner {
  position: relative;
  margin: 0 0 clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
}

.page-home .preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
}

.page-home .fixture-timeline {
  position: relative;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}

.page-home .fixture-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 20px;
  width: 1px;
  background: var(--line);
}

.page-home .fixture-timeline li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 26px;
  align-items: start;
}

.page-home .fixture-timeline li:last-child {
  padding-bottom: 0;
}

.page-home .ft-dot {
  justify-self: center;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border: 1px solid var(--line-strong);
  background: var(--brick-mid);
}

.page-home .fixture-timeline li.is-current .ft-dot {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(226, 87, 30, 0.2);
}

.page-home .ft-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .ft-time {
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.page-home .ft-body strong {
  font-size: var(--fs-400);
  font-weight: 700;
  color: var(--white);
}

.page-home .ft-body > span:last-child {
  font-size: var(--fs-300);
  line-height: 1.65;
  color: var(--text-soft);
}

.page-home .preview-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .preview-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.page-home .pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.09em;
  color: var(--text-dim);
}

.page-home .pc-status {
  color: var(--teal);
}

.page-home .preview-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-500);
  font-weight: 900;
  line-height: 1.3;
  color: var(--white);
}

.page-home .pc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
}

.page-home .pc-stats dt {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.page-home .pc-stats dd {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-500);
  letter-spacing: -0.01em;
  color: var(--teal);
}

.page-home .pc-link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: var(--fs-300);
  color: var(--flare);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.page-home .pc-link:hover,
.page-home .pc-link:focus-visible {
  border-bottom-color: currentColor;
}

/* ---------- 终场统计轨道 ---------- */
.page-home .home-live {
  padding: clamp(56px, 8vw, 112px) 0 clamp(44px, 6vw, 76px);
}

.page-home .home-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-top: 6px;
  padding-bottom: 22px;
  padding-left: max(20px, calc((100vw - var(--shell-max)) / 2 + var(--gutter)));
  padding-right: max(20px, calc((100vw - var(--shell-max)) / 2 + var(--gutter)));
  scrollbar-color: var(--brick-mid) transparent;
}

.page-home .home-rail:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -4px;
}

.page-home .home-rail .rail-item {
  flex: 0 0 auto;
  width: min(78vw, 306px);
  scroll-snap-align: start;
}

.page-home .live-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 232px;
  padding: 20px;
}

.page-home .lc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.09em;
  color: var(--text-dim);
}

.page-home .lc-badge {
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--teal);
}

.page-home .lc-badge--warm {
  color: var(--flare);
  border-color: rgba(255, 138, 76, 0.42);
}

.page-home .lc-score {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .lc-score span {
  color: var(--seam);
  margin: 0 4px;
}

.page-home .lc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-faint);
}

.page-home .lc-stats dt {
  font-size: 12px;
  color: var(--text-dim);
}

.page-home .lc-stats dd {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  color: var(--teal);
}

.page-home .lc-note {
  margin: 0;
  font-size: var(--fs-300);
  line-height: 1.7;
  color: var(--text-soft);
}

.page-home .live-card--weekend {
  background: linear-gradient(160deg, rgba(226, 87, 30, 0.14), rgba(35, 39, 43, 0.9) 68%);
}

.page-home .live-card--weekend h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-500);
  font-weight: 900;
  line-height: 1.3;
  color: var(--white);
}

/* ---------- 球队徽标墙 ---------- */
.page-home .home-crests {
  position: relative;
  padding: clamp(56px, 8vw, 112px) 0;
  background: var(--brick-dark);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
  overflow: hidden;
}

.page-home .home-crests::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 72% 26%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 72% 26%, #000 0%, transparent 72%);
  opacity: 0.75;
  pointer-events: none;
}

.page-home .home-crests .shell {
  position: relative;
  z-index: 1;
}

.page-home .crest-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.page-home .crest-photo {
  width: 100%;
  max-width: 320px;
  margin: 0;
  border: 1px solid var(--line);
}

.page-home .crest-intro h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--white);
}

.page-home .crest-intro p {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: var(--fs-400);
  line-height: 1.78;
  color: var(--text-soft);
}

.page-home .crest-intro .btn {
  margin-top: 24px;
}

.page-home .crest-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line);
}

.page-home .crest-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: background 0.2s ease;
}

.page-home .crest-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  background: var(--brick-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--sand);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .crest-cell:hover {
  background: var(--brick-dark);
}

.page-home .crest-cell:hover .crest-badge {
  color: var(--flare);
  border-color: var(--flare);
}

/* ---------- 周末专题 ---------- */
.page-home .home-weekend {
  padding: clamp(56px, 8vw, 112px) 0;
}

.page-home .weekend-banner {
  position: relative;
  margin: 0 0 clamp(26px, 3.6vw, 44px);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}

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

.page-home .weekend-tools {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.page-home .weekend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  background: var(--brick-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.08em;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .weekend-toggle:hover {
  border-color: var(--line-strong);
  color: var(--white);
}

.page-home .wt-track {
  position: relative;
  width: 34px;
  height: 16px;
  border: 1px solid var(--line);
  background: var(--brick-mid);
}

.page-home .wt-dot {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  background: var(--seam);
  transition: transform 0.22s ease, background 0.22s ease;
}

.page-home .weekend-input:checked ~ .weekend-tools .wt-dot {
  transform: translateX(18px);
  background: var(--orange);
}

.page-home .weekend-input:checked ~ .weekend-tools .weekend-toggle {
  border-color: var(--line-strong);
  color: var(--white);
}

.page-home .weekend-input:focus-visible ~ .weekend-tools .weekend-toggle {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

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

.page-home .weekend-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.page-home .wc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.09em;
  color: var(--text-dim);
}

.page-home .wc-status {
  color: var(--teal);
}

.page-home .wc-score {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .wc-score span {
  color: var(--seam);
  margin: 0 5px;
}

.page-home .wc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
}

.page-home .wc-stats dt {
  font-size: 12px;
  color: var(--text-dim);
}

.page-home .wc-stats dd {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-500);
  color: var(--teal);
}

.page-home .wc-note {
  margin: 0;
  font-size: var(--fs-300);
  line-height: 1.7;
  color: var(--text-soft);
}

.page-home .weekend-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(24px, 3.4vw, 40px) 0 0;
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-home .crest-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .page-home .hero-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
  }

  .page-home .hero-board {
    min-height: 480px;
  }

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

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

  .page-home .weekend-input:checked ~ .weekend-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 940px) {
  .page-home .preview-layout {
    grid-template-columns: minmax(230px, 4fr) minmax(0, 8fr);
    gap: clamp(36px, 4vw, 64px);
  }

  .page-home .crest-top {
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  }
}

@media (min-width: 1000px) {
  .page-home .crest-wall {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .page-home .preview-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 519px) {
  .page-home .hero-points li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .page-home .hp-key {
    padding-top: 0;
  }

  .page-home .sb-stats,
  .page-home .pc-stats,
  .page-home .lc-stats,
  .page-home .wc-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .page-home .crest-badge {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}

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

  .page-home .wt-dot,
  .page-home .crest-badge,
  .page-home .crest-cell,
  .page-home .weekend-toggle,
  .page-home .pc-link {
    transition: none;
  }
}
