In order to achieve the vertical centering of the text on the right side above, I tried a variety of methods, but due to the uncertain height of the parent container, many solutions were rejected. Finally, after asking for help from an expert, I found The following solution:
.container{
display:flex;
flex-direction:row;
align-items:center;
}