body{ color: #000; } a{ color: #000; } a:hover{ color: #007a4c; } .header { background: url(../images/jxjy/header-bg.jpg) center top; } .header .wrap { position: relative; } .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; height: 100px; padding: 12px 0; } .header-right{ position: absolute; top: 50%; right: 0px; transform: translateY(-50%); padding: 0 15px 0 40px; background-size: 18px; border-radius: 30px; } .header-right{ position: absolute; top: 50%; right: 0px; transform: translateY(-50%); text-align: center; line-height: 24px; color: #fff; } .header-img .header-right img { height: 76px; padding: 5px 0 0; } /* 搜索 */ .header-search{ position: absolute; right: 120px; 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; } /* 导航 */ .header-nav{ background: url(../images/jxjy/nav-bg.jpg); } .header-nav ul{ height: 38px; line-height: 38px; background-color: transparent; } .nav-secondLevel{ top: 38px; } .header-nav li:last-child{ background: none; } .header-nav li:hover a { background-color: #007a4c; color: #fff; } .header-nav .nav-secondLevel li:hover a { background: #007a4c !important; color: #fff !important; } .header-nav .nav-secondLevel li a, .header-nav .nav-threeLevel li a{ border-color: transparent; background: url(../images/jxjy/nav-bg.jpg); color: #000; } .header-nav .nav-threeLevel li a:hover{ background-color: #155940 !important; } .header-nav li a{ position: relative; height: 38px; line-height: 38px; color: #000; } .header-nav>ul>li>a{ font-size: 15px; } .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; flex-wrap: wrap; } .content-item{ width: 47.5%; box-sizing: border-box; margin-bottom: 20px; } .content-item h2{ background-size: contain; font-size: 14px; overflow: hidden; border-bottom: 1px solid #aaa; font-weight: normal; line-height: 26px; } .content-item h2 img{ width: 24px; vertical-align: middle; } .content-item h2 span{ display: inline-block; color: #5182bb; padding: 10px 14px; font-size: 18px; vertical-align: middle; } .content-item h2 a, .more{ font-weight: normal; float: right; margin-top: 10px; } .more { color: #333; margin: 0; padding: 10px 0; } .content-item h2 a:hover{ color: #007a4c; } .content-item h2 a:hover .triangle{ border-left-color: #007a4c; } .content-wrap ul { border-bottom: 1px solid #aaa; } .content-wrap ul li{ height: 42px; line-height: 42px; margin: 0 10px; border-bottom: 1px dashed #ccc; } .content-wrap ul li:last-child { border-bottom: 0; } .content-wrap ul li a { color: #333; } .content-wrap ul li a:hover { color: #007a4c; } .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: #999; */ } .content-wrap a:hover .list-time { color: #007a4c; } /* banner轮播 */ .banner{ } .banner .swiper-pagination-bullet{ width: 12px; height: 12px; } .banner .swiper-pagination-bullet-active { color:#fff; background: #007a4c; } .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; display: none; } .pic-wrap { width: 100%; margin: 0 auto; } .pic-wrap a, .pic-wrap img { display: block; width: 100%; } /* 图片列表 */ .content-row-pic { margin-top: 20px; } .content-row-pic h2{ border-bottom: 1px solid #aaa; line-height: 50px; font-size: 18px; font-weight: normal; color: #5182bb; text-align: center; } .content-row-pic h2 img { width: 26px; vertical-align: middle; margin-right: 14px; } .content-row-pic h2 span { vertical-align: middle; } .content-row-pic ul{ display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; justify-content: space-between; } .content-row-pic ul{ padding: 16px 0; } .content-row-pic li{ margin: 0 3px; position: relative; } .content-row-pic li img{ display: block; width: 100%; } .content-item-title{ background-color: rgba(0, 0, 0, .5); text-align: center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding: 0 10px; position: absolute; bottom: 0; left: 0; width: 100%; transition: all .15s; color: #fff; line-height: 32px; } /* 列表页 */ .content-list-wrap{ border: 1px solid #007a4c; } .crumbs{ background-color: #007a4c; color: #fff; line-height: 40px; } .crumbs a{ color: #fff; } .content-left h2{ background-color: #007a4c; } /* 底部 */ .footer{ margin-top: 20px; background-color: #03492e; } .footer .wrap { position: relative; } .footer-mesg{ background: url(../images/jxjy/footer-bg.jpg) no-repeat center top; padding: 30px 0; text-align: left; } .footer-link{ line-height: 36px; border: 2px solid #0b64d0; margin-bottom: 20px; } .footer-link span{ line-height: 38px; height: 38px; color: #fff; background-color: #0b64d0; font-size: 16px; font-weight: bold; padding: 0 18px; float: left; } .footer-link ul{ margin-left: 100px; text-align: center; } .footer-link ul li{ display: inline-block; margin-right: 20px; } .footer-link ul i{ font-style: normal; padding-left: 20px; } /* 底部二维码 */ .footer-QRcode { position: absolute; top: 50%; right: 90px; transform: translateY(-50%); } .footer-QRcode img { width: 50px; } .footer-QRcode-wrap { cursor: pointer; } .QRcode-img { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); border: 1px solid #24bc3c; box-shadow: 0 0 12px #24bc3c; border-radius: 8px; padding: 10px; background-color: #fff; display: none; } .footer-QRcode-wrap:hover .QRcode-img { display: block; } .QRcode-img i { display: inline-block; width: 0; height: 0; border: 14px solid transparent; border-top-color: #fff; position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%); } .QRcode-img img { width: 200px; } .mobile-nav-icon span{ background-color: #fff; } .mobile-header-nav>ul{ background-color: #007a4c; } .mobile-header-nav>ul>li { background-color: #007a4c; } .mobile-header-nav li a { border-color: #079660; } .mobile-header-nav .nav-secondLevel{ background-color: #11ae73; } .mobile-header-nav .nav-threeLevel { background-color: #155940; } /* 响应式 */ @media screen and (max-width: 1024px) { .footer-link ul li{ margin-right: 15px; } .footer-link ul i{ padding-left: 15px; } } @media screen and (max-width: 980px) { .header-img img { padding: 16px 0; } .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; } .header-search { display: none; } .header-right { right: 80px; } } @media screen and (max-width: 768px) { .content-item{ width: 100%; } .header-img img { height: auto; width: 80%; } .header-right { display: none; } } @media screen and (max-width: 640px) { .header{ box-shadow: 0 1px 3px #ddd; } .header-top{ display: none; } .header-img img { width: auto; height: 100%; } .content-wrap li p{ width: calc(100% - 100px); } .banner{ margin-top: 70px !important; } .footer-link ul{ margin-left: 0; } .pic-wrap, .content-row-pic li { width: 100%; } .content-row-pic ul { flex-wrap: wrap; } }