/* ========== 核心：全屏固定背景 ========== */
.pl-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -999; /* 固定在页面最底层 */
  overflow: hidden;
  will-change: transform, opacity;
  animation: scale 1.5s cubic-bezier(.62,.21,.25,1) 0s 1 both;
}

.pl-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}

@keyframes scale {
  0% {
    transform: scale(1.15) translateZ(0);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateZ(0);
    opacity: 1;
  }
}

.pl-visible {
  opacity: 1;
}

.pl-blur {
  filter: blur(30px);
  transform: scale(1.05); /* 抵消模糊带来的边缘透明 */
}

/* ========== 一图流必备：上层容器全部透明 ========== */
html, body {
  background: transparent !important;
  background-color: transparent !important;
}

#body-wrap,
#page-header,
#footer,
#sidebar,
#web_bg,
#category-bar {
  background: transparent !important;
  background-color: transparent !important;
}

/* 关闭头部原生遮罩（想保留标题渐变效果可以删掉这行） */
#page-header::before {
  background: none !important;
}

/* ========== 可选：内容卡片半透明毛玻璃（保证文字清晰） ========== */
/* 浅色模式卡片 */
#recent-posts > .recent-post-item,
.card-widget,
.article-sort-item,
.flink-card-list .flink-item,
#pagination .pagination,
.announcement-content {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 深色模式卡片 */
[data-theme="dark"] #recent-posts > .recent-post-item,
[data-theme="dark"] .card-widget,
[data-theme="dark"] .article-sort-item,
[data-theme="dark"] .flink-card-list .flink-item,
[data-theme="dark"] #pagination .pagination,
[data-theme="dark"] .announcement-content {
  background: rgba(25, 25, 25, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
