* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 14px;
  user-select: none;
}

body {
  font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB',
    'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  height: 100%;
  color: black;
}

a {
  text-decoration: none;
  color: black;
  outline: none;
}

i {
  font-style: normal;
}

img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
  object-fit: cover;
}

ul {
  list-style: none;
}

body {
  overflow: auto;
  overflow-y: overlay;
}

/* 文本域取消下拉 */
textarea {
  resize: none !important;
  min-height: 100px !important;
}

/* 主题色 */
:root {
  --themeColor: #0068b7;
  --themeColor2: #0068b7;
}

/* 找不到页面 */
.noFindPage {
  padding-top: 100px;
  opacity: 0;
  transition: opacity 0.5s;
}

// 重置antd样式
#root {
  width: 100vw;
  height: 100vh;
  // min-width: 1600px;
  // min-height: 900px;
  overflow: auto;
  overflow-y: overlay;

  // pc端App组件的样式
  #App {
    width: 100%;
    height: 100%;
    position: relative;

    & > div {
      width: 100%;
      height: 100%;
    }
  }

  // 移动端AppM组件的样式
  #AppM {
    width: 100%;
    height: 100%;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;

    & > div {
      width: 100%;
      height: 100%;
    }

    .noFindPage {
      padding-top: 0;
    }
  }

  /* antd图片预览组件 */
  .ant-image {
    display: none;
  }

  // 走马灯样式
  .ant-carousel {
    width: 100%;
    height: 100%;

    .slick-slider,
    .slick-track,
    .slick-slide,
    .slick-list {
      width: 100%;
      height: 100%;
    }

    .slick-slide > div {
      width: 100%;
      height: 100%;
    }

    .adm-image {
      width: 100% !important;
      height: 100% !important;
    }
  }
}

[hidden] {
  display: none !important;
}

// 滚动条
.mySorrlNo::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 0px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 0px;
}

.mySorrlNo::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 5px transparent;
  background: transparent;
}

.mySorrlNo::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  -webkit-box-shadow: inset 0 0 5px transparent;
  border-radius: 10px;
  background: transparent;
}

// 滚动条
.mySorrl::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 5px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 5px;
}

.mySorrl::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 5px transparent;
  background: var(--themeColor2);
}

.mySorrl::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  -webkit-box-shadow: inset 0 0 5px transparent;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

#root {
  // 横屏 竖屏的切换
  #ScreenChange {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s;

    & > img {
      width: 200px;
    }

    & > p {
      margin-top: 20px;
      color: #fff;
      font-size: 18px;
      height: 40px;
    }
  }

  /*横屏*/
  @media screen and (orientation: landscape) {
    #ScreenChange {
      opacity: 1;
      pointer-events: auto;
    }
  }
}

// 首页的动画
.activeTxt p .sorrlSpan {
  animation: txtMove 8s linear infinite;
}

@keyframes txtMove {
  0% {
    left: -80px;
  }

  // 50% {
  //   left: 200px;
  // }

  100% {
    left: -300px;
  }
}

.ant-image-preview-operations {
  background-color: rgba(0, 0, 0, 0.6) !important;
}

.ant-image-preview-close {
  display: none !important;
}
