.page-home {
  --home-band: clamp(44px, 6vw, 88px);
  --home-diag: #0B2A22;
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(20px, 3vw, 32px) clamp(40px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -14%;
  right: -20%;
  width: min(84%, 920px);
  height: 132%;
  background: var(--home-diag);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(to right, rgba(43, 76, 65, 0.55) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(43, 76, 65, 0.55) 0 1px, transparent 1px 64px);
  opacity: 0.55;
  pointer-events: none;
}

.page-home .hero-grid::after {
  content: "";
  position: absolute;
  top: -10%;
  right: 8%;
  width: 2px;
  height: 122%;
  background: var(--cyan);
  opacity: 0.45;
  transform: rotate(14deg);
}

.page-home .hero-shell {
  position: relative;
}

.page-home .breadcrumb {
  margin-bottom: clamp(16px, 3vw, 28px);
}

.page-home .breadcrumb-list {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .hero-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
}

.page-home .home-title {
  margin: 0.18em 0 0.42em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .title-hl {
  color: var(--cyan);
  box-shadow: inset 0 -0.18em 0 rgba(37, 244, 208, 0.22);
}

.page-home .hero-lede {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
  color: var(--paper);
  opacity: 0.88;
}

.page-home .hero-stats {
  list-style: none;
  margin: clamp(22px, 4vw, 34px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .hero-stat {
  padding: 14px 10px 13px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 140ms ease;
}

.page-home .hero-stat:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.page-home .hero-stat:nth-child(even) {
  padding-left: 12px;
}

.page-home .hero-stat:hover {
  background-color: rgba(37, 244, 208, 0.07);
}

.page-home .hero-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  line-height: 1.1;
  color: var(--cyan);
  transition: color 140ms ease;
}

.page-home .hero-stat:hover .hero-stat-num {
  color: var(--ice);
}

.page-home .hero-stat-num em {
  font-style: normal;
  margin-left: 2px;
  font-size: 0.5em;
  color: var(--ice);
  letter-spacing: 0.02em;
}

.page-home .hero-stat-label {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.page-home .hero-jump {
  margin-top: clamp(20px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.page-home .jump-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .jump-label::after {
  content: " —";
}

.page-home .jump-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-home .jump-link {
  display: inline-block;
  padding: 6px 11px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--paper);
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.page-home .jump-link:hover,
.page-home .jump-link:focus-visible {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home .hero-figure {
  margin: 0;
}

.page-home .hero-media {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

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

.page-home .media-caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 章节骨架 ---------- */
.page-home .home-section {
  position: relative;
  padding-block: var(--home-band);
  border-bottom: 1px solid var(--line);
}

.page-home .sec-latest,
.page-home .sec-rounds {
  background: var(--ink-2);
}

.page-home .section-head {
  max-width: 64ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-home .kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.9vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.page-home .section-head .lede {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--paper);
  opacity: 0.82;
}

.page-home .inline-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 244, 208, 0.45);
  transition: color 140ms ease, border-color 140ms ease;
}

.page-home .inline-link:hover,
.page-home .inline-link:focus-visible {
  color: var(--ice);
  border-bottom-color: var(--ice);
}

/* ---------- 入口 ---------- */
.page-home .entry-grid {
  align-items: start;
}

.page-home .entry-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vw, 20px);
}

.page-home .step {
  display: flex;
  gap: 14px;
  padding: clamp(16px, 2.2vw, 20px);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 140ms ease;
}

.page-home .step:hover {
  border-color: var(--cyan);
}

.page-home .step-index {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.page-home .step-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .step-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--paper);
  opacity: 0.8;
}

.page-home .entry-note {
  margin: 0;
  padding: 12px 0 12px 14px;
  border-left: 2px solid var(--cyan);
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.85;
}

.page-home .entry-figure {
  margin: 0;
}

.page-home .entry-media {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background: var(--ink-2);
  max-height: 520px;
}

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

/* ---------- 最近比赛日 ---------- */
.page-home .latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .update-card {
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 140ms ease;
}

.page-home .update-card[open] {
  border-color: var(--cyan);
}

.page-home .update-card:hover {
  border-color: rgba(37, 244, 208, 0.55);
}

.page-home .update-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--paper);
}

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

.page-home .update-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .update-body {
  padding: 0 18px 18px;
}

.page-home .update-body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--paper);
  opacity: 0.82;
}

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

