
















/* 去除全局超链接下划线-start */
a {
    text-decoration: none !important;
}
/* 去除全局超链接下划线-end */



/* 侧边栏头像css-start */
/* 头像容器 */
.profile-container {
  text-align: center;
  margin: 20px auto;
  width: 160px;
}

/* 头像基础样式 */
.avatar {
  width: 160px !important;
  height: 160px !important;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  object-fit: cover;
}

/* 头像悬停特效 */
.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  filter: brightness(1.05) contrast(1.1);
}

/* 昵称样式 */
.nickname {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  display: inline-flex;
  align-items: center;
}

/* 微信图标容器 */
.wechat-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}

/* 微信图标固定尺寸 */
.wechat-icon {
  width: 24px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.3s;
}

.wechat-icon:hover {
  transform: scale(1.1);
}

/* 二维码弹出层 */
.qrcode-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}

.wechat-wrapper:hover .qrcode-popup {
  opacity: 1;
  visibility: visible;
  margin-bottom: 10px;
}

.qrcode-popup img {
  width: 100%;
  border-radius: 4px;
}
/* 侧边栏头像css-end */



/* 摘要题图-start */
/* 题图左移 */
.post-summary img,
.c_b_p_desc img {
  float: left !important;
  border-radius: 8px;
  margin-right: 20px !important;
  margin-bottom: 5px !important;
  max-width: 150px;
  transition: transform 0.3s ease; /* 添加平滑过渡效果 */
}

/* 题图容器抖动问题 */
.c_b_p_desc {
    overflow: hidden; 
    display: block;   /* 之前有抖动，改为块级元素，避免抖动 */
}

/* 题图过渡效果和布局控制 */
.c_b_p_desc img.desc_img {
    transition: transform 0.3s ease; 
    display: block;   /* 避免图片作为行内元素时底部留白造成的间隙 */
    width: 100%;      /* 确保图片填充容器宽度 */
}

/* 题图放大效果和交互提示 */
.c_b_p_desc:hover img.desc_img {
    transform: scale(1.08); 
    cursor: pointer;
}
/* 摘要题图-end */



/* 随笔分类-start */
/* 分类列表容器 */
#sidebar_postcategory > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 15px 0;
}

/* 仅选择直接子元素li */
#sidebar_postcategory > ul > li {
  list-style: none;
}

/* 仅作用于分类链接 */
#sidebar_postcategory > ul > li > a {
  display: block;
  padding: 8px 16px;
  border-radius: 30px;
  background: #e3f2fd;
  transition: all 0.4s;
  font-size: 0.9em;
}

/* 保持原有的尺寸变化效果 */
#sidebar_postcategory > ul > li:nth-child(4n+2) a { 
  transform: scale(1.1); 
  background: #bbdefb;
}
#sidebar_postcategory > ul > li:nth-child(4n+3) a { 
  transform: scale(1.2); 
  background: #90caf9;
}
#sidebar_postcategory > ul > li > a:hover {
  transform: scale(1.3) !important;
  box-shadow: 0 5px 15px rgba(33,150,243,0.4);
}
/* 随笔分类-end */



/* 友情链接-start */
#sidebar_links2461174 {
  width: 100%;
}

/* 链接列表双排居中布局 */
#sidebar_links2461174 ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 12px;
  justify-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* 友情链接-end */



/* 游记-start */
/* 容器样式 */
#travel-recommend {
  margin: 30px 0px;  /* 上下边距30px，左右0 */
}

/* 标题样式 */
#travel-recommend h3 {
  font-size: 16px;  /* 字体大小 */
  color: #555;     /* 字体颜色 */
  margin-bottom: 20px;  /* 下边距 */
  padding-bottom: 5px;  /* 底部内边距 */
  border-bottom: 1px dashed #ddd;  /* 底部虚线边框 */
}

/* 悬停效果 */
.travel-box:hover {
  transform: translateY(-3px);  /* 上移3px */
}

/* 图片样式 */
.travel-box img {
  width: 100%;  /* 宽度100% */
height: auto;  /* 高度自动调节 */
  object-fit: cover;  /* 图片填充方式 */
}

/* 标题文字样式 */
.travel-title {
  margin-top: 5px;  /* 上边距 */
  font-size: 14px;  /* 字体大小 */
}

/* 单个样式 */
.travel-box {
  margin-bottom: 25px;  /* 下边距 */
  transition: all 0.3s; /* 过渡动画效果 */
}
/* 游记-end */



