.page-home {
  --home-pad: 24px;
  --home-offset: 24px;
  --home-hair: rgba(201, 242, 77, 0.28);
  background: var(--ink-900);
  color: var(--paper);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding-block: 40px 56px;
  background: var(--ink-900);
}

.page-home .hero-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.page-home .hero-field img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.32;
}

.page-home .hero-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 42, 33, 0.78) 0%, rgba(10, 42, 33, 0.95) 68%, var(--ink-900) 100%);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg,
      rgba(201, 242, 77, 0.055) 0 2px,
      transparent 2px 11px);
  pointer-events: none;
}

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

.page-home .hero-grid {
  display: grid;
  gap: 40px;
  margin-top: 20px;
}

.page-home .hero-main .h-display {
  font-size: clamp(54px, 12.5vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 10px 0 20px;
  text-transform: none;
}

.page-home .cat-heading {
  margin: 36px 0 14px;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--lime);
  text-transform: none;
  font-weight: 700;
}

.page-home .cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .cat-card a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 104px;
  padding: 16px 14px;
  border: 1px solid var(--home-hair);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .cat-card a:hover {
  background: rgba(201, 242, 77, 0.1);
  border-color: var(--lime);
  transform: translateY(-4px);
}

.page-home .cat-card a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.page-home .cat-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.page-home .cat-meta {
  font-size: 12px;
  line-height: 1.45;
  color: var(--steel);
}

.page-home .city-lead {
  margin: 28px 0 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

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

.page-home .city-list a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--ink-900);
  background: var(--lime-soft);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s var(--ease);
}

.page-home .city-list a:hover {
  background: var(--lime);
}

.page-home .city-list a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* 首屏右栏 */
.page-home .hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.page-home .annotation. annotation--vertical {
  align-self: flex-start;
}

.page-home .update-panel {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--home-hair);
  border-radius: 2px;
  background: var(--ink-800);
  overflow: hidden;
}

.page-home .update-panel .update-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--lime);
}

.page-home .update-panel .update-value {
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1.1;
  color: var(--paper);
}

.page-home .update-panel .update-note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--steel);
}

.page-home .ring {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 62px;
  height: 62px;
}

.page-home .quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .quick-links .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- 通用小节头 ---------- */
.page-home .sec-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.page-home .sec-head .h-2 {
  margin: 8px 0 14px;
}

/* ---------- 本周赛程 ---------- */
.page-home .sched-panel {
  position: relative;
  background-image: url("{zhanqunpic:h:900w:1400}");
  background-size: cover;
  background-position: center;
  background-color: var(--ink-800);
}

.page-home .sched-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(10, 42, 33, 0.96) 0%, rgba(20, 61, 48, 0.94) 60%, rgba(10, 42, 33, 0.93) 100%);
  pointer-events: none;
}

.page-home .sched-panel > .container {
  position: relative;
  z-index: 1;
}

.page-home .scoreboard {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-hair);
}

.page-home .scoreboard > li {
  border-bottom: 1px solid rgba(140, 163, 156, 0.22);
}

.page-home .score-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 12px 16px 0;
  color: var(--paper);
  text-decoration: none;
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.page-home .score-row:hover {
  background: rgba(201, 242, 77, 0.08);
  padding-left: 10px;
}

.page-home .score-row:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.page-home .score-time {
  font-size: 20px;
  color: var(--lime);
  letter-spacing: 0.06em;
}

.page-home .score-pair {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.page-home .score-pair em {
  font-style: normal;
  color: var(--steel);
  font-weight: 400;
  padding-inline: 4px;
}

.page-home .score-venue {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.5;
}

.page-home .score-row .tag {
  justify-self: start;
  margin-top: 4px;
}

.page-home .sched-more {
  margin: 28px 0 0;
}

/* ---------- 战报 ---------- */
.page-home .reports {
  background: var(--paper);
  color: var(--brown);
}

.page-home .reports .eyebrow {
  color: #6b5c3e;
}

.page-home .reports .h-2 {
  color: var(--brown);
}

.page-home .reports .lede {
  color: #4a4030;
}

.page-home .report-grid {
  display: grid;
  gap: 18px;
}

.page-home .report-card {
  padding: 22px 20px;
  background: var(--paper-2);
  border-top: 3px solid var(--ink-900);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .report-card .tag {
  background: transparent;
  color: #6b5c3e;
  border: 1px solid rgba(32, 28, 20, 0.24);
}

.page-home .report-card .h-3 {
  margin: 0;
  color: var(--brown);
  font-size: 20px;
  line-height: 1.35;
}

.page-home .report-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #3d3527;
}

.page-home .report-foot {
  margin-top: auto !important;
  padding-top: 10px;
  border-top: 1px solid rgba(32, 28, 20, 0.16);
  font-size: 16px;
  color: var(--ember);
  font-weight: 700;
}

.page-home .reports-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(32, 28, 20, 0.18);
}

