/* ============================================
   Wallpaper Carousel — 浅色系壁纸轮播背景
   Tjccz's Blog
   ============================================ */

/* ---------- 图层容器 ---------- */
.wallpaper-layer {
  position: fixed;
  inset: 0;
  z-index: -998;
  overflow: hidden;
  background: #eef4fb;
  pointer-events: none;
}

/* 单张壁纸 */
.wallpaper-layer .wp-item {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  filter: saturate(1.06);
  will-change: opacity;
}

.wallpaper-layer .wp-item.is-active {
  opacity: 1;
}

/* ---------- 可读性遮罩（浅色版） ----------
   顶部：深蓝渐变压暗，保证白色导航/标题可读
   底部：极淡白色渐隐，让白卡片与壁纸柔和过渡，消除硬边界 */
.wallpaper-layer .wp-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(13, 34, 74, 0.62) 0%,
      rgba(13, 34, 74, 0.30) 7%,
      rgba(13, 34, 74, 0.04) 18%,
      rgba(13, 34, 74, 0) 26%,
      rgba(255, 255, 255, 0) 62%,
      rgba(255, 255, 255, 0.16) 84%,
      rgba(255, 255, 255, 0.34) 100%);
  opacity: 1;
}

/* ---------- 文字可读性 ---------- */
#site-title,
#site-title .site-name,
#site-title .title,
.blog-title,
#h1-title,
#nav a,
#nav .site-name,
#nav .menu-item,
.nav a,
.nav .menu-item,
#site-subtitle,
#subtitle,
.subtitle {
  text-shadow: 0 1px 14px rgba(10, 28, 66, 0.55), 0 0 2px rgba(10, 28, 66, 0.5);
}

/* ---------- 顶部导航玻璃拟态（提升浅色壁纸上的可读性） ---------- */
#nav,
.nav,
#page-header .nav {
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  background: linear-gradient(180deg, rgba(13, 34, 74, 0.30), rgba(13, 34, 74, 0.10)) !important;
}

/* ---------- 轮播指示点 ---------- */
.wallpaper-dots {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  gap: 9px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.wallpaper-dots:hover {
  opacity: 1;
}

.wallpaper-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(13, 34, 74, 0.55);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.wallpaper-dots .dot.is-active {
  background: #2563eb;
  border-color: #2563eb;
  transform: scale(1.25);
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 768px) {
  .wallpaper-dots {
    right: 12px;
    bottom: 14px;
  }
  .wallpaper-dots .dot {
    width: 6px;
    height: 6px;
  }
}

/* ---------- 尊重系统「减少动态效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
  .wallpaper-layer .wp-item {
    transition: none;
  }
}
