/* 东方星格 · 你出生那晚的天空 · spike
   桌面质量优先；深空墨黑 + 金箔，与产品报告视觉同源 */

:root {
  --ink: #030408;
  --gold: #d8c98a;
  --gold-dim: #9a8c5e;
  --gold-faint: rgba(216, 201, 138, 0.38);
  --paper: #e8e2d0;
  --paper-dim: rgba(232, 226, 208, 0.62);
  --qing: #5fa074;  --zhu: #d05a3a;  --bai: #cfcdc7;  --xuan: #5a7fa8; /* 四象元素色 */
  --serif-cn: "Kaiti SC", "STKaiti", "Songti SC", "STSong", "Noto Serif SC", serif;
  --serif-body: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
#card.hidden { display: block !important; } /* 卡片用 transform/opacity 过渡，不能 display:none */
#toast.hidden { display: block !important; }

/* 主动返回坐标：先把所有旧场景同步收束，再只运行一条倒带时间线。 */
body.is-seeking #card,
body.is-seeking #planetCard,
body.is-seeking #legend,
body.is-seeking #xiuPanel,
body.is-seeking #guanCard,
body.is-seeking #moment,
body.is-seeking #focusVeil,
body.is-seeking #xiuLabels,
body.is-seeking #subTip,
body.is-seeking #poster {
  transition-duration: 0s !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif-body);
}

#sky { position: fixed; inset: 0; display: block; touch-action: none; cursor: grab; }
#sky.dragging { cursor: grabbing; }

/* ---------- 氛围层 ---------- */
/* 聚焦暗角：点击星宿时淡入，压暗四周只留中心那片宿，营造"聚光灯/景深" */
#focusVeil {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity 1.1s ease;
  background: radial-gradient(ellipse 48% 48% at 50% 46%,
    transparent 0%, transparent 30%, rgba(3, 4, 10, 0.30) 64%, rgba(2, 3, 8, 0.68) 100%);
}
#focusVeil.on { opacity: 1; }
#vignette {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(1, 2, 5, 0.28) 86%, rgba(0, 1, 3, 0.5) 100%);
}
#grain {
  position: fixed; inset: -50%; z-index: 4; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.6s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); } 25% { transform: translate(2%, -1%); }
  50% { transform: translate(-1%, 2%); } 75% { transform: translate(1%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- 标签层 ---------- */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.sky-label {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  text-align: center; font-family: var(--serif-cn);
  will-change: transform, opacity; user-select: none;
  transition: opacity 0.3s linear;
}
.sky-label.mansion, .sky-label.planet { pointer-events: auto; cursor: pointer; }
.sky-label.mansion .ch {
  display: block; font-size: 15px; letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(0,0,0,0.95), 0 0 4px rgba(0,0,0,0.95);
  transition: font-size 0.5s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.3s ease; /* 聚焦字号不跳变 */
}
.sky-label.mansion:hover .ch { text-shadow: 0 0 16px currentColor, 0 0 6px rgba(0,0,0,0.95); }
.sky-label.mansion.focused .ch { font-size: 22px; }
.sky-label.planet .ch {
  display: block; font-size: 13px; letter-spacing: 1px; color: var(--paper);
  text-shadow: 0 0 8px rgba(0,0,0,0.9);
}
.sky-label.planet .alias {
  display: block; font-size: 9px; letter-spacing: 2px; color: var(--paper-dim); margin-top: 1px;
}

/* 生日落宿后的单一步骤引导：贴住宿名，不遮住星空，也不永久闪烁。 */
#skyGuide {
  --sg-line: 28px;
  position: fixed; left: 0; top: 0; z-index: 14;
  width: min(280px, calc(100vw - 28px));
  padding: 12px 14px 13px;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1px solid rgba(216, 201, 138, 0.5);
  background:
    linear-gradient(105deg, rgba(216, 201, 138, 0.1), transparent 52%),
    rgba(5, 7, 14, 0.93);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38), inset 0 0 22px rgba(216, 201, 138, 0.04);
  opacity: 1;
  transition: opacity 0.28s ease;
}
#skyGuide:hover {
  border-color: rgba(234, 219, 155, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.44), 0 0 18px rgba(216, 201, 138, 0.1);
}
#skyGuide:active { filter: brightness(1.12); }
#skyGuide:focus-visible {
  outline: 2px solid rgba(234, 219, 155, 0.86);
  outline-offset: 4px;
}
#skyGuide::before {
  content: ""; position: absolute; top: 50%; width: var(--sg-line); height: 1px;
  background: linear-gradient(90deg, rgba(216, 201, 138, 0.82), rgba(216, 201, 138, 0.18));
}
#skyGuide[data-side="right"]::before { right: 100%; }
#skyGuide[data-side="left"]::before {
  left: 100%; transform: scaleX(-1);
}
#skyGuide .sg-dot {
  position: absolute; top: calc(50% - 3px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px rgba(216, 201, 138, 0.8);
}
#skyGuide[data-side="right"] .sg-dot { right: calc(100% + var(--sg-line) - 3px); }
#skyGuide[data-side="left"] .sg-dot { left: calc(100% + var(--sg-line) - 3px); }
.sg-copy { display: grid; gap: 4px; }
.sg-copy small {
  font-family: var(--serif-cn); font-size: 9px; letter-spacing: 0.28em; color: var(--gold-dim);
}
.sg-copy b {
  font-family: var(--serif-cn); font-size: 14px; line-height: 1.5; font-weight: 400;
  letter-spacing: 0.08em; color: #eadb9b;
}
.sg-copy span {
  font-size: 10.5px; line-height: 1.55; letter-spacing: 0.035em; color: rgba(232, 226, 208, 0.62);
}
.sky-label.guide-target .ch { animation: guideTargetPulse 1.45s ease 2; }
@keyframes guideTargetPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 10px rgba(0,0,0,0.95); }
  50% { transform: scale(1.16); text-shadow: 0 0 22px currentColor, 0 0 8px currentColor; }
}

/* ---------- 品牌 ---------- */
#brand { position: fixed; top: 20px; left: 24px; z-index: 10; }
#brand h1 {
  font-family: var(--serif-cn); font-size: 24px; font-weight: 400;
  color: var(--gold); letter-spacing: 0.3em;
}
#brand .sub { margin-top: 5px; font-size: 11px; letter-spacing: 0.26em; color: var(--paper-dim); }
#brand h1::after {
  content: ""; display: block; width: 2.2em; height: 1px; margin-top: 8px;
  background: linear-gradient(90deg, var(--gold-faint), transparent);
}

/* ---------- 日期读数 ---------- */
#clock {
  position: fixed; top: 22px; right: 26px; z-index: 10;
  display: flex; align-items: center; gap: 14px;
}
#clockReadout {
  display: grid;
  justify-items: end;
  gap: 4px;
}
#clockDate {
  display: flex; align-items: center; height: 36px; line-height: 1;
  font-family: Georgia, serif; font-size: 15px; letter-spacing: 0.2em;
  color: var(--paper-dim); font-variant-numeric: tabular-nums;
}
#clockContext {
  font-family: var(--serif-cn);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: rgba(232, 226, 208, 0.46);
  white-space: nowrap;
}
#clock.rewinding #clockDate { color: var(--gold); text-shadow: 0 0 18px var(--gold-faint); }
#clock.rewinding #clockContext { color: var(--gold-dim); }
#liveBtn {
  min-height: 36px; box-sizing: border-box;
  background: none; border: 1px solid rgba(216, 201, 138, 0.35); border-radius: 999px;
  color: var(--gold-dim); font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.15em;
  padding: 5px 14px; cursor: pointer; transition: all 0.3s ease;
}
#liveBtn:hover { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 14px rgba(216,201,138,0.2); }

