  }

        window.addEventListener('resize', resizeCanvas);
        resizeCanvas();

        // 性能监控
        let lastTime = performance.now();
        let fps = 0;
        let frameCount = 0;
        let lastFpsUpdate = 0;
        let fpsHistory = [];
        const fpsHistoryLength = 60;

        // 地球日计数器
        let earthDayCount = 0;
        let lastEarthDayUpdate = 0;

        // 星球数据
        const planets = [
            { name: "Sun", colorPalette: ['#f2831f', '#f15d22', 