.page-home {
  --home-gap: clamp(1.25rem, 3.5vw, 3rem);
  background: var(--navy-900);
  color: var(--white);
}

.page-home .chapter {
  position: relative;
  padding-left: clamp(1.1rem, 4vw, 3.4rem);
}

.page-home .chapter__index {
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--line);
  font-variant-numeric: tabular-nums;
}

.page-home .chapter__rail {
  position: absolute;
  left: 0;
  top: 3.2rem;
  bottom: 0.4rem;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--line-soft) 0 6px, transparent 6px 14px);
}

.page-home .media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

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

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 620px;
  padding: clamp(4.5rem, 13vh, 8.5rem) 0 clamp(2.5rem, 6vh, 4.5rem);
  border-bottom: 1px solid var(--line-faint);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 16%;
  width: 62%;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--orange));
  transform: rotate(-4deg);
  opacity: 0.75;
  z-index: 2;
}

.page-home .home-hero__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  border: 0;
  border-radius: 0;
  clip-path: none;
}

.page-home .home-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 51, 0.7) 0%, rgba(10, 22, 51, 0.88) 46%, var(--navy-900) 100%);
}

.page-home .home-hero__figure .media-frame__tag {
  z-index: 3;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 3;
  width: 100%;
}

.page-home .home-hero__copy {
  max-width: 40rem;
}

.page-home .home-hero__ctx {
  margin: 0 0 0.9rem;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.page-home .home-hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.6rem, 12vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--white);
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--orange);
  text-shadow: 0 0 42px rgba(255, 107, 26, 0.35);
}

.page-home .home-hero__lede {
  margin: 0 0 1.6rem;
  color: var(--mute);
  max-width: 34rem;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .home-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.6rem 0 0;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(18, 34, 77, 0.72);
  font-size: 13px;
  color: var(--mute);
}

.page-home .home-status__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(61, 255, 162, 0.55);
  animation: home-pulse 2.4s var(--ease) infinite;
}

@keyframes home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 255, 162, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 255, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 255, 162, 0); }
}

/* ---------- 赛事目录 ---------- */

.page-home .home-dir__inner {
  max-width: 1080px;
}

.page-home .home-dir__head {
  max-width: 40rem;
}

.page-home .dir-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 1.4rem;
}

.page-home .dir-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 1.35rem;
  background: linear-gradient(160deg, var(--navy-800), rgba(27, 44, 96, 0.72));
  border: 1px solid var(--line-faint);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.page-home .dir-card:hover,
.page-home .dir-card:focus-visible {
  border-color: var(--cyan);
  transform: translateX(-6px);
}

.page-home .dir-card__tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .dir-card__num {
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .dir-card__unit {
  font-size: 14px;
  color: var(--white);
}

.page-home .dir-card__desc {
  margin-top: 0.5rem;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mute);
}

.page-home .dir-card__go {
  margin-top: 0.9rem;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

/* ---------- 射门统计 ---------- */

.page-home .home-shot {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}

.page-home .home-shot__head {
  max-width: 46rem;
}

.page-home .shot-layout {
  display: grid;
  gap: 1.6rem;
  margin-top: 2rem;
}

.page-home .shot-figure {
  min-height: 240px;
}

.page-home .shot-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.page-home .shot-chart {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(10, 22, 51, 0.6);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  padding: 0.6rem;
}

.page-home .shot-chart__grid line {
  stroke: var(--line-faint);
  stroke-width: 1;
}

.page-home .shot-chart__line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .shot-chart__line--main {
  stroke: var(--orange);
  stroke-dasharray: 1200;
  animation: home-draw 1.6s var(--ease) both;
}

.page-home .shot-chart__line--alt {
  stroke: var(--cyan);
  stroke-dasharray: 1200;
  animation: home-draw 1.6s var(--ease) 0.25s both;
}

@keyframes home-draw {
  from { stroke-dashoffset: 1200; }
  to { stroke-dashoffset: 0; }
}

.page-home .shot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  font-size: 13px;
  color: var(--mute);
}

