/* 清除通配符样式 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
/* 清除超链接a的默认样式 */
a {
    text-decoration: none;
}
/* 清除ul的默认样式 */
ul {
    list-style: none;
}
/* 网页主体背景颜色 */
body {
    background-color: #e7e8e9;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', Helvetica, Arial, Verdana, Geneva, Tahoma, sans-serif, 'Times New Roman', Times, serif;
}

/* 媒体查询 屏幕小于768px */
@media screen and (max-width: 767px){

    body {
        width: 100%;
    }

    /* 顶部导航栏 */
    .header {
        width: 100%;
        margin-bottom: 2px;
        background-color: #fff;
    }

    .header .headbar {
        width: 100%;
        
    }

    .header .headbar h1 {
        width: 100%;
        height: 52px;
        line-height: 52px;
        text-align: center;
        color: #343a40;
        font-size: 24px;
        font-weight: 400;
    }

    /* 中间主板块区域 */
    .container {

        width: 100%;
        padding: 0 2px;
        margin-bottom: 56px;
    }

    /* 左侧注册和登录区域 */
    .container .mainleft {
        width: 100%;
        margin-bottom: 2px;
        background-color: #fff;
    }

    .container .mainleft .login_page,
    .container .mainleft .newreg_page {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .container .mainleft .newreg_page {

        display: none;

    }

    .container .mainleft .login_page {

        padding: 24px 0;

    }

    .container .mainleft .login_page > p,
    .container .mainleft .newreg_page > p {
        display: flex;
        align-items: center;
        width: 100%;
        height: 52px;
        font-size: 20px;
        padding-left: 16px;
    }

    .container .mainleft .login_page > p:nth-child(3),
    .container .mainleft .newreg_page >p:nth-child(3) {

        font-size: 14px;

    }

    /* 页面右侧区域 */
    .mainright {
        width: 100%;
    }
    /* 用户登录区域 */
    .mainright .userlogin {

        width: 100%;
    }

    .mainright .userlogin form {

        width: 100%;
    }

    .mainright .userlogin form > div {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 2px;
        border: 1px solid #fff;
    }

    .mainright .userlogin form div > label {
        height: 48px;
        line-height: 48px;
        padding-left: 16px;
        font-size: 18px;
        background-color: #e7e8e9;
    }

    .mainright .userlogin form > div input {
        height: 48px;
        padding-left: 16px;
        font-size: 18px;
        border: none;
        outline: none;
    }

    .mainright .userlogin form > input[type="submit"] {
        width: 100%;
        height: 48px;
        background-color: #343a40;
        color: #fff;
        border: none;
        outline: none;
        font-size: 24px;
    }

    /* 用户注册账号区域 */
    .mainright .userreg {

        display: none;
        width: 100%;
    }

    .mainright .userreg form {
        width: 100%;
    }
    .mainright .userreg form > div {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        border: 1px solid #fff;
        margin-bottom: 2px;
    }

    .mainright .userreg form > div label {
        height: 48px;
        line-height: 48px;
        padding-left: 16px;
        font-size: 18px;
    }

    .mainright .userreg form > div label span {
        margin-right: 8px;
        color: #1e90ff;
    }

    .mainright .userreg form > div input {
        height: 48px;
        padding-left: 16px;
        font-size: 18px;
        border: none;
        outline: none;
    }

    .mainright .userreg form > input[type="submit"] {
        width: 100%;
        height: 48px;
        background-color: #343a40;
        color: #fff;
        border: none;
        outline: none;
        font-size: 24px;
    }

    /* 底部导航栏 */
    footer {
        position: fixed;
        left: 0px;
        bottom: 0px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 48px;
        background-color: #fff;
    }
    footer p {
        align-self: center;
        font-size: 14px;
    }

    footer p a {
        font-size: 12px;
        color: #343a40;
    }

}


/* 媒体查询 屏幕尺寸大于1200px */
@media screen and (min-width: 1200px){

    .header {
        width: 100%;
        background-color: #fff;
    }
    .header .headbar {
        position: relative;
        width: 1190px;
        margin: 0 auto;
    }
    .headbar h1 {
        width: 100%;
        height: 52px;
        line-height: 52px;
        color: #343a40;
        font-size: 20px;
        font-weight: 400;
        /* 首行缩进-9999px */
        text-indent: -9999px;
        background-image: url(o_image/header_bar.png);
        /* background-size属性允许你设置背景图片的尺寸 */
        background-size: 52px 52px;
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: scroll;
    }

    /* 中间主体部分 */
    .container {
        position: absolute;
        top: 54px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 50px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 1190px;
        background-color: #fff;
    }

    /* 左侧部分 */
    .container .mainleft {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 61.6%;
        border-right: 1px solid #000;
    }

    .container .mainleft .login_page,
    .container .mainleft .newreg_page {
        /* border: 1px solid red; */
        width: 38.2%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
    }

    .container .mainleft .newreg_page {

        display: none;

    }

    .container .mainleft .login_page > p,
    .container .mainleft .newreg_page > p {
        flex: 1;
        display: flex;
        align-items: center;
        height: 48px;
        line-height: 48px;
        font-size: 24px;
    }

    .container .mainleft .login_page > p:nth-child(3),
    .container .mainleft .newreg_page > p:nth-child(3) {
        font-size: 12px;
        display: flex;
        justify-content: center;
    }

    /* 右侧部分 */
    .mainright {
        width: 38.2%;
        height: 100%;
    }
    .mainright .userlogin {
        display: block;
        width: 100%;
        padding-top: 8px;
        margin-bottom: 8px;
        background-color: #e7e8e9;
    }
    .mainright .userlogin form {
        width: 100%;
    }
    .mainright .userlogin form > div {
        width: 100%;
        height: 48px;
        padding-left: 8px;
        margin-bottom: 8px;
        font-size: 24px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    .mainright .userlogin form > div label {
        width: 20%;
        font-size: 16px;
        text-align: center;
    }
    .mainright .userlogin form > div input {
        height: 100%;
        border: none;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
        padding-left: 8px;
        font-size: 14px;
        flex: 1;
    }
    .mainright .userlogin form > div input:focus {
        outline: none;
    }
    .mainright .userlogin form > input[type="submit"] {
        width: 100%;
        padding: 8px 0;
        background-color: #343a40;
        color: #fff;
        font-size: 24px;
        border: none;
    }

    /* 开心注册账号时刻 */
    .container .mainright .userreg {
        display: none;
        width: 100%;
        padding-top: 8px;
        margin-bottom: 8px;
        background-color: #e7e8e9;
    }
    .mainright .userreg form {
        width: 100%;
    }
    .mainright .userreg form > div {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        height: 48px;
        padding-left: 8px;
        margin-bottom: 8px;
    }
    .mainright .userreg form > div label {
        position: relative;
        width: 20%;
        font-size: 16px;
        text-align: center;
    }
    .mainright .userreg form > div label span {
        position: absolute;
        right: 2px;
        color: #1e90ff;
        font-size: 20px;
        font-weight: 700;
    }
    .mainright .userreg form > div input {
        height: 100%;
        border: none;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
        padding-left: 8px;
        font-size: 14px;
        flex: 1;
    }
    .mainright .userreg form > div input:focus {
        outline: none;
    }
    .mainright .userreg form > input[type="submit"] {
        width: 100%;
        padding: 8px 0;
        background-color: #343a40;
        color: #fff;
        font-size: 24px;
        border: none;
    }

    /* 底部页脚 */
    footer {
        position: fixed;
        left: 0px;
        bottom: 0px;
        overflow: hidden;
        width: 100%;
        background-color: #fff;
        color: #343a40;
        text-align: center;
    }
    footer p {
        margin: 6px auto;
        font-size: 12px;
    }
    footer a {
        color: #343a40;
    }

}
