/* ============ 首页 page-home ============ */
.page-home {
  --home-band: 6px;
  --home-inline: clamp(20px, 4vw, 56px);
  --home-sec-pad: clamp(56px, 7vw, 110px);
  --home-gap: clamp(28px, 4vw, 52px);
  display: block;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .home-band {
  height: var(--home-band);
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 44%, var(--cyan) 72%, var(--lime) 100%);
}

/* ---------- 01 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 104px);
  padding-inline: var(--home-inline);
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(0, 87, 255, 0.42), transparent 62%),
    linear-gradient(90deg, rgba(10, 14, 26, 0.94) 0%, rgba(10, 14, 26, 0.72) 52%, rgba(10, 14, 26, 0.95) 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 182, 217, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 182, 217, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: end;
}

.page-home .home-hero__context {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 3vw, 28px);
  padding: 8px 12px;
  border: 2px solid rgba(168, 182, 217, 0.32);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.page-home .home-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.page-home .home-hero__title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.page-home .home-hero__mark {
  margin-top: 0.16em;
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--lime);
}

.page-home .home-hero__lede {
  max-width: 54ch;
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.86);
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin: clamp(24px, 3vw, 36px) 0 0;
}

.page-home .home-hero__stat {
  border-top: 3px solid var(--blue);
  padding-top: 10px;
}

.page-home .home-hero__stat-num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  color: var(--white);
}

.page-home .home-hero__stat-label {
  font-size: 0.8rem;
  color: var(--steel);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.page-home .home-hero__actions .btn--ghost {
  border-color: var(--white);
  color: var(--white);
}

.page-home .home-hero__actions .btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.page-home .home-hero__aside {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 2px solid rgba(168, 182, 217, 0.36);
  background: rgba(6, 16, 51, 0.72);
}

.page-home .home-hero__vertical {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  letter-spacing: 0.2em;
  color: var(--lime);
}

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

.page-home .home-hero__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.9);
}

.page-home .home-hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--cyan);
}

/* ---------- 章节通用 ---------- */
.page-home .home-sec {
  position: relative;
  padding-block: var(--home-sec-pad);
  padding-inline: var(--home-inline);
}

.page-home .home-sec__inner {
  max-width: var(--read);
  margin-inline: auto;
}

.page-home .home-sec__inner--wide {
  max-width: var(--shell);
}

.page-home .home-sec--ice {
  background: var(--ice);
}

.page-home .home-sec--dark {
  background: var(--ink);
  color: var(--white);
}

.page-home .home-sec--plain {
  background: var(--white);
}

.page-home .home-sec__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
  align-items: start;
  margin-bottom: var(--home-gap);
}

.page-home .home-sec__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 0.88;
  color: var(--blue);
}

@supports ((-webkit-text-stroke: 1px #000)) {
  .page-home .home-sec__num {
    color: transparent;
    -webkit-text-stroke: 2px var(--blue);
  }
  .page-home .home-sec--dark .home-sec__num {
    -webkit-text-stroke-color: var(--cyan);
  }
}

.page-home .home-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.page-home .home-lede {
  max-width: 60ch;
  margin: 14px 0 0;
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-sec--dark .home-lede {
  color: var(--steel);
}

/* ---------- 02 筛选控制台 ---------- */
.page-home .home-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 32px);
}

