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

/* 一级菜单居中 */
#nav .menus_items {
  position: absolute !important;
  width: fit-content !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: 20px;
  background-color: transparent !important;
  border: none !important;
  margin-top: -20px !important;
  
}

.show{
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent;
  
}

#nav .menus_items .menus_item .menus_item_child {
    position: absolute;
    right: 0;
    display: none;
    margin-top: 8px;
    padding: 0px;
    width: max-content;
    background-color: var(--sidebar-bg);
    -webkit-box-shadow: 0 5px 20px -4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 20px -4px rgba(0, 0, 0, 0.5);
    -webkit-animation: sub_menus 0.3s 0.1s ease both;
    -moz-animation: sub_menus 0.3s 0.1s ease both;
    -o-animation: sub_menus 0.3s 0.1s ease both;
    -ms-animation: sub_menus 0.3s 0.1s ease both;
    animation: sub_menus 0.3s 0.1s ease both;
    max-height: 45.5px;
    min-height: 45.5px;
}

a[class="site-page"] > span {
  color: var(--light-grey) !important;
}
a[class="site-page"] > i {
  color: var(--light-grey) !important;
}

span.site-page.group.hide {
  color: var(--light-grey) !important;
}

span.site-page.group.hide i {
  color: var(--light-grey) !important;
}

.menus_item .menus_item_child li {
  display: inline-block !important;
  overflow: hidden; /* 可选，防止内容溢出圆角 */
  background-color: transparent !important;
}

/* 悬停 <li> 时，放大内部 <span> 文字 */
#nav .menus_item_child li:hover a.site-page.child span {
  transform: scale(1.1) !important; 
  transition: transform 0.15s ease; 
  display: inline-block;
  /* 可以再加个垂直对齐的属性，避免影响布局，比如 */
  vertical-align: middle; 
}

#nav .menus_item_child li:hover {
  display: inline-block;
}

.menus_item_child li:hover a.site-page.child i {
  transform: scale(1.1) !important; /* 放大 1.1 倍 */
  transition: transform 0.15s ease; /* 平滑过渡 */
  margin-right: 4px !important;
}

.nav .menus_items .menus_item_child li a.site-page.child:hover {

  border-radius: 5px!important;
  background-color: transparent !important;
  color: var(--sidebar-text)!important;/* 圆角大小，可调整 */
  transition: all 0.2s ease; /* 过渡动画（保持与现有样式一致） */
}


#nav #blog-info .nav-site-title .site-name {
  color: var(--light-grey) !important;
}


#page-header.nav-fixed #nav {
    position: fixed;
    top: -60px;
    z-index: 91;
    box-shadow: rgba(133, 133, 133, 0.6) 0px 5px 6px -5px;
    will-change: transform;
    backdrop-filter: blur(7px);
    background: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}


/* 子菜单横向展示 */
#nav .menus_items .menus_item:hover .menus_item_child {
  display: flex !important;
  font-size: 18px;
  border-radius: 30px;
  left: -75px;
}

/* 这里的2是代表导航栏的第2个元素，即有子菜单的元素，可以按自己需求修改 */
.menus_items .menus_item:nth-child(3) .menus_item_child {
  border-radius: 8px;
  background-color: transparent;
}

#nav .menus_item:hover{
  /* 替换原 fontsize 放大逻辑 */
    transform: scale(1.2); 
    font-size: 20px; /* 保留字体大小设置（可选，scale 已放大视觉效果） */
    transition: all 0.15s ease; 
    /* 避免放大后超出父容器，可限制缩放中心 */
    transform-origin: center; 
    border-radius: 8px;
}

#nav .menus_item:hover .menus_item_child:hover {
/* 替换原 fontsize 放大逻辑 */
    transform: scale(1.1); 
    font-size: 18px; /* 保留字体大小设置（可选，scale 已放大视觉效果） */
    transition: all 0.15s ease; 
    /* 避免放大后超出父容器，可限制缩放中心 */
    transform-origin: center; 
    border-radius: 55px;
    
}




