body{ color: #000; } a{ color: #000; } a:hover{ color: #ff1111; } .header-img{ position: relative; } .header-img img{ width: auto; /* margin: 0 auto; */ } .header-right{ position: absolute; top: 50%; right: 0px; transform: translateY(-50%); padding: 7px 15px 5px 40px; background: url(../images/icon/home-green.png) no-repeat 15px center; background-size: 18px; border-radius: 30px; /* color: #5C5C5C; */ } /* 导航 */ .header-nav{ background: url(../images/bg/bg-nav-guihua.jpg) repeat-x center; } .header-nav ul{ height: 46px; line-height: 46px; background-color: transparent; } .nav-secondLevel{ top: 46px; } .header-nav li:hover a,.header-nav .nav-secondLevel li a:hover { background: url(../images/bg/bg-nav-guihua-hover.jpg); color: #ff0; } .header-nav .nav-secondLevel li a{ background: url(../images/bg/bg-nav-guihua.jpg); border: 0; color: #fff; } .header-nav .nav-threeLevel li a{ background: url(../images/bg/bg-nav-guihua-hover.jpg); } .header-nav li a{ position: relative; height: 46px; line-height: 46px; } .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-title-icon{ display: inline-block; height: 10px; width: 10px; border: 1px solid #fff; border-radius: 2px; margin: 0 7px 0 2px; } /* 主体 */ .content{ margin-top: 15px; } .content-row{ display: flex; justify-content: space-between; flex-wrap: wrap; } .content-item{ width: 32.6%; box-sizing: border-box; margin-bottom: 15px; background: url(../images/bg/bg-title-guihua-left.jpg) no-repeat left top; } .content-wrap{ background: url(../images/bg/bg-title-guihua-right.jpg) no-repeat right top; } .content-item h2{ height: 38px; line-height: 30px; font-size: 16px; background: url(../images/bg/bg-title-guihua-center.png) repeat-x center; background-size: contain; color: #fff; font-size: 14px; overflow: hidden; padding: 0 15px; } .content-item h2 i{ font-style: normal; font-weight: normal; padding: 0 3px; } .content-item h2 span{ font-weight: normal; } .content-item h2 a{ font-weight: normal; float: right; color: #fff; } .content-item h2 a:hover{ color: #FF0000; } .content-item h2 a:hover .triangle{ border-left-color: #FF0000; } .content-item h2 .triangle{ display: inline-block; width: 0; height: 0; border: 7px solid transparent; border-left-color: #fff; vertical-align: middle; margin: -2px 0 0 2px; } .content-wrap ul{ width: calc(100% - 16px); height: 255px; border: 1px solid #dadada; border-top: 0; margin: -4px auto 0; padding-bottom: 2px; box-shadow: inset 0px -15px 10px -15px #dadada; } .content-wrap ul li{ height: 36px; line-height: 36px; margin: 0 10px; /* border-bottom: 1px dashed #ccc; */ padding-left: 16px; background: url(../images/icon/list.png) no-repeat left center; } .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: #ff1111; } .content-tow-lines { flex-grow: 2; } .content-tow-lines ul{ display: flex; justify-content: space-between; flex-wrap: wrap; } .content-tow-lines li{ width: 48%; overflow: hidden; } .content-item-swiper ul{ margin-left: 50%; margin-top: 5px; } /* 轮播 */ .swiper-container { width: calc(100% - 16px); margin: 0px auto 0; } .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; } .swiper-pagination-bullet-active { color:#fff; background: rgba(93, 154, 24, .6); } .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; left: -3px; bottom: 3px; } .swiper-slide{ position: relative; } .swiper-slide img{ display: block; width: 100%; } .swiper-slide .swiper-title{ width: 100.1%; position: absolute; left: 0; top: 0; height: 38px; line-height: 32px; background: url(../images/bg/bg-title-guihua-center.png) repeat-x center; color: #fff; padding: 0 10px; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; } /* 列表页 */ .content-list-wrap{ border: 1px solid #498901; } .crumbs{ background-color: #5B9816; color: #fff; } .crumbs a{ color: #fff; } /* 底部 */ .footer{ background-color: #edf5e6; } .footer-mesg{ background-color: transparent; color: #000; } .footer-link{ margin-top: 15px; line-height: 46px; background: url(../images/bg/bg-nav-guihua.jpg) repeat-x center; color: #fff; font-weight: bold; } .footer-link a{ color: #fff; } .footer-link ul{ display: inline-block; } .footer-link ul li{ display: inline-block; margin-right: 15px; } .mobile-nav-icon span{ background-color: #498901; } .mobile-header-nav>ul{ background-color: #498901; } .mobile-header-nav>ul>li { background-color: #498901; } .mobile-header-nav li a { border-color: #5B9816; } .mobile-header-nav .nav-secondLevel{ background-color: #436b16; } .mobile-header-nav .nav-threeLevel { background-color: #79b13a; } /* 响应式 */ @media screen and (max-width: 1024px) { .header-img img{ width: 100%; } } @media screen and (max-width: 980px) { .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-right{ right: 60px; } } @media screen and (max-width: 768px) { .content-item{ width: 100%; } .content-tow-lines li{ width: 100%; } /* 轮播 */ .content-item-swiper .swiper-container{ width: 100%; float: inherit; } .content-item-swiper ul{ margin-left: 0; } } @media screen and (max-width: 640px) { .header-top{ display: none; } .header-img{ width: 100%; } .header-img img{ width: auto; } .content-wrap li p{ width: calc(100% - 100px); } .header-right{ display: none; } }