/* 我的标签-start */
/* 标签从左到右自动排列 */
#sidebar_toptags ul {
  display: flex;          /* 启用 Flex 布局 */
  flex-direction: row;    /* 水平排列 */
  flex-wrap: wrap;        /* 超出宽度时自动换行 */
  gap: 0px;               /* 标签间距 */
  justify-content: space-evenly !important; /* 替代space-between */
  padding: 0;
  list-style: none;       /* 移除默认列表符号 */
}

/* 单个标签样式 */
#sidebar_toptags ul li {
  margin: 0 !important;   /* 清除默认外边距 */
}

/* 标签加方框 */
#sidebar_toptags ul li a {
  display: inline-block !important;
  padding: 4px 8px !important;
  border: 1px solid #f7f7f7 !important;  /* 边框颜色 */
  border-radius: 3px !important;      /* 圆角 */
  background: #ffffff !important;     /* 背景色 */
  margin: 2px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* 标签悬停效果 */
#sidebar_toptags ul li a:hover {
  border-color: #3498db !important;
  background: #e3f2fd !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  #sidebar_toptags ul li a {
    padding: 3px 6px !important;
    font-size: 0.9em !important;
  }
}
/* 我的标签-end */







/* 侧边栏模仿首页文章区域-start */
/* 侧边栏样式 */
#sideBar {
    border-radius: 10px;

    margin: 15px 0 30px 15px; /* 左外边距20px实现右移 */
    margin-top: 25px;
    transition: 0.3s;
    background: white;
    padding: 15px;
    z-index: 100;
    width: 300px;
    margin-bottom: 30px;
    border: none;
}

/* 悬停时的阴影效果‌ */
#sideBar:hover {
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

/* H‌3‌标题效果 */
#sideBar h3 {
    color: #333;
    padding-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}
/* 侧边栏模仿首页文章区域-end */











/* 首页核心容器-start */
/* 样式规则 */
	#mainContent{
		width: 73.7%;
		box-shadow: none;        /* 替代0 0 0更规范 */
		border-radius: 0px;
		opacity: 1 !important;   /* 强制显示内容 */
		transition:0.3s;
		margin-top: 40px;        /* 减少顶部间距 */
		padding: 0px 0;         /* 添加垂直内边距 */
	}
	#main{
		width: 73.7%;
		background-color: white !important; /* 强制覆盖其他样式 */
		/*max-width: 700px;*/
	}
	
	/* 响应式布局 */
	@media screen and (max-width: 700px) {
	 #main {width: 100%;}
	}

	/* 全局样式 */
	body{
		background-image: none;
		background-color: white; 
		font-family: Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace !important;
		line-height: 1.8;
	}

	/* 随笔文章内正文字号 */
	#cnblogs_post_body{
		font-size: 16px;
	}

	/* 图片元素的顶部边距 */
	.forFlow img{
		margin-top: 0;
	}

	/* 文章正文图片的响应式宽度 */
	#cnblogs_post_body img {
	    max-width: 100%;
	}
/* 首页核心容器-end */



