.page-home {
  --home-gap: clamp(14px, 2vw, 24px);
  --home-sect: clamp(44px, 6.5vw, 88px);
  color: var(--paper);
  overflow-x: hidden;
}

/* ---------- 面包屑与首屏 ---------- */

.page-home .home-top {
  padding-top: clamp(20px, 3.6vw, 44px);
}

.page-home .crumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .crumb-list li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--line);
}

.page-home .crumb-list a {
  color: inherit;
  text-decoration: none;
}

.page-home .crumb-list a:hover {
  color: var(--cyan);
}

.page-home .masthead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.6vw, 32px);
  margin-top: clamp(20px, 3.4vw, 40px);
}

@media (min-width: 960px) {
  .page-home .masthead-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
    align-items: end;
  }
}

.page-home .masthead-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: clamp(12px, 1.8vw, 20px) 0 0;
  color: var(--paper);
  max-width: 17ch;
}

.page-home .masthead-lead {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.78;
  color: var(--muted);
  max-width: 42ch;
  border-left: 2px solid var(--cyan);
  padding-left: 16px;
}

/* ---------- 赛季状态条 ---------- */

.page-home .season-strip {
  margin-top: clamp(26px, 3.6vw, 46px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--panel);
}

@media (min-width: 780px) {
  .page-home .season-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .strip-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.page-home .strip-cell--version {
  background: linear-gradient(135deg, rgba(36, 224, 210, 0.09), transparent 68%);
}

.page-home .strip-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .strip-val {
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.3;
}

.page-home .strip-val.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .strip-val--state {
  display: inline-flex;
}

/* ---------- 通用段落头部 ---------- */

.page-home .home-section {
  padding: clamp(38px, 5.6vw, 78px) 0 0;
}

.page-home .sec-head {
  display: grid;
  gap: 10px;
  max-width: 62ch;
}

.page-home .sec-head--split {
  max-width: none;
  gap: clamp(16px, 2.4vw, 28px);
}

@media (min-width: 880px) {
  .page-home .sec-head--split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.page-home .sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.008em;
  margin: 0;
  color: var(--paper);
}

.page-home .sec-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}

.page-home .sec-head--split .btn {
  justify-self: start;
}

@media (min-width: 880px) {
  .page-home .sec-head--split .btn {
    justify-self: end;
    margin-bottom: 4px;
  }
}

/* ---------- 联赛索引 ---------- */

.page-home .league-rail {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: clamp(20px, 2.8vw, 32px) 0 0;
  padding: 2px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-home .league-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-home .league-chip a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--ink-deep);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .league-chip a:hover,
.page-home .league-chip a:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.page-home .league-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: linear-gradient(135deg, var(--c, var(--violet)), var(--magenta));
  box-shadow: 0 0 8px -1px var(--c, var(--violet));
}

.page-home .rail-jump {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.page-home .rail-jump a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.page-home .rail-jump a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 氛围条带 ---------- */

.page-home .court-band {
  position: relative;
  margin: clamp(30px, 4.6vw, 56px) 0 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.page-home .court-band img {
  display: block;
  width: 100%;
  height: clamp(170px, 24vw, 330px);
  object-fit: cover;
}

.page-home .court-band figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(10, 16, 48, 0.94) 20%, rgba(10, 16, 48, 0) 100%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

/* ---------- 球队卡片 ---------- */

.page-home .roster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  margin-top: clamp(22px, 3vw, 38px);
}

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

@media (min-width: 1060px) {
  .page-home .roster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .team-card--lead {
    grid-column: span 2;
  }
  .page-home .team-card:nth-child(3) {
    margin-top: 28px;
  }
  .page-home .team-card:nth-child(5) {
    margin-top: -20px;
  }
}

.page-home .team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .team-card:hover,
.page-home .team-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--cyan);
}

.page-home .team-card--lead {
  background: linear-gradient(155deg, rgba(123, 61, 255, 0.16), transparent 58%), var(--panel);
}

.page-home .team-card__media {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.page-home .team-card__media img {
  display: block;
  width: 100%;
  height: clamp(150px, 22vw, 240px);
  object-fit: cover;
}

.page-home .team-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 24px);
  flex: 1 1 auto;
}

