/* ===== 启动动画：道生万物 ===== */
/* 粒子星系旋转，然后所有微粒聚成名字，再升腾散去露出博客。画面由 /js/splash-wanwu.js 实时生成 */

/* 动画元素插入之前先用同色盖住页面，避免闪一下博客 */
html.wy-splash-on::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: #030208;
}
html.wy-splash-on body { overflow: hidden; }

#wy-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: hidden;
  cursor: pointer;
  background: #030208;
  transition: opacity 1.1s ease-out;
}
#wy-splash canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#wy-splash .wy-sub {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: clamp(13px, 1.7vw, 17px);
  letter-spacing: 0.6em;
  padding-left: 0.6em;
  color: rgba(255, 240, 220, 0.82);
  text-shadow: 0 0 14px rgba(255, 170, 120, 0.35);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition: opacity 1.2s ease-out, filter 1.2s ease-out, transform 1.2s ease-out;
  pointer-events: none;
}
#wy-splash.wy-sub-in .wy-sub {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
#wy-splash.wy-dispersing .wy-sub {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-14px);
  transition-duration: 0.9s;
}

#wy-splash .wy-skip {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(235, 228, 255, 0.45);
  opacity: 0;
  animation: wy-fade 0.6s 1.2s ease-out forwards;
}

#wy-splash.wy-out { opacity: 0; }
#wy-splash.wy-out.wy-fast { transition-duration: 0.5s; }

@keyframes wy-fade { to { opacity: 1; } }
