.page-home {
  --home-gap: clamp(20px, 3.2vw, 38px);
  --home-band: clamp(46px, 6.2vw, 88px);
  --home-pad: clamp(16px, 2.6vw, 28px);
  display: block;
  color: var(--chalk);
  background-color: var(--ink-green);
  background-image:
    repeating-linear-gradient(0deg, rgba(159, 179, 166, 0.055) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(159, 179, 166, 0.055) 0 1px, transparent 1px 48px);
  overflow-x: clip;
}

.page-home a {
  color: inherit;
}

.page-home .home-crumb {
  padding-block: clamp(16px, 2vw, 24px) 0;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding-block: clamp(22px, 3.4vw, 40px) clamp(26px, 3.6vw, 42px);
}

.page-home .home-hero__inner {
  max-width: 74ch;
}

.page-home .home-hero__titles {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.8vw, 22px);
  margin-block: 10px 0;
}

.page-home .home-hero__vert {
  margin: 6px 0 0;
  writing-mode: vertical-rl;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--grid-grey);
  white-space: nowrap;
}

.page-home .home-hero__title {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--chalk);
  text-wrap: balance;
}

.page-home .home-hero__lede {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.85;
  color: rgba(247, 250, 246, 0.76);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 22px 18px;
}

.page-home .home-hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grid-grey);
}

/* ---------- 轮次比分条 ---------- */
.page-home .home-rounds {
  padding-block: 0 clamp(8px, 1.4vw, 14px);
}

.page-home .roundboard {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--night-green), rgba(7, 36, 26, 0.85));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-home .roundboard__glow {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48%, 440px);
  opacity: 0.22;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}

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

.page-home .roundboard__bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px var(--home-pad) 12px;
  border-bottom: 1px solid var(--line);
}

.page-home .roundboard__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--chalk);
}

.page-home .roundboard__sub {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--grid-grey);
}

.page-home .roundboard__hint {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grid-grey);
}

.page-home .roundboard__ctrl {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.page-home .roundboard__btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--chalk);
  background: rgba(244, 237, 223, 0.06);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .roundboard__btn:hover {
  background: rgba(183, 241, 113, 0.16);
  border-color: rgba(183, 241, 113, 0.5);
}

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

.page-home .roundboard__track {
  position: relative;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 14px var(--home-pad) 18px;
  scrollbar-width: thin;
}

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

.page-home .round-cell {
  flex: 0 0 168px;
  scroll-snap-align: start;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  text-decoration: none;
  background: rgba(20, 82, 60, 0.34);
  border: 1px solid var(--line);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .round-cell:hover {
  background: rgba(20, 82, 60, 0.66);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

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

.page-home .round-cell--now {
  background: rgba(183, 241, 113, 0.1);
  border-color: rgba(183, 241, 113, 0.5);
}

.page-home .round-cell--next {
  opacity: 0.6;
}

.page-home .round-cell__no {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--grid-grey);
}

.page-home .round-cell__score {
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--chalk);
}

.page-home .round-cell--now .round-cell__score {
  color: var(--lime);
}

.page-home .round-cell__teams {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--grid-grey);
}

/* ---------- 拼贴首屏 ---------- */
.page-home .home-board {
  padding-block-start: var(--home-band);
}

.page-home .board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: start;
}

.page-home .board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.page-home .board-head__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--chalk);
}

.page-home .board-head__note {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grid-grey);
}

.page-home .board-figure {
  position: relative;
  margin: 14px 0 6px;
  overflow: hidden;
}

.page-home .board-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.85);
}

.page-home .board-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(183, 241, 113, 0.12) 0 1px, transparent 1px 26px);
}

.page-home .board-figure figcaption {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grid-grey);
}

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

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 122, 60, 0.7), rgba(159, 179, 166, 0.16));
}

.page-home .timeline__item {
  position: relative;
  padding-bottom: 18px;
}

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

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 60, 0.18);
}

.page-home .timeline__time {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .timeline__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--chalk);
}

.page-home .timeline__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(159, 179, 166, 0.92);
}

.page-home .stack {
  position: relative;
  display: grid;
  gap: 14px;
}

.page-home .stack__veil {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 72%);
  mask-image: linear-gradient(200deg, #000, transparent 72%);
}

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

.page-home .story {
  position: relative;
  padding: var(--home-pad);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(20, 82, 60, 0.94), rgba(11, 61, 46, 0.96));
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.page-home .story__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--grid-grey);
}

.page-home .story__title {
  margin: 0 0 10px;
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 700;
  line-height: 1.34;
  color: var(--chalk);
}

.page-home .story--lg .story__title {
  font-size: clamp(21px, 2.8vw, 29px);
  line-height: 1.24;
}

.page-home .story__text {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(247, 250, 246, 0.72);
}

.page-home .story__more {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--lime);
  border-bottom: 1px solid rgba(183, 241, 113, 0.42);
  transition: border-color 0.18s var(--ease), opacity 0.18s var(--ease);
}

.page-home .story__more:hover {
  border-color: var(--lime);
}

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

/* ---------- 三步订阅 ---------- */
.page-home .home-steps {
  padding-block-start: var(--home-band);
}

