/* 首页头图一屏高 */
#page-header.full_page {
  height: 100vh;
}
/* 文章页头图文字垂直居中 */
#page-header.post-bg {
  position: relative;
}
#post-info {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  bottom: auto !important;
}
@media screen and (max-width: 768px) {
  #post-info .post-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  #post-info .post-meta-date,
  #post-info .post-meta-wordcount,
  #post-info .post-meta-separator {
    font-size: 0.875rem !important;
  }
}
/* 隐藏其他头图 */
#page-header:not(.post-bg):not([style*="url(/img/index.jpg)"]) {
  background: none !important;
}
#page-header:not(.post-bg):not([style*="url(/img/index.jpg)"]):before {
  display: none !important;
}
/* 首页头图遮罩 */
#page-header[style*="url(/img/index.jpg)"] {
  position: relative; /* 确保遮罩相对它定位 */
  background: unset !important;
}
#page-header[style*="url(/img/index.jpg)"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5) !important;
  display: block !important;
}
/* 文章头图毛玻璃 */
#page-header.post-bg::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}
/* 深色模式下的毛玻璃背景 */
[data-theme='dark'] #page-header.post-bg::before {
  background: rgba(0,0,0,0.3);
}
/* 深色模式下头图图片亮度调整 */
[data-theme='dark'] #page-header.post-bg .bg-img {
  filter: brightness(0.8);
}
/* 深色模式下头图遮罩亮度调整 */
[data-theme='dark'] #page-header.post-bg::before {
  filter: brightness(0.8);
}
