.page-home {
  --home-gap: clamp(24px, 4vw, 56px);
  --home-edge: clamp(20px, 3vw, 40px);
  position: relative;
  padding-bottom: clamp(40px, 6vw, 80px);
}

/* ---------- 页面上下文条 ---------- */
.page-home .home-context {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: clamp(96px, 14vh, 150px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}
.page-home .home-context__idx {
  color: var(--neon);
  white-space: nowrap;
}
.page-home .home-context__rule {
  flex: 0 0 auto;
  width: clamp(24px, 6vw, 64px);
  height: 1px;
  background: var(--line);
}
.page-home .home-context__txt {
  min-width: 0;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  padding-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.page-home .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: end;
}
.page-home .hero__title {
  margin: 14px 0 0;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--white);
}
.page-home .hero__lead {
  margin-top: clamp(18px, 2.4vw, 28px);
  max-width: 46ch;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.75;
}
.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}
.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px 24px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding-top: clamp(18px, 2.5vw, 26px);
  border-top: 1px solid var(--line);
}
.page-home .hero__stat dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
}
.page-home .hero__stat dd {
  margin: 6px 0 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--white);
}

.page-home .hero__visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 300px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}
.page-home .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05) brightness(.8);
}
.page-home .hero__scan {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 200deg at 72% 28%, rgba(200, 255, 61, .26), transparent 34%, rgba(63, 169, 255, .18) 62%, transparent 86%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.page-home .hero__scan::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(234, 240, 246, .07) 0 1px, transparent 1px 5px);
}
.page-home .hero__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.page-home .hero__badge {
  position: absolute;
  left: clamp(14px, 3vw, 24px);
  bottom: clamp(18px, 3.4vw, 28px);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--neon-dim);
  background: rgba(5, 7, 10, .74);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}

/* ---------- 三处入口 ---------- */
.page-home .entries {
  padding-block: clamp(28px, 4vw, 48px);
}
.page-home .entries__head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.page-home .entries__note {
  margin: 0;
  max-width: 42ch;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.75;
}
.page-home .entries__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .entry {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 24px 22px 30px;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 70%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: border-color .32s ease, transform .32s ease, background .32s ease;
}
.page-home .entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--neon);
  transition: height .32s ease;
}
.page-home .entry:hover,
.page-home .entry:focus-visible {
  border-color: var(--neon-dim);
  transform: translateY(-6px);
}
.page-home .entry:hover::before,
.page-home .entry:focus-visible::before {
  height: 100%;
}
.page-home .entry__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--neon);
}
.page-home .entry__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.page-home .entry__desc {
  color: var(--mist);
  font-size: 15px;
  line-height: 1.7;
}
.page-home .entry__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--blue);
}
.page-home .entry__arrow {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-size: 20px;
  color: var(--neon);
  transition: transform .32s ease;
}
.page-home .entry:hover .entry__arrow,
.page-home .entry:focus-visible .entry__arrow {
  transform: translateX(6px);
}

/* ---------- 主工作区 ---------- */
.page-home .workspace {
  padding-block: clamp(32px, 5vw, 64px);
}
.page-home .workspace__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}
.page-home .workspace__main {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  min-width: 0;
}
.page-home .workspace__rail {
  order: -1;
  min-width: 0;
}

/* ---------- 资料库面板 ---------- */
.page-home .squad {
  padding: 22px 20px 24px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.page-home .squad::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--neon-soft), transparent 70%);
  pointer-events: none;
}
.page-home .squad__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon);
}
.page-home .squad__title {
  margin: 10px 0 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}
