body{ color: #000; } a{ color: #000; } a:hover{ color: #ff1111; } .header-top{ background: url(../images/bg/bg-header-cwc.jpg) repeat-x center; } .header-img{ position: relative; } .header-img img{ width: auto; margin: 0 auto; } /* 导航 */ .header-nav{ background-color: #4FB7F4; } .header-nav ul{ height: 40px; line-height: 40px; background-color: transparent; } .nav-secondLevel{ top: 40px; } .header-nav li:last-child{ background: none; } .header-nav li:hover a { background-color: #0F97E8 } .nav-secondLevel li:hover a { background-color: rgba(15,68,157,1); } .header-nav .nav-secondLevel li a{ border-color: #07ade7; } .header-nav .nav-threeLevel li a:hover{ background-color: #0190d6; } .header-nav li a{ position: relative; } .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: 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-content-gh.jpg) no-repeat right bottom; border: 1px solid #44a5d8; border-radius: 4px; } .content-item .content-wrap{ background: url(../images/bg/bg-content-gh-center.jpg) repeat-x top; } .content-item-swiper{ width: 66.3%; } .content-item h2{ height: 55px; line-height: 55px; background: url(../images/bg/bg-content-gh-right.jpg) no-repeat right center; color: #fff; font-size: 12px; overflow: hidden; position: relative; } .content-item h2 a{ font-weight: normal; color: #fff; background-color: #11a7f4; position: absolute; top: calc(50% - 5px); right: 8px; transform: translateY(-50%); height: 18px; line-height: 18px; padding: 0 8px; border-radius: 4px; } .content-item h2 a:hover{ color: #FF0000; } .content-wrap ul{ margin-bottom: 5px; } .content-wrap ul li{ height: 36px; line-height: 36px; margin: 0 10px; border-bottom: 1px dashed #ccc; padding-left: 16px; background: url(../images/icon/ico.jpg) no-repeat left center; } .content-wrap li p{ width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap .list-time { float: right; /* color: #999; */ display: none; } .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%; } /* 轮播 */ .content-item-swiper .swiper-container{ width: 49%; float: left; margin: 0 0 5px 5px; } .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(201, 3, 3, .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{ position: absolute; left: 0; top: 0; height: 26px; line-height: 26px; background-color: #0190d6; color: #fff; padding: 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; } /* 列表页 */ .content-list-wrap{ border: 1px solid #4FB7F4; } .crumbs{ background-color: #4FB7F4; color: #fff; } .crumbs a{ color: #fff; } /* 底部 */ .footer{ background-color: #4FB7F4; } .footer-mesg{ background-color: transparent; } .footer-link{ background-color: #C1D6E3; line-height: 36px; } .footer-link ul{ display: inline-block; } .footer-link ul li{ display: inline-block; margin-right: 15px; } .mobile-nav-icon span{ background-color: #193e88; } .mobile-header-nav>ul{ background-color: #0190d6; } .mobile-header-nav>ul>li { background-color: #0190d6; } .mobile-header-nav li a { border-color: #0F97E8; } .mobile-header-nav .nav-secondLevel{ background-color: #4FB7F4; } .mobile-header-nav .nav-threeLevel { background-color: #6dbedc; } /* 响应式 */ @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; } } @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; margin: 0; } .content-item-swiper ul{ margin-left: 0; } } @media screen and (max-width: 640px) { .header-top .wrap{ width: 100%; } .header-img{ width: 100%; } .header-img img{ width: auto; } .content-wrap li p{ width: calc(100% - 100px); } .header-right{ display: none; } }