.page-home {
  position: relative;
  display: block;
  background: var(--ink-900);
  color: var(--bone);
  overflow-x: hidden;
}

/* ---------- 顶部区块 ---------- */

.page-home .home-top {
  position: relative;
  padding: calc(var(--header-h) + 28px) 0 72px;
  isolation: isolate;
  overflow: hidden;
}

.page-home .home-top-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .home-top-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
}

.page-home .home-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(168, 182, 200, 0.07) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(168, 182, 200, 0.07) 0 1px, transparent 1px 64px),
    radial-gradient(900px 520px at 78% 8%, rgba(27, 77, 255, 0.28), transparent 62%),
    radial-gradient(700px 460px at 6% 88%, rgba(24, 199, 217, 0.16), transparent 66%),
    linear-gradient(180deg, rgba(7, 20, 38, 0.72) 0%, var(--ink-900) 78%);
  pointer-events: none;
}

.page-home .home-top-inner {
  position: relative;
}

.page-home .breadcrumbs {
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--rock);
}

.page-home .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(168, 182, 200, 0.5);
}

.page-home .breadcrumbs a {
  color: var(--rock);
  text-decoration: none;
}

.page-home .breadcrumbs a:hover,
.page-home .breadcrumbs a:focus-visible {
  color: var(--cyan);
}

.page-home .breadcrumbs [aria-current="page"] {
  color: var(--bone);
}

.page-home .home-top-grid {
  align-items: start;
  row-gap: 40px;
}

/* ---------- 左栏 ---------- */

.page-home .home-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(160deg, rgba(232, 238, 247, 0.09), rgba(232, 238, 247, 0.03) 52%, rgba(7, 20, 38, 0.35));
  backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.page-home .home-rail .coord {
  margin: 0;
}

.page-home .home-guide {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.page-home .home-guide .disclosure-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 2px;
  border: 0;
  background: none;
  color: var(--bone);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}

.page-home .home-guide .disclosure-icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--blue-soft);
  border-radius: 50%;
}

.page-home .home-guide .disclosure-icon::before,
.page-home .home-guide .disclosure-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  background: var(--neon);
  transform: translate(-50%, -50%);
  transition: transform 260ms ease, opacity 260ms ease;
}

.page-home .home-guide .disclosure-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-home .home-guide .disclosure-btn[aria-expanded="true"] .disclosure-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.page-home .home-guide .disclosure-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease;
}

.page-home .home-guide .disclosure-panel.is-open {
  max-height: 640px;
}

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

.page-home .home-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.page-home .home-step-no {
  display: block;
  padding-top: 2px;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.page-home .home-steps h3 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--bone);
}

.page-home .home-steps p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--rock);
}

.page-home .home-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-filter .chip {
  position: relative;
  padding: 7px 13px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  background: rgba(14, 35, 64, 0.7);
  color: var(--rock);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.page-home .home-filter .chip::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--neon);
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 200ms ease, transform 200ms ease;
}

.page-home .home-filter .chip:hover,
.page-home .home-filter .chip:focus-visible {
  color: var(--bone);
  border-color: var(--blue-soft);
}

.page-home .home-filter .chip--on,
.page-home .home-filter .chip[aria-pressed="true"] {
  color: var(--bone);
  border-color: var(--blue);
  background: rgba(27, 77, 255, 0.28);
  box-shadow: var(--glow-blue);
}

.page-home .home-filter .chip--on::after,
.page-home .home-filter .chip[aria-pressed="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.page-home .home-filter-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(168, 182, 200, 0.78);
}

/* ---------- 右栏 ---------- */

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

.page-home .home-stage .coord {
  margin: 0 0 14px;
}

.page-home .home-stage h1 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(30px, 6.2vw, 50px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.page-home .home-stage h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--blue), var(--neon));
}

.page-home .home-lede {
  max-width: 46ch;
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--rock);
}

.page-home .home-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 35, 64, 0.96), rgba(7, 20, 38, 0.96));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-home .home-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.page-home .home-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--line-mid);
}

.page-home .home-panel-count {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--neon);
}