/* 页脚与头图透明 */
#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"] #aside-content > .card-widget.card-info {
    background-image: url(/img/badao_blur_black.png);
    background-repeat: no-repeat;
    background-attachment: inherit;
    background-size: cover; /* 保持原有 cover 适配，覆盖重复的 background-size 声明 */
    transition: all 0.3s ease; /* 添加过渡，让变化更平滑 */
}

/* 鼠标悬停时的样式 */
[data-theme="light"] #aside-content > .card-widget.card-info:hover {
    transform: scale(1.03); /* 轻微放大，营造视觉上背景放大效果，数值可根据需求微调，1.02 表示放大 2% 左右，接近你说的“视觉上放大 8px”感受，若想更明显可加大，比如 1.1 等  */
    backdrop-filter: blur(5px); /* 添加背景模糊效果，数值为模糊半径 */
    /* 若浏览器不支持 backdrop-filter，可尝试用 filter，但 filter 会影响卡片内容，需根据实际情况取舍 */
    /* filter: blur(18px);  */
}




[data-theme="dark"] #aside-content > .card-widget.card-info {
    background-image: url(/img/badao_blur_black.png);
    background-repeat: no-repeat;
    background-attachment: inherit;
    background-size: cover; /* 保持原有 cover 适配，覆盖重复的 background-size 声明 */
    transition: all 0.2s ease; /* 添加过渡，让变化更平滑 */
}

/* 鼠标悬停时的样式 */
[data-theme="dark"] #aside-content > .card-widget.card-info:hover {
    transform: scale(1.03); /* 轻微放大，营造视觉上背景放大效果，数值可根据需求微调，1.02 表示放大 2% 左右，接近你说的“视觉上放大 8px”感受，若想更明显可加大，比如 1.1 等  */
    /* 若浏览器不支持 backdrop-filter，可尝试用 filter，但 filter 会影响卡片内容，需根据实际情况取舍 */
    /* filter: blur(18px);  */
}


.card-widget {
    transition: all 0.2s ease; /* 添加过渡，让变化更平滑 */
}
.card-widget:hover {
    transform: scale(1.03); /* 轻微放大，营造视觉上背景放大效果，数值可根据需求微调，1.02 表示放大 2% 左右，接近你说的“视觉上放大 8px”感受，若想更明显可加大，比如 1.1 等  */
    /* 若浏览器不支持 backdrop-filter，可尝试用 filter，但 filter 会影响卡片内容，需根据实际情况取舍 */
    /* filter: blur(18px);  */
}

.card-announcement {
    transition: all 0.2s ease; /* 添加过渡，让变化更平滑 */
}
.card-announcement:hover {
    transform: scale(1.03); /* 轻微放大，营造视觉上背景放大效果，数值可根据需求微调，1.02 表示放大 2% 左右，接近你说的“视觉上放大 8px”感受，若想更明显可加大，比如 1.1 等  */

}

.card-glass {
    transition: all 0.2s ease; /* 添加过渡，让变化更平滑 */
}
.card-glass:hover {
    transform: scale(1.03); /* 轻微放大，营造视觉上背景放大效果，数值可根据需求微调，1.02 表示放大 2% 左右，接近你说的“视觉上放大 8px”感受，若想更明显可加大，比如 1.1 等  */

}


.swiper-slide {
    transition: all 0.2s ease; /* 添加过渡，让变化更平滑 */
}

.swiper-slide:hover .blog-slider__img{
    transform: scale(1.03);
}




.blog-slider__img {
    transition: all 0.2s ease; /* 添加过渡，让变化更平滑 */
}
.blog-slider__img:hover {
    transform: scale(1.05); /* 轻微放大，营造视觉上背景放大效果，数值可根据需求微调，1.02 表示放大 2% 左右，接近你说的“视觉上放大 8px”感受，若想更明显可加大，比如 1.1 等  */
    /* 若浏览器不支持 backdrop-filter，可尝试用 filter，但 filter 会影响卡片内容，需根据实际情况取舍 */
    /* filter: blur(18px);  */
}



[data-theme="light"] .author-info-name {
  color: #f9e8ff;
}

