.page-home {
  --home-gap: 18px;
  --home-block-pad: clamp(56px, 9vw, 104px);
  background: var(--ink-900);
  color: var(--paper);
  overflow-x: hidden;
}

/* ---------- 首屏拼贴 ---------- */

.page-home .home-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(23, 178, 106, 0.16), transparent 58%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
}

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

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-hero__lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 4px;
}

.page-home .home-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0;
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 10vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

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

.page-home .home-hero__photo {
  margin: 0;
  border: 1px solid var(--edge);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.page-home .home-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.06);
}

.page-home .home-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--ink-800);
}

.page-home .home-card__chip {
  align-self: flex-start;
  margin-bottom: 4px;
}

.page-home .home-card__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .home-card__big {
  margin: 0;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.page-home .home-card__unit {
  font-size: 0.5em;
  color: var(--cyan);
}

.page-home .home-card__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-card--possess {
  border-top: 2px solid var(--green);
}

.page-home .possess-bar {
  height: 6px;
  width: 100%;
  background: var(--ink-700);
  border: 1px solid var(--edge);
  overflow: hidden;
}

.page-home .possess-bar__fill {
  display: block;
  width: 58%;
  height: 100%;
  background: linear-gradient(90deg, var(--green-deep), var(--cyan));
}

.page-home .home-hero__stats {
  list-style: none;
  margin: clamp(28px, 5vw, 44px) 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--edge);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}

.page-home .home-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .home-stat__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
}

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

.page-home .home-rule {
  margin: 0;
}

/* ---------- 通用区块 ---------- */

.page-home .home-block {
  padding: var(--home-block-pad) 0;
  position: relative;
}

.page-home .home-block--pulse {
  background: var(--ink-900);
}

.page-home .home-block--possess {
  background: var(--ink-800);
}

.page-home .home-block--sidecar {
  background: var(--ink-900);
}

.page-home .home-block--routes {
  background: var(--ink-800);
  padding-bottom: clamp(64px, 10vw, 112px);
}

.page-home .section-head {
  margin-bottom: clamp(28px, 5vw, 44px);
}

.page-home .section-num {
  color: var(--green);
}

.page-home .section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(24px, 6vw, 40px);
  color: var(--paper);
  max-width: 20ch;
}

/* ---------- 刷新节奏 ---------- */

.page-home .pulse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.page-home .pulse-copy p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

.page-home .pulse-points {
  list-style: none;
  margin: 24px 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .pulse-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .pulse-photo {
  margin: 0;
}

.page-home .pulse-link {
  align-self: flex-start;
}

.page-home .pulse-track {
  list-style: none;
  margin: clamp(36px, 6vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--edge);
}

.page-home .pulse-track__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--edge);
}

.page-home .pulse-track__time {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-home .pulse-track__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 控球筛选 ---------- */

.page-home .possess-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}

.page-home .possess-photo {
  margin: 0;
}

.page-home .possess-panel {
  padding: clamp(20px, 4vw, 32px);
  background: var(--ink-700);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .possess-panel__hint {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .possess-filters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-home .possess-filters li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--edge);
}

.page-home .possess-filters li:first-child {
  padding-top: 0;
}

.page-home .possess-filters__k {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--green);
}

.page-home .possess-filters__v {
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .possess-panel__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  border-left: 2px solid var(--green);
  padding-left: 14px;
}

/* ---------- 右侧浮层 ---------- */

.page-home .sidecar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.page-home .sidecar-copy p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

.page-home .sidecar-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-home .sidecar-demo {
  padding: 18px;
  background: var(--ink-800);
  border-left: 2px solid var(--green);
}

.page-home .sidecar-demo__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--edge);
}

.page-home .sidecar-demo__title {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.page-home .sidecar-demo__toggle {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .sidecar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .sidecar-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--edge);
}

.page-home .sidecar-list__round {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.page-home .sidecar-list__score {
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .sidecar-list li:nth-child(1) .sidecar-list__score {
  color: var(--orange);
}

.page-home .sidecar-demo__foot {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 收藏横栏 ---------- */

.page-home .home-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

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

.page-home .home-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.26;
  filter: saturate(0.85) contrast(1.1);
}

.page-home .home-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--ink-900) 8%, rgba(7, 11, 10, 0.82) 52%, rgba(7, 11, 10, 0.4) 100%);
  pointer-events: none;
}

.page-home .home-band__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(56px, 9vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .home-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 22ch;
}

.page-home .home-band__text {
  margin: 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

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

/* ---------- 四条路径 ---------- */

.page-home .route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .route-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--ink-700);
  text-decoration: none;
  color: var(--paper);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.page-home .route-card__num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--green);
}

.page-home .route-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page-home .route-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  flex: 1 1 auto;
}

.page-home .route-card__go {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  transition: color 200ms var(--ease);
}

.page-home .routes-foot {
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--edge);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

.page-home .routes-foot a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green-deep);
}

/* ---------- 悬停与焦点 ---------- */

@media (hover: hover) {
  .page-home .route-card:hover {
    transform: translateY(-2px);
    border-color: var(--green);
  }

  .page-home .route-card:hover .route-card__go {
    color: var(--orange);
  }

  .page-home .home-card:hover {
    border-color: var(--green);
  }
}

.page-home .route-card:focus-visible,
.page-home .routes-foot a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 平板以上 ---------- */

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

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

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

  .page-home .pulse-track__item {
    border-bottom: none;
    border-left: 1px solid var(--edge);
    padding: 18px 0 4px 18px;
  }

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

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

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

/* ---------- 桌面拼贴与主数据区 ---------- */

@media (min-width: 1000px) {
  .page-home .home-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
  }

  .page-home .home-hero__lead {
    grid-column: 1 / span 7;
    grid-row: 1;
    padding-right: 12px;
  }

  .page-home .home-hero__photo {
    grid-column: 8 / span 5;
    grid-row: 1 / span 2;
    min-height: 340px;
  }

  .page-home .home-card--refresh {
    grid-column: 1 / span 4;
    grid-row: 2;
  }

  .page-home .home-card--possess {
    grid-column: 5 / span 3;
    grid-row: 2;
  }

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

  .page-home .route-card:nth-child(2) {
    transform: translateY(14px);
  }

  .page-home .route-card:nth-child(4) {
    transform: translateY(14px);
  }

  @media (hover: hover) {
    .page-home .route-card:nth-child(2):hover,
    .page-home .route-card:nth-child(4):hover {
      transform: translateY(12px);
    }
  }
}

/* ---------- 动态偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .route-card,
  .page-home .route-card__go {
    transition: none;
  }
}
