body{ color: #000; background-color: #DFEEFF; } a{ color: #000; } a:hover{ color: #ff1111; } .header-top{ background: url(../images/bg/bg-header-ztb.jpg); } .header-img{ position: relative; } .header-img img{ width: auto; margin: 0 auto; } /* 导航 */ .header-nav{ background: url(../images/bg/bg-nav-rsc.jpg) repeat-x center; } .header-nav ul{ height: 41px; line-height: 41px; background-color: transparent; } .nav-secondLevel{ top: 41px; } .header-nav li { background: url(../images/bg/bg-nav-rsc-line.jpg) no-repeat center right; } .header-nav li:last-child{ background: none; } .header-nav li:hover a { background-color: rgba(15,68,157,.4); } .header-nav .nav-secondLevel li a{ border-color: #07ade7; background-color: rgba(15,68,157,.8); } .header-nav .nav-secondLevel li:hover a { background-color: rgba(15,68,157,1); } .header-nav .nav-threeLevel li a:hover{ background-color: #0190d6; } .header-nav li a{ position: relative; } .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: 15px; } .content-row{ display: flex; justify-content: space-between; flex-wrap: wrap; } .content-item{ width: 32.6%; box-sizing: border-box; margin-bottom: 15px; border: 1px solid #A2E0FF; background-color: #F3F3FF; } .content-item-swiper{ width: 100%; background: #F3F3FF url(../images/bg/bg-content-ztb-center.jpg) repeat-x center top; } .content-item h2{ height: 32px; line-height: 32px; background: url(../images/bg/bg-content-ztb2.jpg) no-repeat left center; background-size: cover; color: #fff; font-size: 14px; overflow: hidden; padding: 0 15px 0 54px; } .content-item-swiper h2{ background: url(../images/bg/bg-content-ztb.jpg) no-repeat left center; background-size: contain; padding-left: 40px; } .content-item h2 i{ font-style: normal; font-weight: normal; padding: 0 3px; } .content-item h2 span{ font-weight: normal; } .content-item h2 a{ font-weight: normal; float: right; } .content-item h2 a:hover{ color: #FF0000; } .content-item h2 a:hover .triangle{ border-left-color: #FF0000; } .content-item h2 .triangle{ display: inline-block; width: 0; height: 0; border: 7px solid transparent; border-left-color: #fff; vertical-align: middle; margin: -2px 0 0 2px; } .content-wrap ul li{ height: 36px; line-height: 36px; margin: 0 10px; border-bottom: 1px dashed #ccc; padding-left: 16px; background: url(../images/icon/img1.gif)no-repeat left center; } .content-wrap li p{ width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-item-swiper li p{ width: calc(100% - 110px); } .content-wrap .list-time { float: right; /* color: #999; */ display: none; } .content-item-swiper .list-time { display: block; } .content-wrap a:hover .list-time { color: #ff1111; } .content-tow-lines { flex-grow: 2; } .content-tow-lines ul{ display: flex; justify-content: space-between; flex-wrap: wrap; } .content-tow-lines li{ width: 48%; overflow: hidden; } .content-item-swiper ul{ margin-left: 34%; margin-top: 5px; } /* 轮播 */ .content-item-swiper .swiper-container{ width: 33%; float: left; margin: 5px; } .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; } .swiper-pagination-bullet-active { color:#fff; background: rgba(7, 173, 231, .8); } .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; left: -3px; bottom: 3px; } .swiper-slide{ position: relative; } .swiper-slide img{ display: block; width: 100%; } .swiper-slide .swiper-title{ position: absolute; left: 0; top: 0; height: 26px; line-height: 26px; background-color: #0190d6; 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 #0095E2; background-color: #fff; } .crumbs{ background-color: #0095E2; color: #fff; } .crumbs a{ color: #fff; } /* 底部 */ .footer{ background-color: #0095E2; } .footer-mesg{ background-color: transparent; } .footer-link{ background-color: #C1D6E3; line-height: 36px; } .footer-link ul{ display: inline-block; } .footer-link ul li{ display: inline-block; margin-right: 15px; } .mobile-nav-icon span{ background-color: #193e88; } .mobile-header-nav>ul{ background-color: #236BBF; } .mobile-header-nav>ul>li { background-color: #236BBF; } .mobile-header-nav li a { border-color: #0190d6; } .mobile-header-nav .nav-secondLevel{ background-color: #2a8fb3; } .mobile-header-nav .nav-threeLevel { background-color: #6dbedc; } /* 响应式 */ @media screen and (max-width: 1024px) { .header-img img{ width: 100%; } } @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%; } .content-item{ width: 100% !important; } } @media screen and (max-width: 768px) { .content-item{ width: 100%; } .content-tow-lines li{ width: 100%; } /* 轮播 */ .content-item-swiper .swiper-container{ width: 100%; float: inherit; margin: 5px 0; } .content-item-swiper ul{ margin-left: 0; } .content-item-swiper h2{ background-size: cover; } } @media screen and (max-width: 640px) { .header-top{ background-size: contain; } .header-img{ width: 100%; } .header-img img{ width: auto; margin: 0 ; } .content-wrap li p{ width: calc(100% - 100px); } .header-right{ display: none; } }