.page-home {
  --home-glow: rgba(55, 225, 240, 0.16);
  --home-warm: rgba(255, 106, 31, 0.14);
  background: var(--ink-950);
  color: var(--paper-050);
  overflow-x: hidden;
}

.page-home .home-crumb {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-400);
}

.page-home .home-crumb__link {
  color: var(--mist-400);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-crumb__link:hover,
.page-home .home-crumb__link:focus-visible {
  color: var(--cyan-450);
  border-bottom-color: var(--cyan-450);
}

/* ---------- 首屏：7:5 拼贴 ---------- */
.page-home .home-hero-wrap {
  position: relative;
  padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.page-home .home-hero {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.page-home .home-display {
  margin: 14px 0 20px;
  letter-spacing: -0.03em;
}

.page-home .home-lead {
  max-width: 46ch;
  color: var(--paper-050);
}

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

.page-home .home-facts {
  display: grid;
  gap: 10px;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-facts__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hair);
}

.page-home .home-facts__num {
  flex: 0 0 auto;
  min-width: 7.5em;
  color: var(--cyan-450);
  font-size: 14px;
}

.page-home .home-facts__text {
  color: var(--mist-400);
  font-size: 14px;
  line-height: 1.6;
}

/* 入口卡 */
.page-home .home-entry {
  display: grid;
  gap: 14px;
}

.page-home .home-entry__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
  min-height: 148px;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--hair);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(18, 34, 56, 0.9), rgba(11, 21, 38, 0.96));
  color: var(--paper-050);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.page-home .home-entry__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 120% at 100% 0%, rgba(55, 225, 240, 0.1), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.page-home .home-entry__card:hover,
.page-home .home-entry__card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan-450);
  box-shadow: var(--shadow);
}

.page-home .home-entry__card:hover::after,
.page-home .home-entry__card:focus-visible::after {
  opacity: 1;
}

.page-home .home-entry__card:focus-visible {
  outline: 2px solid var(--cyan-450);
  outline-offset: 2px;
}

.page-home .home-entry__card--tall {
  min-height: 300px;
}

.page-home .home-entry__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.page-home .home-entry__card--tall::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 10, 19, 0.32) 0%, rgba(5, 10, 19, 0.86) 72%);
}

.page-home .home-entry__num {
  display: block;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--orange-500);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-entry__card:hover .home-entry__num,
.page-home .home-entry__card:focus-visible .home-entry__num {
  transform: translateY(-2px);
  color: var(--cyan-450);
}

.page-home .home-entry__title {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.page-home .home-entry__meta {
  color: var(--mist-400);
  font-size: 13px;
  line-height: 1.5;
}

.page-home .home-entry__badge {
  align-self: flex-start;
  margin-top: 6px;
}

.page-home .n28-badge .n28-status__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  animation: homeDot 2.6s var(--ease) infinite;
}

@keyframes homeDot {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.page-home .home-guide {
  display: none;
}

/* ---------- 步骤轨道 ---------- */
.page-home .home-steps__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.page-home .home-steps__figure {
  margin: clamp(24px, 3vw, 34px) 0 0;
}

.page-home .home-steps__figure .n28-media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--hair);
}

.page-home .home-track {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .home-track__item {
  border: 1px solid var(--hair);
  border-radius: var(--radius-m);
  background: rgba(11, 21, 38, 0.72);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .home-track__item:hover {
  border-color: var(--ink-600);
}

.page-home .home-track__item[open] {
  border-color: var(--cyan-450);
  background: rgba(18, 34, 56, 0.86);
}

.page-home .home-track__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.page-home .home-track__head::-webkit-details-marker {
  display: none;
}

.page-home .home-track__head:focus-visible {
  outline: 2px solid var(--cyan-450);
  outline-offset: 2px;
}

.page-home .home-track__num {
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--orange-500);
}

.page-home .home-track__item[open] .home-track__num {
  color: var(--cyan-450);
}

.page-home .home-track__title {
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .home-track__badge {
  flex: 0 0 auto;
}

.page-home .home-track__head::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--mist-400);
}

.page-home .home-track__item[open] .home-track__head::after {
  content: "−";
  color: var(--cyan-450);
}

.page-home .home-track__body {
  padding: 4px 18px 20px;
  border-top: 1px solid var(--hair);
}

.page-home .home-track__line {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist-400);
  max-width: 62ch;
}

.page-home .home-track__k {
  display: inline-block;
  min-width: 4.6em;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--paper-050);
}

