.page-home {
  --home-gap: clamp(18px, 2.6vw, 36px);
  --home-pad: clamp(56px, 8vw, 104px);
  color: var(--text);
  font-family: var(--font-body);
  background: var(--ink);
}

.page-home .bv-section {
  padding-block: var(--home-pad);
}

.page-home h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--text);
}

.page-home h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--text);
}

.page-home p {
  margin: 0;
  line-height: 1.8;
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(22px, 4vw, 44px) clamp(44px, 6vw, 80px);
  border-bottom: 1px solid var(--edge);
  background:
    radial-gradient(120% 92% at 88% 0%, rgba(95, 242, 214, .14), transparent 58%),
    radial-gradient(90% 70% at 0% 100%, rgba(255, 200, 87, .08), transparent 62%),
    linear-gradient(180deg, var(--panel), var(--ink) 64%);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(23, 70, 60, .45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 70, 60, .45) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 18%, #000 24%, transparent 82%);
  mask-image: radial-gradient(72% 62% at 50% 18%, #000 24%, transparent 82%);
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  align-items: start;
}

.page-home .hero h1 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 7.2vw, 84px);
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--text);
}

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

.page-home .hero__lede {
  max-width: 46ch;
  margin-top: 20px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--muted);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
}

.page-home .hero__stats > div {
  padding: 14px 14px 16px;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: rgba(11, 43, 36, .72);
}

.page-home .hero__stats dt {
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}

.page-home .hero__stats dd {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--amber);
}

/* 首屏视觉区 */

.page-home .hero__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 340px;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 24px 60px -32px var(--shadow);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  filter: saturate(.85) contrast(1.06);
}

.page-home .board {
  position: relative;
  z-index: 1;
  padding: clamp(14px, 2.4vw, 20px);
  border: 1px solid rgba(95, 242, 214, .34);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(5, 30, 25, .94), rgba(5, 30, 25, .76));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.page-home .board__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--edge);
}

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

.page-home .board__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}

.page-home .board__team {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .08em;
}

.page-home .board__score {
  font-family: var(--font-mono);
  font-size: clamp(38px, 8vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--amber);
  text-shadow: 0 0 22px rgba(255, 200, 87, .32);
  animation: home-score-breathe 4.6s ease-in-out infinite;
}

.page-home .board__foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--edge);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

@keyframes home-score-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .84; }
}

.page-home .statusbar {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .statusbar__item {
  padding: 9px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: rgba(11, 43, 36, .92);
  transition: border-color .16s ease, background .16s ease;
}

.page-home .statusbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--text);
  outline: none;
}

.page-home .statusbar__note {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  transition: max-height .18s ease, opacity .18s ease, margin-top .18s ease;
}

.page-home .statusbar__item:hover,
.page-home .statusbar__item:focus-within {
  border-color: rgba(95, 242, 214, .55);
  background: rgba(23, 70, 60, .88);
}

.page-home .statusbar__item:hover .statusbar__note,
.page-home .statusbar__item:focus-within .statusbar__note,
.page-home .statusbar__pill:focus-visible + .statusbar__note {
  max-height: 90px;
  margin-top: 6px;
  opacity: 1;
}

.page-home .statusbar__pill:focus-visible {
  color: var(--cyan);
}

/* ---------- 当季资料库 ---------- */

.page-home .season {
  background: var(--ink);
}

.page-home .season__head {
  max-width: 740px;
}

.page-home .season__lede {
  margin-top: 16px;
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--muted);
}

.page-home .season__body {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .season__col {
  display: grid;
  gap: 16px;
}

.page-home .season__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .season__list {
  display: grid;
  gap: 12px;
}

.page-home .match {
  padding: 16px 18px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: var(--panel);
  transition: transform .18s ease, border-color .18s ease;
}

.page-home .match:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 242, 214, .5);
}

.page-home .match__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--edge);
}

.page-home .match__day {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--cyan);
}

.page-home .match__meta {
  font-size: 13px;
  color: var(--muted);
}

.page-home .match__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.page-home .match__row + .match__row {
  border-top: 1px dashed rgba(23, 70, 60, .85);
}

.page-home .match__team {
  font-size: 14.5px;
  color: var(--text);
}

.page-home .match__score {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.page-home .match__flag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.page-home .season__more {
  justify-self: start;
}

.page-home .season__figure {
  margin: 0;
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
}

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

.page-home .season__figure figcaption {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--edge);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 排查快捷台 ---------- */

.page-home .checkup {
  background: linear-gradient(180deg, var(--ink), var(--shadow));
}

.page-home .checkup__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

.page-home .checkup__lead {
  margin-top: 16px;
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--muted);
}

.page-home .checkup__figure {
  margin: 24px 0 24px;
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
}

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

