.page-home {
  --home-gap: clamp(12px, 2vw, 20px);
  --home-radius: 3px;
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 56px) 0 clamp(30px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(255, 107, 26, 0.22), transparent 58%),
    radial-gradient(80% 70% at 4% 96%, rgba(200, 255, 61, 0.10), transparent 62%),
    var(--ink);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: linear-gradient(to right, rgba(30, 58, 99, 0.7) 1px, transparent 1px);
  background-size: 84px 100%;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.page-home .hero__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-home .hero__round {
  display: inline-block;
  padding: 4px 9px;
  background: var(--orange);
  color: var(--deep);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.page-home .hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.18);
  animation: home-pulse 2.6s ease-out infinite;
}

@keyframes home-pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.18); }
  35% { box-shadow: 0 0 0 9px rgba(200, 255, 61, 0.04); }
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(29px, 5.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hero__lede {
  max-width: 46ch;
  margin: clamp(14px, 2vw, 20px) 0 0;
  font-size: clamp(14.5px, 1.7vw, 17px);
  line-height: 1.78;
  color: rgba(237, 231, 216, 0.86);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(18px, 2.6vw, 26px);
}

.page-home .hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--rock);
}

.page-home .hero__facts .u-mono {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--lime);
  margin-right: 3px;
}

.page-home .hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--deep);
  box-shadow: 5px 5px 0 rgba(255, 107, 26, 0.85);
}

.page-home .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.8) contrast(1.05);
}

.page-home .hero__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.page-home .hero__path {
  fill: none;
  stroke: rgba(237, 231, 216, 0.32);
  stroke-width: 1.4;
  stroke-dasharray: 6 5;
}

.page-home .hero__node {
  fill: var(--rock);
}

.page-home .hero__node--now {
  fill: var(--lime);
}

.page-home .hero__halo {
  fill: none;
  stroke: rgba(200, 255, 61, 0.55);
  stroke-width: 1.4;
  animation: home-halo 2.6s ease-out infinite;
}

@keyframes home-halo {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.page-home .hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 26px 14px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: linear-gradient(to top, rgba(7, 17, 32, 0.94), transparent);
}

/* ---------- 主体骨架 ---------- */
.page-home .board {
  padding: clamp(28px, 4.5vw, 54px) 0 clamp(36px, 6vw, 76px);
}

.page-home .board__inner {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.page-home .board__main {
  min-width: 0;
}

.page-home .board__section {
  padding-bottom: clamp(30px, 5vw, 58px);
}

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

.page-home .section-head {
  margin: 0 0 clamp(16px, 2.6vw, 26px);
}

.page-home .section-head__kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-home .section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(21px, 3.4vw, 33px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.page-home .section-head__lede {
  max-width: 62ch;
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(237, 231, 216, 0.78);
}

/* ---------- 章节索引 ---------- */
.page-home .chapter-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.page-home .chapter-nav__title {
  display: none;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rock);
}

.page-home .chapter-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--rock);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: rgba(18, 41, 74, 0.4);
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out;
}

.page-home .chapter-link__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.page-home .chapter-link.is-active,
.page-home .chapter-link:hover {
  color: var(--paper);
  border-color: var(--orange);
  background: var(--panel);
}

.page-home .aside-card {
  display: none;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .aside-card__label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.page-home .aside-card__text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--rock);
}

.page-home .btn--sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

/* ---------- 轮次切换 ---------- */
.page-home .round-switch {
  margin-bottom: var(--home-gap);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--panel);
}

.page-home .round-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .round-switch__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.page-home .round-switch__label {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--rock);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
}

.page-home .round-switch__label:hover {
  color: var(--paper);
  border-color: var(--rock);
}

.page-home #rs-report:checked ~ .round-switch__labels [for="rs-report"],
.page-home #rs-injury:checked ~ .round-switch__labels [for="rs-injury"],
.page-home #rs-version:checked ~ .round-switch__labels [for="rs-version"] {
  color: var(--deep);
  font-weight: 700;
  background: var(--orange);
  border-color: var(--orange);
}

.page-home #rs-report:focus-visible ~ .round-switch__labels [for="rs-report"],
.page-home #rs-injury:focus-visible ~ .round-switch__labels [for="rs-injury"],
.page-home #rs-version:focus-visible ~ .round-switch__labels [for="rs-version"] {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.page-home .round-switch__panel {
  display: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(237, 231, 216, 0.88);
}

.page-home #rs-report:checked ~ .round-switch__panels .round-switch__panel--1,
.page-home #rs-injury:checked ~ .round-switch__panels .round-switch__panel--2,
.page-home #rs-version:checked ~ .round-switch__panels .round-switch__panel--3 {
  display: block;
}

/* ---------- Bento ---------- */
.page-home .bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .card {
  padding: clamp(14px, 2vw, 20px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  color: var(--paper);
}

.page-home .card--muted {
  background: rgba(18, 41, 74, 0.55);
}

.page-home .bento__cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}

.page-home .bento__cell:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 4px 4px 0 rgba(255, 107, 26, 0.9);
}

.page-home .bento__cell .card__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rock);
}

.page-home .bento__cell .card__title {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.35;
  color: var(--paper);
}

.page-home .bento__cell .card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(237, 231, 216, 0.8);
}

.page-home .bento__cell .card__foot {
  margin: auto 0 0;
  padding-top: 6px;
}

