/**
 * 折叠时间 · 开放宇宙舞台
 * 参考：竖轨霓虹时间轴 / 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 calc(9.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 820px) {
  .fold-cosmos__main {
    padding-bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* —— 悬浮导航（无框） —— */
.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);
}

.fold-orbit__now-l1 {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(200, 255, 58, 0.85);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

/* L1 当前 · 下一令准备 / 本月行动 */
.fold-assist {
  margin-top: 1.15rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 16px;
  background: rgba(200, 255, 58, 0.06);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 58, 0.28);
}

.fold-assist--action {
  background: rgba(0, 210, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.3);
}

.fold-assist__eyebrow {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 255, 58, 0.75);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.fold-assist--action .fold-assist__eyebrow {
  color: rgba(0, 210, 255, 0.8);
}

.fold-assist__title {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 650;
  color: rgba(245, 250, 255, 0.96);
}

.fold-assist__gate {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(200, 230, 255, 0.7);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.fold-assist__lead,
.fold-assist__forecast {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(220, 240, 255, 0.9);
}

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

.fold-assist__tips {
  margin: 0.65rem 0 0;
  padding: 0 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: rgba(230, 245, 255, 0.92);
  font-size: 0.88rem;
  line-height: 1.45;
}

.fold-assist__jump {
  margin-top: 0.85rem;
  appearance: none;
  border: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(200, 255, 58, 0.16);
  color: #c8ff3a;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.fold-assist--action .fold-assist__jump {
  background: rgba(0, 210, 255, 0.16);
  color: #7ae7ff;
}

.fold-assist__jump:hover {
  filter: brightness(1.1);
}

/* 乙亥大运 · 年↔月对照条 */
.fold-arc {
  margin-top: 1.35rem;
  padding: 1rem 0 0.25rem;
}

.fold-arc__eyebrow {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 255, 58, 0.7);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

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

.fold-arc__lead {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(200, 230, 255, 0.68);
  max-width: 38rem;
}

.fold-arc__span {
  margin: -0.35rem 0 0.95rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(220, 240, 255, 0.82);
  max-width: 40rem;
  border-radius: 0.65rem;
  background: rgba(200, 255, 58, 0.06);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 58, 0.18);
}

.fold-arc__track {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.55rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.fold-arc__step {
  flex: 0 0 auto;
  min-width: 5.6rem;
  max-width: 6.4rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 0.5rem;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fold-arc__step:hover {
  background: rgba(0, 210, 255, 0.08);
}

.fold-arc__step.is-selected {
  background: rgba(200, 255, 58, 0.1);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 58, 0.45);
  transform: translateY(-2px);
}

.fold-arc__step.is-now {
  background: rgba(200, 255, 58, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(200, 255, 58, 0.7), 0 0 16px rgba(200, 255, 58, 0.18);
}

.fold-arc__step.is-next {
  box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.55);
}

.fold-arc__step.is-lift {
  box-shadow: inset 0 0 0 1px rgba(255, 180, 80, 0.65), 0 0 18px rgba(255, 160, 60, 0.2);
}

.fold-arc__step.is-bridge {
  box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.4);
}

.fold-arc__badge--now {
  color: rgba(200, 255, 58, 0.95);
}

.fold-arc__badge--next {
  color: rgba(120, 220, 255, 0.95);
}

.fold-arc__gz {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #c8ff3a;
}

.fold-arc__year {
  font-size: 0.7rem;
  opacity: 0.65;
}

.fold-arc__theme {
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.88;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fold-arc__badge {
  margin-top: 0.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 190, 100, 0.9);
}

.fold-arc__detail {
  margin-top: 0.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.fold-arc__detail.is-lift {
  box-shadow: inset 0 0 0 1px rgba(255, 180, 80, 0.4);
  background: rgba(255, 160, 60, 0.06);
}

.fold-arc__detail.is-bridge {
  box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.35);
}

.fold-arc__detail-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(0, 210, 255, 0.75);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.fold-arc__detail-theme {
  margin: 0.35rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 650;
  color: rgba(245, 250, 255, 0.95);
}

.fold-arc__detail-beat {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(210, 230, 255, 0.82);
}

.fold-arc__detail-phase {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 200, 120, 0.92);
}

.fold-arc__detail-forecast {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(230, 245, 255, 0.92);
  font-weight: 550;
}

.fold-arc__detail-then {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(180, 210, 230, 0.72);
}

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

.fold-arc__forecast-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.fold-arc__forecast-btn:hover {
  background: rgba(0, 210, 255, 0.07);
}

.fold-arc__forecast-item.is-selected .fold-arc__forecast-btn {
  background: rgba(200, 255, 58, 0.08);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 58, 0.4);
}

.fold-arc__forecast-item.has-lift .fold-arc__forecast-btn {
  box-shadow: inset 0 0 0 1px rgba(255, 180, 80, 0.35);
}

.fold-arc__forecast-month {
  margin: 0 0 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  font-size: 0.78rem;
}

.fold-arc__forecast-month strong {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: #c8ff3a;
  letter-spacing: 0.06em;
}

.fold-arc__forecast-month span {
  opacity: 0.7;
}

.fold-arc__forecast-month em {
  font-style: normal;
  opacity: 0.55;
  font-size: 0.72rem;
}

.fold-arc__forecast-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(215, 235, 255, 0.86);
}

.fold-arc__empty {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  opacity: 0.7;
}

