.page-home {
  --home-cut: 12px;
  --home-shadow: 0 1px 0 rgba(28, 31, 34, .06), 0 18px 40px -28px rgba(11, 61, 46, .45);
  background: var(--mist);
  color: var(--ink);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  background: var(--deep);
  color: var(--paper);
  padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px);
}

.page-home .hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .hero__context {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .hero__title {
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-home .hero__sub {
  margin: 0 0 30px;
  max-width: 46ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: rgba(250, 246, 241, .82);
}

.page-home .hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: 22px 0 20px;
  border-top: 1px solid rgba(250, 246, 241, .18);
  border-bottom: 1px solid rgba(250, 246, 241, .18);
}

.page-home .hero-stat {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: baseline;
  gap: 0 6px;
}

.page-home .hero-stat__label {
  grid-column: 1 / -1;
  font-size: var(--fs-12);
  letter-spacing: .1em;
  color: rgba(250, 246, 241, .62);
}

.page-home .hero-stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .hero-stat__value--amber { color: var(--amber); }
.page-home .hero-stat__value--red { color: #FF6B7E; }

.page-home .hero-stat__unit {
  font-size: var(--fs-14);
  color: rgba(250, 246, 241, .68);
}

.page-home .hero__meta {
  margin: 22px 0 0;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: rgba(250, 246, 241, .72);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hero__visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 320px;
  background: var(--deep-2);
}

.page-home .hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.35) contrast(1.12) brightness(.42);
}

.page-home .hero__svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
}

.page-home .hero__pitch rect,
.page-home .hero__pitch circle {
  fill: none;
  stroke: rgba(250, 246, 241, .22);
  stroke-width: 2;
}

.page-home .hero__pitch line {
  stroke: rgba(250, 246, 241, .18);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

.page-home .hero__card {
  stroke: rgba(11, 61, 46, .35);
  stroke-width: 2;
}

.page-home .hero__card--amber { fill: var(--amber); }
.page-home .hero__card--red { fill: var(--red); }

.page-home .hero__legend {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 10px 14px;
  list-style: none;
  border-radius: 4px;
  background: rgba(11, 61, 46, .72);
  backdrop-filter: blur(4px);
  font-size: var(--fs-12);
  color: rgba(250, 246, 241, .88);
}

.page-home .hero__legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-home .hero__swatch {
  width: 12px;
  height: 16px;
  border-radius: 2px;
}

.page-home .hero__swatch--amber { background: var(--amber); }
.page-home .hero__swatch--red { background: var(--red); }
.page-home .hero__swatch--green { background: var(--green); }

/* ---------- 章节骨架 ---------- */
.page-home .chapters-section {
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
}

.page-home .chapters {
  display: grid;
  gap: 28px;
}

.page-home .chapters__body {
  min-width: 0;
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.page-home .chapters__rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.page-home .rail__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-14);
  white-space: nowrap;
  transition: border-color .14s ease, background-color .14s ease;
}

.page-home .rail__item:hover,
.page-home .rail__item:focus-visible {
  border-color: var(--deep);
  background: #fff;
}

.page-home .rail__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--slate);
}

.page-home .rail__dot--amber { background: var(--amber); }
.page-home .rail__dot--red { background: var(--red); }
.page-home .rail__dot--green { background: var(--green); }

/* ---------- 章节面板 ---------- */
.page-home .chapter {
  background: var(--paper);
  padding: clamp(26px, 4vw, 54px);
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, var(--home-cut) 100%, 0 calc(100% - var(--home-cut)));
}

.page-home .chapter:nth-child(even) {
  background: #fff;
}

.page-home .chapter--tight {
  background: var(--deep);
  color: var(--paper);
}

.page-home .chapter__head { position: relative; }

.page-home .chapter__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
  color: rgba(11, 61, 46, .1);
  margin-bottom: -0.34em;
}

.page-home .chapter--tight .chapter__num { color: rgba(244, 196, 48, .22); }

