.page-home {
  --home-grid-line: rgba(30, 91, 69, 0.18);
  --home-grid-line-dark: rgba(30, 91, 69, 0.55);
  --home-block: clamp(56px, 8vw, 112px);
  --home-gap: clamp(18px, 3vw, 36px);
  background-color: var(--paper);
  color: var(--ink);
}

.page-home .home-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.page-home h2,
.page-home h3 {
  font-family: var(--font-head);
  letter-spacing: 0.01em;
}

.page-home h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 800;
}

.page-home h3 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.28;
  font-weight: 700;
}

.page-home .home-table,
.page-home .home-bar-val,
.page-home .home-league-no,
.page-home .home-step-no,
.page-home .home-rhythm-no,
.page-home .timeline-year {
  font-variant-numeric: tabular-nums;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(22px, 3vw, 36px);
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--deep);
  color: var(--paper);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--home-grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line-dark) 1px, transparent 1px);
  background-size: 108px 108px;
  opacity: 0.5;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -34%;
  right: -22%;
  width: 72%;
  height: 176%;
  background: var(--deep-2);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .home-hero-wrap {
  position: relative;
  z-index: 1;
}

.page-home .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
  padding-top: clamp(22px, 3vw, 38px);
}

.page-home .home-hero-copy h1 {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: clamp(38px, 6.2vw, 78px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 15ch;
}

.page-home .home-hero-copy .lead {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-hero-figure {
  margin: 0;
  position: relative;
  border: 1px solid rgba(198, 255, 74, 0.42);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--deep-2);
}

.page-home .home-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.page-home .home-hero-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: clamp(34px, 5vw, 60px);
  border-top: 1px solid var(--line);
}

.page-home .home-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero-stat .stat-num {
  font-family: var(--font-num);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.94;
  font-weight: 700;
  color: var(--paper);
}

.page-home .home-hero-stat .stat-num-volt {
  color: var(--volt);
}

.page-home .home-hero-stat .stat-cap {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- 积分榜快照 ---------- */
.page-home .home-snapshot {
  padding-block: var(--home-block);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 128px 128px;
}

.page-home .home-snapshot-head,
.page-home .home-client-head,
.page-home .home-rhythm-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: clamp(26px, 3.5vw, 44px);
}

.page-home .sec-note {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 52ch;
}

.page-home .home-snapshot-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.page-home .home-tabs,
.page-home .home-os {
  border-top: 2px solid var(--deep);
  padding-top: 18px;
}

.page-home .segmented-panel[hidden] {
  display: none;
}

.page-home .home-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--ink);
}

.page-home .home-table-cap {
  caption-side: top;
  text-align: left;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--grey);
  padding-bottom: 12px;
}

.page-home .home-table th,
.page-home .home-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(30, 91, 69, 0.18);
  text-align: left;
  white-space: nowrap;
}

.page-home .home-table thead th {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
  border-bottom: 1px solid var(--line);
}

.page-home .home-table tbody tr:nth-child(even) {
  background: var(--mist);
}

.page-home .home-table tbody th {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--mint);
}

.page-home .home-table tbody td:first-of-type {
  font-weight: 600;
}

.page-home .home-cell-volt {
  color: var(--deep);
  font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(198, 255, 74, 0.9) 62%);
}

.page-home .home-snapshot-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-home .home-snapshot-figure {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .home-snapshot-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.page-home .home-snapshot-panel {
  background: var(--deep);
  color: var(--paper);
  padding: 22px 20px;
  border-radius: var(--r-card);
}

.page-home .home-snapshot-panel p {
  margin: 12px 0 18px;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- 联赛索引 ---------- */
.page-home .home-leagues {
  padding-block: var(--home-block);
  background: var(--deep-2);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.page-home .home-leagues::before {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -42%;
  width: 58%;
  height: 120%;
  background: var(--deep);
  border-radius: 50% 50% 0 0 / 55% 55% 0 0;
  opacity: 0.85;
  pointer-events: none;
}

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

.page-home .home-leagues-head,
.page-home .home-corners-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .home-leagues-head {
  margin-bottom: clamp(26px, 3.5vw, 44px);
}

.page-home .home-leagues .sec-note {
  color: rgba(255, 255, 255, 0.72);
}

.page-home .home-leagues-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 38px);
}

.page-home .home-leagues-figure {
  margin: 0;
  border-radius: var(--r-soft) var(--r-soft) 6px 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .home-leagues-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  opacity: 0.92;
}

.page-home .home-league-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.page-home .home-league a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 12px;
  background: var(--deep-2);
  color: var(--paper);
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-league a:hover,
.page-home .home-league a:focus-visible {
  background: var(--volt);
  color: var(--deep-2);
}

.page-home .home-league-no {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mint);
}

.page-home .home-league a:hover .home-league-no,
.page-home .home-league a:focus-visible .home-league-no {
  color: var(--deep-2);
}

.page-home .home-league-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
}

/* ---------- 电脑端资料库 ---------- */
.page-home .home-client {
  padding-block: var(--home-block);
  background: var(--paper);
}

.page-home .home-os {
  border-top-color: var(--deep);
}

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

