// 默认样式清除
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-Regular;
  box-sizing: border-box;
  -webkit-tap-highlight-color:transparent;
  -webkit-font-smoothing: antialiased;
  &:hover{
    outline: none;
  }
}

// 字体系统定义
:root {
  --font-light: MiSans-Light;
  --font-normal: MiSans-Normal;
  --font-regular: MiSans-Regular;
  --font-medium: MiSans-Medium;
  --font-semibold: MiSans-SemiBold;
  --font-bold: MiSans-Bold;
  
  // 字体大小系统
  --text-xs: 0.12rem;    // 12px
  --text-sm: 0.14rem;    // 14px
  --text-base: 0.16rem;  // 16px
  --text-lg: 0.18rem;    // 18px
  --text-xl: 0.20rem;    // 20px
  --text-2xl: 0.24rem;   // 24px
  --text-3xl: 0.28rem;   // 28px
  --text-4xl: 0.32rem;   // 32px
  --text-5xl: 0.36rem;   // 36px
  --text-6xl: 0.40rem;   // 40px
  
  // 响应式断点
  --breakpoint-xs: 375px;
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1440px;
  --breakpoint-2xl: 1920px;
  --breakpoint-4k: 2560px;
}

// 基础样式
a {
   color: inherit;
}

ul, ol, li {
  list-style-type: none;
}

a {
  text-decoration: none;
  outline: none;
  color: #333;
  cursor: pointer;
  font-family: var(--font-regular);
}

a:focus {
  outline: none;
  -moz-outline: none;
}

a img {
  border: none;
}

select, input, textarea {
  border-radius: 0;
  -webkit-border-radius: 0;
  font-family: var(--font-regular);
}

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;
  font-family: var(--font-regular);
}

img {
  vertical-align: middle;
}

// 响应式根字体大小
html {
  font-size: calc(100 * 100vw / 1920) !important;
  min-height: 100vh;
  
  // 4K 和超大屏幕
  @media (min-width: 2560px) {
    font-size: calc(100 * 100vw / 2560) !important;
  }
  
  // 1920px 屏幕
  @media (min-width: 1920px) and (max-width: 2559px) {
    font-size: calc(100 * 100vw / 1920) !important;
  }
  
  // 1440px 屏幕
  @media (min-width: 1440px) and (max-width: 1919px) {
    font-size: calc(100 * 100vw / 1440) !important;
  }
  
  // 1024px 屏幕
  @media (min-width: 1024px) and (max-width: 1439px) {
    font-size: calc(100 * 100vw / 1024) !important;
  }
  
  // 768px 屏幕
  @media (min-width: 768px) and (max-width: 1023px) {
    font-size: calc(100 * 100vw / 768) !important;
  }
  
  // 480px 屏幕
  @media (min-width: 480px) and (max-width: 767px) {
    font-size: calc(100 * 100vw / 480) !important;
  }
  
  // 375px 屏幕
  @media (max-width: 479px) {
    font-size: calc(100 * 100vw / 375) !important;
  }
}

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--font-regular);
  user-select: text;
  font-size: var(--text-base);
  color: #3f4552;
  line-height: 1.8;
}

/* 滚动条样式 */
/* 移动端隐藏滚动条 */
@media (max-width: 750px) {
  html::-webkit-scrollbar {
    display: none;
  }
  
  html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
}

/* 桌面端滚动条样式 */
@media (min-width: 751px) {
  ::-webkit-scrollbar {
    width: 12px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    // border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    // border-radius: 4px;
    
    &:hover {
      background: #a8a8a8;
    }
  }
}

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;
  }
}

// 容器类
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  
  // 4K 和超大屏幕
  @media (min-width: 2560px) {
    max-width: 1800px;
    padding: 0 80px;
  }

  @media (min-width: 1920px) and (max-width: 2559px) {
    max-width: 1500px;
    padding: 0 60px;
  }

  @media (min-width: 1440px) and (max-width: 1919px) {
    max-width: 1300px;
    padding: 0 40px;
  }

  @media (max-width: 1024px) {
    padding: 0 30px;
  }
  
  @media (max-width: 768px) {
    padding: 0 20px;
  }

  @media (max-width: 480px) {
    padding: 0 16px;
  }

  @media (max-width: 375px) {
    padding: 0 12px;
  }
}

