document.getElementById("searchBtn").addEventListener("click", async () => { const input = document.getElementById("searchInput").value.trim(); const resultBox = document.getElementById("results"); resultBox.innerHTML = ""; if (!input) return; const keywords = input.split(/\s+/).filter(Boolean); const keywordGroups = keywords.map(k => [k]); try { const response = await fetch("http://app.wisdompulse.cn/search", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ keywordGroups, page: 1, size: 10 }) }); const data = await response.json(); if (!data.results || data.results.length === 0) { resultBox.innerHTML = "