.page-home {
  --home-radius: 20px;
  --home-shadow: 0 22px 48px rgba(4, 10, 26, 0.55);
  padding-bottom: 48px;
}

.page-home [id] {
  scroll-margin-top: calc(var(--hdr-h) + 20px);
}

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

.page-home .home-context {
  padding-top: 18px;
}

.page-home .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
}

.page-home .breadcrumbs a {
  color: var(--mist);
  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(--cream);
}

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

.page-home .home-top {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 26px;
  padding-top: 20px;
  padding-bottom: 12px;
}

.page-home .home-top::before {
  content: "";
  position: absolute;
  inset: -60px -20px auto -20px;
  height: 460px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 70% at 16% 0%, rgba(46, 242, 216, 0.16), transparent 70%),
    radial-gradient(52% 62% at 94% 10%, rgba(255, 106, 31, 0.15), transparent 72%);
}

.page-home .home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(46, 242, 216, 0.07);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
}

.page-home .home-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: home-pulse 2.4s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.page-home .home-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 7.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  color: var(--cream);
  transform: skewX(-3deg);
  transform-origin: left bottom;
}

.page-home .home-lede {
  margin: 0 0 20px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
}

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

.page-home .home-hint {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 560px;
}

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

.page-home .home-shot,
.page-home .ranks-shot,
.page-home .blue-shot,
.page-home .commute-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--field);
  margin: 0;
}

.page-home .home-shot {
  aspect-ratio: 4 / 5;
}

.page-home .ranks-shot {
  aspect-ratio: 4 / 3;
}

.page-home .blue-shot {
  aspect-ratio: 3 / 2;
  border-color: rgba(255, 255, 255, 0.22);
}

.page-home .home-shot img,
.page-home .ranks-shot img,
.page-home .blue-shot img,
.page-home .commute-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(7, 16, 33, 0.88));
}

.page-home .home-rail {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(18, 34, 77, 0.9), rgba(10, 20, 48, 0.72));
}

.page-home .home-rail::-webkit-scrollbar {
  display: none;
}

.page-home .home-rail-title {
  display: none;
}

.page-home .home-rail a {
  flex: 0 0 auto;
  padding: 7px 12px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--mist);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.22s ease, background 0.22s ease;
}

.page-home .home-rail a:hover,
.page-home .home-rail a:focus-visible {
  color: var(--midnight);
  background: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 章节通用 ---------- */

.page-home h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.3px;
  color: var(--cream);
}

.page-home .sec-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.page-home .sec-head h2 {
  transform: skewX(-2deg);
  transform-origin: left bottom;
}

.page-home .sec-lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 排名速览 ---------- */

.page-home .filter-bar {
  display: flex;
  gap: 8px;
  padding: 2px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .filter-bar::-webkit-scrollbar {
  display: none;
}

.page-home .filter-bar .filter-chip {
  flex: 0 0 auto;
}

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

.page-home .rank-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--home-radius);
  border: 1px solid var(--line);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.page-home .rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(120deg, transparent 38%, rgba(46, 242, 216, 0.16) 50%, transparent 62%);
  transition: opacity 0.3s ease;
}

.page-home .rank-card:hover,
.page-home .rank-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--glass-line);
  box-shadow: var(--home-shadow);
}

.page-home .rank-card:hover::after {
  opacity: 1;
}

.page-home .rank-card--lead {
  background: linear-gradient(160deg, rgba(30, 79, 168, 0.55), rgba(18, 34, 77, 0.96));
  border-color: rgba(46, 242, 216, 0.3);
}

.page-home .rank-card--lead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.page-home .rank-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.page-home .is-up .rank-arrow {
  color: var(--green);
  font-weight: 700;
}

.page-home .is-down .rank-arrow {
  color: var(--orange);
  font-weight: 700;
}

.page-home .rank-points {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 12px;
}

.page-home .rank-points .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 11vw, 52px);
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.page-home .rank-unit {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .rank-meta {
  list-style: none;
  margin: 0 0 12px;
  padding: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
}

.page-home .rank-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--mist);
}

