/* Message组件样式 */
.message {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  z-index: 9999;
  animation: fadeInOut 3s ease-in-out forwards;
}

.message.success {
  background-color: #67c23a;
}

.message.error {
  background-color: #f56c6c;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    bottom: 0;
  }
  10% {
    opacity: 1;
    bottom: 50%;
  }
  90% {
    opacity: 1;
    bottom: 50%;
  }
  100% {
    opacity: 0;
    bottom: 0;
  }
}

/* Dialog组件样式 */
.dialog-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}

.dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 400px;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999;
  display: none;
}

.dialog-content {
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 20px;
  line-height: 1.5;
}

.dialog-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #409eff;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}

.protocol {
  color: #409eff;
  cursor: pointer;
}
