body{ color: #000; background: url(../images/fzzxgz/body-bg.png) repeat-x; } a{ color: #000; } a:hover{ color: #ff1111; } .header{ background: url(../images/fzzxgz/head_bg.png) center; } .header .wrap{ position: relative; } .header-right{ position: absolute; top: 50%; right: 20px; color: #fff; width: 230px; } .header-img{ position: relative; } .header-img img{ width: auto; height: 60px; padding: 40px 0; box-sizing: content-box; } /* 导航 */ .header-nav{ background-color: #3592e7; position: relative; } .header-nav ul{ height: 54px; line-height: 54px; background-color: transparent; z-index: 2; } .nav-secondLevel{ top: 54px; } .header-nav li:last-child{ background: none; } .header-nav li:hover a { background-color: #72b3ee ; } .header-nav .nav-secondLevel li a{ border-color: transparent; background-color: #72b3ee; } .nav-secondLevel li:hover a { background-color: #3592e7 ; } .header-nav li a{ position: relative; height: 54px; line-height: 54px; } .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; } /* 搜索 */ .header-search{ position: absolute; right: 0px; top: 50%; transform: translateY(-50%); border: 1px solid #999; border-radius: 4px; overflow: hidden; } .header-search input{ box-sizing: border-box; display: block; height: 28px; line-height: 28px; padding: 0 26px 0 10px; width: 150px; outline: none; border: 0; } .header-search button{ position: absolute; right: 0; top: 0; height: 28px; width: 28px; background: url(../images/icon/search2.png) no-repeat center; background-size: 16px; border: none; outline: none; cursor: pointer; } /* 主体 */ .content{ margin-top: 20px; } .content-row{ display: flex; justify-content: space-between; margin-bottom: 20px; } .content-row-firstLine{ padding-top: 20px; padding-left: 20px; background-color: #fff; } .content-col1{ width: 35.8%; } .content-col2{ width: 63.5%; } .content-col .content-item{ width: 100%; } .content-item-swiper.content-item{ padding: 0; } .content-row-firstLine .content-item { padding-top: 0; margin-bottom: 20px; } .content-item { width: 35.8%; box-sizing: border-box; padding: 15px 20px 20px; background-color: #fff; } .content-item-swiper{ width: 60%; } .content-item h2{ font-size: 16px; background-size: contain; font-size: 14px; overflow: hidden; border-bottom: 4px solid #e6e6e6; margin-bottom: 8px; height: 44px; } .content-row-firstLine .content-item h2 { border-bottom-width: 1px; } .content-row-firstLine .content-item h2 span { border-bottom-color: #e1ebf1; } .content-item h2 span{ display: inline-block; color: #2384dc; padding: 10px 14px; padding-left: 0; font-size: 20px; border-bottom: 4px solid #48a1f4; position: absolute; } .content-item h2 a{ font-weight: normal; float: right; margin-top: 10px; color: #04638f; } .content-item h2 a:hover{ color: #FF0000; } .content-item h2 a:hover .triangle{ border-left-color: #FF0000; } .content-wrap ul li{ height: 40px; line-height: 40px; margin: 0 10px; border-bottom: 1px dashed #ccc; } .content-item-swiper ul li{ height: 38px; line-height: 38px; margin-bottom: 0; } .content-wrap li p{ width: calc(100% - 80px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-row-first .content-wrap li{ border: none; height: auto; line-height: 24px; overflow: hidden; margin-top: 10px; } .content-row-first .content-wrap li p{ float: none; margin-left: 65px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: inherit; width: auto; } .content-wrap .list-time { float: right; color: #666; } .content-wrap a:hover .list-time { color: #ff1111; } /* banner轮播 */ .banner{ padding-bottom: 20px; } .banner .swiper-pagination-bullet{ width: 24px; height: 6px; background-color: #eee; opacity: .8; border-radius: 0; } .banner .swiper-pagination-bullet-active { color:#fff; background: #c42828; } .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{ display: none; 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-swiper2 .swiper-slide{ box-sizing: border-box; border: 1px solid #ddd; padding: 3px; margin: 5px 0; } .content-item-swiper2 .swiper-slide img{ width: 100%; } .content-item.content-item-swiper2{ /* border: 1px solid #ccc; */ } /* 轮播 */ .content-item-swiper .swiper-container{ /* float: left; */ width: 100%; } .content-item-swiper ul{ margin-left: 305px; } .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(53, 146, 231, .7); } .content-item-swiper .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; left: -3px; bottom: 42px; } .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; bottom: 0; height: 38px; line-height: 38px; background-color: rgba(0,0,0,.6); color: #fff; padding: 0 10px 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .content-item-swiper2 .swiper-button-next.swiper-button-white, .content-item-swiper2 .swiper-button-prev.swiper-button-white{ --swiper-navigation-color: #B90D0D; } .contact { line-height: 26px; margin-top: 8px; border-top: 1px solid #ccc; padding-top: 6px; text-align: center; } /* 图片栏目 */ .content-item-img { width: 25%; } .content-item-img .content-wrap>a { display: block; position: relative; margin: 15px 0; font-size: 20px; color: #a3194e; text-shadow: 1px 1px #fff; font-weight: bold; } .content-item-img img { width: 100%; } .content-item-img dd { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; text-align: center; } /* 列表页 */ .content-list-wrap, .content-left{ border: 1px solid #3592e7; background-color: #fff; } .content-left-list li a{ text-align: center; } .crumbs{ background-color: #3592e7; color: #fff; line-height: 40px; overflow: hidden; } .crumbs a{ color: #fff; } .crumbs-left{ float: left; font-size: 16px; } .crumbs-right{ float: right; } .content-left h2{ background-color: #3592e7; } /* 横向图文列表 */ .content-crosswiseImg-list{ flex-wrap: wrap; } .content-crosswiseImg-list li{ width: 100% !important; border-bottom: 1px solid #ccc; padding-bottom: 15px; } .content-crosswiseImg-list li a{ display: block; width: 100%; height: 100%; } .content-crosswiseImg-list .content-img-list-imgWrap{ width: 25%; float: left; margin-right: 20px; } .content-crosswiseImg-list dl{ margin-left: 25%; } .content-crosswiseImg-list dt{ font-size: 16px; font-weight: bold; color: #990000; line-height: 28px; padding-top: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: 92%; } .content-crosswiseImg-list dd{ color: #993300; } .content-crosswiseImg-list .content-crosswiseImg-time{ color: #666; margin: 15px 0 22px; } .content-crosswiseImg-list li:hover dt, .content-crosswiseImg-list li:hover dd{ color: #FF0000; } /* 竖向图片 */ .content-verticalImg-list li{ width: 33%; } .content-verticalImg-list li a{ margin: 0 30px; } /* 底部 */ .footer{ margin-top: 20px; } .footer-margin0{ margin-top: 0; } .footer-mesg{ background-color: #72b3ee; } .mobile-header-nav>ul, .mobile-header-nav>ul>li { background-color: #72b3ee; } .mobile-header-nav li a { border-bottom-color: #3592e7; } .mobile-header-nav .nav-secondLevel { background-color: #3592e7; } .mobile-header-nav .nav-threeLevel, .mobile-header-nav .nav-threeLevel li a { background-color: #72b3ee; } /* 响应式 */ @media screen and (max-width: 1024px) { } @media screen and (max-width: 980px) { .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, .zszt-item{ width: 100% !important; } .content-col{ width: 100%; } .content-row-firstLine .content-col2{ padding: 0 8px; } .header-search { display: none; } .content-row-firstLine .content-item { padding-left: 0; padding-right: 0; } .content-row-firstLine { padding-right: 20px; } } @media screen and (max-width: 768px) { .header-right{ right: 66px; } .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; } .zszt-wrap .content-item-swiper .content-wrap{ margin-top: 0; } .content-row-firstLine{ padding-top: 0; } } @media screen and (max-width: 640px) { .mobile-nav-icon { right: 0px; } .header-right{ display: none; } .content-wrap li p{ width: calc(100% - 100px); } .content.content-list-wrap{ margin-top: 80px !important; } .content-part{ padding-top: 10px; } .content-crosswiseImg-list .content-img-list-imgWrap{ width: 100%; margin-right: 0; } .content-crosswiseImg-list dl{ margin-left: 0; text-align: center; } .content-crosswiseImg-list dt{ margin: 0 auto; } .header-img img { padding: 0; height: 40px; margin-top: 17px; } }