body{ color: #000; background-color: #DEDCDD; } a{ color: #000; } a:hover{ color: #ff1111; } .header-top{ width: 100%; height: 26px; line-height: 26px; background-color: #F6F6F6; } .header-top .wrap{ position: relative; } .header-img{ position: relative; } .header-img img{ width: auto; margin: 0 auto; } .header-right{ position: absolute; top: 50%; right: 0px; transform: translateY(-50%); padding: 0 15px 0 40px; background-size: 18px; border-radius: 30px; } .header-mesg{ position: absolute; top: 50%; right: 0px; transform: translateY(-50%); text-align: right; line-height: 22px; background-color: #fff; } /* 导航 */ .header-nav{ background-color: #194e83; } .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: #2163a2; } .nav-secondLevel li:hover a { background-color: #009dff !important; } .header-nav .nav-secondLevel li a{ border-color: transparent; } .header-nav .nav-threeLevel li a:hover{ background-color: #0b64d0 !important; } .header-nav li a{ position: relative; height: 46px; line-height: 46px; } .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-row{ background-color: #fff; display: flex; justify-content: space-between; } .content-item{ width: 49%; box-sizing: border-box; margin-bottom: 20px; } .content-item-swiper{ overflow: hidden; } .content-item-img-wrap{ margin-bottom: 40px; } .content-item h2{ font-size: 18px; background-size: contain; overflow: hidden; border-bottom: 2px solid #720808; color: #ff0000; height: 46px; line-height: 46px; padding: 0 10px; } .content-item h2 i{ font-style: normal; font-weight: normal; padding: 0 3px; } .content-item h2 span{ display: inline-block; color: #fff; background-color: #0b64d0; padding: 10px 14px; font-size: 18px; } .content-item h2 a{ font-weight: normal; float: right; font-size: 14px; } .content-item h2 a:hover{ color: #FF0000; } .content-item h2 a:hover .triangle{ border-left-color: #FF0000; } .content-wrap ul li{ height: 44px; line-height: 44px; margin: 0 10px; border-bottom: 1px dashed #ccc; } .content-wrap li p{ width: calc(100% - 80px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap .list-time { float: right; color: #666; } .content-wrap a:hover .list-time { color: #ff1111; } .content-item-swiper .content-wrap{ margin-left: 41%; } .content-item-img{ position: relative; } .content-item-img img{ display: block; width: 100%; } .content-item-img span{ position: absolute; left: 35px; bottom: 0; color: #fff; background-color: rgba(11, 100, 208, .9); display: inline-block; padding: 28px 22px; font-size: 26px; letter-spacing: 4px; } .content-item-img-wrap ul{ display: flex; flex-wrap: wrap; justify-content: space-between; } .content-item-img-wrap ul li{ width: 47.5%; } /* banner轮播 */ .banner{ margin-bottom: 20px; position: relative; } /* 遮罩 */ .swiper-shade{ width: 100%; height: 100%; position: absolute; top: 0; left: -100%; background-color: #efefef; opacity: 0.6; z-index: 2; } .swiper-shade-right{ left: 100%; } .banner .swiper-container{ overflow: inherit; } .banner .swiper-pagination-bullet{ width: 12px; height: 12px; } .banner .swiper-pagination-bullet-active { color:#fff; background: #ff3300; } .banner .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; left: -8px; } .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-container{ width: 40%; float: left; } .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(7, 173, 231, .8); } .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: #0b64d0; 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{ border: 1px solid #194e83; background-color: #fff; } .crumbs{ background-color: #194e83; color: #fff; line-height: 40px; } .crumbs a{ color: #fff; } .content-left h2{ background-color: #194e83; } .banner-list{ margin-bottom: 10px; } .banner-list img{ width: 100%; } .content-left{ background-color: #fff; } .list-wrap .list-time{ color: #666; } .content-part>div{ margin-bottom: 0; } /* 底部 */ .footer{ margin-top: 20px; padding: 20px 0 20px; background-color: #194e83; overflow: hidden; } .footer-mesg{ background-color: #194e83; } .footer-QRcode{ float: left; margin-left: 12%; } .footer-QRcode p{ width: 100px; display: inline-block; margin-right: 5px; vertical-align: middle; } .footer-QRcode p:hover{ transform: scale(2); } .footer-QRcode p img{ width: 100%; } .mobile-nav-icon span{ background-color: #C90303; } .mobile-header-nav>ul{ background-color: #194e83; } .mobile-header-nav>ul>li { background-color: #194e83; } .mobile-header-nav li a { border-color: #1c5996; } .mobile-header-nav .nav-secondLevel{ background-color: #2163a2; } .mobile-header-nav .nav-threeLevel { background-color: #6dbedc; } /* 响应式 */ @media screen and (max-width: 1024px) { .header-img img{ width: 100%; } .footer-link ul li{ margin-right: 15px; } .footer-link ul i{ padding-left: 15px; } } @media screen and (max-width: 980px) { .header-nav{ background-repeat: repeat; background-position: left top; } .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-item{ width: 100% !important; } .content-row{ flex-wrap: wrap; } .content-part .content-left{ margin-bottom: 10px; } .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; } .content-item-img-wrap ul li{ width: 100%; margin: 0; padding: 0 10px; } .footer-QRcode { margin-left: 2%; } } @media screen and (max-width: 640px) { .header{ box-shadow: 0 1px 3px #ddd; } .header-top{ display: none; } .header-img{ width: 100%; height: auto; } .header-img img{ height: 58px; width: auto; } .content-wrap li p{ width: calc(100% - 100px); } .content-item-img span{ font-size: 20px; padding: 20px 18px; } .footer-link ul{ margin-left: 0; } .footer-QRcode { margin-left: 0; text-align: center; float: none; } .footer-QRcode p { width: 30%; } }