/* 1. 统一盒模型 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. 清除默认边距 */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
ul,
ol,
li,
dl,
dt,
dd,
figure {
    margin: 0;
    padding: 0;
}

/* 3. HTML 基础设置 */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* 4. body */
body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.5;
    height: 100vh;
    background-image: url("../assets/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 5. 列表去掉默认样式 */
ul,
ol {
    list-style: none;
}

/* 6. 链接去掉默认样式 */
a {
    color: inherit;
    text-decoration: none;
}

/* 7. 图片 */
img {
    display: block;
    max-width: 100%;
    border: 0;
}

/* 8. 表单元素 */
button,
input,
textarea,
select {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
}

/* 9. button */
button {
    border: 0;
    background: none;
    cursor: pointer;
}

/* 10. 输入框 */
input,
textarea {
    outline: none;
}

/* 11. textarea */
textarea {
    resize: vertical;
}

/* 12. 表格 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 13. 引用 */
blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: "";
}

/* 14. HTML5 元素 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}

/* 15. 隐藏属性 */
[hidden] {
    display: none !important;
}

