/* 在文件开头添加 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
}

/* 移动端移除最小宽度限制 */
@media screen and (max-width: 768px) {
  html, body {
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
}
body * {
  box-sizing: border-box;
}

/* 移动端允许 flex 元素收缩 */
@media screen and (max-width: 768px) {
  body * {
    flex-shrink: 1;
  }
  
  /* 确保所有图片和媒体元素不会超出容器 */
  img, video, iframe {
    max-width: 100%;
    height: auto;
  }
}
body {
  font-family: PingFangSC-Regular, San Francisco, Roboto, Helvetica Neue, Helvetica, Tahoma,
    Arial, PingFang SC-Light, Microsoft YaHei;
}
input {
  background-color: transparent;
  border: 0;
}
button {
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  outline: none;
  background-color: transparent;
}

button:active {
  opacity: 0.6;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.justify-start {
  display: flex;
  justify-content: flex-start;
}
.justify-center {
  display: flex;
  justify-content: center;
}

.justify-end {
  display: flex;
  justify-content: flex-end;
}
.justify-evenly {
  display: flex;
  justify-content: space-evenly;
}
.justify-around {
  display: flex;
  justify-content: space-around;
}
.justify-between {
  display: flex;
  justify-content: space-between;
}
.align-start {
  display: flex;
  align-items: flex-start;
}
.align-center {
  display: flex;
  align-items: center;
}
.align-end {
  display: flex;
  align-items: flex-end;
}

/* 移动端通用优化 */
@media screen and (max-width: 768px) {
  body * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* 确保链接在移动端可点击 */
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