/* ---------- 生日钩子 ---------- */
#seek {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 52px; z-index: 10; text-align: center; width: min(92vw, 440px);
}
#seek.tucked { opacity: 0; pointer-events: none; }
#seek { transition: opacity 0.5s ease; }
.seek-hint {
  font-family: var(--serif-cn); font-size: 14px;
  letter-spacing: 0.24em; color: var(--paper-dim); margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(0,0,0,0.8);
}
.seek-row {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: rgba(8, 10, 18, 0.5);
  border: 1px solid rgba(216, 201, 138, 0.24); border-radius: 999px; padding: 7px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#birth {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--paper); font-family: Georgia, serif; font-size: 15px;
  padding: 8px 6px 8px 18px; color-scheme: dark;
}
#seekBtn {
  flex-shrink: 0; background: linear-gradient(135deg, #c9b479, #a8905a);
  color: #17130a; border: none; border-radius: 999px;
  font-family: var(--serif-cn); font-size: 14px; letter-spacing: 0.12em;
  padding: 10px 22px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(216, 201, 138, 0.25);
}
#seekBtn:hover { box-shadow: 0 0 30px rgba(216, 201, 138, 0.45); }
#seekBtn:active { transform: scale(0.96); }

/* ---------- 信息卡 ---------- */
#card {
  position: fixed; z-index: 12;
  right: clamp(18px, 3vw, 42px); bottom: clamp(18px, 3vw, 34px);
  width: min(calc(100vw - 36px), 430px);
  max-height: calc(100dvh - 36px);
  box-sizing: border-box;
  background: linear-gradient(165deg, rgba(12, 14, 24, 0.88), rgba(5, 6, 12, 0.94));
  border: 1px solid rgba(216, 201, 138, 0.28); border-radius: 18px;
  padding: 22px 24px 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); will-change: transform, opacity;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; scrollbar-gutter: stable;
}
#card.hidden { transform: translateY(30px); opacity: 0; pointer-events: none; }
#cardClose {
  position: sticky; z-index: 2; top: 0; float: right;
  width: 40px; height: 40px; margin: -10px -12px 0 0; padding: 0;
  border: 1px solid rgba(216, 201, 138, 0.12); border-radius: 50%;
  background: rgba(5, 6, 12, 0.78);
  color: var(--paper-dim); font-size: 22px; cursor: pointer; line-height: 1;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#cardClose:hover, #cardClose:focus-visible { color: var(--gold); border-color: rgba(216, 201, 138, 0.42); outline: none; }
.card-eyebrow { font-size: 10px; letter-spacing: 0.34em; color: var(--gold-dim); margin: 1px 46px 10px 0; font-family: var(--serif-cn); }
.card-title { display: flex; align-items: flex-end; gap: 14px; clear: both; }
.card-title .title-text { min-width: 0; padding-bottom: 2px; }
.card-title .glyph {
  flex: none; font-family: var(--serif-cn); font-size: clamp(46px, 7vw, 68px); line-height: 0.92; color: var(--gold);
  text-shadow: 0 0 24px var(--gold-faint);
}
.card-title h2 { font-family: var(--serif-cn); font-weight: 400; font-size: 22px; line-height: 1.25; letter-spacing: 0.16em; }
.card-title p { margin-top: 5px; font-size: 11.5px; line-height: 1.55; color: var(--paper-dim); letter-spacing: 0.06em; }
#cardPinyin { font-family: Georgia, serif; font-style: italic; }
.card-note {
  margin-top: 14px; padding: 15px 0 0;
  border-top: 1px solid rgba(216, 201, 138, 0.16);
  font-size: 12.5px; line-height: 1.85; color: var(--paper-dim);
}
.card-note b { color: var(--gold); font-weight: 400; }
.card-context, .card-next { display: block; color: var(--paper-dim); }
.card-cta {
  position: sticky; bottom: -20px; z-index: 2;
  margin-top: 10px; padding: 18px 0 0; display: flex;
  background: linear-gradient(transparent, rgba(5, 6, 12, 0.98) 34%);
}
#ctaBtn {
  flex: 1; background: linear-gradient(135deg, #d8c98a, #ab8f55);
  color: #17130a; border: none; border-radius: 12px;
  font-family: var(--serif-cn); font-size: 14px; letter-spacing: 0.08em;
  padding: 12px 8px; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 22px rgba(216, 201, 138, 0.22);
}
#ctaBtn:hover { box-shadow: 0 0 32px rgba(216, 201, 138, 0.4); }
#ctaBtn:active { transform: scale(0.97); }

/* ---------- 页脚 ---------- */
#foot {
  position: fixed; left: 0; right: 0; bottom: 10px; z-index: 5;
  text-align: center; pointer-events: none;
}
#foot p { font-size: 9.5px; letter-spacing: 0.2em; color: rgba(232, 226, 208, 0.3); padding: 0 12px; }
#foot .credits { margin-top: 3px; font-size: 8.5px; letter-spacing: 0.08em; color: rgba(232, 226, 208, 0.18); }
.icp-mount:empty { display: none; }
.icp-record { color: inherit; text-decoration: none; }
.icp-record:hover { color: var(--gold-dim); }

/* ---------- 倒带大号读数 ---------- */
#rewindClock {
  position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%);
  z-index: 15; pointer-events: none;
  display: flex; align-items: baseline; justify-content: center;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6.5vw, 92px); letter-spacing: 0.12em;
  color: var(--gold); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 44px rgba(216, 201, 138, 0.45), 0 0 120px rgba(216, 201, 138, 0.2);
  opacity: 0.92;
}
#rewindClock .yr { font-size: 1em; }
#rewindClock .md { font-size: 0.52em; opacity: 0.75; margin-left: 0.3em; }

/* ---------- 落地大时刻 ---------- */
#moment {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%);
  z-index: 15; pointer-events: none; text-align: center;
  opacity: 0; transition: opacity 1.1s ease;
}
#moment.show { opacity: 1; }
#moment .m-date {
  font-family: var(--serif-cn);
  font-size: clamp(38px, 5.6vw, 76px);
  letter-spacing: 0.3em; text-indent: 0.3em;
  color: var(--paper);
  text-shadow: 0 0 40px rgba(232, 226, 208, 0.35), 0 0 110px rgba(216, 201, 138, 0.25);
}
#moment .m-night {
  margin-top: 22px;
  font-family: var(--serif-cn);
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(216, 201, 138, 0.5);
}
#moment::after {
  content: ""; display: block; width: min(38vw, 340px); height: 1px;
  margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-faint), transparent);
}

/* ---------- 七政信息卡 ---------- */
#planetCard {
  position: fixed; z-index: 12; left: 34px; bottom: 34px; width: min(84vw, 300px);
  background: linear-gradient(165deg, rgba(12, 14, 24, 0.9), rgba(5, 6, 12, 0.95));
  border: 1px solid rgba(216, 201, 138, 0.24); border-radius: 16px; padding: 18px 20px 20px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.4s ease;
}
#planetCard.hidden { transform: translateY(24px); opacity: 0; pointer-events: none; }
#planetClose { position: absolute; top: 8px; right: 12px; background: none; border: none; color: var(--paper-dim); font-size: 19px; cursor: pointer; line-height: 1; padding: 6px; }
.pc-row { display: flex; align-items: center; gap: 14px; }
.pc-glyph { font-family: var(--serif-cn); font-size: 46px; line-height: 1; color: var(--gold); text-shadow: 0 0 22px var(--gold-faint); }
.pc-eyebrow { font-size: 10px; letter-spacing: 0.36em; color: var(--gold-dim); font-family: var(--serif-cn); }
#planetName { font-family: var(--serif-cn); font-weight: 400; font-size: 22px; letter-spacing: 0.2em; margin-top: 4px; }
.pc-desc { margin-top: 12px; font-size: 13px; line-height: 1.85; color: var(--paper-dim); letter-spacing: 0.04em; }

/* ---------- 出生夜星空卡 ---------- */
#poster {
  position: fixed; inset: 0; z-index: 25;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: rgba(3, 4, 9, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 1; transition: opacity 0.5s ease;
}
#poster.hidden { opacity: 0; pointer-events: none; }
.poster-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
#posterCanvas {
  height: min(78vh, 800px); width: auto;
  border-radius: 14px; box-shadow: 0 0 60px rgba(216, 201, 138, 0.18), 0 20px 60px rgba(0,0,0,0.6);
}
.poster-actions { display: flex; gap: 14px; }
#posterSave, #posterClose {
  font-family: var(--serif-cn); font-size: 15px; letter-spacing: 0.14em;
  padding: 11px 28px; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}