.page-home .home-console {
  padding: clamp(18px, 2.6vw, 30px);
  border: var(--bd) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

.page-home .home-console__layer + .home-console__layer {
  margin-top: clamp(18px, 2.4vw, 26px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 2px dashed var(--steel);
}

.page-home .home-console__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .home-console__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.page-home .home-console__hint {
  margin: 12px 0 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.page-home .home-chip {
  appearance: none;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.page-home .home-chip:hover {
  transform: translateY(-2px);
  box-shadow: 3px 4px 0 var(--ink);
}

.page-home .home-chip[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
  box-shadow: inset 0 -5px 0 var(--lime);
}

.page-home .home-chip:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

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

.page-home .home-summary {
  padding: 20px;
  border: var(--bd) solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.page-home .home-summary__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.page-home .home-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(168, 182, 217, 0.28);
  font-size: 0.9rem;
}

.page-home .home-summary__row:last-of-type {
  border-bottom: 0;
}

.page-home .home-summary__key {
  color: var(--steel);
}

.page-home .home-summary__val {
  font-family: var(--font-mono);
  color: var(--white);
}

.page-home .home-summary__foot {
  margin: 14px 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .home-shot {
  margin: 0;
  border: var(--bd) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

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

.page-home .home-shot figcaption {
  padding: 12px 14px;
  border-top: 2px solid var(--ice);
  font-size: 0.82rem;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- 03 联赛卡片带 ---------- */
.page-home .home-deck {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(248px, 76%);
  gap: 16px;
  padding: 10px 2px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-deck > * {
  scroll-snap-align: start;
}

.page-home .home-league {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px 18px 18px;
  border: var(--bd) solid var(--ink);
  background: var(--white);
  color: var(--ink);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.page-home .home-league:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.page-home .home-sec--dark .home-league:hover {
  box-shadow: 6px 8px 0 var(--blue);
}

.page-home .home-league__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.page-home .home-league__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1;
}

.page-home .home-league__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.74;
  color: var(--muted);
}

.page-home .home-league__count {
  margin: 0;
  padding-top: 10px;
  border-top: 2px solid var(--ice);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
}

.page-home .home-league .path-line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transition: background var(--t-base) var(--ease);
}

.page-home .home-league:hover .path-line {
  background: linear-gradient(90deg, var(--blue), var(--lime));
}

.page-home .home-deck__note {
  margin: 6px 0 0;
  max-width: 62ch;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--steel);
}

/* ---------- 04 动线对比 ---------- */
.page-home .home-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.5vw, 42px);
  align-items: center;
}

.page-home .home-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  border: var(--bd) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

.page-home .home-diagram__long {
  fill: none;
  stroke: var(--steel);
  stroke-width: 3;
  stroke-dasharray: 10 8;
}

.page-home .home-diagram__short {
  fill: none;
  stroke: url(#homeRouteGrad);
  stroke-width: 6;
  stroke-linecap: round;
}

.page-home .home-diagram__node {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 3;
}

.page-home .home-diagram__text {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--muted);
}

.page-home .home-route__stat {
  display: inline-block;
  margin: 4px 0 8px;
  border-bottom: 6px solid var(--lime);
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1;
  color: var(--ink);
}

.page-home .home-route__stat-label {
  display: block;
  max-width: 56ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-route__link {
  margin: 18px 0 0;
}

.page-home .home-route__figure {
  margin: 0;
  border: var(--bd) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

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

.page-home .home-route__figure figcaption {
  padding: 12px 14px;
  border-top: 2px solid var(--ice);
  font-size: 0.82rem;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- 05 专家专栏 ---------- */
.page-home .home-expert {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 34px);
}

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

.page-home .home-expert__item {
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--blue);
}

.page-home .home-expert__item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.page-home .home-expert__item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.76;
  color: var(--muted);
}

.page-home .home-subscribe {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: var(--bd) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

.page-home .home-subscribe__flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.page-home .home-subscribe__flag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

.page-home .home-subscribe p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.76;
  color: var(--muted);
}

/* ---------- 06 版本与帮助 ---------- */
.page-home .home-version {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 36px);
}

.page-home .home-version__panel {
  border: 2px solid rgba(168, 182, 217, 0.4);
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(18px, 2.4vw, 26px);
}

.page-home .home-vline {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(168, 182, 217, 0.25);
}

.page-home .home-vline:first-child {
  padding-top: 0;
}

.page-home .home-vline:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .home-vline__name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.page-home .home-vline__num {
  display: inline-block;
  margin: 0;
  border-bottom: 4px solid var(--lime);
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  color: var(--white);
}

.page-home .home-vline__desc {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--steel);
}

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

.page-home .home-panel .panel__item {
  border: 2px solid rgba(168, 182, 217, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .home-panel .panel__trigger {
  color: var(--white);
}

.page-home .home-panel .panel__content {
  color: var(--steel);
  line-height: 1.78;
}

.page-home .home-version__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

/* ---------- 07 口径与地域 ---------- */
.page-home .home-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.page-home .home-meta__rows {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.page-home .home-meta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ice);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-home .home-meta__key {
  min-width: 84px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.page-home .home-meta__val {
  color: var(--muted);
}

.page-home .home-meta__more {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 0;
}

.page-home .home-meta__figure {
  margin: 0;
  border: var(--bd) solid var(--ink);
  background: var(--navy);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

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

.page-home .home-icp {
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding-top: 14px;
  border-top: 6px solid var(--blue);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-home .home-deck {
    grid-auto-columns: minmax(258px, 42%);
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 2.05fr) minmax(228px, 1fr);
    gap: clamp(32px, 4vw, 64px);
  }

  .page-home .home-hero__vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    height: clamp(120px, 15vw, 176px);
  }

  .page-home .home-route {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .page-home .home-expert {
    grid-template-columns: minmax(0, 1.68fr) minmax(258px, 1fr);
    gap: clamp(28px, 3.5vw, 44px);
    align-items: start;
  }

  .page-home .home-version {
    grid-template-columns: minmax(258px, 1fr) minmax(0, 1.68fr);
    gap: clamp(28px, 3.5vw, 48px);
    align-items: start;
  }

  .page-home .home-meta {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1000px) {
  .page-home .home-filter {
    grid-template-columns: minmax(0, 1.72fr) minmax(258px, 1fr);
    gap: clamp(28px, 3.4vw, 44px);
    align-items: start;
  }

  .page-home .home-deck {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 18px;
    padding: 26px 2px 34px;
    overflow: visible;
  }

  .page-home .home-league:nth-child(2) {
    transform: translateY(18px);
  }

  .page-home .home-league:nth-child(3) {
    transform: translateY(-6px) rotate(-1.4deg);
  }

  .page-home .home-league:nth-child(4) {
    transform: translateY(24px) rotate(1deg);
  }

  .page-home .home-league:nth-child(5) {
    transform: translateY(-2px);
  }

  .page-home .home-league:hover {
    transform: translateY(-6px) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-chip,
  .page-home .home-league,
  .page-home .home-league .path-line {
    transition: background var(--t-fast) linear, box-shadow var(--t-fast) linear;
  }

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