/* ============Waline 评论系统的自定义样式 ============*/
/* 1. 评论输入框：背景图精准控制 */
#wl-edit {
  background: url('https://lib.bsgun.cn/Hexo-static/img/PLK.gif') no-repeat right bottom !important;
  background-size: 25% auto !important;
  padding: 20px !important;
}

/* 2. 手机端适配：屏幕窄的时候，把背景图再缩小 */
@media (max-width: 768px) {
  #wl-edit {
    background-size: 35% auto !important;
  }
}

/* 2. 输入框圆角、边框美化 */
#wl-edit {
  border-radius: 16px !important;
  border: 1px solid #333 !important;
  line-height: 1.4 !important; /* 行高，让多行文案更宽松 */
}

/*============自定义评论结束============*/

#recent-posts > .recent-post-item:not(a)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background: linear-gradient(to right, transparent, white, transparent);
  transform: translateX(-200%);
  transition: transform 0.5s linear;
  z-index: 1;
}
#recent-posts > .recent-post-item:not(a):hover::before {
  transform: translateX(100%) skewX(-60deg);
}
/* 首页头图加载 - 高性能流畅版 */
body[data-type=anzhiyu] #nav,
body[data-type=anzhiyu] #scroll-down,
body[data-type=anzhiyu] #site-info {
  -webkit-animation: scale 2.2s cubic-bezier(.6,.1,.25,1) .5s 1 backwards;
  animation: scale 2.2s cubic-bezier(.6,.1,.25,1) .5s 1 backwards;
}

@media screen and (max-width: 768px) {
  .pl-container {
    position: relative !important;
  }
}

@media screen and (min-width: 768px) {
  #page-header.full_page,
  .pl-container {
    height: 100vh;
  }
  #page-header.full_page.expand-to-full,
  .pl-container.expand-to-full {
    height: 50vh !important;
  }

  .pl-container {
    opacity: calc(1 - var(--process) * 1) !important;
    transform: scale(calc(1 + var(--process) * .1)) translateZ(0);
    filter: none !important;
    backface-visibility: hidden;
  }
}

.pl-container {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: -2;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  animation: blur-to-clear 2.5s cubic-bezier(.6,.25,.25,1) 0s 1 backwards,
             scale 2.2s cubic-bezier(.6,.1,.25,1) .5s 1 backwards;
}

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

.pl-video.pl-visible {
  display: block;
}

@keyframes blur-to-clear {
  0% { filter: blur(50px); opacity: 1; }
  100% { filter: blur(0); opacity: 1; }
}

@keyframes scale {
  0% { transform: scale(1.5) translateZ(0); opacity: 0; }
  to { transform: scale(1) translateZ(0); opacity: 1; }
}

.pl-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: url(/img/2026/383235.webp) center/cover no-repeat;
}

.pl-visible { opacity: 1 !important; }
.pl-blur { filter: blur(50px); }

/* 页脚透明 */
#footer {
  background: transparent !important;
}

/* 头图透明 */
/*#page-header {
    background: transparent !important;
} */
/* 底部透明 */
/* #footer-bar{
    background: transparent !important;
} */

/* 更多透明 */
/* #category-bar{
    background: transparent !important;
} */

/* 白天网站背景/颜色 */
#web_bg,
body {
  background: linear-gradient(
    90deg,
    rgba(247, 149, 51, 0.1),
    rgba(243, 112, 85, 0.1) 15%,
    rgba(239, 78, 123, 0.1) 30%,
    rgba(161, 102, 171, 0.1) 44%,
    rgba(80, 115, 184, 0.1) 58%,
    rgba(16, 152, 173, 0.1) 72%,
    rgba(7, 179, 155, 0.1) 86%,
    rgba(109, 186, 130, 0.1)
  ) !important;
  background-attachment: fixed !important;
  background-color: transparent !important; /* 强制清除主题默认背景色 */
}

/* 夜间网站背景/颜色 */
[data-theme="dark"] #web_bg,
[data-theme="dark"] body {
  background: linear-gradient(
    90deg,
    rgba(255, 167, 38, 0.08),
    rgba(255, 99, 71, 0.08),
    rgba(255, 69, 131, 0.08),
    rgba(186, 104, 200, 0.08),
    rgba(92, 124, 204, 0.08),
    rgba(51, 181, 229, 0.08),
    rgba(40, 202, 181, 0.08),
    rgba(111, 208, 145, 0.08)
  ) !important;
  background-attachment: fixed !important;
  background-color: transparent !important; /* 强制清除主题默认背景色 */
}

/* 帧率检测 */
#fps {
    position: fixed;
    /* 指定位置 */
    left: 10px;
    bottom: 88px;
    z-index: 1919810;
  }
  [data-theme="light"] #fps {
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: var(--backdrop-filter);
    backdrop-filter: var(--backdrop-filter);
    padding: 4px;
    border-radius: 4px;
  }
  [data-theme="dark"] #fps {
    background-color: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: var(--backdrop-filter);
    backdrop-filter: var(--backdrop-filter);
    padding: 4px;
    border-radius: 4px;
  }

  #footer {
  -webkit-backdrop-filter: saturate(100%) blur(5px);
  backdrop-filter: saturate(100%) blur(5px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  color: #000
}

#footer,#footer:before {
  background: hsla(0,0%,100%,.15)
}

#footer #footer-wrap,#footer #footer-wrap a {
  color: #333;
}
#footer #footer-wrap{
  background: transparent!important;
}