.page-home {
  --home-gap: 14px;
  --home-edge: rgba(244, 240, 230, .16);
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero {
  padding-block: clamp(18px, 3.6vw, 40px) clamp(26px, 4vw, 52px);
}

.page-home .hero-collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .hero-cell {
  position: relative;
  border: var(--line-bold) solid var(--home-edge);
  background: var(--panel-2);
  box-shadow: var(--shadow-hard);
  padding: clamp(18px, 3vw, 32px);
  min-width: 0;
}

.page-home .hero-cell--lead {
  background:
    linear-gradient(135deg, rgba(224, 58, 58, .10), transparent 58%),
    var(--panel-2);
}

.page-home .hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--cyan);
}
.page-home .hero-kicker span:nth-child(2) {
  color: var(--steel);
}

.page-home .hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 7.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--paper);
  text-shadow: 4px 4px 0 rgba(224, 58, 58, .52);
}

.page-home .hero-lead {
  margin: 0 0 22px;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(244, 240, 230, .80);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero-cell--visual {
  padding: 0;
  overflow: hidden;
  background: var(--ink-deep);
}

.page-home .hero-cell--visual .media-frame {
  display: block;
  margin: 0;
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
  background: none;
}
.page-home .hero-cell--visual .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .hero-cell--stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-left: 5px solid var(--yellow);
}

.page-home .hero-cell--stat-a { border-left-color: var(--red); }
.page-home .hero-cell--stat-b { border-left-color: var(--yellow); }
.page-home .hero-cell--stat-c { border-left-color: var(--green); }

.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .stat-unit {
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--steel);
}

/* ---------- 通用区块头 ---------- */
.page-home .section {
  padding-block: clamp(30px, 5vw, 62px);
}

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(20px, 3.2vw, 34px);
}

.page-home .chapter-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--clay);
}
.page-home .chapter-index::before {
  content: "";
  width: 26px;
  height: 3px;
  background: currentColor;
  flex: none;
}

.page-home .section-head h2,
.page-home .roster-copy h2,
.page-home .trust-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-home .section-lead {
  margin: 0;
  max-width: 44em;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(244, 240, 230, .76);
}

/* ---------- 记录面板 ---------- */
.page-home .records-grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.page-home .records-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .filter-btn {
  flex: 0 0 auto;
}

.page-home .rail-media {
  display: block;
  margin: 0;
  border: var(--line) solid var(--home-edge);
  background: var(--ink-deep);
}
.page-home .rail-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .rail-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
  position: relative;
}
.page-home .rail-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 34px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--moss) 62%, transparent);
}

.page-home .rail-item {
  position: relative;
  padding-bottom: 18px;
}
.page-home .rail-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-sizing: border-box;
  background: var(--ink-deep);
  border: 3px solid var(--moss);
}
.page-home .rail-item:first-child::before {
  border-color: var(--cyan);
}

.page-home .rail-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--yellow);
  margin-bottom: 3px;
}

.page-home .rail-text {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 240, 230, .72);
}

.page-home .records-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--home-gap);
  align-content: start;
  min-width: 0;
}

.page-home .rec-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
  border: var(--line) solid var(--ink-deep);
  box-shadow: var(--shadow-hard-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.page-home .rec-card:hover,
.page-home .rec-card:focus-within {
  transform: translate(-2px, -4px);
  box-shadow: var(--shadow-lift);
}

.page-home .rec-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .rec-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 3px;
  color: var(--ink-deep);
}
.page-home .rec-badge--yellow { background: var(--yellow); }
.page-home .rec-badge--red { background: var(--red); color: var(--paper); }

.page-home .rec-clock {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .rec-card__fixture {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .rec-card__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--panel);
}

.page-home .rec-card__foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(11, 27, 51, .22);
}

/* ---------- 周末重点场次 ---------- */
.page-home .weekend-banner {
  display: block;
  margin: 0 0 clamp(18px, 3vw, 28px);
  border: var(--line-bold) solid var(--ink-deep);
  background: var(--ink-deep);
  box-shadow: var(--shadow-hard);
}
.page-home .weekend-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .match-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .match-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(16px, 2.6vw, 24px);
  background: var(--panel-2);
  border: var(--line-bold) solid var(--home-edge);
  box-shadow: var(--shadow-hard);
}
.page-home .match-card--a { border-top: 6px solid var(--red); }
.page-home .match-card--b { border-top: 6px solid var(--yellow); }

.page-home .match-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .match-slot {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-home .match-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 2.6vw, 24px);
  line-height: 1.32;
  color: var(--paper);
}

.page-home .pitch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  aspect-ratio: 3 / 2;
  border: 2px solid rgba(79, 195, 217, .28);
  background:
    linear-gradient(rgba(79, 195, 217, .09) 1px, transparent 1px) 0 0 / 100% 33.333%,
    linear-gradient(90deg, rgba(79, 195, 217, .09) 1px, transparent 1px) 0 0 / 33.333% 100%,
    var(--ink-deep);
}

.page-home .pitch-slot {
  border-radius: 3px;
  background: rgba(244, 240, 230, .09);
  border: 1px solid rgba(244, 240, 230, .16);
}
.page-home .pitch-slot.is-set {
  background: rgba(47, 163, 107, .34);
  border-color: var(--green);
}
.page-home .pitch-slot.is-pending {
  background: rgba(242, 194, 48, .22);
  border-color: var(--yellow);
}

