/* CSS Reset - 所有标签初始化 */
/* 通用重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
/* 基础元素重置 */
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;
}
/* 列表重置 */
ol, ul {
list-style: none;
}
/* 引用重置 */
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
/* 表格重置 */
table {
border-collapse: collapse;
border-spacing: 0;
}
/* 链接重置 */
a {
text-decoration: none;
color: inherit;
}
/* 按钮重置 */
button {
border: none;
background: none;
cursor: pointer;
font: inherit;
}
/* 输入框重置 */
input, textarea, select {
border: none;
outline: none;
font: inherit;
background: none;
}
/* 图片重置 */
img {
max-width: 100%;
height: auto;
vertical-align: top;
}
/* 字体重置 */
body {
line-height: 1;
font-family: Arial, sans-serif;
}
/* 清除浮动 */
.clearfix::after {
content: "";
display: table;
clear: both;
}
/* 隐藏元素 */
.hidden {
display: none;
}
/* 可视化隐藏(保持在DOM中但不可见,用于屏幕阅读器) */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}