.yx_ani * { transition: all 0.5s; -moz-transition: all 0.5s; /* Firefox 4 */ -webkit-transition: all 0.5s; /* Safari 和 Chrome */ -o-transition: all 0.5s; /* Opera */ } .yx_ani *:before { transition: all 0.5s; -moz-transition: all 0.5s; /* Firefox 4 */ -webkit-transition: all 0.5s; /* Safari 和 Chrome */ -o-transition: all 0.5s; /* Opera */ } .yx_ani *:after { transition: all 0.5s; -moz-transition: all 0.5s; /* Firefox 4 */ -webkit-transition: all 0.5s; /* Safari 和 Chrome */ -o-transition: all 0.5s; /* Opera */ } .yx_clearfix:before, .yx_clearfix:after { display: table; clear: both; content: ""; } .yx_flex { display: -webkit-box; /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */ display: -moz-box; /* 老版本语法: Firefox (buggy) */ display: -ms-flexbox; /* 混合版本语法: IE 10 */ display: -webkit-flex; /* 新版本语法: Chrome 21+ */ display: flex; /* 新版本语法: Opera 12.1, Firefox 22+ */ -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; -moz-flex-wrap: nowrap; flex-wrap: nowrap; } .yx_flexWrap { display: -webkit-box; /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */ display: -moz-box; /* 老版本语法: Firefox (buggy) */ display: -ms-flexbox; /* 混合版本语法: IE 10 */ display: -webkit-flex; /* 新版本语法: Chrome 21+ */ display: flex; /* 新版本语法: Opera 12.1, Firefox 22+ */ -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; -moz-flex-wrap: wrap; flex-wrap: wrap; } .yx_flexJbetween { -webkit-box-pack: justify; -moz-justify-content: space-between; -webkit-justify-content: space-between; justify-content: space-between; } .yx_flexJend { -webkit-box-pack: end; -moz-justify-content: flex-end; -webkit-justify-content: flex-end; justify-content: flex-end; } .yx_flexJcenter { -webkit-box-pack: center; -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; } .yx_flexAend { -webkit-align-items: flex-end; align-items: flex-end; } .yx_flexAcenter { -webkit-box-align: center; -moz-align-items: center; -webkit-align-items: center; align-items: center; } .yx_flexDrowC{ flex-direction: row-reverse; } .yx_Img{ position:relative; width:100%; overflow: hidden; } .yx_ImgCover img{ object-fit: cover; } .yx_ImgContain{ position: relative; height: 100%; } .yx_ImgContain img{ object-fit: contain; width: auto; height: auto; top: 50%; left: 50%; transform: translate(-50%,-50%); max-width: 100%; max-height: 100%; position: absolute; } .yx_Img img{ position: absolute; min-width: 100%; min-height: 100%; max-width:150%; max-height:150%; left: 50%; top:50%; transform: translate(-50%,-50%); transition: all 0.5s; } @media only screen and (min-width:769px) { .yx_List4 { display: block; width: calc((100% - 60px) / 4); margin-right: 20px; margin-bottom: 20px; } .yx_List4:nth-child(4n) { margin-right: 0; } .yx_List3 { display: block; width: calc((100% - 60px) / 3); margin-right: 30px; margin-bottom: 30px; } .yx_List3:nth-child(3n) { margin-right: 0; } } @media only screen and (max-width:768px) { .yx_List3 { display: block; width: 100% !important; margin-right: 0px; margin-bottom: 18px; } .yx_List4 { display: block; width: calc((100% - 10px) / 2) !important; margin-right: 10px; margin-bottom: 10px; } .yx_List4:nth-child(2n) { margin-right: 0; } } .yx_clear{ clear: both; } .yx_floatL{ float:left; } .yx_floatR{ float:right; } .yx_proR{ position: relative; } .yx_proA{ position: absolute; } .yx_proR_pad{ position: relative; height: 0; } .yx_Title{ display:block; overflow:hidden; -webkit-box-orient:vertical; text-overflow:ellipsis; white-space : nowrap; } .yx_Summary{ display:-webkit-box; overflow:hidden; -webkit-line-clamp:2; -webkit-box-orient:vertical; text-overflow:ellipsis; } .yx_More{ position: absolute; z-index: 2; top: 0; width: 100%; height: 100%; } .p_ProductDetail img, .p_NewsDetail img ,.p_contentBox img{ max-width: 100%; } .p_content .reset_style { line-height:2; } .btn-primary:active:hover, .btn-primary.active:hover, .open > .dropdown-toggle.btn-primary:hover, .btn-primary:active:focus, .btn-primary.active:focus, .open > .dropdown-toggle.btn-primary:focus, .btn-primary:active.focus, .btn-primary.active.focus, .open > .dropdown-toggle.btn-primary.focus .p_pagebox .next, .p_pagebox .pre { background-color: #060606; } /*加载动效 topshow(从上往下)yx_LeftShow (从左往右) */ .delighter{ overflow:hidden; position:relative; } .yx_TopShow.delighter:before{ width:100%; position:absolute; height:100%; top:0; left:0; transform: translateY(0%); display:block; background:#fff; z-index:10; content:""; transition: 1s cubic-bezier(0.68, 0.54, 0.14, 0.96) 0.5s; } .yx_TopShow.started.delighter:before{ transform: translateY(100%); } .yx_LeftShow.delighter:before{ width:100%; position:absolute; height:100%; top:0; left:0; transform: translateX(0%); display:block; background:#272727; z-index:10; content:""; transition: 1s cubic-bezier(0.68, 0.54, 0.14, 0.96) 0.5s; } .yx_LeftShow.started.delighter:before{ transform: translateX(100%); } .yx_RightShow.delighter:before{ width:100%; position:absolute; height:100%; top:0; left:0; transform: translateX(0%); display:block; background:#272727; z-index:10; content:""; transition: 1s cubic-bezier(0.68, 0.54, 0.14, 0.96) 0.5s; } .yx_RightShow.started.delighter:before{ transform: translateX(-100%); } .yx_BottomShow.delighter:before{ width:100%; position:absolute; height:100%; top:0; left:0; transform: translateX(0%); display:block; background:#fff; z-index:10; content:""; transition: 1s cubic-bezier(0.68, 0.54, 0.14, 0.96) 0.5s; } .yx_BottomShow.started.delighter:before{ transform: translateY(-100%); } /*加载动效结束*/ /*开屏动画样式*/ .page-preloader { visibility: visible; position: fixed; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; opacity: 1; z-index: 20; background-color: #fff; -webkit-transition: .5s; transition: .5s } .page-preloader--hide { visibility: hidden; opacity: 0 } .page-preloader__wrap { position: relative; height: 100% } .page-preloader__background-text { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%) } .page-preloader__main-text { position: relative; height: 300px; line-height: normal; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; -webkit-animation-duration: 6s; animation-duration: 6s; -webkit-animation-name: fadeIn; animation-name: fadeIn; -webkit-animation-timing-function: ease; animation-timing-function: ease } .page-preloader__logo { position: absolute; display: -webkit-box; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-flow: column nowrap; -webkit-box-align: start; align-items: flex-start; -webkit-box-pack: center; justify-content: center; top: 50%; left: 50%; width: 230px; height: 90px; padding-left: 12.8px; overflow: hidden; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%) } .page-preloader__logo--show .page-preloader__rect:nth-child(1) { -webkit-animation-delay: calc(.3s * 1); animation-delay: calc(.3s * 1) } .page-preloader__logo--show .page-preloader__rect:nth-child(2) { -webkit-animation-delay: calc((.3s * 2) - .2s); animation-delay: calc((.3s * 2) - .2s) } .page-preloader__logo--show .page-preloader__rect:nth-child(3) { -webkit-animation-delay: calc((.3s * 3) - .2s); animation-delay: calc((.3s * 3) - .2s) } .page-preloader__logo--show .page-preloader__rect { -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; -webkit-animation-duration: 6s; animation-duration: 6s; -webkit-animation-name: animateLogo; animation-name: animateLogo; -webkit-animation-timing-function: ease; animation-timing-function: ease } .page-preloader__rect { position: relative; width: 0; height: 9px; margin-bottom: 10px; background: #fff; -webkit-transition: .6s; transition: .6s } .page-preloader__rect:last-child { margin-bottom: 0 } .page-preloader__rect:after { content: ""; position: absolute; display: block; height: 12px; width: 12px; top: 3px; right: -6px; background: #000; -webkit-transform: rotate(45deg); transform: rotate(45deg) } .page-preloader__bottom-text { position: absolute; left: 50%; bottom: 20%; color: #000; font-size: 21px; font-family: "PF Din Text Cond Pro Bold", sans-serif; letter-spacing: 1px; -webkit-transform: translateX(-50%); transform: translateX(-50%); text-transform: uppercase; display:flex; align-items:center; flex-wrap:wrap; justify-content:center; } @-webkit-keyframes fadeIn { 0%, 100% { color: #fff } 50% { color: rgba(0, 0, 0, .05) } } @keyframes fadeIn { 0%, 100% { color: #fff } 50% { color: rgba(0, 0, 0, .05) } } @-webkit-keyframes animateTextBg { 0% { background-position: -100px 0 } 100%, 80% { background-position: calc(100% + 100px) 0 } } @keyframes animateTextBg { 0% { background-position: -100px 0 } 100%, 80% { background-position: calc(100% + 100px) 0 } } @-webkit-keyframes animateLogo { 0%, 100% { width: 0 } 10%, 90% { width: 80% } } @keyframes animateLogo { 0%, 100% { width: 0 } 10%, 90% { width: 80% } } /*结束*/