/* ===== 首页 · 深夜球场控制台 ===== */
.page-home {
  display: block;
  background: var(--ink);
  color: var(--text);
  overflow-x: clip;
}

/* ---------- 01 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 84px 0 48px;
  background:
    radial-gradient(120% 80% at 92% 4%, rgba(61, 139, 255, 0.2), transparent 58%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 100%);
}

.page-home .hero__glow {
  position: absolute;
  top: -30%;
  right: -20%;
  z-index: -1;
  width: min(720px, 88vw);
  height: min(720px, 88vw);
  background: var(--grad);
  opacity: 0.16;
  filter: blur(70px);
  clip-path: polygon(54% 0, 100% 0, 100% 100%, 0 46%);
  pointer-events: none;
}

.page-home .hero__beam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16%;
  z-index: -1;
  height: 1px;
  transform: rotate(-1.2deg);
  background: linear-gradient(90deg, transparent 0%, var(--steel) 24%, rgba(77, 240, 138, 0.5) 62%, transparent 100%);
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .hero__copy {
  max-width: 640px;
}

.page-home .hero__lede {
  margin: 20px 0 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-soft);
}

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

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--steel);
}

.page-home .hero__stat dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.page-home .hero__stat dd {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 0;
  font-family: var(--font-mono);
  color: var(--text);
}

.page-home .hero__stat .data-num {
  font-size: 1.75rem;
  font-weight: 700;
  font-style: normal;
  color: var(--green);
  transform: skewX(-2deg);
}

.page-home .hero__stat em {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--text-mute);
}

.page-home .hero__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--steel);
  background: var(--board);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%);
}

.page-home .hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

/* ---------- 02 更新带 ---------- */
.page-home .feed {
  padding: 62px 0;
  border-top: 1px solid var(--steel);
  background: var(--ink);
}

.page-home .feed__head {
  display: grid;
  gap: 26px;
}

.page-home .feed__sub {
  margin: 16px 0 0;
  max-width: 46em;
  line-height: 1.85;
  color: var(--text-soft);
}

.page-home .feed__figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--steel);
}

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

.page-home .feed__list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--steel);
}

.page-home .feed__item {
  position: relative;
  padding: 0 0 4px;
}

.page-home .feed__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: 0 0 0 3px var(--ink);
}

.page-home .feed__item.is-done::before {
  background: var(--green);
}

.page-home .feed__item.is-live::before {
  background: var(--amber);
}

.page-home .feed__item summary {
  display: grid;
  gap: 4px;
  padding: 12px 0 14px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  transition: color var(--t-fast) ease;
}

.page-home .feed__item summary::-webkit-details-marker {
  display: none;
}

.page-home .feed__item summary::marker {
  content: "";
}

.page-home .feed__item summary:hover {
  color: var(--green);
}

.page-home .feed__item summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}

.page-home .feed__stamp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  transform: skewX(-2deg);
}

.page-home .feed__name {
  font-size: 1.0625rem;
  font-weight: 600;
}

.page-home .feed__state {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.page-home .feed__state::after {
  content: "  +";
  color: var(--green);
}

.page-home .feed__item details[open] .feed__state::after {
  content: "  −";
}

.page-home .feed__body {
  max-width: 60em;
  padding: 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.page-home .feed__body p {
  margin: 0;
}

/* ---------- 03 小屏入口 ---------- */
.page-home .mini {
  padding: 0 0 62px;
  background: var(--ink);
}

.page-home .mini__panel {
  position: relative;
  overflow: hidden;
  padding: 34px 22px 32px;
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(27, 36, 56, 0.94) 0%, rgba(7, 11, 22, 0.96) 78%);
}

.page-home .mini__media {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0.24;
}

.page-home .mini__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .mini__copy {
  position: relative;
  max-width: 64em;
}

.page-home .mini__lede {
  margin: 16px 0 0;
  max-width: 44em;
  line-height: 1.85;
  color: var(--text-soft);
}

.page-home .mini__points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .mini__points li {
  border-top: 1px solid var(--steel);
  padding-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.page-home .mini__k {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--white);
}

.page-home .mini__cta {
  margin-top: 26px;
}

/* ---------- 04 球队库 ---------- */
.page-home .squads {
  padding: 62px 0;
  background: var(--ink-2);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}

.page-home .squads__sub {
  margin: 16px 0 0;
  max-width: 46em;
  line-height: 1.85;
  color: var(--text-soft);
}

.page-home .squads__grid {
  display: grid;
  gap: 22px;
  margin: 34px 0 0;
}

.page-home .squad {
  padding: 6px 0 6px 18px;
  border-left: 2px solid var(--steel);
  transition: border-left-color var(--t-fast) ease;
}

.page-home .squad:hover {
  border-left-color: var(--green);
}

.page-home .squad__no {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--blue);
}

.page-home .squad__title {
  margin: 10px 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
}

.page-home .squad__range {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--green);
  transform: skewX(-2deg);
}

.page-home .squad__desc {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.page-home .squad__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.page-home .squad__link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ---------- 05 直达路径 ---------- */
.page-home .quick {
  padding: 66px 0;
  background: var(--ink);
}

.page-home .quick__inner {
  display: grid;
  gap: 38px;
}

.page-home .quick__steps {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.page-home .quick__steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}

.page-home .quick__step {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--steel);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--green);
}

.page-home .quick__steps h3 {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.page-home .quick__steps p {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.page-home .quick__cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.page-home .quick__hint {
  font-size: 0.875rem;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.page-home .quick__hint:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.page-home .quick__visual {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--steel);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 6% 100%);
}

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

/* ---------- 06 留下理由 ---------- */
.page-home .why {
  padding: 62px 0 86px;
  background: var(--ink-2);
  border-top: 1px solid var(--steel);
}

.page-home .why__grid {
  display: grid;
  gap: 30px;
  margin-top: 34px;
}

.page-home .why__no {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.page-home .why__card h3 {
  margin: 12px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
}

.page-home .why__card p {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.page-home .why__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

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

  .page-home .mini__points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .page-home .mini__panel {
    padding: 44px 34px 42px;
  }
}

@media (min-width: 720px) {
  .page-home .feed__head {
    gap: 34px;
  }

  .page-home .feed__item summary {
    grid-template-columns: 148px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0 22px;
  }

  .page-home .feed__figure {
    aspect-ratio: 1 / 1;
  }

  .page-home .squads__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 30px;
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    min-height: 55vh;
    padding: 118px 0 72px;
    display: flex;
    align-items: center;
  }

  .page-home .hero__inner {
    width: 100%;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 56px;
  }

  .page-home .hero__visual {
    aspect-ratio: 4 / 3;
  }

  .page-home .feed__head {
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: end;
    gap: 48px;
  }

  .page-home .quick__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
  }

  .page-home .quick__visual {
    aspect-ratio: 3 / 4;
  }
}

@media (min-width: 1080px) {
  .page-home .squads__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
  }

  .page-home .squad:nth-child(2) {
    margin-top: 36px;
  }

  .page-home .squad:nth-child(3) {
    margin-top: 14px;
  }

  .page-home .squad:nth-child(4) {
    margin-top: 48px;
  }

  .page-home .why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .page-home .why__card {
    padding: 0 30px;
  }

  .page-home .why__card:first-child {
    padding-left: 0;
  }

  .page-home .why__card:last-child {
    padding-right: 0;
  }

  .page-home .why__card + .why__card {
    border-left: 1px solid var(--steel);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .squad,
  .page-home .feed__item summary,
  .page-home .squad__link,
  .page-home .quick__hint {
    transition: none;
  }
}
