/* 样式重置文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "微软雅黑", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* 确保页面默认显示滚动条 */
html {
    scrollbar-width: thin;
    overflow-y: scroll;
}

/* Webkit浏览器（Chrome, Safari等） */
html::-webkit-scrollbar {
    width: 0px;
}

html::-webkit-scrollbar-track {
    background: #f1f1f1;
}

html::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 确保body不会因为滚动条出现/消失而跳动 */
body {
    padding-right: calc(100vw - 100%);
}

a {
    text-decoration: none;
    color: #333;
}

ul, ol {
    list-style: none;
}

img {
    border: none;
    vertical-align: middle;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

.clear {
    clear: both;
    height: 0;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

/* 常用工具类 */
.hide {
    display: none !important;
}

.show {
    display: block !important;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}