.page-home {
  --home-line: rgba(201, 212, 232, 0.22);
  --home-line-strong: rgba(201, 212, 232, 0.42);
  --home-muted: rgba(22, 38, 79, 0.68);
  --home-section-pad: clamp(2.75rem, 8vw, 5rem);
  display: block;
  background: var(--mist);
  color: var(--ink-deep);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

.page-home .shell {
  position: relative;
  z-index: 1;
}

.page-home .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.page-home .section-head {
  display: grid;
  gap: 0.45rem;
  position: relative;
  padding-left: clamp(2.6rem, 9vw, 4.4rem);
  margin-bottom: clamp(1.6rem, 5vw, 2.6rem);
  max-width: 60rem;
}

.page-home .section-index {
  position: absolute;
  left: 0;
  top: -0.35rem;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 7.5vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--flare);
}

.page-home .section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.42rem, 4.6vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-home .section-head .lead {
  margin: 0.2rem 0 0;
  max-width: 34em;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--home-muted);
}

.page-home .eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flare);
}

/* ---------- 章节导航条 ---------- */

.page-home .home-rail {
  position: relative;
  z-index: 3;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-rail__inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.page-home .home-rail__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--slate);
}

.page-home .home-rail__list {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-rail__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.page-home .home-rail__list a .num {
  font-size: 0.7rem;
  color: var(--flare);
}

.page-home .home-rail__list a:hover,
.page-home .home-rail__list a:focus-visible {
  color: var(--core);
  background: rgba(46, 125, 255, 0.16);
  outline: none;
}

/* ---------- 01 首屏入口 ---------- */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--core);
}

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

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

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(115% 85% at 10% 6%, rgba(46, 125, 255, 0.32), transparent 62%),
    linear-gradient(104deg, var(--ink-deep) 20%, rgba(10, 20, 48, 0.88) 54%, rgba(10, 20, 48, 0.56) 100%);
}

.page-home .home-hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 7vw, 3.4rem);
  padding-block: clamp(2.6rem, 9vw, 5.5rem) clamp(2.6rem, 8vw, 5rem);
}

.page-home .home-hero__index {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(3.4rem, 16vw, 7.6rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.02em;
  color: rgba(247, 250, 255, 0.16);
  -webkit-text-stroke: 1.5px rgba(247, 250, 255, 0.55);
}

.page-home .home-hero h1 {
  margin: 0.35rem 0 0.7rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 5.8vw, 2.85rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--core);
}

.page-home .home-hero__tagline {
  margin: 0;
  max-width: 30em;
  font-size: 0.96rem;
  line-height: 1.82;
  color: var(--slate);
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--home-line);
}

.page-home .filter-btn {
  appearance: none;
  padding: 0.34rem 0.85rem;
  border: 1px solid var(--home-line-strong);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--slate);
  cursor: pointer;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.page-home .filter-btn:hover {
  color: var(--core);
  border-color: var(--flare);
}

.page-home .filter-btn[aria-pressed="true"] {
  background: var(--flare);
  border-color: var(--flare);
  color: #ffffff;
}

.page-home .filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate);
}

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

.page-home .home-path {
  transition: opacity 0.3s var(--ease);
}

.page-home .home-path.is-filtered-out {
  display: none;
}

.page-home .home-path__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  background: rgba(22, 38, 79, 0.62);
  box-shadow: 0 1px 0 rgba(247, 250, 255, 0.05), 0 14px 30px -24px rgba(0, 0, 0, 0.95);
  color: var(--core);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.page-home .home-path__link:hover,
.page-home .home-path__link:focus-visible {
  transform: translateX(8px);
  border-color: rgba(46, 125, 255, 0.62);
  background: rgba(22, 38, 79, 0.92);
  outline: none;
}

.page-home .home-path__num {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--flare);
}

.page-home .home-path__body {
  display: grid;
  gap: 0.35rem;
}

.page-home .home-path__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-home .home-path__desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .home-path__arrow {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--flare);
  transition: transform 0.3s var(--ease);
}

.page-home .home-path__link:hover .home-path__arrow {
  transform: translateX(4px);
}

.page-home .tag {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.page-home .tag--trail {
  color: var(--trail);
}

.page-home .tag--saffron {
  color: var(--saffron);
}

/* ---------- 02 本轮节拍 ---------- */

.page-home .home-round {
  background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink-mid) 100%);
  color: var(--core);
  padding-block: var(--home-section-pad);
}

.page-home .home-round .section-index {
  color: var(--trail);
}

.page-home .home-round .section-head h2 {
  color: var(--core);
}

.page-home .home-round .section-head .lead {
  color: var(--slate);
}

.page-home .home-round__media {
  margin: 0 0 clamp(1.5rem, 4.5vw, 2.3rem);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-deep);
}

.page-home .home-round__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .media-frame__caption {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.76rem;
  color: var(--slate);
  background: rgba(10, 20, 48, 0.72);
}

.page-home .home-beats {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--home-line);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-beat {
  display: grid;
  gap: 0.28rem;
  padding: 1.15rem 1rem 1.3rem;
  background: var(--ink-mid);
}

.page-home .home-beat__day {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--slate);
}

.page-home .home-beat__time {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--core);
}

.page-home .home-beat__name {
  font-size: 0.86rem;
  color: var(--trail);
}

.page-home .home-beat__note {
  margin: 0.15rem 0 0;
  font-size: 0.83rem;
  line-height: 1.72;
  color: var(--slate);
}

/* ---------- 03 周末链路 ---------- */

.page-home .home-weekend {
  background: var(--mist);
  padding-block: var(--home-section-pad);
}

