/*
Theme Name: QQ空间日志说说网站模板
Theme URI: http://1201.fg27.com
Author: Reasonix
Description: QQ空间日志说说新闻资讯门户类网站模板（参考：QQ说说类网站）
Version: 1.0.0
*/
/* ===== 基础 ===== */
*{margin:0;padding:0;box-sizing:border-box}
body{font:14px/1.6 "Microsoft YaHei","Hiragino Sans GB",Arial,sans-serif;color:#333;background:#F3F3F3}
ul,ol{list-style:none}
a{text-decoration:none;color:#333;transition:all .3s}
a:hover{color:#FF4939}
img{max-width:100%;height:auto;border:0}
h1,h2,h3,h4,h5,h6,p{margin:0}
.clearfix:before,.clearfix:after{content:"";display:table}
.clearfix:after{clear:both}
.clearfix{zoom:1}
.f-fl{float:left}
.f-fr{float:right}
.g-box-1200{width:1200px;margin:0 auto}

/* ===== 头部 ===== */
.g-header{height:100px;padding:15px 0}
.u-logo{display:block;float:left}
.u-logo img{max-height:70px}
.g-search{float:right;margin-top:20px;width:420px;height:40px;border:2px solid #00aeae;border-radius:20px;overflow:hidden}
.g-search-txt{width:340px;height:36px;border:0;padding:0 15px;font-size:14px;outline:none}
.g-search-btn{width:76px;height:36px;border:0;background:#00aeae;color:#fff;font-size:14px;cursor:pointer}
.g-search-btn:hover{background:#01908f}
.m-menu{display:none;float:right;margin-top:22px;font-size:26px;color:#00aeae;cursor:pointer}
/* 导航 */
.g-nav{background:#00aeae}
.g-nav ul{height:45px}
.g-nav ul li{float:left;position:relative}
.g-nav ul li a{display:block;line-height:45px;padding:0 22px;color:#fff;font-size:15px}
.g-nav ul li a:hover,.g-nav ul li a.m-hover{background:rgba(0,0,0,.15)}

/* ===== 首页 ===== */
.m-margin15{margin-top:15px}
.g-banner{width:800px;height:400px;position:relative;overflow:hidden}
.g-banner .swiper-container{width:100%;height:100%}
.g-banner .swiper-slide{position:relative}
.g-banner .swiper-slide img{width:100%;height:400px;object-fit:cover}
.g-banner .g-banner-txt{position:absolute;left:20px;bottom:20px;right:20px;background:rgba(0,0,0,.55);padding:12px 18px;border-radius:4px;z-index:5}
.g-banner .g-banner-txt h4{color:#fff;font-size:18px;margin-bottom:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.g-banner .g-banner-txt p{color:#fff;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.g-banner .swiper-pagination-bullet{background:#fff;opacity:.7}
.g-banner .swiper-pagination-bullet-active{background:#FF4939}
.g-banner .swiper-button-prev,.g-banner .swiper-button-next{color:#fff}
/* 热门 */
.g-hotpost{width:370px;background:#fff;padding:15px;border:1px solid #eee}
.g-hotpost .u-first-title{display:block;border-bottom:2px solid #eee;padding-bottom:12px;margin-bottom:12px}
.g-hotpost .u-first-title h1{font-size:18px;color:#333;line-height:1.4;margin-bottom:8px}
.g-hotpost .u-first-title span{font-size:13px;color:#888;display:block;overflow:hidden;max-height:40px;line-height:1.6}
.g-hotpost ul li{overflow:hidden;line-height:36px;border-bottom:1px dashed #f0f0f0}
.g-hotpost ul li i{float:left;width:6px;height:6px;background:#FF4939;border-radius:50%;margin-top:15px;margin-right:10px}
.g-hotpost ul li a{float:left;font-size:14px;color:#555;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:75%}
.g-hotpost ul li a:hover{color:#FF4939}
.g-hotpost ul li span{float:right;font-size:12px;color:#aaa}

/* ===== 标题 ===== */
.g-title-box{margin:20px 0 15px;border-bottom:2px solid #eee;overflow:hidden}
.g-title-left strong{display:inline-block;height:40px;line-height:40px;padding:0 20px;background:#FF4939;color:#fff;font-size:17px;font-weight:normal}
.g-title-left .u-more{float:right}
.g-title-left .u-more a{font-size:13px;color:#999;line-height:40px}
.g-title-left .u-more a:hover{color:#FF4939}

/* ===== 图片网格 ===== */
.g-img-list{overflow:hidden;background:#fff;padding:10px}
.g-img-list li{float:left;width:18.8%;margin:0.6%;overflow:hidden;border-radius:4px;background:#fafafa}
.g-img-list li a{display:block}
.g-img-list li img{width:100%;height:130px;object-fit:cover;transition:all .5s}
.g-img-list li:hover img{transform:scale(1.08)}
.g-img-list li p{font-size:13px;color:#555;line-height:1.4;height:36px;overflow:hidden;padding:6px 8px}
.g-img-list li:hover p{color:#FF4939}

/* ===== 分类区块 ===== */
.g-cont-list{background:#fff;padding:10px 15px 15px;margin-bottom:15px}
.u-cont-top{overflow:hidden;margin-bottom:10px;position:relative}
.u-cont-img{float:left;width:220px;height:140px;overflow:hidden;margin-right:15px}
.u-cont-img img{width:100%;height:140px;object-fit:cover}
.u-cont-name{font-size:17px;color:#333;line-height:1.4;margin-bottom:8px;display:block}
.u-cont-name:hover{color:#FF4939}
.u-cont-top p{font-size:13px;color:#888;line-height:1.6;margin-bottom:8px;max-height:40px;overflow:hidden}
.u-cont-top em{font-style:normal;font-size:12px;color:#aaa}
.g-cont-list ul li{overflow:hidden}
.g-cont-list ul li a{display:block;line-height:38px;padding-left:14px;background:url("data:image/gif;base64,R0lGODlhCgAKAIABAAAAAP///yH5BAEAAAEALAAAAAAKAAoAAAIEhI8pFwA7") no-repeat left center;font-size:14px;color:#555;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.g-cont-list ul li a:hover{color:#FF4939}

/* ===== 列表页 ===== */
.g-list-page{background:#fff;padding:15px;margin-top:15px}
.list-wrap{padding:10px 0}
.list-item{overflow:hidden;padding:15px 0;border-bottom:1px dashed #e5e5e5}
.list-item:last-child{border-bottom:none}
.list-pic{float:left;width:220px;height:140px;overflow:hidden;margin-right:20px}
.list-pic img{width:100%;height:100%;object-fit:cover;transition:all .5s}
.list-item:hover .list-pic img{transform:scale(1.08)}
.list-cont{overflow:hidden}
.list-cont h2{font-size:18px;line-height:1.4;margin-bottom:8px}
.list-cont h2 a:hover{color:#FF4939}
.list-cont p{font-size:13px;color:#888;line-height:1.6;max-height:42px;overflow:hidden;margin-bottom:8px}
.list-meta{font-size:12px;color:#999}
.list-meta span{margin-right:15px}
.page{text-align:center;padding:25px 0}
.page .page-numbers{display:inline-block;margin:0 3px;padding:7px 14px;background:#f5f5f5;color:#666;border-radius:3px}
.page .page-numbers:hover{background:#FF4939;color:#fff}
.page .page-numbers.current{background:#FF4939;color:#fff}

/* ===== 内容页 ===== */
.g-article{background:#fff;padding:20px;margin-top:15px}
.crumbs{font-size:13px;color:#999;padding-bottom:12px;border-bottom:1px solid #eee;margin-bottom:15px}
.crumbs a{color:#999}
.crumbs a:hover{color:#FF4939}
.article-title{font-size:24px;color:#222;text-align:center;line-height:1.4;margin-bottom:12px}
.article-meta{text-align:center;color:#999;font-size:13px;border-bottom:1px solid #eee;padding-bottom:15px;margin-bottom:20px}
.article-meta span{margin:0 12px}
.article-content{font-size:16px;line-height:1.9;color:#555}
.article-content p{margin:12px 0}
.article-content img{max-width:100%;height:auto;display:block;margin:10px auto}
.article-content .article-featured{text-align:center;margin-bottom:15px}
.article-content h2,.article-content h3,.article-content h4{margin:18px 0 10px;color:#333}
.article-content a{color:#FF4939}
.article-content ul,.article-content ol{padding-left:25px;margin:10px 0}
.article-content ul{list-style:disc}
.article-content ol{list-style:decimal}
.article-content blockquote{border-left:4px solid #FF4939;background:#fdf0f0;padding:10px 18px;margin:15px 0;color:#666}
.article-content table{width:100%;border-collapse:collapse;margin:15px 0}
.article-content table td,.article-content table th{border:1px solid #ddd;padding:8px 10px}
.article-content pre,.article-content code{background:#f5f5f5;padding:12px;border-radius:3px;overflow:auto;font-size:14px}
.article-nav{overflow:hidden;padding:15px 0;border-top:1px solid #eee;margin-top:20px;font-size:14px}
.article-nav p{margin:4px 0}
.article-nav a{color:#333}
.article-nav a:hover{color:#FF4939}
.article-related{margin-top:20px;padding-top:15px;border-top:1px solid #eee}
.article-related ul li{line-height:34px;border-bottom:1px dashed #f0f0f0;overflow:hidden}
.article-related ul li a{color:#555;font-size:14px}
.article-related ul li a:hover{color:#FF4939}
.article-related ul li span{float:right;color:#999;font-size:12px}

/* ===== 底部 ===== */
.g-footer{background:#444;color:#999;padding:25px 0;margin-top:20px}
.g-footer .g-box-1200{text-align:center}
.footer-nav{margin-bottom:12px}
.footer-nav a{color:#ccc;font-size:14px;margin:0 10px}
.footer-nav a:hover{color:#fff}
.footer-copy{font-size:13px}
.footer-copy a{color:#999}
.to-top{position:fixed;right:20px;bottom:50px;width:44px;height:44px;background:#FF4939;color:#fff;text-align:center;line-height:44px;cursor:pointer;z-index:99;border-radius:50%;display:none;font-size:18px}
.to-top:hover{background:#e63f31}

/* ===== 响应式 ===== */
@media (max-width:1200px){
.g-box-1200{width:100%;padding:0 10px;box-sizing:border-box}
.g-banner{width:100%;float:none;height:auto;margin-bottom:15px}
.g-banner .swiper-slide img{height:auto}
.g-hotpost{width:100%;float:none}
.g-img-list li{width:24%}
}
@media (max-width:767px){
body{overflow-x:hidden}
.g-header{height:auto;padding:10px}
.u-logo{float:none;text-align:center}
.u-logo img{max-height:50px}
.g-search{float:none;width:100%;margin:10px 0 0}
.g-search-txt{width:calc(100% - 80px)}
.m-menu{display:block;position:absolute}
.g-nav ul{display:none;height:auto;position:absolute;left:0;right:0;background:#00aeae;z-index:99}
.g-nav ul li{float:none;border-bottom:1px solid rgba(255,255,255,.15)}
.g-nav ul li a{line-height:42px;padding-left:20px}
.g-img-list li{width:48%;margin:1%}
.g-img-list li img{height:110px}
.u-cont-img{width:120px;height:80px}
.u-cont-img img{height:80px}
.list-pic{width:110px;height:80px;margin-right:12px}
.list-cont h2{font-size:15px}
.list-cont p{display:none}
.article-title{font-size:18px}
.article-meta span{margin:0 6px}
.article-content{font-size:15px}
}
