.page-home {
  --ph-line: rgba(124, 134, 168, .32);
  --ph-line-soft: rgba(124, 134, 168, .18);
  display: block;
  background-color: var(--night);
  color: var(--white);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--night);
  border-bottom: var(--bw) solid var(--ink);
}

.page-home .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: .44;
  filter: saturate(.72) contrast(1.06);
}

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(118% 80% at 6% 2%, rgba(26, 35, 80, .62) 0%, rgba(6, 8, 15, 0) 64%),
    linear-gradient(184deg, rgba(13, 18, 48, .5) 0%, rgba(6, 8, 15, .9) 60%, var(--night) 100%);
}

.page-home .hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(52px, 9vw, 112px) clamp(42px, 6vw, 78px);
}

.page-home .hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
}

.page-home .hero__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(29px, 5.1vw, 60px);
  line-height: 1.14;
  letter-spacing: .045em;
  color: var(--white);
}

.page-home .hero__lead {
  margin: clamp(16px, 2.2vw, 24px) 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(248, 250, 255, .8);
}

.page-home .hero__figure {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 22px;
  margin-top: clamp(28px, 4.6vw, 52px);
  padding-bottom: clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--ph-line);
}

.page-home .hero__num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(68px, 15vw, 216px);
  line-height: .86;
  letter-spacing: -.03em;
  color: var(--white);
  text-shadow: 6px 6px 0 rgba(6, 8, 15, .88);
}

.page-home .hero__figure-note {
  padding-bottom: clamp(4px, 1vw, 20px);
}

.page-home .hero__unit {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: .16em;
  color: var(--net);
}

.page-home .hero__cap {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: .02em;
  color: var(--muted);
}

.page-home .hero__gates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(28px, 4.2vw, 48px);
}

.page-home .gate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 15px;
  border: var(--bw) solid var(--ink);
  border-left-width: 8px;
  background-color: rgba(26, 35, 80, .86);
  color: var(--white);
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(6, 8, 15, .9);
  transition: transform .16s var(--ease), background-color .16s var(--ease);
}

.page-home .gate--net { border-left-color: var(--net); }
.page-home .gate--foreign { border-left-color: var(--foreign); }
.page-home .gate--blue { border-left-color: var(--blue); }

.page-home .gate:hover,
.page-home .gate:focus-visible {
  transform: translate(-2px, -2px);
  background-color: var(--night-2);
}

.page-home .gate__top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .08em;
}

.page-home .gate__desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(248, 250, 255, .72);
}

.page-home .gate__go {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--blue-lift);
}

/* ---------- 正文网格 ---------- */
.page-home .home-body {
  padding-block: clamp(46px, 6.5vw, 92px) clamp(56px, 7vw, 106px);
}

.page-home .home-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 5vw, 56px);
  align-items: start;
}

/* ---------- 左栏赛季刻度 ---------- */
.page-home .ph-rail__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-home .ph-rail__range {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 10px 0 20px;
  padding-bottom: 12px;
  border-bottom: var(--bw) solid var(--ink);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
}

.page-home .ph-rail__range em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--muted);
}

.page-home .ph-rail__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--ph-line);
}

.page-home .ph-rail__item {
  position: relative;
  padding: 7px 0 7px 18px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .12s var(--ease);
}

.page-home .ph-rail__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 14px;
  width: 7px;
  height: 7px;
  background-color: var(--ph-line);
}

.page-home .ph-rail__item:hover {
  color: var(--white);
}

.page-home .ph-rail__item:hover::before {
  background-color: var(--net);
}

.page-home .ph-rail__item--mark {
  color: var(--white);
}

.page-home .ph-rail__item--mark::before {
  background-color: var(--net);
  width: 9px;
  height: 9px;
  left: -5px;
  top: 13px;
}

.page-home .ph-rail__mark {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--muted);
}

.page-home .ph-rail__figure {
  margin: 22px 0 0;
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 rgba(6, 8, 15, .9);
  background-color: var(--night-2);
}

.page-home .ph-rail__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .ph-rail__figure figcaption {
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--muted);
  border-top: 1px solid var(--ph-line);
}

/* ---------- 右栏区块 ---------- */
.page-home .ph-panels {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 84px);
  min-width: 0;
}

.page-home .ph-block__head {
  margin-bottom: clamp(20px, 2.6vw, 32px);
  padding-bottom: 14px;
  border-bottom: var(--bw) solid var(--ink);
}

.page-home .ph-block__idx {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--blue);
}

.page-home .ph-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.2;
  letter-spacing: .07em;
  color: var(--white);
}