.page-home .home-track__link {
  color: var(--cyan-450);
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 225, 240, 0.4);
}

.page-home .home-track__link:hover,
.page-home .home-track__link:focus-visible {
  border-bottom-color: var(--cyan-450);
}

/* ---------- 横向主题带 ---------- */
.page-home .home-band__head {
  max-width: 62ch;
}

.page-home .home-band__lead {
  margin-top: 12px;
}

.page-home .home-band__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(248px, 78%);
  gap: 14px;
  margin-top: clamp(24px, 3vw, 34px);
  padding-bottom: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-600) transparent;
}

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

.page-home .home-band__item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--ink-600);
  border-radius: var(--radius-m);
  background: var(--panel);
  color: var(--paper-050);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.page-home .home-band__item:hover,
.page-home .home-band__item:focus-visible {
  transform: translateY(-2px);
  border-left-color: var(--orange-500);
  background: rgba(18, 34, 56, 0.92);
}

.page-home .home-band__item:focus-visible {
  outline: 2px solid var(--cyan-450);
  outline-offset: 2px;
}

.page-home .home-band__num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist-400);
}

.page-home .home-band__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .home-band__text {
  color: var(--mist-400);
  font-size: 14.5px;
  line-height: 1.72;
}

.page-home .home-band__meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--cyan-450);
}

.page-home .home-band__badge {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------- 更新节奏面板 ---------- */
.page-home .home-rhythm__panel {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid var(--hair);
  border-radius: var(--radius-l);
  background: radial-gradient(130% 140% at 92% 0%, var(--home-glow), transparent 58%),
    radial-gradient(90% 120% at 0% 100%, var(--home-warm), transparent 62%), var(--panel);
}

.page-home .home-rhythm__intro {
  margin-top: 12px;
}

.page-home .home-rhythm__data {
  margin: clamp(20px, 2.6vw, 28px) 0 0;
}

.page-home .home-rhythm__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}

.page-home .home-rhythm__row:last-child {
  border-bottom: 1px solid var(--hair);
}

.page-home .home-rhythm__row .n28-data__k {
  grid-column: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper-050);
}

.page-home .home-rhythm__row .n28-data__v {
  grid-column: 1;
  font-size: 13px;
  color: var(--mist-400);
}

.page-home .home-rhythm__state {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.page-home .home-rhythm__state .n28-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

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

.page-home .home-rhythm__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
}

/* ---------- 开始之前 ---------- */
.page-home .home-start__box {
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--hair);
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, rgba(18, 34, 56, 0.94), rgba(5, 10, 19, 0.94));
}

.page-home .home-start__box .n28-h2 {
  margin-top: 12px;
}

.page-home .home-start__box .n28-prose {
  margin-top: 16px;
  max-width: 68ch;
}

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

.page-home .home-start__trust {
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist-400);
  max-width: 76ch;
}

/* ---------- 页脚上方横幅 ---------- */
.page-home .home-city {
  margin-top: clamp(40px, 6vw, 72px);
}

.page-home .home-city__figure {
  position: relative;
  margin: 0;
}

.page-home .home-city__img {
  display: block;
  width: 100%;
  height: clamp(180px, 30vw, 340px);
  object-fit: cover;
  opacity: 0.78;
}

.page-home .home-city__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 19, 0.55), rgba(5, 10, 19, 0.92));
  pointer-events: none;
}

.page-home .home-city__caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(16px, 3vw, 28px);
  right: var(--gutter);
  z-index: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--paper-050);
}

/* ---------- 响应式 ---------- */
@media (min-width: 600px) {
  .page-home .home-entry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }

  .page-home .home-entry__card--tall {
    grid-row: span 2;
    min-height: 100%;
  }

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

  .page-home .home-facts__item {
    display: grid;
    gap: 6px;
  }

  .page-home .home-facts__num {
    min-width: 0;
  }
}

@media (min-width: 900px) {
  .page-home .home-band__rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .page-home .home-rhythm__panel {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }

  .page-home .home-rhythm__row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 20px;
  }

  .page-home .home-rhythm__row .n28-data__v {
    grid-column: 1;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }

  .page-home .home-steps__grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .page-home .home-guide {
    display: block;
    position: absolute;
    top: 24%;
    left: 48%;
    width: min(26vw, 300px);
    height: auto;
    opacity: 0.75;
    pointer-events: none;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .n28-badge .n28-status__dot {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .page-home .home-entry__card,
  .page-home .home-band__item,
  .page-home .home-entry__num {
    transition: none;
  }
}
