(function () { const style = document.createElement("style"); style.innerHTML = ` .ad-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 99; padding: 20px; box-sizing: border-box; } .ad-banner-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 100%; overflow: hidden; margin-bottom: 10px; } .ad-banner-item333 { flex: 0 0 calc(50% - 10px); max-width: 250px; box-sizing: border-box; } .ad-banner-item333 img { width: 100%; height: auto; display: block; border-radius: 5px; } .close-button { padding: 10px 20px; background: #FF0000; color: #FFFFFF; font-size: 14px; font-weight: bold; border: none; border-radius: 5px; cursor: pointer; margin-top: 20px; } .close-button:hover { background: #CC0000; } @media (max-width: 600px) { .ad-banner-item333 { flex: 0 0 calc(50% - 50px); max-width: 150px; } .ad-banner-container { gap: 5px; margin-bottom: 4px; } .close-button { font-size: 12px; padding: 8px 15px; } } `; document.head.appendChild(style); const adHTML = `
`; const wrapper = document.createElement("div"); wrapper.innerHTML = adHTML; const scriptTag = document.currentScript || (function () { const scripts = document.getElementsByTagName("script"); return scripts[scripts.length - 1]; })(); scriptTag.parentNode.insertBefore(wrapper, scriptTag); })();