/* reset.css — 现代通用重置样式
   主要目标：统一浏览器差异、消除默认间距、设置可访问性 & 基础布局 */

/* 1. 全局 box-sizing 统一为 border-box（更直观的盒模型） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. 清除默认 margin/padding，并设置常用字体行为 */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  /* vertical-align: baseline;
  background: transparent;
  font: inherit;
  color: inherit; */
}

/* 3. 基础 html / body */
html {
  /* 便于使用 rem，默认 16px 可按需改 */
  font-size: 16px;
  -webkit-text-size-adjust: 100%; /* 防止移动端字体被放大 */
  -webkit-tap-highlight-color: transparent;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
  color: #111;
  min-width: 320px;
}

/* 4. 语义块级元素默认 display（HTML5 元素兼容老浏览器） */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/* 5. 列表与文本 */
ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
  content: none;
}

/* 6. 表格 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 7. 图片和媒体：响应式并避免默认边距 */
img,
picture,
video,
canvas,
svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 8. 链接与按钮去除默认样式（保留键盘可聚焦） */
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
}

/* 9. 可访问性：聚焦时的明显样式（保留默认可视焦点） */

/* 10. 表单元素修复（带平台差异） */
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 11. placeholder 样式轻微淡化 */
::placeholder {
  color: #9aa0a6;
  opacity: 1;
}

/* 12. 禁用选择/拖动（按需开启） */
/* user-select: none; */
/* img, svg { user-drag: none; } */

/* 13. 视觉辅助：隐藏但对屏幕阅读器可见（sr-only） */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 14. 打印优化（可按需扩展） */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
    color: #000;
  }
}

/* 15. 小屏幕触控优化（按钮和链接点击区域） */
button,
a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}

/* 16. 可选：页面根级便捷变量（按需启用） */
/*
  :root {
    --font-sans: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    --content-max-width: 1200px;
  }
  */

/* End of reset.css */
body {
  font-family: 'Segoe UI Emoji';
}
