.w1400 { width: 1400px; margin: auto; } header { height: 100px; padding: 0 4%; border-bottom: 4px #ec1b24 solid; display: flex; justify-content: space-between; align-items: center; } header .logo { height: 100%; display: flex; align-items: center; } header .logo a { height: 100%; display: flex; align-items: center; } header .logo a img { width: 260px; } header ul { height: 100%; flex: 1; display: flex; justify-content: center; align-items: center; } header ul li { display: flex; justify-items: center; align-items: center; height: 100%; margin: 0 22px; position: relative; } header ul li a { font-size: 16px; color: #333; } header ul li a:hover, header ul li.active a { color: #ec1b24; font-weight: bold; } header ul li:last-child a{ color: #fff; padding: 10px; background: #333; border-radius: 6px; } header ul li:last-child a:hover{ font-weight: normal; background: #ec1b24; } header ul li .tnavbox{ position: absolute; left: -.3rem; right: -.3rem; top: 110%; background: #333; /* padding: .2rem 0 .3rem; */ padding: 1px 0; box-sizing: border-box; opacity: 0; display: none; z-index: 99; } header ul li .tnavbox a{ display: block; width: 100%; padding: .2rem .1rem; box-sizing: border-box; text-align: center; color: #fff; font-size: 14px; transition: .25s; border-bottom: 1px #444 solid; } header ul li .tnavbox a:last-child{ border-bottom: none; } header ul li:hover .tnavbox{ opacity: 1; display: block; top: 100%; animation: nav .3s linear forwards; -moz-animation: nav .3s linear forwards; /* Firefox */ -webkit-animation: nav .3s linear forwards; /* Safari 鍜� Chrome */ -o-animation: nav .3s linear forwards; /* Opera */ } @keyframes nav{ from { opacity: 0; top: 110%; } to{ opacity: 1; top: 100%; } } header ul li .tnavbox a:hover{ background: #ec1b24; color: #fff; } header .head-info { height: 100%; display: flex; align-items: center; } header .head-info p { font-size: 14px; color: #989898; margin-right: 6px; } header .head-info h4 { font-size: 22px; color: #ec1b24; } .home-banner { position: relative; } .home-banner img { width: 100%; display: block; } .home-banner .swiper-pagination-bullet { background: #fff; opacity: 0.5; } .home-banner .swiper-pagination-bullet-active { background: #ec1b24; opacity: 1; } .ho-common h2 { font-size: 36px; color: #333; margin-bottom: 12px; text-align: center; } .ho-common p { font-size: 16px; color: #666666; text-align: center; margin-bottom: 0.64rem; } .ho-a { width: 1.4rem; height: 0.4rem; display: flex; justify-content: center; align-items: center; font-size: 14px; color: #fff; background: #ec1b24; } .button1 { position: relative; overflow: hidden; } .button1 .anim { transform: translateY(-50%) translateX(-50%); position: absolute; top: 50%; left: 50%; } .button1 .anim:before { position: relative; content: ''; display: block; margin-top: 100%; } .button1 .anim:after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 50%; } .button1:hover .anim { animation: anim-out 1s; } .button1:hover .anim:after { animation: anim-out-pseudo 1s; } @keyframes anim-out-pseudo { 0% { background: rgba(0, 0, 0, 0.25); } 100% { background: transparent; } } @keyframes anim-out { 0% { width: 0%; } 100% { width: 100%; } } .home-product { padding: 1rem 0 ; } .home-product .tabs ul { display: flex; justify-content: space-between; align-items: center; } .home-product .tabs ul li a { display: flex; flex-direction: column; justify-content: center; align-items: center; } .home-product .tabs ul li a div { width: 66px; height: 66px; position: relative; } .home-product .tabs ul li a div img { position: absolute; left: 0; top: 0; bottom: 0; right: 0; width: 100%; height: 100%; opacity: 0; transition: 0.5s; } .home-product .tabs ul li a div :first-child { opacity: 1; } .home-product .tabs ul li a h4 { font-size: 18px; color: #333; margin-top: 6px; } .home-product .tabs ul li :hover div :last-child, .home-product .tabs ul li.active div :last-child { opacity: 1; } .home-product .tabs ul li :hover h4, .home-product .tabs ul li.active h4 { color: #ec1b24; } .home-product .tabs .ho-content { margin-top: 42px; display: none; opacity: .8; } .home-product .tabs .ho-content.active{ display: block; animation: pronav .5s forwards; } @keyframes pronav{ 0%{ opacity: .8; } 100%{ opacity: 1; } } .home-product .ho-content ol { display: flex; flex-wrap: wrap; } .home-product .ho-content ol li { width: 32%; margin-left: 2%; } .home-product .ho-content ol li:nth-child(3n+1){ margin-left: 0; } .home-product .ho-content ol li a { display: flex; flex-direction: column; } .home-product .ho-content ol li div { width: 100%; height: 3.5rem; display: flex; justify-content: center; align-items: center; border: 1px #e3e3e3 solid; transition: 0.5s; } .home-product .ho-content ol li div img { max-width: 90%; max-height: 90%; } .home-product .ho-content ol li h4 { font-size: 16px; color: #333; margin: 20px 0; text-align: center; } .home-product .ho-content ol li:hover div { -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); -webkit-transform: translate3d(0, -2px, 0); transform: translate3d(0, -2px, 0); } .home-product .ho-content ol li:hover h4 { color: #ec1b24; } .home-adv ul { display: flex; justify-content: space-evenly; } .home-adv ul li { width: 23.5%; position: relative; } .home-adv ul li img { width: 100%; display: block; } .home-adv ul li .button { position: absolute; bottom: 0.6rem; left: 0.4rem; transition: opacity 0.5s; } .home-adv ul li .button h3 { font-size: 0.3rem; color: #fff; } .home-adv ul li .button p { font-size: 0.16rem; color: rgba(255, 255, 255, 0.6); } .home-adv ul li .center { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: scale(0); transition: all 0.5s; opacity: 0; } .home-adv ul li .center img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; } .home-adv ul li .center h2 { width: 76%; font-size: 0.48rem; color: #fff; line-height: 0.5rem; text-align: center; position: relative; } .home-adv ul li .center p { width: 76%; font-size: 16px; color: rgba(255, 255, 255, 0.8); padding: 0.16rem 0 0.5rem; line-height: 24px; position: relative; } .home-adv ul li:hover .button { opacity: 0; } .home-adv ul li:hover .center { transform: scale(1); opacity: 1; } .home-about { margin-top: 80px; position: relative; } .home-about::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; right: 0; background: rgba(0, 0, 0, .3); } .home-about > img{ width: 100%; display: block; } .home-about .ho-ab-con { position: absolute; left: 0; top: 1.2rem; right: 0; bottom: 1.2rem; margin: auto; display: flex; flex-direction: column; justify-content: space-between; z-index: 2; } .home-about .ho-ab-con h2 { font-size: 36px; color: #fff; margin-bottom: 12px; } .home-about .ho-ab-con .t{ display: flex; flex-direction: column; align-items: center; } .home-about .ho-ab-con .t .ho-common p{ color: rgba(255, 255, 255, 0.8); } .home-about .ho-ab-con .desc { color: #fff; font-size: 16px; line-height: 30px; width: 60%; text-align: center; } .home-about .ho-ab-con a { margin-top: 0.5rem; width: 1.4rem; height: 0.4rem; display: flex; justify-content: center; align-items: center; font-size: 14px; color: #fff; background: #ec1b24; } .home-about .ho-ab-con ul { display: flex; justify-content: space-between; } .home-about .ho-ab-con ul li{ display: flex; align-items: center; } .home-about .ho-ab-con ul li>span{ width: .8rem; height: .8rem; border: 2px #fff solid; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-right: 6px; } .home-about .ho-ab-con ul li .icon{ width: .46rem; height: .46rem; fill: currentColor; overflow: hidden; color: #fff; } .home-about .ho-ab-con ul li h4 { font-size: 0.6rem; color: #fff; line-height: 0.6rem; display: flex; align-items: flex-start; } .home-about .ho-ab-con ul li h4 i{ font-size: 0.6rem; } .home-about .ho-ab-con ul li h4 span { font-size: 16px; color: rgba(255, 255, 255, 0.8); line-height: 20px; } .home-about .ho-ab-con ul li p { font-size: 16px; color: rgba(255, 255, 255, 0.8); } .home-news { margin: 0.8rem 0; } .home-news .ho-common p{ margin-bottom: 40px; } .home-news .news-nav{ display: flex; justify-content: center; } .home-news .news-nav a{ color: #333; font-size: 16px; margin: 0 20px; padding: 6px 10px; } .home-news .news-nav a.active, .home-news .news-nav a:hover{ background: #ec1b24; color: #fff; } .home-news ul { margin-top: 40px; justify-content: space-between; flex-wrap: wrap; display: none; opacity: .8; } .home-news ul.active{ display: flex; animation: news .5s forwards; } @keyframes news{ 0%{ opacity: .8; } 100%{ opacity: 1; } } .home-news ul li { margin-bottom: 22px; width: 50%; } .home-news ul li a { display: flex; align-items: center; } .home-news ul li .img { width: 268px; height: 186px; position: relative; overflow: hidden; } .home-news ul li .img img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; min-width: auto; min-height: auto; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; } .home-news ul li .text { flex: 1; display: flex; flex-direction: column; padding: 0 1.3rem 0 0.32rem; } .home-news ul li .text h3 { font-size: 0.2rem; color: #333; line-height: 0.3rem; } .home-news ul li .text span { font-size: 14px; color: #989898; margin: 10px 0; } .home-news ul li .text div { line-height: 24px; font-size: 12px; color: #666666; } .home-news ul li .text div span { font-size: 12px; color: #ec1b24; } .home-news ul li:hover h3 { color: #ec1b24; } .home-news ul li:hover .img img { transform: scale(1.04); } footer { background: #333333; padding-top: 0.68rem; } footer .foot-nav { display: flex; justify-content: space-between; margin-bottom: 42px; } footer .foot-nav ul { flex: 1; display: flex; justify-content: space-between; } footer .foot-nav ul li { width: 25%; } footer .foot-nav ul li h3 { font-size: 18px; color: #fff; margin-bottom: 10px; } footer .foot-nav ul li h3 a { color: #fff; } footer .foot-nav ul li h3:hover { color: rgba(255, 255, 255, 0.8); } footer .foot-nav ul li > a { display: flex; margin-bottom: 6px; font-size: 16px; color: rgba(255, 255, 255, 0.4); } footer .foot-nav ul li > a:hover { color: rgba(255, 255, 255, 0.8); } footer .foot-nav .foot-info { display: flex; } footer .foot-nav .foot-info .foot-tel { display: flex; flex-direction: column; } footer .foot-nav .foot-info .foot-tel h3 { font-size: 18px; color: #fff; } footer .foot-nav .foot-info .foot-tel h2 { font-size: 30px; color: #ec1b24; margin: 10px 0; } footer .foot-nav .foot-info .foot-tel a { width: 160px; height: 40px; display: flex; justify-content: center; align-items: center; background: #ec1b24; font-size: 14px; color: #fff; } footer .foot-nav .foot-info .foot-tel a .icon { width: 28px; height: 28px; fill: currentColor; overflow: hidden; color: #fff; margin-right: 4px; } footer .foot-nav .foot-info .foot-code { display: flex; align-items: center; margin-left: 0.6rem; } footer .foot-nav .foot-info .foot-code li{ margin-left: 20px; text-align: center; } footer .foot-nav .foot-info .foot-code img { width: 130px; height: 130px; } footer .foot-nav .foot-info .foot-code p { font-size: 14px; color: rgba(255, 255, 255, 0.4); margin-top: 6px; } footer .yq-link{ padding-bottom: 20px; display: flex; } footer .yq-link span{ font-size: 14px; color: rgba(255, 255, 255, 0.4); } footer .yq-link a{ font-size: 14px; color: rgba(255, 255, 255, 0.4); margin-right: 16px; } footer .yq-link a:hover{ color: rgba(255, 255, 255, 0.8); } footer .f-copyright { background: #1a1a1a; padding: 12px 0; } footer .f-copyright div { display: flex; justify-content: space-between; } footer .f-copyright div p { font-size: 14px; color: rgba(255, 255, 255, 0.2); } footer .f-copyright div a { font-size: 14px; color: rgba(255, 255, 255, 0.2); } footer .f-copyright div a:hover { color: rgba(255, 255, 255, 0.8); } .qqkefu{ position: fixed; bottom: 200px; z-index: 9999; right: 0; width: 50px; } .qqkefu ul li{ margin: 4px 0; background: rgba(153, 153, 153, 0.8); position: relative; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; cursor: pointer; } .qqkefu ul li:hover{ background: #ec1b24; } .qqkefu ul li .icon{ width: 24px; height: 24px; fill: currentColor; overflow: hidden; color: #fff; } .qqkefu ul li a{ position: absolute; left: 0; top: 0; bottom: 0; right: 0; background: #ec1b24; color: #fff; font-size: 14px; display: flex; justify-content: center; align-items: center; opacity: 0; } .qqkefu ul li .ewm{ position: absolute; right: 110%; bottom: 0; width: 130px; height: 80px; background: rgba(153, 153, 153, 0.6); display: flex; justify-content: center; align-items: center; color: #fff; font-size: 16px; line-height: 26px; opacity: 0; transition: .5s; } .qqkefu ul li .f_code{ position: absolute; right: 110%; bottom: 0; width: 100px; height: 100px; opacity: 0; transition: .5s; } .qqkefu ul li:hover .f_code, .qqkefu ul li:hover .ewm, .qqkefu ul li:hover a{ opacity: 1; } .qqkefu ul li .f_code img{ width: 100%; height: 100%; } @media screen and (max-width: 1480px) { .w1400 { width: 90%; } }