.hc-container{width:100%;margin:20px 0;font-family:-apple-system,”Microsoft YaHei”,sans-serif;box-sizing:border-box}.hc-header-title{color:#475569;font-size:15px;font-weight:600;margin-bottom:15px;display:flex;align-items:center;gap:8px;text-align:left}.hc-header-title::before{content:””;width:4px;height:16px;background:linear-gradient(to bottom,#6366f1,#a855f7);border-radius:10px}.hc-flex-box{display:flex;flex-wrap:nowrap;gap:12px;width:100%}.hc-item-card{flex:1;min-width:0;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 4px rgba(0,0,0,.02)}.hc-item-card:hover{border-color:#6366f1;box-shadow:0 10px 15px -3px rgba(99,102,241,.1);transform:translateY(-1px)}.hc-info-content{display:flex;flex-direction:column;overflow:hidden}.hc-main-label{font-size:14px;font-weight:700;color:#1e293b;margin-bottom:3px;white-space:nowrap}.hc-sub-url{font-size:clamp(12px,2.5vw,15px);color:#64748b;font-family:’Segoe UI’,Tahoma,Geneva,Verdana,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hc-copy-btn{flex-shrink:0;background:linear-gradient(135deg,#6366f1 0%,#4f46e5 100%);color:#fff;border:none;padding:7px 15px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;margin-left:10px;box-shadow:0 4px 6px -1px rgba(79,70,229,.2);transition:all .2s;white-space:nowrap}.hc-copy-btn:hover{box-shadow:0 6px 12px -1px rgba(79,70,229,.3);filter:brightness(1.1)}.hc-copy-btn:active{transform:scale(.94)}.hc-popup-toast{position:fixed;top:40px;left:50%;transform:translateX(-50%) translateY(-20px);background:#0fb500;color:#fff;padding:10px 24px;border-radius:50px;font-size:14px;font-weight:500;box-shadow:0 20px 25px -5px rgba(0,0,0,.2);z-index:999999;opacity:0;pointer-events:none;transition:all .4s cubic-bezier(.175,.885,.32,1.275)}.hc-popup-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media (max-width:480px){.hc-flex-box{gap:8px}.hc-item-card{padding:10px 8px}.hc-copy-btn{padding:6px 10px;font-size:12px}}
function executeCopy(elementId) {
const textToCopy = document.getElementById(elementId).innerText;
// 现代 API 复制
if (navigator.clipboard && window.isSecureContext) {
navigator.clipboard.writeText(textToCopy).then(triggerToast);
} else {
// 兼容性兜底方案
const textArea = document.createElement(“textarea”);
textArea.value = textToCopy;
textArea.style.position = “fixed”;
textArea.style.left = “-9999px”;
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
try {
document.execCommand(‘copy’);
triggerToast();
} catch (err) {
console.error(‘无法复制’, err);
}
document.body.removeChild(textArea);
}
}
function triggerToast() {
const toast = document.getElementById(‘hcToastBox’);
toast.classList.add(‘show’);
setTimeout(() => {
toast.classList.remove(‘show’);
}, 2000);
}
/* 简单的网格样式,确保一行 4 个 */
.image-grid-wrap { display: flex; gap: 10px; margin-top: 10px; }
.image-grid-item { flex: 1; text-decoration: none; }
.image-grid-item img { width: 100%; height: auto; border-radius: 5px; display: block; }