.page-home .team-card__league {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .team-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.page-home .team-card__name a {
  color: var(--paper);
  text-decoration: none;
}

.page-home .team-card__name a:hover {
  color: var(--cyan);
}

.page-home .team-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 4px 0 0;
  padding: 1px;
  background: var(--line);
}

.page-home .team-card__stats > div {
  background: var(--ink);
  padding: 10px 12px;
}

.page-home .team-card__stats dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.page-home .team-card__stats dd {
  margin: 0;
  font-size: 15px;
  color: var(--paper);
}

.page-home .team-card__stats dd.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.page-home .team-card__hover {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-left: 2px solid transparent;
  padding-left: 0;
  transition: max-height 0.24s var(--ease), opacity 0.24s var(--ease), padding-left 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-home .team-card:hover .team-card__hover,
.page-home .team-card:focus-within .team-card__hover {
  max-height: 90px;
  opacity: 1;
  padding-left: 12px;
  border-left-color: var(--orange);
}

/* ---------- 三条路径 ---------- */

.page-home .path-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  list-style: none;
  margin: clamp(22px, 3vw, 38px) 0 0;
  padding: 1px;
  background: var(--line);
}

@media (min-width: 820px) {
  .page-home .path-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .path-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ink);
  padding: clamp(20px, 2.6vw, 32px);
}

.page-home .path-no {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}

.page-home .path-item:nth-child(2) .path-no {
  color: var(--cyan);
}

.page-home .path-item:nth-child(3) .path-no {
  color: var(--orange);
}

.page-home .path-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
}

.page-home .path-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  flex: 1 1 auto;
}

.page-home .path-link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.18s var(--ease);
}

.page-home .path-link:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 移动端 ---------- */

.page-home .mobile-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(10, 16, 48, 0.5), rgba(20, 28, 70, 0.9));
  padding: clamp(20px, 3vw, 40px);
}

@media (min-width: 820px) {
  .page-home .mobile-panel {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
  }
}

.page-home .mobile-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--ink-deep);
}

.page-home .mobile-figure img {
  display: block;
  width: 100%;
  height: clamp(240px, 34vw, 420px);
  object-fit: cover;
  object-position: top center;
}

.page-home .mobile-copy {
  display: grid;
  gap: 12px;
}

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

.page-home .step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .step-no {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.page-home .mobile-copy .btn {
  justify-self: start;
  margin-top: 6px;
}

/* ---------- 更新摘要 ---------- */

.page-home .update-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(22px, 3vw, 38px);
}

@media (min-width: 980px) {
  .page-home .update-layout {
    grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.58fr);
    align-items: start;
  }
}

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

.page-home .update-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "ver round tag"
    "desc desc desc";
  gap: 6px 14px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .page-home .update-row {
    grid-template-columns: 96px 92px minmax(0, 1fr) auto;
    grid-template-areas: "ver round desc tag";
    gap: 16px;
  }
}

.page-home .update-ver {
  grid-area: ver;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

.page-home .update-round {
  grid-area: round;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.page-home .update-desc {
  grid-area: desc;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--paper);
}

.page-home .update-row .tag {
  grid-area: tag;
  justify-self: start;
}

.page-home .version-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--ink-deep);
}

.page-home .version-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .version-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 窄屏收敛 ---------- */

@media (max-width: 560px) {
  .page-home .masthead-title {
    font-size: clamp(28px, 8.4vw, 38px);
    max-width: none;
  }

  .page-home .masthead-lead {
    border-left-width: 2px;
    padding-left: 12px;
  }

  .page-home .league-rail {
    margin-inline: calc(var(--pad-x) * -1);
    padding-inline: var(--pad-x);
  }

  .page-home .team-card__stats {
    grid-template-columns: 1fr;
  }

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

  .page-home .court-band figcaption {
    background: rgba(10, 16, 48, 0.9);
    right: 0;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .team-card,
  .page-home .league-chip a,
  .page-home .team-card__hover {
    transition: none;
  }

  .page-home .team-card:hover,
  .page-home .team-card:focus-within {
    transform: none;
  }

  .page-home .league-chip a:hover,
  .page-home .league-chip a:focus-visible {
    transform: none;
  }
}

.page-home {
  --c: none;
}
