/* ============================================================
   首页 · 页面专属样式（全部限定在 .page-home 作用域内）
   ============================================================ */

.page-home {
  position: relative;
  display: block;
  padding-bottom: 72px;
  overflow-x: hidden;
}

/* ---------- 顶部上下文 ---------- */
.page-home .home-context {
  padding-top: 26px;
}

.page-home .home-context .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .home-context .breadcrumb__sep {
  color: var(--cyan);
  opacity: .65;
}

/* ---------- 封面首屏 ---------- */
.page-home .home-cover {
  position: relative;
  padding: 26px 0 60px;
  overflow: hidden;
}

.page-home .home-cover::before {
  content: "";
  position: absolute;
  inset: -24% -10% 22%;
  background-image:
    linear-gradient(to right, rgba(42, 74, 64, .5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 74, 64, .5) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(76% 66% at 68% 32%, #000 0%, transparent 76%);
  mask-image: radial-gradient(76% 66% at 68% 32%, #000 0%, transparent 76%);
  pointer-events: none;
  z-index: 0;
}

.page-home .cover-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.page-home .cover-rail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
}

.page-home .cover-rail__num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.page-home .cover-rail__line {
  flex: 1 1 auto;
  min-width: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(63, 224, 192, .55), rgba(63, 224, 192, 0));
}

.page-home .cover-rail__cap {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mist);
  white-space: nowrap;
}

.page-home .cover-main {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .cover-main h1 {
  margin: 0;
  font-family: var(--font-cn);
  font-weight: 900;
  font-size: clamp(30px, 7.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--paper);
  max-width: 17ch;
}

.page-home .cover-main .lede {
  margin: 0;
  max-width: 46ch;
}

.page-home .cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.page-home .cover-media {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
}

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

/* ---------- 四类索引入口 ---------- */
.page-home .cover-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .index-card {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--grid);
  background: linear-gradient(180deg, rgba(18, 39, 31, .92), rgba(10, 27, 23, .92));
  text-decoration: none;
  color: var(--paper);
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.page-home .index-card:hover,
.page-home .index-card:focus-visible {
  border-color: rgba(63, 224, 192, .7);
  background: linear-gradient(180deg, var(--wash-2), rgba(10, 27, 23, .95));
  transform: translateY(-2px);
}

.page-home .index-card__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--cyan);
}

.page-home .index-card__title {
  font-family: var(--font-cn);
  font-weight: 900;
  font-size: 15.5px;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.page-home .index-card__note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 通用章节间距 ---------- */
.page-home .home-tables,
.page-home .home-archive,
.page-home .home-entry,
.page-home .home-member,
.page-home .home-rhythm {
  padding: 56px 0;
}

.page-home .section-head .lede {
  max-width: 58ch;
}

/* ---------- 两张核心表 ---------- */
.page-home .tables-media {
  margin: 24px 0 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-xl);
  overflow: hidden;
}

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

.page-home .table-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.page-home .table-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--grid);
  position: relative;
  overflow: hidden;
}

.page-home .table-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 2px;
  height: 40px;
  background: var(--grid);
}

.page-home .table-card--cyan {
  border-color: rgba(63, 224, 192, .34);
  background-image: linear-gradient(180deg, var(--wash), rgba(10, 27, 23, 0) 66%);
}

.page-home .table-card--cyan::after {
  background: var(--cyan);
}

.page-home .table-card__head {
  display: grid;
  gap: 6px;
  padding-left: 14px;
}

.page-home .table-card__code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--cyan);
}

.page-home .table-card__title {
  margin: 0;
  font-family: var(--font-cn);
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -.015em;
  color: var(--paper);
}

.page-home .table-card__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--mist);
}

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

.page-home .table-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .table-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  opacity: .85;
}

.page-home .table-card--cyan .table-card__list li::before {
  background: var(--cyan-soft);
  opacity: 1;
}

.page-home .table-card__link {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 224, 192, .34);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .table-card__link:hover,
.page-home .table-card__link:focus-visible {
  color: var(--cyan-soft);
  border-color: var(--cyan-soft);
}

.page-home .table-note {
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(42, 74, 64, .95);
  background: rgba(18, 39, 31, .5);
}