.page-home .squad__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}
.page-home .squad .league-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.page-home .squad__current {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}
.page-home .squad__current-name {
  color: var(--blue);
}
.page-home .squad__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.page-home .squad__stats > div {
  min-width: 0;
}
.page-home .squad__stat dt {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  color: var(--mist);
}
.page-home .squad__stat dd {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--white);
  white-space: nowrap;
}
.page-home .squad__trend {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.page-home .squad__trend-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}
.page-home .squad__bars {
  display: flex;
  gap: 4px;
}
.page-home .squad__bars i {
  display: block;
  flex: 1 1 0;
  height: 22px;
  border-radius: 3px;
  background: var(--line);
}
.page-home .squad__bars i.is-win,
.page-home .squad__legend em.is-win {
  background: var(--neon);
}
.page-home .squad__bars i.is-draw,
.page-home .squad__legend em.is-draw {
  background: var(--mist);
}
.page-home .squad__bars i.is-loss,
.page-home .squad__legend em.is-loss {
  background: var(--orange);
}
.page-home .squad__legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}
.page-home .squad__legend em {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-left: 8px;
}
.page-home .squad__legend em:first-child {
  margin-left: 0;
}
.page-home .squad__figure {
  margin: 18px 0 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.page-home .squad__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.8) brightness(.82);
}
.page-home .squad__note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 战报 ---------- */
.page-home .reports__head,
.page-home .columns__head {
  position: relative;
  padding-left: 16px;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.page-home .reports__head .observe-mark,
.page-home .columns__head .observe-mark,
.page-home .arena__panel > .observe-mark {
  position: absolute;
  left: 0;
  top: 8px;
  width: 3px;
  height: 26px;
  background: var(--line);
  transition: background .32s ease;
}
.page-home .reports__head p,
.page-home .columns__head p {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.75;
}
.page-home .reports__figure {
  margin: 0 0 clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .reports__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  filter: saturate(.85) brightness(.86);
}
.page-home .reports__list {
  display: grid;
  gap: 0;
}
.page-home .report {
  border-top: 1px solid var(--line);
}
.page-home .report:last-of-type {
  border-bottom: 1px solid var(--line);
}
.page-home .report__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "league state"
    "score  toggle";
  align-items: center;
  gap: 8px 14px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  transition: background .32s ease;
}
.page-home .report__head::-webkit-details-marker {
  display: none;
}
.page-home .report__head:hover {
  background: var(--neon-soft);
}
.page-home .report__league {
  grid-area: league;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--blue);
}
.page-home .report__score {
  grid-area: score;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--white);
  font-size: 22px;
}
.page-home .report__colon {
  color: var(--mist);
}
.page-home .report__state {
  grid-area: state;
  justify-self: end;
}
.page-home .report__toggle {
  grid-area: toggle;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}
.page-home .report[open] .report__toggle {
  color: var(--neon);
}
.page-home .report__body {
  display: grid;
  gap: 16px;
  padding: 4px 2px 22px;
}
.page-home .report__seg {
  display: grid;
  gap: 6px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}
.page-home .report__seg-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--neon-dim);
}
.page-home .report__seg p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--white);
  max-width: 62ch;
}
.page-home .reports__more,
.page-home .columns__more {
  margin: clamp(20px, 3vw, 28px) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 大屏赛事 ---------- */
.page-home .arena__panel {
  position: relative;
  overflow: hidden;
  margin-top: clamp(16px, 3vw, 28px);
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(160deg, var(--panel-2), var(--ink) 72%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%);
}
.page-home .arena__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: .28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.page-home .arena__head {
  position: relative;
  padding-left: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.page-home .arena__head p {
  margin: 12px 0 0;
  max-width: 54ch;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.75;
}

.page-home .ratio {
  position: relative;
  display: grid;
  gap: 14px;
}
.page-home .ratio__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.page-home .ratio__tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.page-home .ratio__tabs-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-right: 4px;
}
.page-home .ratio__tab {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist);
  cursor: pointer;
  transition: background .32s ease, color .32s ease, border-color .32s ease;
}
.page-home .ratio__tab:hover {
  border-color: var(--neon-dim);
  color: var(--white);
}
.page-home .ratio__stage {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  max-width: 100%;
}
.page-home .ratio__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: aspect-ratio .32s ease;
}
.page-home .ratio__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) brightness(.78);
}
.page-home .ratio__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 52, 65, .7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 52, 65, .7) 1px, transparent 1px);
  background-size: 25% 50%;
  pointer-events: none;
}
.page-home .ratio__hud {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 10px;
  padding: 12px;
  pointer-events: none;
}
.page-home .ratio__hud-block {
  background: rgba(5, 7, 10, .55);
  border: 1px solid rgba(200, 255, 61, .3);
  border-radius: 6px;
}
.page-home .ratio__hud-block--wide {
  border-color: rgba(63, 169, 255, .34);
}
.page-home #ratio-169:checked ~ .ratio__stage .ratio__screen {
  aspect-ratio: 16 / 9;
}
.page-home #ratio-219:checked ~ .ratio__stage .ratio__screen {
  aspect-ratio: 21 / 9;
}
.page-home #ratio-169:checked ~ .ratio__tabs label[for="ratio-169"],
.page-home #ratio-219:checked ~ .ratio__tabs label[for="ratio-219"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
}
.page-home #ratio-169:focus-visible ~ .ratio__tabs label[for="ratio-169"],
.page-home #ratio-219:focus-visible ~ .ratio__tabs label[for="ratio-219"] {
  box-shadow: 0 0 0 2px var(--neon-dim);
}