.page-home .rank-meta strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
}

.page-home .spark {
  display: block;
  width: 100%;
  height: 40px;
  color: var(--cyan);
}

.page-home .spark.is-down {
  color: var(--orange);
}

.page-home .spark polyline {
  stroke: currentColor;
  filter: drop-shadow(0 0 6px currentColor);
}

.page-home .ranks-shot {
  margin-top: 22px;
}

/* ---------- 服务中心 ---------- */

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

.page-home .path-card,
.page-home .service-card {
  padding: 20px;
  border-radius: var(--home-radius);
  border: 1px solid var(--line);
}

.page-home .service-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
}

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

.page-home .step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.page-home .step-num {
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  background: rgba(46, 242, 216, 0.08);
  border: 1px solid var(--glass-line);
  border-radius: 8px;
}

.page-home .step h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
}

.page-home .step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .tick-list {
  list-style: none;
  margin: 14px 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .tick-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream);
}

.page-home .tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(46, 242, 216, 0.8);
  transform: rotate(45deg);
}

/* ---------- 底部蓝色入口区 ---------- */

.page-home .blue-gate {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 22px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(46, 242, 216, 0.32);
  background: linear-gradient(140deg, rgba(30, 79, 168, 0.92) 0%, rgba(30, 79, 168, 0.5) 46%, rgba(10, 20, 48, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(30, 79, 168, 0.5),
    0 26px 60px rgba(30, 79, 168, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.page-home .blue-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.page-home .blue-gate > * {
  position: relative;
}

.page-home .blue-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .blue-gate p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(242, 239, 230, 0.9);
}

.page-home .blue-gate h2 {
  color: #fff;
}

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

/* ---------- 通勤模式 ---------- */

.page-home .commute {
  display: grid;
  gap: 20px;
}

.page-home .commute-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 20, 48, 0.08), rgba(10, 20, 48, 0.72));
}

.page-home .commute-body h2 {
  margin-top: 12px;
}

.page-home .commute-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

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

.page-home .commute-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--cream);
}

.page-home .commute-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- 订阅之后 ---------- */

.page-home .after-list {
  margin-bottom: 22px;
}

.page-home .after-list .step {
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(18, 34, 77, 0.55);
}

.page-home .after-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 延伸入口 ---------- */

.page-home .more-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.page-home .more-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(18, 34, 77, 0.6);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.page-home .more-card::after {
  content: "进入 →";
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--cyan);
}

.page-home .more-card:hover,
.page-home .more-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(30, 79, 168, 0.35);
}

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

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

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

@media (min-width: 900px) {
  .page-home .home-top {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px;
    align-items: start;
    padding-top: 40px;
  }

  .page-home .home-side {
    position: sticky;
    top: calc(var(--hdr-h) + 24px);
  }

  .page-home .home-rail {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
  }

  .page-home .home-rail-title {
    display: block;
    padding: 2px 10px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--mist);
  }

  .page-home .home-rail a {
    border-radius: 10px;
    border-left: 2px solid transparent;
  }

  .page-home .home-rail a:hover,
  .page-home .home-rail a:focus-visible {
    color: var(--cream);
    background: rgba(46, 242, 216, 0.12);
    border-color: transparent;
    border-left-color: var(--orange);
  }

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

  .page-home .blue-gate {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 34px;
    padding: 34px;
  }

  .page-home .commute {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 34px;
  }

  .page-home .ranks-shot {
    max-width: 620px;
    margin-left: auto;
  }
}

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

  .page-home .rank-card--lead {
    grid-column: span 2;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-kicker .dot {
    animation: none;
  }

  .page-home .rank-card,
  .page-home .rank-card::after,
  .page-home .more-card,
  .page-home .home-rail a {
    transition: none;
  }

  .page-home .rank-card:hover,
  .page-home .more-card:hover {
    transform: none;
  }
}
