/*--------------------- 全局部分 -------------------*/
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Helvetica Neue,Helvetica,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Source Han Sans CN,sans-serif,Arial,Verdana,Tahoma,sans-serif;
    font-size: 16px;
	color: #333;
    -webkit-font-smoothing: antialiased;
}

ul,dl,ol {
    list-style: none;
}

li {
    list-style-type: none;
}

a {
    color: #333333;
    text-decoration: none;
    outline: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    color: #ce6363;
    text-decoration: none;
}

a:active {
    color: #ce6363;
}

/*--------------------- header部分 -------------------*/
header {
    position: fixed;
    z-index: 200;
    width: 100%;
    height: 60px;
    padding: 0 24px;
    border-top: 1px solid #d5dde2;
    border-bottom: 1px solid #d5dde2;
    box-shadow: 0 2px 16px rgb(54 56 79 / 6%);
    background-color: #f0f5fd;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    justify-content: space-between;
}

header a {
    color: #2f7597;
    font-size: 1.2rem;
    font-weight: 500;
    user-select: none;
    text-decoration: none;
}

header a.active {
    color: #ce6363;
}

header a:hover {
    color: #ce6363;
    text-decoration: none;
    font-weight: 500;
}

.logo {
    display: flex;
}

/*-- 菜单 --*/
.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 5px;
    background-color: #717171;
    margin-bottom: 4px;
    border-radius: 10px;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.menu li {
    margin: 0 10px;
}

/* --gray-toggle-- */
.gray-toggle {
    display: flex;
}

/* switch-button */
.switch-button{
    display: none;/*隐藏表单元素*/
}

/* +选择器选择紧跟“+”左边选择器的第一个元素 */
.switch-button+label{
    display: inline-block;
    position: relative;
    transition: all .3s;
    width: 43px;
    height: 24px;
    border: 1px solid #999;
    border-radius: 15px;
    background-color: #ccc;
}

/* 选中表单后的样式，:checked表示checkbox被选中后的状态 */
.switch-button:checked+label{
    background-color: #b8d1f9;
}

/* 使用伪元素生成一个按钮 */
.switch-button+label::before{
    content: '';
    display: block;
    height: 20px;
    width: 20px;
    position: absolute;
    border-radius: 25px;
    left: 1px;
    top: 1px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    transition: all .3s;
}

/* checkbox选中时按钮的样式 */
.switch-button:checked+label::before{
    left: 20px;
    transition:  all .2s linear;
}

.gray {
    filter: grayscale(100%);
}

/*--------------------- content部分 -------------------*/
/*-- 大的布局 --*/
.content {
    margin: 0px auto;
    padding: 80px 0px;
    display: flex;
    justify-content: center;
}

.content main {
    width: 1200px;
}

.content aside {
    width: 200px;
}

.content .left {
    display: block;
}

.content .main{
    padding: 0 14px;
}

.content .right {
    display: block;
}

.content .index_main {
    width: 1080px;
}

/* article */
.article-left {
    width: 300px;
    background-color: #fdfdfd;
    border-radius: 5px;
}

.article-right {
    width: 300px;
    background-color: #fdfdfd;
    border-radius: 5px;
}

/* .tag-box */
.tag-box {
    padding: 10px;
    clear: both;
}

.tag-box li {
    display: inline-block;
    background-image: none;
    margin: 2px;
    padding: 0;
    border-bottom: none;
    font-size: 14px;
    line-height: 30px;
    height: 30px;
    width: 83px;
    border: 1px solid #ececec;
    text-align: center;
    overflow: hidden;
    border-radius: 4px;
}

.tagc1 a {
    color: #CDDC39;
}

.tagc2 a {
    color: #8BC34A;
}

.tagc3 a {
    color: #FFC107;
}

.tagc4 a {
    color: #FF9800;
}

.tagc5 a {
    color: #ff6100;
}

.tagc6 a {
    color: #f60404;
}

.tagc7 a {
    color: #9C27B0;
}

.tagc8 a {
    color: #673AB7;
}

.front {
    width: 20px;
    text-align: center;
    float: left;
}

