From d0cdadd29dfe1c886818f4aebd5ded83e40cd341 Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Thu, 22 Oct 2026 23:24:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC47=E6=89=B9=EF=BC=9A2FA=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E7=8A=B6=E6=80=81=E5=8F=8C=E5=90=91=E5=90=8C=E6=AD=A5?= =?UTF-8?q?(pull=5Fstate/push=5Fstate)=EF=BC=9B=E5=9B=BE=E7=89=87=E5=A3=81?= =?UTF-8?q?=E7=BA=B8=E4=B8=8B=E5=8D=A1=E7=89=87/=E4=BE=A7=E6=A0=8F?= =?UTF-8?q?=E5=8D=8A=E9=80=8F=E6=98=8E=E6=AF=9B=E7=8E=BB=E7=92=83=E8=87=AA?= =?UTF-8?q?=E9=80=82=E5=BA=94=EF=BC=9B=E5=A3=81=E7=BA=B8=E6=BA=90=E6=94=B9?= =?UTF-8?q?=E5=9B=9B=E7=BA=A7fallback(=E5=BF=85=E5=BA=94=E4=B8=BB=E5=9F=9F?= =?UTF-8?q?/=E4=B8=AD=E5=9B=BD=E9=95=9C=E5=83=8F/NASA=20APOD/picsum?= =?UTF-8?q?=E5=85=9C=E5=BA=95)+=E8=BD=AC=E5=8F=91=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95=E6=89=A9=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin.php | 11 ++++- api/twofa.php | 111 +++++++++++++++++++++++++++++++++++++++++++--- api/wallpaper.php | 98 ++++++++++++++++++++++++++++++---------- player.php | 14 +++++- 4 files changed, 204 insertions(+), 30 deletions(-) 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;对方站点防盗链可能导致加载失败