KTG's comment ignores a few important things to keep in mind:
1. We are masters of conventional ground warfare; however, that's not something we do a lot of.
2. Our track record with guerilla warfare is absolutely something we should be graded on. We do it a lot, and it sucks up more than its fair share of our GDP making it relevant to this discussion.
3. Using #1 to say we'd wipe the floor with China is apples and oranges. Pitting thousands of tanks against each other on an open plain and pitting dozens of ships against each other are not the same discussion. Especially when China is heavily invested in anti-ship missiles to make up for their lack of carrier-based aircraft.
4. "China will only be a regional power at best." I agree; however, they don't want or need to be a global power on the scale of the US to meet their goals. This is one of the reasons why I don't think of them as a threat to the dollar as a reserve currency.
Well, I don't know if I was ignoring, but I was thinking of a US-China conflict specifically, when others were using Iraq 2003, Afghanistan, and Vietnam as examples. And those wars were fought in a way that a typically expected war with China would not be fought.
If there was a military conflict between the US and China, it would happen in either the South China or East China seas. In the South, it could start over the Scarborough Shoal (Obama himself told China there would be war if the Chinese built up an island there), or in the East if Japan and China go at it over the Senkaku Islands, or worse, if the Chinese tried to invade Taiwan.
In any of these cases, the war would primarily be one of a combined Navy/Air campaign. In that case, you would have artificially created islands that would be easy to isolate and bombard. Knocking out the airfields doesn't offer a lot of value as they are typically easy to repair. But these islands don't have a lot of real estate, and loss to the other infrastructure would render them useless. Without bases to refuel, the Chinese can't threaten US navy assets or refueling tankers around the first island chain. Then it becomes an issue of having an inexperienced navy going up against the most experienced in the last 100 years, and the US has lots of anti-ship missiles too. So you are talking about military assets, far from civilian population centers, being on the receiving end of US cruise missiles, bombers, stealth fighters, and so on. So no, there would be no contest. And no-where to hide.
Not to say there wouldn't be US casualties, just saying that at the end of it, the US Navy would be there, the Chinese one would not. They would be unable to venture from port and essentially be what the German navy was in WWI and WWII.
There would be no tank-vs-tank battles in open country as the US trying to invade the most populous country in the world is a no-brainer, but there wouldn't have to be. There is also no way the Chinese would even be able to cross the Taiwan Straight unless they obliterated Taiwan first. Taiwan has a ton of US weapons and even if the Chinese could manage to ferry some troops from the mainland to Taiwan without sinking in the ocean, they wouldn't be able to do much except get shot up on the beaches. I doubt the US would even need to base troops there, except as a show of solidarity. (The US by law has to defend Taiwan).
And finally, strategy wins short wars, logistics wins long ones. No one is more of a master at logistics than the US military. We have some 800 bases of various sizes overseas.
https://www.politico.com/magazine/story/2015/06/us-military-bases-around-the-world-119321