/* lmark */
/* 这段代码让侧边栏小卡片、最新文章项、页面布局的首个子元素、文章页面的主要内容块等元素都拥有半透明的白色背景
（80%不透明），使内容区与背景有区分但又不过于突兀。 */
#aside-content .card-widget,
#recent-posts>.recent-post-item,
.layout_page>div:first-child:not(.recent-posts),
.layout_post>#page,
.layout_post>#post,
.read-mode .layout_post>#post {
    background: rgba(255, 255, 255, 0.8);
}

/* 设置副标题的字间距为3px，并指定一系列优先使用的字体族，兼容中英文显示。 */
#subtitle {
    letter-spacing: 3px;
    font-family: "Arial", "Microsoft YaHei", "黑体", "宋体", sans-serif;
}

/* 文章标题增加0.4秒的过渡动画。鼠标悬停在最近文章项时，该项的标题会向右平滑移动8px，提升交互感。 */
.article-title {
    transition: 0.4s;
}
.recent-post-item:hover .article-title {
    transform: translateX(8px);
}

/* 个人信息卡片高度378px，带0.5秒动画。悬停时背景变成完全不透明的白色，透明度变为1。 */
#aside-content .card-info {
    height: 378px;
    transition: 0.5s;
    /* opacity: 0.8; */
}
#aside-content .card-info:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
}

/* 对社交图标做动画：初始不透明度为0，下移25px，动画延迟由自定义属性 --i 控制（每个图标依次出现）。
悬停卡片或出现在搜索按钮时，图标回到原位并显示出来。悬停图标时不做变形。 */
.social-icon:nth-child(n) { --i: n; }
.social-icon {
    display: inline-block;
    transition: 0.5s;
    opacity: 0;
    transform: translateY(25px);
    transition-delay: calc(0.1s * var(--i))
}
#search-button .social-icon {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}
#aside-content .card-info:hover .social-icon {
    transform: translateY(0);
    opacity: 1;
}
.social-icon .fab:hover {
    transform: none;
}

/* 整体页面包裹区域使用30%不透明度的黑色半透明背景，增加深度感。 */
#body-wrap{
    background-color: rgba(0, 0, 0, 0.3);
}

/* 导航栏相关样式：
      移除所有元素伪类下划线蓝条。
      鼠标悬停站点名、菜单项、搜索按钮时字体放大到24px。
      菜单项居中显示。
      右侧导航内容靠右，横向排列，不换行。
      固定导航时，整体下移58px，适配不同浏览器。
      关闭导航栏的动画过渡，立即响应。 */
#nav *::after{
    background-color: transparent!important;
}
#nav #site-name:hover,
#nav .menus_item:hover,
#nav #search-button:hover{
    font-size:24px;
}

#nav .menus_items {
    position: absolute;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
}
#nav-right{
    flex:1 1 auto;
    justify-content: flex-end;
    margin-left: auto;
    display: flex;
    flex-wrap:nowrap;
}
.nav-fixed #nav{
    transform: translateY(58px)!important;
    -webkit-transform: translateY(58px)!important;
    -moz-transform: translateY(58px)!important;
    -ms-transform: translateY(58px)!important;
    -o-transform: translateY(58px)!important;
}
#nav{
    transition: none!important;
    -webkit-transition: none!important;
    -moz-transition: none!important;
    -ms-transition: none!important;
    -o-transition: none!important;
}

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

/* 引入了思源黑体等中文等宽字体（LXGWWenKaiMono），优先使用，找不到则用系统字体。
    font-display: swap; 优化字体加载，防止闪烁。 */
@font-face {
    font-family: 'LXGWWenKaiMono';
    font-display: swap;
    src: url('https://cdn.lmark.cc/LXGWWenKaiMonoLite-Bold.ttf') format('truetype');
}
body {
    font-family: LXGWWenKaiMono ,-apple-system
}

/* 背景滤镜变化时有0.3秒过渡动画，提升视觉平滑度 */
#web_bg{
    transition: filter 0.3s;
}


/* 一图流 */
/* 页脚与头图透明 */
#footer {
  background: transparent !important;
}
#page-header {
  background: transparent !important;
}

/* 白天模式遮罩透明 */
#footer::before {
  background: transparent !important;
}
#page-header::before {
  background: transparent !important;
}

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









/* 黑夜霓虹灯 */
/* 日间模式不生效 */
[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;
  }
}