/* 禁用列表-start */
	/** 好文要顶关注我微信分享 */
	#green_channel{
		display: none;
	}
	/** 文章内上一篇下一篇 */
	#post_next_prev{
		display: none;
	}
	/** 去除广告 */
	#cb_post_title_url{
		display: none;
	}
	/** 文章下的推荐广告 */
	#cnblogs_ch{
		display: none;
	}
	/** 文章下的编辑推荐 */
	#under_post_card1{
		display: none;
	}
	/** 文章下的阅读排行 */
	#under_post_card2{
		display: none;
	}
	/** 未登录评论下广告 */
	#blog_c1{
		display: none;
	}
	/** 去掉评论上方的头像 */
	#author_profile_info{
		display: none;
	}
	/** 去掉评论上方升级会员 */
	#commentform_title{
		display: none;
	}
	/** 去掉文章下方的推荐和反对 */
	#div_digg{
		display: none;
	}
	/** 隐藏公告栏个人信息 */
	#profile_block { display: none !important; 
	}
	/** 去掉底部链接*/
	#footer{
		display: none;
	}
	/* 精确选择公告栏公告两个字并隐藏 */
	.newsItem h3.catListTitle {
	display: none !important;
	}
	/* 隐藏shoucang按钮 */
	a[onclick*="AddToWz"] {
	display: none !important;
	}

	/* 隐藏jubao按钮 */
	a[onclick*="reportManager.report"] {
	display: none !important;
	}
	/** 去掉文章下方的阅读数 */
	#post_view_count{
		display: none;
	}
	/** 去掉文章下方的评论数 */
	#post_comment_count{
		display: none;
	}

	/** 去掉摘要的阅读及数 */
	.post-view-count {
	display: none !important;
	}

	/** 去掉摘要的评论及数 */
	.post-comment-count {
	display: none !important;
	}

	/** 去掉摘要的推荐及数 */
	.post-digg-count {
	display: none !important;
	}
	#cnblogs_c1{
		display: none;
	}
	#cnblogs_c2{
		display: none;
	}
	#kb_block{
    	display:none
	}
	#under_post_news{
	    display:none
	}
	#header{
		display:none
	}
	#BlogPostCategory{
		display: none;
	}
	#comment_nav{
		display: none;
	}
	.postDesc{
		border-bottom:none;
	}
	#author_profile_follow{
		display: none;
	}
	/* 禁用列表-end */



	/** 自定义样式 */
	/* 加载条 */
	#myProgressBar{
		width: 15%;
		height: 2px;
		background-color: #eb5055;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
	}
	#nprogress {
	  pointer-events: none;
	}

	#nprogress .bar {
	  background: #eb5055;

	  position: fixed;
	  z-index: 1031;
	  top: 0;
	  left: 0;

	  width: 100%;
	  height: 2px;
	}
	#nprogress .peg {
	  display: block;
	  position: absolute;
	  right: 0px;
	  width: 100px;
	  height: 100%;
	  box-shadow: 0 0 10px #eb5055, 0 0 5px #eb5055;
	  opacity: 1.0;

	  -webkit-transform: rotate(3deg) translate(0px, -4px);
	      -ms-transform: rotate(3deg) translate(0px, -4px);
	          transform: rotate(3deg) translate(0px, -4px);
	}
	#nprogress .spinner {
	  display: block;
	  position: fixed;
	  z-index: 1031;
	  top: 15px;
	  right: 15px;
	}

	#nprogress .spinner-icon {
	  width: 18px;
	  height: 18px;
	  box-sizing: border-box;

	  border: solid 2px transparent;
	  border-top-color: #eb5055;
	  border-left-color: #eb5055;
	  border-radius: 50%;

	  -webkit-animation: nprogress-spinner 400ms linear infinite;
	          animation: nprogress-spinner 400ms linear infinite;
	}
	.nprogress-custom-parent {
	  overflow: hidden;
	  position: relative;
	}
	.nprogress-custom-parent #nprogress .spinner,
	.nprogress-custom-parent #nprogress .bar {
	  position: absolute;
	}

	@-webkit-keyframes nprogress-spinner {
	  0%   { -webkit-transform: rotate(0deg); }
	  100% { -webkit-transform: rotate(360deg); }
	}
	@keyframes nprogress-spinner {
	  0%   { transform: rotate(0deg); }
	  100% { transform: rotate(360deg); }
	}


	/** 导航栏 */
	#mynavbar{
		width: 100%;
		height: 70px;
		position: fixed;
		display: block;
		top: 0px;
		z-index: 100;
		background-color: white;
		transition:0.5s ease-in-out;
		box-shadow: 0 1px 5px rgba(0,0,0,.1);
	}
	#mynavbar_menu{
	    display: inline-block;
	    width: auto;
	    position: relative;
	    float: right;
        text-align: right;
    	line-height: 68px;
	}
	#mynavbar_menu a{
	    padding: 0 15px;
	    font-size: 14px;
	    outline: 0;
	    color: #313131;
	    text-decoration: none;
	}
	#mynavbar_menu a:hover{
		color: #eb5055 !important;
	}

















/* 全局基础设置 - 修改：移除全局overflow-x设置 */
html, body {
  width: 100%;
}


/* 新增：仅移动端横屏允许水平滚动 */
@media (max-width: 767px) and (orientation: landscape) {
  html, body {
    overflow-x: auto;
  }
}


/* 新增：精确控制PC端滚动范围 */
@media (min-width: 1200px) {
  body {
    overflow-x: hidden;
    min-width: 1200px;
  }
}




/* 移动端默认全屏背景 */
#myheader {
    margin-top: 70px;
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    background-color: #000000; /* 关键：添加与两侧相同的背景色 */
}

#myheader_bg {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.3s ease; /* 添加过渡效果 */
}

