Two days of U.S.-China trade talks in Beijing have been surprisingly productive, fueling hopes the countries can reach a deal to avert punishing new tariffs.