#posterSave {
  background: linear-gradient(135deg, #d8c98a, #ab8f55); color: #17130a; border: none;
  box-shadow: 0 0 22px rgba(216, 201, 138, 0.3);
}
#posterSave:hover { box-shadow: 0 0 34px rgba(216, 201, 138, 0.5); }
#posterClose { background: none; border: 1px solid rgba(216, 201, 138, 0.35); color: var(--paper-dim); }
#posterClose:hover { color: var(--gold); border-color: var(--gold); }
.poster-tip { font-size: 11.5px; letter-spacing: 0.12em; color: var(--paper-dim); }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; top: 16%; transform: translateX(-50%);
  z-index: 30; padding: 10px 24px;
  background: rgba(8, 10, 18, 0.85); border: 1px solid var(--gold-faint);
  border-radius: 999px; font-size: 13px; letter-spacing: 0.12em; color: var(--gold);
  font-family: var(--serif-cn);
  transition: opacity 0.5s ease; pointer-events: none;
}
#toast.hidden { opacity: 0; }

/* 宿四层结构信息（距星/星座/统计） */
.card-facts {
  margin-top: 15px; font-size: 11.5px; line-height: 1.5; letter-spacing: 0.04em;
  color: var(--paper-dim); font-family: var(--serif-body);
}
.card-facts:empty { display: none; }
.card-fact-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin: 0 0 11px; border: 1px solid rgba(216, 201, 138, 0.14);
  background: rgba(216, 201, 138, 0.14);
}
.card-fact-grid > div {
  min-width: 0; padding: 9px 11px;
  background: rgba(6, 8, 15, 0.92);
}
.card-fact-grid dt {
  font-size: 9px; color: var(--gold-dim); letter-spacing: 0.14em;
}
.card-fact-grid dd {
  margin: 3px 0 0; overflow-wrap: anywhere;
  font-size: 12px; color: var(--paper); letter-spacing: 0.04em;
}
.mansion-coordinate {
  margin: 0 0 11px;
  border: 1px solid rgba(216, 201, 138, 0.16);
  background: linear-gradient(135deg, rgba(216, 201, 138, 0.055), rgba(6, 8, 15, 0.72));
}
.mc-summary {
  margin: 0;
  padding: 10px 11px 8px;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(232, 226, 208, 0.62);
}
.mc-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 0;
  border-top: 1px solid rgba(216, 201, 138, 0.12);
  background: transparent;
  color: var(--gold);
  font: 400 11px/1.5 var(--serif-cn);
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
}
.mc-toggle::after { content: '＋'; font: 400 16px/1 Georgia, serif; }
.mc-toggle[aria-expanded="true"]::after { content: '−'; }
.mc-toggle:hover,
.mc-toggle:focus-visible {
  color: #f0dfa0;
  outline: 1px solid rgba(216, 201, 138, 0.45);
  outline-offset: -1px;
}
.mc-detail {
  padding: 0 11px 11px;
  color: rgba(232, 226, 208, 0.72);
  font-size: 11px;
  line-height: 1.85;
}
.mc-detail p { margin: 0; }
.mc-detail[hidden] { display: none; }
.connection-cta {
  position: relative;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  width: 100%; margin-top: 12px; padding: 11px 13px;
  border: 1px solid rgba(216, 201, 138, 0.52);
  background: linear-gradient(100deg, rgba(216, 201, 138, 0.12), rgba(216, 201, 138, 0.025));
  color: var(--paper); text-align: left; cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.15s ease;
}
.connection-cta:hover,
.connection-cta:focus-visible {
  outline: none; border-color: var(--gold);
  background: linear-gradient(100deg, rgba(216, 201, 138, 0.18), rgba(216, 201, 138, 0.04));
}
.connection-cta:active { transform: scale(0.985); }
.connection-cta > span { display: grid; gap: 2px; min-width: 0; }
.connection-cta small {
  font-family: var(--serif-cn); font-size: 8.5px; letter-spacing: 0.24em; color: var(--gold-dim);
}
.connection-cta b {
  font-family: var(--serif-cn); font-size: 13px; line-height: 1.45;
  font-weight: 400; letter-spacing: 0.08em; color: #eadb9b;
}
.connection-cta i {
  font-style: normal; font-size: 9px; line-height: 1.45;
  letter-spacing: 0.035em; color: rgba(232, 226, 208, 0.46);
}
.connection-cta em {
  font: 400 18px/1 Georgia, serif; color: var(--gold); font-style: normal;
}

/* ---------- 聚焦特效三方向切换条（spike 调试用，定稿后删） ---------- */
#fxbar {
  position: fixed; left: 24px; bottom: 46px; z-index: 11;
  display: flex; gap: 8px; align-items: center;
}
#fxbar .fx-t {
  font-size: 10px; letter-spacing: 0.3em; color: rgba(232, 226, 208, 0.35);
  font-family: var(--serif-cn); margin-right: 2px;
}
#fxbar span[data-fx] {
  font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.2em;
  color: var(--paper-dim); background: rgba(8, 10, 18, 0.4);
  border: 1px solid rgba(216, 201, 138, 0.22); border-radius: 999px;
  padding: 4px 12px; cursor: pointer; transition: all 0.3s ease;
}
#fxbar span[data-fx]:hover { color: var(--gold); border-color: rgba(216, 201, 138, 0.5); }
#fxbar span[data-fx].on { color: #17130a; background: linear-gradient(135deg, #c9b479, #a8905a); border-color: transparent; }

/* 附属星官悬停浮名（灯塔样式） */
#subTip {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  font-family: var(--serif-cn); font-size: 12.5px; letter-spacing: 0.05em; line-height: 1.7;
  color: var(--paper); max-width: 280px;
  background: linear-gradient(165deg, rgba(12, 14, 24, 0.97), rgba(5, 6, 12, 0.985));
  border: 1px solid rgba(216, 201, 138, 0.26); border-radius: 8px;
  padding: 9px 13px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  transition: opacity 0.2s ease; opacity: 1;
}
#subTip.hidden { display: block !important; opacity: 0; }

/* ---------- 星宿专属空间 ---------- */
#xiuPanel {
  position: fixed; left: 24px; top: 110px; bottom: 130px; width: 236px; z-index: 12;
  overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(165deg, rgba(10, 12, 20, 0.72), rgba(5, 6, 12, 0.8));
  border: 1px solid rgba(216, 201, 138, 0.2); border-radius: 16px; padding: 16px 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#xiuPanel.hidden { display: block !important; opacity: 0; transform: translateX(-18px); pointer-events: none; }
#xiuPanel header { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.xp-glyph { font-family: var(--serif-cn); font-size: 38px; line-height: 1; text-shadow: 0 0 18px currentColor; }
#xiuPanel h3 { font-family: var(--serif-cn); font-size: 16px; font-weight: 400; letter-spacing: 0.14em; color: var(--paper); }
#xiuPanel header p { font-size: 10px; color: var(--paper-dim); margin-top: 3px; letter-spacing: 0.05em; }
#exitSpace { margin-left: auto; flex-shrink: 0; background: none; border: 1px solid rgba(216, 201, 138, 0.3); border-radius: 999px; width: 26px; height: 26px; color: var(--paper-dim); cursor: pointer; line-height: 1; }
#exitSpace:hover { color: var(--gold); border-color: var(--gold); }
.xp-hint { font-size: 9.5px; letter-spacing: 0.08em; color: rgba(232, 226, 208, 0.38); margin: 4px 0 10px; }
#xiuPanel ul { list-style: none; }
#xiuPanel li { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-family: var(--serif-cn); font-size: 13.5px; letter-spacing: 0.1em; color: var(--paper-dim); transition: all 0.25s ease; }
#xiuPanel li span { font-size: 10px; color: rgba(232, 226, 208, 0.35); font-family: var(--serif-body); }
#xiuPanel li:hover, #xiuPanel li.hi { color: var(--paper); background: rgba(216, 201, 138, 0.08); }
#xiuPanel li.core { color: var(--gold); }