.page-home .home-panel-sync {
  font-size: 12.5px;
  color: var(--rock);
}

.page-home .home-team-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.page-home .team-card {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: rgba(232, 238, 247, 0.04);
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.page-home .team-card:hover,
.page-home .team-card:focus-within {
  border-color: var(--blue-soft);
  border-left-color: var(--neon);
  background: rgba(27, 77, 255, 0.12);
  transform: translateX(3px);
}

.page-home .team-card-top {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
}

.page-home .team-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 900;
  color: var(--ink-950);
}

.page-home .team-badge--blue { background: var(--blue-soft); }
.page-home .team-badge--cyan { background: var(--cyan); }
.page-home .team-badge--moss { background: var(--moss); }
.page-home .team-badge--clay { background: var(--clay); }
.page-home .team-badge--orange { background: var(--orange); }

.page-home .team-card-name h2 {
  margin: 0 0 3px;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.page-home .team-card-league {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--rock);
}

.page-home .follow-btn {
  padding: 5px 11px;
  border: 1px solid var(--line-mid);
  background: transparent;
  color: var(--rock);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-home .follow-btn.is-on,
.page-home .follow-btn[aria-pressed="true"] {
  color: var(--neon);
  border-color: rgba(107, 255, 143, 0.6);
  box-shadow: var(--glow-neon);
}

.page-home .follow-btn:hover,
.page-home .follow-btn:focus-visible {
  color: var(--bone);
  border-color: var(--blue-soft);
}

.page-home .team-card-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.page-home .num-glow {
  font-size: 22px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(107, 255, 143, 0.5);
}

.page-home .num-warn {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
}

.page-home .team-card-state {
  font-size: 12px;
  color: var(--rock);
}

.page-home .home-panel-empty {
  margin: 16px 0 4px;
  padding: 16px;
  border: 1px dashed var(--line-mid);
  font-size: 13.5px;
  color: var(--rock);
  text-align: center;
}

/* ---------- 区间分布 ---------- */

.page-home .home-intervals {
  background: linear-gradient(180deg, var(--ink-900), rgba(14, 35, 64, 0.42));
}

.page-home .home-intervals .col-5 {
  align-self: center;
}

.page-home .home-intervals h2 {
  margin-bottom: 16px;
}

.page-home .home-intervals p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--rock);
}

.page-home .home-intervals .btn {
  margin-top: 6px;
}

.page-home .home-chart {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(7, 20, 38, 0.7);
  overflow: hidden;
}

.page-home .home-chart > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.9);
}

.page-home .home-chart .interval-chart {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 46px 16px 46px;
  align-items: end;
}

.page-home .interval-col {
  display: grid;
  grid-template-rows: 1fr 1fr auto;
  align-items: end;
  gap: 3px;
  height: 100%;
  cursor: default;
  transition: background-color 200ms ease;
}

.page-home .interval-col:hover {
  background: rgba(27, 77, 255, 0.14);
}

.page-home .meter {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: rgba(168, 182, 200, 0.1);
  border-bottom: 1px solid var(--line);
}

.page-home .meter-fill,
.page-home .meter-fill--loss {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  min-height: 2px;
}

.page-home .meter-fill {
  background: linear-gradient(180deg, var(--neon), rgba(107, 255, 143, 0.32));
  box-shadow: 0 0 12px rgba(107, 255, 143, 0.4);
}

.page-home .meter-fill--loss {
  background: linear-gradient(180deg, var(--orange), rgba(255, 122, 47, 0.3));
}

.page-home .interval-label {
  display: block;
  padding-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--rock);
  text-align: center;
  white-space: nowrap;
}

.page-home .home-chart .figure-caption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--rock);
}

.page-home .legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
}

.page-home .legend-dot--goal {
  background: var(--neon);
  box-shadow: 0 0 8px rgba(107, 255, 143, 0.6);
}

.page-home .legend-dot--loss {
  margin-left: 6px;
  background: var(--orange);
}

/* ---------- 版本对照 ---------- */

