/* 重置所有元素的margin、padding和盒模型 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* 重置HTML和body */

html,
body {
    height: 100%;
    width: 100%;
    font-size: 10px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* 重置标题元素 */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal;
}


/* 重置列表元素 */

ul,
ol,
li {
    list-style: none;
}


/* 重置列表元素 */

ul,
ol,
li::marker {
    color: var(--theme-color);
}


/* 重置表格元素 */

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

tbody,
td,
tfoot,
th,
thead,
tr {
    border-color: inherit;
    border-style: inherit;
    border-width: inherit;
    padding: .8rem;
    text-align: center;
}


/* 重置链接样式 */

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a:hover,
a:active {
    outline: none;
}


/* 重置图片元素 */

img {
    max-width: 100%;
    height: auto;
    border: none;
    vertical-align: middle;
    width: inherit;
    height: inherit;
}


/* 重置表单元素 */

input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1.3rem;
    line-height: 1.8rem;
    font-weight: 300;
}

button {
    cursor: pointer;
}


/* 清除浮动 */

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}


/* 设置基础字体颜色和背景 */

body {
    color: #333;
    background-color: #fff;
}


/* 禁用文本选择 */

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


/* 设置占位符文本颜色 */

::placeholder {
    color: rgba(0, 0, 0, 0.2);
    font-size: 1.3rem;
    line-height: 1.8rem;
    font-weight: 300;
}


/* 设置文本选择颜色 */

::selection {
    background-color: #b3d4fc;
    color: #000;
}

.desktop ::placeholder {
    font-family: PingFang SC;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: rgba(0, 0, 0, 0.7);
}

.desktop ::selection {
    background-color: #b3d4fc;
    color: #000;
}

@media screen and (max-width: 1281px) {
    html,
    body {
        font-size: 8px;
    }
}

@media screen and (min-width: 1281px) {
    html,
    body {
        font-size: 9px;
    }
}


/* 大屏笔记本 */

@media screen and (min-width: 1366px) {
    html,
    body {
        font-size: 9px;
    }
}


/* 桌面显示器 */

@media screen and (min-width: 1440px) {
    html,
    body {
        font-size: 10px;
    }
}


/* 大屏显示器 */

@media screen and (min-width: 1920px) {
    html,
    body {
        font-size: 10px;
    }
}

.desktop input,
.desktop button,
.desktop textarea,
.desktop select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
    border: none;
    outline: none;
    font-weight: 400;
}