/* 文章H1~H6标题小风车转动效果 */
/* 文章页H1-H6图标样式效果 */
/* 控制风车转动速度 4s那里可以自己调节快慢 */
h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
  -webkit-animation: ccc 4s linear infinite;
  animation: ccc 4s linear infinite;
}
/* 控制风车转动方向 -1turn 为逆时针转动，1turn 为顺时针转动，相同数字部分记得统一修改 */
@-webkit-keyframes ccc {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(-1turn);
    transform: rotate(-1turn);
  }
}
@keyframes ccc {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(-1turn);
    transform: rotate(-1turn);
  }
}
/* 设置风车颜色 */
#content-inner.layout h1::before {
  color: #ef50a8;
  margin-left: -1.55rem;
  font-size: 1.3rem;
  margin-top: -0.23rem;
}
#content-inner.layout h2::before {
  color: #fb7061;
  margin-left: -1.35rem;
  font-size: 1.1rem;
  margin-top: -0.12rem;
}
#content-inner.layout h3::before {
  color: #ffbf00;
  margin-left: -1.22rem;
  font-size: 0.95rem;
  margin-top: -0.09rem;
}
#content-inner.layout h4::before {
  color: #a9e000;
  margin-left: -1.05rem;
  font-size: 0.8rem;
  margin-top: -0.09rem;
}
#content-inner.layout h5::before {
  color: #57c850;
  margin-left: -0.9rem;
  font-size: 0.7rem;
  margin-top: 0rem;
}
#content-inner.layout h6::before {
  color: #5ec1e0;
  margin-left: -0.9rem;
  font-size: 0.66rem;
  margin-top: 0rem;
}
/* s设置风车hover动效 6s那里可以自己调节快慢*/
#content-inner.layout h1:hover,
#content-inner.layout h2:hover,
#content-inner.layout h3:hover,
#content-inner.layout h4:hover,
#content-inner.layout h5:hover,
#content-inner.layout h6:hover {
  color: var(--theme-color);
}
#content-inner.layout h1:hover::before,
#content-inner.layout h2:hover::before,
#content-inner.layout h3:hover::before,
#content-inner.layout h4:hover::before,
#content-inner.layout h5:hover::before,
#content-inner.layout h6:hover::before {
  color: var(--theme-color);
  -webkit-animation: ccc 6s linear infinite;
  animation: ccc 6s linear infinite;
}


/* 信息卡片头像状态 */
.card-info-avatar .author-status-box {
  position: absolute;
  bottom: 0;
  left: calc(100% - 28px);
  width: 28px;
  height: 28px;
  border: 1px solid #d0d7de;
  border-radius: 2em;
  background-color: #f8f8f8f8;
  transition: 0.4s;
  overflow: hidden;
}

[data-theme="dark"] .card-info-avatar .author-status-box {
  background-color: #222222f2;
  border: 1px solid #5c6060;
}

.card-info-avatar .author-status-box .author-status {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 5px;
}

.card-info-avatar .author-status-box:hover {
  width: 105px;
}

.card-info-avatar .author-status-box:hover .author-status span {
  width: 105px;
  margin-left: 4px;
}

.card-info-avatar .author-status-box .author-status span {
  width: 0;
  font-size: 12px;
  height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: 0.4s;
}

.card-widget .card-info-avatar {
  display: inline-block;
  position: relative;
}





/* 头像呼吸灯 */
[data-theme="light"] .avatar-img {
  animation: huxi_light 4s ease-in-out infinite;
}
[data-theme="dark"] .avatar-img {
  animation: huxi_dark 4s ease-in-out infinite;
}
@keyframes huxi_light {
  0% {
    box-shadow: 0px 0px 1px 1px #9ff2d2;
  }
  50% {
    box-shadow: 0px 0px 5px 5px #9ff2d2;
  }
  100% {
    box-shadow: 0px 0px 1px 1px #9ff2d2;
  }
}
@keyframes huxi_dark {
  0% {
    box-shadow: 0px 0px 1px 1px #39c5bb;
  }
  50% {
    box-shadow: 0px 0px 5px 5px #39c5bb;
  }
  100% {
    box-shadow: 0px 0px 1px 1px #39c5bb;
  }
}



/* ① 隐藏文字初始透明，并且给整个 span 一块灰色底 */
.spoiler {
  color: transparent;
  background-color: #f0f0f0;  /* 隐藏状态下的背景色，比如浅灰色 */
  cursor: pointer;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out;
  font-weight: bold;          /* 如果需要，可以继续加粗等 */
  text-decoration: underline; /* 如果需要下划线，则保留 */
}

/* ② 悬停时：文字显现并换成想要的颜色，同时背景改为透明（或其他颜色） */
.spoiler:hover {
  color: red;             /* 悬停时文字颜色，比如深红色 */
  background-color: transparent; /* 悬停的时候把背景去掉或换成别的 */
  font-weight: bold;          /* 继续加粗 */
  text-decoration: underline; /* 继续下划线 */
}




