.page-home {
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  padding-bottom: clamp(40px, 7vw, 88px);
  overflow-x: clip;
}

.page-home .ph-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.page-home .ph-crumbs {
  padding-top: clamp(16px, 3vw, 28px);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

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

.page-home .hero {
  padding-top: clamp(18px, 3vw, 34px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.page-home .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.page-home .hero-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.page-home .hero-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: var(--lime);
}

.page-home .hero-aside h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 7.4vw, 60px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hero-lead {
  margin: 0;
  max-width: 40ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--muted);
}

.page-home .watch-panel {
  border: 1px solid var(--line);
  background: var(--board);
  padding: clamp(14px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .watch-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-home .watch-count {
  font-family: var(--font-mono);
  font-size: var(--fs-20);
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.page-home .watch-cap {
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .watch-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-home .watch-row {
  display: grid;
  grid-template-columns: minmax(52px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.page-home .watch-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.page-home .watch-league {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--paper);
}

.page-home .watch-round {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-home .watch-time {
  font-family: var(--font-mono);
  font-size: var(--fs-16);
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-align: right;
}

.page-home .hero-board {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--board);
  padding: clamp(16px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.page-home .board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .board-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .board-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  padding: 4px 0;
}

.page-home .score-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.page-home .score-team {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .score-num {
  font-family: var(--font-mono);
  font-size: clamp(52px, 10vw, 76px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.page-home .score-colon {
  font-family: var(--font-mono);
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1;
  color: var(--line);
  transform: translateY(-6px);
}

.page-home .board-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.page-home .board-chart line {
  stroke: var(--line);
  stroke-width: 1;
}

.page-home .board-chart rect {
  fill: var(--lime);
  opacity: 0.85;
}

.page-home .board-chart rect:nth-child(2n) {
  fill: var(--lime);
  opacity: 0.45;
}

.page-home .board-chart rect:nth-child(3n) {
  fill: var(--amber);
  opacity: 1;
}

.page-home .board-caption {
  margin: 0;
  font-size: var(--fs-12);
  line-height: 1.7;
  color: var(--muted);
}

.page-home .board-shot {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--night);
  overflow: hidden;
}

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

/* ---------- 章节标题通用 ---------- */

.page-home .sec-title {
  margin: clamp(14px, 2vw, 20px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--paper);
}

/* ---------- Bento 能力板 ---------- */

.page-home .capabilities {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.page-home .bento-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-home .bento-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.09;
}

.page-home .capabilities > .ph-wrap {
  position: relative;
  z-index: 1;
}

.page-home .cap-lead {
  margin: 12px 0 0;
  max-width: 54ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--muted);
}

.page-home .bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  margin-top: clamp(22px, 4vw, 36px);
}

.page-home .bento-cell {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--line);
  background: var(--board);
}

.page-home .bento--report {
  box-shadow: inset 0 -2px 0 0 var(--lime);
}

.page-home .bento--teams {
  box-shadow: inset 0 -2px 0 0 var(--press);
}

.page-home .cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .cell-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .bento-cell h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .cell-text {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.page-home .cell-shot {
  margin: auto 0 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--night);
}

.page-home .cell-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: top;
}

/* ---------- 改版对比 ---------- */

.page-home .revision {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}

.page-home .rev-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  margin-top: clamp(20px, 3vw, 32px);
}

.page-home .rev-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
}

.page-home .rev-col--before {
  background: rgba(108, 74, 40, 0.2);
  border-color: var(--brown);
}

.page-home .rev-col--after {
  background: var(--board);
  border-color: rgba(200, 255, 77, 0.28);
}

.page-home .rev-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .rev-col li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--muted);
}

.page-home .rev-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--line);
}

.page-home .rev-col--before li::before {
  background: var(--brown);
}

.page-home .rev-col--after li::before {
  background: var(--lime);
}

/* ---------- 更新节奏 ---------- */

.page-home .rhythm {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}

.page-home .phase-list {
  list-style: none;
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.page-home .phase {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(12px, 2.4vw, 24px);
  padding: 16px 0 16px clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
}

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

.page-home .phase::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 24px;
  width: 7px;
  height: 7px;
  background: var(--lime);
}

.page-home .phase:nth-child(3)::before {
  background: var(--amber);
}

.page-home .phase-num {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  color: var(--lime);
}

.page-home .phase-body h3 {
  margin: 0 0 6px;
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--paper);
}

.page-home .phase-body p {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 使用场景 ---------- */

.page-home .scenes {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}

.page-home .scene-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(20px, 3vw, 32px);
}

.page-home .scene-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--board);
  overflow: hidden;
}

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

.page-home .scene-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.page-home .scene {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: var(--board);
}

.page-home .scene:nth-child(2) {
  border-left-color: var(--lime);
}

.page-home .scene:nth-child(3) {
  border-left-color: var(--press);
}

.page-home .scene h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--paper);
}

.page-home .scene-text {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 下一步 ---------- */

.page-home .next {
  padding: clamp(40px, 6vw, 80px) 0 0;
  border-top: 1px solid var(--line);
}

.page-home .next-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3.4vw, 44px);
  border: 1px solid var(--line);
  background: var(--board);
  overflow: hidden;
}

.page-home .next-panel::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: min(40%, 260px);
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--amber), var(--press));
}

.page-home .next-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .next-lead {
  margin: 0;
  max-width: 56ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--muted);
}

.page-home .next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .next-links {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.page-home .next-links a {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}

.page-home .next-links a:hover,
.page-home .next-links a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

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

@media (min-width: 760px) {
  .page-home .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(140px, auto);
    align-items: stretch;
  }

  .page-home .bento--report {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
  }

  .page-home .bento--compare {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
  }

  .page-home .bento--teams {
    grid-column: 8 / 13;
    grid-row: 2 / 4;
  }

  .page-home .bento--watch {
    grid-column: 1 / 8;
    grid-row: 3 / 4;
  }

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

@media (min-width: 860px) {
  .page-home .scene-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.34fr);
    align-items: start;
    gap: clamp(20px, 2.4vw, 34px);
  }

  .page-home .hero-aside {
    padding-right: clamp(16px, 2.4vw, 32px);
    border-right: 1px solid var(--line);
  }

  .page-home .hero-board {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
  }

  .page-home .board-shot img {
    max-height: 320px;
  }
}

@media (max-width: 520px) {
  .page-home .watch-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "league time"
      "round  time";
    row-gap: 2px;
  }

  .page-home .watch-league {
    grid-area: league;
  }

  .page-home .watch-round {
    grid-area: round;
  }

  .page-home .watch-time {
    grid-area: time;
    align-self: center;
  }

  .page-home .next-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}
