/* 自定义消息样式 */
.custom-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 15px;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  max-width: 90%;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 9999;
  font-size: 14px;
}

.custom-message.show {
  transform: translateX(0);
}

.message-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.message-icon {
  margin-right: 10px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
}

.message-text {
  flex: 1;
  word-break: break-word;
}

.message-close {
  cursor: pointer;
  font-size: 20px;
  margin-left: 10px;
  opacity: 0.7;
}

.message-close:hover {
  opacity: 1;
}

.message-text-container {
  display: flex;
  flex-direction: column;
}

.message-text-zh {
  font-weight: bold;
  margin-bottom: 2px;
}

.message-text-en {
  font-size: 0.9em;
  opacity: 0.9;
}

/* 不同类型的消息样式 */
.custom-message-success {
  background-color: #f0f9eb;
  border-left: 4px solid #67c23a;
  color: #67c23a;
}

.custom-message-error {
  background-color: #fef0f0;
  border-left: 4px solid #f56c6c;
  color: #f56c6c;
}

.custom-message-warning {
  background-color: #fdf6ec;
  border-left: 4px solid #e6a23c;
  color: #e6a23c;
}

.custom-message-info {
  background-color: #f4f4f5;
  border-left: 4px solid #909399;
  color: #909399;
}

/* 原有样式保持不变 */
.upload_preview_area {
  margin: 20px 0;
}

.upload_preview_area h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.upload_files_container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.no-files {
  color: #999;
  font-style: italic;
}

.upload_file_item {
  width: 180px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.file_preview {
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.file_preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.file_info {
  padding: 8px;
}

.file_name {
  font-size: 12px;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove_file,
.view_file {
  font-size: 12px;
  padding: 3px 8px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.remove_file {
  background-color: #ff4d4f;
  color: white;
  margin-right: 5px;
}

.view_file {
  background-color: #1890ff;
  color: white;
}

.file_view_modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal_content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  max-width: 80%;
  max-height: 80%;
  overflow: auto;
  position: relative;
}

.close_modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.image_container {
  margin-top: 15px;
  text-align: center;
}

.image_container img {
  max-width: 100%;
  max-height: 70vh;
}

/* 优化单选按钮样式 */
.Uradio {
  display: flex;
  align-items: start;
  /* gap: 20px; */
  justify-content: space-between;
}

.Uradio1,
.Uradio2 {
  position: relative;
  display: flex;
  align-items: center;
}

.Uradio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  position: relative;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  user-select: none;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.radio-label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background-color: #fff;
  transition: all 0.2s ease;
}

/* 删除 .radio-label:after 样式 */

/* 修改选中状态样式 */
.Uradio input[type="radio"]:checked + .radio-label:before {
  border-color: #5ac06e;
  background-color: #f0f7ff;
}

.Uradio input[type="radio"]:focus + .radio-label:before {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.Uradio input[type="radio"]:hover + .radio-label {
  color: #007bff;
}

/* 适配移动端 */
@media screen and (max-width: 768px) {
  .Uradio {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .radio-label {
    font-size: 14px;
  }
}

/* 验证码区域样式 */
.captcha-area {
  margin: 20px 0;
}

.captcha-input {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

#captcha-img {
  height: 38px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

#captcha-img:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

#code {
  width: 300px;
  height: 22px;
  margin-left: 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  text-align: left;
  outline: none;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

#code:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.captcha-input::after {
  content: "点击图片刷新";
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 12px;
  color: #888;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.captcha-input:hover::after {
  opacity: 1;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .captcha-input {
    align-items: flex-start;
    gap: 10px;
  }

  #code {
    max-width: 100%;
    width: 100%;
  }

  #captcha-img {
    height: 36px;
  }
}