/*-- tab-box --*/
.tab-box {
    text-align: left;
    overflow: hidden;
}

.tab-header {
    width: 100%;
    font-weight: bold;
    display: inline-flex;
}

.tab-header a {
    width: 50%;
    height: 2.5rem;
    text-decoration: none;
    border: 1px solid #b1c8d7;
    border-radius: 4px 4px 0px 0px;
    color: #236d9d;
    background: #f0f5fd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tab-header .active {
    border-bottom: 1px solid #fff;
    border-radius: 4px 4px 0px 0px;
    color: #ce6363;
    background: #fff;
}

.tab-content {
    padding: 1rem;
    border-left: 1px solid #b1c8d7;
    border-right: 1px solid #b1c8d7;
    border-bottom: 1px solid #b1c8d7;
    border-radius: 0px 0px 4px 4px;
}

.tab-content .content-item {
    display: none;
    width: 100%;
}

.tab-content .active {
    display: inline-block;
}

.tab-content .content-item li {
    padding: 16px 0px;
    border-bottom: 1px solid #eee;
    display: flex;
}

.tab-content .content-item li .arctxt {
    padding-left: 10px;
    width: 100%;
}

.tab-content .content-item li .title {
    font-size: 20px;
    font-weight: bold;
}

.tab-content .content-item li .info {
    margin-top: 20px;
    color: #777;
    font-size: 14px;
}

.tab-content .content-item .loadmore {
    margin-top: 20px;
    line-height: 40px;
    height: 40px;
    color: #4c85a9;
    background: #f0f5fd;
    border-radius: 4px;
    box-shadow: 0px 0px 5px 0px #607d8b;
    text-align: center;
}

/*-- jBox --*/
.jBox {
    margin: 0 auto 15px;
    clear: both;
    overflow: hidden;
    border: 1px solid #B1C8D7;
    border-radius: 4px;
}