.page-home .update-list li {
  position: relative;
  padding-left: 15px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .update-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--orange);
}

/* ---------- 分布 ---------- */
.page-home .dist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.page-home .dist-visual {
  min-width: 0;
}

.page-home .pitch {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.page-home .dist-caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

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

.page-home .legend-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel);
  border-left: 2px solid var(--cyan);
}

.page-home .legend-item:nth-child(2) {
  border-left-color: var(--orange);
}

.page-home .legend-item:nth-child(3) {
  border-left-color: var(--ice);
}

.page-home .legend-swatch {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--cyan);
}

.page-home .legend-item:nth-child(2) .legend-swatch {
  background: var(--orange);
}

.page-home .legend-item:nth-child(3) .legend-swatch {
  background: var(--ice);
}

.page-home .legend-title {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.page-home .legend-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.78;
}

/* ---------- 轮次 ---------- */
.page-home .rounds-grid {
  align-items: start;
}

.page-home .rounds-figure {
  margin: 0;
}

.page-home .rounds-media {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--ink);
}

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

.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  position: relative;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.page-home .timeline-item {
  position: relative;
  padding-bottom: clamp(18px, 3vw, 26px);
}

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

.page-home .timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 11px;
  height: 11px;
  background: var(--ink-2);
  border: 2px solid var(--cyan);
}

.page-home .timeline-item--now::before {
  background: var(--orange);
  border-color: var(--orange);
}

.page-home .timeline-day {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .timeline-title {
  margin: 8px 0 5px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .timeline-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--paper);
  opacity: 0.78;
}

.page-home .rounds-note {
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--paper);
  opacity: 0.85;
}

/* ---------- 收藏直达 ---------- */
.page-home .save-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
}

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

.page-home .save-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.page-home .save-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.85;
}

.page-home .save-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cyan);
}

.page-home .save-stat {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .save-stat .meta-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
}

.page-home .save-figure {
  margin: 0;
}

.page-home .save-media {
  aspect-ratio: 8 / 5;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

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

/* ---------- 分流 ---------- */
.page-home .route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.page-home .route-card {
  display: block;
  padding: clamp(16px, 2.4vw, 22px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--paper);
  transition: background-color 140ms ease;
}

.page-home .route-card:hover,
.page-home .route-card:focus-visible {
  background: var(--panel);
}

.page-home .route-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .route-title {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.page-home .route-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.76;
}

.page-home .route-go {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border-bottom: 1px solid rgba(37, 244, 208, 0.4);
}

.page-home .route-card:hover .route-go {
  color: var(--ice);
  border-bottom-color: var(--ice);
}

.page-home .routes-team {
  margin: clamp(20px, 3vw, 26px) 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 720px) {
  .page-home .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .hero-stat {
    border-bottom: 0;
    padding-left: clamp(10px, 1.4vw, 18px);
  }

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

  .page-home .hero-stat + .hero-stat {
    border-left: 1px solid var(--line);
  }

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

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

/* ---------- 桌面 ---------- */
@media (min-width: 940px) {
  .page-home .hero-cols {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .page-home .hero-figure {
    margin-top: clamp(16px, 4vw, 54px);
  }

  .page-home .dist-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(24px, 3.4vw, 44px);
  }

  .page-home .rounds-grid {
    gap: clamp(24px, 3.4vw, 44px);
  }

  .page-home .save-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

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

@media (min-width: 1180px) {
  .page-home .hero-media {
    aspect-ratio: 4 / 3;
  }

  .page-home .entry-media {
    max-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-stat,
  .page-home .hero-stat-num,
  .page-home .jump-link,
  .page-home .step,
  .page-home .update-card,
  .page-home .route-card,
  .page-home .inline-link {
    transition: none;
  }
}
