/* 强制美化图标使用 Font Awesome 字体 */
.title-prefix-icon::before {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
}

#footer {
  background-color: transparent !important;
  box-shadow: none !important;
}

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

/* 当没有设置 top_img 时，让顶部透明显示背景图 */
#page-header {
  background-color: transparent !important;
  background-image: none !important;
}

#page-header::before {
  background-color: transparent !important;
}


/* 居中显示内容，当无侧边栏时(分类、归档、个人、友链等) */
.hide-aside .content-wrap {
  display: flex;
  justify-content: center;
}
.hide-aside .content {
  flex: 0 0 100%;
  max-width: 960px;
}


/* 强制全站使用 LXGW WenKai Screen 字体 */
html, body, #mount {
  font-family: "LXGW WenKai Screen R", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif !important;
}


/* 小冰分类分类磁铁黑夜模式适配 */
/* 一般状态 */
[data-theme="dark"] .magnet_link_context {
  background: #1e1e1e;
  color: antiquewhite;
}
/* 鼠标悬浮状态 */
[data-theme="dark"] .magnet_link_context:hover {
  background: #63B5C2;
  color: #f2f2f2;
}

/* 一级菜单居中 */
#nav .menus_items {
  position: absolute !important;
  width: fit-content !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}


/* 顶部导航栏改动 */
/* 子菜单横向展示 */
#nav .menus_items .menus_item:hover .menus_item_child {
  display: flex !important;
}
/* 这里的2是代表导航栏的第2个元素，即有子菜单的元素，可以按自己需求修改 */
.menus_items .menus_item:nth-child(5) .menus_item_child {
  left: -125px;
}



/* 夜间霓虹灯 */
/* 日间模式不生效 */
[data-theme="light"] #site-name,
[data-theme="light"] #site-title,
[data-theme="light"] #site-subtitle,
[data-theme="light"] #post-info {
  animation: none;
}
/* 夜间模式生效 */
[data-theme="dark"] #site-name,
[data-theme="dark"] #site-title {
  animation: light_15px 10s linear infinite;
}
[data-theme="dark"] #site-subtitle {
  animation: light_10px 10s linear infinite;
}
[data-theme="dark"] #post-info {
  animation: light_5px 10s linear infinite;
}
/* 关键帧描述 */
@keyframes light_15px {
  0% {
    text-shadow: #5636ed 0 0 15px;
  }
  12.5% {
    text-shadow: #11ee5e 0 0 15px;
  }
  25% {
    text-shadow: #f14747 0 0 15px;
  }
  37.5% {
    text-shadow: #f1a247 0 0 15px;
  }
  50% {
    text-shadow: #f1ee47 0 0 15px;
  }
  50% {
    text-shadow: #b347f1 0 0 15px;
  }
  62.5% {
    text-shadow: #002afa 0 0 15px;
  }
  75% {
    text-shadow: #ed709b 0 0 15px;
  }
  87.5% {
    text-shadow: #39c5bb 0 0 15px;
  }
  100% {
    text-shadow: #5636ed 0 0 15px;
  }
}

@keyframes light_10px {
  0% {
    text-shadow: #5636ed 0 0 10px;
  }
  12.5% {
    text-shadow: #11ee5e 0 0 10px;
  }
  25% {
    text-shadow: #f14747 0 0 10px;
  }
  37.5% {
    text-shadow: #f1a247 0 0 10px;
  }
  50% {
    text-shadow: #f1ee47 0 0 10px;
  }
  50% {
    text-shadow: #b347f1 0 0 10px;
  }
  62.5% {
    text-shadow: #002afa 0 0 10px;
  }
  75% {
    text-shadow: #ed709b 0 0 10px;
  }
  87.5% {
    text-shadow: #39c5bb 0 0 10px;
  }
  100% {
    text-shadow: #5636ed 0 0 10px;
  }
}

@keyframes light_5px {
  0% {
    text-shadow: #5636ed 0 0 5px;
  }
  12.5% {
    text-shadow: #11ee5e 0 0 5px;
  }
  25% {
    text-shadow: #f14747 0 0 5px;
  }
  37.5% {
    text-shadow: #f1a247 0 0 15px;
  }
  50% {
    text-shadow: #f1ee47 0 0 5px;
  }
  50% {
    text-shadow: #b347f1 0 0 5px;
  }
  62.5% {
    text-shadow: #002afa 0 0 5px;
  }
  75% {
    text-shadow: #ed709b 0 0 5px;
  }
  87.5% {
    text-shadow: #39c5bb 0 0 5px;
  }
  100% {
    text-shadow: #5636ed 0 0 5px;
  }
}



