body{ color: #000; } a{ color: #000; } a:hover{ color: #680034; } .header-top>.wrap { position: relative; } .header-img{ position: relative; } .header-right { position: absolute; right: 20px; } .header-right-search { width: 280px; top: 50%; right: 30px; transform: translateY(-50%); } .header-right-search i{ display: inline-block; height: 24px; width: 45px; background: url(../images/xxgc/icon-search.png) no-repeat center; background-size: contain; position: absolute; left: 0; top: 50%; transform: translateY(-50%); cursor: pointer; } .header-right-search input { box-sizing: border-box; border: 2px solid #b4bfd2; outline: none; height: 40px; border-radius: 40px; width: 100%; padding-left: 45px; } /* 导航 */ .header-nav{ background-color: transparent; border-top: 1px solid #eeeeee; box-shadow: 0 3px 3px #c0c0c0; position: relative; z-index: 4; } .header-nav ul{ height: 50px; line-height: 50px; background-color: transparent; } .header-nav ul li{ /* letter-spacing: .1em; */ } .nav-secondLevel{ top: 50px; } .header-nav .nav-secondLevel li a{ border-color: #b5b5b5; background-color: #fff; color: #000; font-weight: normal; } .header-nav li:hover>a{ background-color: #680034 ; color: #ffff00; } .nav-secondLevel .nav-threeLevel a{ background-color: #004c98; } .header-nav .nav-threeLevel li a:hover { background-color: #a50454; } .header-nav li a{ position: relative; height: 50px; line-height: 50px; } .header-nav>ul>li>a{ font-weight: normal; color: #000; } .header-nav>ul>li>a::after { content: ""; width: 1px; height: 50%; background-color: #eee; position: absolute; left: 0; top: 25%; } .header-nav>ul>li:first-child>a:after { display: none; } /* 主体 */ .content{ position: relative; } .content-row{ display: flex; justify-content: space-between; } .content-item{ width: 48%; box-sizing: border-box; margin-top: 35px; background-color: #fbfbfb; } .content-item h2{ font-size: 18px; background-color: #f0f0f0; height: 36px; line-height: 36px; position: relative; font-weight: normal; } .content-item h2 i { color: #680034; font-style: normal; padding-left: 15px; background: url(../images/wsjk/title-icon.png) no-repeat left center; } .content-item h2 span{ display: inline-block; padding: 0 10px; color: #fff; background: url(../images/wsjk/title-bg.png) no-repeat left top; background-size: cover; width: 100%; height: 100%; cursor: pointer; } .content-item h2 a{ font-size: 14px; position: absolute; top: 50%; right: 14px; transform: translateY(-50%); } .content-item h2 a:hover{ color: #680034; } .content-item-swiper .swiper-container { width: 55%; float: left; margin: 5px 0; padding: 0 5px; } .content-item-swiper ul { margin-left: 56%; margin-top: 5px; } .content-wrap ul{ padding: 15px 0; } .content-wrap ul li{ height: 44px; line-height: 44px; margin: 0 10px; /* background: url(../images/wsjk/icon-list.png) no-repeat left center; background-size: 3px; */ } .content-wrap ul li a{ display: block; width: 100%; height: 100%; border-bottom: 1px solid #ededed; } .content-wrap li p{ width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap .list-time { float: right; } .content-wrap a:hover .list-time { color: #ff1111; } /* banner */ .banner{ position: relative; } /* banner轮播 */ .banner-swiper{ width: 100%; margin: 0 auto; z-index: 3; } .banner-swiper>.wrap { position: absolute; left: 0; right: 0; top: 0; bottom: 0; } .banner .swiper-button-next, .banner .swiper-button-prev { opacity: 1; transform: translateY(-50%); --swiper-navigation-color: rgba(122, 124, 158, .7); background-color: rgba(255, 255, 255, .7); box-sizing: content-box; width: 45px; height: 45px; border-radius: 50%; } .banner .swiper-button-next:hover, .banner .swiper-button-prev:hover{ background-color: rgba(255, 255, 255, 1); --swiper-navigation-color: rgba(122, 124, 158, 1); } .swiper-button-prev:after, .swiper-button-next:after { font-size: 22px; } .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, .content-item-swiper2 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; } .banner-middle img { display: block; width: 100%; margin-top: 35px; } /* 轮播 */ .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; margin: 0 2px !important; } .content-item-swiper .swiper-pagination-bullet-active { color:#fff; background: #faa209; } .content-item-swiper .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; left: -8px; } .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: rgba(0,0,0,0.5); color: #fff; padding: 0 31% 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* */ ul.special-list { padding: 0; } ul.special-list li { height: auto; line-height: normal; background: #f7f7f7; border: 1px solid #ccc; margin: 0 0 10px 0; } ul.special-list li:hover { border-color: #680034; box-shadow: 0 0 5px #680034; } ul.special-list a { border: 0; } ul.special-list dl { overflow: hidden; } ul.special-list dt { width: 76px; float: left; } ul.special-list dt img { display: block; width: 100%; } ul.special-list dd { margin-left: 88px; color: #680034; } ul.special-list .name { font-size: 18px; margin: 9px 0 4px 88px; } /* */ ul.other-list li { height: auto; line-height: normal; } ul.other-list li a { padding: 20px 0; } .other-list dl { overflow: hidden; } .other-list dt { width: 152px; float: left; } .other-list dt img { display: block; width: 100%; } .other-list dd { margin-left: 168px; color: #787878; text-indent: 2em; line-height: 22px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .other-list .title { color: #000; font-size: 16px; font-weight: bold; text-indent: 0; -webkit-line-clamp: 1; margin-top: 10px; margin-bottom: 5px; } ul.other-list li a:hover .title { color: #680034; text-decoration: underline; } /* 列表页 */ .content-part{ overflow: hidden; display: block; } .content-left{ background-color: #f0f0f0; width: 220px; float: left; margin: 0; } .content-left h2{ background: #680034; background-size: contain; height: 70px; line-height: 70px; font-size: 18px; text-shadow: 2px 2px 3px #1b1462; } .content-right{ margin-left: 270px; width: auto; } .content-left-list{ padding: 25px 15px; } .content-left-list li a{ text-align: center; border-bottom: 0; } .content-left-list .content-left-current a, .content-left-list li a:hover { background-color: #680034; color: #ffff00; } .crumbs{ background: #680034; background-size: contain; line-height: 50px; overflow: hidden; color: #fff; font-size: 16px; text-shadow: 2px 2px 3px #1b1462; } .crumbs p { float: left; font-weight: bold; font-size: 16px; } .crumbs a{ color: #fff; } .crumbs-right { float: right; } .list-wrap .list-time{ color: #666; } .column-pic{ margin-bottom: 35px; } .column-pic, .column-pic img, .content-wrap-img, .content-wrap-img img { width: 100%; } /* 横向图文列表 */ .content-crosswiseImg-list{ flex-wrap: wrap; } .content-crosswiseImg-list li{ width: 100% !important; border-bottom: 1px solid #ccc; padding-bottom: 25px; margin-bottom: 25px !important; } .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; padding: 0; border: 0; } .content-crosswiseImg-list dl{ margin-left: 25%; } .content-crosswiseImg-list dt{ font-size: 16px; font-weight: bold; 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: #333; margin: 10px 0 12px; line-height: 22px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: 92%; } .content-crosswiseImg-list .content-crosswiseImg-time{ color: #666; margin: 0; } .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; } /* 目录页 */ .catalog-title{ border-color: #ff0000; } /* 底部 */ .footer{ margin-top: 35px; padding: 20px 0 20px; background-color: #680034; overflow: hidden; } .footer-mesg{ background-color: #680034; } .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%; } .footer a:hover { color: #bbb; } .mobile-nav-icon{ right: 20px; } .mobile-nav-icon span{ background-color: #C90303; } .mobile-header-nav .nav-threeLevel li a{ background-color: #f55555; } /* 响应式 */ @media screen and (max-width: 1024px) { } @media screen and (max-width: 980px) { .header-top>.wrap { width: 100%; } .header-right-search{ right: 80px; } .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; } .banner-swiper{ width: 100%; } } @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-left{ width: 100%; margin-bottom: 20px; } .content-right{ width: 100%; margin-left: 0; } } @media screen and (max-width: 640px) { .header{ box-shadow: 0 1px 3px #ddd; } .mobile-nav-icon { right: 18px; } .header-img{ width: 100%; height: auto; } .header-img img{ height: 60px; width: auto; box-sizing: content-box; } .header-right{ display: none; } .column-pic{ margin-bottom: 15px; } .content-img-list-imgWrap{ width: 100% !important; } .content-crosswiseImg-list dl{ margin-left: 0; text-align: center; } .footer-QRcode { margin-left: 0; text-align: center; float: none; } }