﻿* {
    margin: 0;
    border: 0;
    list-style-type: none;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: "HarmonyOS_Regular", sans-serif;
    background-color: #eee;
    background-image: url('../image/bg.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;

    @media only screen and (max-width:450px) {
        background-size: 100vh 100vh;
        position: fixed;
        top: 0px;
    }

}

.main {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.main-content {
    width: 600px;
    display: flex;
    align-items: center;
    flex-direction: column;

    @media only screen and (max-width:450px) {
        width: 100%;
        padding: 0 24px;
    }
}

@media only screen and (min-width:768px) {

    /* 定义滚动条轨道的样式 */
    ::-webkit-scrollbar {
        width: 6px;
        /* 滚动条的宽度 */
    }

    /* 定义滚动条轨道的背景颜色 */
    ::-webkit-scrollbar-track {
        background: none;
        /* 轨道的颜色 */
    }

    /* 定义滚动条滑块的样式 */
    ::-webkit-scrollbar-thumb {
        background: #5a5a5a;
        /* 滑块的颜色 */
        border-radius: 10px;
        /* 滑块的圆角 */
    }

    /* 定义滚动条滑块在hover时的样式 */
    ::-webkit-scrollbar-thumb:hover {
        background: #bfbfbf;
        /* 滑块hover时的颜色 */
    }

    /* 定义滚动条的按钮，一些浏览器可能不支持 */
    ::-webkit-scrollbar-button {
        display: none;
        /* 隐藏滚动条的按钮 */
    }
}