body{ color: #000; background-color: #e5eaee; } a{ color: #000; } a:hover{ color: #ff1111; } .header-top{ width: 100%; background-color: #fff; padding: 16px 0; } .header-img{ position: relative; } .header-top .wrap{ position: relative; } .header-img img{ width: auto; } .header-right{ position: absolute; right: 0; top: 50%; transform: translateY(-50%); } .header-search input{ height: 20px; padding: 0 10px; } .header-search-icon{ display: inline-block; width: 40px; height: 24px; background: #0076F9 url(../images/icon/search-white.png) no-repeat center; background-size: 16px; vertical-align: middle; border-radius: 0 3px 3px 0; cursor: pointer; } /* 导航 */ .header-nav{ background-color: #0076F9; } .header-nav ul{ height: 46px; line-height: 46px; background-color: transparent; } .nav-secondLevel{ top: 46px; } .header-nav li:last-child{ background: none; } .header-nav li:hover a { background-color: #0061CC ; } .header-nav .nav-secondLevel li a{ border-color: transparent; background-color: #0076F9; } .nav-secondLevel li:hover a { background-color: #0061CC ; } .header-nav li a{ position: relative; height: 46px; line-height: 46px; } .header-nav>ul>li>a{ font-size: 16px; } .header-nav a i{ width: 0; height: 0; border: 6px solid transparent; border-bottom-color: #fff; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); opacity: 0; } .header-nav li:hover a i{ opacity: 1; } /* 主体 */ .content{ /* margin-top: 20px; */ } .content-row{ display: flex; justify-content: space-between; background-color: #0076F9; padding: 20px 25px; } .content-row.bg{ background-color: #0064d2; } .content-item{ width: 48.5%; box-sizing: border-box; margin-bottom: 20px; } .content-item-swiper{ margin-top: 6px; } .content-item h2{ font-size: 16px; background-size: contain; font-size: 14px; overflow: hidden; border-bottom: 1px solid #fff; } .content-item h2 span{ display: inline-block; color: #fff; padding: 10px 14px 10px 0; font-size: 18px; } .content-item h2 span i, .footer-link span i{ border-left: 10px solid #fff; margin-right: 12px; } .content-item h2 a{ font-weight: normal; float: right; margin-top: 10px; color: #fff; } .content-item h2 a:hover{ color: #ffff00; } .content-wrap ul li{ height: 44px; line-height: 44px; margin: 0 10px; border-bottom: 1px dashed #3b6780; } .content-wrap li a{ color: #fff; } .content-wrap li a:hover{ color: #ffff00; } .content-wrap li p{ width: calc(100% - 85px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap li p span{ margin-right: 2px; } .content-wrap .list-time { float: right; color: #fff; } .content-wrap a:hover .list-time { color: #ffff00; } /* banner轮播 */ .banner{ margin-bottom: 20px; } .banner .swiper-pagination-bullet{ width: 12px; height: 12px; } .banner .swiper-pagination-bullet-active { color:#fff; background: #0092CE; } .banner .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; width: 1200px; margin: 0 auto; right: 20px; } .banner .swiper-slide{ position: relative; } .banner .swiper-slide img{ display: block; width: 100%; } .banner .swiper-slide .swiper-title{ position: absolute; left: 0; bottom: 0; height: 38px; line-height: 38px; background-color: rgba(0,0,0,.6); color: #fff; padding: 0 125px 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 轮播 */ .content-item-swiper .swiper-pagination-bullet{ width: 22px; height: 18px; line-height: 18px; border-radius: 2px; font-size: 12px; text-align: center; background-color: rgba(0, 0, 0, .6); color: #fff; } .content-item-swiper .swiper-pagination-bullet-active { color:#fff; background: rgba(185, 13, 13, .7); } .content-item-swiper .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; left: -3px; bottom: 3px; } .content-item-swiper .swiper-slide{ position: relative; } .content-item-swiper .swiper-slide img{ display: block; width: 100%; } .content-item-swiper .swiper-slide .swiper-title{ position: absolute; left: 0; top: 0; height: 26px; line-height: 26px; background-color: #B90D0D; color: #fff; padding: 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; } /* 列表页 */ .content-list-wrap, .content-left{ /* border: 1px solid #9c0000; */ background-color: #fff; } .crumbs{ background-color: #0076F9; color: #fff; line-height: 40px; overflow: hidden; } .crumbs a{ color: #fff; } .content-left h2{ background-color: #0076F9; } .content-part, .content.wrap.content-list-wrap{ margin-top: 20px; } .list-wrap .list-title span{ margin-right: 3px; } /* 底部 */ .footer{ margin-top: 20px; background-color: #0076F9; padding: 20px 0; } .footer .wrap{ overflow: hidden; } .footer-mesg{ background-color: #0076F9; } .footer-link{ background-color: #0076F9; line-height: 42px; margin-top: 20px; color: #fff; padding: 0 25px; } .footer-link span{ font-size: 18px; font-weight: bold; margin-right: 35px; } .footer-link ul{ display: inline-block; } .footer-link ul li{ display: inline-block; margin-right: 15px; } .footer-link li a{ color: #fff; } .footer-link li a:hover{ color: #ffff00; } .footer-QRcode{ float: left; margin-left: 12%; } .footer-QRcode p{ width: 100px; display: inline-block; margin-right: 5px; } .footer-QRcode p img{ width: 100%; } .mobile-nav-icon span{ background-color: #0076F9; } .mobile-header-nav>ul, .mobile-header-nav li a{ background-color: #0061CC; } .mobile-header-nav li a{ border-color: #0076F9; } .mobile-header-nav .nav-threeLevel li a{ background-color: #0076F9; } /* 响应式 */ @media screen and (max-width: 1200px) { .banner .swiper-container-horizontal>.swiper-pagination-bullets{ width: 100%; left: -20px; } } @media screen and (max-width: 1024px) { } @media screen and (max-width: 980px) { .header-right{ right: 120px; } .header-nav ul{ height: auto; } /* flex布局,item元素补全 */ .header-nav ul::after{ content: ""; width: 50%; } .header-mesg{ position: relative; top: 0; left: 0; transform: translateY(0); overflow: hidden; } .header-mesg p{ float: left; margin-right: 20px; margin-bottom: 8px; } .content-row{ flex-wrap: wrap; } .content-item{ width: 100% !important; } .footer-QRcode{ margin-left: 7%; } } @media screen and (max-width: 768px) { .content-item{ width: 100%; } /* 轮播 */ .content-item-swiper .swiper-container{ width: 100%; float: inherit; } .content-item-swiper ul{ margin-left: 0; } .content-item-swiper .content-wrap{ margin-left: 0; margin-top: 20px; } .footer-QRcode { margin-left: 2%; } } @media screen and (max-width: 640px) { .header{ box-shadow: 0 1px 3px #ddd; } .header-top{ padding: 10px 0; } .header-top .wrap{ width: 98%; } .header-right{ display: none; } .header-img{ width: 100%; height: auto; } .header-img img{ height: 60px; width: auto; } .content-wrap li p{ width: calc(100% - 100px); } .content{ margin-top: 80px !important; } .footer-QRcode{ margin-left: 0; text-align: center; float: none; } .footer-QRcode p{ width: 30%; } .content-part, .content.wrap.content-list-wrap{ margin-top: 90px !important; } }