/* 背景宇宙星光  */
#universe{
  display: block;
  position: fixed;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* 这个是调置顶的优先级的，-1在文章页下面，背景上面，个人推荐这种 */
  z-index: -1;
}


/* 鼠标样式 */
#cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  /* 这里改变跟随的底色 */
  background: #6dea32; /* var(--theme-color) */
  border-radius: 8px;
  opacity: 0.25;
  z-index: 10086;
  pointer-events: none;
  transition: 0.2s ease-in-out;
  transition-property: background, opacity, transform;
}

#cursor.hidden {
  opacity: 0;
}

#cursor.hover {
  opacity: 0.1;
  transform: scale(2.5);
  -webkit-transform: scale(2.5);
  -moz-transform: scale(2.5);
  -ms-transform: scale(2.5);
  -o-transform: scale(2.5);
}

#cursor.active {
  opacity: 0.5;
  transform: scale(0.5);
  -webkit-transform: scale(0.5);
  -moz-transform: scale(0.5);
  -ms-transform: scale(0.5);
  -o-transform: scale(0.5);
}



/* 页面样式调整 */
:root { 
  --trans-light: rgba(255, 255, 255, 0.85);
  --trans-dark: rgba(35, 39, 56, 0.75);
  /* --border-style: 1px solid rgb(169, 169, 169); */
  /* --backdrop-filter: blur(5px) saturate(150%); */
}

/* 首页文章卡片 */
.recent-post-item {
  background: var(--trans-light) !important;
  border-radius: 16px;
  /* padding: 1rem;
  margin-bottom: 1.5rem; */
}

/* 夜间模式卡片背景 */
[data-theme="dark"] .recent-post-item {
  background: var(--trans-dark) !important;
}

/* 首页侧栏卡片 */
#aside-content .card-widget {
  background: var(--trans-light);
  /* backdrop-filter: var(--backdrop-filter); */  /* 模糊已禁用 */
  border-radius: 16px;
  /* border: var(--border-style); */  /* 如果需要边框可取消注释 */
}

[data-theme="dark"] #aside-content .card-widget {
  background: var(--trans-dark);
}

/* 文章页、归档页、普通页面容器 */
div#post,
div#page,
div#archive {
  background: var(--trans-light);
  /* backdrop-filter: var(--backdrop-filter); */
  /* border: var(--border-style); */
  border-radius: 20px;
}

[data-theme="dark"] div#post,
[data-theme="dark"] div#page,
[data-theme="dark"] div#archive {
  background: var(--trans-dark);
}

/* 导航栏固定背景 */
#page-header.nav-fixed #nav {
  background: rgba(255, 255, 255, 0.75);
  /* backdrop-filter: var(--backdrop-filter); */
}

[data-theme="dark"] #page-header.nav-fixed #nav {
  background: rgba(0, 0, 0, 0.7) !important;
}

/* 夜间模式页脚、页头遮罩透明 */
[data-theme="dark"] #footer::before,
[data-theme="dark"] #page-header::before {
  background: transparent !important;
}

/* 阅读模式样式 */
.read-mode #aside-content .card-widget {
  background: rgba(158, 204, 171, 0.5) !important;
}
.read-mode div#post {
  background: rgba(158, 204, 171, 0.5) !important;
}

/* 夜间阅读模式样式 */
[data-theme="dark"] .read-mode #aside-content .card-widget {
  background: rgba(25, 25, 25, 0.9) !important;
  color: #ffffff;
}
[data-theme="dark"] .read-mode div#post {
  background: rgba(25, 25, 25, 0.9) !important;
  color: #ffffff;
}

/* 翻页按钮居中 */
/* #pagination {
  width: 100%;
  margin: auto;
} */


/* 个人信息卡片背景图 */
[data-theme="light"] #aside-content > .card-widget.card-info {
  background-image: url(https://picbed.karon.top/webp/profile_bg2.webp);
  background-repeat: no-repeat;
  background-attachment: inherit;
  background-size: 100%;
}
[data-theme="dark"] #aside-content > .card-widget.card-info {
  background-image: url(https://picbed.karon.top/webp/profile_bg2.webp);
  background-repeat: no-repeat;
  background-attachment: inherit;
  background-size: 100%;
}



/* 欢迎信息
#welcome-info {
  background: linear-gradient(45deg, #b9f4f3, #e3fbf9);
  border-radius: 18px;
  padding: 8px;
}
[data-theme="dark"] #welcome-info {
  background: #212121;
} */



