@charset "utf-8";
*{margin:0px;padding:0px;font-family:"Microsoft YaHei";font-size:15px;box-sizing:border-box;transition:all .2s}
body{color:#353a44;background:#eee}
a{color:#373E4E;text-decoration:none}
a:hover{color:#7485e3;text-decoration:none}
/* 全局li关闭列表样式，但是 .article-content 里面的li排除 */
li:not(.article-content li){margin:8px 0px;list-style:none}
svg{vertical-align:middle}
input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#b3bbce}
input{color:#525D76;resize:none;outline:none;height:28px;line-height:28px;padding:0px 10px;box-sizing:border-box;border:1px solid #cccedb;vertical-align:middle;border-radius:2px}
input[readonly="readonly"]{cursor:not-allowed}
textarea{color:#525D76;width:100%;resize:none;outline:none;padding:10px;box-sizing:border-box;overflow-y:auto;border:1px solid #888888;line-height:20px;font-size:15px}
.headline{color:#3d434f;font-size:20px;width:100%;overflow:hidden;position:relative;clear:both;padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid #e7e7e7;display:flex;justify-content:space-between;align-items:center;}
.btn{font-size:14px;color:#fff;background:#7c828f;padding:0px 25px;border:none;height:28px;line-height:28px;margin:10px 0px;display:inline-block;cursor:pointer;vertical-align:middle;border-radius:2px;white-space:nowrap;text-decoration:none!important}
.btn:hover{color:#fff;background:#545e74}
.btn-blue{background:#768fe7}
.btn-blue:hover{color:#fff;background:#677ecf}
.empty{text-align:center;padding:40px;color:#767883;}
.title{font-size:16px;width:100%;background:inherit;overflow:hidden;position:relative;margin:15px 0px 10px;clear:both;display:flex;align-items:center;color:#21252d}
.title::before{content:"";width:3px;height:12px;background:#3B4071;display:inline-block;margin-right:5px}
.title span{font-weight:bold}
/* 板块 */
.box{margin-bottom:15px;box-shadow:1px 1px 5px rgb(0 0 0 / 5%);background:#fff;border-radius:4px;overflow:hidden;width:100%;}
.box-name{width:100%;display:flex;align-items:center;padding:15px;border-bottom:1px solid #f1f1f1;font-weight:bold}
.box-name:before{content:"";width:2px;height:12px;background:#616978;display:inline-block;margin-right:10px}
.box-main{padding:15px}
.tip{background:#f6f6f8;padding:8px 10px;vertical-align:middle;margin-bottom:10px;border-radius:2px;border:1px solid #f3f3f7}
.tip span{color:#000;font-weight:bold;margin:0px 5px}
/* 清除login旧的绝对定位 */
.login{padding:30px;position:static;width:auto;height:auto;margin:0;}
.login [name=vcode]{width:100px;border-right:none;margin-right:-9px;}
/* 头部 */
.header{display: flex;flex-wrap: wrap;background: #3E4454;
max-width: 1210px;
width:100%;
margin: 15px auto 0;padding: 12px 20px;
box-shadow: 1px 1px 5px rgb(0 0 0 / 5%);border-radius: 4px;}
.header-title{display:flex;align-items:center;color:#E9EEFF}
.header-title a{color:#FFF;text-decoration:none}
.header-title img{height:16px;margin-right:5px}
.header-menu{display:flex;flex-wrap:wrap;align-items:center;flex:1;justify-content:right;}
.header a{padding:0 5px;text-decoration:none;font-size:16px;color:#E9EEFF}
.header a:hover{text-decoration:none}
.header-menu a:hover{color:#dce1fe}
.header-menu-left a:first-child{border-left:1px solid #6c718c;padding-left:16px}
.header-menu-right{margin-left:auto;display:flex;align-items:center}
.header-menu span._line{font-size:7px;height:13px;width:1px;background:#a7a8ad;overflow:hidden;display:inline-block;margin:0 10px}
.header-menu span._drop{font-size:7px;height:2px;width:2px;background:#a7a8ad;margin:0 8px;display:inline-block}
/*main 主容器 */
.main{
	position:relative;
	max-width:1210px;
	width:100%;
	margin:0 auto;
	padding-top:15px;
}
.content{
	display:flex;
	gap:15px;
	align-items: stretch;
}
.box-wrap{
	flex:1 1 auto;
	min-width:0;
}

/*底部 footer */
.footer{
	margin: 0 auto 15px auto;
	padding:15px 20px;
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	justify-content:space-between;
	align-items:center;
	max-width:1210px;
	width:100%;
	color:#5b5e70;
	background:#fff;
	box-shadow:1px 1px 5px rgb(0 0 0 / 5%);
	border-radius:4px;
}
.footer a{text-decoration:none;color:#7485e3}
.footer *{font-size:14px}
.footer-left span{margin-right:10px}
.footer-right span{margin-left:10px}

/*侧栏 285px 固定宽度，搜索框适配侧栏宽度*/
.sidebar{flex:0 0 285px;}
.sidebar-tag{padding:15px}
/*侧边栏搜索框适配285宽度*/
.search{display:flex;align-items:center;width:100%;}
.search input[name=name]{flex:1;border:1px solid #aaaeb7}
.search .btn{padding:0 15px;margin-left:-2px;white-space:nowrap;}

/*==== 标签云：横向浮动，title提示数量，字号JS动态 ====*/
.tag-box{}
.tag-cloud{
	padding:12px 15px;
	display:flex;
	flex-wrap:wrap;
	gap:8px 10px;
}
.tag-item{
	padding:2px 8px;
	background:#f3f4f8;
	border-radius:4px;
	color:#444;
	position:relative;
}
.tag-item:hover{
	background:#e4e7f2;
	color:#222;
}

/* 验证码 */
.vcode-img{height:28px;cursor:pointer;vertical-align:middle;}
.login .vcode-img{border:1px solid #c3c7db;border-radius:2px;border-left-color:#e7e9f6;padding-left:5px;}
.vcode-input{width:80px;border:none;border-radius:0;border-left:1px solid #c3c7db;height:20px;line-height:20px;}
/* 评论 */
.comment{padding:15px;width:100%;}
.comment-info{display:flex;border-bottom:1px solid #9094ab;}
.comment-info-item{flex:1;display:flex;align-items:center}
.comment-info-item label{width:100px;display:inline-block;text-align:center;border-right:1px solid #c3c7db;}
.comment-info-item input{border:none;width:100%}
.comment-form textarea{height:121px;border:none}
.comment-form{border:1px solid #9094ab;}
.comment-submit{display:flex;align-items:center;margin-top:-1px;border:1px solid #9094ab;}
.comment-submit .btn{border-radius:0;background:#9094ab;color:#ffffff;margin:0;border-right:1px solid #9094ab;}
.comment-list+.paging{padding-left:0}
.comment-list .comment-list{margin-left:25px}
.comment-user{color:#4CAF50;display:inline-block}
.comment-admin>.comment-title .comment-user{color:#F44336}
.comment-time{color:#999999;margin-left:10px}
.comment-title a{color:#F44336;margin-left:10px}
.comment li{color:#525d76;padding:15px 0;border-bottom:1px solid #f6f6f6;margin:0}
.comment li:last-child{border-bottom:none}
.comment p{margin-bottom:0}
.comment-reply{margin:0 5px;cursor:pointer}
.comment-replys{margin-left:15px}
.comment-replys span{margin-left:8px;color:#3f51b5;text-align:center;border:1px solid #3f51b5;border-radius:2px;padding:1px 4px;font-size:12px;cursor:pointer}
/* 分页 */
.paging{padding:20px;font-size:16px;display:table;margin-bottom:20px}
.paging a{padding:10px;margin-left:-1px;border-top:none;border-right:none;border-left:none;border-image:initial;border-bottom:2px solid #EAEAEA;text-decoration:none}
.paging a:hover{border-top:none;border-right:none;border-left:none;border-image:initial;background:none;border-bottom:2px solid #7485e3;color:#7485e3}
.paging a.paging-active{color:#7485e3;background:none;border-top:none;border-right:none;border-left:none;border-image:initial;border-bottom:2px solid #7485e3}
.paging-prev:hover,.paging-next:hover{color:#696A6B;background:#FFF;border-top:none;border-right:none;border-left:none;border-image:initial;border-bottom:2px solid #696A6B}
.paging-disabled{cursor:not-allowed;color:#a4a7b7!important;border-bottom:2px solid #EAEAEA!important}
.paging-ell{padding:10px;display:inline-block;border-bottom:2px solid #EAEAEA}

/*====================文章卡片两栏布局 PC端【首页模块撑满】====================*/
.list-wrap{
	padding:15px;
	width:100%;
	box-sizing:border-box;
}
.article-card-container{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:16px;
	width:100%;
}
.article-card{
	border:1px solid #eee;
	border-radius:6px;
	padding:14px 16px;
	background:#fff;
	transition:0.2s;
	height:100%;
	display:flex;
	flex-direction:column;
}
.article-card:hover{
	box-shadow:0 2px 10px rgba(0,0,0,0.08);
	border-color:#ddd;
}
.top-card{border-left:4px solid #fb7a89;}
.private-card{border-left:4px solid #4CAF50;}
/*卡片第一行：标题 */
.card-title{
	margin-bottom:10px;
}
.card-title a{
	font-size:16px;
	font-weight:500;
	color:#222;
	display:block;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.card-title a:hover{color:#7485e3}
/*卡片第二行：元信息 */
.card-meta{
	display:flex;
	flex-wrap:wrap;
	gap:6px 12px;
	font-size:13px;
	color:#888;
	margin-top:auto;
}
/*首页日期前面增加文字【发布：】 */
.card-meta .date-short::before{
	content:"发布：";
}
.card-meta span{font-size:13px;}
/* css裁切时间，只显示年月日 */
.date-short{
	display:inline-block;
	max-width:15ch;
	overflow:hidden;
	text-overflow:clip;
	white-space:nowrap;
}

/* 弹窗 */
.alert{position:fixed;top:0px;left:0px;z-index:99990;width:100%;height:100%;display:flex;align-items:center}
.alert-box{width:300px;background:#FFF;position:relative;margin:auto;inset:0px;box-shadow:rgba(0,0,0,0.13) 4px 4px 10px;border-radius:2px}
.alert-bg{width:100%;height:100%;margin:0px auto;background:#000;opacity:0.15;top:0px;left:0px;position:fixed}
.alert-content{font-size:16px;position:relative;padding:20px}
.alert-footer{width:100%;border-top:1px solid #F3F3F3;padding:10px;text-align:right}
.alert-footer > div{padding:0px 10px;height:25px;line-height:25px;cursor:pointer;display:inline-block}
.alert-cancel{color:#888888}
.alert-cancel:hover{color:#768FE7}
.alert-confirm{background:#948CD1;color:#FFF;border-radius:2px}
.alert-confirm:hover{background:#677ECF;color:#FFF}
/* 文章 */
.article{
	padding:15px;
	width:100%;
	box-sizing:border-box;
}
.article-title{font-size:30px;padding-top:20px;text-align:center}
.article-info{color:#a1a4b1;margin-top:-10px;margin-bottom:15px;display:flex;gap:20px;flex-wrap:wrap}
.article-info span{margin:0 10px 0 0;font-size:13px}
.article-info a{color:#a1a4b1;font-size:inherit}
.article-content{margin:20px 0;line-height:1.8}
/* 文章内容图片强制适配屏幕，防止大图溢出手机 */
.article-content img{max-width:100%;height:auto;}
.article-menu{display:flex;gap:20px;flex-wrap:wrap;place-content:flex-start space-between;align-items:center;border-top:1px solid #eee;padding-top:15px;margin-top:20px}
/* 提示页 */
.prompt{text-align:center;box-shadow:1px 1px 5px rgb(0 0 0 / 5%);background:#fff;border-radius:4px;padding:40px;flex:1}
.prompt-title{color:#768FE7;display:inline-block;margin-bottom:20px}
.prompt-footer a{color:#939393}
.prompt-footer a:hover{color:#768FE7}
/* 用户信息 */
.user{padding:15px;text-align:center}
.user img{width:80px;height:80px;border-radius:50%;margin-top:10px}
.user-name{margin:10px;font-size:17px}
.user-info{display:flex;justify-content:space-between;margin:20px 0;color:#757784}

.user-info div{flex:1;text-align:center;}

.user-info div div{font-weight:bold;color:#353535;margin-top:10px}
.search{display:flex;align-items:center}
.search input[name=name]{width:159px;border:1px solid #aaaeb7}
.search .btn{padding:0 15px;margin-left:-2px;}
.banner{margin-bottom:15px;box-shadow:1px 1px 5px rgb(0 0 0 / 5%);border-radius:4px;display:flex;overflow:hidden;background:url(../img/banner.jpg);background-size:cover;background-position:center;}
/* banner下雨画布手机自适应 */
.banner canvas#rain{
	width:100%;
	height:100%;
}
/* 动画 */
.ani-in{animation:.6s in}
.ani-out{animation:.6s out}
.ani-up-in{animation:.6s upIn}
.ani-down-in{animation:.6s downIn}
@keyframes in{0%{opacity:0}
100%{opacity:1}
}
@keyframes out{0%{opacity:1}
100%{opacity:0px}
}
@keyframes upIn{0%{opacity:0;transform:translate3d(0px,-10%,0px)}
100%{opacity:1;transform:translate3d(0px,0px,0px)}
}
@keyframes downIn{0%{opacity:0;transform:translate3d(0px,10%,0px)}
100%{opacity:1;transform:translate3d(0px,0px,0px)}
}

/* ========== Markdown文章内容，修复列表方块标记，排除全局list-style:none ========== */
.article-content {
    line-height: 1.75 !important;
    font-size: 15px;
}
.article-content p {
    margin: 0.8em 0;
}
/*一级无序列表：实心方块square */
.article-content ul {
    list-style-type: square !important;
    list-style-position: outside !important;
    padding-left: 1.8em !important;
    margin: 0.8em 0 !important;
}
.article-content ul li {
    list-style: inherit !important;
    display: list-item !important;
    margin: 0.35em 0;
    line-height:1.75;
}
.article-content ul > li::marker {
    color:#353a44;
    font-size:1.05em;
}
/*有序列表 */
.article-content ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 1.8em !important;
    margin: 0.8em 0 !important;
}
.article-content ol li {
    list-style: inherit !important;
    display: list-item !important;
    margin: 0.35em 0;
    line-height:1.75;
}
.article-content ol > li::marker {
    color:#353a44;
    font-weight:normal;
    font-size:1.05em;
}
/*二级嵌套ul变回圆点disc */
.article-content ul ul{
    list-style-type: disc !important;
}
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin:0.4em 0;
}
/*引用块 */
.article-content blockquote{
    border-left:4px solid #ccd0d8;
    padding:0.5em 1em;
    margin:0.8em 0;
    color:#555;
    background:#f8f9fa;
}
/*行内代码 */
.article-content code{
    background:#f1f2f4;
    padding:2px 5px;
    border-radius:3px;
    font-family:Consolas,monospace;
    font-size:0.9em;
}
/*代码块 */
.article-content pre{
    background:#2d2d2d;
    color:#eee;
    padding:15px;
    border-radius:4px;
    overflow-x:auto;
    margin:0.8em 0;
}
.article-content pre code{
    background:transparent;
    padding:0;
    color:inherit;
}

/* ========== 移动端 ========== */
@media (max-width:768px){
body{
	background:#eee;
	font-size:14px;
}
.header,.main,.footer{
	width:calc(100% - 20px);
}
.box{box-shadow:1px 1px 4px rgba(0,0,0,0.06);flex:0 0 100%;width:100%}
.article,.comment,.login{padding:15px;width:100%}
.login{width:100%;height:auto;position:relative;margin:30px auto;}
.login [name=password]{width:100%}
.article-title{font-size:22px;}
.article-content{margin:20px 0}
.banner{height:120px;}
/* 头部导航 */
.header{display:flex;flex-wrap:wrap;position:relative;}
.header-title{width:100%;}
.header-menu{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
    margin-top:8px;
    gap:0;
}
.header-menu a{
	font-size:14px;
	padding:2px 8px;
	position:relative;
}
.header-menu a:not(:last-child)::after{
	content:"|";
	color:#6c718c;
	position:absolute;
	right:0;
	top:2px;
}
.header-menu a:first-child{padding-left:0px;border-left:none;}
.header-menu span._line,.header-menu span._drop{display:none;}

.main{
    padding-top:15px;
}
.content{
    display:flex;
    gap:0;
}
/* 手机端隐藏侧边栏 */
.sidebar{
    display:none !important;
}

.user{padding:15px}

/*====移动端文章卡片：改为单栏布局====*/
.article-card-container{
	grid-template-columns:1fr;
	gap:12px;
}
.article-card{
	padding:12px 14px;
	height:100%;
}
.card-title a{
	font-size:15px;
}
.card-meta{
	gap:4px 8px;
}

/*移动端footer */
.footer{
	display:block;
	width:calc(100% - 20px);
	padding:15px 20px;
	margin:0 auto 15px auto;
}
.footer-left,.footer-right{
	margin:6px 0;
}

/*弹窗适配手机*/
.alert-box{width:calc(100% - 30px);}

/*分页手机适配*/
.paging{width:100%;overflow-x:auto;}
.paging a{padding:8px 6px;font-size:14px;}

/*评论表单移动端上下排列，中间横线 */
.comment-info{flex-direction:column;gap:0;border-bottom:none;}
.comment-info-item{border-bottom:1px solid #9094ab;}
.comment-info-item label{width:80px;}

/*文章详情页移动端 */
.article{padding:15px;}
.article-menu{margin-top:20px;}

/* markdown移动端缩进缩小 */
.article-content ul{
    padding-left:1.4em !important;
}
.article-content ol{
    padding-left:1.4em !important;
}
.article-content {
    font-size:14px;
}
}
