/* 全局设置 */
* {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    -webkit-user-select: none;
}

a {
    text-decoration: none;
    color: black;
    font-size: 20px;
}

.top-navbar {
    /* calc作用是减去左右内边距，避免元素被挤到 */
    width: calc(100% - 40px);
    height: 80px;
    /* 垂直居中 */
    line-height: 85px;
    background-color: white;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .1);
    /* 弹性布局 */
    display: flex;
    /* 内边距左右 */
    padding: 0 20px;
    /*绝对定位*/
    position: absolute;
}

.main {
    list-style: none;
    display: flex;
    width: 80%;
    height: 100%;
    /* 水平居中 */
    justify-content: center;
}

.main > li {
    /* 删除下划线 */
    text-decoration: none;
    /* 居中 */
    text-align: center;
    /*鼠标手势*/
    cursor: pointer;
}

.main > li a {
    /* 内边距 */
    padding: 30px 25px;
    /* 字体大小 */
    font-size: 120%;
}

.main > li:hover {
    background-color: rgba(0, 0, 0, .03);
    border-bottom: 3px solid rgba(0, 0, 0, 0.18);
}

.logo, .right {
    width: 30%;
}

.logo {
    width: calc(30% - 15%);
    height: 100%;
    /* 垂直居中 */
    line-height: 118px;
}

.logo_img:hover {
    /* 旋转 */
    transform: rotate(720deg);
    transition: all 0.5s;
}

.right {
    text-align: right;
}

.btn-login, .btn-signup {
    /* 内边距 */
    padding: 10px 20px;
    /* 圆角 */
    border-radius: 5px;
    /* 边框 */
    border: 1px solid rgba(0, 0, 0, 0.11);
    /* 居中 */
    background-color: white;
    /* 鼠标手势 */
    cursor: pointer;
    /* 字体大小 */
    font-size: 110%;
}

.btn-login:hover {
    background-color: #eaeaea;
}

.btn-signup {
    color: white;
    background-color: #5757ff;
}

.btn-signup:hover {
    background-color: #2c2cff;
}
