Seismic time-frequency analysis methods can be used for hydrocarbon detection because of the phenomena of energy and abnormal attenuation of frequency when the seismic waves travel across reservoirs. A high-resolution method based on variational mode decomposition (VMD), continuous-wavelet transform (CWT) and frequency-weighted energy operator (FWEO) is proposed for hydrocarbon detection in tight sandstone gas reservoirs. VMD can decompose seismic signals into a set of intrinsic mode functions (IMF) in the frequency domain. In order to avoid meaningful frequency loss, the CWT method is used to obtain the time-frequency spectra of the selected IMFs. The energy separation algorithm based on FWEO can improve the resolution of time-frequency spectra and highlight abnormal energy, which is applied to track the instantaneous energy in the time-frequency spectra. The difference between the high-frequency section and low-frequency section acquired by applying the proposed method is utilized to detect hydrocarbons. Applications using the model and field data further demonstrate that the proposed method can effectively detect hydrocarbons in tight sandstone reservoirs, with good anti-noise performance. The newly-proposed method can be used as an analysis tool to detect hydrocarbons.