/* 让滚动条丝滑的滚动 */
html {
  scroll-behavior: smooth;
}
 
/* 去除常见标签默认的 margin 和 padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@media screen and (max-width: 1200px) {
  .banner{
    width: 800px !important;
   }
   
}
@media screen and (max-width: 800px) {
  .banner{
    width: 100% !important;
  
   }

}

 .banner{
  width: 1200px;
  margin: 0 auto;
 }
/* 设置网页统一的字体大小、行高、字体系列相关属性 */
body {
  font: 16px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
  background-color: #fff;
  color: #111827
}
 
/* 去除列表默认样式 */
ul,
ol {
  list-style: none;
}
 
/* 设置img的垂直对齐方式为居中对齐，去除img默认下间隙 */
img {
  vertical-align: middle;
}
/* 去除input默认样式 */
input {
  border: none;
  outline: none;
  color: #111827
}
 
/* 去除默认的倾斜效果 */
em,
i {
  font-style: normal;
}
 
/* 去除a标签默认下划线，并设置默认文字颜色 */
a {
  text-decoration: none;
  color: #999;
}
/* 文字溢出省略号 单行：需限制宽度*/
.text-ellipsis-1{
  width: 100%;
  white-space:nowrap; 
  overflow:hidden;
  text-overflow:ellipsis;
 }
 
/* 文字溢出省略号 两行：需限制宽度（设置-webkit-line-clamp值可设置行数）*/
.text-ellipsis-2{
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* 单个元素居中：子元素添加（相对父元素居中，父元素需添加相对定位） */
.center-p{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  }
 
/* 单行多元素居中：父元素添加 */
.center-fc{
    display: flex;
    justify-content: center;
    align-items: center;
  }
 
.center-fb{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
 
/* 多行多元素居中：父元素添加 */
.center-fm{
  display: flex;
  justify-content: flex-start;
  align-content: center;
  flex-wrap: wrap;
}
/* 字体渐变色 */
.font-gradient-color{
  background-image:linear-gradient(to bottom, #fb9e84, #dc0720);
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
/* 动态设置元素宽高比 */
.aspect-ratio{
  width: 100%;
/* 宽:高 = 1:1 */
  aspect-ratio: 1/1; 
}
/* 禁用复制操作：使用时设置给body元素 */
.procp {
  /* 禁止双击复制 */
  -moz-user-select: none;
  /* 火狐 */
  -webkit-user-select: none;
  /* webkit浏览器 */
  -ms-user-select: none;
  /* IE10 */
  -khtml-user-select: none;
  /* 早期浏览器 */
  user-select: none;
}
.img-box {
  width: 100%;
  aspect-ratio: 1/1;
  img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
  }
}
.rotating{
  animation: rotate 3s linear infinite;
}
@keyframes rotate{
  from{transform: rotate(0deg)}
  to{transform: rotate(359deg)}
}
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
 
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #fafafa;
}
 
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgb(191, 191, 191);
}
 


@keyframes shark-wrap {
  to {
    transform: translateX(100%);
  }
}
