.chanpinBanner { font-size: 0; height: 750px; position: relative; } .chanpinBanner > img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; min-height: 750px; } .chanpinBanner .w1400 { position: absolute; left: 50%; transform: translateX(-50%); height: calc(100% - 90px); bottom: 0; display: flex; flex-direction: column; justify-content: center; } .chanpinBanner .w1400 .logo { display: flex; align-items: center; } .chanpinBanner .w1400 .logo span { display: block; padding-left: 22px; font-size: 38px; color: #fff; position: relative; } .chanpinBanner .w1400 .logo span::after { display: block; content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2px; height: 38px; background: rgba(255, 255, 255, 0.5); } .chanpinBanner .w1400 .logo img { max-height: 45px; margin-right: 19px; } .chanpinBanner .w1400 .tips { max-width: 780px; font-size: 16px; line-height: 2; text-align: justify; color: #fff; margin-top: 27px; } .chanpinTab .w1400 ul { display: flex; flex-wrap: wrap; } .chanpinTab .w1400 ul li { min-width: 130px; } .chanpinTab .w1400 ul li a { display: block; font-size: 16px; color: #666; line-height: 60px; text-align: center; padding: 0 28px; transition: color, background 0.3s; } .chanpinTab .w1400 ul li.on a, .chanpinTab .w1400 ul li:hover a { background: #d50b0a; color: #fff; } .chanpinTabMob { display: none; } .chanpinBlock { background: #f7f7f7; padding-bottom: 80px; } .chanpinBlock .w1400 { display: flex; flex-wrap: wrap; padding-top: 50px; } .chanpinBlock .w1400 .cont { display: flex; flex-wrap: wrap; width: 100%; } .chanpinBlock .w1400 .list { width: 30.7142857143%; padding-bottom: 34px; margin-left: 3.9285714286%; } .chanpinBlock .w1400 .list:nth-child(3n+1) { margin-left: 0; } .chanpinBlock .w1400 .list .img { width: 100%; height: 323px; display: flex; align-items: center; justify-content: center; background: #fff; position: relative; } .chanpinBlock .w1400 .list .img img { max-width: 80%; max-height: 80%; } .chanpinBlock .w1400 .list .img .posi { width: 100%; height: 100%; position: absolute; background: rgba(0, 0, 0, 0.5); display: flex; opacity: 0; justify-content: center; flex-direction: column; padding: 0 46px; overflow: hidden; } .chanpinBlock .w1400 .list .img .posi p { font-size: 16px; line-height: 2; color: #fff; display: flex; flex-wrap: wrap; } .chanpinBlock .w1400 .list .img .posi .border-top, .chanpinBlock .w1400 .list .img .posi .border-bottom { width: 93.023255814%; height: 1px; background: rgba(255, 255, 255, 0.5); position: absolute; } .chanpinBlock .w1400 .list .img .posi .border-left, .chanpinBlock .w1400 .list .img .posi .border-right { height: 91.9504643963%; width: 1px; background: rgba(255, 255, 255, 0.5); position: absolute; } .chanpinBlock .w1400 .list .img .posi .border-top { top: 4.0247678019%; left: -100%; transition: all 0.8s; } .chanpinBlock .w1400 .list .img .posi .border-right { right: 3.488372093%; top: -100%; transition: all 0.8s; } .chanpinBlock .w1400 .list .img .posi .border-bottom { bottom: 4.0247678019%; right: -100%; transition: all 0.8s; } .chanpinBlock .w1400 .list .img .posi .border-left { left: 3.488372093%; bottom: -100%; transition: all 0.8s; } .chanpinBlock .w1400 .list .tit { font-size: 24px; line-height: 32px; letter-spacing: 2px; color: #000; margin-top: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chanpinBlock .w1400 .list .tips { font-size: 16px; line-height: 2; color: #737373; margin-top: 10px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .chanpinBlock .w1400 .list:hover .img .posi { opacity: 1; } .chanpinBlock .w1400 .list:hover .img .posi .border-top { left: 3.488372093%; } .chanpinBlock .w1400 .list:hover .img .posi .border-right { top: 4.0247678019%; } .chanpinBlock .w1400 .list:hover .img .posi .border-bottom { right: 3.488372093%; } .chanpinBlock .w1400 .list:hover .img .posi .border-left { bottom: 4.0247678019%; } @media (max-width: 1100px) { .chanpinBlock .w1400 .list .img .posi { padding: 30px; } } @media (max-width: 996px) { .chanpinBanner { height: 450px; } .chanpinBanner > img { min-height: auto; } .chanpinTab .w1400 ul li { min-width: 100px; } .chanpinTab .w1400 ul li a { padding: 0 20px; font-size: 16px; line-height: 46px; } .chanpinBlock { padding-bottom: 0; } .chanpinBlock .w1400 { justify-content: space-between; padding-bottom: 0; } .chanpinBlock .w1400 .list { width: calc((100% - 30px) / 2); margin: 0; } .chanpinBlock .w1400 .list:hover .img .posi { opacity: 0; } .chanpinBlock .w1400 .list:hover .img .posi .border-top { left: 50%; transform: translateX(-50%); right: auto; } .chanpinBlock .w1400 .list:hover .img .posi .border-right { top: 50%; transform: translateY(-50%); } .chanpinBlock .w1400 .list:hover .img .posi .border-bottom { left: 50%; transform: translateX(-50%); } .chanpinBlock .w1400 .list:hover .img .posi .border-left { top: 50%; transform: translateY(-50%); } .chanpinBlock .w1400 .list .img .posi { padding: 30px; } .chanpinBlock .w1400 .list .img .posi .border-top { left: 50%; transform: translateX(-50%); right: auto; } .chanpinBlock .w1400 .list .img .posi .border-right { top: 50%; transform: translateY(-50%); } .chanpinBlock .w1400 .list .img .posi .border-bottom { left: 50%; transform: translateX(-50%); } .chanpinBlock .w1400 .list .img .posi .border-left { top: 50%; transform: translateY(-50%); } } @media (max-width: 500px) { .chanpinBanner .w1400 .logo img { max-height: 30px; } .chanpinBanner .w1400 .logo span { font-size: 28px; } .chanpinBanner .w1400 .logo span::after { height: 30px; } .chanpinBanner .w1400 .tips { font-size: 14px; margin-top: 20px; } .chanpinTab .w1400 { display: none; } .chanpinTabMob { display: block; } .chanpinTabMob .swiper .swiper-wrapper .swiper-slide a { display: block; text-align: center; font-size: 14px; line-height: 3; color: #666; } .chanpinTabMob .swiper .swiper-wrapper .swiper-slide.on a { color: #fff; background: #d50b0a; } .chanpinBlock .w1400 { padding: 50px 0px; } .chanpinBlock .w1400 .list { width: 100%; } .chanpinBlock .w1400 .list .img { height: 260px; } .chanpinBlock .w1400 .list .tit { font-size: 18px; line-height: 1.8; margin-top: 15px; } .chanpinBlock .w1400 .list .tips { font-size: 14px; line-height: 1.6; margin-top: 5px; } }/*# sourceMappingURL=chanpin.css.map */