/**
 * reset.css - 浏览器重置样式
 * 林草生态技术系网站
 * 清除浏览器默认样式，统一各浏览器表现
 */

/* 清除所有元素默认 margin/padding */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HTML5语义元素 display: block */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

/* 基础HTML设置 */
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 列表样式清除 */
ul, ol {
    list-style: none;
}

/* 链接样式重置 */
a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

a:hover, a:active {
    outline: 0;
}

/* 图片设置 */
img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

/* 表格边框合并 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

th, td {
    padding: 0;
}

/* 表单元素重置 */
button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

textarea {
    overflow: auto;
    resize: vertical;
}

/* 其他元素重置 */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

legend {
    display: block;
    width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

[hidden], template {
    display: none;
}

/* 引用元素 */
blockquote, q {
    quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
    content: '';
}

/* 地址和斜体 */
address {
    font-style: normal;
}

/* 上标和下标 */
sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* 音频和视频 */
audio, video {
    display: inline-block;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

/* 代码元素 */
code, kbd, pre, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* 分割线 */
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid #ccc;
}
