* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-size: inherit;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  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);
}
a {
    display: block;
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
}

ul, ol {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  border: none;
  -webkit-touch-callout: none;
}

input, button, textarea, select {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  border-radius: 0;
}

input::placeholder, textarea::placeholder {
  color: #999;
  opacity: 1;
}

/* ===================== 通用工具类样式（直接复用） ===================== */
/* 清除浮动 */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

/* 单行文本溢出省略 */
.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 多行文本溢出省略 */
.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* flex居中 */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* flex垂直列布局 */
.flex-col {
  display: flex;
  flex-direction: column;
}

/* 隐藏元素 */
.hide {
  display: none !important;
}

/* 占位高度（避免内容加载前布局塌陷） */
.placeholder {
  background-color: #f5f5f5;
  border-radius: 0.04rem;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

@media screen and (orientation: landscape) {
  body {
    /* 横屏时限制最大高度，避免内容拉伸 */
    max-height: 100vh;
    overflow-y: auto;
  }
}