/* 全站页面切换动画：进场淡入上滑 / 离场淡出
   两条兜底原则：① 不依赖 JS —— 就算脚本没加载，进场动画照样播、页面照样可见；
   ② 尊重「减少动态效果」的系统设置。 */

@keyframes muca-page-in {
  from { opacity: 0; transform: translateY(14px); }
  /* 结束回到元素自身的值（opacity 1 / transform none），不留 transform 残留 */
}

html.muca-anim body {
  animation: muca-page-in .5s cubic-bezier(.22, 1, .36, 1) backwards;
}

/* 离场：点链接后先淡出上移，再由 site.js 跳转 */
html.muca-anim.muca-out body {
  animation: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.muca-anim body { animation: none; }
  html.muca-anim.muca-out body { opacity: 1; transform: none; transition: none; }
}