/* PC端优化 */
@media (min-width: 1200px) {
    #myheader {
        width: 1200px;
        height: 350px;
        margin: 70px auto 0;
        position: relative;
        overflow: visible;
        background-color: transparent; /* PC端容器透明 */
		        background: #000000 !important; /* 与主容器颜色同步 */
    }

    /* 两侧色块同步主背景色 */
    #myheader::before,
    #myheader::after {
        min-width: 0; /* 防止内容挤压 */
        content: "";
        position: absolute;
        top: 0;
        height: 100%;
        width: calc((100vw - 1200px) / 2);
        background: #131218; /* 与移动端背景色一致 */
        z-index: 0;
    }
    #myheader::before { right: 100%; }
    #myheader::after { left: 100%; }

    #myheader_bg {
        width: 1200px;
        height: 350px;
        left: 0;
    }
}














/* 基础遮罩层设置 */
#myheader_cover {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 350px;
  z-index: 1;
  background: rgba(0,0,0,0.5);
  pointer-events: none;/* 禁用遮罩层交互，删除后即可恢复标题和背景图悬停文字 */
}

/* 两侧色块专用遮罩 */
#myheader_cover::before,
#myheader_cover::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: calc((100vw - 1200px) / 2);
  background: inherit;
}
#myheader_cover::before {
  right: 100%;
}
#myheader_cover::after {
  left: 100%;
}


/* 遮罩层移动端适配 */
@media (max-width: 1199px) {
  #myheader_bg {
    width: 100%;
    height: auto;
    min-height: 300px;
    position: relative;
  }
  
  #myheader_cover {
    width: 100%;
    height: 100%;
    left: 0;
    transform: none;
  }
  
  #myheader_cover::before,
  #myheader_cover::after {
    display: none;
  }
}













/* 文章详情页标题容器所有代码   开始 */
	#mypost_title{
	    position: relative;
	    position: absolute;
	    top: 140pt;
	    left: 42%;               /* 水平居中关键 */
	    transform: translateX(-50%); /* 微调精确位置 */
	    width: 90%;              /* 添加宽度限制 */
	    padding: 30px 25px 20px;
	    max-width: 700px;
	    color: white;
	    transition:0.3s;
	    opacity: 0;
	}
/* 手机端样式 */
	@media (max-width: 768px) {
	#mypost_title {
      width: 97%;          /* 增大宽度占比 */
      left: 2.5%;          /* 微调左侧间距 */
      transform: none;     /* 移除平移 */
  }
}
	#mypost_title_e{
		margin: 0;
    	padding: 5px 0 15px;
	}
	#mypost_title_e a{
		border: 1px solid #6fa3ef;
	    border-radius: 15px;
	    background: #6fa3ef;
	    color: #fff;display: inline-block;
	    margin: 4px 8px 0 0;
	    padding: 0 15px;
	    letter-spacing: 0;
	    font-weight: 600;
	    font-size: 13px;outline: 0;text-decoration: none;
	    transition: 0.5s;
	}
	#mypost_title_e a:before{
		content: "# "
	}
	#mypost_title_e a:hover{
		background-color: white;
		border: 1px solid white;
		color:black;
	}
	#mypost_title_f a{
		color: white;
	}
	#mypost_title_f a:hover{
		text-decoration:none;
	}
	/* 文章详情页标题容器所有代码结束 */















/** 右侧目录导航 */
	#right_meun{
	    position: fixed;
	    top: 100px;
	    left: 5%;
	    display: none;
	    text-align: left;
	    border-left: 1px solid #ddd;
	    font-size: 12px;
	}
	#right_meun li{
		list-style: none!important;
	}
	#right_meun a{
		display: inline-table;
	    margin-left: 5px;
	    white-space: nowrap;
	    text-decoration: none;
	    color: #313131;
	    outline: 0;
	}
	#right_meun a:hover{
		color: #eb5055;
	}
	#right_meun>li::before {
	    position: relative;
	    top: 0;
	    left: -4px;
	    display: inline-block;
	    width: 7px;
	    height: 7px;
	    content: '';
	    border-radius: 50%;
	    background-color: #eb5055;
	}


