/* ========== reset.css：浏览器样式归零 ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul, ol {
  list-style: none;
}

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

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

button {
  cursor: pointer;
}

/* 触控优化：禁用双击缩放，消除移动端 300ms 点击延迟 */
button,
a,
[data-touchable] {
  touch-action: manipulation;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

[hidden] {
  display: none !important;
}

/* 移除 IE/Edge 默认的清除按钮 */
input::-ms-clear,
textarea::-ms-clear {
  display: none;
}

/* 自助机触屏优化：禁用文本选择（输入框除外） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable],
.selectable {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* 禁用长按弹出菜单（移动端/触屏） */
img,
a,
button {
  -webkit-touch-callout: none;
}

/* 滚动条美化（WebKit 内核自助机浏览器） */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border, #cbd5e1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-strong, #94a3b8);
}