.page-home .home-step {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--mist);
  border-radius: var(--r-card);
  border-left: 3px solid var(--volt);
}

.page-home .home-step-no {
  display: block;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--mint);
  margin-bottom: 10px;
}

.page-home .home-step h3 {
  margin: 0 0 8px;
  color: var(--deep);
}

.page-home .home-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.page-home .home-client-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(28px, 4vw, 48px);
  background: rgba(30, 91, 69, 0.22);
  border: 1px solid rgba(30, 91, 69, 0.22);
  border-radius: 10px;
  overflow: hidden;
}

.page-home .home-client-fact {
  background: var(--paper);
  padding: 22px 20px;
}

.page-home .home-fact-num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--deep);
}

.page-home .home-fact-unit {
  font-size: 0.45em;
  margin-left: 4px;
  color: var(--grey);
}

.page-home .home-client-fact p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 角球与主客场 ---------- */
.page-home .home-corners {
  padding-block: var(--home-block);
  background: var(--mist);
}

.page-home .home-corners-copy h2 {
  margin: 12px 0 16px;
}

.page-home .home-corners-copy > p {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 50ch;
}

.page-home .home-corners-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .home-corners-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .home-corners-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50% 2px 50% 2px;
}

.page-home .home-bars {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed rgba(30, 91, 69, 0.4);
}

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

.page-home .home-bar-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
}

.page-home .home-bar-label {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--deep);
}

.page-home .home-bar {
  display: block;
  height: 12px;
  background: rgba(11, 58, 43, 0.09);
  border-radius: 3px;
  overflow: hidden;
}

.page-home .home-bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--mint), var(--volt));
  border-radius: 3px;
}

.page-home .home-bar-val {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  color: var(--deep);
}

.page-home .home-corners-figure {
  margin: 0;
  align-self: start;
  border-radius: var(--r-soft) 6px var(--r-soft) 6px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(30, 91, 69, 0.25);
}

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

.page-home .home-corners-figure figcaption {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--grey);
  border-top: 1px solid rgba(30, 91, 69, 0.18);
}

/* ---------- 更新与分类 ---------- */
.page-home .home-rhythm {
  padding-block: var(--home-block);
  background: var(--deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.page-home .home-rhythm::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--home-grid-line-dark) 1px, transparent 1px);
  background-size: 100% 76px;
  opacity: 0.45;
  pointer-events: none;
}

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

.page-home .home-rhythm .sec-note {
  color: rgba(255, 255, 255, 0.72);
}

.page-home .home-rhythm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.page-home .home-rhythm-item {
  background: var(--deep-2);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--dur) var(--ease);
}

.page-home .home-rhythm-item:hover {
  background: rgba(198, 255, 74, 0.08);
}

.page-home .home-rhythm-no {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--volt);
}

.page-home .home-rhythm-item h3 {
  margin: 0;
  color: var(--paper);
}

.page-home .home-rhythm-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.page-home .home-rhythm-link {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 214, 138, 0.4);
  align-self: flex-start;
  padding-bottom: 2px;
}

.page-home .home-rhythm-link:hover,
.page-home .home-rhythm-link:focus-visible {
  color: var(--volt);
  border-bottom-color: var(--volt);
}

.page-home .home-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
  list-style: none;
  margin: clamp(30px, 4vw, 50px) 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.page-home .timeline-step {
  position: relative;
  padding-left: 16px;
}

.page-home .timeline-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
}

.page-home .timeline-year {
  display: block;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .timeline-note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- 下一步 ---------- */
.page-home .home-next {
  padding-block: clamp(48px, 6vw, 80px);
  background: var(--volt);
  color: var(--deep-2);
}

.page-home .home-next-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.page-home .home-next .eyebrow {
  color: var(--deep);
}

.page-home .home-next h2 {
  margin: 10px 0 14px;
  max-width: 20ch;
}

.page-home .home-next-copy p {
  margin: 0;
  max-width: 52ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(6, 42, 32, 0.82);
}

.page-home .home-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-next .btn-ghost {
  border-color: rgba(6, 42, 32, 0.42);
  color: var(--deep-2);
}

.page-home .home-next .btn-ghost:hover,
.page-home .home-next .btn-ghost:focus-visible {
  background: var(--deep-2);
  color: var(--paper);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .home-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .page-home .home-hero-stat {
    padding: 26px 20px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .page-home .home-hero-stat:first-child {
    padding-left: 0;
  }

  .page-home .home-hero-stat:last-child {
    border-right: 0;
  }

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

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

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

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

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

@media (min-width: 1024px) {
  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(36px, 4vw, 64px);
  }

  .page-home .home-snapshot-head,
  .page-home .home-client-head,
  .page-home .home-rhythm-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: clamp(28px, 4vw, 60px);
  }

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

  .page-home .home-leagues-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: clamp(28px, 4vw, 60px);
  }

  .page-home .home-leagues-body {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .page-home .home-corners-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
  }

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

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

  .page-home .home-next-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-home .home-next-links {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-league a,
  .page-home .home-rhythm-item {
    transition: none;
  }
}

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