/* 手机端隐藏 */
@media screen and (max-width: 1700px) {
    #right_meun {
        display: none !important;
    }
}

	/** MarkDown样式调整 */
	.cnblogs-markdown .hljs{
	    font-size: 16px!important;
	    line-height: 2!important;
	    padding: 15px!important;
	}
	.cnblogs-markdown code{
		background:rgb(238,240,244) none !important;
		border:0px !important;
		color: rgb(73,59,92) !important;
		font-size: 16px!important;
		tab-size: 4;
	}
	.cnblogs-markdown h2{
		font-weight: 500;
		margin: 20px 0;
	}
	.cnblogs-markdown h2:before{
		content: "#";
		color: #eb5055;
		position: relative;
		top: 0;
		left: -12px;
	}
	#cnblogs_post_body h2{
		font-weight: 500;
		margin: 20px 0;
	}
	#cnblogs_post_body h3{
		font-size: 16px;
	    font-weight: bold;
	    line-height: 1.5;
	    margin: 10px 0;
	}
	.cnblogs-markdown h3:before{
		content: "##";
		color: #2175bc;
		position: relative;
		top: 0;
		left: -8px;
	}
	.postBody blockquote, .postCon blockquote{
		background-image: none;
		border-left: 5px solid #DDDFE4;
		background-color: #EEF0F4;
		width: 100%;
		padding: 6px 0 6px 25px;
	}
	blockquote{
		border:0;
	}
	/* code加上行数 */
	.cnblogs-markdown .syntaxhighlighter table td.code {
	  width:95% !important; 
	}

	.cnblogs-markdown .syntaxhighlighter code {
	  font-family: "Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace!important;
	  padding: 0 !important;
	  border-radius: 0 !important;
	  background-color: transparent !important;
	}

	.cnblogs-markdown .syntaxhighlighter code:before,
	.cnblogs-markdown .syntaxhighlighter code:before {
	  letter-spacing: -0.5em;
	}
	.cnblogs-markdown em{
		font-style:italic
	}


	/** 更改浏览器滚动条和选中字体背景颜色 */
	::selection {
	    background-color: #3498db;
	    color: #fff;
	}
	::-webkit-scrollbar {
	    width: 10px;
	    height: 6px;
	}
	::-webkit-scrollbar-thumb {
	    min-height: 28px;
	    background-color: #c2c2c2;
	    background-clip: padding-box;
	}
	::-webkit-scrollbar-track-piece {
	    background-color: #fff;
	}
	*, :after, :before {
	    box-sizing: border-box;
	}










	/** 首页文章条显示优化 */
	.day{
	    border-radius: 10px;
	    box-shadow: 0 0 15px 2px rgba(0,0,0,.1);
	    margin-top: 25px;
	    transition: 0.3s;
	    margin-bottom: 25px;
   padding-bottom: 6px; /* 数值按需调整 */
	}
	.day:hover{
		box-shadow: 0 1px 2px rgba(0,0,0,.1);
	}
	.dayTitle {
		display: none;
	}















	/* 评论项容器样式 */
.feedbackItem{
    background-color: ghostwhite;  /* 设置浅灰色背景 */
    border-radius: 10px;          /* 圆角边框 */
    padding: 20px;               /* 内边距 */
    margin-top: 20px;            /* 上外边距 */
    border: 0px;                 /* 无边框 */
}

/* 评论输入框样式 */
.comment_textarea{
    padding: 15px;              /* 内边距 */
    border-radius: 10px;        /* 圆角边框 */
    outline: 0;                 /* 去除聚焦轮廓 */
    resize: none;               /* 禁止调整大小 */
    overflow: hidden;           /* 隐藏溢出内容 */
    width: 100%;               /* 宽度100% */
    border: 1px solid #ddd;    /* 添加边框线 */
    box-sizing: border-box;    /* 盒模型计算方式 */
}

/* 评论按钮基础样式 */
.comment_btn {
    border: 1px solid #f7f7f7;  /* 边框 */
    border-radius: 30px;        /* 圆形按钮 */
    background-color: #f7f7f7;  /* 背景色 */
    font-size: 15px;           /* 字体大小 */
    cursor: pointer;           /* 鼠标指针样式 */
    height: 32px;              /* 固定高度 */
    padding: 0 20px;           /* 内边距 */
    position: absolute;        /* 绝对定位 */
    right:6%;                  /* 右侧定位 */
    bottom: 38px;              /* 底部定位 */
    width: auto;               /* 自动宽度 */
    transition: all 0.4s;      /* 添加过渡效果 */
}

/* 评论按钮悬停效果 */
.comment_btn:hover {
    border: 1px solid #eb5055;  /* 悬停边框色 */
    background-color: white;    /* 悬停背景色 */
    color: #eb5055;            /* 悬停文字色 */
}

/* 隐藏评论区域标题 */
.feedback_area_title{
    display: none;             /* 不显示 */
}

/* 评论框主容器 */
.commentbox_main{
    margin-top: 20px;          /* 上外边距 */
    position: relative;        /* 相对定位 */