/* 栏目中央视觉：线条极细、留白为主，每个栏目一种主色（取自 IDMeta 设计规范色板）。 */
body{--sigil:#00F0FF}
body[data-world=fantui]{--sigil:#4f9cf7}
body[data-world=bazi]{--sigil:#FFB800}
body[data-world=huangli]{--sigil:#80F8FF}
body[data-world=liuyao]{--sigil:#6366F1}
body[data-world=qimen]{--sigil:#00FF94}
body[data-world=hezuo]{--sigil:#FF3355}
body[data-world=portrait]{--sigil:#7c4dff}
body[data-world=ziweidoushu]{--sigil:#7c4dff}
body[data-world=feedback]{--sigil:#FF3355}

.welcome-stage{isolation:isolate;overflow:hidden}
.welcome-stage::before{content:'';position:absolute;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 58%,color-mix(in srgb,var(--sigil) 9%,transparent),transparent 46%);transition:background .8s}
.time-orbit[hidden],.world-sigil[hidden]{display:none!important}

.world-sigil{color:var(--sigil);width:min(100%,360px);margin:22px auto 0}
.sigil-art{display:block;width:100%;height:auto;aspect-ratio:1;overflow:visible;fill:none;stroke:currentColor;stroke-width:.8;transition:filter .6s}
.sigil-art text{stroke:none}
.sigil-caption{margin:12px 0 0;text-align:center;font-size:11px;letter-spacing:.32em;color:#7f97a6}
.world-sigil.listening .sigil-art{filter:brightness(1.35) drop-shadow(0 0 10px color-mix(in srgb,var(--sigil) 40%,transparent))}

.s-faint{stroke-opacity:.2}
.s-mid{stroke-opacity:.3}
.s-line{stroke-opacity:.5}
.s-bright{stroke-opacity:.95;filter:drop-shadow(0 0 4px currentColor)}
.s-thick{stroke-width:2.2}
.s-dash{stroke-dasharray:1 6}
.s-fill{fill:currentColor;stroke:none;filter:drop-shadow(0 0 6px currentColor)}
.s-eye,.s-sun{fill:#fff;stroke:none;filter:drop-shadow(0 0 5px currentColor)}
.s-sun{filter:drop-shadow(0 0 2px currentColor) drop-shadow(0 0 8px currentColor)}
.s-cyan{stroke:#00F0FF;stroke-opacity:.6}
.s-gold{stroke:#FFB800;stroke-opacity:.6}
.s-text{fill:#8ea3b3;font-size:11px;letter-spacing:.12em;font-family:var(--font-sans)}
.s-mono{fill:#5f7686;font:10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
.s-node{fill:currentColor;stroke:none;opacity:.25;animation:sg-blink 6s var(--d,0s) infinite}
.s-cell{stroke-opacity:.32;fill:currentColor;fill-opacity:0;animation:sg-cell 3.6s var(--d,0s) infinite}
.s-bg-disc{fill:#0b1320;stroke:currentColor;stroke-opacity:.3}

.s-spin{transform-box:view-box;transform-origin:200px 200px;animation:sg-spin 40s linear infinite}
.s-slow{animation-duration:160s}
.s-rev{animation-direction:reverse}
.s-pulse{transform-box:fill-box;transform-origin:center;animation:sg-pulse 4s ease-in-out infinite}
.s-breathe{animation:sg-breathe 3.2s ease-in-out infinite}
.s-comet{stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-dasharray:3 200;animation:sg-comet 9s linear infinite;filter:drop-shadow(0 0 4px currentColor)}
.s-trace{stroke-dasharray:100;stroke-dashoffset:100;animation:sg-trace 18s ease-in-out infinite}

/* 出生信息：十与十二两圈反向转动，八个格依次点亮。 */
.sg-bazi .s-rev{animation-duration:120s}
.s-scan{stroke-opacity:.7;filter:drop-shadow(0 0 4px currentColor);animation:sg-scan 4.8s ease-in-out infinite}
/* 日历：今天的太阳位置与月相。 */
.s-moon-base{fill:#0d1724;stroke:currentColor;stroke-opacity:.25}
.s-moon{fill:#dff9fb;stroke:none;filter:drop-shadow(0 0 10px color-mix(in srgb,#80F8FF 50%,transparent))}
/* 情境：六道线在实线与断线之间未定。 */
.s-bar-mini{fill:currentColor;stroke:none;opacity:.5}
.s-yao{filter:drop-shadow(0 0 4px currentColor)}
.s-yao rect{fill:currentColor;stroke:none;opacity:.9}
.s-yao .s-bridge{opacity:0;animation:sg-flip 2.6s var(--d,0s) ease-in-out infinite}
.s-yao:nth-of-type(2n) .s-bridge{animation-duration:3.4s}
.s-yao:nth-of-type(3n) .s-bridge{animation-duration:1.9s}
/* 决策：光点按九个区域的顺序行走。 */
.sg-qimen .s-cell{animation-duration:9s}
/* 趋势：曲线描出，游标逐年移动。 */
.s-trend{stroke:url(#sg-trend);stroke-width:1.8;stroke-dasharray:1;stroke-dashoffset:1;animation:sg-draw 2.8s ease-out forwards;filter:drop-shadow(0 0 5px color-mix(in srgb,#00F0FF 40%,transparent))}
.s-up{fill:#00FF94;opacity:.28}
.s-down{fill:#8fa3b3;opacity:.16}
.s-cursor{stroke-opacity:.35;stroke-dasharray:2 4}
/* 合作：两个圆的交集与各自的波纹。 */
.s-ripple{stroke-opacity:0;transform-box:fill-box;transform-origin:center;animation:sg-ripple 4.8s var(--d,0s) ease-out infinite}
.s-lens{fill:url(#sg-glow);stroke:none}
.s-binary{animation-duration:14s}
.s-binary .s-eye{filter:drop-shadow(0 0 5px #00F0FF)}
/* 画像：镜中的等高线缓慢流动。 */
.s-drift{animation-duration:90s}
.s-drift:nth-of-type(2n){animation-duration:130s}
.s-beam{stroke:url(#sg-beam);stroke-opacity:.75}
.s-mote{fill:#cbbcff;stroke:none;opacity:0;transform-box:fill-box;animation:sg-rise 7s var(--d,0s) ease-in infinite}
/* 生命元盘：五季色带取自元盘原有五色。 */
.s-band{stroke-width:12;stroke-opacity:.26}
.sg-mingpan .s-spin{animation-duration:60s}
/* 紫薇：十二个区域依次点亮，中心定星。 */
.sg-ziweidoushu .s-cell{animation-duration:12s}
.s-trail{stroke:#c9b8ff;stroke-opacity:.32;stroke-linecap:round}
.s-star{fill:#fff;stroke:none;filter:drop-shadow(0 0 6px #7c4dff) drop-shadow(0 0 14px #7c4dff)}
/* 反馈：实际落点向预测收拢。 */
.s-converge{animation:sg-converge 6s ease-in-out infinite}

@keyframes sg-spin{to{transform:rotate(360deg)}}
@keyframes sg-pulse{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.25);opacity:1}}
@keyframes sg-breathe{0%,100%{stroke-opacity:.35}50%{stroke-opacity:1}}
@keyframes sg-blink{0%,100%{opacity:.25}4%{opacity:1}22%{opacity:.25}}
@keyframes sg-cell{0%{fill-opacity:0;stroke-opacity:.32}5%{fill-opacity:.14;stroke-opacity:1}28%,100%{fill-opacity:0;stroke-opacity:.32}}
@keyframes sg-comet{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
@keyframes sg-trace{0%{stroke-dashoffset:100;stroke-opacity:.6}70%{stroke-dashoffset:0;stroke-opacity:.6}100%{stroke-dashoffset:0;stroke-opacity:0}}
@keyframes sg-scan{0%,100%{transform:translateY(-4px);opacity:0}12%{opacity:1}50%{transform:translateY(66px);opacity:1}62%{opacity:0}}
@keyframes sg-flip{0%,38%{opacity:0}50%,88%{opacity:.9}100%{opacity:0}}
@keyframes sg-draw{to{stroke-dashoffset:0}}
@keyframes sg-ripple{0%{transform:scale(.15);stroke-opacity:.45}100%{transform:scale(1);stroke-opacity:0}}
@keyframes sg-rise{0%{opacity:0;transform:translateY(0)}20%{opacity:.85}100%{opacity:0;transform:translateY(-120px)}}
@keyframes sg-converge{0%,100%{transform:translate(38px,-26px)}50%,78%{transform:translate(0,0)}}

@media(max-width:1100px){.world-sigil{width:min(100%,300px)}}
@media(max-width:900px){.world-sigil{width:280px;max-width:90%;margin:20px auto}}
/* 减少动态效果：静止时保留完整画面，六道线停在“未定”的半透明状态。 */
@media(prefers-reduced-motion:reduce){.s-trend{stroke-dashoffset:0}.s-trace{stroke-dashoffset:0;stroke-opacity:.5}.s-yao .s-bridge{opacity:.4}.s-comet{display:none}}
