diff --git a/admin.php b/admin.php index d751b7d..c709ae9 100644 --- a/admin.php +++ b/admin.php @@ -52,6 +52,12 @@ if (is_file($ossTxt)) { .si.active { color:var(--accent); border-right:3px solid var(--accent); background:rgba(88,166,255,0.05); } .content { flex:1; padding:20px; overflow-y:auto; max-height:calc(100vh - 52px - 44px); } .card { background:var(--card); border:1px solid var(--border); border-radius:8px; padding:16px; margin-bottom:12px; } + /* 第47批:图片壁纸模式下卡片/侧栏自适应半透明+毛玻璃;纯色/默认模式不受影响 */ + body.bg-img-mode .card, body.bg-img-mode .sidebar { + background: rgba(22,27,34,0.55); + backdrop-filter: blur(14px) saturate(1.4); + -webkit-backdrop-filter: blur(14px) saturate(1.4); + } .card h2 { font-size:15px; color:var(--accent); margin-bottom:10px; } .stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-bottom:16px; } .stat { background:var(--card); border:1px solid var(--border); border-radius:8px; padding:14px; text-align:center; } @@ -2140,6 +2146,7 @@ function applyAdminBgImage(url, dim, silent) { b.style.backgroundPosition = 'center center'; b.style.backgroundRepeat = 'no-repeat'; b.style.backgroundAttachment = 'fixed'; + b.classList.add('bg-img-mode'); document.documentElement.style.setProperty('--bg', 'rgba(13,17,23,' + Math.min(0.9, dim + 0.25) + ')'); localStorage.setItem('sdf1_admin_bgimg', JSON.stringify({ type: 'img', url: url, dim: dim })); if (!silent) toast('背景图片已应用', 'ok'); @@ -2227,6 +2234,7 @@ function resetBg() { b.style.backgroundPosition = ''; b.style.backgroundRepeat = ''; b.style.backgroundAttachment = ''; + b.classList.remove('bg-img-mode'); document.documentElement.style.removeProperty('--bg'); b.style.background = ''; const ov = document.getElementById('themePickerOverlay'); @@ -2283,7 +2291,7 @@ function showThemePicker() {
支持任意直链 jpg/png/webp;对方站点防盗链可能导致加载失败