.page-home .home-versions h2 {
  margin-bottom: 16px;
}

.page-home .home-versions p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--rock);
}

.page-home .home-version-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(7, 20, 38, 0.6);
}

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

.page-home .home-version-figure .figure-caption {
  margin: 0;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--rock);
  border-top: 1px solid var(--line);
}

.page-home .home-version-cards {
  margin-top: 34px;
  row-gap: 20px;
}

.page-home .home-version-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(14, 35, 64, 0.66);
  border-top: 3px solid var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .home-version-card--pro {
  border-top-color: var(--neon);
}

.page-home .home-version-card h3 {
  margin: 10px 0 12px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bone);
}

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

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

.page-home .home-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--cyan);
  transform: rotate(45deg);
}

.page-home .home-version-card--pro .home-list li::before {
  border-color: var(--neon);
}

/* ---------- 周末场景 ---------- */

.page-home .home-weekend h2 {
  margin-bottom: 16px;
}

.page-home .home-weekend .col-4 p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--rock);
}

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

.page-home .home-route {
  position: relative;
  padding: 18px 18px 18px 26px;
  border-left: 1px solid var(--line-mid);
}

.page-home .home-route::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--clay);
  transform: rotate(45deg);
}

.page-home .home-route:nth-child(2)::before { background: var(--moss); }
.page-home .home-route:nth-child(3)::before { background: var(--cyan); }

.page-home .home-route-no {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .home-route h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.page-home .home-route p {
  margin: 0;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--rock);
}

/* ---------- 三步开始 ---------- */

.page-home .home-start h2 {
  margin-bottom: 14px;
}

.page-home .home-start-lede {
  max-width: 62ch;
  margin: 0 0 30px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--rock);
}

.page-home .home-start-grid {
  row-gap: 18px;
}

.page-home .home-start-card {
  position: relative;
  height: 100%;
  padding: 24px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(14, 35, 64, 0.92), rgba(7, 20, 38, 0.92));
}

.page-home .home-start-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--blue);
}

.page-home .home-start-card:nth-child(2)::after { background: var(--cyan); }

.page-home .home-start-num {
  display: block;
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(168, 182, 200, 0.55);
}

.page-home .home-start-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.page-home .home-start-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--rock);
}

.page-home .home-start-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.page-home .home-start-note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--rock);
}

.page-home .home-start-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 199, 217, 0.4);
}

.page-home .home-start-note a:hover,
.page-home .home-start-note a:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--bone);
}

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

@media (max-width: 980px) {
  .page-home .home-top {
    padding: calc(var(--header-h) + 18px) 0 54px;
  }

  .page-home .home-top-grid {
    row-gap: 32px;
  }

  .page-home .home-rail {
    clip-path: none;
    padding: 18px 16px;
  }

  .page-home .home-guide .disclosure-panel.is-open {
    max-height: 900px;
  }

  .page-home .home-lede {
    max-width: none;
  }

  .page-home .home-chart .interval-chart {
    padding: 40px 10px 44px;
  }
}

@media (max-width: 640px) {
  .page-home .home-panel {
    padding: 14px 12px;
    clip-path: none;
  }

  .page-home .team-card-top {
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
  }

  .page-home .team-badge {
    width: 30px;
    height: 30px;
    font-size: 13.5px;
  }

  .page-home .team-card-name h2 {
    font-size: 14.5px;
  }

  .page-home .num-glow,
  .page-home .num-warn {
    font-size: 19px;
  }

  .page-home .home-chart .interval-chart {
    gap: 4px;
    padding: 34px 8px 42px;
  }

  .page-home .interval-label {
    font-size: 10px;
  }

  .page-home .home-version-card {
    clip-path: none;
  }

  .page-home .home-start-links .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-home .home-filter .chip {
    font-size: 12.5px;
    padding: 6px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .team-card,
  .page-home .follow-btn,
  .page-home .home-filter .chip,
  .page-home .home-guide .disclosure-panel,
  .page-home .home-guide .disclosure-icon::before,
  .page-home .home-guide .disclosure-icon::after {
    transition: none;
  }

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