.page-home .table-note .note {
  margin: 0;
  max-width: 70ch;
}

/* ---------- 赛季归档 ---------- */
.page-home .archive-band {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.page-home .archive-media {
  margin: 0;
  width: 100%;
  aspect-ratio: 8 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
}

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

.page-home .archive-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.page-home .archive-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  padding: 12px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--grid);
  background: rgba(18, 39, 31, .72);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .archive-cell:hover {
  border-color: rgba(63, 224, 192, .45);
  background: var(--wash);
}

.page-home .archive-cell__year {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.page-home .archive-cell.is-current {
  border-color: var(--cyan);
  background: var(--wash-2);
}

.page-home .archive-cell.is-current .archive-cell__year {
  color: var(--cyan);
}

.page-home .archive-cell__cap {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--cyan);
}

.page-home .archive-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(42, 74, 64, .7);
}

.page-home .archive-foot .muted {
  margin: 0;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 入口路径 ---------- */
.page-home .entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.page-home .entry-media {
  margin: 0;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  overflow: hidden;
}

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

.page-home .entry-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .entry-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--grid);
  background: linear-gradient(180deg, rgba(18, 39, 31, .88), rgba(10, 27, 23, .88));
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .entry-steps li:hover {
  border-color: rgba(63, 224, 192, .5);
  background: linear-gradient(180deg, var(--wash), rgba(10, 27, 23, .92));
}

.page-home .entry-steps__n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--pill);
  border: 1px solid rgba(63, 224, 192, .7);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.page-home .entry-steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-home .entry-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .entry-spec {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
  border-radius: var(--r-md);
  overflow: hidden;
}

.page-home .entry-spec > div {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  background: var(--panel);
}

.page-home .entry-spec dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
}

.page-home .entry-spec dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.page-home .entry-action {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 会员对照 ---------- */
.page-home .member-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.page-home .member-figure {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 26px 22px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 122, 46, .42);
  background:
    radial-gradient(130% 110% at 0% 0%, var(--orange-wash), rgba(255, 122, 46, 0) 66%),
    linear-gradient(180deg, rgba(18, 39, 31, .94), rgba(5, 16, 13, .94));
}

.page-home .member-figure__num {
  font-family: var(--font-mono);
  font-size: 84px;
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.05em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .member-figure__unit {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--orange);
}

.page-home .member-figure__cap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 122, 46, .28);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .member-body {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .member-body > p {
  margin: 0;
  max-width: 56ch;
}

.page-home .member-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
  border-radius: var(--r-md);
  overflow: hidden;
}

.page-home .member-list li {
  display: grid;
  gap: 6px;
  padding: 15px 17px;
  background: var(--panel);
  transition: background var(--dur) var(--ease);
}

.page-home .member-list li:hover {
  background: var(--panel-2);
}

.page-home .member-list__key {
  font-family: var(--font-cn);
  font-weight: 900;
  font-size: 15.5px;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-home .member-list__val {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 整季节奏 ---------- */
.page-home .rhythm {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .rhythm-step {
  position: relative;
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 24px 20px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--grid);
  background: linear-gradient(180deg, rgba(18, 39, 31, .86), rgba(10, 27, 23, .72));
  transition: border-color var(--dur) var(--ease);
}

.page-home .rhythm-step:hover {
  border-color: rgba(63, 224, 192, .45);
}

.page-home .rhythm-step::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 34px;
  height: 2px;
  background: var(--cyan);
}

.page-home .rhythm-step__phase {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-home .rhythm-step h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.012em;
  color: var(--paper);
}

.page-home .rhythm-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .rhythm-step a {
  justify-self: start;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 224, 192, .32);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .rhythm-step a:hover,
.page-home .rhythm-step a:focus-visible {
  color: var(--cyan-soft);
  border-color: var(--cyan-soft);
}

/* ---------- 收尾 CTA ---------- */
.page-home .home-cta {
  padding: 8px 0 4px;
}

.page-home .cta-inner {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 30px 22px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(63, 224, 192, .26);
  background:
    radial-gradient(120% 140% at 86% 8%, var(--wash-2), rgba(63, 224, 192, 0) 62%),
    linear-gradient(180deg, rgba(18, 39, 31, .94), rgba(5, 16, 13, .94));
}

.page-home .cta-title {
  margin: 0 0 8px;
  font-family: var(--font-cn);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -.015em;
  color: var(--paper);
}

.page-home .cta-copy > .muted {
  margin: 0 0 10px;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.72;
}

.page-home .cta-fine {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .cta-fine a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 224, 192, .34);
}

