/* ===== 四季粒子特效（零遮挡背景层） ===== */
#seasonal-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.9s ease;
}

#seasonal-particles.is-visible {
  opacity: 0.78;
}

[data-theme="dark"] #seasonal-particles.is-visible {
  opacity: 0.86;
}

body.read-mode #seasonal-particles,
html.wy-splash-on #seasonal-particles,
#seasonal-particles.is-hidden {
  opacity: 0 !important;
  visibility: hidden;
}

/* ===== 严格零遮挡层叠顺序 =====
   #web_bg (-999) < #page-header (auto/0) < #seasonal-particles (1)
   < 页头标题/正文内容/页脚 (2) < 看板娘 (5) < 导航栏/播放器/工具栏 (90+) */
#site-info,
#page-site-info,
#post-info,
#scroll-down {
  z-index: 2;
}

#content-inner,
#footer,
#footer-wrap {
  position: relative;
  z-index: 2;
}

#waifu,
#waifu-toggle {
  z-index: 5;
}

/* ===== 圣诞头像帽（适配 Butterfly .avatar-img） ===== */
.card-widget.card-info .avatar-img.has-christmas-hat {
  position: relative;
  overflow: visible;
}

.card-widget.card-info .avatar-img.has-christmas-hat > img:not(.christmas-hat) {
  border-radius: 50%;
}

.card-widget.card-info .avatar-img img.christmas-hat {
  position: absolute;
  top: -18px;
  right: -10px;
  width: 42px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  transform: rotate(16deg);
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ===== 右下角季节按钮与轻提示 ===== */
#seasonal-effect-btn.is-off {
  opacity: 0.55;
}

#seasonal-toast {
  position: fixed;
  right: 56px;
  bottom: 56px;
  z-index: 101;
  pointer-events: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #2c3e50;
  background: rgba(235, 243, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 20px rgba(31, 38, 135, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#seasonal-toast.is-shown {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] #seasonal-toast {
  color: #edf2f7;
  background: rgba(28, 34, 52, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  #seasonal-particles,
  #seasonal-toast {
    transition: none;
  }
}
