/**
 * 折叠时间 · 开放宇宙舞台
 * 参考：竖轨霓虹时间轴 / HUD 信号卡 / 液态玻璃 · 少框、大气、悬浮
 * 色：青 #00d2ff · 粉 #ff6ec7 · 柠绿高光 #c8ff3a（轴焦点）· 底近黑
 */

html:has(body.fold-cosmos),
body.fold-cosmos {
  margin: 0;
  min-height: 100%;
  background: #02060d;
  color: rgba(236, 246, 255, 0.92);
  overflow-x: hidden;
}

body.fold-cosmos {
  font-family: "SF Pro Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  position: relative;
}

/* —— 宇宙底 —— */
.fold-cosmos__aurora,
.fold-cosmos__grid,
.fold-cosmos__noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fold-cosmos__aurora {
  background:
    radial-gradient(ellipse 55% 70% at 88% 42%, rgba(200, 255, 58, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 50% at 18% 78%, rgba(0, 210, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 45% at 62% 12%, rgba(255, 110, 199, 0.1), transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(40, 20, 80, 0.35), transparent 55%),
    linear-gradient(180deg, #02060d 0%, #061830 48%, #040818 100%);
}

.fold-cosmos__grid {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(0, 210, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
}

.fold-cosmos__noise {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fold-cosmos__main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 4.5rem 0 6.5rem;
}

/* —— 悬浮导航（无框） —— */
.fold-float-nav {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.fold-float-nav__link {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: rgba(200, 230, 255, 0.62);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.fold-float-nav__link:hover {
  color: #e8f7ff;
  background: rgba(0, 210, 255, 0.1);
}

.fold-float-nav__link.is-active {
  color: #061830;
  background: linear-gradient(135deg, #c8ff3a, #00d2ff);
  box-shadow: 0 0 18px rgba(200, 255, 58, 0.35);
  font-weight: 650;
}

/* —— 舞台：年轴介于贴边与居中之间 —— */
.fold-space {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 8rem);
  /* 左缘约 2.5rem：比贴边远，比整页居中近 */
  padding: 0 1.5rem 0 clamp(2.25rem, 4vw, 3rem);
}

@media (max-width: 720px) {
  .fold-space {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .fold-rail {
    position: sticky;
    top: 3.5rem;
    max-height: none;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.35rem 0 0.5rem;
    background: transparent;
  }
  .fold-rail__years {
    flex-direction: row;
    gap: 1rem;
  }
  .fold-rail__svg {
    display: none;
  }
}

/* —— 左：年份轴（随内容区，不贴死视口边） —— */
.fold-rail {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: calc(100vh - 6rem);
  width: auto;
  padding: 0.25rem 0;
  margin: 0;
  background: transparent;
  z-index: 2;
}

.fold-rail__label {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 255, 58, 0.55);
}

.fold-rail__track {
  position: relative;
  display: flex;
  gap: 0.85rem;
  flex: 1;
  min-height: 320px;
}

.fold-rail__svg {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  overflow: visible;
}

.fold-rail__svg path {
  fill: none;
  stroke: #c8ff3a;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 6px rgba(200, 255, 58, 0.85));
}

.fold-rail__years {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.35rem 0 0.35rem 2.35rem;
  flex: 1;
  list-style: none;
  margin: 0;
}

.fold-rail__year {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: rgba(220, 240, 255, 0.38);
  transition: color 0.2s, text-shadow 0.2s, transform 0.2s;
}

.fold-rail__year:hover {
  color: rgba(220, 240, 255, 0.75);
}

.fold-rail__year.is-active {
  color: #fff;
  text-shadow: 0 0 18px rgba(200, 255, 58, 0.45);
  transform: translateX(2px);
}

.fold-rail__year-num {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.fold-rail__year-gz {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.fold-rail__hub {
  position: absolute;
  left: 2px;
  width: 42px;
  height: 42px;
  margin-left: -3px;
  border-radius: 50%;
  border: 1px solid rgba(200, 255, 58, 0.55);
  background:
    radial-gradient(circle at 50% 35%, rgba(200, 255, 58, 0.18), transparent 55%),
    rgba(8, 12, 18, 0.92);
  color: #c8ff3a;
  box-shadow:
    0 0 22px rgba(200, 255, 58, 0.35),
    inset 0 0 12px rgba(200, 255, 58, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  line-height: 0.85;
  z-index: 2;
  transition: box-shadow 0.2s, transform 0.2s;
}

.fold-rail__hub:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(200, 255, 58, 0.55);
}

.fold-rail__hub-chevrons {
  display: block;
  transform: translateY(-1px);
  letter-spacing: -0.12em;
}

/* —— 右：开放内容（无卡片框） —— */
.fold-orbit {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 0.5rem 0.75rem 0 0.25rem;
  min-width: 0;
}

.fold-orbit__stat {
  position: relative;
  padding: 0.25rem 0 0.5rem;
}

.fold-orbit__how,
.fold-orbit__hint {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(200, 230, 255, 0.72);
  max-width: 36rem;
}

.fold-orbit__hint {
  font-size: 0.84rem;
  opacity: 0.85;
}

.fold-orbit__kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 210, 255, 0.7);
}

.fold-orbit__title {
  margin: 0.45rem 0 0.35rem;
  font-size: clamp(1.85rem, 5.5vw, 3.1rem);
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 40px rgba(0, 210, 255, 0.25);
  line-height: 1.05;
}

.fold-orbit__pillar {
  margin: 0;
  font-size: 1rem;
  color: rgba(180, 230, 255, 0.78);
  letter-spacing: 0.04em;
}

.fold-orbit__foldline {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(210, 235, 255, 0.72);
}

.fold-orbit__foldline strong {
  color: #c8ff3a;
  font-weight: 650;
  text-shadow: 0 0 12px rgba(200, 255, 58, 0.35);
}

.fold-orbit__meta {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 180, 220, 0.8);
}

/* 玻璃波形读数（参考图2 · 无硬框） */
.fold-glass {
  position: relative;
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem 1.1rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 -20px 60px rgba(0, 210, 255, 0.12),
    0 24px 50px rgba(255, 110, 199, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.fold-glass::before,
.fold-glass::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
}

.fold-glass::before {
  top: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.85), transparent);
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.75);
}

.fold-glass::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 110, 199, 0.65), transparent);
  box-shadow: 0 0 18px rgba(255, 110, 199, 0.55);
}

