Mike:
Don’t underestimate the Chinese.....a couple of years ago, one of their electric subs surfaced a few feet from one of our carriers, (protected by task force), and we didnt even know it was there! (until then!~)
It wasn’t anywhere near a “few” feet. The sub surfaced “within viable torpedo range” which can be anywhere from 1000 feet to a few miles.
I know for a fact it was more than a mile away from the carrier itself. Still too close for comfort and obviously an embarrassment for the Navy, but not necessarily a technological achievement.
Beyond that, the carrier they have is a 30 year old Soviet knock off. It only has VTOL capability and very limited offensive weaponry. It would be gone within minutes in an engagement.