#guanCard {
  position: fixed; left: 276px; top: 130px; width: 218px; z-index: 12; padding: 14px 16px;
  background: linear-gradient(165deg, rgba(10, 12, 20, 0.8), rgba(5, 6, 12, 0.86));
  border: 1px solid rgba(216, 201, 138, 0.22); border-radius: 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.4s ease;
}
#guanCard .gc-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(216, 201, 138, 0.3); border-radius: 50%; background: rgba(5, 7, 13, 0.82); color: var(--paper-dim); font: 18px/1 var(--serif-body); cursor: pointer; }
#guanCard .gc-close:hover { color: var(--gold); border-color: var(--gold); }
#guanCard.hidden { display: block !important; opacity: 0; pointer-events: none; }
#guanCard h4 { font-family: var(--serif-cn); font-size: 18px; font-weight: 400; letter-spacing: 0.16em; color: var(--gold); }
.gc-meta { font-size: 10.5px; color: var(--paper-dim); margin: 4px 0 8px; }
#guanCard ul { list-style: none; max-height: 190px; overflow: auto; }
#guanCard li { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--paper-dim); padding: 3px 0; }
#guanCard li span { color: rgba(232, 226, 208, 0.4); font-size: 10px; white-space: nowrap; }
.gc-lore { margin-top: 8px; font-size: 10px; color: rgba(232, 226, 208, 0.35); border-top: 1px dashed rgba(216, 201, 138, 0.2); padding-top: 8px; }

#xiuIndex { position: fixed; top: 66px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 16px; max-width: 94vw; flex-wrap: wrap; justify-content: center; }
#xiuIndex .xi-g { display: flex; gap: 1px; }
#xiuIndex i { font-style: normal; font-family: var(--serif-cn); font-size: 12px; color: rgba(232, 226, 208, 0.4); padding: 3px 5px; cursor: pointer; border-bottom: 1px solid transparent; transition: all 0.25s ease; }
#xiuIndex i:hover, #xiuIndex i:focus-visible { color: var(--qc); border-bottom-color: var(--qc); }

#subTip b { color: var(--gold); font-weight: 400; letter-spacing: 0.12em; }
#subTip { line-height: 1.7; font-size: 12px; }

/* ---------- 科普引导层 ---------- */
.xp-explain { font-size: 10.5px; line-height: 1.75; letter-spacing: 0.04em; color: rgba(232, 226, 208, 0.55); margin: 6px 0 4px; padding: 8px 10px; background: rgba(216, 201, 138, 0.05); border-left: 2px solid rgba(216, 201, 138, 0.3); }
.xp-explain b { color: var(--gold); font-weight: 400; }
.gc-gloss { font-family: var(--serif-cn); font-size: 12.5px; letter-spacing: 0.08em; color: var(--paper); margin: 6px 0 2px; line-height: 1.7; }

#guanTag {
  position: fixed; left: 0; top: 0; z-index: 11; pointer-events: none;
  font-family: var(--serif-cn); font-size: 17px; letter-spacing: 0.22em; color: var(--gold);
  text-shadow: 0 0 14px rgba(216, 201, 138, 0.7), 0 0 4px rgba(0, 0, 0, 0.9);
  padding-bottom: 6px; border-bottom: 1px solid rgba(216, 201, 138, 0.5);
  transition: opacity 0.3s ease; will-change: transform;
}
#guanTag.hidden { display: block !important; opacity: 0 !important; }
#guanTag::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
#guanTag.ping::before { content: ""; position: absolute; left: 50%; bottom: -14px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; border: 1px solid rgba(216, 201, 138, 0.8); animation: tagPing 0.9s ease-out 1 forwards; }
@keyframes tagPing { from { transform: scale(0.25); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

#xiuIndex .xi-g { display: flex; flex-direction: column; align-items: center; gap: 2px; }
#xiuIndex .xi-g em { font-style: normal; font-family: var(--serif-cn); font-size: 9px; letter-spacing: 0.3em; color: var(--qc); opacity: 0.75; }
#xiuIndex .xi-row { display: flex; gap: 1px; }

#helpBtn {
  position: fixed; top: 60px; right: 26px; z-index: 10;
  width: 26px; height: 26px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid rgba(216, 201, 138, 0.35);
  color: var(--gold-dim); font-family: Georgia, serif; font-size: 14px; line-height: 1;
  transition: all 0.3s ease;
}
#helpBtn:hover { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 14px rgba(216, 201, 138, 0.2); }
#legend {
  position: fixed; top: 100px; right: 26px; z-index: 20; width: min(88vw, 340px);
  background: linear-gradient(165deg, rgba(12, 14, 24, 0.92), rgba(5, 6, 12, 0.96));
  border: 1px solid rgba(216, 201, 138, 0.28); border-radius: 16px; padding: 20px 22px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#legend.hidden { display: block !important; opacity: 0; transform: translateY(-10px); pointer-events: none; }
#legend h3 { font-family: var(--serif-cn); font-size: 16px; font-weight: 400; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 12px; }
#legendClose { position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--paper-dim); font-size: 18px; cursor: pointer; padding: 4px; }
#legend dt { font-family: var(--serif-cn); font-size: 13px; letter-spacing: 0.14em; color: var(--paper); margin-top: 10px; }
#legend dd { font-size: 11.5px; line-height: 1.8; color: var(--paper-dim); margin-top: 2px; letter-spacing: 0.03em; }
#legend .legend-play { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(216, 201, 138, 0.25); font-size: 11.5px; line-height: 1.8; color: rgba(232, 226, 208, 0.7); }

/* ---------- 星官常驻名牌 + 成员星环 ---------- */
#xiuLabels { position: fixed; inset: 0; z-index: 11; pointer-events: none; transition: opacity 0.6s ease; }
.xg-label {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
  font-family: var(--serif-cn); font-size: 11.5px; letter-spacing: 0.14em;
  color: rgba(232, 226, 208, 0.85);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.95);
  padding: 2px 4px; white-space: nowrap; user-select: none;
  transition: opacity 0.35s ease, font-size 0.25s ease, color 0.25s ease;
  will-change: transform, opacity;
}
.xg-label:hover { color: var(--paper); }
.sky-label[role="button"]:focus-visible,
.xg-label[role="button"]:focus-visible,
#xiuPanel li[role="button"]:focus-visible,
#xiuIndex i[role="button"]:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}
.xg-label.hi { font-size: 14px; color: var(--gold); text-shadow: 0 0 12px rgba(216, 201, 138, 0.6), 0 0 3px rgba(0, 0, 0, 0.95); }
.xg-label.core { color: rgba(216, 201, 138, 0.75); }
.star-ring {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: 0;
  border: 1px solid rgba(216, 201, 138, 0.75); border-radius: 50%;
  box-shadow: 0 0 10px rgba(216, 201, 138, 0.35), inset 0 0 6px rgba(216, 201, 138, 0.15);
  transition: opacity 0.3s ease; will-change: transform;
  animation: ringIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ringIn { from { scale: 2.2; opacity: 0; } to { scale: 1; opacity: 1; } }
.star-ring i {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  margin-top: 4px; font-style: normal; font-family: var(--serif-body);
  font-size: 9.5px; letter-spacing: 0.06em; color: rgba(232, 226, 208, 0.75);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9); white-space: nowrap;
}

.legend-note { margin-top: 8px; font-size: 10px; line-height: 1.7; color: rgba(232, 226, 208, 0.4); }