.fold-glass__wave {
  display: block;
  width: 100%;
  height: 88px;
  margin: 0.15rem 0 0.65rem;
}

.fold-glass__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.fold-glass__metric {
  margin: 0;
}

.fold-glass__metric-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(180, 230, 255, 0.55);
  letter-spacing: 0.06em;
}

.fold-glass__metric-value {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 720;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 24px rgba(0, 210, 255, 0.35);
}

.fold-glass__metric-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: rgba(200, 255, 58, 0.75);
}

.fold-glass__layers {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
  font-size: 0.82rem;
  color: rgba(200, 230, 255, 0.7);
}

.fold-glass__layers span em {
  font-style: normal;
  color: #00d2ff;
}

/* 种子：去框，悬浮 */
.fold-orbit__seed {
  max-width: 320px;
  margin: 0.25rem 0 0;
}

.fold-orbit__seed .growth-seed {
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.fold-orbit__seed .growth-seed__head,
.fold-orbit__seed .growth-seed__readout {
  display: none;
}

.fold-orbit__seed .growth-seed__stage-frame,
.fold-orbit__seed .growth-seed__stage-svg {
  background: transparent !important;
  border: 0 !important;
  box-shadow:
    0 0 60px rgba(0, 210, 255, 0.18),
    0 0 90px rgba(255, 110, 199, 0.1);
  border-radius: 20px;
}

/* —— 信号 HUD 卡（参考图3） —— */
.fold-signals {
  position: relative;
  padding-left: 1.75rem;
  margin-top: 0.5rem;
}

.fold-signals__spine {
  position: absolute;
  left: 7px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.85), rgba(0, 210, 255, 0.15));
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.55);
}

.fold-signals__head {
  margin: 0 0 1rem;
}

.fold-signals__eyebrow {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 210, 255, 0.65);
}

.fold-signals__title {
  margin: 0.3rem 0 0;
  font-size: 1.15rem;
  font-weight: 650;
  color: #e8f7ff;
}

.fold-signals__lead {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(180, 230, 255, 0.55);
}

.fold-signals__empty {
  margin: 0;
  padding: 0.5rem 0;
  color: rgba(180, 230, 255, 0.5);
  font-size: 0.9rem;
}

