/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置基础字体 */
html {
    font-size: 62.5%; /* 1rem = 10px */
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.6rem;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2.0rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

/* 链接样式 */
a {
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    text-decoration: underline;
}

/* 列表样式 */
ul, ol {
    list-style: none;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}

/* 表单元素 */
input,
button,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

/* 表格重置 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 辅助类 */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    overflow: hidden;
}

.clearfix{
    zoom: 1;
}

/* 响应式媒体查询基础 */
@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
}