/**
 * CSS Reset - 统一浏览器默认样式
 * 支持需求: 8.1, 8.2, 8.3, 8.4, 8.5 (浏览器兼容性)
 */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* HTML and body defaults */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography reset */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* List reset */
ul, ol {
  list-style: none;
}

/* Link reset */
a {
  text-decoration: none;
  color: inherit;
}

/* Button reset */
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

/* Image and media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements reset */
input, button, textarea, select {
  font: inherit;
}

/* Remove default button styles */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default fieldset styles */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* Remove default legend styles */
legend {
  padding: 0;
}

/* Prevent iOS text size adjust after orientation change */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-text-size-adjust: 100%;
  }
}
