/* ============ 首页 page-home ============ */

.page-home {
  --home-gap: clamp(52px, 7.5vw, 112px);
  --home-line: rgba(242, 245, 244, 0.14);
  --home-line-soft: rgba(242, 245, 244, 0.07);
  overflow-x: hidden;
}

/* ---------- 通用区块 ---------- */
.page-home .home-block {
  position: relative;
  padding-block: var(--home-gap);
}

.page-home .home-block::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--home-line) 12%, var(--home-line) 88%, transparent);
}

.page-home .home-head {
  display: grid;
  gap: 14px;
  padding-bottom: clamp(18px, 2.4vw, 28px);
  margin-bottom: clamp(24px, 3.4vw, 44px);
  border-bottom: 1px solid var(--home-line-soft);
}

.page-home .home-head__main {
  display: grid;
  gap: 8px;
}

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

.page-home .home-head .title {
  margin: 0;
}

/* ============ 1. 框景首屏 ============ */
.page-home .home-hero {
  padding-block: clamp(14px, 3vw, 34px) clamp(20px, 3vw, 44px);
}

.page-home .hero-frame {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 4.4vw, 64px) clamp(20px, 3.4vw, 56px) clamp(22px, 3vw, 42px);
  border: 1px solid var(--home-line);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(99, 210, 196, 0.07), transparent 62%),
    linear-gradient(180deg, #0d231d 0%, #0B1F1A 62%, #0a1a16 100%);
  overflow: hidden;
}

.page-home .hero-frame::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--home-line) 0 1px,
    transparent 1px 26px
  );
  opacity: .8;
  pointer-events: none;
}

.page-home .hero-frame__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--yellow);
  pointer-events: none;
  z-index: 3;
}

.page-home .hero-frame__corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.page-home .hero-frame__corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.page-home .hero-frame__corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.page-home .hero-frame__corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.page-home .hero-frame__grid {
  position: relative;
  display: grid;
  gap: clamp(24px, 3.6vw, 46px);
  align-items: center;
}

.page-home .hero-lead {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.page-home .hero-lead .eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-home .hero-lead .display {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(38px, 8.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .hero-lead__lede {
  margin: 0 0 28px;
  max-width: 46ch;
  color: rgba(242, 245, 244, .82);
}

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

.page-home .hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(.55) contrast(1.05);
  opacity: .72;
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 26, .1), rgba(11, 31, 26, .68)),
    repeating-linear-gradient(0deg, rgba(242, 245, 244, .05) 0 1px, transparent 1px 42px);
  pointer-events: none;
}

.page-home .hero-visual__stamp {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  margin: 0;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--yellow);
}

.page-home .hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(26px, 3.4vw, 44px) 0 0;
  background: var(--home-line-soft);
  border-top: 1px solid var(--home-line-soft);
}

.page-home .hero-facts__item {
  background: rgba(28, 43, 39, .5);
  padding: 14px 16px 16px;
}

.page-home .hero-facts dt {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

.page-home .hero-facts dd {
  margin: 0;
  font-size: 15px;
  color: var(--paper);
}

/* ============ 2. 赛季条带 ============ */
.page-home .season-scale {
  position: relative;
}

.page-home .season-scale__rail {
  margin-top: 14px;
  height: 12px;
  border-top: 1px solid var(--home-line);
  background-image: repeating-linear-gradient(
    90deg,
    var(--home-line) 0 1px,
    transparent 1px 40px
  );
  background-size: auto 7px;
  background-repeat: repeat-x;
}

.page-home .season-rail {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .season-rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .season-rail::-webkit-scrollbar-thumb {
  background: var(--home-line);
}

.page-home .season-item {
  flex: 0 0 min(74vw, 218px);
  scroll-snap-align: start;
}

.page-home .season-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 16px 15px 18px;
  text-align: left;
  font: inherit;
  color: var(--paper);
  background: var(--panel);
  border: 1px solid var(--home-line-soft);
  border-left: 3px solid rgba(242, 245, 244, .22);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.page-home .season-card:hover,
.page-home .season-card:focus-visible {
  transform: translateY(-3px);
  border-left-color: var(--yellow);
  background: #22332e;
  outline: none;
}

.page-home .season-card[data-active="true"],
.page-home .season-card--live {
  border-left-color: var(--yellow);
  background: linear-gradient(180deg, rgba(245, 208, 0, .09), rgba(28, 43, 39, .9));
}

.page-home .season-card__year {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--yellow);
}

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

.page-home .season-card__nums b {
  font-size: 15px;
  font-weight: 700;
  color: rgba(242, 245, 244, .92);
  margin-right: 4px;
}

.page-home .season-card .tag {
  justify-self: start;
}

/* ============ 3. 数据摘要 ============ */
.page-home .digest-grid {
  display: grid;
  gap: clamp(26px, 3.6vw, 48px);
  align-items: start;
}

.page-home .digest-main {
  min-width: 0;
}

.page-home .home-head--stack {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.page-home .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--home-line-soft);
  border: 1px solid var(--home-line-soft);
}

.page-home .stat {
  background: var(--panel);
  padding: 20px 16px 22px;
  min-width: 0;
}

