@charset "utf-8";
/*========== reset ==========*/
*, *:before, *:after { box-sizing: border-box; }
html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; }
body {
    font: 400 15px/1.8 "PingFang SC","Lantinghei SC","Microsoft Yahei","Hiragino Sans GB",sans-serif;
    color: #333; background: #f5f7fa; margin: 0; padding: 0;
}
a { color: #333; text-decoration: none; transition: all .3s; }
a:hover { color: #3D6EE3; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: #222; line-height: 1.4; margin: 0; }
i, em { font-style: normal; }
input, textarea, button { outline: none; border: none; }
input:focus, textarea:focus { outline: none; }
.cl:after, .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.fl { float: left; }
.fr { float: right; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.container-w { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.hidden { display: none; }
.mb20 { margin-bottom: 20px; }

/*========== header ==========*/
#header {
    background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08);
    position: relative; z-index: 100;
}
.header {
    display: flex; align-items: center; height: 60px;
    justify-content: space-between; position: relative;
}
.logo { flex-shrink: 0; }
.logo img { height: 36px; display: block; }

/* navigation */
.nav { flex: 1; margin: 0 20px; }
.navbar { display: flex; margin: 0; padding: 0; list-style: none; }
.navbar > li { position: relative; }
.navbar > li > a {
    display: block; padding: 0 16px; line-height: 60px; font-size: 15px; color: #333;
    transition: color .3s;
}
.navbar > li > a:hover, .navbar > li > a.active { color: #3D6EE3; }
.navbar li ul {
    display: none; position: absolute; top: 60px; left: 0; background: #fff;
    min-width: 120px; box-shadow: 0 4px 12px rgba(0,0,0,.1); border-radius: 4px; z-index: 200;
    padding: 8px 0;
}
.navbar li:hover ul { display: block; }
.navbar li ul li a {
    display: block; padding: 8px 20px; font-size: 14px; color: #555; white-space: nowrap;
}
.navbar li ul li a:hover { color: #3D6EE3; background: #f0f4ff; }

/* header icons */
#mnav, #search, .login { cursor: pointer; color: #555; font-size: 20px; margin-left: 12px; }
#mnav { display: none; }
.login a { color: #555; }
.login a:hover { color: #3D6EE3; }

/* search form */
.header .search { display: none; position: absolute; top: 100%; right: 0; background: #fff; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.1); border-radius: 0 0 4px 4px; z-index: 99; }
.header .search form { display: flex; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; }
.header .search input { padding: 8px 12px; font-size: 14px; width: 200px; border: none; }
.header .search button { background: #3D6EE3; color: #fff; padding: 8px 12px; cursor: pointer; font-size: 16px; }

/*========== main layout ==========*/
.main { padding: 20px 0; display: flex; gap: 20px; flex-wrap: wrap; }
.main-left { flex: 1; min-width: 0; }
.mainr { width: 320px; flex-shrink: 0; }
.mainl { flex: 1; min-width: 0; }

/*========== breadcrumb ==========*/
.breadcrumb { background: #fff; padding: 12px 0; margin-bottom: 0; font-size: 13px; color: #888; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #3D6EE3; }
.breadcrumb .icon-right { margin: 0 6px; font-size: 12px; }

/*========== Swiper ==========*/
.index-swiper { margin-bottom: 20px; }
.swiper-container { border-radius: 8px; overflow: hidden; position: relative; }
.swiper-slide { position: relative; }
.swiper-slide img { width: 100%; height: 400px; object-fit: cover; display: block; }
.swiper-slide p {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 18px; margin: 0;
}
.swiper-pagination { position: absolute; bottom: 10px; right: 16px; left: auto; width: auto; }
.swiper-pagination-bullet { background: rgba(255,255,255,.6); opacity: 1; }
.swiper-pagination-bullet-active { background: #fff; }

/*========== article list ==========*/
.art-list { background: transparent; }
.art-list article {
    display: flex; background: #fff; border-radius: 8px; margin-bottom: 16px;
    padding: 20px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: box-shadow .3s;
}
.art-list article:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.art-list article .box { flex: 1; padding-right: 20px; display: flex; flex-direction: column; justify-content: center; }
.art-list article .box h2 { font-size: 20px; margin-bottom: 10px; }
.art-list article .box h2 a { color: #222; }
.art-list article .box h2 a:hover { color: #3D6EE3; }
.art-list article .box p {
    font-size: 14px; color: #888; line-height: 1.7; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-list article .info { font-size: 13px; color: #aaa; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.art-list article .info .s { display: flex; align-items: center; gap: 3px; }
.art-list article .info .category {
    background: #eef3ff; color: #3D6EE3; padding: 2px 10px; border-radius: 4px; font-size: 12px;
}
.art-list article .info .category:hover { background: #3D6EE3; color: #fff; }
.art-list article .info .txt { font-size: 13px; color: #aaa; }
.art-list article .img-box-img { flex-basis: 140px; flex-shrink: 0; }
.art-list article .img-box {
    display: block; border-radius: 6px; overflow: hidden;
    aspect-ratio: 3/4; background: #f0f0f0;
}
.art-list article .img-box img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s;
}
.art-list article:hover .img-box img { transform: scale(1.08); }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }

/*========== category sections ==========*/
.cat-sections { margin-bottom: 20px; }

/* 首页双栏布局 */
.home-wrap { display: flex; gap: 20px; align-items: flex-start; }
.home-left { flex: 1; min-width: 0; }
.home-right { width: 360px; flex-shrink: 0; }
.home-articles { margin-bottom: 16px; }
.home-sidebar { }
.home-right .section-bar { margin-bottom: 16px; }

@media screen and (max-width: 1190px) {
    .home-wrap { flex-direction: column; }
    .home-right { width: 100%; }
}
.cat-section { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.section-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-left: 12px; border-left: 3px solid #3D6EE3; }
.section-bar h3 { font-size: 18px; color: #222; margin: 0; }
.section-bar .more { font-size: 13px; color: #999; display: flex; align-items: center; gap: 2px; }
.section-bar .more:hover { color: #3D6EE3; }
.section-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.section-item { text-align: center; }
.section-item .img-box {
    display: block; border-radius: 6px; overflow: hidden; margin-bottom: 8px;
    aspect-ratio: 3/4; background: #f0f0f0; position: relative;
    max-height: 260px;
}
.section-item .img-box img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s;
}
.section-item:hover .img-box img { transform: scale(1.08); }
.section-item .tit {
    font-size: 14px; color: #333; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    word-break: break-word; line-height: 1.4; max-height: 2.8em;
}
.section-item:hover .tit { color: #3D6EE3; }
.mt20 { margin-top: 20px; }

@media screen and (max-width: 1190px) {
    .section-list { grid-template-columns: repeat(4, 1fr); }
    .section-item .img-box { max-height: 220px; }
}
@media screen and (max-width: 992px) {
    .section-list { grid-template-columns: repeat(3, 1fr); }
    .section-item .img-box { max-height: 200px; }
    .art-list article .img-box-img { flex-basis: 100px; }
    .art-list article .box { padding-right: 12px; }
    .art-list article .box h2 { font-size: 17px; }
}
@media screen and (max-width: 768px) {
    .section-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cat-section { padding: 16px; }
    .section-item .img-box { max-height: 180px; }
}
@media screen and (max-width: 640px) {
    .section-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .section-item .img-box { max-height: 220px; }
    .cat-section { padding: 14px; }
    .main { padding: 8px; gap: 8px; }
    .container { padding: 0 8px; }
}
@media screen and (max-width: 480px) {
    .swiper-slide img { height: 160px; }
    .header { padding: 0 8px; }
    .art-list article { padding: 12px; flex-direction: column-reverse; }
    .art-list article .img-box-img { flex-basis: auto; margin-bottom: 10px; width: 80px; }
    .art-list article .box { padding-right: 0; }
    .art-list article .box h2 { font-size: 15px; }
    .art-list article .box p { -webkit-line-clamp: 1; }
    .art-list article .info { font-size: 12px; gap: 8px; flex-wrap: wrap; }
    .section-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cat-section { padding: 12px; }
    .section-item .img-box { max-height: 180px; }
    .section-item .tit { font-size: 13px; }
    .related ul li { width: calc(50% - 6px); }
    .related ul li p { font-size: 13px; }
    .pagebar span, .pagebar a { padding: 6px 12px; font-size: 13px; }
    .art-post { padding: 12px; }
    .art-post .title h1 { font-size: 18px; }
    .home-right { padding: 0; }
}

/*========== pagebar ==========*/
.pagebar {
    text-align: center; padding: 30px 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.pagebar span, .pagebar a {
    display: inline-block; padding: 8px 16px; background: #fff; border-radius: 4px;
    font-size: 14px; color: #555; box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: all .3s;
}
.pagebar span { background: #3D6EE3; color: #fff; }
.pagebar a:hover { background: #3D6EE3; color: #fff; }
.pagebar .next { padding: 8px 14px; }

/*========== article page ==========*/
.art-post {
    background: #fff; border-radius: 8px; padding: 30px; margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.art-post .title { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.art-post .title h1 { font-size: 24px; line-height: 1.4; margin-bottom: 12px; }
.art-post .title .info {
    font-size: 13px; color: #999; display: flex; flex-wrap: wrap; gap: 16px;
}
.art-post .title .info a { color: #999; }
.art-post .title .info a:hover { color: #3D6EE3; }
.art-content { font-size: 15px; line-height: 1.9; color: #444; }
.art-content p { margin-bottom: 1em; }
.art-content img { max-width: 100%; border-radius: 4px; margin: 10px 0; }
.art-content a { color: #3D6EE3; }
.art-content a:hover { text-decoration: underline; }
.art-content blockquote {
    border-left: 4px solid #3D6EE3; background: #f5f8ff; padding: 12px 16px; margin: 16px 0;
    color: #666; border-radius: 0 4px 4px 0;
}

.single-post .entry { min-height: 200px; }

.tag { display: block; margin: 20px 0; font-size: 14px; }
.tag a {
    display: inline-block; padding: 4px 14px; background: #f0f4ff; color: #3D6EE3;
    border-radius: 4px; margin: 0 4px 4px 0; font-size: 13px;
}
.tag a:hover { background: #3D6EE3; color: #fff; }

.PrevNext { margin: 20px 0; padding: 16px 0; border-top: 1px solid #f0f0f0; font-size: 14px; }
.PrevNext .prev, .PrevNext .next { color: #999; font-size: 13px; }

/* related articles */
.related { margin-bottom: 20px; }
.related .bar {
    font-size: 18px; margin-bottom: 16px; padding-left: 12px;
    border-left: 3px solid #3D6EE3;
}
.related ul { display: flex; gap: 12px; flex-wrap: wrap; }
.related ul li { width: calc(25% - 9px); }
.related ul li .img-box {
    display: block; border-radius: 4px; overflow: hidden; margin-bottom: 8px;
    aspect-ratio: 3/4; background: #f0f0f0;
}
.related ul li .img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.related ul li:hover .img-box img { transform: scale(1.08); }
.related ul li p { font-size: 14px; color: #333; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related ul li:hover p { color: #3D6EE3; }

/*========== sidebar ==========*/
.mainr .widget {
    background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.mainr .widget .bar {
    font-size: 16px; margin-bottom: 14px; padding-left: 10px;
    border-left: 3px solid #3D6EE3;
}
.mainr .widget ul li { padding: 6px 0; }
.mainr .widget ul li a { font-size: 14px; color: #555; }
.mainr .widget ul li a:hover { color: #3D6EE3; }

/* hot articles + new articles sidebar */
.mainr .hot-post ul li, .mainr .aside_new ul li { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.mainr .hot-post ul li:last-child, .mainr .aside_new ul li:last-child { border-bottom: none; }
.mainr .hot-post ul li a, .mainr .aside_new ul li a { display: flex; gap: 12px; align-items: flex-start; }
.mainr .hot-post ul li .img-box, .mainr .aside_new ul li .img-box {
    width: 70px; border-radius: 4px; overflow: hidden; flex-shrink: 0;
    aspect-ratio: 3/4; background: #f0f0f0;
}
.mainr .hot-post ul li .img-box img, .mainr .aside_new ul li .img-box img { width: 100%; height: 100%; object-fit: cover; }
.mainr .hot-post ul li b, .mainr .aside_new ul li b { font-weight: 400; font-size: 14px; color: #333; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mainr .hot-post ul li b:hover, .mainr .aside_new ul li b:hover { color: #3D6EE3; }
.mainr .hot-post ul li .op, .mainr .aside_new ul li .op { font-size: 12px; color: #bbb; display: block; margin-top: 4px; }

/* tags */
.widget_tags ul { display: flex; flex-wrap: wrap; gap: 6px; }
.widget_tags ul li { padding: 0; }
.widget_tags ul li a {
    display: block; padding: 4px 12px; background: #f0f4ff; color: #3D6EE3;
    border-radius: 4px; font-size: 13px;
}
.widget_tags ul li a:hover { background: #3D6EE3; color: #fff; }

/* about / author widget */
.widget_author .title {
    padding: 20px; text-align: center; border-radius: 6px 6px 0 0;
    background: url('../image/pattern.png') #e1edff;
}
.widget_author .title img { width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; }
.widget_author .title .info { padding: 8px 0 0; }
.widget_author .title .info h5 { font-size: 16px; }
.widget_author .title .info p { font-size: 13px; color: #888; margin: 4px 0 0; }

/* calendar */
.widget_calendar table { width: 100%; font-size: 13px; }
.widget_calendar caption { padding: 6px 0; font-weight: 600; }
.widget_calendar th, .widget_calendar td { text-align: center; padding: 4px; }
.widget_calendar td a { color: #3D6EE3; font-weight: 600; }

/*========== link ==========*/
.link-to { margin-bottom: 20px; }
.link-to .wrap { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.link-to .bar { font-size: 15px; margin-bottom: 10px; }
.link-to .link-ul { display: flex; flex-wrap: wrap; gap: 8px; }
.link-to .link-ul li a { font-size: 13px; color: #888; padding: 2px 8px; }
.link-to .link-ul li a:hover { color: #3D6EE3; }

/*========== footer ==========*/
#footer {
    background: #1a1a2e; color: #aaa; padding: 40px 0 20px; margin-top: 40px;
}
.footer { text-align: center; }
.flogo { margin-bottom: 16px; }
.flogo img { height: 32px; }
.fnav { margin-bottom: 16px; }
.fnav a { color: #aaa; margin: 0 12px; font-size: 14px; }
.fnav a:hover { color: #fff; }
.copy { display: block; font-size: 13px; color: #777; }
.copy a { color: #888; }
.copy a:hover { color: #3D6EE3; }

/*========== goto top ==========*/
#gotop { position: fixed; bottom: 50px; right: 20px; z-index: 99; }
#goTopBtn a {
    display: block; width: 44px; height: 44px; background: #3D6EE3; color: #fff;
    text-align: center; line-height: 44px; font-size: 22px; border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: background .3s;
}
#goTopBtn a:hover { background: #2a5bc4; }

/*========== comments ==========*/
.commentpost { margin-bottom: 20px; }
.commentpost h4 {
    font-size: 18px; margin-bottom: 16px; padding: 0 0 12px;
    border-bottom: 1px solid #f0f0f0;
}
.commentpost .form-group { margin-bottom: 12px; }
.commentpost .text {
    width: 100%; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 4px;
    font-size: 14px; transition: border .3s;
}
.commentpost .text:focus { border-color: #3D6EE3; }
.commentpost textarea { height: 100px; resize: vertical; }
.commentpost .button {
    background: #3D6EE3; color: #fff; padding: 10px 30px; border-radius: 4px;
    font-size: 14px; cursor: pointer; margin-top: 10px;
}
.commentpost .button:hover { background: #2a5bc4; }
.commentpost .comt-box { display: flex; gap: 12px; flex-wrap: wrap; }
.commentpost .comt-box .form-group { flex: 1; min-width: 200px; }
.commentpost .psumbit { margin-top: 10px; }

.comment-item {
    display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f5f5f5;
}
.comment-item .comment-avatar img { width: 44px; height: 44px; border-radius: 50%; }
.comment-item .comment-body { flex: 1; }
.comment-item .comment-author { margin-bottom: 6px; }
.comment-item .comment-author strong { font-size: 14px; color: #333; }
.comment-item .comment-author span { color: #999; font-size: 13px; margin: 0 4px; }
.comment-item .comment-content { font-size: 14px; color: #555; line-height: 1.7; }
.comment-item .comment-meta { margin-top: 8px; font-size: 12px; color: #bbb; }
.comment-item .comment-meta a { color: #bbb; margin-left: 10px; }
.comment-item .comment-meta a:hover { color: #3D6EE3; }
.comment-item blockquote {
    background: #f9f9f9; padding: 8px 12px; font-size: 13px; color: #999;
    border-radius: 4px; margin-bottom: 8px; border-left: 3px solid #ddd;
}

/*========== responsive ==========*/
@media screen and (max-width: 1190px) {
    .main { flex-direction: column; padding: 12px; }
    .mainr { width: 100%; }
    .art-list article .img-box-img { flex-basis: 100px; }
    .art-list article .box { padding-right: 12px; }
    .related ul li { width: calc(33.33% - 8px); }
}

@media screen and (max-width: 768px) {
    .header { padding: 0 12px; }
    .nav { margin: 0; }
    #mnav { display: block; }
    .navbar { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 99; }
    .navbar > li > a { line-height: 44px; padding: 0 16px; border-bottom: 1px solid #f5f5f5; }
    .navbar li ul { position: static; box-shadow: none; padding: 0; display: none; }
    .navbar li:hover ul { display: none; }
    .navbar li.open ul { display: block; }
    .navbar li ul li a { padding-left: 30px; }
    .art-list article { flex-direction: column-reverse; padding: 16px; }
    .art-list article .img-box-img { flex-basis: auto; margin-bottom: 12px; width: 100px; }
    .art-list article .box { padding-right: 0; }
    .art-list article .box h2 { font-size: 16px; }
    .art-list article .box p { -webkit-line-clamp: 1; }
    .art-post { padding: 16px; }
    .art-post .title h1 { font-size: 20px; }
    .related ul li { width: calc(33.33% - 8px); }
    .related ul li p { font-size: 13px; }
    .swiper-slide img { height: 200px; }
    .index-swiper { margin: 0 -12px 16px; border-radius: 0; }
    .container { padding: 0 12px; }
    .main { padding: 12px; gap: 12px; }
    .section-bar { margin-bottom: 12px; }
    .cat-section { margin-bottom: 12px; }
}
