/* ================= page-home ================= */
.page-home {
  --home-cut: 20px;
  --home-line-soft: rgba(43, 58, 110, 0.6);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(28px, 5vw, 72px) 0 clamp(36px, 6vw, 88px);
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 78% 12%, rgba(123, 92, 255, 0.18), transparent 62%),
    radial-gradient(700px 420px at 8% 78%, rgba(51, 225, 222, 0.10), transparent 68%);
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 7.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
  color: var(--white);
}

.page-home .hero-title-accent {
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(51, 225, 222, 0.35);
}

.page-home .hero-lede {
  font-family: var(--font-body);
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.78;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 26px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .hero-stats .stat {
  background: var(--ink-800);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .hero-stats .stat-value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.page-home .hero-stats .stat-value small {
  font-size: 0.55em;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0;
}

.page-home .hero-stats .stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- 首屏右侧关注列表面板 ---------- */
.page-home .hero-panel {
  position: relative;
  min-width: 0;
}

.page-home .watch-console {
  position: relative;
  background: linear-gradient(160deg, var(--ink-700) 0%, var(--ink-800) 100%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  isolation: isolate;
}

.page-home .watch-console__glow {
  position: absolute;
  inset: -1px;
  background: linear-gradient(140deg, rgba(123, 92, 255, 0.5), transparent 42%, rgba(51, 225, 222, 0.35));
  opacity: 0.5;
  z-index: -1;
  filter: blur(14px);
  pointer-events: none;
}

.page-home .watch-console__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .watch-console__count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.page-home .watch-console__screen {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-900);
  aspect-ratio: 16 / 10;
}

.page-home .watch-console__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  display: block;
}

.page-home .watch-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}

.page-home .watch-grid polyline {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: home-trace 2.6s var(--ease) forwards 0.3s;
}

@keyframes home-trace {
  to { stroke-dashoffset: 0; }
}

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

.page-home .watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--home-line-soft);
}

.page-home .watch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--home-line-soft);
  font-size: 14px;
  color: var(--white);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.page-home .watch-item:hover {
  background: rgba(51, 225, 222, 0.06);
  padding-left: 10px;
}

.page-home .watch-item[hidden] {
  display: none;
}

.page-home .watch-item__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--violet);
}

.page-home .watch-item__dot--cyan { background: var(--cyan); box-shadow: 0 0 10px rgba(51, 225, 222, 0.8); }
.page-home .watch-item__dot--violet { background: var(--violet); box-shadow: 0 0 10px rgba(123, 92, 255, 0.8); }
.page-home .watch-item__dot--magenta { background: var(--magenta); box-shadow: 0 0 10px rgba(255, 61, 154, 0.8); }
.page-home .watch-item__dot--amber { background: var(--amber); box-shadow: 0 0 10px rgba(255, 194, 75, 0.8); }

.page-home .watch-item__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .watch-item__meta {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 章节通用微调 ---------- */
.page-home .section--alt {
  background: var(--ink-800);
}

.page-home .section-head--left {
  text-align: left;
  margin-inline: 0;
  max-width: 60ch;
}

.page-home .panel-index {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.12em;
}

.page-home .panel--accent {
  background: linear-gradient(120deg, rgba(123, 92, 255, 0.18), rgba(51, 225, 222, 0.08));
  border-color: rgba(123, 92, 255, 0.55);
}

.page-home .panel-body--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-home .panel-lead {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(16px, 2.6vw, 20px);
  line-height: 1.65;
  color: var(--white);
  max-width: 44ch;
}

.page-home .section-tail {
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.page-home .section-tail a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(51, 225, 222, 0.4);
}

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

/* ---------- 联赛对照 ---------- */
.page-home .filter-bar--lg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.page-home .filter-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.page-home .league-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .league-card {
  position: relative;
  background: var(--ink-900);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.page-home .league-card[hidden] {
  display: none;
}

.page-home .league-card:hover,
.page-home .league-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--violet);
  background: var(--ink-700);
  outline: none;
  box-shadow: 0 0 0 1px rgba(123, 92, 255, 0.45), 0 14px 34px -18px rgba(123, 92, 255, 0.9);
}

.page-home .league-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.page-home .league-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.page-home .league-card__bar {
  height: 4px;
  background: var(--ink-700);
  overflow: hidden;
}

