body{ color: #000; } a{ color: #000; } a:hover{ color: #ff1111; } .wrap{ position: relative; } .header{ padding: 20px 0 0; } .header-img{ position: relative; } .header-img img{ width: auto; } .header-right{ position: absolute; top: 10px; right: 0px; color: #666; padding: 2px 0 2px 16px; background: url(../images/icon/home-green.png) no-repeat left center; background-size: 17px; } /* 导航 */ .header-nav{ position: absolute; right: 0; bottom: 5px; background-color: transparent; } .header-nav ul{ height: 36px; line-height: 36px; background-color: transparent; } .nav-secondLevel{ top: 36px; } .header-nav li a{ position: relative; height: 36px; line-height: 36px; min-width: 80px; color: #000; } .header-nav li:hover a{ background-color: #601986; color: #fff; } .header-nav .nav-secondLevel li a { border-bottom: 1px solid #7820a7; } .nav-secondLevel li:hover>a{ color: #ffff00; } .header-nav .nav-threeLevel li{ margin-left: 0; } /* 主体 */ .content{ margin-top: 15px; } .content-row{ background-color: #601986; } .content-row .wrap{ display: flex; justify-content: space-between; padding: 25px 0 10px; } .content-item{ width: 49.8%; box-sizing: border-box; margin-bottom: 20px; border-left: 1px solid #fff; } .content-item:first-child{ border: none; } .content-wrap h2{ line-height: 80px; font-size: 24px; color: #fff; } .content-wrap h2 a{ float: right; color: #fff; font-size: 16px; } .content-wrap a{ color: #fff; } .content-wrap a:hover{ color: #ffff00; } .content-wrap{ padding: 0 30px 20px; } .content-item:hover .content-wrap{ top: 0; } .content-wrap .list-time { float: right; } .content-wrap li{ line-height: 32px; overflow: hidden; } .content-wrap li p{ width: calc(100% - 100px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap li p span{ margin-right: 8px; } .content-wrap a:hover .list-time { color: #ffff00; } /* 轮播 */ .banner{ margin-bottom: 20px; } .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; } /* 轮播 */ .swiper-pagination-bullet { width: 12px; height: 12px; background-color: #D9D9D9; opacity: 1; } .swiper-pagination-bullet-active { background-color: #fc114a; } .swiper-container-horizontal>.swiper-pagination-bullets { text-align: right; left: 0; right: 0; bottom: 10px; width: 1200px; margin: 0 auto; } .swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet { margin: 0 8px; } .swiper-button-next, .swiper-button-prev { opacity: 0; } .swiper-container:hover .swiper-button-next, .swiper-container:hover .swiper-button-prev { opacity: 1; } /* 图标导航 */ .nav-icon{ border: 1px solid #ccc; margin-bottom: 20px; } .nav-icon ul{ display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; padding: 8px 0; } .nav-icon ul li{ -prefix-box-flex: 1; -webkit-box-flex: 1; -webkit-flex: 1; -moz-box-flex: 1; -ms-flex: 1; flex: 1; text-align: center; } .nav-icon-pic{ position: relative; padding: 12px 0; } .nav-icon-pic::after{ content: ''; display: block; position: absolute; top: 50%; left: 0; height: 50%; border-left: 1px solid #ddd; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .nav-icon li:first-child .nav-icon-pic::after{ display: none; } .nav-icon-pic img{ width: 62px; transition: all .5s; } .nav-icon li:hover .nav-icon-pic img{ -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .nav-icon ul li p{ line-height: 22px; } /* 图片列表 */ .content-row-pic{ background-color: transparent; } .content-row-pic .content-item{ width: 58.7%; margin: 25px; } .content-row-pic .content-item-right{ width: 39.3%; } .content-row-pic .content-wrap{ padding: 0; } .content-row-pic h2, .content-row-pic h2 a{ color: #000; } .content-row-pic h2 a:hover{ color: #ff1111; } .content-row-pic h2{ border-bottom: 1px solid #000; line-height: 50px; font-size: 18px; } .content-row-pic, .content-row-pic ul{ display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; justify-content: space-between; } .content-row-pic ul{ padding: 16px 0; } .content-row-pic li{ margin: 0 3px; position: relative; } .content-row-pic li img{ display: block; width: 100%; } .content-row-pic li:hover .content-item-title{ bottom: 0; } .content-item-title{ background-color: rgba(0, 0, 0, .5); text-align: center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding: 0 10px; position: absolute; bottom: -32px; left: 0; width: 100%; transition: all .15s; color: #fff; } /* 列表页 */ .content-list-wrap{ border: 1px solid #F8B62C; } .crumbs{ background-color: #FBD584; border-bottom: 1px solid #F8B62C; } .banner-list, .banner-list img{ width: 100%; } .content-list-wrap, .banner-list{ margin-bottom: 20px; } /* 目录页 */ .catalog-title{ border-color: #8b0909; } /* 底部 */ .footer{ background-color: #F8B62C; } .footer-mesg{ background-color: transparent; color: #000; } .footer-link{ line-height: 40px; padding: 10px 0; text-align: center; } .footer-link span { box-sizing: border-box; display: inline-block; } .footer-link ul{ display: inline; } .footer-link ul li{ display: inline-block; } .footer-link li span{ margin: 0 5px; } .footer-link li:last-child span{ display: none; } .footer-logo{ text-align: center; } .footer-logo img{ margin-right: 20px; vertical-align: middle; width: 100px; } .footer-logo .footer-mesg{ display: inline-block; text-align: left; vertical-align: middle; } /* 右侧边栏 */ .sidebar{ position: fixed; right: auto; left: 0; top: 50%; transform: translateY(-50%); z-index: 10; } .sidebar img{ display: block; } .sidebar-close{ float: left; padding: 5px 10px; } .mobile-nav-icon span{ background-color: #C90303; } .header-img>img { display: inline-block; } .header-qrcode { position: absolute; top: -12px; left: 295px; } .header-qrcode img { width: 86px; margin: 0 auto; } /* 响应式 */ @media screen and (max-width: 1024px) { .swiper-container-horizontal>.swiper-pagination-bullets{ width: auto; right: 8px; } } @media screen and (max-width: 1024px) { .header-nav{ position: relative; } .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%; } .header-right{ top: 30px; right: 100px; } } @media screen and (max-width: 768px) { .content-row, .content-row .wrap{ flex-wrap: wrap; } .content-item{ width: 100% !important; border-left: none; } /* 轮播 */ .content-item-swiper .swiper-container{ width: 100%; float: inherit; } .content-item-swiper ul{ margin-left: 0; } .content-item-title{ bottom: 0; } } @media screen and (max-width: 640px) { .header{ padding: 10px 0; background-color: #fff; } .header-top{ display: none; } .header-img{ width: 100%; } .header-img img{ width: auto; height: 90%; } .content{ margin-top: 90px !important; } .content-wrap li p{ width: calc(100% - 100px); } .header-right{ display: none; } .mobile-nav-icon { right: 15px; } .footer{ background-size: cover; } .footer-logo .footer-mesg{ text-align: center; } .footer-logo img{ display: block; margin: 0 auto; } .nav-icon ul{ flex-wrap: wrap; } .nav-icon ul li{ -prefix-box-flex: auto; -webkit-box-flex: auto; -webkit-flex: auto; -moz-box-flex: auto; -ms-flex: auto; flex: auto; width: 25%; } .content-row-pic .content-item{ margin: 25px 10px; } .content-row-pic ul{ flex-wrap: wrap; } .content-row-pic li{ width: 100%; margin-bottom: 10px; } .header-qrcode { top: -2px; left: auto; right: 50px; } .header-qrcode img { width: 74px; } }