Hybrid energy storage systems combining batteries and supercapacitors can effectively mitigate power fluctuations from renewable energy sources by leveraging their complementary energy and power density characteristics. This paper proposes a bilevel optimization framework for simultaneous capacity sizing and energy management of such systems. The upper level employs an improved particle swarm optimization algorithm to determine optimal storage capacities, while the lower level implements a rule-based power allocation strategy with adaptive frequency decomposition. A rainflow counting-based battery degradation model is integrated to capture the coupled effects of state of charge, depth of discharge, and C-rate on cycle life, enabling accurate life cycle cost estimation. The adaptive frequency decomposition method dynamically adjusts the cutoff frequency based on power variance characteristics to improve power allocation efficiency. Case studies demonstrate that the proposed framework reduces life cycle cost by 15.2% compared to conventional approaches, achieves 84.28% power fluctuation reduction, and extends battery lifetime to 8.6 years. The bilevel structure effectively coordinates long-term capacity planning with real-time operational control, providing a practical methodology for renewable energy integration.