.page-home .cta-fine a:hover {
  color: var(--cyan-soft);
}

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

/* ============================================================
   断点
   ============================================================ */

@media (min-width: 640px) {
  .page-home .cover-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .table-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

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

  .page-home .rhythm-step:last-child {
    grid-column: span 2;
  }

  .page-home .cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 34px 30px;
  }
}

@media (min-width: 900px) {
  .page-home {
    padding-bottom: 96px;
  }

  .page-home .home-tables,
  .page-home .home-archive,
  .page-home .home-entry,
  .page-home .home-member,
  .page-home .home-rhythm {
    padding: 84px 0;
  }

  .page-home .home-cover {
    padding: 34px 0 76px;
  }

  .page-home .cover-rail__num {
    font-size: 44px;
  }

  .page-home .entry-layout {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 34px;
    align-items: center;
  }

  .page-home .entry-media {
    max-width: none;
  }

  .page-home .member-layout {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 34px;
    align-items: center;
  }

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

  .page-home .rhythm-step:last-child {
    grid-column: auto;
  }
}

@media (min-width: 1080px) {
  .page-home .home-cover::before {
    inset: -30% -6% 26%;
  }

  .page-home .cover-layout {
    grid-template-columns: 168px minmax(0, 1fr) minmax(300px, 32%);
    grid-template-areas:
      "rail main  media"
      "rail index index";
    column-gap: 30px;
    row-gap: 26px;
    align-items: start;
  }

  .page-home .cover-rail {
    grid-area: rail;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-left: 20px;
    padding-top: 4px;
    border-left: 0;
    align-self: stretch;
    position: relative;
  }

  .page-home .cover-rail::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan) 0%, rgba(63, 224, 192, .18) 62%, rgba(63, 224, 192, 0) 100%);
  }

  .page-home .cover-rail__num {
    font-size: clamp(48px, 5.2vw, 74px);
    letter-spacing: -.05em;
  }

  .page-home .cover-rail__line {
    width: 1px;
    min-width: 0;
    flex: 1 1 auto;
    height: auto;
    background: linear-gradient(180deg, rgba(63, 224, 192, .4), rgba(63, 224, 192, 0));
  }

  .page-home .cover-rail__cap {
    white-space: normal;
    max-width: 12ch;
    line-height: 1.5;
  }

  .page-home .cover-main {
    grid-area: main;
  }

  .page-home .cover-main h1 {
    font-size: clamp(38px, 4.1vw, 58px);
  }

  .page-home .cover-main .lede {
    max-width: 42ch;
  }

  .page-home .cover-media {
    grid-area: media;
    aspect-ratio: 16 / 10;
    align-self: start;
  }

  .page-home .cover-index {
    grid-area: index;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .index-card {
    min-height: 104px;
  }

  .page-home .tables-media {
    aspect-ratio: 21 / 9;
    margin-top: 30px;
  }

  .page-home .table-pair {
    margin-top: 22px;
    gap: 22px;
  }

  .page-home .table-card {
    padding: 30px 28px;
  }

  .page-home .table-card::after {
    top: 30px;
    height: 48px;
  }

  .page-home .entry-layout {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 48px;
  }

  .page-home .member-figure__num {
    font-size: 104px;
  }

  .page-home .cta-inner {
    padding: 42px 40px;
  }
}

@media (min-width: 1360px) {
  .page-home .cover-layout {
    column-gap: 40px;
    row-gap: 30px;
  }

  .page-home .tables-media {
    aspect-ratio: 24 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .index-card,
  .page-home .archive-cell,
  .page-home .entry-steps li,
  .page-home .table-card__link,
  .page-home .rhythm-step {
    transition: none;
  }

  .page-home .index-card:hover,
  .page-home .index-card:focus-visible {
    transform: none;
  }
}
