/* --- 侧边栏优化 --- */
.site-data {
  display: flex !important;
}

.site-data>a[href^="/categories"] {
  display: none !important;
}

.site-data>a {
  flex: 1 !important;
  width: auto !important;
}

/* header无图状态下的毛玻璃 */
#page-header.not-home-page:not([style*="background-image"]),
#page-header.post-bg:not([style*="background-image"]) {
  background-color: transparent !important;
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}

/* 滚动条美化 */
html {
  scrollbar-color: #49b1f5 transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #49b1f5;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #358ec7;
}

/* 底部信息栏和顶部header变透明 */
#footer,
#page-header {
  background-color: transparent !important;
}

/* 首页的header淡入效果 */
.full_page {
  animation: tkFadeIn 2s ease-out forwards;
}

@keyframes tkFadeIn {
  0% {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#site-info #site-title {
  position: relative;
  font-weight: bold;
  color: white;
  background: transparent;
  cursor: pointer; /* 提示用户可以悬停 */
}

#site-info #site-title::before,
#site-info #site-title::after {
  content: "灌木の小破站";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  /* 默认状态：隐藏或不显示偏移 */
  opacity: 0; 
}

/* 红色偏移层 - 仅在鼠标悬停时触发 */
#site-info #site-title:hover::before {
  opacity: 1;
  left: 1.5px;
  text-shadow: 1.5px 0 #ff00c1;
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

/* 蓝色偏移层 - 仅在鼠标悬停时触发 */
#site-info #site-title:hover::after {
  opacity: 1;
  left: -1.5px;
  text-shadow: -1.5px 0 #00fff9;
  animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

/* 动画帧保持不变 */
@keyframes glitch-anim {
  0% { clip-path: inset(10% 0 80% 0); }
  50% { clip-path: inset(80% 0 10% 0); }
  100% { clip-path: inset(10% 0 80% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(80% 0 10% 0); }
  50% { clip-path: inset(10% 0 80% 0); }
  100% { clip-path: inset(80% 0 10% 0); }
}