/* reset.css */
/* 全局样式重置 */
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* 重置列表样式 */
ol, ul {
    list-style: none;
}

/* 重置表格样式 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 重置图片样式 */
img {
    max-width: 100%; /* 确保图片不会超出其容器的宽度 */
    height: auto; /* 保持图片的纵横比 */
    display: block; /* 去除图片下方的空隙 */
}

/* 重置链接样式 */
a {
    text-decoration: none; /* 去除下划线 */
    color: inherit; /* 链接颜色继承自父元素 */
}

/* 重置表单元素样式 */
button, input, select, textarea {
    font: inherit; /* 继承字体样式 */
    color: inherit; /* 继承文本颜色 */
    border: 1px solid #ccc; /* 统一边框样式 */
    padding: 5px; /* 统一内边距 */
    margin: 0; /* 重置外边距 */
}

/* 重置按钮样式 */
button {
    cursor: pointer; /* 鼠标悬停时显示指针 */
    background-color: transparent; /* 透明背景 */
    border: none; /* 无边框 */
    padding: 10px 20px; /* 统一内边距 */
    font-size: 16px; /* 统一字体大小 */
}

/* 重置输入框样式 */
input, textarea {
    box-sizing: border-box; /* 边框和内边距包含在宽度内 */
    width: 100%; /* 占满容器宽度 */
    max-width: 100%; /* 最大宽度不超过容器 */
}

/* 重置代码样式 */
code, pre {
    font-family: monospace, monospace; /* 等宽字体 */
}

/* 重置hr样式 */
hr {
    border: 0;
    height: 1px;
    background-color: #ccc; /* 灰色背景 */
    margin: 10px 0; /* 上下外边距 */
}