.tab {
    width: 100%;
    max-width: 1200px;
    height: 60px;
    display: flex;
    align-items: center;
    margin: 0 auto;
}
.tab .logoimg {
    display: inline-block;
    width: 140px;
}
.tab .content {
    flex: 1;
    height: 100%;
}
.tab .content ul {
    height: 100%;
    line-height: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 16px;
    font-weight: 500;
}
.tab .content ul li {
    padding-bottom: 5px;
    position: relative;
}
.tab .content ul li a {
    text-decoration: none;
    color: var(--color-text);
}
.tab .content ul li.active {
    font-weight: bold;
}
.tab .content ul li.active a {
    color: var(--color-text-active) !important;
}
.tab .content ul li.active::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--background-tab);
    bottom: 0;
    left: 0;
    transition: all 0.3s; 
}
.tab .right {
    min-width: 280px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}
.tab .right .one {
    background: var(--background-save-desktop);
    border-radius: 16px;
    padding: 5px 10px;
}
.tab .right .one .img {
   width: 24px;
   height: 24px;
}
.tab .right .one .save {
    font-size: 14px;
    color: var(--color-save-desktop);
    cursor: pointer;
}
.tab .right .two {
    cursor: pointer;
}
.tab .right .two .userId {
    color: var(--color-text);
}

/* 弹框样式 */
.mask {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--background-mask);
    opacity: 0.5;
    z-index: 99;
}
/* 语言的弹框 */
.lang-popup {
    display: none;
    min-width: 450px;
    min-height: 180px;
    background: var(--background-popup);
    z-index: 999;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border-radius: 16px;
    padding: 15px 10px;
    animation: .3s ease-in-out slideIn;
}
.lang-popup .lang-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    border-bottom: 1px solid var(--background-border-bottom);
}
.lang-popup .lang-card {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
}
.lang-popup .lang-card .lang-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    padding-left: 40px;
    align-items: center;
    gap: 10px;
    height: 36px;
    border-radius: 10px;
    margin-top: 10px;
    position: relative;
}
.lang-popup .lang-card .lang-item.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background:linear-gradient(135deg,#ffffff 0%,#e6fffa 100%);
    border:1px solid #4ed462;
    border-radius: 10px;
    top: 0;
    left: 0;
    z-index: 0;
    transition: all 0.3s;

}
.lang-popup .lang-card .lang-item .national {
    width: 25px;
    height: 18px;
    z-index: 2;
}
.lang-popup .lang-card .lang-item .lang-name {
    z-index: 2;
}
/* 保存至桌面的样式 */
.save-desktop {
    display: none;
    position: fixed;
    left: 50%;
    top: 30%;
    background: #fff;
    transform: translate(-50%,-30%);
    z-index: 9999;
    width: 300px;
    min-height: 400px;
    animation: .3s ease-in-out slideIn;
    border-radius: 10px;
    padding: 5px 10px;
}
.save-desktop .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    border-bottom: 1px solid #eee;
}
.save-desktop .img {
    width: 100%;
    height: 100%;
}

/* 登录弹框的样式 */
.login {
    display: none;
    min-width: 350px;
    min-height: 180px;
    background: var(--background-popup);
    z-index: 999;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border-radius: 16px;
    padding: 15px 10px;
    animation: .3s ease-in-out slideIn;
}
.login .login-header {
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.login .login-header span:first-child {
    font-size: 18px;
}
.login .login-content form .inp input {
    width: 100%;
    margin-top: 15px;
    border: none;
    outline: none;
    height: 36px;
    background: #eee;
    border-radius: 16px;
    font-size: 14px;
    padding: 0 20px;
    border: 1px solid #eee;
}
.login .login-content form .login-btn button {
    margin-top: 15px;
    width: 100%;
    height: 36px;
    border-radius: 16px;
    background: #4ed462;
    color: #fff;
    border: none;
}
/* .userinfo {
    display: none;
    padding: 0 20px;
}
.userinfo .user {
    display: flex;
    align-items: center;
    justify-content: space-between;
} */

@media screen and (max-width: 992px) {
    .tab {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
    }
    .tab .content {
        display: none;
    }
    .tab .right {
        min-width:140px;
        justify-content: flex-end;
        gap: 10px;
    }
    .tab .right .one {
        display: none;
        /* padding: 3px;
        display: flex;
        align-items: center;
        gap: 5px; */
    }
    .tab .right .one .img {
        /* width: 20px;
        height: 20px;
        flex-shrink: 0; */
    }
    .lang-popup {
        min-width: 370px;
    }
    /* .save-desktop {
        width: 90%;
        height: 80%;
    }
    .save-desktop .img {
        width: 100%;
        height: 90%;
    } */
    /* .userinfo {
        display: block;
    }
    .userinfo .user .userId {
        font-size: 18px;
    } */
}