.page-home .shot-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.page-home .shot-legend__swatch {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.page-home .shot-legend__swatch--alt {
  background: var(--cyan);
}

.page-home .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .stat {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  background: var(--navy-900);
}

.page-home .stat__value {
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

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

.page-home .stat--neon .stat__value {
  color: var(--neon);
}

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

.page-home .shot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.page-home .shot-cta .note {
  margin: 0;
}

/* ---------- 历史交锋 ---------- */

.page-home .clash-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.page-home .clash-card {
  padding: 1.4rem 1.35rem;
  background: var(--navy-800);
  border: 1px solid var(--line-faint);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.page-home .clash-card--lead {
  padding: 0;
  background: var(--navy-700);
  overflow: hidden;
}

.page-home .clash-figure {
  margin: 0;
  border: 0;
  border-radius: 0;
  clip-path: none;
  height: 200px;
}

.page-home .clash-card--lead .clash-card__title,
.page-home .clash-card--lead .clash-rows {
  margin-left: 1.35rem;
  margin-right: 1.35rem;
}

.page-home .clash-card--lead .clash-card__title {
  margin-top: 1.2rem;
}

.page-home .clash-card--lead .clash-rows {
  margin-bottom: 1.4rem;
}

.page-home .clash-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .clash-card__text {
  margin: 0.7rem 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mute);
}

.page-home .clash-rows {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.page-home .clash-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line-faint);
}

.page-home .clash-row__side {
  font-size: 14px;
  color: var(--mute);
}

.page-home .clash-row__num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .clash-row:nth-child(2) .clash-row__num {
  color: var(--white);
}

.page-home .clash-row:nth-child(3) .clash-row__num {
  color: var(--violet);
}

.page-home .clash-cta {
  margin-top: 1.8rem;
}

/* ---------- 收藏 ---------- */

.page-home .home-shelf {
  background: linear-gradient(120deg, rgba(27, 44, 96, 0.5), rgba(10, 22, 51, 0.9) 70%);
}

.page-home .home-shelf__grid {
  display: grid;
  gap: 2rem;
}

.page-home .home-shelf__copy {
  max-width: 34rem;
}

.page-home .home-shelf__text {
  margin: 1rem 0 1.4rem;
  font-size: 16px;
  line-height: 1.78;
  color: var(--mute);
}

.page-home .shelf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .shelf-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  background: var(--navy-900);
}

.page-home .shelf-item__time {
  flex: none;
  min-width: 5.2rem;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .shelf-item__title {
  font-size: 15px;
  color: var(--white);
}

.page-home .shelf-item__mark {
  width: 10px;
  height: 10px;
  margin-left: auto;
  flex: none;
  border-radius: 2px;
  border: 1px solid var(--neon);
  background: rgba(61, 255, 162, 0.22);
}

/* ---------- 社群 ---------- */

.page-home .crew-figure {
  margin: 2rem 0 0;
  height: clamp(220px, 42vw, 420px);
}

.page-home .crew-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.8rem;
}

.page-home .crew-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--mute);
}

.page-home .crew-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

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

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

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

  .page-home .home-hero__figure::after {
    background: linear-gradient(100deg, var(--navy-900) 34%, rgba(10, 22, 51, 0.74) 62%, rgba(10, 22, 51, 0.34) 100%);
  }

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

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

@media (min-width: 960px) {
  .page-home .home-hero {
    min-height: 88vh;
  }

  .page-home .dir-grid {
    grid-template-columns: 1.15fr 0.95fr 0.78fr;
    align-items: start;
  }

  .page-home .dir-card:nth-child(2) {
    margin-top: 2.2rem;
  }

  .page-home .dir-card:nth-child(3) {
    margin-top: 4.4rem;
  }

  .page-home .shot-layout {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    gap: 2.2rem;
  }

  .page-home .shot-figure {
    min-height: 360px;
    height: 100%;
  }

  .page-home .clash-grid {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .page-home .clash-card--lead {
    grid-row: span 2;
  }

  .page-home .clash-figure {
    height: 300px;
  }

  .page-home .home-shelf__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .page-home .crew-grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
    gap: 3rem;
  }
}

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

  .page-home .shot-chart__line--main,
  .page-home .shot-chart__line--alt {
    stroke-dasharray: none;
  }
}