.page-home .match-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-home .match-notes li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(244, 240, 230, .76);
}
.page-home .match-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 6px;
  height: 6px;
  background: var(--clay);
  border-radius: 1px;
}

.page-home .match-card .btn {
  align-self: flex-start;
}

/* ---------- 中段锚点条 ---------- */
.page-home .home-anchorbar {
  padding-block: 4px;
}

.page-home .anchor-bar {
  display: grid;
  gap: var(--home-gap);
  padding: 16px clamp(14px, 2.4vw, 22px);
  background: var(--ink-veil);
  border: var(--line-bold) solid var(--home-edge);
  box-shadow: var(--shadow-hard);
}

.page-home .anchor-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--paper);
  border: var(--line) solid var(--home-edge);
  background: rgba(244, 240, 230, .04);
  font-size: 15px;
  font-weight: 700;
  transition: background .16s var(--ease), transform .16s var(--ease);
}
.page-home .anchor-link:hover,
.page-home .anchor-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(244, 240, 230, .10);
}

.page-home .anchor-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: none;
}
.page-home .anchor-link--red .anchor-dot { background: var(--red); }
.page-home .anchor-link--green .anchor-dot { background: var(--green); }
.page-home .anchor-link--yellow .anchor-dot { background: var(--yellow); }

.page-home .anchor-sync {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--steel);
}

.page-home .anchor-sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  animation: home-sync-pulse 2s ease-out infinite;
}

@keyframes home-sync-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 163, 107, .58); }
  70%  { box-shadow: 0 0 0 10px rgba(47, 163, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 163, 107, 0); }
}

/* ---------- 阵容变动与球队库 ---------- */
.page-home .roster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3.4vw, 40px);
}

.page-home .roster-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.page-home .roster-copy p {
  margin: 0;
  max-width: 38em;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(244, 240, 230, .76);
}

.page-home .roster-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--home-gap);
  margin: 6px 0 4px;
}

.page-home .roster-stat {
  padding: 14px 16px;
  border: var(--line) solid var(--home-edge);
  border-left: 4px solid var(--cyan);
  background: rgba(244, 240, 230, .035);
}
.page-home .roster-stat dt {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
}
.page-home .roster-stat dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

.page-home .roster-copy .btn {
  align-self: flex-start;
}

.page-home .roster-media {
  display: block;
  margin: 0;
  border: var(--line-bold) solid var(--home-edge);
  background: var(--ink-deep);
  box-shadow: var(--shadow-hard);
}
.page-home .roster-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 临时查询与留存 ---------- */
.page-home .support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .support-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.6vw, 24px);
  background: var(--paper);
  color: var(--ink);
  border: var(--line) solid var(--ink-deep);
  box-shadow: var(--shadow-hard-sm);
}

.page-home .support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-deep);
  border-radius: 3px;
}
.page-home .support-icon--cyan { background: var(--cyan); }
.page-home .support-icon--yellow { background: var(--yellow); }
.page-home .support-icon--clay { background: var(--clay); color: var(--paper); }

.page-home .support-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.34;
  color: var(--ink);
}

.page-home .support-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--panel);
}

.page-home .link-more {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--clay);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  transition: color .16s var(--ease);
}
.page-home .link-more:hover,
.page-home .link-more:focus-visible {
  color: var(--ink);
}

/* ---------- 信任面板 ---------- */
.page-home .trust-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3.4vw, 40px);
  border: var(--line-bold) solid var(--ink-deep);
  background:
    linear-gradient(120deg, rgba(47, 163, 107, .12), transparent 52%),
    var(--panel);
  box-shadow: var(--shadow-hard);
}

.page-home .trust-lead {
  margin: 0;
  max-width: 46em;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(244, 240, 230, .78);
}

.page-home .trust-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--home-gap);
}

.page-home .trust-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 14px 14px;
  border-left: 3px solid var(--moss);
}

.page-home .trust-num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
}

.page-home .trust-label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

.page-home .trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 入场动效 ---------- */
.page-home [data-reveal].is-revealed {
  animation: home-rise .52s var(--ease) both;
}

@keyframes home-rise {
  from { opacity: .001; transform: translateY(16px); }
  to   { opacity: 1;    transform: none; }
}

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

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

  .page-home .anchor-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-home .hero-collage {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: auto;
  }
  .page-home .hero-cell--lead   { grid-area: 1 / 1 / 2 / 7; }
  .page-home .hero-cell--visual { grid-area: 1 / 7 / 2 / 13; }
  .page-home .hero-cell--stat-a { grid-area: 2 / 1 / 3 / 5; }
  .page-home .hero-cell--stat-b { grid-area: 2 / 5 / 3 / 9; }
  .page-home .hero-cell--stat-c { grid-area: 2 / 9 / 3 / 13; }

  .page-home .records-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .page-home .roster-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }

  .page-home .roster-media {
    justify-self: end;
    width: 100%;
  }
}

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

  .page-home .hero-cell--visual {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .anchor-sync-dot {
    animation: none;
  }
  .page-home [data-reveal].is-revealed {
    animation: none;
  }
  .page-home .rec-card,
  .page-home .anchor-link {
    transition: none;
  }
}
</final>
