/* reset.css - 最优的CSS重置方案 */

/* 1. 使用更直观的盒模型 */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. 移除默认边距 */
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;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* 3. HTML5元素显示设置 */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* 4. 列表样式重置 */
ol, ul {
    list-style: none;
}

/* 5. 引用元素重置 */
blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

/* 6. 表格重置 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 7. 表单元素重置 */
button, input, optgroup, select, textarea {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font-family: inherit;
    line-height: 1.15;
}

/* 8. 按钮和输入元素重置 */
button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
}

/* 9. 移除Firefox按钮的内边距 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

/* 10. 文本区域重置 */
textarea {
    overflow: auto;
    resize: vertical;
}

/* 11. 图片和嵌入内容重置 */
img, embed, iframe, object, video {
    max-width: 100%;
    height: auto;
    border-style: none;
}

/* 12. SVG重置 */
svg:not(:root) {
    overflow: hidden;
}

/* 13. 链接样式重置 */
a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

/* 14. 移除文本装饰 */
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

/* 15. 代码元素重置 */
code, kbd, pre, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* 16. 隐藏元素 */
[hidden] {
    display: none;
}

/* 17. 基础HTML重置 */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* 18. 基础body重置 */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}