.fold-signal--year .fold-signal__node {
  border-color: #fb65c6;
  box-shadow: 0 0 14px rgba(251, 101, 198, 0.75);
}

.fold-signal--fold .fold-signal__node {
  border-color: #8E69EA;
  box-shadow: 0 0 14px rgba(142, 105, 234, 0.75);
}

.fold-signal--year .fold-signal__name {
  color: rgba(251, 180, 220, 0.95);
}

.fold-signal--fold .fold-signal__name {
  color: rgba(200, 180, 255, 0.95);
}

.fold-signals__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fold-signal {
  position: relative;
  padding-left: 0.5rem;
  animation: fold-float-in 0.45s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.fold-signal__node {
  position: absolute;
  left: -1.55rem;
  top: 1.05rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #00d2ff;
  background: #02060d;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.9);
}

.fold-signal.is-active .fold-signal__node {
  box-shadow:
    0 0 0 4px rgba(0, 210, 255, 0.2),
    0 0 20px rgba(0, 210, 255, 0.95);
}

.fold-signal__connector {
  position: absolute;
  left: -1.1rem;
  top: 1.35rem;
  width: 1.1rem;
  height: 2px;
  background: #00d2ff;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.8);
}

.fold-signal__card {
  position: relative;
  padding: 0.85rem 1.05rem 0.9rem;
  background: rgba(4, 16, 36, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 210, 255, 0.55);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.12);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.fold-signal__card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, transparent 48%, rgba(0, 210, 255, 0.7) 52%);
}

.fold-signal__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.fold-signal__name {
  color: #00d2ff;
  font-weight: 700;
  font-style: italic;
  font-size: 0.92rem;
}

.fold-signal__when {
  color: rgba(140, 180, 210, 0.65);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.fold-signal__text {
  margin: 0;
  color: rgba(245, 250, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.45;
  font-style: italic;
}

.fold-signal__l1 {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: rgba(180, 230, 255, 0.55);
}

.fold-signal__daygz {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: rgba(200, 255, 160, 0.82);
}

.fold-chain {
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(120, 200, 255, 0.18);
  border-radius: 14px;
  background: rgba(8, 18, 36, 0.45);
}

.fold-chain__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(160, 210, 255, 0.55);
}

.fold-chain__title {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: rgba(230, 245, 255, 0.95);
}

.fold-chain__lead,
.fold-chain__empty,
.fold-chain__prior {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(190, 220, 245, 0.72);
}

.fold-chain__list {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.fold-chain__node {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.55rem;
  align-items: start;
}

.fold-chain__idx {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #061018;
  background: rgba(160, 255, 90, 0.85);
}

.fold-chain__gz {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(235, 250, 255, 0.95);
}

.fold-chain__gz time {
  margin-left: 0.45rem;
  font-size: 0.78rem;
  color: rgba(170, 210, 240, 0.65);
}

.fold-chain__echo {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: rgba(180, 255, 170, 0.78);
}

.fold-chain__text {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: rgba(200, 220, 240, 0.78);
}

.fold-orbit__cta {
  margin: 0.25rem 0 0;
}

.fold-orbit__cta a {
  color: rgba(200, 255, 58, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(200, 255, 58, 0.35);
}

.fold-orbit__cta a:hover {
  color: #fff;
}

/* —— 底部流月：液态玻璃胶囊（非框栏） —— */
.fold-months {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.65rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 13, 0.75) 40%);
}

.fold-months__inner {
  pointer-events: auto;
  display: flex;
  gap: 0.4rem;
  max-width: 960px;
  width: 100%;
  overflow-x: auto;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 10px 40px rgba(0, 0, 0, 0.4);
  scrollbar-width: none;
}

.fold-months__inner::-webkit-scrollbar {
  display: none;
}

.fold-months__chip {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: transparent;
  color: rgba(200, 230, 255, 0.55);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.fold-months__chip.is-active {
  color: #061830;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.95), rgba(200, 255, 58, 0.85));
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  font-weight: 700;
}

@keyframes fold-float-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* dock 存在时略让右上导航 */
body.has-app-dock .fold-float-nav {
  right: max(1rem, 4.5rem);
}

/* Dock 占位由 body padding 负责；折叠主区不再额外加左缩进 */
body.has-app-dock .fold-cosmos__main,
body.fold-cosmos.has-app-dock .fold-cosmos__main {
  padding-left: 0;
  padding-right: 0;
}
