/* login */
.header-r {
    position: relative;
  }
  #loginContent {
    position: absolute;
    left: 520px;
    top: 46px;
    font-size: 16px;
    display: flex;
    width: max-content;
    align-items: center;
  }
  #loginButton #showLoginModal {
    cursor: pointer;
  }
  /* 头像样式 */
  #userContainer .avatar{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
  }
  #userContainer #userName {
    max-width: 100px;
    margin-left: 5px;
    margin-right: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
  }
  
  /* login模态框样式 */
  .login-modal {
    display: none;
    position: fixed;
    z-index: 9000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }
  
  .login-modal-content {
    width: 400px;
    height: 500px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 40px;
    box-sizing: border-box;
  }
  
  .login-modal-close {
    color: #6D6D6E;
    float: right;
    font-size: 36px;
    position: absolute;
    right: 20px;
    top: 0;
  }
  
  .login-modal-close:hover,
  .login-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  .login-modal-content h2 {
    margin-top: 40px;
    text-align: center;
    font-weight: 400;
    font-size: 24px;
    color: #454647;
  }
  #loginForm {
    text-align: center;
    margin-top: 80px;
  }
  #loginForm label {
    font-weight: 400;
    font-size: 14px;
    color: #454647;
    margin-right: 12px;
  }
  #loginForm input {
    width: 236px;
    height: 40px;
    background: #F1F3F6;
    border-radius: 4px;
    border: 1px solid #E1E3E5;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  #loginForm #code {
    width: 128px;
  }
  #loginForm #getVerificationCode {
    background: #fff;
    border: none;
    font-weight: 400;
    font-size: 14px;
    color: #E2010F;
    cursor: pointer;
    margin-left: 38px;
  }
  #loginForm input:focus {
    outline: none;
  }
  #loginForm #submit-login {
    width: 222px;
    height: 40px;
    background: #E2010F;
    border-radius: 4px;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    margin-top: 100px;
  }
  
  /* login模态框样式 */
  .captcha-modal {
    display: none;
    position: fixed;
    z-index: 9100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }
  
  .captcha-modal-content {
    width: 300px;
    height: 200px;
    position: absolute;
    z-index: 2000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 40px;
    box-sizing: border-box;
  }
  
  .captcha-modal-close {
    color: #6D6D6E;
    float: right;
    font-size: 36px;
    position: absolute;
    right: 20px;
    top: 0;
  }
  
  .captcha-modal-close:hover,
  .captcha-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  #captchaForm {
    text-align: center;
    margin-top: 20px;
  }
  #captchaForm input {
    width: 100px;
    height: 40px;
    background: #F1F3F6;
    border-radius: 4px;
    border: 1px solid #E1E3E5;
    margin-bottom: 20px;
    padding: 0 10px;
    margin-right: 10px;
  }
  
  #captchaForm input:focus {
    outline: none;
  }
  #captchaForm #submit-captchaForm {
    width: 192px;
    height: 40px;
    background: #E2010F;
    border-radius: 4px;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
  }
  
  /* 个人信息模态框样式 */
  .edit-profile-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }
  
  .edit-profile-modal-content {
    width: 400px;
    height: 460px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 40px;
    box-sizing: border-box;
  }
  
  .edit-profile-modal-close {
    color: #6D6D6E;
    float: right;
    font-size: 36px;
    position: absolute;
    right: 20px;
    top: 0;
  }
  
  .edit-profile-modal-close:hover,
  .edit-profile-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  #editProfileForm {
    text-align: center;
    margin-top: 20px;
    position: relative;
  }
  #editProfileForm .avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
  }
  #editProfileForm .avatar-tips {
    font-weight: 400;
    font-size: 14px;
    color: #E2010F;
    margin-top: 10px;
  }
  #editProfileForm .avatar-format-tips {
    font-weight: 400;
    font-size: 14px;
    color: #969798;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  #editProfileForm label {
    font-weight: 400;
    font-size: 14px;
    color: #454647;
    margin-right: 12px;
  }
  #editProfileForm input {
    width: 236px;
    height: 40px;
    background: #F1F3F6;
    border-radius: 4px;
    border: 1px solid #E1E3E5;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  #editProfileForm input:focus {
    outline: none;
  }
  #editProfileForm #avatar {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    border: none;
    opacity: 0;
    cursor: pointer;
  }
  #editProfileForm .cancel-editProfile {
    width: 100px;
    height: 40px;
    background: #D2D3D4;
    border-radius: 4px;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
  }
  #editProfileForm #submit-editProfile {
    width: 100px;
    height: 40px;
    background: #E2010F;
    border-radius: 4px;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    margin-left: 30px;
  }
  
  /* 评论样式 */
  #commentSection { 
    width: 100%;
    padding-right: 50px;
    box-sizing: border-box;
  }
  #commentHeader {
    width: 100%;
    height: 44px;
    line-height: 44px;
    background: #F3F3F3;
    font-weight: 600;
    font-size: 18px;
    color: #333333;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
    margin-bottom: 18px;
    padding: 0 10px;
  }
  #commentCount {
    color: #969798;
  }
  #commentTextarea {
    display: flex;
  }
  #commentTextarea .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
  }
  #commentTextarea .comment-input {
    resize: none;
    height: 116px;
    flex: 1;
    background: #F1F3F6;
    border-radius: 4px;
    border: none;
    padding: 10px;
  }
  #commentTextarea .comment-input:focus {
    outline: none;
  }
  #commentSection .submit-box {
    height: 30px;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  #commentSection .submit-box button {
    width: 76px;
    height: 30px;
    float: right;
    background: #E2010F;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    color: #FFFFFF;
    cursor: pointer;
    cursor: pointer;
  }
  
  #commentsList{
    max-height: 800px;
    overflow: auto;
  }
  .comment-item {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #F1F3F6
  }
  .comment-item .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
  }
  .comment-item .comment-content {
    flex: 1;
    font-weight: 400;
  }
  .comment-item .comment-content .comment-user {
    font-size: 14px;
    color: #000000;
    margin-bottom: 10px;
  }
  .comment-item .comment-content .comment-text {
    font-size: 14px;
    color: #454647;
    margin-bottom: 10px;
  }
  .comment-item .comment-content .comment-time {
    font-size: 14px;
    color: #969798;
    margin-bottom: 10px;
  }

  /* 消息提示样式 */
.message-container {
  position: fixed;
  min-width: 300px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 20px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-width: 1px;
  border-style: solid;
}

.message-container.success {
  background-color: rgb(240, 249, 235);
  border-color: rgb(225, 243, 216);
  color: rgb(103, 194, 58);
}

.message-container.error {
  background-color: rgb(254, 240, 240);
  border-color: rgb(253, 226, 226);
  color: rgb(245, 108, 108);
}

.message-container.info {
  background-color: #edf2fc;
  border: 1px solid #ebeef5;
  color: #909399;
}

.message-container.warning {
  background-color: rgb(253, 246, 236);
  border-color: rgb(250, 236, 216);
  color: rgb(230, 162, 60);
}

.message-container .message-icon {
  margin-right: 10px;
}

.message-container .message-close {
  cursor: pointer;
  margin-left: 10px;
  font-size: 18px;
}