* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif, 'PingFang SC', 'Microsoft YaHei';
}
html ,body{
  font-size: calc(10 / 375 * 100vw);
  background: #fff;
  height: 100%;
}
@media only screen and (min-width: 600px) {
  html {
    font-size: 16px;
  }
}
body {
  font-size: 1.6rem;
  margin: 0 auto !important;
  max-width: 600px;
  height: 100%;
}
a {
  text-decoration: none;
  color: #000;
}
img {
  vertical-align: top;
}
ul,
ol {
  list-style: none;
}
input,
button,
textarea {
  border: none;
  outline: none;
}
textarea {
  resize: none;
}
input[type='search']::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
/*清除浮动*/
.clear-float:after {
  content: '';
  display: block;
  clear: both;
}
/*单行文字超出隐藏*/
.pl-hidden {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/*满屏固定定位*/
.full-fixed {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}
/*居中绝对定位*/
.center-absolute {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
/* 子元素上下左右居中 */
.all-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* 以竖直方向为主轴的子元素上下左右居中 */
.col-all-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*上下居中，左右两端对齐*/
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.col-align-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.two-line-hidden {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* text-overflow: ellipsis; */
  overflow: hidden;
}

.close-btn {
  display: inline-block;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.close-btn:before {
  content: '';
  width: 85%;
  height: 2px;
  background: #aaa;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.close-btn:after {
  content: '';
  width: 85%;
  height: 2px;
  background: #aaa;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.loading-status,
.no-data {
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 1.4rem;
}
.no-data {
  height: 15rem;
}
body {
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: constant(safe-area-inset-left);
  padding-left: env(safe-area-inset-left);
  padding-right: constant(safe-area-inset-right);
  padding-right: env(safe-area-inset-right);
}