.jBoxHead {
    border-bottom: 1px solid #b1c8d7;
    background-color: #f0f5fd;
    height: 40px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jBoxHead h1 {
    display: block;
    font-size: 1rem;
}

.jBoxBody {
    clear: both;
    padding: 10px;
}

.jBoxBody li {
    border-bottom: 1px solid #eee;
    display: flex;
}

.jBoxBody li .arctxt {
    padding: 20px;
    width: 100%;
}

.jBoxBody li .title {
    font-size: 20px;
    font-weight: bold;
}

.jBoxBody li .info {
    margin-top: 20px;
    color: #777;
    font-size: 14px;
}

.jBoxImg {
    clear: both;
    overflow: hidden;
    padding: 5px;
}

.jBoxImg li {
    padding: 10px 0px;
    border-bottom: 1px solid #eee;
    display: flex;
}

.jBoxImg li p {
    overflow: hidden;
    margin: 10px 0px;
    height: 60px;
    font-size: 14px;
}

.jBoxTag {
    padding: 10px;
    clear: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.jBoxTag li a{
    margin: 5px;
    /* padding: -23px; */
    height: 40px;
    width: 83px;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: none;
    border: 1px solid #ececec;
    border-radius: 4px;
    font-size: 14px;
    line-height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jBoxTag li a{
    color: #818181;
}

.jBoxTag li a:hover{
    color: #a53131;
}

/*-- paging --*/
.paging {
    float: none;
    text-align: center;
    clear: both;
    display: block;
    font-family: Tahoma;
    margin: 20px 0;
}

.pagelist {
    text-align: center;
    overflow: hidden;
}

.pagelist li {
    display: inline-block;
    float: none;
    margin: 0 1px;
}

.pagelist li a,
.pagelist li a:hover,
.pagelist li.thisclass a {
    display: inline-block;
    padding: 0 10px;
    line-height: 25px;
    text-decoration: none;
    border: 1px solid #b1c8d7;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.pagelist li a:hover,.thisclass a {
    background: #f0f5fd;
    color: #6894b1;
}

.pre_next {
    padding: 5px 20px;
    text-align: left;
    font-size: 16px;
    line-height: 34px;
    font-weight: 700;
    color: #58585a;
    border-top: 1px solid #f9f9f9;
    border-bottom: 1px solid #f9f9f9;
}

/*-- digg --*/
.newdigg {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.diggbox {
    width: 195px;
    height: 51px;
    float: left;
    margin: 3px;
    overflow: hidden;
    cursor: pointer;
}

.diggbox .digg_act {
    height: 29px;
    font-size: 14px;
    float: left;
    line-height: 31px;
    text-indent: 32px;
    overflow: hidden;
    font-weight: bold;
}

.diggbox .digg_num {
    float: left;
    line-height: 29px;
    text-indent: 5px;
}

.diggbox .digg_percent {
    width: 180px;
    clear: both;
    padding-left: 10px;
}

.diggbox .digg_percent .digg_percent_bar {
    width: 100px;
    height: 10px;
    background: #E8E8E8;
    border-right: 1px solid #CCC;
    float: left;
    overflow: hidden;
}

.diggbox .digg_percent .digg_percent_bar span {
    display: block;
    height: 8px;
    overflow: hidden;
    background: #000;
}

.diggbox .digg_percent .digg_percent_num {
    float: left;
    padding-left: 10px;
    margin: -5px;
    height: 10px;
}

.newdigg .digg_good {
    background: url(./images/newdigg-bg.png) left top no-repeat;
}

.newdigg .digg_good:hover {
    background: url(./images/newdigg-bg.png) left bottom no-repeat;
}

.newdigg .digg_bad {
    background: url(./images/newdigg-bg.png) right top no-repeat;
}

.newdigg .digg_bad:hover {
    background: url(./images/newdigg-bg.png) right bottom no-repeat;
}

.newdigg .digg_good .digg_act {
    color: #C30;
}

.newdigg .digg_good .digg_num {
    color: #C63;
}

.newdigg .digg_bad .digg_act {
    color: #36C;
}

.newdigg .digg_bad .digg_num {
    color: #39C;
}

.newdigg .digg_good .digg_percent .digg_percent_bar span {
    border: 1px solid #E37F24;
    background: #FFC535;
}

.newdigg .digg_bad .digg_percent .digg_percent_bar span {
    border: 1px solid #689ACC;
    background: #94C0E4;
}


/*--------------------- footer部分 -------------------*/
footer {
	background-color: #727171;
	color: #fff;
	padding: 1rem;
	box-shadow: 0 0 5px 0 #607d8b;
	display: flex;
	justify-content: center;
	align-items: center;
}

footer li{
    margin: 0 0.5rem;
    color: #b0b3b7;
}

footer a {
	color: #b0b3b7;
	font-weight: 400;
}

/*--------------------- index.htm部分 -------------------*/
/* toolbar */
.toolbar {
    position: fixed;
    z-index: 1040;
    right: 24px;
    bottom: 20px;
    box-sizing: content-box;
    width: 50px;
    border-radius: 4px;
    border: 1px solid #eee;
    box-shadow: 0px 0px 4px 0px #666666;
}

.toolbar-btn {
    display: block;
    width: 50px;
    height: 40px;
    font-size: 18px;
    text-align: center;
    line-height: 2;
}

.toolbar .go-top {
    color: white;
    background-color: #f5721c;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #eee;
}

.toolbar .go-top:hover {
    background-color: #f99d40;
}

.toolbar .writer {
    color: white;
    background-color: #7ca8cb;
}

.toolbar .writer:hover {
    background-color: #acc4d7
}

.toolbar .go-bottom {
    border-top: 1px solid #eee;
    color: white;
    background-color: #f5721c;
    border-radius: 0 0 4px 4px;
}

.toolbar .go-bottom:hover {
    background-color: #f99d40;
}

/*--------------------- list.htm部分 -------------------*/

/*--------------------- article.htm部分 -------------------*/
/*-- article --*/
article {
    padding: 16px;
    text-align: justify;
}

article h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
}

article h2 {
    font-size: 0.8rem;
    font-weight: bold;
}

.article-meta {
    line-height: 2;
    padding: 10px 0px;
    color: #999;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-meta a {
    color: #999;
    font-weight: 500;
}

.article-meta a:hover {
    color: #ce6363;
    font-weight: 500;
}

.article-tags {
    width: 100%;
    overflow: hidden;
    padding: 10px 0px;
    color: #9E9E9E;
    border-radius: 4px;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space:nowrap;
}

.article-tags a{
    color: #9E9E9E;
}

.article-tags a:hover{
    color: #e9351e;
}

.article-body {
    width: 100%;
    overflow: hidden;
    clear: both;
    word-wrap: break-word;
    font-size: 1.2rem;
    line-height: 2;
    color: #222;
}

.article-body a:hover {
    color: #ba2636;
}

.article-body p {
    margin: 10px 0px;
}

.article-body h2 {
    font-size: 14px;
}

.article-body img {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 5px;
    padding: 5px;
}

/*-- arclist --*/
.arclist {
    padding: 14px;
}

.arclist li {
    padding: 12px 0px;
    border-bottom: 1px solid #f9f9f9;
}

.arclist li .arctxt {
    width: 100%;
}

.arclist li .title {
    font-size: 1.1rem;
}

.arclist li .info {
    margin-top: 20px;
    font-size: 14px;
    color: #999;
    display: flex;
}
.arclist li .info span{
    margin-right: 10px
}

/*-- google-ads --*/
.google-ads01 {
    border-radius: 5px;
    background-color: #fdfdfd;
}

.google-ads02 {
    position: fixed;
    /* top: 70px; */
    width: 300px; /*必须指定宽度，否则广告获取不到宽度就会报错*/
    padding: 5px 0px 0px;
    border-radius: 5px;
    background-color: #fdfdfd;
}

/* 粘性定位 */
.sticky {
    position: sticky;/* 粘性定位 */
    top: 80px;
}

@media screen and (max-width: 1100px) {
    /* header */
    header {
        padding: 0.4rem 1rem;
        display: grid;
        grid-template-areas: "left center right";
        grid-template-columns: 1fr auto 1fr; 
        align-items: center;
    }
    
    .logo {
        grid-area: center;
        justify-self: center;
    }

    .menu-toggle {
        display: block;
        padding-top: 5px;
        grid-area: right;
        justify-self: right;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 0.8rem;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
    }

    .menu.show {
        padding: 10px;
        display: flex;
        border-top: 1px solid #cbcfd1;
        border-bottom: 1px solid #cbcfd1;
        box-shadow: 0 2px 16px rgb(54 56 79 / 6%);
        justify-content: space-around;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }  

    .menu li a {
        margin: 5px;
        padding: 5px 5px;
        background: #f0f5fd;
        border-radius: 4px;
        border: 1px solid #d7d7d7;
        width: 100px;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* toggle */
    .gray-toggle {
        display: none;
    }

    /* content */
    .content {
        display: block;
    }

    .content main {
        width: 100%;
    }
    
    .content aside {
        width: 100%;
        display: none;
    }

    .content .left {
        display: none;
    }

    .content .main{
        padding: 0px;
    }
    
    .content .index_main {
        width: 100%;
    }

    /* article */
    .article-left {
        width: 100%;
    }
    
    .article-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* article */
    article h1 {
        font-size: 1.4rem;
    }

    .newdigg {
        display: grid;
        justify-content: center;
    }

    /* diggbox */
    .diggbox {
        margin: 3px 0;
    }

    /* google-ads */
    .google-ads01 {
        border-radius: 5px;
        padding: 0px;
        background-color: #ffffff;
    }

    .google-ads02 {
        position: relative;
        width: 100%;
        padding: 0px 10px;
        border-radius: 5px;
        background-color: #fdfdfd;
    }

    /* toolbar */
    .toolbar {
        right: 5px;
        bottom: 10px;
    }

    /*-- jBox --*/
    .jBox {
        border: 0px solid #B1C8D7;
    }
    
    .jBoxHead {
        border-top: 1px dashed #d4d4d4;
        border-bottom: 1px dashed #d4d4d4;
        background-color: #fdfdfd;
    }
}

@media screen and (min-width: 1600px) {
    .content main {
        width: 1000px;
    }

    .content .index_main {
        width: 1200px;
    }
}