body{ color: #000; background-color: #a1bfc5; } a{ color: #000; } a:hover{ color: #ff1111; } .header{ background-color: #720808; } .header .wrap{ position: relative; } .header-right{ position: absolute; top: 50%; right: 20px; color: #fff; width: 230px; } .header-img{ position: relative; } .header-img img{ width: auto; } /* 导航 */ .header-nav{ background: url(../images/bg/bg-nav-cl.jpg); } .header-nav ul{ height: 44px; line-height: 44px; background-color: transparent; z-index: 2; } .nav-secondLevel{ top: 44px; } .header-nav li:last-child{ background: none; } .header-nav li:hover a { background-color: #8C0000 ; } .header-nav .nav-secondLevel li a{ border-color: transparent; background-color: #9c0000; } .nav-secondLevel li:hover a { background-color: #8C0000 ; } .header-nav li a{ position: relative; height: 46px; line-height: 46px; } .header-nav>ul>li>a{ font-size: 16px; } .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: 10px; } .content-bg{ background: url(../images/banner/banner-cl.jpg) no-repeat center; background-size: cover; margin-top: 0; } .content-row{ display: flex; justify-content: space-between; background-color: #fff; } .content-item{ width: 39%; box-sizing: border-box; margin-bottom: 20px; padding: 0 8px; } .content-item-swiper{ width: 60%; } .content-item h2{ font-size: 16px; background-size: contain; font-size: 14px; overflow: hidden; border-bottom: 1px solid #ccc; margin-bottom: 8px; } .content-item h2 span{ display: inline-block; color: #720808; padding: 10px 14px; font-size: 18px; border-bottom: 3px solid #720808; } .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: 53px; line-height: 52px; margin: 0 10px; border-bottom: 1px dashed #ccc; margin-bottom: 5px; } .content-item-swiper ul li{ height: 38px; line-height: 38px; margin-bottom: 0; } .content-wrap li p{ width: calc(100% - 80px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap li dl{ float: left; width: 54px; text-align: center; margin-right: 10px; } .content-wrap li dl dt{ background-color: #B90D0D; color: #fff; line-height: 26px; font-weight: bold; font-size: 16px; } .content-wrap li dl dd{ background-color: #CCCCCC; color: #666; line-height: 20px; font-size: 12px; } .content-row-first .content-wrap li{ border: none; height: auto; line-height: 24px; overflow: hidden; margin-top: 10px; } .content-row-first .content-wrap li p{ float: none; margin-left: 65px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: inherit; width: auto; } .content-wrap .list-time { float: right; color: #666; } .content-wrap a:hover .list-time { color: #ff1111; } /* banner轮播 */ .banner{ padding-bottom: 20px; background-color: #fff; } .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-container{ float: left; width: 300px; } .content-item-swiper ul{ margin-left: 305px; } .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-list-wrap, .content-left{ border: 1px solid #720808; background-color: #fff; } .content-left-list li a{ text-align: center; } .crumbs{ background-color: #720808; color: #fff; line-height: 40px; overflow: hidden; } .crumbs a{ color: #fff; } .crumbs-left{ float: left; font-size: 16px; } .crumbs-right{ float: right; } .content-left h2{ background-color: #720808; } /* 横向图文列表 */ .content-crosswiseImg-list{ flex-wrap: wrap; } .content-crosswiseImg-list li{ width: 100% !important; border-bottom: 1px solid #ccc; padding-bottom: 15px; } .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; } .content-crosswiseImg-list dl{ margin-left: 25%; } .content-crosswiseImg-list dt{ font-size: 16px; font-weight: bold; color: #990000; 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: #993300; } .content-crosswiseImg-list .content-crosswiseImg-time{ color: #666; margin: 15px 0 22px; } .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; } /* 底部 */ .footer{ margin-top: 20px; } .footer-margin0{ margin-top: 0; } .footer-mesg{ background-color: #720808; } /* 招生专题页 */ .zszt-margin{ margin-top: 0; } .zszt-wrap{ flex-wrap: wrap; padding: 8px 8px 0; } .zszt-wrap .zszt-item{ width: 29.2%; } .zszt-wrap .zszt-item-center{ width: 40%; } .zszt-wrap .content-item{ width: 100%; border: 1px solid #ccc; margin-bottom: 10px; padding: 0; } .zszt-item-center .content-item{ border-radius: 6px 6px 0 0; overflow: hidden; } .zszt-wrap .content-item-swiper .swiper-container{ width: 100%; float: inherit; padding: 0 4px; margin: 4px 0; } .zszt-wrap .content-item-swiper .swiper-slide .swiper-title{ background-color: #3174bb; } .zszt-wrap .content-wrap ul{ padding: 0 8px; } .zszt-wrap .content-wrap ul li{ height: 38px; line-height: 38px; margin: 0; } .zszt-wrap .content-item h2{ background: url(../images/bg/bg-content-clzt.jpg) no-repeat left center; background-size: cover; border: 0; margin-bottom: 0; } .zszt-item-center .content-item h2{ background-image: url(../images/bg/bg-content-clzt2.png); } .zszt-wrap .zszt-item-center .content-item h2 span{ color: #3174bb; margin-left: 85px; } .zszt-wrap .content-item h2 a{ font-size: 12px; margin-right: 8px; } .zszt-wrap .zszt-more{ background-color: #3f7291; color: #fff; padding: 3px 5px; border-radius: 10px; margin-top: 6px; border: 2px solid #ccc; } .zszt-wrap .zszt-more:hover{ color: #ffff00; } .zszt-wrap .content-item-swiper .swiper-pagination-bullet-active{ background-color: rgba(49, 116, 187, .7); } .zszt-wrap .content-item h2 span{ border: 0; color: #fff; font-size: 14px; margin-left: 20px; } /* 栏目列表 */ .zszt-item-right ul li{ border: none; } .zszt-item-right ul li p{ width: 96%; } .zszt-wrap .column-list{ display: flex; flex-wrap: wrap; } .zszt-wrap .column-list li{ width: 50%; text-align: center; height: 36px !important; line-height: 36px !important; } .zszt-wrap .column-list li a{ color: #0099CC; font-weight: bold; } .zszt-wrap .column-list li a:hover{ color: #FF0000; } .zszt-wrap .column-list a span{ vertical-align: middle; margin-right: 10px; } /* 图 */ .zszt-wrap .content-item-pic{ width: 175%; } .zszt-item-pic, .zszt-item-pic a, .zszt-item-pic img{ width: 100%; display: block; position: relative; z-index: 10; } /* 响应式 */ @media screen and (max-width: 1024px) { } @media screen and (max-width: 980px) { .header-top{ background: #8C0000; } .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, .zszt-item{ width: 100% !important; } } @media screen and (max-width: 768px) { .header-right{ right: 66px; } .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; } .zszt-wrap .content-item-swiper .content-wrap{ margin-top: 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-right{ display: none; } .content-wrap li p{ width: calc(100% - 100px); } .content{ margin-top: 70px !important; } .content.content-list-wrap{ margin-top: 80px !important; } .content-part{ padding-top: 10px; } .content-crosswiseImg-list .content-img-list-imgWrap{ width: 100%; margin-right: 0; } .content-crosswiseImg-list dl{ margin-left: 0; text-align: center; } .content-crosswiseImg-list dt{ margin: 0 auto; } }