/* 移动端 reset + 基础排版 */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-canvas);
  color: var(--text-primary);
  overscroll-behavior-y: none;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

input, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 隐藏滚动条但保留滚动 */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

[hidden] {
  display: none !important;
}
