// ==================== 全局变量 ==================== const apiBase = location.origin; let keywordsData = {}; let currentCookieId = ''; let editCookieId = ''; let authToken = localStorage.getItem('auth_token'); let dashboardData = { accounts: [], totalKeywords: 0 }; // 账号关键词缓存 let accountKeywordCache = {}; let cacheTimestamp = 0; const CACHE_DURATION = 30000; // 30秒缓存