.page-home .stat__value {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .stat__unit {
  font-size: .48em;
  font-weight: 500;
  margin-left: 4px;
  color: var(--muted);
  letter-spacing: 0;
}

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

.page-home .stat--signal {
  background: #16241f;
  box-shadow: inset 3px 0 0 var(--yellow);
}

.page-home .stat--signal .stat__value {
  color: var(--yellow);
}

.page-home .stat--cool {
  background: #16241f;
  box-shadow: inset 3px 0 0 var(--teal);
}

.page-home .stat--cool .stat__value {
  color: var(--teal);
}

.page-home .digest-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--glass);
  border: 1px solid var(--home-line-soft);
  border-left: 3px solid var(--teal);
  backdrop-filter: blur(6px);
}

.page-home .digest-note .tag {
  flex: none;
}

.page-home .digest-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(242, 245, 244, .8);
}

.page-home .digest-stamp {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--yellow);
}

.page-home .digest-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--home-line-soft);
  overflow: hidden;
}

.page-home .digest-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.6);
}

.page-home .digest-figure figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 34px 16px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 245, 244, .88);
  background: linear-gradient(180deg, transparent, rgba(11, 31, 26, .92) 62%);
}

/* ============ 4. 高频查询 ============ */
.page-home .query-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--home-line-soft);
  border: 1px solid var(--home-line-soft);
}

.page-home .query-card {
  display: grid;
  gap: 10px;
  padding: 22px 18px 24px;
  background: var(--ink);
  transition: background-color .18s var(--ease);
}

.page-home .query-card:hover {
  background: #13221d;
}

.page-home .query-card__num {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--yellow);
}

.page-home .query-card__title {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .query-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .query-card .link-arrow {
  justify-self: start;
  margin-top: 2px;
}

/* ============ 5. 最近校订 ============ */
.page-home .ledger-grid {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
}

.page-home .revision-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--home-line-soft);
  border: 1px solid var(--home-line-soft);
}

.page-home .revision {
  display: grid;
  gap: 9px;
  padding: 22px 18px 24px;
  background: var(--panel);
}

.page-home .revision__meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.page-home .revision__title {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .revision__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .revision .tag {
  justify-self: start;
}

.page-home .ledger-figure {
  margin: 0;
  border: 1px solid var(--home-line-soft);
  overflow: hidden;
}

.page-home .ledger-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.62) contrast(1.04);
}

/* ============ 6. 看台与季票 ============ */
.page-home .stands-grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
}

.page-home .stands-figure {
  margin: 0;
  border: 1px solid var(--home-line-soft);
  overflow: hidden;
}

.page-home .stands-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.7);
}

.page-home .stands-text {
  min-width: 0;
}

.page-home .stands-text .eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
}

.page-home .stands-text .title {
  margin: 0 0 16px;
}

.page-home .stands-text p {
  color: rgba(242, 245, 244, .8);
  font-size: 15px;
  line-height: 1.8;
}

.page-home .stands-plates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin: 22px 0 24px;
}

.page-home .stands-plates .plate {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  margin: 0;
  background: var(--glass);
  border-left: 3px solid var(--yellow);
  backdrop-filter: blur(5px);
}

.page-home .stands-plates .plate__k {
  margin: 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.page-home .stands-plates .plate__v {
  margin: 0;
  font-size: 15px;
  color: var(--paper);
}

/* ============ 7. 页尾引导 ============ */
.page-home .home-tail {
  padding-block: clamp(40px, 5vw, 76px);
  background: var(--ink-deep);
  border-top: 1px solid var(--home-line-soft);
}

.page-home .tail-bar {
  display: grid;
  gap: 22px;
}

.page-home .tail-bar__text {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .tail-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

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

@media (min-width: 900px) {
  .page-home .home-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 32ch);
    align-items: end;
    column-gap: clamp(24px, 4vw, 64px);
  }

  .page-home .home-head__main {
    grid-column: 1;
  }

  .page-home .home-head__note {
    grid-column: 2;
    align-self: end;
    padding-bottom: 2px;
  }

  .page-home .hero-frame {
    min-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-home .hero-frame__grid {
    grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
    align-items: center;
  }

  .page-home .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .page-home .hero-facts {
    margin-top: clamp(30px, 3.4vw, 48px);
  }

  .page-home .digest-grid {
    grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr);
  }

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

  .page-home .query-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .ledger-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
  }

  .page-home .ledger-figure {
    display: flex;
    align-items: flex-end;
  }

  .page-home .ledger-figure img {
    aspect-ratio: 3 / 4;
  }

  .page-home .stands-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5.4fr);
    column-gap: clamp(32px, 4.4vw, 72px);
  }

  .page-home .tail-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(24px, 4vw, 56px);
  }
}

@media (min-width: 1180px) {
  .page-home .season-item {
    flex-basis: 216px;
  }

  .page-home .ledger-grid {
    grid-template-columns: minmax(0, 6.6fr) minmax(0, 5.4fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .season-card,
  .page-home .query-card {
    transition: none;
  }

  .page-home .season-card:hover,
  .page-home .season-card:focus-visible {
    transform: none;
  }
}
