.roleManage {
    width: 100%;
    max-width: 1356px;
    margin: 20px auto;
    padding: 0 20px;
}
.roleManage .select {
    display: flex;
    align-items: center;
}
.roleManage .select #pet-select {
    width: 251px;
    height: 35px;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 15px;
}
.roleManage .select .add {
    padding: 4px 20px;
    color: white;
    background: linear-gradient(180deg,#4ed462, #30933f);
    border-radius: 8px;
    font-size: 16px;
    margin-left: 5px;
    border: none;
    margin-right: 20px;
}
.roleManage .game {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    width: 100%;
    overflow: hidden;
}
.roleManage .game .game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #142a18;
    border-radius: 16px;
    padding: 10px 20px;
    width: 100%;
    overflow: hidden;
}
.roleManage .game .game-item .game-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}
.roleManage .game .game-item .game-left .name,.server {
    font-size: 16px;
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.roleManage .game .game-item .game-right {
    display: flex;
    justify-content: center;
    align-items: center;
}
.roleManage .game .game-item .game-right .edit {
    padding: 5px 10px;
    margin-left: 10px;
    color: white;
    background: linear-gradient(180deg,#4ed462, #30933f);
    border-radius: 10px;
    border: none;
    font-size: 14px;
    width: 60px;
    margin-top: 15px;
}

/* 弹框样式 */
.roleModel {
    width: 500px;
    height: 280px;
    background: #142a18;
    margin: 0 auto;
    border-radius: 30px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}
.roleModel .role-header { 
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.roleModel .role-header img {
    width: 30px;
    height: 30px;
}
.roleModel .role-content {
    flex: 1;
    margin-top: 20px;
}
.roleModel .role-content .role-item {
    margin-top: 20px;
}
.roleModel .role-content .role-item #pet-select,input {
    width: 220px;
    border-radius: 10px;
    padding: 4px 10px;
    border: none;
    font-size: 15px;
}
.roleModel .role-bottom {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.roleModel .role-bottom .save { 
    padding: 4px 20px;
    color: white;
    background: linear-gradient(180deg,#4ed462, #30933f);
    border-radius: 8px;
    font-size: 16px;
    margin-left: 20px;
    border: none;
}
.roleModel .role-bottom .cancel  { 
    padding: 4px 20px;
    color: white;
    background: linear-gradient(180deg,#4ed462, #30933f);
    border-radius: 8px;
    font-size: 16px;
    margin-left: 20px;
    border: none;
}


@media screen and (max-width: 992px) {
    .roleManage .select label {
        font-size: 14px;
    }
    .roleManage .select #pet-select {
        width: 180px;
        height: 35px;
        border-radius: 10px;
    }
    .roleManage {
        width: 100%;
        padding: 0 10px;
    }
    .roleManage .game {
        margin: 20px 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .roleManage .game .game-item {
        padding: 0 10px;
    }
    .roleModel {
        width: 100%;
        padding: 0 20px;
    }
}