/* 取消默认的内外边距 */
* {
  box-sizing: border-box;
}
html,
body,#app{
  max-width: 750px;
  margin: 0 auto;
  height: 100%;
  background: white;
  overflow: auto;
}

body
p,
h1,
h2,
h3,
h4,
h5,
h6,
input,
button,
ul,
li,
textarea,
iframe {
  margin: 0;
  padding: 0;
}
body {
  margin: 0 auto;
  color: #333;
  font-family: 微软雅黑;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}
p {word-break: break-all;}
ul {
  list-style: none;
}
button {
  background-color: inherit;
}

img {
  object-fit: cover;
  width: 100%;
}

input,
button,
textarea,
iframe {
  border: none;
  outline: none;
  font-size: inherit;
}
textarea {resize: none;}
a {
  text-decoration: none;
  color: inherit;
}

i,
em {
  font-style: normal;
}
input{
  -webkit-appearance: none;
  border-radius: 0;
  background-color: inherit;
}
/* 隐藏取消按钮 */
::-webkit-search-cancel-button { -webkit-appearance: none; }

/* 隐藏放大镜 */
::-webkit-search-results-button { -webkit-appearance: none; }
.tips {
  position: fixed;
  top: 55%;
  left: 10%;
  padding: .4rem;
  width: 80% ;
  box-sizing: border-box;
  border-radius: .26667rem;
  background-color: rgba(0, 0, 0, .8);
  color: white;
  text-align: center; 
  z-index: 2;
  transform: translateY(-50%);
  font-size: .42667rem;
}

/* 物理1像素的边框 */
.hack-border,
.hack-border-top,
.hack-border-bottom,
.hack-border-left,
.hack-border-right {
  position: relative;
}

.hack-border::before,
.hack-border-top::before,
.hack-border-bottom::before,
.hack-border-left::before,
.hack-border-right::before {
  content: '';
  display: block;
  position: absolute;
}

.hack-border::before {
  transform: scale(0.5);
}
.hack-border-top::before,
.hack-border-bottom::before {
  transform: scaleY(0.5);
}

.hack-border-left::before,
.hack-border-right::before {
  transform: scaleX(0.5);
}
.hack-border::before{
    left: -50%;
    right: -50%;
    top: -50%;
    bottom: -50%;
    border-radius: inherit;  
}
.hack-border-top::before,
.hack-border-bottom::before {
  left: 0;
  right: 0;
}
.hack-border-left::before,
.hack-border-right::before {
  top: 0;
  bottom: 0;
}

.hack-border::before {
  border: 1px solid #EDEDED;
}

.hack-border-top::before {
  top: 0;
  border-top: 1px solid #EDEDED;
}

.hack-border-bottom::before {
  bottom: 0;
  border-bottom: 1px solid #EDEDED;
}

.hack-border-left::before {
  left: 0;
  border-left: 1px solid #EDEDED;
}

.hack-border-right::before {
  right: 0;
  border-right: 1px solid #EDEDED;
}

/* flex布局 */
.flex{
  display: flex;
}
.justify-center{
  justify-content: center;
}
.justify-between{
  justify-content: space-between;
}
.flex-column{
  flex-direction: column;
}
.align-center{
  align-items: center;
}
.flex-shrink{
  flex-shrink: 0;
}
.flex-wrap{
  flex-wrap: wrap;
}
.flex-grow{
  flex: 1;
}
.align-end{
  align-items: flex-end;
}

/* 字体颜色 */
.color-333{
  color: #333;
}
.color-999{
  color: #999;
}
.color-666{
  color: #666;
}
.color-white{
  color: #fff;;
}

.text-align{
  text-align: center;
}
.font-bold{
  font-weight: bold;
}
/* 块状图片 */
.block-img{
  display: block;
  width: 100%;
}
.block-ele{
  display: block;
}
@media (-webkit-min-device-pixel-ratio: 3) {
  .hack-border::before {
    left: -100%;
    right: -100%;
    top: -100%;
    bottom: -100%;
    transform: scale(0.33333);
  }
  .hack-border-top::before,
  .hack-border-bottom::before {
    transform: scaleY(0.33333);
  }
  .hack-border-left::before,
  .hack-border-right::before {
    transform: scaleX(0.33333);
  }
}
.clear-float::after {
  content: '';
  display: block;
  clear: both;
}
.single-line-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.multi-line-ellipsis {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}