/* 恢复 Twikoo 预览按钮显示 */
#twikoo .tk-comments .el-button.tk-preview {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#twikoo .tk-comments .el-button.tk-preview:hover {
  opacity: 0.85 !important;
}

#twikoo .tk-comments .el-button.tk-preview {
    position: absolute;
    top: -40px;
    right: 107px;
    opacity: 0.3;
}

#twikoo .tk-comments .el-button--primary {
    color: var(--anzhiyu-card-bg);
    box-shadow: var(--anzhiyu-shadow-black);
    width: 6.25rem;
    position: absolute;
    top: -41px;
    right: 0px;
    height: 32px;
    margin-left: 0.5rem !important;
    border-color: var(--anzhiyu-fontcolor);
    border-radius: 12px;
    transition: 0.3s;
}

#twikoo .tk-comments .tk-meta-input {
    position: relative;
    margin-top: 8px;
    width: calc(100% - 165px);
}

/* 侧边栏头像卡片 */
/* 侧边栏头像卡片 - 调整背景图亮度版（直接用） */
#aside-content>.card-widget.card-info {
  position: relative; /* 伪元素绝对定位的父容器基准 */
  overflow: hidden;
  z-index: 1;
}
#aside-content>.card-widget.card-info::before {
  content: "";       /* 伪元素必须有content才能显示 */
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%; /* 铺满卡片 */
  background: url('https://bu.dusays.com/2026/01/29/697af88ae5449.png');
  background-size: 100% 100%;
  border: 0;
  z-index: -1;       /* 放在卡片内容下层，不遮挡文字/头像 */
  /* 亮度调整核心：推荐0.8-1.1，根据图片实际效果调 */
  filter: brightness(0.9); 
  /* 可选：加一点透明度，让背景更柔和 */
  opacity: 0.95;
  /* 保留你的原有动画 */
  -webkit-animation: Gradient 10s ease infinite;
  -moz-animation: Gradient 10s ease infinite;
  animation: Gradient 10s ease infinite !important;
}
/* 补全你缺失的Gradient动画（淡入淡出+轻微缩放，适配背景图） */
@-webkit-keyframes Gradient {
  0% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.95; transform: scale(1); }
}
@-moz-keyframes Gradient {
  0% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.95; transform: scale(1); }
}
@keyframes Gradient {
  0% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.95; transform: scale(1); }
}

/* 一图流 */
/* 首页头图加载 */
.pl-container {
    width: 100%;
    height: 100%;
    z-index: -2;
    position: fixed;
    overflow: hidden;
    will-change: transform; /* 添加性能优化 */
    animation: blur-to-clear 2s cubic-bezier(.62,.21,.25,1) 0s 1 normal backwards running, scale 1.5s cubic-bezier(.62,.21,.25,1) 0s 1 both;
  }
  .pl-img {
    width: 100%;
    height: 100%;
    position: absolute;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s;
  }
  
  @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-visible {
    opacity: 1;
  }
  
  .pl-blur {
   /* 小图锯齿多，增加高斯模糊 */
    filter: blur(50px);
  }

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

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