body{ color: #000; } a{ color: #000; } a:hover{ color: #ff1111; } .header-top { background: url(../images/xxgc/header-bg.png) repeat-x center; background-size: contain; } .header-top>.wrap { position: relative; padding: 25px 50px; } .header-img{ position: relative; } .header-img img{ width: 30%; } .header-right { position: absolute; right: 20px; } .header-right-top { top: 30px; color: #e6e6e6; } .header-right-top a{ color: #e6e6e6; } .header-right-top a:hover{ color: #ffff00; } .header-right-search { width: 280px; bottom: 25px; right: 50px; } .header-right-search i{ display: inline-block; height: 24px; width: 45px; background: url(../images/xxgc/icon-search.png) no-repeat center; background-size: contain; position: absolute; left: 0; top: 50%; transform: translateY(-50%); cursor: pointer; } .header-right-search input { box-sizing: border-box; border: 2px solid #b4bfd2; outline: none; height: 40px; border-radius: 40px; width: 100%; padding-left: 45px; background-color: #dde7fa; } /* 导航 */ .header-nav{ background-color: #0171bb; } .header-nav ul{ height: 50px; line-height: 50px; background-color: transparent; } .header-nav ul li{ background: url(../images/xxgc/nav-bg.png) no-repeat center; background-size: cover; letter-spacing: .1em; } .nav-secondLevel{ top: 50px; } .header-nav li:last-child{ background-image: url(../images/xxgc/nav-bg2.png); } .header-nav .nav-secondLevel li a{ border-color: #3B6AC4; background-color: #004c98; } .header-nav li:hover>a{ background-color: transparent ; } .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; } /* 主体 */ .content{ position: relative; } .content-row{ display: flex; justify-content: space-between; } .content-item{ width: 48%; box-sizing: border-box; margin-top: 35px; background-color: #fbfbfb; } .content-item h2{ font-size: 14px; padding-right: 14px; background-color: #f0f0f0; height: 44px; line-height: 44px; position: relative; } .content-item h2 span{ display: inline-block; padding: 12px 14px; font-size: 16px; color: #0071bc; background: url(../images/xxgc/title-gray.png) no-repeat center top; background-size: contain; height: 60px; line-height: 1; min-width: 120px; text-align: center; cursor: pointer; } .content-item h2 .current { background-image: url(../images/xxgc/title-active.png); color: #fff; } .content-item h2 a{ font-weight: normal; float: right; color: #0071bc; } .content-item h2 a:hover{ color: #FF0000; } .content-wrap ul{ padding: 15px 0; } .content-wrap ul li{ height: 44px; line-height: 44px; margin: 0 10px; padding-left: 20px; background: url(../images/xxgc/icon-arrow.png) no-repeat left center; background-size: 11px; } .content-wrap ul li a{ display: block; width: 100%; height: 100%; border-bottom: 1px dashed #ccc; } .content-wrap li p{ width: calc(100% - 100px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap .list-time { float: right; } .content-wrap a:hover .list-time { color: #ff1111; } .content-txt { line-height: 26px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 13; overflow: hidden; } /* 专业 */ .content-item-major ul { display: flex; flex-wrap: wrap; justify-content: space-between; background-color: transparent; padding-top: 20px; } .content-item-major ul li { width: 45%; padding-left: 0; background: url(../images/xxgc/title_bg1.png) no-repeat center; background-size: contain; margin: 0; margin-bottom: 14px; text-align: center; height: 58px; line-height: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .content-item-major ul li:nth-child(2){ background-image: url(../images/xxgc/title_bg2.png); } .content-item-major ul li:nth-child(3){ background-image: url(../images/xxgc/title_bg3.png); } .content-item-major ul li:nth-child(4){ background-image: url(../images/xxgc/title_bg4.png); } .content-item-major ul li:nth-child(5){ background-image: url(../images/xxgc/title_bg5.png); } .content-item-major ul li:nth-child(6){ background-image: url(../images/xxgc/title_bg6.png); } .content-item-major ul li:nth-child(7){ background-image: url(../images/xxgc/title_bg7.png); } .content-item-major ul li:nth-child(8){ background-image: url(../images/xxgc/title_bg8.png); } .content-item-major ul li:nth-child(9){ background-image: url(../images/xxgc/title_bg9.png); /* margin-bottom: 0; */ } .content-item-major ul li:nth-child(10){ background-image: url(../images/xxgc/title_bg11.png); /* margin-bottom: 0; */ } .content-item-major ul li a{ border-bottom: 0; color: #fff; font-size: 16px; } .content-item-swiper2 { background-color: #f0f0f0; padding-bottom: 40px; margin-top: 35px; } .horizontal-name { width: 22%; margin: 0 auto; padding: 26px 0; } .content-item-swiper2 .horizontal-swiper{ width: 93%; margin: 0 auto; background-color: #fff; padding: 8px 12px; box-shadow: 2px 2px 10px #908f8f; } .content-item-swiper2 .swiper-slide { border: 1px solid #0071bc; } .hidden { display: none; } /* banner */ .banner{ background-color: #c4daf1; position: relative; } /* banner轮播 */ .banner-swiper{ width: 100%; margin: 0 auto; z-index: 3; } .banner .swiper-button-next, .banner .swiper-button-prev { opacity: 1; transform: translateY(-50%); --swiper-navigation-color: rgba(122, 124, 158, .7); padding: 8px 0; background-color: rgba(255, 255, 255, .7); box-sizing: content-box; } .banner .swiper-button-next:hover, .banner .swiper-button-prev:hover{ background-color: rgba(255, 255, 255, 1); --swiper-navigation-color: rgba(122, 124, 158, 1); } .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, .content-item-swiper2 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; } .sidebar{ position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 10; } .sidebar img{ display: block; } .sidebar p{ text-align: center; line-height: 18px; } .sidebar-close{ float: right; padding: 5px 10px; } /* 列表页 */ .content-part{ overflow: hidden; display: block; } .content-left{ background-color: #f0f0f0; width: 220px; float: left; margin: 0; } .content-left h2{ background: url(../images/xxgc/crumbs-left.png) repeat-x center; background-size: contain; height: 70px; line-height: 70px; font-size: 18px; text-shadow: 2px 2px 3px #1b1462; } .content-right{ margin-left: 270px; width: auto; } .content-left-list{ padding: 25px 15px; } .content-left-list li a{ text-align: center; color: #1b1464; border-bottom: 0; } .content-left-list .content-left-current a, .content-left-list li a:hover { background-color: #90d0ec; } .crumbs{ background: url(../images/xxgc/crumbs-right.png) repeat-x center; background-size: contain; line-height: 50px; overflow: hidden; color: #fff; font-size: 16px; text-shadow: 2px 2px 3px #1b1462; } .crumbs p { float: left; font-weight: bold; font-size: 16px; } .crumbs a{ color: #fff; } .crumbs-right { float: right; } .list-wrap .list-time{ color: #666; } .column-pic{ margin-bottom: 35px; } .column-pic, .column-pic img, .content-wrap-img, .content-wrap-img img { width: 100%; } /* 横向图文列表 */ .content-crosswiseImg-list{ flex-wrap: wrap; } .content-crosswiseImg-list li{ width: 100% !important; border-bottom: 1px solid #ccc; padding-bottom: 25px; margin-bottom: 25px !important; } .content-crosswiseImg-list li a{ display: block; width: 100%; height: 100%; } .content-crosswiseImg-list .content-img-list-imgWrap{ width: 25%; float: left; margin-right: 20px; padding: 0; border: 0; } .content-crosswiseImg-list dl{ margin-left: 25%; } .content-crosswiseImg-list dt{ font-size: 16px; font-weight: bold; line-height: 28px; padding-top: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: 92%; } .content-crosswiseImg-list dd{ color: #333; margin: 10px 0 12px; line-height: 22px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: 92%; } .content-crosswiseImg-list .content-crosswiseImg-time{ color: #666; margin: 0; } .content-crosswiseImg-list li:hover dt, .content-crosswiseImg-list li:hover dd{ color: #FF0000; } /* 竖向图片 */ .content-verticalImg-list li{ width: 33%; } .content-verticalImg-list li a{ margin: 0 30px; } /* 目录页 */ .catalog-title{ border-color: #ff0000; } /* 底部 */ .footer { margin-top: 35px; background: url(../images/xxgc/header-bg.png) repeat-x center; background-size: contain; } .footer-mesg{ background-color: transparent; color: #fff; } .mobile-nav-icon{ right: 20px; } .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-top>.wrap{ padding: 0 10px; } .header-top .header-img img{ padding: 20px 0; } .header-right-search{ right: 80px; } .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; } .banner-swiper{ width: 100%; } } @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; } .content-left{ width: 100%; margin-bottom: 20px; } .content-right{ width: 100%; margin-left: 0; } } @media screen and (max-width: 640px) { .header{ box-shadow: 0 1px 3px #ddd; } .header-top .wrap{ width: 100%; } .mobile-nav-icon { right: 18px; } .header-img{ width: 100%; height: auto; } .header-img img{ height: 60px; width: auto; box-sizing: content-box; } .content-wrap li p{ width: calc(100% - 100px); } .content{ margin-top: 100px !important; } .content-bgPic{ top: 0; } .header-right{ display: none; } .column-pic{ margin-bottom: 15px; } .content-img-list-imgWrap{ width: 100% !important; } .content-crosswiseImg-list dl{ margin-left: 0; text-align: center; } .footer{ margin-top: 20px; } }