/* 玻璃波形读数（参考图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;
}

/* —— 信号 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__tags {
  margin: 0.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.fold-signal__tag {
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  color: rgba(180, 230, 255, 0.85);
  background: rgba(120, 200, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(120, 200, 255, 0.22);
  font-style: normal;
}

.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.55rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 13, 0.82) 36%);
}

.fold-months__axis {
  pointer-events: auto;
  width: min(1120px, 100%);
  padding: 0.55rem 0.85rem 0.65rem;
  border-radius: 18px;
  background: rgba(8, 14, 22, 0.72);
  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.08),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.fold-months__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  padding: 0 0.15rem;
}

.fold-months__label {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 255, 58, 0.6);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.fold-months__year {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(220, 240, 255, 0.78);
  font-variant-numeric: tabular-nums;
}

.fold-months__track {
  position: relative;
  padding: 1.35rem 0.15rem 0.15rem;
}

.fold-months__svg {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 0.15rem;
  height: 36px;
  width: calc(100% - 1rem);
  pointer-events: none;
  overflow: visible;
}

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

.fold-months__hub {
  position: absolute;
  top: 0.05rem;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  border: 1px solid rgba(200, 255, 58, 0.55);
  background:
    radial-gradient(circle at 50% 35%, rgba(200, 255, 58, 0.22), transparent 55%),
    rgba(8, 12, 18, 0.95);
  color: #c8ff3a;
  box-shadow:
    0 0 18px rgba(200, 255, 58, 0.35),
    inset 0 0 10px rgba(200, 255, 58, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transform: translateX(0);
  transition: box-shadow 0.2s, transform 0.2s;
}

.fold-months__hub:hover {
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(200, 255, 58, 0.5);
}

.fold-months__hub-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8ff3a;
  box-shadow: 0 0 8px rgba(200, 255, 58, 0.9);
}

.fold-months__ticks {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.2rem;
  width: 100%;
}

.fold-months__tick {
  min-width: 0;
}

.fold-months__node {
  appearance: none;
  border: 0;
  width: 100%;
  padding: 0.35rem 0.1rem 0.25rem;
  background: transparent;
  color: rgba(200, 230, 255, 0.42);
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s, text-shadow 0.15s;
}

.fold-months__node:hover {
  color: rgba(230, 245, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.fold-months__tick.is-active .fold-months__node {
  color: #fff;
  background: rgba(200, 255, 58, 0.1);
  text-shadow: 0 0 14px rgba(200, 255, 58, 0.35);
}

.fold-months__tick.is-fold .fold-months__gz {
  color: rgba(200, 255, 58, 0.85);
}

.fold-months__tick.is-active.is-fold .fold-months__gz {
  color: #c8ff3a;
}

.fold-months__tick.is-lift .fold-months__gz {
  color: rgba(255, 190, 100, 0.95);
}

.fold-months__tick.is-now .fold-months__node {
  color: #fff;
  background: rgba(200, 255, 58, 0.14);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 58, 0.45);
}

.fold-months__tick.is-next .fold-months__node {
  box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.4);
}

.fold-months__tag {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8ff3a;
}

.fold-months__tag--next {
  color: #7ae7ff;
}

.fold-months__idx {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  opacity: 0.55;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.fold-months__gz {
  display: block;
  margin-top: 0.12rem;
  font-size: clamp(0.72rem, 1.5vw, 0.88rem);
  font-weight: 650;
  letter-spacing: 0.06em;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.fold-months__jie {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fold-months__date {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.58rem;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .fold-months__axis {
    padding: 0.45rem 0.55rem 0.55rem;
  }

  .fold-months__ticks {
    display: flex;
    gap: 0.15rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

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

  .fold-months__tick {
    flex: 0 0 3.5rem;
    scroll-snap-align: center;
  }

  .fold-months__jie,
  .fold-months__date {
    font-size: 0.55rem;
  }
}

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

/* 同柱回忆 · 本运+上运 */
.fold-memory {
  margin: 0 0 1.25rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(200, 255, 58, 0.22);
  background:
    linear-gradient(155deg, rgba(28, 42, 22, 0.72), rgba(12, 18, 28, 0.55));
  box-shadow: inset 0 1px 0 rgba(220, 255, 140, 0.08);
}

.fold-memory__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.fold-memory__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}

.fold-memory__lead,
.fold-memory__pair,
.fold-memory__empty,
.fold-memory__catalog {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  line-height: 1.55;
  opacity: 0.88;
}

.fold-memory__to-report {
  margin: 0.85rem 0 0;
}

.fold-memory__report-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.fold-memory__report-link--plan {
  margin-left: 0.8rem;
  color: rgba(200, 255, 90, 0.85);
}

.fold-memory__pair {
  opacity: 0.75;
  font-size: 0.78rem;
}

.fold-memory__prompts {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.fold-memory__card {
  padding: 0.75rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.fold-memory__card.is-filled {
  border-color: rgba(200, 255, 58, 0.35);
}

.fold-memory__hint {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 560;
}

.fold-memory__year-match {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

.fold-memory__badge {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(200, 255, 58, 0.95);
}

.fold-memory__text {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 18, 0.65);
  color: inherit;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
  resize: vertical;
  min-height: 4.5rem;
}

.fold-memory__text:focus {
  outline: 2px solid rgba(200, 255, 58, 0.35);
  outline-offset: 1px;
}

.fold-memory__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fold-memory__save {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: #10140c;
  background: linear-gradient(120deg, #d4ff4a, #9fdc2a);
}

.fold-memory__save:disabled {
  opacity: 0.55;
  cursor: default;
}

.fold-memory__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fold-memory__chip {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.8;
}

.fold-memory__chip.is-filled {
  border-color: rgba(200, 255, 58, 0.45);
  color: rgba(200, 255, 58, 0.95);
}

.fold-memory__chip.is-future {
  opacity: 0.45;
}

.fold-signal--memory .fold-signal__name {
  color: rgba(200, 255, 58, 0.92);
}

/* 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;
}
