799 lines
14 KiB
SCSS
799 lines
14 KiB
SCSS
// 默认样式清除
|
||
body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, li, a, p, h1, h2, h3, h4,h5, h6, i, b, textarea, button, input, select, figure, figcaption{
|
||
padding: 0;
|
||
margin: 0;
|
||
list-style: none;
|
||
font-style: normal;
|
||
text-decoration: none;
|
||
border: none;
|
||
font-weight: normal;
|
||
font-family: MiSans-Normal;
|
||
box-sizing: border-box;
|
||
-webkit-tap-highlight-color:transparent;
|
||
-webkit-font-smoothing: antialiased;
|
||
&:hover{
|
||
outline: none;
|
||
}
|
||
}
|
||
a {
|
||
color: inherit;
|
||
}
|
||
ul,
|
||
ol,
|
||
li {
|
||
list-style-type: none;
|
||
}
|
||
a {
|
||
text-decoration: none;
|
||
outline: none;
|
||
color: #333;
|
||
cursor: pointer;
|
||
}
|
||
a:focus {
|
||
outline: none;
|
||
-moz-outline: none;
|
||
}
|
||
a img {
|
||
border: none;
|
||
}
|
||
select,
|
||
input,
|
||
textarea {
|
||
border-radius: 0;
|
||
-webkit-border-radius: 0;
|
||
}
|
||
input:focus {
|
||
outline: none;
|
||
}
|
||
input,
|
||
button,
|
||
select,
|
||
textarea {
|
||
outline: none;
|
||
}
|
||
textarea {
|
||
resize: none;
|
||
}
|
||
textarea,
|
||
input,
|
||
select {
|
||
background: none;
|
||
border: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
table {
|
||
background-color: transparent;
|
||
border-spacing: 0;
|
||
border-collapse: collapse;
|
||
font-size: 0.75em;
|
||
width: 100%;
|
||
border-top: solid 1px #ddd;
|
||
border-left: solid 1px #ddd;
|
||
box-sizing: border-box;
|
||
}
|
||
table th {
|
||
background-color: #f9f9f9;
|
||
text-align: center;
|
||
box-sizing: border-box;
|
||
}
|
||
table td,
|
||
table th {
|
||
padding: 5px 10px;
|
||
border: 1px solid #ddd;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
input[type="button"],
|
||
input[type="submit"],
|
||
input[type="file"],
|
||
button {
|
||
cursor: pointer;
|
||
-webkit-appearance: none;
|
||
}
|
||
img {
|
||
vertical-align: middle;
|
||
}
|
||
|
||
html{
|
||
font-size: calc(100 * 100vw / 1920) !important;
|
||
min-height: 100vh;
|
||
}
|
||
|
||
|
||
html,body{
|
||
height: 100%;
|
||
width: 100%;
|
||
font-family: MiSans-Regular;
|
||
user-select: text;
|
||
font-size: 0.16rem;
|
||
color: #3f4552;
|
||
line-height: 1.8;
|
||
}
|
||
/* **************滚动条*****************/
|
||
html::-webkit-scrollbar {
|
||
overflow: hidden;
|
||
/* 高宽分别对应纵横向滚动条 */
|
||
width: 8px;
|
||
height: 8px;
|
||
@media (max-width:750px) {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
html::-webkit-scrollbar-track {
|
||
/*滚动条里面轨道*/
|
||
box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
|
||
border-radius: 5px;
|
||
background: #ededed;
|
||
}
|
||
|
||
html::-webkit-scrollbar-thumb {
|
||
background: #262729;
|
||
}
|
||
|
||
image {
|
||
border: 0;
|
||
vertical-align: middle;
|
||
max-width: 100%
|
||
}
|
||
|
||
.define-topBar__components {
|
||
position: fixed;
|
||
top: 0;
|
||
width: 100%;
|
||
z-index: 10000;
|
||
}
|
||
|
||
.autowidth {
|
||
width: 18rem;
|
||
margin: auto;
|
||
max-width: 90%;
|
||
@media (max-width: 1366px) {
|
||
width: auto;
|
||
}
|
||
}
|
||
|
||
// 动画
|
||
.animationDH {
|
||
opacity: 0;
|
||
}
|
||
|
||
.animateLt {
|
||
animation: 1s dh_left linear both;
|
||
-webkit-animation: 1s dh_left linear both;
|
||
}
|
||
.animateRt {
|
||
animation: 1s dh_right linear both;
|
||
-webkit-animation: 1s dh_right linear both;
|
||
}
|
||
.animateBt {
|
||
animation: 1s dh_buttom linear both;
|
||
-webkit-animation: 1s dh_buttom linear both;
|
||
}
|
||
// 首页专用
|
||
.dhLeft {
|
||
// opacity: 0;
|
||
-webkit-opacity: 0;
|
||
transform: translate(75px, 0);
|
||
-webkit-transform: translate(75px, 0);
|
||
transition: 1s;
|
||
-webkit-transition: 1s;
|
||
}
|
||
.dhRight {
|
||
// opacity: 0;
|
||
-webkit-opacity: 0;
|
||
transform: translate(-45px, 0);
|
||
-webkit-transform: translate(-45px, 0);
|
||
transition: 1s;
|
||
-webkit-transition: 1s;
|
||
}
|
||
|
||
.dhTop {
|
||
// opacity: 0;
|
||
// -webkit-opacity: 0;
|
||
transform: translate(0, 45px);
|
||
-webkit-transform: translate(0, 45px);
|
||
transition: transform 1s;
|
||
-webkit-transition: transform 1s;
|
||
}
|
||
|
||
.dhBottom {
|
||
// opacity: 0;
|
||
-webkit-opacity: 0;
|
||
transform: translate(0, -45px);
|
||
-webkit-transform: translate(0, -45px);
|
||
transition: 1s;
|
||
-webkit-transition: 1s;
|
||
}
|
||
// 四档
|
||
.dhyc1 {
|
||
transition-delay: 0.25s;
|
||
-webkit-transition-delay: 0.25s;
|
||
}
|
||
|
||
.dhyc2 {
|
||
transition-delay: 0.5s;
|
||
-webkit-transition-delay: 0.5s;
|
||
}
|
||
|
||
.dhyc3 {
|
||
transition-delay: 0.75s;
|
||
-webkit-transition-delay: 0.75s;
|
||
}
|
||
|
||
.dhyc4 {
|
||
transition-delay: 1s;
|
||
-webkit-transition-delay: 1s;
|
||
}
|
||
// 右边
|
||
@-webkit-keyframes dh_right {
|
||
from {
|
||
opacity: 0;
|
||
-webkit-transform: translate(60px, 0%);
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
-webkit-transform: translate(0, 0);
|
||
}
|
||
}
|
||
|
||
@keyframes dh_right {
|
||
from {
|
||
opacity: 0;
|
||
transform: translate(60px, 0%);
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
transform: translate(0, 0);
|
||
}
|
||
}
|
||
// 左边
|
||
@-webkit-keyframes dh_left {
|
||
from {
|
||
opacity: 0;
|
||
-webkit-transform: translate(-60px, 0%);
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
-webkit-transform: translate(0, 0);
|
||
}
|
||
}
|
||
|
||
@keyframes dh_left {
|
||
from {
|
||
opacity: 0;
|
||
transform: translate(-60px, 0%);
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
transform: translate(0, 0);
|
||
}
|
||
}
|
||
|
||
// 底部
|
||
@-webkit-keyframes dh_buttom {
|
||
from {
|
||
opacity: 0;
|
||
-webkit-transform: translate(0, 60px);
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
-webkit-transform: translate(0, 0);
|
||
}
|
||
}
|
||
|
||
@keyframes dh_buttom {
|
||
from {
|
||
opacity: 0;
|
||
transform: translate(0, 60px);
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
transform: translate(0, 0);
|
||
}
|
||
}
|
||
|
||
/*页面banner部分*/
|
||
.banner {
|
||
margin-top: 0; // 移除固定margin-top,让banner紧贴导航栏
|
||
overflow: hidden;
|
||
@media (max-width:1600px) {
|
||
margin-top: 0;
|
||
}
|
||
@media (max-width:1099px) {
|
||
margin-top: 0; // 移除这里的50px,避免重复间距
|
||
}
|
||
height:5.5rem;
|
||
background-size: cover !important;
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
box-pack: center;
|
||
justify-content: center;
|
||
min-height: 230px;
|
||
|
||
@media (max-width: 1100px) {
|
||
height: 7.5rem;
|
||
}
|
||
@media (max-width: 800px) {
|
||
height: 10rem;
|
||
}
|
||
&__box {
|
||
width: 100%;
|
||
text-align: center;
|
||
color: #fff;
|
||
animation: 1s dh_buttom linear both;
|
||
-webkit-animation: 1s dh_buttom linear both;
|
||
|
||
&__title {
|
||
font-size: 0.36rem;
|
||
color: #fff;
|
||
text-align: center;
|
||
}
|
||
|
||
&__subtitle {
|
||
font-size: 0.2rem;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
@media (min-width: 751px) and (max-width: 1100px) {
|
||
&__title {
|
||
font-size: 0.5rem;
|
||
}
|
||
|
||
&__subtitle {
|
||
font-size: 0.3rem;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 750px) {
|
||
&__title {
|
||
font-size: 0.75rem;
|
||
}
|
||
|
||
&__subtitle {
|
||
font-size: 0.55rem;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 550px) {
|
||
&__title {
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
&__subtitle {
|
||
font-size: 0.65rem;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.pageMain {
|
||
overflow: hidden;
|
||
&__breads {
|
||
color: #666;
|
||
width: auto;
|
||
margin: 0 auto;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
|
||
&__box {
|
||
width: 12rem;
|
||
color: #666;
|
||
line-height: 4;
|
||
text-align: left;
|
||
&__icon{
|
||
&__avater{
|
||
width: 0.17rem;
|
||
height: 0.17rem;
|
||
margin-bottom: 0.03rem;
|
||
}
|
||
}
|
||
|
||
@media (max-width:1600px) {
|
||
width: 15rem;
|
||
font-size: 13.5px;
|
||
line-height: 3.2;
|
||
&__icon{
|
||
&__avater{
|
||
width: 15px;
|
||
height: 15px;
|
||
margin-bottom: 3px;
|
||
}
|
||
}
|
||
}
|
||
|
||
a{
|
||
font-family: MiSans-Medium;
|
||
letter-spacing: 0.5px;
|
||
cursor: pointer;
|
||
@media (min-width:1100px) {
|
||
&:hover{
|
||
color: #0072ff;
|
||
}
|
||
}
|
||
}
|
||
|
||
@media (max-width:1024px) {
|
||
font-size: 13px;
|
||
width: 95%;
|
||
}
|
||
@media (max-width:500px) {
|
||
font-size: 0.6rem;
|
||
&__icon{
|
||
&__avater{
|
||
width: 0.68rem;
|
||
height: 0.68rem;
|
||
}
|
||
}
|
||
}
|
||
|
||
@media (max-width:350px) {
|
||
font-size: 0.7rem;
|
||
}
|
||
}
|
||
}
|
||
|
||
&__line {
|
||
position: relative;
|
||
text-align: center;
|
||
display: flex;
|
||
-webkit-box-pack: center;
|
||
-ms-flex-pack: center;
|
||
justify-content: center;
|
||
-webkit-justify-content: center;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
padding: 0.1rem 0 0.2rem;
|
||
margin-bottom: 0.5rem;
|
||
@media (max-width: 600px) {
|
||
padding: 0.5rem 0;
|
||
}
|
||
|
||
&__item {
|
||
margin: 0 1rem;
|
||
position: relative;
|
||
padding: 0.1rem 0;
|
||
text-align: center;
|
||
font-size: 0.18rem;
|
||
font-family: MiSans-Normal;
|
||
cursor: pointer;
|
||
@media (max-width:1600px) {
|
||
font-size: 15.5px;
|
||
}
|
||
|
||
@media (min-width: 501px) and (max-width: 1100px) {
|
||
font-size: 14px;
|
||
}
|
||
|
||
@media (max-width: 500px) {
|
||
font-size: 0.6rem;
|
||
}
|
||
|
||
@media (max-width: 350px) {
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
&::before {
|
||
position: absolute;
|
||
left: 15%;
|
||
content: "";
|
||
bottom: 0;
|
||
height: 3px;
|
||
border-radius: 5px;
|
||
background: #0072ff;
|
||
width: 0;
|
||
transition: 0.5s;
|
||
|
||
@media (max-width: 700px) {
|
||
height: 1px;
|
||
}
|
||
}
|
||
|
||
&:hover::before {
|
||
width: 70%;
|
||
}
|
||
}
|
||
|
||
&--on {
|
||
color: #0072ff;
|
||
font-weight: 500;
|
||
|
||
&::before {
|
||
width: 70%;
|
||
}
|
||
}
|
||
}
|
||
&__buttom-line {
|
||
padding: 0.36 0 0.7rem;
|
||
}
|
||
}
|
||
// 粘性导航栏样式
|
||
.sticky-page-layout {
|
||
position: relative;
|
||
min-height: 100vh;
|
||
}
|
||
|
||
@mixin sticky-nav-style {
|
||
line-height: 3;
|
||
@media (max-width: 1500px) {
|
||
height: auto;
|
||
line-height: 3.5;
|
||
font-size: 0.22rem;
|
||
}
|
||
@media (max-width: 1200px) {
|
||
height: auto;
|
||
line-height: 3.5;
|
||
font-size: 0.24rem;
|
||
}
|
||
@media (max-width: 850px) {
|
||
font-size: 0.42rem;
|
||
}
|
||
@media (max-width: 650px) {
|
||
line-height: 3.5;
|
||
font-size: 0.5rem;
|
||
}
|
||
@media (max-width: 500px) {
|
||
line-height: 3.5;
|
||
font-size: 0.63rem;
|
||
}
|
||
}
|
||
.nav-sticky {
|
||
@include sticky-nav-style;
|
||
top: 0px;
|
||
position: absolute;
|
||
z-index: 99;
|
||
width: 100%;
|
||
|
||
&__center {
|
||
width: 1200px;
|
||
@media (max-width: 1200px) {
|
||
width: 100%;
|
||
}
|
||
margin: 0 auto;
|
||
transition: width 0.3s;
|
||
color: #ffffff;
|
||
display: flex;
|
||
border-bottom: 1px solid hsla(0, 0%, 100%, 0.24);
|
||
justify-content: space-between;
|
||
font-family: MiSans-Regular;
|
||
|
||
&__left {
|
||
font-size: 0.17rem;
|
||
font-family: MiSans-Bold;
|
||
@include sticky-nav-style;
|
||
@media (max-width: 1200px) {
|
||
margin-left: 0.6rem;
|
||
}
|
||
}
|
||
|
||
&__right {
|
||
display: flex;
|
||
width: fit-content;
|
||
@include sticky-nav-style;
|
||
font-size: 0.15rem;
|
||
justify-content: space-between;
|
||
cursor: pointer;
|
||
box-sizing: border-box;
|
||
@media (max-width: 1200px) {
|
||
margin-right: 0.6rem;
|
||
}
|
||
|
||
&__item {
|
||
margin: 0 0.2rem;
|
||
opacity: 0.6;
|
||
@media (max-width:600px) {
|
||
margin: 0 0.4rem;
|
||
// display: none;
|
||
}
|
||
&:hover {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
&--Active {
|
||
opacity: 1;
|
||
border-bottom: 0.01rem solid #fff;
|
||
}
|
||
|
||
&__dropdown {
|
||
position: relative;
|
||
display: none;
|
||
// @media (max-width:600px) {
|
||
// display: block;
|
||
// }
|
||
&__up {
|
||
@include sticky-nav-style;
|
||
background-color: transparent;
|
||
color: #fff;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
margin-right: 15px;
|
||
.arrow-down{
|
||
width: 30px;
|
||
text-align: center;
|
||
font-size: 8px;
|
||
}
|
||
}
|
||
&__menu {
|
||
position: absolute;
|
||
top: 100%;
|
||
left: -50%;
|
||
background-color: #222;
|
||
border-radius: 5px;
|
||
margin-top: 10px;
|
||
box-shadow: 0 .04rem .1rem .02rem rgba(0, 0, 0, .08);
|
||
z-index: 1;
|
||
width: 150%;
|
||
padding: 20px 0;
|
||
&__item {
|
||
color: #919191;
|
||
cursor: pointer;
|
||
text-align: center;
|
||
&--Active{
|
||
color: #0072ff;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.nav-sticky--active {
|
||
top: 0;
|
||
width: 100%;
|
||
position: sticky;
|
||
background-color: rgba(3, 6, 11, 0.4);
|
||
border-bottom: 1px solid hsla(0, 5%, 92%, 0.2);
|
||
|
||
.nav-sticky__center {
|
||
border-bottom: none;
|
||
}
|
||
}
|
||
|
||
// N051,N052公共的banner
|
||
.detail-banner {
|
||
width: 100%;
|
||
height: 10.8rem;
|
||
color: #ffffff;
|
||
position: relative;
|
||
&__title {
|
||
font-family: MiSans-Medium;
|
||
position: absolute;
|
||
font-size: 0.55rem;
|
||
top: 1.5rem;
|
||
left: 50%;
|
||
width: 90%;
|
||
text-align: center;
|
||
transform: translate(-50%, 0);
|
||
}
|
||
&__avater {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
@media (max-width: 850px) {
|
||
padding-top: 2rem;
|
||
height: 12.8rem;
|
||
&__title {
|
||
font-size: 0.8rem;
|
||
top: 3.8rem;
|
||
}
|
||
&__title-2 {
|
||
font-size: 0.8rem;
|
||
top: 3.2rem;
|
||
}
|
||
}
|
||
}
|
||
/* 遮罩 */
|
||
.load-mask {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background-color: #ffffff;
|
||
display: flex;
|
||
justify-content: center;
|
||
z-index: 10002;
|
||
.spinner {
|
||
width: 150px;
|
||
text-align: center;
|
||
margin-top: 20vh;
|
||
.spinner__item {
|
||
width: 15px;
|
||
height: 15px;
|
||
// background-color: #b89dfe;
|
||
background-color: #aeadba;
|
||
border-radius: 100%;
|
||
display: inline-block;
|
||
animation: bouncedelay 1.4s infinite ease-in-out;
|
||
-webkit-animation-fill-mode: both;
|
||
animation-fill-mode: both;
|
||
// &:nth-child(2){
|
||
// background-color: #2e6ee7;
|
||
// }
|
||
}
|
||
.bounce1 {
|
||
-webkit-animation-delay: -0.32s;
|
||
animation-delay: -0.32s;
|
||
}
|
||
.bounce2 {
|
||
-webkit-animation-delay: -0.16s;
|
||
animation-delay: -0.16s;
|
||
}
|
||
}
|
||
@keyframes bouncedelay {
|
||
0%,
|
||
80%,
|
||
100% {
|
||
transform: scale(0.0);
|
||
}
|
||
|
||
40% {
|
||
transform: scale(1.0);
|
||
}
|
||
}
|
||
}
|
||
|
||
// 产品、新闻用的loading
|
||
.load-loading{
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
height: 35vh;
|
||
&__box{
|
||
width: 200px;
|
||
height: auto;
|
||
color: #aeadba;
|
||
text-align: center;
|
||
&__up{
|
||
width: 55px;
|
||
margin: auto;
|
||
&__avater{
|
||
width: 100%;
|
||
height: auto;
|
||
}
|
||
}
|
||
&__text{
|
||
font-size: 16px;
|
||
line-height: 3;
|
||
}
|
||
@media (max-width:1024px) {
|
||
&__up{
|
||
width: 47px;
|
||
}
|
||
&__text{
|
||
font-size: 11px;
|
||
}
|
||
}
|
||
@media (min-width:1920px) {
|
||
width: 2rem;
|
||
height: 1rem;
|
||
&__up{
|
||
width: 0.55rem;
|
||
}
|
||
&__text{
|
||
font-size: 0.14rem;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
@mixin isAnimatingStyle {
|
||
transform: translateY(11.71rpx);
|
||
opacity: 0;
|
||
}
|
||
|
||
//加载类名
|
||
[class*="is-animating-"] {
|
||
@include isAnimatingStyle;
|
||
}
|