.page-home .reports-hint {
  margin: 0;
  font-size: 13px;
  color: #6b5c3e;
  flex: 1 1 200px;
}

.page-home .density-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink-900);
  border: 1px solid var(--ink-900);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.page-home .density-toggle:hover {
  background: var(--ink-700);
}

.page-home .density-toggle:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.page-home .density-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--steel);
  transition: background 0.25s var(--ease);
}

html[data-density="compact"] .page-home .density-dot {
  background: var(--lime);
}

html[data-density="compact"] .page-home .report-card p:not(.report-foot) {
  display: none;
}

html[data-density="compact"] .page-home .score-venue {
  display: none;
}

/* ---------- 约赛三步 ---------- */
.page-home .flow-panel {
  background: var(--ink-900);
}

.page-home .flow-grid {
  display: grid;
  gap: 32px;
}

.page-home .flow-main .h-2 {
  margin: 8px 0 14px;
}

.page-home .flow {
  margin-top: 26px;
  counter-reset: homeStep;
  list-style: none;
  padding: 0;
  border-left: 1px solid var(--home-hair);
}

.page-home .flow > li {
  counter-increment: homeStep;
  position: relative;
  padding: 0 0 26px 30px;
}

.page-home .flow > li::before {
  content: "0" counter(homeStep);
  position: absolute;
  left: -1px;
  top: 2px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding-inline: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-900);
  background: var(--ember);
  border-radius: 2px;
}

.page-home .flow > li:last-child {
  padding-bottom: 0;
}

.page-home .flow .h-3 {
  margin: 0 0 6px;
  color: var(--paper);
  font-size: 19px;
}

.page-home .flow p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--steel);
}

.page-home .flow-main > p:last-child {
  margin-top: 30px;
}

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

/* ---------- 数据面板 ---------- */
.page-home .stats-panel {
  background: var(--ink-800);
  border-top: 1px solid var(--home-hair);
}

.page-home .stats-grid {
  display: grid;
  gap: 32px;
}

.page-home .stats-main .h-2 {
  margin: 8px 0 14px;
}

.page-home .stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  padding: 0;
  background: rgba(140, 163, 156, 0.22);
  border: 1px solid rgba(140, 163, 156, 0.22);
}

.page-home .stat-item {
  padding: 18px 14px;
  background: var(--ink-800);
}

.page-home .stat-item dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.page-home .stat-item dd {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1;
  color: var(--lime);
  letter-spacing: 0.02em;
}

.page-home .stats-note {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .stats-figure {
  margin: 0;
  align-self: end;
}

/* ---------- 收尾 ---------- */
.page-home .closing {
  background: var(--paper);
  color: var(--brown);
}

.page-home .closing .eyebrow {
  color: #6b5c3e;
}

.page-home .closing .h-2 {
  color: var(--brown);
  margin: 8px 0 14px;
}

.page-home .closing .lede {
  color: #4a4030;
}

.page-home .closing-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-home .closing-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .closing-links .btn--ghost {
  color: var(--brown);
  border-color: rgba(32, 28, 20, 0.4);
}

.page-home .closing-links .btn--ghost:hover {
  background: rgba(32, 28, 20, 0.08);
  border-color: var(--brown);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home {
    --home-pad: 32px;
  }

  .page-home .score-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
  }

  .page-home .score-row .tag {
    grid-column: 3;
    justify-self: end;
    margin-top: 0;
  }

  .page-home .score-time {
    font-size: 22px;
  }

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

@media (min-width: 860px) {
  .page-home .hero {
    padding-block: 56px 72px;
  }

  .page-home .hero-grid {
    grid-template-columns: 62fr 38fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: var(--home-offset);
  }

  .page-home .cat-grid > li:nth-child(even) {
    transform: translateY(var(--home-offset));
  }

  .page-home .cat-grid > li:nth-child(even) a:hover {
    transform: translateY(-4px);
  }

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

  .page-home .flow-grid {
    grid-template-columns: 62fr 38fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .stats-grid {
    grid-template-columns: 55fr 45fr;
    gap: 52px;
    align-items: start;
  }

  .page-home .closing-inner {
    grid-template-columns: 1fr auto;
    gap: 40px;
  }
}

@media (min-width: 1180px) {
  .page-home .hero-grid {
    gap: 64px;
  }

  .page-home .stat-item dd {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .cat-card a,
  .page-home .score-row,
  .page-home .city-list a {
    transition: none;
  }

  .page-home .cat-card a:hover,
  .page-home .cat-grid > li:nth-child(even) a:hover {
    transform: none;
  }
}