.page-home .checkup__figure figcaption {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--edge);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .checkup__panels {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .checkup__item {
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .16s ease;
}

.page-home .checkup__item:hover,
.page-home .checkup__item:focus-within {
  border-color: rgba(95, 242, 214, .45);
}

.page-home .checkup__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.page-home .checkup__num {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid rgba(95, 242, 214, .42);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.page-home .checkup__text {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.page-home .checkup__chev {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.page-home .checkup__btn[aria-expanded="true"] .checkup__chev {
  transform: rotate(-135deg);
}

.page-home .checkup__panel {
  padding: 0 18px 18px;
}

.page-home .checkup__panel p {
  font-size: 14px;
  color: var(--muted);
}

.page-home .checkup__panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.page-home .checkup__panel li::marker {
  color: var(--coral);
}

/* ---------- 球队库对照 ---------- */

.page-home .teamlib {
  background: var(--ink);
}

.page-home .teamlib__head {
  max-width: 760px;
}

.page-home .teamlib__lede {
  margin-top: 16px;
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--muted);
}

.page-home .teamlib__grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .teamlib__card {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--panel);
  transition: transform .2s ease, border-color .2s ease;
}

.page-home .teamlib__card::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--cyan), transparent 78%);
}

.page-home .teamlib__card:hover {
  border-color: rgba(95, 242, 214, .45);
  transform: translateY(-3px);
}

.page-home .teamlib__kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-home .teamlib__card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .teamlib__card h3 {
  margin-bottom: 8px;
}

.page-home .teamlib__meta {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px dashed var(--edge);
  font-size: 12.5px !important;
  color: var(--amber) !important;
}

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

/* ---------- 历史时间轴 ---------- */

.page-home .lineage {
  background: linear-gradient(180deg, var(--shadow), var(--ink) 72%);
}

.page-home .lineage__grid {
  display: grid;
  gap: clamp(26px, 4vw, 56px);
}

.page-home .lineage__rail h2 {
  margin-top: 12px;
}

.page-home .lineage__list {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 28px 0 0;
  padding: 0 0 0 24px;
  list-style: none;
}

.page-home .lineage__list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--edge) 72%, transparent);
}

.page-home .lineage__node {
  position: relative;
}

.page-home .lineage__node::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--edge);
}

.page-home .lineage__node.is-current::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(95, 242, 214, .18);
}

.page-home .lineage__season {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--amber);
}

.page-home .lineage__node.is-current .lineage__season {
  color: var(--cyan);
}

.page-home .lineage__label {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .lineage__panels {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .filtercard,
.page-home .lineage__note {
  padding: 22px 20px;
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.page-home .filtercard h3 {
  margin-bottom: 14px;
}

.page-home .filtercard__rows {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.page-home .filtercard__rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(5, 30, 25, .72);
  font-size: 13.5px;
  color: var(--text);
}

.page-home .filtercard__rows li span:last-child {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--amber);
  white-space: nowrap;
}

.page-home .filtercard p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .lineage__note {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.page-home .lineage__note p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .lineage__note--alt {
  border-left: 3px solid var(--coral);
}

/* ---------- 版本与服务 ---------- */

.page-home .release {
  background: var(--ink);
  border-top: 1px solid var(--edge);
}

.page-home .release__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

.page-home .release__list {
  display: grid;
  gap: 16px;
  margin: clamp(24px, 3.4vw, 34px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .release__item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--edge);
}

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

.page-home .release__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--cyan);
}

.page-home .release__item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .release__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .release__card {
  position: relative;
  align-self: start;
  padding: 24px 20px;
  border: 1px solid rgba(255, 200, 87, .32);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 200, 87, .12), transparent 60%),
    var(--panel);
}

.page-home .release__info {
  display: grid;
  gap: 1px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.page-home .release__info li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(5, 30, 25, .74);
  font-size: 13px;
  color: var(--muted);
}

.page-home .release__info li span:last-child {
  font-family: var(--font-mono);
  color: var(--text);
}

.page-home .release__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-home .release__copy {
  padding: 9px 16px;
  border: 1px solid rgba(95, 242, 214, .45);
  border-radius: var(--pill);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.page-home .release__copy:hover,
.page-home .release__copy:focus-visible {
  background: rgba(95, 242, 214, .14);
  outline: none;
}

.page-home .release__copy[data-copied] {
  border-color: var(--ok);
  color: var(--ok);
}

.page-home .release__hint {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .release__hint a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 720px) {
  .page-home .teamlib__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .teamlib__card--raised {
    transform: translateY(-14px);
  }

  .page-home .teamlib__card--raised:hover {
    transform: translateY(-17px);
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
  }

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

  .page-home .season__body {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    align-items: start;
  }

  .page-home .season__figure {
    position: sticky;
    top: 96px;
  }
}

@media (min-width: 980px) {
  .page-home .checkup__grid {
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    align-items: start;
  }

  .page-home .lineage__grid {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: start;
  }

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

  .page-home .filtercard {
    grid-column: 1 / -1;
  }

  .page-home .release__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: start;
  }
}

@media (max-width: 460px) {
  .page-home .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .hero__stats > div:last-child {
    grid-column: 1 / -1;
  }

  .page-home .board__score {
    font-size: 40px;
  }
}

@media (hover: none) {
  .page-home .statusbar__note {
    max-height: 120px;
    margin-top: 6px;
    opacity: 1;
  }
}

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

  .page-home .match:hover,
  .page-home .teamlib__card:hover,
  .page-home .teamlib__card--raised:hover {
    transform: none;
  }
}