.page-home .league-card__bar i {
  display: block;
  width: var(--v, 40%);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.page-home .league-card__foot {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.page-home .league-card__pop {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  background: rgba(10, 18, 48, 0.96);
  border: 1px solid var(--violet);
  padding: 10px 12px;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  pointer-events: none;
}

.page-home .league-card__pop p {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--white);
  line-height: 1.55;
}

.page-home .league-card__pop p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.page-home .league-card:hover .league-card__pop,
.page-home .league-card:focus-visible .league-card__pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-home .media-frame--glow {
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(51, 225, 222, 0.14), 0 24px 60px -34px rgba(51, 225, 222, 0.55);
}

.page-home .media-frame figcaption {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
}

.page-home .league-board + .media-frame {
  margin-top: 28px;
}

/* ---------- 球队档案 ---------- */
.page-home .team-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

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

.page-home .team-facts li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.page-home .team-facts__k {
  flex: 0 0 68px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  padding-top: 3px;
}

.page-home .panel--note {
  background: var(--ink-800);
  border-color: var(--home-line-soft);
}

.page-home .panel--note .panel-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .team-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

/* ---------- 专家栏目 ---------- */
.page-home .reading-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  position: relative;
}

.page-home .reading-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .reading-step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.page-home .reading-step__no {
  position: relative;
  z-index: 1;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  background: var(--ink-900);
  border: 1px solid var(--line);
  color: var(--violet);
  font-size: 13px;
  letter-spacing: 0.1em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.page-home .reading-step__body h3 {
  margin: 2px 0 8px;
  font-family: var(--font-editorial);
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
}

.page-home .reading-step__body p {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .reading-step__body .muted:last-child {
  margin-bottom: 0;
}

.page-home .reading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 26px;
}

.page-home .reading-actions .muted {
  font-size: 14px;
}

/* ---------- 成员共享 ---------- */
.page-home .family-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.page-home .family-roster {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 22px;
}

.page-home .roster-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.page-home .roster-row__num {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.page-home .roster-row__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.page-home .roster-row .muted {
  grid-column: 2;
  font-size: 13.5px;
  line-height: 1.6;
}

.page-home .family-note {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 规模与信任 ---------- */
.page-home .scale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-home .scale-card {
  background: var(--ink-900);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background var(--dur) var(--ease);
}

.page-home .scale-card:hover {
  background: var(--ink-700);
}

.page-home .scale-card__num {
  font-size: clamp(26px, 4.4vw, 34px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.page-home .scale-card__num small {
  font-size: 0.5em;
  color: var(--cyan);
  margin-left: 3px;
}

.page-home .scale-card__label {
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.page-home .scale-card p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.page-home .panel--trust {
  background: linear-gradient(120deg, rgba(51, 225, 222, 0.08), rgba(123, 92, 255, 0.12));
  border-color: rgba(51, 225, 222, 0.4);
}

.page-home .panel--trust .panel-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--white);
}

/* ---------- 收尾 ---------- */
.page-home .closing {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0;
  background:
    radial-gradient(760px 360px at 50% 0%, rgba(123, 92, 255, 0.22), transparent 70%),
    var(--ink-900);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.page-home .closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 58, 110, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 58, 110, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 78%);
  pointer-events: none;
}

.page-home .closing__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.page-home .closing__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 5.4vw, 40px);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
}

.page-home .closing__lede {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(14.5px, 2.3vw, 17px);
  line-height: 1.8;
  color: var(--muted);
}

.page-home .closing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.page-home .closing__meta {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .watch-grid polyline {
    stroke-dashoffset: 0;
    animation: none;
  }
  .page-home .league-card,
  .page-home .watch-item,
  .page-home .scale-card {
    transition: none;
  }
  .page-home .league-card:hover,
  .page-home .league-card:focus-visible {
    transform: none;
  }
}

/* ---------- 平板 ---------- */
@media (min-width: 700px) {
  .page-home .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-home .reading-step {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 22px;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1024px) {
  .page-home .hero {
    padding-bottom: clamp(60px, 7vw, 104px);
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
  }

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

  .page-home .team-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-home .team-visual {
    position: sticky;
    top: calc(var(--header-offset) + 24px);
  }

  .page-home .reading-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(28px, 3.6vw, 52px);
  }

  .page-home .reading-step {
    border-bottom: 1px solid var(--line);
  }

  .page-home .family-split {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

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

  .page-home .roster-row {
    grid-template-columns: 46px minmax(0, 200px) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .roster-row .muted {
    grid-column: 3;
    text-align: right;
  }
}

/* ---------- 超宽 ---------- */
@media (min-width: 1360px) {
  .page-home .league-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

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