/* ---------- v31:宿全名/相机/引流/未入画官/单位注 ---------- */
.card-fullname { color: var(--gold); letter-spacing: 0.1em; }
.xp-fullname { font-style: normal; font-size: 11px; color: var(--gold-dim); letter-spacing: 0.12em; margin-left: 6px; cursor: help; }
.gc-units { margin-top: 8px; font-size: 9px; letter-spacing: 0.04em; color: rgba(232, 226, 208, 0.35); }
#xiuPanel li.ghost { cursor: help; opacity: 0.45; }
#xiuPanel li.ghost:hover { background: none; color: var(--paper-dim); }
#xiuPanel li.ghost span { font-size: 9px; }
.xp-cta { margin-top: 14px; padding: 10px 12px; border-top: 1px dashed rgba(216, 201, 138, 0.25); }
.xp-cta p { font-size: 10.5px; line-height: 1.8; color: rgba(232, 226, 208, 0.55); }
.xp-cta p b { color: var(--gold); font-weight: 400; }
.xp-cta span { display: block; margin-top: 6px; font-size: 10px; letter-spacing: 0.08em; color: var(--gold-dim); }
#camBar { position: fixed; right: 26px; top: 100px; z-index: 10; display: flex; flex-direction: column; gap: 8px; }
#camBar button { background: rgba(8, 10, 18, 0.55); border: 1px solid rgba(216, 201, 138, 0.3); border-radius: 999px; color: var(--gold-dim); font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.14em; padding: 7px 14px; cursor: pointer; backdrop-filter: blur(8px); transition: all 0.3s ease; }
#camBar button:hover { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 14px rgba(216, 201, 138, 0.2); }
#camBar button.rec { color: #e08a5a; border-color: #e08a5a; animation: recPulse 1.4s ease infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 16px rgba(224, 138, 90, 0.5); } }
#mpBadge { position: fixed; left: 24px; bottom: 76px; z-index: 9; display: flex; align-items: center; gap: 12px; padding: 9px 13px 9px 9px; background: rgba(8, 10, 18, 0.72); border: 1px solid rgba(216, 201, 138, 0.28); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); backdrop-filter: blur(10px); }
.mp-badge-code { display: block; width: 82px; height: 82px; flex-shrink: 0; object-fit: cover; border-radius: 8px; background: #fff; }
#mpBadge p { font-size: 10.5px; line-height: 1.75; letter-spacing: 0.1em; color: var(--paper-dim); }
#mpBadge p span { white-space: nowrap; }
#mpBadge p b { color: var(--gold); font-weight: 400; }
@media (max-width: 960px) { #mpBadge { display: none; } }

/* ---------- v32:双人/海报小样/提示 ---------- */
#duoToggle { flex-shrink: 0; background: none; border: 1px solid rgba(216, 201, 138, 0.3); border-radius: 999px; color: var(--gold-dim); font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.1em; padding: 0 14px; cursor: pointer; transition: all 0.3s ease; }
#duoToggle:hover, #duoToggle.on { color: var(--gold); border-color: var(--gold); }
#birth2 { flex: 1; min-width: 0; background: none; border: none; outline: none; border-left: 1px solid rgba(216, 201, 138, 0.2); color: var(--paper); font-family: Georgia, serif; font-size: 15px; padding: 8px 6px 8px 14px; color-scheme: dark; }
#posterStyles { display: flex; align-items: center; gap: 8px; }
#posterStyles em { font-style: normal; font-size: 10px; letter-spacing: 0.2em; color: rgba(232, 226, 208, 0.4); font-family: var(--serif-cn); }
#posterStyles span { font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.12em; color: var(--paper-dim); border: 1px solid rgba(216, 201, 138, 0.25); border-radius: 999px; padding: 5px 14px; cursor: pointer; transition: all 0.25s ease; }
#posterStyles span:hover { color: var(--gold); border-color: var(--gold-dim); }
#posterStyles span.on { color: #17130a; background: linear-gradient(135deg, #d8c98a, #ab8f55); border-color: transparent; }
#subTip { max-width: 260px; }

/* v33:城市选择/示意标 */
#posterCity { background: rgba(8, 10, 18, 0.7); border: 1px solid rgba(216, 201, 138, 0.3); border-radius: 999px; color: var(--paper-dim); font-family: var(--serif-cn); font-size: 12px; padding: 5px 10px; outline: none; cursor: pointer; }
.xg-approx { font-style: normal; font-size: 9px; color: rgba(216, 201, 138, 0.55); border: 1px solid rgba(216, 201, 138, 0.3); border-radius: 4px; padding: 0 3px; margin-left: 5px; vertical-align: 1px; cursor: help; }

/* ---------- v46:开场「月洞观星」——圆窗透真实星空 ---------- */
#intro { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4vh 0 5vh; }
#intro.open { pointer-events: none; }
#intro.hidden { display: none !important; }
@keyframes introIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* 圆窗:自身全透(露出后面的 WebGL 星空),巨幅投影画出窗外墨底 */
.intro-dial { position: relative; flex-shrink: 0; width: min(54vmin, calc(100vh - 330px)); height: min(54vmin, calc(100vh - 330px)); margin: 44px 0 52px; z-index: 1; } /* 流式:盘按剩余高度收缩,按钮永不被挤出 */
.intro-hole {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 1px solid rgba(216, 201, 138, 0.45);
  box-shadow: 0 0 46px 1px rgba(216, 201, 138, 0.13), 0 0 0 300vmax #05070d, inset 0 0 70px rgba(216, 201, 138, 0.06);
  transition: transform 2.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.8s ease;
}
#intro.open .intro-hole { transform: scale(5.4); border-color: transparent; }
.intro-ticks { position: absolute; inset: 0; color: rgba(216, 201, 138, 0.5); font-family: var(--serif-cn); animation: dialTurn 1200s linear infinite; }
@keyframes dialTurn { to { transform: rotate(360deg); } }
.iq { position: absolute; font-family: var(--serif-cn); font-size: 13px; letter-spacing: 0.32em; color: var(--paper-dim); }
.iq.n { top: -36px; left: 50%; transform: translateX(-50%); text-indent: 0.32em; }
.iq.s { bottom: -36px; left: 50%; transform: translateX(-50%); text-indent: 0.32em; }
.iq.e { right: -28px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; }
.iq.w { left: -28px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }
.intro-brand { display: flex; align-items: center; gap: 13px; z-index: 2; animation: introFade 1.8s ease both; }
.intro-brand h1 { font-family: var(--serif-cn); font-weight: 400; font-size: 26px; letter-spacing: 0.5em; text-indent: 0.5em; color: var(--gold); text-shadow: 0 0 24px rgba(216, 201, 138, 0.25); }
.ib-t { display: flex; flex-direction: column; }
.intro-brand .intro-logo { width: 52px; height: 52px; margin: 0; }
.intro-under { text-align: center; z-index: 2; animation: introFade 1.8s ease 0.4s both; }
.intro-under p { font-family: var(--serif-cn); font-size: 14px; letter-spacing: 0.4em; text-indent: 0.4em; color: var(--paper-dim); }
/* 点开始:窗外元素退场(先掐掉入场动画的 fill,再过渡) */
.intro-ticks, .iq { transition: opacity 0.7s ease; }
#intro.open .intro-brand, #intro.open .intro-under { animation: none; }
#intro.open .intro-brand, #intro.open .intro-under, #intro.open .intro-ticks, #intro.open .iq { opacity: 0; transition: opacity 0.7s ease; }
/* 开场期间天空文字标签不出,入场后随 UI 一起醒来 */
#labels { transition: opacity 1.4s ease; }
body:not(.ui-in) #labels { opacity: 0; }
/* UI 静候开场,随后依次淡入 */
#brand, #clock, #xiuIndex, #seek, #foot, #helpBtn, #camBar, #mpBadge, #fxbar {
  opacity: 0; transform: translateY(8px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
body.ui-in #brand { opacity: 1; transform: none; transition-delay: 0.1s; }
body.ui-in #clock { opacity: 1; transform: none; transition-delay: 0.35s; }
body.ui-in #xiuIndex { opacity: 1; transform: none; transition-delay: 0.55s; }
body.ui-in #seek { opacity: 1; transform: none; transition-delay: 0.85s; }
body.ui-in #foot { opacity: 1; transform: none; transition-delay: 1.15s; }
body.ui-in #helpBtn, body.ui-in #camBar { opacity: 1; transform: none; transition-delay: 1.3s; }
body.ui-in #mpBadge, body.ui-in #fxbar { opacity: 1; transform: none; transition-delay: 1.5s; }

/* ---------- v35:银河封面/日月开关/信标/遮挡修/居中修 ---------- */
#introEnter {
  margin-top: 34px; background: none; cursor: pointer;
  border: 1px solid rgba(216, 201, 138, 0.45); border-radius: 999px;
  color: var(--gold); font-family: var(--serif-cn); font-size: 15px; letter-spacing: 0.3em; text-indent: 0.3em;
  padding: 12px 34px; transition: all 0.35s ease;
  animation: enterBreath 3s ease infinite;
}
#introEnter:hover { background: rgba(216, 201, 138, 0.1); box-shadow: 0 0 24px rgba(216, 201, 138, 0.25); }
@keyframes enterBreath { 50% { box-shadow: 0 0 18px rgba(216, 201, 138, 0.18); } }
#bodyToggle { flex-shrink: 0; background: none; border: 1px solid rgba(216, 201, 138, 0.3); border-radius: 999px; color: var(--gold-dim); font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.08em; padding: 0 12px; cursor: pointer; transition: all 0.3s ease; }
#bodyToggle:hover { color: var(--gold); border-color: var(--gold); }
#bodyToggle.moon { color: #cfd9ec; border-color: rgba(190, 205, 232, 0.5); }
/* 丝束演绎说明 + 开关 */
.xp-demo { font-size: 9.5px; letter-spacing: 0.05em; color: rgba(232, 226, 208, 0.42); margin: 2px 0 8px; line-height: 1.7; }
.xp-demo button { background: none; border: 1px solid rgba(216, 201, 138, 0.3); border-radius: 999px; color: var(--gold-dim); font-size: 9.5px; padding: 1px 8px; margin-left: 4px; cursor: pointer; font-family: var(--serif-cn); }
.xp-demo button:hover { color: var(--gold); border-color: var(--gold); }
/* 遮挡修:悬停提示永远压在最上;图例过高可滚 */
#subTip { z-index: 60; }
#legend { max-height: calc(100vh - 130px); overflow-y: auto; }
/* 居中修:索引条窄屏 2×2 均衡换行,不再一行三组一行一组 */
#xiuIndex { row-gap: 4px; }
@media (max-width: 1320px) {
  #xiuIndex { width: min(94vw, 720px); gap: 4px 20px; }
  #xiuIndex .xi-g { flex: 0 0 44%; }
}
@media (max-width: 860px) {
  #guanCard { left: 16px; top: auto; bottom: 150px; }
  #camBar { top: auto; bottom: 150px; }
}

/* 居中修真凶:ui-in 的 transform:none 覆盖了 translateX(-50%)。居中元素单独给全量 transform */
#xiuIndex, #seek { transform: translate(-50%, 8px); }
body.ui-in #xiuIndex { transform: translate(-50%, 0); transition-delay: 0.55s; }
body.ui-in #seek { transform: translate(-50%, 0); transition-delay: 0.85s; }
/* 生日框四件套(日期/按钮/太阳宿/双人)加宽,不再挤断 */
#seek { width: min(94vw, 620px); }

/* ---------- v36:净空模式 ---------- */
body.zen #brand, body.zen #clock, body.zen #xiuIndex, body.zen #seek, body.zen #foot,
body.zen #helpBtn, body.zen #camBar, body.zen #mpBadge, body.zen #fxbar,
body.zen #legend, body.zen #card,
body.zen #planetCard, body.zen #guanCard, body.zen #xiuPanel {
  opacity: 0 !important; pointer-events: none !important;
  transition: opacity 0.7s ease !important;
}
/* 纯净档才隐宿名与点选(交互选择权在用户) */
body.zen.zen-pure #labels, body.zen.zen-pure #xiuLabels, body.zen.zen-pure #guanTag, body.zen.zen-pure #subTip {
  opacity: 0 !important; pointer-events: none !important;
  transition: opacity 0.7s ease !important;
}
#zenExit {
  position: fixed; right: 26px; bottom: 26px; z-index: 50;
  background: rgba(8, 10, 18, 0.4); border: 1px solid rgba(216, 201, 138, 0.25); border-radius: 999px;
  color: var(--gold-dim); font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.2em;
  padding: 8px 18px; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease, border-color 0.3s ease;
}
body.zen #zenExit { opacity: 0.3; pointer-events: auto; }
body.zen #zenExit:hover { opacity: 1; color: var(--gold); border-color: var(--gold); }