// 容器类
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  
  // 4K 和超大屏幕
  @media (min-width: 2560px) {
    max-width: 1800px;
    padding: 0 80px;
  }

  @media (min-width: 1920px) and (max-width: 2559px) {
    max-width: 1500px;
    padding: 0 60px;
  }

  @media (min-width: 1440px) and (max-width: 1919px) {
    max-width: 1300px;
    padding: 0 40px;
  }

  @media (max-width: 1024px) {
    padding: 0 30px;
  }
  
  @media (max-width: 768px) {
    padding: 0 20px;
  }

  @media (max-width: 480px) {
    padding: 0 16px;
  }

  @media (max-width: 375px) {
    padding: 0 12px;
  }
}

// 动画系统
.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 {
  -webkit-opacity: 0;
  transform: translate(75px, 0);
  -webkit-transform: translate(75px, 0);
  transition: 1s;
  -webkit-transition: 1s;
}

.dhRight {
  -webkit-opacity: 0;
  transform: translate(-45px, 0);
  -webkit-transform: translate(-45px, 0);
  transition: 1s;
  -webkit-transition: 1s;
}

.dhTop {
  transform: translate(0, 45px);
  -webkit-transform: translate(0, 45px);
  transition: transform 1s;
  -webkit-transition: transform 1s;
}

.dhBottom {
  -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.52rem;
  overflow: hidden;
  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: 1600px) {
    margin-top: 0.6rem;
  }  
  @media (max-width: 1099px) {
    margin-top: 50px;
  }

  @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: var(--text-5xl);
        color: #fff;
        text-align: center;
        font-family: var(--font-medium);
      }

          &__subtitle {
        font-size: var(--text-xl);
        text-transform: uppercase;
        font-family: var(--font-light);
      }

    @media (min-width: 751px) and (max-width: 1100px) {
              &__title {
          font-size: var(--text-6xl);
        }

              &__subtitle {
          font-size: var(--text-3xl);
        }
    }

    @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: 15rem;
      color: #666;
      line-height: 4;
      text-align: left;            
      font-family: var(--font-regular);
      
      &__icon {
        &__avater {
          width: 0.17rem;
          height: 0.17rem;
          margin-bottom: 0.03rem;
        }
      }
            
      @media (max-width: 1600px) {
        font-size: 13.5px; 
        line-height: 3.2;
        &__icon {
          &__avater {
            width: 15px;
            height: 15px;
            margin-bottom: 3px;
          }
        }                	
      }
            
      a {				
        font-family: var(--font-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: var(--text-lg);
        font-family: var(--font-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.36rem 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: 9.8rem;
    @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: var(--font-regular);

    &__left {
      font-size: 0.17rem;
      font-family: "Microsoft YaHei";
      font-weight: 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;
        }
        &:hover {
          opacity: 1;
        }
      }
      
      &--Active {
        opacity: 1;
        border-bottom: 0.01rem solid #fff;
      }
	  
      &__dropdown {
        position: relative;
        display: none;
        
        &__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;
  }
}

// 产品详情页banner
.detail-banner {
  width: 100%;
  height: 10.8rem;
  color: #ffffff;
  position: relative;
  
  &__title {
    font-family: var(--font-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: #aeadba;  
      border-radius: 100%;
      display: inline-block;
      animation: bouncedelay 1.4s infinite ease-in-out;
      -webkit-animation-fill-mode: both;
      animation-fill-mode: both;
    }
    
    .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;
      font-family: var(--font-regular);
    }
    
    @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;
}

// 字体工具类
.font-light { font-family: var(--font-light); }
.font-normal { font-family: var(--font-normal); }
.font-regular { font-family: var(--font-regular); }
.font-medium { font-family: var(--font-medium); }
.font-semibold { font-family: var(--font-semibold); }
.font-bold { font-family: var(--font-bold); }

// 文本大小工具类
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