.page-home .card-hover {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--lime);
  transition: max-height 200ms ease-out, opacity 200ms ease-out, margin 200ms ease-out;
}

.page-home .bento__cell:hover .card-hover,
.page-home .bento__cell:focus-within .card-hover {
  max-height: 90px;
  margin-top: 2px;
  opacity: 1;
}

.page-home .bento__cell .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--lime);
}

.page-home .bento__cell .stat__unit {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rock);
}

.page-home .bento__cell--focus .media-frame {
  margin-bottom: 4px;
}

.page-home .link-more {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 255, 61, 0.35);
  transition: color 160ms ease-out, border-color 160ms ease-out;
}

.page-home .link-more:hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* ---------- 双版本路径 ---------- */
.page-home .paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .path-card {
  padding: clamp(16px, 2.4vw, 26px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
}

.page-home .path-card--tablet {
  box-shadow: 4px 4px 0 var(--orange);
}

.page-home .path-card--desktop {
  background: linear-gradient(160deg, rgba(200, 255, 61, 0.09), transparent 62%), var(--panel);
}

.page-home .path-card .card__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-home .path-card h3 {
  margin: 8px 0 10px;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.35;
  color: var(--paper);
}

.page-home .path-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(237, 231, 216, 0.82);
}

.page-home .path-card__list {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--rock);
}

.page-home .path-card__list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.6;
}

.page-home .path-card__list li::before {
  content: "/";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--lime);
}

/* ---------- 伤停 ---------- */
.page-home .injury {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .injury__media {
  position: relative;
  min-height: 200px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--deep);
}

.page-home .injury__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.page-home .injury__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .injury-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--home-radius);
}

.page-home .injury-item--out {
  border-left-color: var(--clay);
}

.page-home .injury-item--susp {
  border-left-color: var(--amber);
}

.page-home .injury-item--back {
  border-left-color: var(--moss);
}

.page-home .injury-item__body {
  min-width: 0;
}

.page-home .injury-item__title {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .injury-item__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
  color: var(--rock);
}

.page-home .injury__foot {
  margin: 14px 0 0;
}

/* ---------- 能力数字 ---------- */
.page-home .capability {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--deep);
}

.page-home .capability__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}

.page-home .capability__inner {
  position: relative;
  z-index: 1;
}

.page-home .capability__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-gap);
  margin-top: 4px;
}

.page-home .capability__stat {
  padding-top: 12px;
  border-top: 2px solid var(--line);
}

.page-home .capability__stat:first-child {
  border-top-color: var(--orange);
}

.page-home .capability__stat .stat__num {
  display: block;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--lime);
}

.page-home .capability__stat .stat__unit {
  margin-left: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--rock);
}

.page-home .capability__stat .stat__label {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--rock);
}

.page-home .capability__note {
  max-width: 62ch;
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(237, 231, 216, 0.8);
}

.page-home .capability__foot {
  margin: 12px 0 0;
}

/* ---------- 快速通道 ---------- */
.page-home .routes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .route-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2.2vw, 24px);
  text-decoration: none;
  color: var(--paper);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}

.page-home .route-card:hover,
.page-home .route-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 4px 4px 0 var(--orange);
}

.page-home .route-card__idx {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--deep);
  background: var(--lime);
}

.page-home .route-card__title {
  margin: 2px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.35;
}

.page-home .route-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(237, 231, 216, 0.8);
}

.page-home .route-card__go {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--orange);
}

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

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

  .page-home .bento__cell--injury,
  .page-home .bento__cell--version {
    grid-column: span 3;
  }

  .page-home .bento__cell--speed,
  .page-home .bento__cell--source {
    grid-column: span 3;
  }

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

  .page-home .routes {
    grid-template-columns: 1.25fr 1fr;
  }

  .page-home .route-card--wide {
    grid-row: span 2;
  }
}

@media (min-width: 860px) {
  .page-home .paths {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .page-home .injury {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
  }

  .page-home .injury__media {
    min-height: 100%;
  }
}

@media (min-width: 1024px) {
  .page-home .hero__inner {
    grid-template-columns: 1.02fr 0.98fr;
    min-height: 520px;
  }

  .page-home .board__inner {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(32px, 3.6vw, 48px);
    align-items: start;
  }

  .page-home .board__aside {
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }

  .page-home .chapter-nav {
    flex-direction: column;
    overflow: visible;
    gap: 0;
    padding-bottom: 0;
  }

  .page-home .chapter-nav__title {
    display: block;
  }

  .page-home .chapter-link {
    padding: 9px 0 9px 12px;
    border: 0;
    border-left: 2px solid var(--line);
    background: transparent;
    white-space: normal;
  }

  .page-home .chapter-link.is-active,
  .page-home .chapter-link:hover {
    border-left-color: var(--orange);
    background: linear-gradient(to right, rgba(255, 107, 26, 0.12), transparent 80%);
  }

  .page-home .aside-card {
    display: block;
  }

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

  .page-home .bento__cell--focus {
    grid-column: span 7;
  }

  .page-home .bento__cell--injury {
    grid-column: span 5;
  }

  .page-home .bento__cell--version {
    grid-column: span 5;
  }

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

  .page-home .bento__cell--source {
    grid-column: span 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .page-home .card-hover {
    max-height: none;
    opacity: 1;
  }
}