.page-home .chapter__title {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--deep);
}

.page-home .chapter--tight .chapter__title { color: var(--paper); }

.page-home .chapter__desc {
  position: relative;
  margin: 0 0 28px;
  max-width: 62ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: #33403B;
}

.page-home .chapter--tight .chapter__desc { color: rgba(250, 246, 241, .8); }

.page-home .chapter__rule {
  margin: 24px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--grid);
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--slate);
}

.page-home .chapter--tight .chapter__rule {
  border-top-color: rgba(250, 246, 241, .2);
  color: rgba(250, 246, 241, .72);
}

.page-home .inline-link {
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .chapter--tight .inline-link { color: var(--amber); }

/* ---------- 通用小元素 ---------- */
.page-home .media--wide {
  margin: 0 0 26px;
  overflow: hidden;
  border-radius: 6px;
}

.page-home .media--wide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1400 / 520;
}

.page-home .filter-bar {
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-home .legend {
  margin: 0 0 18px;
}

.page-home .sub-title {
  margin: 34px 0 14px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: var(--fs-20);
  color: var(--deep);
}

/* ---------- 球队条形矩阵 ---------- */
.page-home .team-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.page-home .team-row {
  display: grid;
  grid-template-columns: minmax(72px, 96px) minmax(0, 1fr) 46px 38px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 4px;
  transition: background-color .14s ease, transform .14s ease;
}

.page-home .team-row:nth-child(odd) { background: rgba(11, 61, 46, .035); }

.page-home .team-row:hover,
.page-home .team-row:focus-within {
  background: rgba(244, 196, 48, .16);
}

.page-home .team-row__name {
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .team-row__track {
  display: block;
  height: 12px;
  border-radius: 2px;
  background: var(--grid);
  overflow: hidden;
}

.page-home .team-row__bar {
  display: block;
  height: 100%;
  width: var(--bar, 0%);
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  transition: width .5s cubic-bezier(.2, .8, .3, 1);
}

.page-home .team-row__yellow {
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--amber-deep);
}

.page-home .team-row__red {
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--red-deep);
  text-align: right;
}

.page-home .team-row__red::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 11px;
  margin-right: 5px;
  border-radius: 1px;
  background: var(--red);
  vertical-align: -1px;
}

.page-home .team-row.is-filtered-out { display: none; }

/* ---------- 号码索引 ---------- */
.page-home .number-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}

.page-home .number-card {
  display: grid;
  gap: 4px;
  padding: 22px 20px;
  background: var(--mist);
  border-left: 4px solid var(--deep);
  border-radius: 2px;
}

.page-home .number-card__range {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .12em;
  color: var(--slate);
}

.page-home .number-card__count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--deep);
}

.page-home .number-card__note {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--slate);
}

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

.page-home .jersey-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  background: #fff;
  border: 1px solid var(--grid);
  border-radius: 4px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.page-home .jersey-item:hover {
  transform: rotate(-1.5deg) translateY(-2px);
  border-color: var(--amber);
  box-shadow: 0 10px 22px -14px rgba(11, 61, 46, .5);
}

.page-home .jersey-item__no {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 3px;
  background: var(--deep);
  color: var(--paper);
  font-weight: 700;
  font-size: var(--fs-20);
}

.page-home .jersey-item__meta {
  font-size: var(--fs-14);
  color: var(--slate);
}

.page-home .jersey-item__val {
  font-size: var(--fs-28);
  font-weight: 700;
  color: var(--red-deep);
}

/* ---------- 越位对照 ---------- */
.page-home .table-scroll { overflow-x: auto; }

.page-home .cross-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: var(--fs-14);
}

.page-home .cross-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-size: var(--fs-14);
  color: var(--slate);
}

.page-home .cross-table th,
.page-home .cross-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--grid);
  text-align: left;
}

