Flavor mixing and gauge structure