.page-home .ph-block__lead {
  margin: 10px 0 0;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 色标带 ---------- */
.page-home .ph-flagset {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .ph-flagset__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .ph-flagbar {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 0 16px;
  padding: 14px 16px 14px 0;
  border: var(--bw) solid var(--ink);
  background-color: var(--night-2);
  overflow: hidden;
}

.page-home .ph-flagbar__strip {
  grid-row: 1 / span 2;
  display: block;
  width: 4px;
  height: 100%;
  background-color: var(--net);
  animation: ph-breathe 8s var(--ease) infinite;
}

.page-home .ph-flagbar[data-flag-section="foreign"] .ph-flagbar__strip { background-color: var(--foreign); }
.page-home .ph-flagbar[data-flag-section="corner"] .ph-flagbar__strip { background-color: var(--corner); }

.page-home .ph-flagbar__body {
  grid-column: 2;
}

.page-home .ph-flagbar__name {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .1em;
  color: var(--white);
}

.page-home .ph-flagbar__desc {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.78;
  color: rgba(248, 250, 255, .72);
}

.page-home .ph-flagbar__num {
  grid-column: 2;
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 10px 0 0;
}

.page-home .ph-flagbar__num span {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
}

.page-home .ph-flagbar__num em {
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.page-home .ph-flagset__figure {
  margin: 0;
  border: var(--bw) solid var(--ink);
  background-color: var(--night-2);
  box-shadow: 6px 6px 0 rgba(6, 8, 15, .9);
}

.page-home .ph-flagset__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-home .ph-flagset__figure figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--ph-line);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .ph-note {
  position: relative;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding: 12px 14px 12px 16px;
  border-left: var(--bw) solid var(--corner);
  background-color: rgba(224, 214, 192, .07);
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: .02em;
  color: var(--muted);
}

.page-home .ph-note__bar {
  display: none;
}

/* ---------- 控制台状态 ---------- */
.page-home .ph-block--console {
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 3vw, 34px);
  border: var(--bw) solid var(--ink);
  background-color: var(--night);
  overflow: hidden;
}

.page-home .ph-console__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
}

.page-home .ph-console__bg img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-home .ph-block--console .ph-block__head {
  border-bottom-color: rgba(124, 134, 168, .34);
}

.page-home .ph-console {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ph-line);
}

.page-home .ph-console__row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--ph-line);
}

.page-home .ph-console__lamp {
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--net);
  animation: ph-breathe 8s var(--ease) infinite;
}

.page-home .ph-console__lamp--foreign { background-color: var(--foreign); }
.page-home .ph-console__lamp--corner { background-color: var(--corner); }
.page-home .ph-console__lamp--red { background-color: var(--red); }

.page-home .ph-console__key {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--white);
}

.page-home .ph-console__val {
  grid-column: 2;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(248, 250, 255, .74);
}

.page-home .ph-console__state {
  grid-column: 2;
  justify-self: start;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid var(--ph-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--blue-lift);
}

.page-home .ph-console__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* ---------- 入口信息板 ---------- */
.page-home .ph-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .ph-bento__cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border: var(--bw) solid var(--ink);
  background-color: var(--night-2);
  color: var(--white);
  text-decoration: none;
  transition: transform .16s var(--ease), background-color .16s var(--ease);
}

.page-home .ph-bento__cell:hover,
.page-home .ph-bento__cell:focus-visible {
  transform: translate(-2px, -2px);
  background-color: #212c62;
}

.page-home .ph-bento__cell--anchor {
  background-color: var(--night);
  box-shadow: 6px 6px 0 rgba(6, 8, 15, .9);
}

.page-home .ph-bento__cell--note {
  background-color: rgba(26, 35, 80, .58);
}

.page-home .ph-bento__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: .06em;
  color: var(--white);
}

.page-home .ph-bento__cell--anchor .ph-bento__title {
  font-size: clamp(20px, 2.4vw, 27px);
}

.page-home .ph-bento__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(248, 250, 255, .74);
}

.page-home .ph-bento__cell--note .ph-bento__text {
  font-size: 12.5px;
  color: var(--muted);
}

.page-home .ph-bento__meta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--ph-line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--muted);
}

/* ---------- 动效 ---------- */
@keyframes ph-breathe {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-flagbar__strip,
  .page-home .ph-console__lamp {
    animation: none;
  }
  .page-home .gate,
  .page-home .ph-bento__cell,
  .page-home .ph-rail__item {
    transition: none;
  }
}

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

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

  .page-home .ph-console__row {
    grid-template-columns: 10px minmax(180px, 1fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 4px 16px;
  }

  .page-home .ph-console__lamp {
    grid-row: 1;
    margin-top: 0;
  }

  .page-home .ph-console__key { grid-column: 2; }

  .page-home .ph-console__val {
    grid-column: 3;
    grid-row: 1;
  }

  .page-home .ph-console__state {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }

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

  .page-home .ph-bento__cell--anchor,
  .page-home .ph-bento__cell--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1000px) {
  .page-home .home-body__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: clamp(34px, 3.6vw, 58px);
  }

  .page-home .ph-rail__sticky {
    position: sticky;
    top: calc(var(--cmd-h) + 28px);
  }

  .page-home .ph-flagset {
    grid-template-columns: minmax(0, 1fr) 232px;
  }

  .page-home .ph-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-home .ph-bento__cell--anchor {
    grid-column: span 6;
  }

  .page-home .ph-bento__cell--wide {
    grid-column: span 3;
  }

  .page-home .ph-bento__cell--note {
    grid-column: span 2;
  }
}

@media (min-width: 1360px) {
  .page-home .hero__gates {
    max-width: 1180px;
  }
}
