.page-home {
  --home-pad: clamp(20px, 5vw, 48px);
  --home-gap: clamp(56px, 8vw, 104px);
  --home-line: 1px solid var(--hair);
  background: var(--ink-950);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
}

.page-home h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(25px, 4.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ice);
}

.page-home h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ice);
}

.page-home p {
  margin: 0;
}

.page-home a {
  color: inherit;
}

.page-home .home-band {
  padding: var(--home-gap) var(--home-pad);
  border-top: var(--home-line);
}

.page-home .home-band__inner {
  max-width: var(--shell);
  margin: 0 auto;
}

.page-home .home-sec-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.page-home .home-sec-head__lead {
  color: var(--ice-dim);
  font-size: 16px;
  max-width: 40em;
}

/* ---------- 01 首屏 ---------- */

.page-home .home-hero {
  padding: 0 var(--home-pad);
  border-bottom: var(--home-line);
  background:
    radial-gradient(120% 90% at 82% 10%, rgba(43, 245, 200, 0.12), transparent 62%),
    var(--ink-950);
}

.page-home .home-hero__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.page-home .home-hero__console {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(30px, 6vw, 64px) 0 clamp(26px, 5vw, 56px);
}

.page-home .home-hero__context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-home .home-hero__context-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(43, 245, 200, 0.16);
}

.page-home h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ice);
}

.page-home .home-hero__lead {
  color: var(--ice-dim);
  font-size: 16px;
  max-width: 34em;
}

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

.page-home .home-hero__actions .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 15px;
  border-radius: var(--radius);
}

.page-home .home-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan-soft);
  margin-top: 4px;
}

.page-home .home-hero__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pulse);
  animation: home-blink 2.6s var(--ease) infinite;
}

.page-home .home-hero__meta {
  list-style: none;
  margin: 10px 0 0;
  padding: 18px 0 0;
  border-top: var(--home-line);
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--ice-dim);
}

.page-home .home-hero__meta li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: baseline;
}

.page-home .home-hero__meta-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .home-hero__board {
  position: relative;
  min-height: 400px;
  margin-bottom: 26px;
  border: 2px solid var(--line);
  border-bottom-left-radius: 30px;
  background: var(--ink-900);
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.68) contrast(1.08);
}

.page-home .home-hero__board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(200deg, rgba(6, 17, 14, 0.2) 0%, rgba(6, 17, 14, 0.72) 46%, rgba(6, 17, 14, 0.94) 100%),
    repeating-linear-gradient(90deg, rgba(43, 245, 200, 0.07) 0 1px, transparent 1px 58px);
  pointer-events: none;
}

.page-home .home-hero__trace {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.page-home .trace-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.4;
  stroke-dasharray: 5 11;
  opacity: 0.55;
}

.page-home .trace-line--alt {
  stroke: var(--pulse);
  opacity: 0.34;
}

.page-home .trace-dot {
  fill: var(--cyan);
}

.page-home .trace-dot--ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: home-ripple 3s var(--ease) infinite;
}

.page-home .board {
  position: relative;
  z-index: 3;
  padding: clamp(22px, 4.5vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 400px;
  justify-content: flex-end;
}

.page-home .board__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .board__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(84px, 17vw, 168px);
  line-height: 0.84;
  letter-spacing: -0.05em;
  color: var(--cyan);
  text-shadow: 0 0 44px rgba(43, 245, 200, 0.34);
  animation: home-flip 900ms var(--ease) both;
  transform-origin: 50% 100%;
}

.page-home .board__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--cyan-soft);
}

.page-home .board__cells {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.page-home .board__cells li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .board__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.1;
  color: var(--ice);
}

.page-home .board__unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

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

.page-home .home-leagues__deco {
  position: relative;
  height: clamp(96px, 16vw, 150px);
  margin-bottom: 30px;
  border: 2px solid var(--line);
  border-bottom-left-radius: 24px;
  overflow: hidden;
  background: var(--ink-900);
}

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

.page-home .home-leagues__deco::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink-950) 0%, rgba(6, 17, 14, 0.1) 45%, var(--ink-950) 100%);
  pointer-events: none;
}

.page-home .league-grid {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .league-item {
  position: relative;
  padding: 22px 22px 24px;
  border: 2px solid var(--line);
  border-bottom-left-radius: 22px;
  background: linear-gradient(158deg, var(--ink-880) 0%, var(--ink-900) 78%);
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}

.page-home .league-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 38px;
  height: 2px;
  background: var(--cyan);
}

.page-home .league-item:hover,
.page-home .league-item:focus-within {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.page-home .league-item__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--pulse);
  margin-bottom: 8px;
}

.page-home .league-item__desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ice-dim);
}

.page-home .league-item__meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--hair);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 03 伤停速览 ---------- */

.page-home .home-injury__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .home-injury__intro {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
}

.page-home .home-injury__intro p {
  color: var(--ice-dim);
  font-size: 16px;
  max-width: 34em;
}

.page-home .home-injury__intro .btn {
  margin-top: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font-size: 15px;
}

.page-home .home-injury__table {
  border: 2px solid var(--line);
  border-bottom-left-radius: 24px;
  background: var(--ink-900);
  overflow-x: auto;
}

.page-home .home-injury__table table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .home-injury__table caption {
  caption-side: top;
  text-align: left;
  padding: 16px 18px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .home-injury__table th,
.page-home .home-injury__table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--hair);
}