[data-theme="light"] .author-info-description {
  color: #f9e8ff;
  font-weight: 700; 
}

[data-theme="light"] .site-data > a .headline {
  font-weight: 500; 
  color: #f9e8ff;
}
[data-theme="light"] .site-data > a .length-num {
  font-weight: 500; 
  color: #f9e8ff;
}

.card-info-social-icons .fab.fa-github {
  color: #b4bbc1 !important;
} 


/* --------------波浪css-------------- */
.main-hero-waves-area {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -11px;
  z-index: 5;
}
.waves-area .waves-svg {
  width: 100%;
  height: 5rem;
}
/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: #f7f9febd;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: #f7f9fe82;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: #f7f9fe36;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: #f7f9fe;
}
/* 黑色模式背景 */
[data-theme="dark"] .parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: #18171dc8;
}
[data-theme="dark"] .parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: #18171d80;
}
[data-theme="dark"] .parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: #18171d3e;
}
[data-theme="dark"] .parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: #18171d;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves-area .waves-svg {
    height: 40px;
    min-height: 40px;
  }
}


/* 帧率检测 */
#fps {
  position: fixed;
  /* 指定位置 */
  left: 10px;
  bottom: 10px;
  z-index: 1919810;
}
[data-theme="light"] #fps {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--backdrop-filter);
  padding: 4px;
  border-radius: 4px;
}
[data-theme="dark"] #fps {
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: var(--backdrop-filter);
  padding: 4px;
  border-radius: 4px;
}


/* 最终时间 新年时间 */

#newYear {
    color: white;
    padding: 0 !important;
}

#newYear p,
#newYear h3 {
    font-weight: normal;
    color: inherit;
    margin: 0;
}

#newYear .item-headline {
    display: none;
}

#newYear-main {
    min-height: 160px;
    padding: 1rem;
    position: relative;
    border-radius: 6px;
    background-image: url(/img/liangchaoweibeimian.png);
    background-size: cover;
    background-position: center;
}

#newYear-main * {
    position: relative;
    line-height: 1.3;
}

#newYear-main .newYear-time {
    font-weight: bold;
    text-align: center;
}

#newYear-main .time,
#newYear-main .happyNewYear {
    font-size: 3.0rem;
    margin: 1rem 0;
    display: block;
}

#newYear-main .day {
    font-size: 5rem;
}

#newYear-main .day .unit {
    font-size: 1rem;
}

#newYear-main .mask {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .1);
}






/* 鼠标样式 */
#cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  /* 这里改变跟随的底色 */
  background: rgb(200, 226, 95);
  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);
}





/* load页面 */

.pace {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  z-index: 2000;
  position: fixed;
  margin: auto;
  top: 10px;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 8px;
  width: 4rem;
  background: #eaecf2;
  border: 1px #e3e8f7;
  overflow: hidden;
}

.pace-inactive .pace-progress {
  opacity: 0;
  transition: 0.2s ease-in;
}

.pace .pace-progress {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  max-width: 200px;
  position: absolute;
  z-index: 2000;
  display: block;
  top: 0;
  right: 100%;
  height: 100%;
  width: 100%;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  animation: gradient 1.5s ease infinite;
  background-size: 200%;
}

.pace.pace-inactive {
  opacity: 0;
  transition: 0.2s;
  top: -8px;
}
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.loading-img {
  background: url(/img/liangchaoweizhengmian.png) no-repeat center center;
  background-size: cover;
}




/* 头像呼吸灯 */
[data-theme="light"] .avatar-img {
  animation: huxi_light 3s ease-in-out infinite;
}
[data-theme="dark"] .avatar-img {
  animation: huxi_dark 3s ease-in-out infinite;
}
@keyframes huxi_light {
  0% {
    box-shadow: 0px 0px 1px 1px #e9f5fa;
  }
  50% {
    box-shadow: 0px 0px 5px 5px #e9f5fa;
  }
  100% {
    box-shadow: 0px 0px 1px 1px #e9f5fa;
  }
}
@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;
  }
}





/* 头像状态 */
.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.35s;
  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: 85px;
}

