body{ color: #000; /* background-color: #94C0EF; */ background: url(../images/industrial/content-bg.png) no-repeat center; background-size: contain; } a{ color: #000; } a:hover{ color: #ff1111; } .header { position: relative; } .header-top{ position: relative; } .header-img{ position: relative; } .header-img img{ /* width: auto; */ } .logo { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 38% !important; } /* 导航 */ .header-nav{ background: url(../images/industrial/nav.png) no-repeat right center; background-size: contain; width: 64%; position: absolute; right: 0; bottom: 8px; border-radius: 60px 0 0 60px; } .header-nav ul{ height: 50px; line-height: 50px; background-color: transparent; } .nav-secondLevel{ top: 50px; } .header-nav li:last-child{ background: none; } .header-nav .nav-secondLevel li a{ border-color: #3B6AC4; background-color: #1b7fc7; } .header-nav li:hover>a{ background-color: #1b7fc7 ; } .nav-secondLevel { z-index: 101; } .nav-secondLevel li:hover a{ background-color: #2574a5; } .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: #000; } .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: 50%; 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{ 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: 42px; line-height: 42px; margin: 0 15px; border-bottom: 1px solid #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; } /* 轮播 */ .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: 54.7%; margin-right: 2%; } /* 左上 */ .content-left-top{ overflow: hidden; width: 97.3%; position: relative; margin-bottom: 3px; } .banner-bg { width: 100%; position: relative; z-index: 100; } .banner-item { position: absolute; width: 32.6%; border-radius: 56px; } .banner-item1 { top: 20%; left: 36.3%; z-index: 96; } .banner-item2 { top: 39%; left: 66%; z-index: 98; } .banner-item3 { top: 59.9%; left: 37%; z-index: 99; } .banner-item4 { top: 39%; left: 7.5%; z-index: 98; } /* 标题 */ .content-title{ background: url(../images/icon/jwc/title.png) no-repeat right bottom; line-height: 50px; padding: 0 15px 10px; } .content-title img{ width: 40px; vertical-align: middle; margin-right: 12px; } .content-title span, .content-title a{ font-size: 18px; font-weight: bold; vertical-align: middle; } .content-title a{ float: right; } .content-title a span{ margin-right: 8px; } /* 右边 */ .content-right{ width: 40%; } .content-right .content-item{ width: 100%; margin-top: 30px; } .content-right .content-item:first-child{ margin-top: 0; } .content-col1 { width: 64%; } .content-col2 { width: 32%; } .swiper-container { margin: 10px 15px 0; } .swiper-container img { width: 100%; } .swiper-slide a { display: block; width: 100%; height: 100%; box-sizing: border-box; padding: 5px; border: 1px solid #ccc; } /* 列表页 */ .content-list-wrap, .content-left{ background-color: transparent; } .content-list-wrap{ margin-top: 15px; margin-bottom: 15px; border: 1px solid #1b7fc7; } .content-left-list li a{ background: url(../images/icon/triangle.jpg) no-repeat 10px center; text-align: left; padding-left: 32px; } .crumbs{ background-color: #1b7fc7; 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) { .logo { width: 50% !important; } .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, .content-col { 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) { .logo { width: auto !important; } .header{ box-shadow: 0 1px 3px #ddd; position: fixed; } .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; } .banner-item { border-radius: 30px; } }