.page-home .home-injury__table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: none;
  background: var(--ink-800);
}

.page-home .home-injury__table tbody th {
  font-weight: 700;
  color: var(--cyan-soft);
  white-space: nowrap;
}

.page-home .home-injury__table tbody td {
  color: var(--ice-dim);
}

.page-home .home-injury__table .num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ice);
  text-align: right;
  white-space: nowrap;
}

.page-home .home-injury__table tfoot th,
.page-home .home-injury__table tfoot td {
  border-top: 2px solid var(--line-strong);
  background: var(--ink-850);
  color: var(--ice);
}

.page-home .home-injury__table tfoot th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ---------- 04 周末双场 ---------- */

.page-home .timeline {
  list-style: none;
  margin: 38px 0 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 20px;
}

.page-home .timeline__node {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-bottom-left-radius: 20px;
  background: var(--ink-900);
  transition: border-color 260ms var(--ease), background 260ms var(--ease);
}

.page-home .timeline__node::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 26px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-950);
  border: 2px solid var(--cyan);
  transition: background 260ms var(--ease), transform 260ms var(--ease);
}

.page-home .timeline__node:hover,
.page-home .timeline__node:focus-within {
  border-color: var(--line-strong);
  background: var(--ink-880);
}

.page-home .timeline__node:hover::before {
  background: var(--pulse);
  border-color: var(--pulse);
  transform: scale(1.25);
}

.page-home .timeline__time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pulse);
}

.page-home .timeline__body {
  display: grid;
  gap: 8px;
}

.page-home .timeline__body p {
  font-size: 15px;
  color: var(--ice-dim);
}

.page-home .timeline__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .home-weekend__foot {
  margin-top: 28px;
}

.page-home .home-weekend__foot .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font-size: 15px;
}

/* ---------- 05 更新节奏 ---------- */

.page-home .home-cadence {
  position: relative;
  padding: var(--home-gap) var(--home-pad);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--ink-900);
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-cadence__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-home .home-cadence__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.page-home .home-cadence__lead {
  max-width: 38em;
  color: var(--ice-dim);
}

.page-home .cadence-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .cadence-item {
  padding: 18px;
  border: 2px solid var(--line);
  border-bottom-left-radius: 18px;
  background: rgba(11, 31, 25, 0.86);
  transition: border-color 260ms var(--ease);
}

.page-home .cadence-item:hover {
  border-color: var(--line-strong);
}

.page-home .cadence-item__time {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cyan);
}

.page-home .cadence-item__name {
  margin-top: 6px;
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ice);
}

.page-home .cadence-item p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ice-dim);
}

.page-home .coverage-stats {
  list-style: none;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

.page-home .coverage-stats__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 30px);
  line-height: 1.1;
  color: var(--cyan-soft);
}

.page-home .coverage-stats__unit {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .coverage-stats__desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ice-dim);
}

/* ---------- 06 入口与帮助 ---------- */

.page-home .home-help__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.page-home .home-help__figure {
  margin: 0;
  border: 2px solid var(--line);
  border-bottom-left-radius: 24px;
  overflow: hidden;
  background: var(--ink-900);
}

.page-home .home-help__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.86;
}

.page-home .home-help__figure figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-top: 1px solid var(--hair);
}

.page-home .home-help__body {
  display: grid;
  gap: 16px;
}

.page-home .home-help__body > p {
  color: var(--ice-dim);
  max-width: 36em;
}

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

.page-home .help-links a {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-bottom-left-radius: 18px;
  background: var(--ink-900);
  text-decoration: none;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}

.page-home .help-links a:hover,
.page-home .help-links a:focus-visible {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.page-home .help-links__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--cyan-soft);
}

.page-home .help-links__desc {
  font-size: 14px;
  color: var(--ice-dim);
}

/* ---------- 动效 ---------- */

@keyframes home-flip {
  0% {
    opacity: 0;
    transform: rotateX(-72deg) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

@keyframes home-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}

@keyframes home-ripple {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* ---------- 响应式 ---------- */

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

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

  .page-home .timeline__node {
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: start;
  }

  .page-home .timeline__time {
    padding-top: 3px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: 5fr 7fr;
    align-items: stretch;
    gap: 0;
  }

  .page-home .home-hero__console {
    padding-right: clamp(24px, 4vw, 48px);
    padding-top: clamp(48px, 6vw, 84px);
    padding-bottom: clamp(40px, 5vw, 72px);
    border-right: var(--home-line);
  }

  .page-home .home-hero__board {
    margin: 26px 0 26px clamp(24px, 4vw, 48px);
    min-height: 520px;
  }

  .page-home .board {
    min-height: 520px;
  }

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

  .page-home .league-item:nth-child(even) {
    margin-top: 26px;
  }

  .page-home .home-injury__grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .home-help__grid {
    grid-template-columns: 6fr 6fr;
    gap: 44px;
    align-items: center;
  }

  .page-home .coverage-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .page-home .timeline {
    padding-left: 34px;
  }

  .page-home .timeline__node::before {
    left: -41px;
  }

  .page-home .timeline__node:nth-child(even) {
    margin-left: 28px;
  }
}

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

  .page-home .timeline__node:nth-child(even) {
    margin-left: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transform: none !important;
  }
}