.card-info-avatar .author-status-box:hover .author-status span {
  width: 85px;
  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.35s;
}

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





/* 调整.post-info 位置和.post-title 居中 */
.post {
  /* 开启相对定位，为子元素绝对定位做参考（如果用绝对定位调整的话） */
  position: relative; 
  /* 让内容水平居中，可根据实际情况决定是否需要 */
  text-align: center; 
}
.post-title {
  text-align: center; /* 确保标题自身文字水平居中 */
  margin-bottom: 50px; /* 和下方.post-info 拉开点距离，可调整 */
}

/* 文章页上的标题与波浪线距离 */
#post-info {
    transform: translateY(-80px);
}



/* 代码块样式调整（原有基础） */
figure.highlight pre,
.code-block pre {
  white-space: pre; /* 保留空格、换行，严格按照文本原有格式渲染 */
  text-align: left !important;
  font-size: large;
  overflow-x: auto; /* 启用横向滚动条 */
}

/* macOS 风格代码框主体 */
figure.highlight,
.code-block {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
  border: 1px solid #e5e7eb; /* 浅灰色边框，可根据喜好调整 */
}

/* macOS 标题栏（模拟） */
figure.highlight::before,
.code-block::before {
  content: "";
  display: block;
  height: 28px;
  background-color: #f7f7f7; /* 标题栏背景色，接近 macOS 浅灰 */
  border-bottom: 1px solid #e0e0e0; /* 分隔线 */
}

/* macOS 红黄绿按钮（核心） */
figure.highlight::after,
.code-block::after {
  content: " ";
  position: absolute;
  top: 8px; 
  left: 10px; 
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 
    20px 0 0 #fdbc40, /* 黄色按钮 */
    40px 0 0 #35cd4b; /* 绿色按钮 */
  background-color: #fc625d; /* 红色按钮 */
}

/* 调整代码区域位置，避免被标题栏遮挡 */
figure.highlight pre,
.code-block pre {
  margin-top: 0;
  padding: 12px; /* 增加内边距，让代码与边框有距离 */
  padding-top: 20px; /* 给标题栏留出空间 */
}





#article-container > * {
  white-space: pre-wrap; /* 保留空格和换行，但允许文本换行 */
  text-align: left !important;
}


#blog-info {
  display: flex;
  align-items: center; /* 保持垂直居中（如果需要） */
  justify-content: flex-start !important; 
}

#blog-info > * {
  margin: 0 !important; /* 清除子元素的默认 margin */
}









/* 锁定文章页的侧边栏容器 */
.post .aside-content {
  /* 只保留 .sticky_layout，其他模块直接隐藏 */
  display: flex;
  flex-direction: column;
  max-width: 400px !important;
}

/* 隐藏所有非 .sticky_layout 的侧边栏模块 */
.post .aside-content > *:not(.sticky_layout) {
  display: none !important;
}

/* 确保 .sticky_layout 正常显示（可选，根据主题调整） */
.post .sticky_layout {
  width: 100% !important;
  margin: 0 !important;
  order: 1; /* 确保在最顶部 */
}
/* 针对目录容器，重置默认内边距 */
#card-toc .toc {
  padding-left: 0 !important; /* 强制左内边距为0，让内容左移 */
}

/* 目录项基础样式：保留层级缩进，调整左对齐 */
#card-toc .toc-item {
  text-align: left; 
  padding-left: calc(10px * var(--toc-level)); /* 用 CSS 变量动态控制层级缩进 */
  /* 或固定缩进（适合简单层级）：
     padding-left: 10px; 
     &.level-2 { padding-left: 20px; }
     &.level-3 { padding-left: 30px; }
  */
}

/* 如果主题使用 ul/li 结构，重置列表样式 */
#card-toc ul {
  list-style: none; /* 去掉默认列表符号 */
  padding-left: 0;   /* 重置列表内边距 */
  margin: 0;        /* 重置列表外边距 */
}
#card-toc .toc-item {
  --base-indent: 10px; /* 基础缩进值 */
  padding-left: calc(var(--base-indent) * var(--toc-level));
  text-align: left;
}



