We relate the signature of flat bundles associated with the surface group representations into Hermitian Lie groups
with Toledo invariant and eta invariant using Atiyah-Patodi-Singer index theorem together with bounded cohomology theory and
other techniques. We also give Milnor-Wood type inequality for the signature and Toledo invariant.
This is a joint work with P. Pansu and X. Wan.