1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
| <meta name="referrer" content="no-referrer" />
<link rel="shortcut icon" href="https://imgbed.aspchang.cn/file/1769929845750_52abba40d8f8e6353ea1dcfd3de5b6c1353403349.png_!web-article-pic.webp" type="image/png" />
<!-- ① 面板配置 + 强制暗色模式 -->
<script>
window.CustomLogo = "https://imgbed.aspchang.cn/file/1769929845750_52abba40d8f8e6353ea1dcfd3de5b6c1353403349.png_!web-article-pic.webp";
window.ShowNetTransfer = "true";
window.DisableAnimatedMan = "true";
window.CustomDesc = '星星的星 闪耀双瞳的瞳';
document.documentElement.classList.add('dark');
localStorage.setItem('theme', 'dark');
new MutationObserver(function() {
if (!document.documentElement.classList.contains('dark')) {
document.documentElement.classList.add('dark');
}
}).observe(document.documentElement, { attributes: true, attributeFilter: ['class'] });
</script>
<!-- ② 毛玻璃主题样式 -->
<style id="custom-glass-style">
/* === 全局变量 === */
:root, .dark, html, html.dark {
--page-blur: 2px;
--page-dim: rgba(0,0,0,0.45);
--glass-blur: 16px;
--glass-border: rgba(255,255,255,0.12);
--glass-shadow: 0 8px 32px rgba(0,0,0,0.3);
--color-background: transparent !important;
--background: transparent !important;
--color-ring: transparent !important;
--ring: 0 0% 0% / 0 !important;
}
.dark, html.dark {
--color-card: rgba(0, 0, 0, 0.18) !important;
--color-popover: rgba(0, 0, 0, 0.25) !important;
--btn-glass-bg: rgba(0, 0, 0, 0.25);
--btn-glass-hover: rgba(0, 0, 0, 0.35);
}
:root:not(.dark), html:not(.dark) {
--color-card: rgba(255, 255, 255, 0.5) !important;
--color-popover: rgba(255, 255, 255, 0.55) !important;
--btn-glass-bg: rgba(255, 255, 255, 0.5);
--btn-glass-hover: rgba(255, 255, 255, 0.65);
}
/* === 容器透明 === */
html, body, #root, #app, #__next, div.flex.min-h-screen, main, main.flex, main.bg-background, main[class*="bg-background"], .bg-background, .flex.min-h-screen, div[class*="flex"][class*="min-h-screen"] {
background: transparent !important; background-color: transparent !important; background-image: none !important;
}
section.scrollbar-hidden, section.flex.flex-col, section.grid, section:not(.bg-card), div.grid, div[class*="grid"][class*="gap"] {
background: transparent !important; background-color: transparent !important;
}
/* === 视频层 + 遮罩层 === */
#video-wall {
position: fixed !important; top: 0; left: 0; width: 100vw !important; height: 100vh !important;
z-index: -9999 !important; pointer-events: none !important; overflow: hidden !important;
}
#video-wall video { width: 100%; height: 100%; object-fit: cover !important; }
#glass-overlay {
position: fixed !important; top: 0; left: 0; width: 100vw !important; height: 100vh !important;
z-index: -9998 !important; pointer-events: none !important; background: var(--page-dim) !important;
backdrop-filter: blur(var(--page-blur)) saturate(110%) !important;
-webkit-backdrop-filter: blur(var(--page-blur)) saturate(110%) !important;
}
/* === 卡片磨砂 === */
.bg-card {
background: var(--color-card) !important;
backdrop-filter: blur(var(--glass-blur)) saturate(130%) !important;
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%) !important;
border: 1px solid var(--glass-border) !important;
border-radius: 16px !important;
overflow: hidden !important;
box-shadow: none !important; outline: none !important;
}
.bg-card:hover { border-color: rgba(255,255,255,0.22) !important; }
.dark .bg-card:hover { background: rgba(0,0,0,0.26) !important; }
:root:not(.dark) .bg-card:hover { background: rgba(255,255,255,0.6) !important; }
/* === 按钮磨砂(排除 Switch) === */
button.rounded-full:not([role="switch"]),
button[class*="rounded-full"]:not([role="switch"]),
.rounded-full.bg-white,
.dark .rounded-full.bg-black {
background: var(--btn-glass-bg) !important;
backdrop-filter: blur(12px) saturate(130%) !important;
-webkit-backdrop-filter: blur(12px) saturate(130%) !important;
border: 1px solid var(--glass-border) !important;
box-shadow: none !important;
}
button.rounded-full:not([role="switch"]):hover,
button[class*="rounded-full"]:not([role="switch"]):hover {
background: var(--btn-glass-hover) !important;
}
/* === Sort 按钮 + 标签切换器 === */
.bg-stone-100, .bg-stone-800, [class*="bg-stone-100"], [class*="bg-stone-800"],
.dark .bg-stone-800, .dark [class*="bg-stone-800"] {
background: var(--btn-glass-bg) !important;
backdrop-filter: blur(12px) saturate(130%) !important;
-webkit-backdrop-filter: blur(12px) saturate(130%) !important;
border: 1px solid var(--glass-border) !important;
}
.bg-stone-100 .bg-white, .bg-stone-800 .bg-stone-700,
[class*="bg-stone-100"] .bg-white, [class*="bg-stone-800"] .bg-stone-700,
.dark .bg-stone-700, .dark [class*="bg-stone-700"] {
background: var(--btn-glass-hover) !important;
backdrop-filter: blur(8px) !important;
-webkit-backdrop-filter: blur(8px) !important;
}
/* === 顶栏磨砂 === */
header, nav { background: rgba(0,0,0,0.2) !important; backdrop-filter: blur(12px) saturate(120%) !important; -webkit-backdrop-filter: blur(12px) saturate(120%) !important; }
html:not(.dark) header, html:not(.dark) nav { background: rgba(255,255,255,0.4) !important; }
/* === 文字对比度 === */
.dark .opacity-40, .dark .opacity-50, .dark [class*="opacity-40"], .dark [class*="opacity-50"], html.dark .opacity-40, html.dark .opacity-50 {
opacity: 0.9 !important; color: rgba(255, 255, 255, 0.95) !important; text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
}
.dark .text-muted-foreground, html.dark .text-muted-foreground {
color: rgba(255, 255, 255, 0.85) !important; text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}
.dark .bg-card p, .dark .bg-card span, .dark .bg-card div { text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important; }
:root:not(.dark) .opacity-40, :root:not(.dark) .opacity-50, html:not(.dark) .opacity-40, html:not(.dark) .opacity-50 {
opacity: 1 !important; color: rgba(0, 0, 0, 0.85) !important; text-shadow: none !important;
}
:root:not(.dark) .text-muted-foreground, html:not(.dark) .text-muted-foreground {
color: rgba(0, 0, 0, 0.75) !important; text-shadow: none !important;
}
/* === 选项卡文字 === */
.text-stone-400, .text-stone-500, [class*="text-stone-400"], [class*="text-stone-500"] { color: rgba(120, 113, 108, 1) !important; }
.dark .text-stone-400, .dark .text-stone-500, html.dark .text-stone-400, html.dark .text-stone-500 { color: rgba(200, 195, 190, 1) !important; }
.text-stone-600, [class*="text-stone-600"] { color: rgba(90, 83, 78, 1) !important; }
.dark .text-stone-600, html.dark .text-stone-600 { color: rgba(170, 165, 160, 1) !important; }
/* === Switch 开关 === */
button[role="switch"] { border: 2px solid transparent !important; box-shadow: none !important; }
.dark button[data-state="unchecked"][role="switch"] { background-color: rgba(120, 120, 120, 0.5) !important; }
:root:not(.dark) button[data-state="unchecked"][role="switch"] { background-color: rgba(100, 100, 100, 0.4) !important; }
.dark button[data-state="checked"][role="switch"] { background-color: rgba(100, 200, 100, 0.7) !important; }
:root:not(.dark) button[data-state="checked"][role="switch"] { background-color: rgba(34, 197, 94, 0.8) !important; }
button[role="switch"] > span { background-color: white !important; }
.dark button[role="switch"] > span { background-color: rgba(255, 255, 255, 0.95) !important; }
/* === 移除 ring / shadow === */
.ring, .ring-1, .ring-2, [class~="ring"], [class*="ring-stone"] {
box-shadow: none !important; outline: none !important;
--tw-ring-shadow: 0 0 #0000 !important; --tw-ring-color: transparent !important;
--tw-ring-offset-shadow: 0 0 #0000 !important; --tw-ring-offset-color: transparent !important;
}
[class*="shadow-stone"], [class*="shadow-neutral"], [class*="shadow-lg"], [class*="shadow-md"] {
--tw-shadow: 0 0 #0000 !important; box-shadow: none !important;
}
/* === 隐藏元素 === */
.nz-dashboard-cartoon, .nz-dashboard-illustration, footer kbd { display: none !important; }
::-webkit-scrollbar { display: none !important; }
html, body { scrollbar-width: none !important; }
button[aria-label="Toggle theme"],
button:has(svg.lucide-sun), button:has(svg.lucide-moon),
button[title="Search"],
button[aria-label="Search"] {
display: none !important;
}
</style>
<!-- ③ 视频壁纸初始化 -->
<script>
(function(){
const VIDEO_SRC = "https://cdn.acetaffy.de/4k-fps30.mp4";
function createLayers(){
if(!document.getElementById("video-wall")){
const wall = document.createElement("div");
wall.id = "video-wall";
const video = document.createElement("video");
video.id = "bg-video";
video.autoplay = true; video.loop = true; video.muted = true;
video.playsInline = true; video.preload = "auto"; video.src = VIDEO_SRC;
wall.appendChild(video);
document.body.appendChild(wall);
video.play().catch(()=>{});
}
if(!document.getElementById("glass-overlay")){
const overlay = document.createElement("div");
overlay.id = "glass-overlay";
document.body.appendChild(overlay);
}
}
function ensureStyle(){
const style = document.getElementById("custom-glass-style");
if(style && document.head) document.head.appendChild(style);
}
function init(){
if(document.body){ createLayers(); ensureStyle(); }
}
if(document.readyState === "loading"){
document.addEventListener("DOMContentLoaded", init);
} else {
init();
}
window.addEventListener("load", init);
const observer = new MutationObserver(init);
observer.observe(document.documentElement, {childList:true, subtree:false});
setTimeout(init, 500);
setTimeout(init, 1500);
})();
</script>
|