/* ============================================================
   星空 Star 模板专属特效（仅 star 模板加载）
   星云光晕 / 网格 / 闪烁星点 / 流星
   ============================================================ */

.glow-orb{position:fixed;border-radius:50%;filter:blur(80px);opacity:0.4;pointer-events:none;z-index:0}
.glow-orb-1{width:400px;height:400px;background:radial-gradient(circle,rgba(255,159,67,0.4) 0%,transparent 70%);bottom:-120px;right:-80px;animation:float1 8s ease-in-out infinite}
.glow-orb-2{width:300px;height:300px;background:radial-gradient(circle,rgba(99,102,241,0.3) 0%,transparent 70%);top:-80px;left:-60px;animation:float2 10s ease-in-out infinite}
@keyframes float1{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-30px,-20px) scale(1.1)}}
@keyframes float2{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(20px,30px) scale(1.05)}}
.grid-overlay{position:fixed;top:0;right:0;bottom:0;left:0;inset:0;background-image:linear-gradient(rgba(255,255,255,0.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.02) 1px,transparent 1px);background-size:60px 60px;pointer-events:none;z-index:0;mask-image:radial-gradient(ellipse at center,black 30%,transparent 80%)}
.stars-container{position:fixed;top:0;right:0;bottom:0;left:0;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.star{position:absolute;background:#fff;border-radius:50%;animation:twinkle var(--duration) ease-in-out infinite;opacity:0}
@keyframes twinkle{0%{opacity:0;transform:scale(0.5)}50%{opacity:var(--opacity);transform:scale(1)}100%{opacity:0;transform:scale(0.5)}}
.shooting-star{position:absolute;width:100px;height:2px;background:linear-gradient(90deg,rgba(251,191,36,0.8),transparent);border-radius:50%;animation:shoot var(--shoot-duration) linear infinite;opacity:0;transform:rotate(-45deg)}
@keyframes shoot{0%{opacity:0;transform:translateX(0) translateY(0) rotate(-45deg)}10%{opacity:1}90%{opacity:1}100%{opacity:0;transform:translateX(-500px) translateY(500px) rotate(-45deg)}}

/* 浅色下装饰层换色，避免白星白线在浅底上不可见 */
html[data-theme="light"] .glow-orb{opacity:.18}
html[data-theme="light"] .grid-overlay{background-image:linear-gradient(rgba(15,23,42,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px)}
html[data-theme="light"] .star{background:#94a3b8}