.page-home .arena__facts {
  list-style: none;
  margin: clamp(24px, 3.4vw, 36px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.page-home .arena__facts li {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.page-home .arena__fact-n {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--neon);
  letter-spacing: -.01em;
}
.page-home .arena__fact-t {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
}
.page-home .arena__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 32px);
}
.page-home .arena__foot {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 专栏 ---------- */
.page-home .columns__strip {
  list-style: none;
  margin: 0;
  padding: 4px 0 14px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.page-home .column-card {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .32s ease, transform .32s ease;
}
.page-home .column-card:hover {
  border-color: var(--blue);
  transform: translateY(-5px);
}
.page-home .column-card__topic {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}
.page-home .column-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}
.page-home .column-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ---------- 收尾 ---------- */
.page-home .launch {
  padding-block: clamp(40px, 6vw, 80px);
}
.page-home .launch__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--neon-soft), transparent 55%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
}
.page-home .launch__copy p {
  margin: 14px 0 0;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
}
.page-home .launch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
}
.page-home .launch__contact {
  display: grid;
  gap: 6px;
  align-content: start;
  padding-top: clamp(16px, 2.4vw, 24px);
  border-top: 1px solid var(--line);
}
.page-home .launch__contact-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon);
}
.page-home .launch__contact-line {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--white);
  word-break: break-word;
}
.page-home .launch__contact-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 章节高亮联动 ---------- */
.page-home [data-observe].is-current .observe-mark,
.page-home [data-observe] .observe-mark.is-current {
  background: var(--neon);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .entries__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .arena__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
  }
  .page-home .report__head {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: "league score state toggle";
    gap: 10px 24px;
  }
  .page-home .report__state {
    justify-self: center;
  }
  .page-home .hero__visual {
    min-height: 420px;
  }
}

@media (min-width: 768px) {
  .page-home .entries__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(24px, 4vw, 56px);
    align-items: end;
  }
  .page-home .entries__head .eyebrow {
    grid-column: 1 / -1;
  }
  .page-home .entries__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .entries__row > :nth-child(2) {
    transform: translateY(22px);
  }
  .page-home .entries {
    padding-bottom: clamp(56px, 7vw, 88px);
  }
}

@media (min-width: 1024px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 5vw, 72px);
  }
  .page-home .hero__visual {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
  .page-home .workspace__grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    column-gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }
  .page-home .workspace__rail {
    order: 0;
    position: sticky;
    top: calc(var(--rail-h) + 24px);
  }
  .page-home .arena__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-home .launch__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
  .page-home .launch__contact {
    padding-top: 0;
    padding-left: clamp(20px, 3vw, 36px);
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 1280px) {
  .page-home .column-card {
    flex-basis: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry,
  .page-home .entry::before,
  .page-home .entry__arrow,
  .page-home .column-card,
  .page-home .report__head,
  .page-home .ratio__screen,
  .page-home .observe-mark {
    transition: none;
  }
  .page-home .entry:hover,
  .page-home .column-card:hover {
    transform: none;
  }
}
