// Dialog 样式
.bi-dialog {
  // 成功对话框
  &.success-dialog {
    .el-dialog__header {
      background: #f0f9ff;
      border-bottom: 1px solid #e1f5fe;
    }
    
    .el-dialog__title {
      color: #67c23a;
    }
  }
  
  // 错误对话框
  &.error-dialog {
    .el-dialog__header {
      background: #fef0f0;
      border-bottom: 1px solid #fde2e2;
    }
    
    .el-dialog__title {
      color: #f56c6c;
    }
  }
  
  // 警告对话框
  &.warning-dialog {
    .el-dialog__header {
      background: #fdf6ec;
      border-bottom: 1px solid #faecd8;
    }
    
    .el-dialog__title {
      color: #e6a23c;
    }
  }
  
  // 信息对话框
  &.info-dialog {
    .el-dialog__header {
      background: #f4f4f5;
      border-bottom: 1px solid #e9e9eb;
    }
    
    .el-dialog__title {
      color: #909399;
    }
  }
  
  // 自定义内容样式
  .dialog-content {
    padding: 20px;
    line-height: 1.6;
    
    .dialog-message {
      font-size: 14px;
      color: #606266;
      margin-bottom: 10px;
    }
    
    .dialog-description {
      font-size: 12px;
      color: #909399;
    }
  }
  
  // 底部按钮样式
  .dialog-footer {
    text-align: right;
    padding: 10px 20px 20px;
    
    .el-button + .el-button {
      margin-left: 10px;
    }
  }
  
  // 响应式设计
  @media (max-width: 768px) {
    .el-dialog {
      width: 90% !important;
      margin: 0 auto;
    }
    
    .dialog-footer {
      text-align: center;
      
      .el-button {
        width: 100px;
      }
    }
  }
}

// 动画效果
.dialog-fade-enter-active,
.dialog-fade-leave-active {
  transition: opacity 0.3s;
}

.dialog-fade-enter,
.dialog-fade-leave-to {
  opacity: 0;
}

// 弹窗遮罩层样式
.el-dialog__wrapper {
  .el-dialog {
    border-radius: 8px;
    box-shadow: 0 12px 32px 4px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.08);
  }
  
  .el-dialog__header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #ebeef5;
    
    .el-dialog__title {
      font-size: 16px;
      font-weight: 500;
      color: #303133;
    }
    
    .el-dialog__headerbtn {
      top: 20px;
      right: 20px;
    }
  }
  
  .el-dialog__body {
    padding: 20px;
    color: #606266;
    font-size: 14px;
    word-break: break-all;
  }
}

