body{ color: #000; background-color: #ebebeb; } a{ color: #000; } a:hover{ color: #ff1111; } .header-top{ width: 100%; background: #8C0000 url(../images/bg/bg_top-jyxy.jpg) no-repeat right center; } .header-img{ position: relative; } .header-img img{ width: auto; } /* 导航 */ .header-nav{ background-color: #9c0000; } .header-nav ul{ height: 46px; line-height: 46px; background-color: transparent; } .nav-secondLevel{ top: 46px; } .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: 20px; } .content-row{ display: flex; justify-content: space-between; background-color: #fff; } .content-item{ width: 49%; box-sizing: border-box; margin-bottom: 20px; } .content-row-first .content-item{ width: 32%; } .content-item-swiper{ margin-top: 6px; } .content-item h2{ font-size: 16px; background-size: contain; font-size: 14px; overflow: hidden; border-bottom: 2px solid #720808; box-shadow: 0 1px 0px #ccc; } .content-item h2 i{ font-style: normal; font-weight: normal; padding: 0 3px; } .content-item h2 span{ display: inline-block; color: #720808; padding: 10px 14px; font-size: 18px; } .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: 38px; line-height: 38px; margin: 0 10px; /* border-bottom: 1px dashed #ccc; */ } .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: 50px; text-align: center; } .content-wrap li dl dt{ background-color: #B90D0D; color: #fff; line-height: 26px; font-weight: bold; } .content-wrap li dl dd{ background-color: #CCCCCC; color: #666; line-height: 20px; } .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: #B90D0D; } .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-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 #9c0000; background-color: #fff; } .content-left-list li a{ background: url(../images/icon/triangle.jpg) no-repeat 10px center; text-align: left; padding-left: 32px; } .crumbs{ background-color: #9c0000; 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: #9c0000; } /* 底部 */ .footer{ margin-top: 20px; } .footer-mesg{ background-color: #720808; } /* 响应式 */ @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{ width: 100% !important; } } @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) { .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; } .content-wrap li p{ width: calc(100% - 100px); } .content{ margin-top: 70px !important; } }