.page-home .home-steps__lede,
.page-home .home-h2h__lede {
  max-width: 60ch;
  margin: 12px 0 22px;
  font-size: 13.5px;
  line-height: 1.82;
  color: rgba(159, 179, 166, 0.95);
}

.page-home .steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line-strong);
}

.page-home .steps__item {
  padding: var(--home-pad);
  background: var(--ink-green);
}

.page-home .steps__no {
  display: block;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--lime);
}

.page-home .steps__title {
  margin: 8px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--chalk);
}

.page-home .steps__item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.76;
  color: rgba(159, 179, 166, 0.95);
}

.page-home .home-steps__foot {
  margin: 20px 0 0;
}

/* ---------- 历史交锋 ---------- */
.page-home .home-h2h {
  padding-block-start: var(--home-band);
}

.page-home .h2h-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .h2h {
  border: 1px solid var(--line);
  background: rgba(20, 82, 60, 0.26);
}

.page-home .h2h summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

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

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

.page-home .h2h__pair {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--chalk);
}

.page-home .h2h__vs {
  margin-inline: 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--grid-grey);
}

.page-home .h2h__sum {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lime);
}

.page-home .h2h[open] summary {
  border-bottom: 1px solid var(--line);
}

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

.page-home .h2h__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  font-size: 12.5px;
  border-top: 1px solid rgba(159, 179, 166, 0.16);
}

.page-home .h2h__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-home .h2h__when {
  font-family: var(--font-num);
  font-size: 11.5px;
  color: var(--grid-grey);
  white-space: nowrap;
}

.page-home .h2h__meta {
  color: rgba(247, 250, 246, 0.7);
}

.page-home .h2h__score {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--chalk);
  white-space: nowrap;
}

/* ---------- 收藏留存 ---------- */
.page-home .home-shelf {
  padding-block-start: var(--home-band);
}

.page-home .shelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(22px, 3.4vw, 46px);
  background: var(--paper);
  color: var(--paper-ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.page-home .shelf__text h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 3vw, 33px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--paper-ink);
}

.page-home .shelf__text p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.82;
  color: rgba(28, 58, 44, 0.82);
}

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

.page-home .shelf__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(28, 58, 44, 0.9);
}

.page-home .shelf__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--moss);
}

.page-home .shelf__figure {
  margin: 0;
  overflow: hidden;
}

.page-home .shelf__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 规模条 ---------- */
.page-home .home-scale {
  padding-block-start: var(--home-band);
}

.page-home .scale {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line);
  border-block: 1px solid var(--line-strong);
}

.page-home .scale li {
  padding: 16px 14px;
  background: var(--ink-green);
}

.page-home .scale__num {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-num);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--lime);
}

.page-home .scale li span:last-child {
  display: block;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: rgba(159, 179, 166, 0.95);
}

.page-home .home-scale__foot {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--grid-grey);
}

.page-home .home-scale__foot a {
  margin-left: 6px;
  text-decoration: none;
  color: var(--lime);
  border-bottom: 1px solid rgba(183, 241, 113, 0.42);
}

/* ---------- 最新赛刊 ---------- */
.page-home .home-latest {
  padding-block-start: var(--home-band);
}

.page-home .latest {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.page-home .latest li {
  border-bottom: 1px solid var(--line);
}

.page-home .latest a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 0;
  text-decoration: none;
}

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

.page-home .latest__tag {
  justify-self: start;
}

.page-home .latest__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--chalk);
  transition: color 0.18s var(--ease);
}

.page-home .latest a:hover .latest__title {
  color: var(--lime);
}

.page-home .latest__date {
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--grid-grey);
}

/* ---------- 收尾 ---------- */
.page-home .home-end {
  padding-block: var(--home-band) clamp(56px, 7vw, 96px);
}

.page-home .home-end__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: clamp(22px, 3.4vw, 42px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(183, 241, 113, 0.09), rgba(20, 82, 60, 0.55) 70%);
}

.page-home .home-end__panel h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.28;
  color: var(--chalk);
}

.page-home .home-end__panel p {
  margin: 0;
  max-width: 56ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(247, 250, 246, 0.74);
}

.page-home .home-end__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-home .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .page-home .latest a {
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 18px;
  }

  .page-home .h2h-block {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page-home .story--md {
    margin-left: 8%;
  }

  .page-home .story--sm {
    margin-right: 14%;
  }
}

@media (min-width: 900px) {
  .page-home .board-grid {
    grid-template-columns: 4fr 6fr;
    gap: clamp(24px, 3vw, 46px);
  }

  .page-home .shelf {
    grid-template-columns: 6fr 4fr;
    align-items: center;
  }

  .page-home .home-end__panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
  }

  .page-home .scale {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 639px) {
  .page-home .home-hero__vert {
    display: none;
  }

  .page-home .round-cell {
    flex-basis: 148px;
  }

  .page-home .h2h__row {
    grid-template-columns: auto 1fr;
  }

  .page-home .h2h__score {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .round-cell,
  .page-home .roundboard__btn,
  .page-home .latest__title,
  .page-home .story__more {
    transition: none;
  }

  .page-home .round-cell:hover {
    transform: none;
  }
}
