/* ============================================
   CSS Reset - 样式重置
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  overflow-x: hidden;
}

ul, ol {
  list-style: none;
}

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

button {
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
}

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

/* 移除 iOS 默认样式 */
input[type="text"],
input[type="number"],
textarea {
  -webkit-appearance: none;
  appearance: none;
}

/* 移除 iOS 点击高亮 */
* {
  -webkit-tap-highlight-color: transparent;
}