#zenCtl { position: fixed; right: 26px; bottom: 26px; z-index: 50; display: flex; gap: 8px; }
#zenCtl button {
  background: rgba(8, 10, 18, 0.4); border: 1px solid rgba(216, 201, 138, 0.25); border-radius: 999px;
  color: var(--gold-dim); font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.16em;
  padding: 8px 16px; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease, border-color 0.3s ease;
}
body.zen #zenCtl button { opacity: 0.3; pointer-events: auto; }
body.zen #zenCtl button:hover { opacity: 1; color: var(--gold); border-color: var(--gold); }
#zenExit { position: static; right: auto; bottom: auto; }

/* ---------- v38:星官丝网开关(显眼版) ---------- */
.xp-silk { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; padding: 8px 10px; background: rgba(216, 201, 138, 0.06); border-radius: 10px; }
.xp-silk .xs-name { font-family: var(--serif-cn); font-size: 12.5px; letter-spacing: 0.14em; color: var(--paper); }
.xp-silk button { min-width: 44px; background: none; border: 1px solid rgba(216, 201, 138, 0.4); border-radius: 999px; color: var(--paper-dim); font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.1em; padding: 4px 12px; cursor: pointer; transition: all 0.25s ease; }
.xp-silk button.on { background: linear-gradient(135deg, #d8c98a, #ab8f55); color: #17130a; border-color: transparent; box-shadow: 0 0 12px rgba(216, 201, 138, 0.3); }
.xp-silk i { font-style: normal; font-size: 9.5px; color: rgba(232, 226, 208, 0.4); cursor: help; margin-left: auto; }

/* ---------- 太阳星宿：文化事实 → 现代意象连接 → 小程序同源画像 ---------- */
.mansion-reading {
  margin: 12px 0 13px;
  border: 1px solid rgba(216, 201, 138, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(216, 201, 138, 0.045), transparent 42%),
    rgba(3, 5, 11, 0.45);
}
.mr-block {
  position: relative;
  padding: 10px 12px 11px 15px;
  border-bottom: 1px solid rgba(216, 201, 138, 0.09);
}
.mr-block::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px;
  background: rgba(216, 201, 138, 0.24);
}
.mr-block small {
  display: block; margin-bottom: 4px;
  font-family: var(--serif-cn); font-size: 9px; line-height: 1.4;
  letter-spacing: 0.2em; color: var(--gold-dim);
}
.mr-block p {
  margin: 0; font-size: 12px; line-height: 1.72;
  letter-spacing: 0.035em; color: rgba(232, 226, 208, 0.7);
}
.mr-bridge { background: rgba(216, 201, 138, 0.028); }
.mr-bridge small { color: rgba(216, 201, 138, 0.55); }
.mr-bridge p { color: rgba(232, 226, 208, 0.58); }
.mr-tendency { background: linear-gradient(90deg, rgba(216, 201, 138, 0.1), transparent 78%); }
.mr-tendency::before { background: var(--gold); box-shadow: 0 0 9px rgba(216, 201, 138, 0.34); }
.mr-tendency p {
  font-family: var(--serif-cn); font-size: 14px; line-height: 1.75;
  color: var(--paper); letter-spacing: 0.055em;
}
.mr-watch::before { background: rgba(182, 104, 76, 0.58); }
.mr-watch small { color: rgba(207, 143, 112, 0.78); }
.mr-watch p { color: rgba(232, 226, 208, 0.66); }
.mr-boundary {
  margin: 0; padding: 9px 12px 10px;
  font-size: 9px; line-height: 1.65; letter-spacing: 0.025em;
  color: rgba(232, 226, 208, 0.36);
}
.legend-bridge { font-size: 12px; line-height: 1.9; letter-spacing: 0.03em; color: var(--paper-dim); margin: 0 0 14px; padding: 10px 12px; background: rgba(216, 201, 138, 0.06); border-left: 2px solid rgba(216, 201, 138, 0.35); }
.legend-bridge b { color: var(--gold); font-weight: 400; }

/* ---------- v41:精确档(时刻+城市)与三宿卡 ---------- */
#preciseToggle { flex-shrink: 0; background: none; border: 1px solid rgba(216, 201, 138, 0.3); border-radius: 999px; color: var(--gold-dim); font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.08em; padding: 0 12px; cursor: pointer; transition: all 0.3s ease; }
#preciseToggle .precise-toggle-short { display: none; }
#preciseToggle:hover, #preciseToggle.on { color: var(--gold); border-color: var(--gold); }
#preciseToggle.on { background: rgba(216, 201, 138, 0.12); }
#birthTime { flex-shrink: 0; width: 92px; background: none; border: none; outline: none; border-left: 1px solid rgba(216, 201, 138, 0.2); color: var(--paper); font-family: Georgia, serif; font-size: 14px; padding: 8px 4px 8px 10px; color-scheme: dark; }
#birthCity { flex-shrink: 0; width: 86px; background: rgba(8, 10, 18, 0.6); border: none; outline: none; border-left: 1px solid rgba(216, 201, 138, 0.2); color: var(--paper); font-family: var(--serif-cn); font-size: 13px; padding: 8px 4px; color-scheme: dark; }
#seek.precise { width: min(96vw, 760px); }
.deep-rows { display: block; margin-top: 10px; border-top: 1px dashed rgba(216, 201, 138, 0.25); padding-top: 8px; }
.deep-rows .dr { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.deep-rows .dr em { font-style: normal; flex-shrink: 0; font-size: 10.5px; letter-spacing: 0.12em; color: var(--gold-dim); font-family: var(--serif-cn); }
.deep-rows .dr b { flex-shrink: 0; font-family: var(--serif-cn); font-size: 14px; letter-spacing: 0.08em; color: var(--gold); font-weight: 400; }
.deep-rows .dr i { font-style: normal; font-size: 11px; color: rgba(232, 226, 208, 0.55); }
.dr-lock { display: block; margin-top: 8px; font-size: 11.5px; color: var(--paper-dim); }
.dr-lock b { color: var(--gold); font-weight: 400; }

/* ---------- v43:七政落位视图 ---------- */
.qz-btn { display: block; margin-top: 10px; width: 100%; background: none; border: 1px solid rgba(216, 201, 138, 0.4); border-radius: 10px; color: var(--gold); font-family: var(--serif-cn); font-size: 13px; letter-spacing: 0.1em; padding: 9px 8px; cursor: pointer; transition: all 0.3s ease; }
.qz-btn:hover { background: rgba(216, 201, 138, 0.1); box-shadow: 0 0 16px rgba(216, 201, 138, 0.2); }

#preciseEntryBtn { display: none; }
.xp-coordinate-return {
  display: grid; width: 100%; min-height: 44px; margin: 10px 0;
  place-items: center; gap: 2px; padding: 8px 12px;
  border: 1px solid rgba(216, 201, 138, 0.35); border-radius: 9px;
  background: linear-gradient(90deg, rgba(216, 201, 138, 0.11), rgba(216, 201, 138, 0.025));
  color: var(--gold); font-family: var(--serif-cn); cursor: pointer;
}
.xp-coordinate-return span { font-size: 12px; letter-spacing: 0.11em; }
.xp-coordinate-return small { font-size: 9px; letter-spacing: 0.05em; color: rgba(232, 226, 208, 0.48); }
.xp-coordinate-return:hover { border-color: var(--gold); background: rgba(216, 201, 138, 0.14); }

/* ---------- v44:下拉式日期/时刻/省市(原生弹层越界修) + 七政标签衬底 ---------- */
.dsel { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.dsel select {
  background: rgba(8, 10, 18, 0.6); border: none; outline: none;
  border-left: 1px solid rgba(216, 201, 138, 0.18);
  color: var(--paper); font-family: Georgia, "Songti SC", serif; font-size: 14px;
  padding: 8px 2px; color-scheme: dark; cursor: pointer;
}
.dsel select:first-child { border-left: none; }
#seek.precise .seek-row, #seek.duo .seek-row { flex-wrap: wrap; row-gap: 6px; justify-content: center; }
#seek.precise { width: min(96vw, 780px); }
@media (min-width: 961px) {
  #seek.precise { width: min(96vw, 960px); }
  #seek.precise .seek-row { flex-wrap: nowrap; align-items: center; }
  #seek.precise .dsel,
  #seek.precise .dsel select,
  #seek.precise #seekBtn,
  #seek.precise #preciseToggle { height: 40px; box-sizing: border-box; }
}
body.qz .sky-label.planet .ch, body.qz .sky-label.planet .alias {
  text-shadow: 0 0 4px #000, 0 0 8px #000, 0 0 14px rgba(0, 0, 0, 0.95);
}
body.qz .sky-label.planet .alias { background: rgba(3, 4, 9, 0.55); padding: 1px 6px; border-radius: 6px; }
.py { font-style: normal; font-family: Georgia, serif; font-size: 11px; color: rgba(232, 226, 208, 0.45); letter-spacing: 0.04em; margin-left: 6px; }

/* ---------- v45:logo 标记 + 品牌横排 ---------- */
#brand { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  display: block; width: 52px; height: 52px; flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(216, 201, 138, 0.2));
}
.intro-logo { width: 52px; height: 52px; margin: 0 auto 18px; }
.card-title h2 { font-size: 24px; }

/* ---------- v47:七政导航条 ---------- */
#qzNav { position: fixed; left: 50%; bottom: 118px; transform: translateX(-50%); display: none; align-items: center; gap: 10px; z-index: 24; padding: 8px 16px; background: rgba(8, 10, 18, 0.55); border: 1px solid rgba(216, 201, 138, 0.22); border-radius: 999px; backdrop-filter: blur(6px); }
body.qz #qzNav { display: flex; }
.qn-tip { font-family: var(--serif-cn); font-size: 12px; letter-spacing: 0.18em; color: var(--paper-dim); margin-right: 2px; }
#qzNav button { width: 34px; height: 34px; border-radius: 50%; background: none; border: 1px solid rgba(216, 201, 138, 0.35); color: var(--gold); font-family: var(--serif-cn); font-size: 14px; cursor: pointer; transition: all 0.25s ease; }
#qzNav button:hover { background: rgba(216, 201, 138, 0.14); }
#qzNav button.on { background: var(--gold); color: #0a0d15; }
#qzNav #qnAll { width: auto; border-radius: 999px; padding: 0 14px; font-size: 12.5px; letter-spacing: 0.1em; }

/* v51 P0-07:传统象征标签(留母题+加边界,不去绝对词) */
.symbol-tag { display: block; margin-top: 10px; font-family: var(--serif-cn); font-size: 11px; letter-spacing: 0.16em; color: rgba(216, 201, 138, 0.5); }
#planetCard .symbol-tag { margin-top: 8px; }

/* v62 A档:黄道刻度式人群坐标 */
.rarity-plate {
  position: relative;
  margin-top: 14px;
  padding: 12px 14px 13px;
  overflow: hidden;
  border: 1px solid rgba(216, 201, 138, 0.34);
  background:
    linear-gradient(112deg, rgba(216, 201, 138, 0.085), transparent 42%),
    rgba(5, 7, 13, 0.7);
  box-shadow: inset 0 0 24px rgba(216, 201, 138, 0.035);
  color: var(--paper);
}
.rarity-plate::after {
  content: "";
  position: absolute; right: -20px; top: -34px;
  width: 92px; height: 92px;
  border: 1px solid rgba(216, 201, 138, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.rarity-plate header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.rarity-plate header span {
  font-family: var(--serif-cn); font-size: 10px; letter-spacing: 0.24em;
  color: var(--gold);
}
.rarity-plate header small {
  font-size: 8px; letter-spacing: 0.13em; color: rgba(232, 226, 208, 0.36);
}
.rarity-scale {
  display: grid; grid-template-columns: repeat(7, 1fr);
  height: 8px; margin: 9px 0 4px;
  border-top: 1px solid rgba(216, 201, 138, 0.2);
}
.rarity-scale i {
  display: block; width: 1px; height: 5px; margin-top: -1px;
  background: rgba(216, 201, 138, 0.32);
}
.rarity-scale i:last-child { justify-self: end; }
.rarity-values {
  display: grid; grid-template-columns: auto 1px 1fr; align-items: center; gap: 13px;
}
.rarity-primary {
  font: 400 34px/1 Georgia, "Times New Roman", serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em; color: #ebda8e;
}
.rarity-axis {
  width: 1px; height: 26px; background: rgba(216, 201, 138, 0.24);
}
.rarity-ratio {
  font: 400 16px/1.2 Georgia, var(--serif-cn), serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em; color: rgba(232, 226, 208, 0.82);
}
.rarity-ratio i {
  padding: 0 4px; font-style: normal; color: rgba(216, 201, 138, 0.48);
}
.rarity-original {
  margin: 10px 0 0; padding-top: 8px;
  border-top: 1px solid rgba(216, 201, 138, 0.12);
  font-family: var(--serif-cn); font-size: 10.5px; line-height: 1.55;
  letter-spacing: 0.07em; color: rgba(232, 226, 208, 0.72);
}
.rarity-note {
  display: block; margin-top: 3px;
  font-size: 8.5px; line-height: 1.55; letter-spacing: 0.025em;
  color: rgba(232, 226, 208, 0.36);
}

/* ===== v61 小程序免费档案摘要 ===== */
.xg-unlock {
  --xg-gold: #d8c98a;
  --xg-gold-dim: #9a8c5e;
  --xg-paper: #e8e2d0;
  --xg-paper-dim: rgba(232, 226, 208, 0.58);
  --xg-serif-cn: "Kaiti SC", "STKaiti", "Songti SC", "STSong", "Noto Serif SC", serif;
  --xg-serif-body: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  width: 100%; margin-top: 16px; padding: 16px 0 0; box-sizing: border-box;
  border-top: 1px solid rgba(216, 201, 138, 0.16);
  color: var(--xg-paper); font-family: var(--xg-serif-body);
}
.xg-unlock *, .xg-unlock *::before, .xg-unlock *::after { box-sizing: border-box; }

.xg-head { text-align: left; }

.xg-eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 7px; font-family: var(--xg-serif-cn);
  font-size: 9.5px; letter-spacing: 0.22em; color: var(--xg-gold-dim);
}
.xg-title {
  margin: 0 0 4px; font-family: var(--xg-serif-cn); font-weight: 400;
  font-size: 17px; line-height: 1.5; letter-spacing: 0.1em; color: var(--xg-gold);
}
.xg-sub {
  margin: 0; font-size: 11.5px; line-height: 1.6;
  letter-spacing: 0.05em; color: var(--xg-paper-dim);
}
.xg-list {
  list-style: none; margin: 11px 0 0; padding: 0;
  border-top: 1px solid rgba(216, 201, 138, 0.08);
}

.xg-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 0;
  border-bottom: 1px solid rgba(216, 201, 138, 0.08);
}
.xg-row.xg-last { border-bottom: none; }

.xg-stamp {
  flex: none; width: 23px; height: 23px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(216, 201, 138, 0.42); border-radius: 3px;
  background: rgba(216, 201, 138, 0.08); color: var(--xg-gold);
  font-family: var(--xg-serif-cn); font-size: 12px; line-height: 1; letter-spacing: 0;
}

.xg-main { flex: 1; min-width: 0; }
.xg-cat {
  display: block; font-family: var(--xg-serif-cn); font-weight: 400;
  font-size: 13.5px; line-height: 1.4; letter-spacing: 0.08em; color: var(--xg-paper);
}
.xg-main small {
  display: block; margin-top: 2px; overflow-wrap: anywhere;
  font-size: 10px; line-height: 1.45; letter-spacing: 0.03em; color: var(--xg-paper-dim);
}
.xg-free {
  flex: none; font-family: var(--xg-serif-cn);
  font-size: 9px; letter-spacing: 0.16em; color: var(--xg-gold-dim);
}
.xg-hint {
  margin: 5px 0 0; padding-top: 8px;
  border-top: 1px solid rgba(216, 201, 138, 0.08);
  text-align: left; font-size: 10px; line-height: 1.65;
  letter-spacing: 0.04em; color: rgba(232, 226, 208, 0.42);
}

#card::-webkit-scrollbar { width: 6px; }
#card::-webkit-scrollbar-thumb { background: rgba(216,201,138,0.2); border-radius: 3px; }
#unlockPreview.hidden { display: none; }

/* v65：结果阅读结束处的小程序承接票据 */
#miniappGuideMount { margin-top: 14px; }
.mp-inline-guide {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 82px;
  align-items: center; gap: 13px;
  min-width: 0; padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(216, 201, 138, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(100deg, rgba(216, 201, 138, 0.095), transparent 38%),
    rgba(5, 7, 13, 0.82);
  box-shadow: inset 0 0 28px rgba(216, 201, 138, 0.025);
}
.mp-inline-guide::before {
  content: ""; position: absolute; z-index: -1;
  left: 78px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(transparent, rgba(216, 201, 138, 0.24), transparent);
}
.mp-inline-guide::after {
  content: ""; position: absolute; right: 99px; top: 9px;
  width: 12px; height: 1px;
  background: rgba(216, 201, 138, 0.34);
  box-shadow: 0 5px rgba(216, 201, 138, 0.2), 0 10px rgba(216, 201, 138, 0.11);
}
.mp-guide-mark {
  width: 52px; height: 52px; display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(216, 201, 138, 0.18));
}
.mp-guide-copy { min-width: 0; }
.mp-guide-copy > small {
  display: block; margin-bottom: 4px;
  font-family: var(--serif-cn); font-size: 8.5px; line-height: 1.4;
  letter-spacing: 0.2em; color: var(--gold-dim);
}
.mp-guide-copy h3 {
  margin: 0; font-family: var(--serif-cn); font-size: 14px; line-height: 1.45;
  font-weight: 400; letter-spacing: 0.055em; color: var(--paper);
}
.mp-guide-copy p {
  margin: 3px 0 0; font-size: 9.5px; line-height: 1.45;
  letter-spacing: 0.025em; color: rgba(232, 226, 208, 0.48);
}
.mp-guide-copy b {
  display: block; margin-top: 6px;
  font-family: var(--serif-cn); font-size: 10px; line-height: 1.45;
  font-weight: 400; letter-spacing: 0.08em; color: var(--gold);
}
.mp-guide-qr,
.mp-qr-placeholder {
  display: flex; width: 82px; height: 82px;
  align-items: center; justify-content: center;
}
.mp-guide-qr {
  padding: 6px; border: 1px solid rgba(216, 201, 138, 0.22);
  background: rgba(3, 4, 9, 0.66);
}
.mp-qr-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.mp-qr-placeholder {
  flex-direction: column; gap: 4px; text-align: center;
}
.mp-qr-placeholder img { width: 36px; height: 36px; }
.mp-qr-placeholder small {
  width: 64px; font-size: 7px; line-height: 1.35;
  letter-spacing: 0.035em; color: rgba(232, 226, 208, 0.4);
}

@media (max-width: 540px) {
  #brand { left: 18px; gap: 9px; }
  #brand .logo-mark { width: 44px; height: 44px; }
  #brand h1 { font-size: 20px; letter-spacing: 0.22em; }
  #brand .sub { font-size: 9px; letter-spacing: 0.16em; }
  #card {
    right: 10px; bottom: 10px; width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px); padding: 18px 18px 16px;
  }
  #skyGuide { display: none !important; }
  .sg-copy b { font-size: 13px; }
  .sg-copy span { font-size: 10px; }
  #cardClose { margin-right: -8px; }
  .card-title .glyph { font-size: 48px; }
  .card-title h2 { font-size: 19px; }
  .card-fact-grid > div { padding: 8px 9px; }
  .rarity-primary { font-size: 30px; }
  .rarity-values { gap: 10px; }
  .connection-cta { grid-template-columns: 1fr auto; }
  .connection-cta i { display: none; }
  .xg-eyebrow { letter-spacing: 0.14em; }
  .deep-rows .dr { flex-wrap: wrap; row-gap: 1px; }
  .deep-rows .dr i { flex-basis: 100%; padding-left: 0; }
  .mp-inline-guide {
    grid-template-columns: 44px minmax(0, 1fr) 68px;
    gap: 10px; padding: 12px;
  }
  .mp-inline-guide::before { left: 66px; }
  .mp-inline-guide::after { display: none; }
  .mp-guide-mark { width: 44px; height: 44px; }
  .mp-guide-copy h3 { font-size: 13px; }
  .mp-guide-copy p { font-size: 9px; }
  .mp-guide-qr, .mp-qr-placeholder { width: 68px; height: 68px; }
  .mp-qr-placeholder img { width: 30px; height: 30px; }
  .mp-qr-placeholder small { width: 58px; font-size: 6.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sky-label.guide-target .ch { animation: none; }
  #skyGuide { transition: none; }
}

/* 聚焦特效切换只供 spike 调试；公开预览默认隐藏，?debug=1 时恢复。 */
#fxbar { display: none; }
body.debug #fxbar { display: flex; }
