body{ color: #000; /* background-color: #94C0EF; */ background: url(../images/bg/bg-body-jwc.png); } a{ color: #000; } a:hover{ color: #ff1111; } .header-top{ position: relative; } .header-img{ position: relative; } .header-img img{ /* width: auto; */ } /* 导航 */ .header-nav{ background-color: #396691; } .header-nav ul{ height: 50px; line-height: 50px; background-color: transparent; } .nav-secondLevel{ top: 50px; } .header-nav li:last-child{ background: none; } /* .header-nav li:hover a { background-color: #FF1111 ; } */ .header-nav .nav-secondLevel li a{ border-color: #3B6AC4; background-color: #004c98; } .header-nav li:hover>a{ background-color: #063f7d ; } .nav-secondLevel .nav-threeLevel a{ background-color: #004c98; } .header-nav .nav-threeLevel li a:hover { background-color: #2574a5; } .header-nav li a{ position: relative; height: 50px; line-height: 50px; } .header-nav>ul>li>a{ font-size: 16px; color: #fff; } .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-seach{ position: absolute; right: 10px; bottom: 10px; border: 1px solid #999; border-radius: 4px; overflow: hidden; } .header-seach input{ box-sizing: border-box; display: block; height: 26px; line-height: 26px; padding: 0 26px 0 10px; width: 150px; outline: none; border: 0; } .header-seach button{ position: absolute; right: 0; top: 0; height: 26px; width: 28px; background: url(../images/icon/search2.png) no-repeat center; background-size: 16px; border: none; outline: none; cursor: pointer; } /* 主体 */ .content{ /* margin-top: 20px; */ position: relative; background: url(../images/bg/bg-content-jwc.png) no-repeat right bottom; background-size: contain; } .content-row{ display: flex; justify-content: space-between; padding-top: 5px; } .content-item{ width: 49%; box-sizing: border-box; margin-bottom: 20px; } .content-item h2{ background-size: contain; font-size: 14px; overflow: hidden; padding-right: 14px; border-bottom: 2px solid #004c98; } .content-item h2 span{ display: inline-block; padding: 10px 14px; font-size: 18px; color: #004c98; } .content-item h2 span i{ border-left: 6px solid #FF6600; margin-right: 12px; } .content-item h2 a{ font-weight: normal; float: right; margin-top: 10px; } .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 15px; 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-QRcode{ text-align: center; display: flex; justify-content: space-around; margin: 50px 0; } .content-QRcode-item{ width: 32%; } .content-QRcode-item img{ width: 100%; } .content-QRcode-item p{ margin-top: 10px; } /* banner */ .banner{ padding: 30px 0; /* background-color: #c4daf1; */ position: relative; } .banner-nav{ width: 100%; background-color: transparent; position: absolute; top: 100px; left: 0; z-index: 2; } .banner-nav ul{ display: flex; flex-wrap: wrap; } .banner-nav ul::after{ content: ""; width: 50%; } .banner-nav ul li{ width: 50%; flex: auto; margin-bottom: 30px; } .banner-nav ul li a{ margin-left: 7%; } .banner-nav ul li:hover a{ background-color: #004c98; } .banner-nav ul li:nth-child(even) a{ float: right; margin-right: 7%; } .banner-nav ul li a{ background-color: #004c98; width: 120px; } /* banner轮播 */ .banner-swiper{ margin-left: 31%; } .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-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(185, 13, 13, .7); } .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: #B90D0D; color: #fff; padding: 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; } .content-left{ width: 58%; margin-right: 2%; } /* 左上 */ .content-left-top{ overflow: hidden; } .content-nav{ width: 28%; border: 1px solid #396691; border-radius: 20px; overflow: hidden; float: left; } .content-nav h2{ font-size: 16px; background-color: transparent; height: auto; line-height: inherit; } .content-nav h2 img{ width: 72%; display: block; margin: 0 auto; padding-top: 20px; } .content-nav ul li a{ display: block; background-color: #accce9; width: 76%; height: 36px; line-height: 36px; border: 1px solid #396691; border-radius: 6px; text-align: center; margin: 25px auto; /* color: #fff; */ position: relative; } .content-nav ul a img{ width: 24px; position: absolute; top: calc(50% - 12px); left: 10px; transition: all .4s; } .content-nav ul a:hover img{ transform: rotateY(180deg); } .swiper-container{ border-radius: 20px; overflow: hidden; } .swiper-container img{ width: 100%; } /* 左下 */ .content-left-bottom ul{ display: flex; flex-wrap: wrap; justify-content: space-around; padding: 10px 0 15px; } .content-left-bottom li{ width: 30%; text-align: center; padding: 20px 0; transition: all .2s; } .content-left-bottom li:hover{ box-shadow: 0 0 6px rgba(57, 102, 145, .8); margin-top: -6px; } .content-left-bottom li a{ display: block; } .icon-wrap{ display: inline-block; background-color: #396691; border-radius: 50%; width: 70px; height: 70px; text-align: center; position: relative; } .icon-wrap img{ width: 46%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); } .content-left-bottom li:nth-child(1) .icon-wrap{ background-color: #d2585c; } .content-left-bottom li:nth-child(2) .icon-wrap{ background-color: #6f9d6f; } .content-left-bottom li:nth-child(5) .icon-wrap{ background-color: #7e3e8a; } .content-left-bottom li:nth-child(6) .icon-wrap{ background-color: #948080; } .content-left-bottom li p{ margin-top: 12px; font-size: 16px; font-weight: bold; } /* 标题 */ .content-title{ background: url(../images/icon/jwc/title.png) no-repeat right bottom; /* height: 50px; */ line-height: 50px; padding: 0 15px 10px; /* margin-bottom: 20px; */ } .content-title img{ width: 40px; vertical-align: middle; margin-right: 12px; } .content-title span, .content-title a{ font-size: 18px; font-weight: bold; } .content-title a{ float: right; } /* 右边 */ .content-right{ width: 40%; } .content-right .content-item{ width: 100%; margin-top: 30px; } /* 列表页 */ .content-list-wrap, .content-left{ background-color: transparent; } .content-list-wrap{ margin-top: 15px; margin-bottom: 15px; border: 1px solid #396691; } .content-left-list li a{ background: url(../images/icon/triangle.jpg) no-repeat 10px center; text-align: left; padding-left: 32px; } .crumbs{ background-color: #396691; line-height: 40px; overflow: hidden; color: #fff; } .crumbs p { float: left; font-weight: bold; font-size: 16px; } .crumbs a{ color: #fff; } .crumbs-right { float: right; } .list-wrap .list-time{ color: #666; } /* 目录页 */ .catalog-title{ /* border: none; background-color: #87cefa; padding: 0 20px; */ border-color: #ff0000; } /* 底部 */ .footer-mesg{ background-color: #d4d4d4; color: #000; border: 6px solid #b7b7b7; border-right: 0; border-left: 0; } .mobile-nav-icon span{ background-color: #ff0000; } .mobile-header-nav .nav-threeLevel li a{ background-color: #f55555; } /* 响应式 */ @media screen and (max-width: 1024px) { .banner-nav{ top: 60px; } } @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{ width: 100% !important; } .content-left{ width: 100%; } .header-seach{ right: 85px; } .content-nav{ display: none; } .banner-swiper{ margin-left: 0; } } @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; } } @media screen and (max-width: 640px) { .header{ box-shadow: 0 1px 3px #ddd; } .header-top .wrap{ width: 100%; } .mobile-nav-icon { right: 18px; } .header-seach{ display: none; } .content-wrap li p{ width: calc(100% - 100px); } .content-bgPic{ top: 0; } .banner{ padding-top: 15px; } }