.page-home .cross-table thead th {
  font-family: var(--font-title);
  font-size: var(--fs-12);
  letter-spacing: .08em;
  color: var(--deep);
  border-bottom: 2px solid var(--deep);
}

.page-home .cross-table tbody th { font-weight: 700; color: var(--ink); }
.page-home .cross-table tbody tr:nth-child(even) { background: rgba(11, 61, 46, .035); }
.page-home .cross-table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.page-home .callout {
  margin-top: 22px;
  padding: 20px 22px;
  border-left: 4px solid var(--amber);
  background: rgba(244, 196, 48, .14);
  border-radius: 2px;
}

.page-home .callout__text {
  margin: 0;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: #33403B;
}

/* ---------- 租借名单 ---------- */
.page-home .loan {
  display: grid;
  gap: 22px;
  align-items: start;
}

.page-home .loan__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
}

.page-home .loan__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 900 / 700;
}

.page-home .loan__stats {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.page-home .loan__note {
  margin: 0 0 22px;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: #33403B;
}

/* ---------- 更新窗口 ---------- */
.page-home .window {
  display: grid;
  gap: 26px;
  align-items: start;
}

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

.page-home .window-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 16px;
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--grid);
}

.page-home .window-item__step {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: var(--fs-28);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.page-home .window-item__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: var(--fs-20);
  color: var(--deep);
}

.page-home .window-item__desc {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: #33403B;
}

.page-home .window__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--mist);
}

.page-home .window__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 800 / 600;
}

.page-home .window__figure figcaption {
  padding: 12px 14px;
  font-size: var(--fs-12);
  color: var(--slate);
  background: #fff;
}

/* ---------- 入口卡片 ---------- */
.page-home .entry-grid {
  display: grid;
  gap: 14px;
}

.page-home .entry-card {
  display: grid;
  gap: 8px;
  padding: 24px 22px;
  text-decoration: none;
  background: rgba(250, 246, 241, .06);
  border: 1px solid rgba(250, 246, 241, .18);
  border-radius: 4px;
  transition: background-color .14s ease, border-color .14s ease, transform .14s ease;
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  background: rgba(244, 196, 48, .12);
  border-color: var(--amber);
  transform: translateY(-3px);
}

.page-home .entry-card__kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .1em;
  color: var(--amber);
}

.page-home .entry-card__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: var(--fs-20);
  line-height: 1.35;
  color: var(--paper);
}

.page-home .entry-card__go {
  font-size: var(--fs-14);
  color: rgba(250, 246, 241, .7);
}

.page-home .entry-card:hover .entry-card__go { color: var(--amber); }

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .hero__grid {
    grid-template-columns: 1fr;
  }

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

  .page-home .loan {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .loan__figure { position: sticky; top: 96px; }

  .page-home .window {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

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

  .page-home .entry-card:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    min-height: 78vh;
  }

  .page-home .chapters {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .chapters__rail {
    position: sticky;
    top: 96px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    overflow: visible;
    padding: 0;
  }

  .page-home .rail__item {
    border-radius: 4px;
    border-color: transparent;
    background: transparent;
    padding: 10px 12px;
  }

  .page-home .rail__item:hover,
  .page-home .rail__item:focus-visible {
    background: var(--paper);
    border-color: var(--grid);
  }

  .page-home .team-row {
    grid-template-columns: 108px minmax(0, 1fr) 54px 46px;
    gap: 14px;
  }

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

  .page-home .entry-card { grid-column: span 2; }
  .page-home .entry-card:nth-child(4) { grid-column: 2 / span 2; }
  .page-home .entry-card:nth-child(5) { grid-column: 4 / span 2; }
}

@media (min-width: 1280px) {
  .page-home .chapter { padding: 56px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .team-row__bar,
  .page-home .jersey-item,
  .page-home .entry-card {
    transition: none;
  }

  .page-home .jersey-item:hover,
  .page-home .entry-card:hover {
    transform: none;
  }
}

.page-home {
  --bar: 1rem;
}