.page-home .home-weekend__grid {
  display: grid;
  gap: clamp(1.8rem, 6vw, 3rem);
}

.page-home .home-flow {
  position: relative;
  display: grid;
  gap: 1.35rem;
  margin: 0;
  padding: 0 0 0 2.7rem;
  list-style: none;
}

.page-home .home-flow::before {
  content: "";
  position: absolute;
  left: 0.875rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--flare), var(--trail), var(--edge));
}

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

.page-home .home-step__node {
  position: absolute;
  left: -2.7rem;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--flare);
  border-radius: 50%;
  background: var(--mist);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--flare);
}

.page-home .home-step__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink-deep);
}

.page-home .home-step p {
  margin: 0;
  max-width: 34em;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--home-muted);
}

.page-home .home-weekend__figure {
  margin: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-mid);
  box-shadow: 0 1px 0 rgba(10, 20, 48, 0.04), 0 22px 44px -38px rgba(10, 20, 48, 0.8);
}

.page-home .home-weekend__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- 04 榜单与专栏 ---------- */

.page-home .home-data {
  background: var(--mist);
  padding-block: 0 var(--home-section-pad);
}

.page-home .home-data__grid {
  display: grid;
  gap: var(--gap);
}

.page-home .home-panel {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: clamp(1.2rem, 3.5vw, 1.85rem);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--core);
  box-shadow: 0 1px 0 rgba(10, 20, 48, 0.03), 0 20px 44px -38px rgba(10, 20, 48, 0.85);
}

.page-home .home-panel__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.24rem;
  line-height: 1.45;
  color: var(--ink-deep);
}

.page-home .home-panel__text {
  margin: 0;
  max-width: 32em;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--home-muted);
}

.page-home .home-board {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--edge);
}

.page-home .home-board li {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--edge);
  font-size: 0.855rem;
  line-height: 1.7;
}

.page-home .home-board__key {
  font-weight: 600;
  color: var(--ink-deep);
}

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

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

.page-home .home-series li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-deep);
}

.page-home .home-panel__figure {
  margin: 0.2rem 0 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-mid);
}

.page-home .home-panel__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-panel .btn {
  justify-self: start;
}

/* ---------- 05 高原访问 ---------- */

.page-home .home-plateau {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 78% 10%, rgba(46, 125, 255, 0.28), transparent 60%),
    linear-gradient(180deg, var(--ink-mid) 0%, var(--ink-deep) 100%);
  color: var(--core);
  padding-block: var(--home-section-pad);
}

.page-home .home-plateau::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 24%, rgba(247, 250, 255, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 62% 12%, rgba(247, 250, 255, 0.5), transparent),
    radial-gradient(1.6px 1.6px at 84% 46%, rgba(87, 224, 208, 0.7), transparent),
    radial-gradient(1.1px 1.1px at 38% 68%, rgba(247, 250, 255, 0.45), transparent),
    radial-gradient(1.3px 1.3px at 8% 84%, rgba(247, 250, 255, 0.4), transparent);
}

.page-home .home-plateau .section-index {
  color: var(--trail);
}

.page-home .home-plateau .section-head h2 {
  color: var(--core);
}

.page-home .home-plateau .section-head .lead {
  color: var(--slate);
}

.page-home .home-metrics {
  display: grid;
  gap: 1px;
  background: var(--home-line);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-metric {
  display: grid;
  gap: 0.3rem;
  padding: 1.3rem 1.05rem 1.5rem;
  background: rgba(10, 20, 48, 0.55);
}

.page-home .home-metric__value {
  font-size: clamp(1.5rem, 5.5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--core);
}

.page-home .home-metric__label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--trail);
}

.page-home .home-metric p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- 06 更新与联络 ---------- */

.page-home .home-updates {
  background: var(--mist);
  padding-block: var(--home-section-pad);
}

.page-home .home-updates__grid {
  display: grid;
  gap: clamp(1.6rem, 5vw, 3rem);
}

.page-home .home-updates__index {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--edge);
}

.page-home .home-updates__copy h2 {
  margin: 0.3rem 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.4vw, 2rem);
  line-height: 1.32;
  color: var(--ink-deep);
}

.page-home .home-updates__copy p {
  margin: 0 0 0.75rem;
  max-width: 34em;
  font-size: 0.92rem;
  line-height: 1.82;
  color: var(--home-muted);
}

.page-home .home-updates__links {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.page-home .home-linkcard {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--edge);
  border-left: 3px solid var(--flare);
  border-radius: var(--radius);
  background: var(--core);
  color: var(--ink-deep);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-home .home-linkcard:hover,
.page-home .home-linkcard:focus-visible {
  transform: translateY(-2px);
  border-color: var(--flare);
  box-shadow: 0 20px 38px -32px rgba(10, 20, 48, 0.9);
  outline: none;
}

.page-home .home-linkcard__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
}

.page-home .home-linkcard__desc {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--home-muted);
}

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

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

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

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

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
  }

  .page-home .home-hero__grid::before {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: 40%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--trail) 38%, var(--flare) 66%, transparent);
    transform: skewX(-16deg);
    opacity: 0.75;
    pointer-events: none;
  }

  .page-home .home-weekend__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
  }

  .page-home .home-data__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .page-home .home-updates__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero__grid::before {
    left: 39%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-path__link,
  .page-home .home-linkcard,
  .page-home .home-path__arrow {
    transition: none;
  }

  .page-home .home-path__link:hover,
  .page-home .home-path__link:focus-visible {
    transform: none;
  }

  .page-home .home-linkcard:hover,
  .page-home .home-linkcard:focus-visible {
    transform: none;
  }
}
