/* reset.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}

input, button, textarea {
    outline: none;
    border: none;
    background: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 清除浮动 */
.clearfix:after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
}

/* 重置表单元素样式 */
button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

/* 重置按钮样式 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/* 移除按钮内部边框 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

/* 重置fieldset样式 */
fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

/* 重置legend样式 */
legend {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: .5rem;
    font-size: 1.5rem;
    line-height: inherit;
    color: inherit;
    white-space: normal;
}

/* 重置进度条样式 */
progress {
    vertical-align: baseline;
}

/* 重置文本域样式 */
textarea {
    overflow: auto;
    resize: vertical;
}

/* 重置复选框和单选框样式 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

/* 重置数字输入框样式 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/* 重置搜索框样式 */
[type="search"] {
    outline-offset: -2px;
    -webkit-appearance: none;
}

/* 重置文件上传按钮样式 */
[type="file"] {
    font-size: inherit;
    line-height: inherit;
}

/* 重置details样式 */
details {
    display: block;
}

/* 重置summary样式 */
summary {
    display: list-item;
    cursor: pointer;
}

/* 重置模板样式 */
template {
    display: none;
}

/* 重置隐藏元素样式 */
[hidden] {
    display: none !important;
} 