-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
380 lines (333 loc) · 8.31 KB
/
Copy pathstyles.css
File metadata and controls
380 lines (333 loc) · 8.31 KB
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f5f5f5;
color: #333;
line-height: 1.3;
padding: 6px;
}
.container {
width: 100%;
margin: 0 auto;
}
.content {
position: relative;
width: 100%;
}
header {
text-align: center;
margin-bottom: 15px;
padding: 10px;
}
/* 搜索框样式 */
.search-container {
max-width: 100%;
margin: 0 auto;
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
display: flex;
justify-content: center;
}
.search-title {
font-size: 1.5rem;
margin-bottom: 10px;
color: #2c3e50;
}
.search-form {
display: flex;
flex-direction: column;
gap: 10px;
max-width: 600px;
width: 100%;
align-items: center;
}
.search-input-container {
display: flex;
max-width: 600px;
width: 100%;
align-items: center;
}
.search-input {
flex: 1;
padding: 10px 15px;
border: 1px solid #ddd;
border-right: none;
border-radius: 4px 0 0 4px;
font-size: 16px;
outline: none;
background-color: rgba(255, 255, 255, 0.7); /* 添加半透明背景 */
backdrop-filter: blur(3px); /* 添加模糊效果 */
-webkit-backdrop-filter: blur(3px); /* Safari 兼容 */
}
.search-button {
padding: 10px 20px;
background-color: rgba(202, 251, 54, 0.9);
color: white;
border: none;
border-radius: 0 4px 4px 0;
cursor: pointer;
font-size: 16px;
transition: background-color 0.2s;
}
.search-button:hover {
background-color: rgba(202, 251, 54, 1);
}
.search-engines {
display: flex;
gap: 15px;
justify-content: center;
margin: 0 10px;
border: 1px solid rgba(255, 255, 255, 0.5);
border-radius: 20px;
padding: 5px 10px;
background-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.search-engine-option {
display: flex;
align-items: center;
cursor: pointer;
position: relative;
padding: 4px 10px;
border-radius: 15px;
transition: all 0.3s ease;
}
.search-engine-option:hover {
background-color: rgba(255, 255, 255, 0.4);
}
/* 隐藏原始的radio按钮 */
.search-engine-option input[type="radio"] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
/* 自定义radio按钮样式 */
.search-engine-option span {
position: relative;
padding-left: 24px;
font-size: 14px;
font-weight: 500;
color: #333;
transition: all 0.3s ease;
}
.search-engine-option span:before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 16px;
border: 2px solid rgba(0, 0, 0, 0.2);
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.7);
transition: all 0.3s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* 选中状态的样式 */
.search-engine-option input[type="radio"]:checked + span {
color: rgb(202, 251, 54);
font-weight: 600;
}
.search-engine-option input[type="radio"]:checked + span:before {
border-color: rgb(202, 251, 54);
background-color: rgba(202, 251, 54, 0.1);
box-shadow: 0 0 0 2px rgba(202, 251, 54, 0.2);
}
.search-engine-option input[type="radio"]:checked + span:after {
content: '';
position: absolute;
left: 5px;
top: 50%;
transform: translateY(-50%);
width: 8px;
height: 8px;
border-radius: 50%;
background-color: rgb(202, 251, 54);
animation: pulse 0.4s ease-out;
}
@keyframes pulse {
0% {
transform: translateY(-50%) scale(0);
opacity: 0;
}
50% {
transform: translateY(-50%) scale(1.5);
opacity: 0.5;
}
100% {
transform: translateY(-50%) scale(1);
opacity: 1;
}
}
/* 聚焦状态的样式 */
.search-engine-option input[type="radio"]:focus + span:before {
box-shadow: 0 0 0 3px rgba(202, 251, 54, 0.3);
}
/* 新增分类容器样式 */
.categories-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
width: 100%;
background-color: rgba(245, 245, 245, 0.2); /* 半透明背景 */
padding: 20px;
border-radius: 8px;
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
}
.category-section {
margin-bottom: 10px;
background-color: rgba(255, 255, 255, 0.2); /* 修改为半透明白色背景 */
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
overflow: hidden;
/* 在PC端,每个分类占据一半宽度减去间距 */
width: 100%;
backdrop-filter: blur(5px); /* 添加模糊效果,增强可读性 */
-webkit-backdrop-filter: blur(5px); /* Safari 兼容 */
}
.category-title {
padding: 5px 10px;
background-color: rgba(202, 251, 54, 0.6); /* 标题背景也设为半透明 */
color: rgb(33, 33, 33);
font-size: 1rem;
}
.site-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
gap: 6px;
padding: 8px;
}
.site-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 5px;
border-radius: 3px;
transition: transform 0.2s, box-shadow 0.2s;
background-color: rgba(249, 249, 249, 0.4); /* 卡片背景也设为半透明 */
text-decoration: none;
color: #333;
height: 100%;
}
/* 非内网地址的卡片样式 */
.site-card.external {
background-color: rgba(210, 222, 47, 0.6); /* 绿色半透明背景 */
color: #333; /* 白色文字,提高可读性 */
}
/* VIP1域名的卡片样式 */
.site-card.vip1 {
background-color: rgba(250, 222, 47, 0.6); /* 黄色半透明背景 */
color: #333; /* 白色文字 */
}
/* VIP2域名的卡片样式 */
.site-card.vip2 {
background-color: rgba(210, 242, 67, 0.6); /* 绿色半透明背景 */
color: #333; /* 白色文字 */
}
.site-card:hover {
transform: translateY(-2px);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
background-color: rgba(12, 241, 69, 0.8); /* 悬停时背景更不透明 */
}
/* 非内网地址的卡片悬停样式 */
.site-card.external:hover {
background-color: rgba(12, 241, 69, 0.8); /* 悬停时背景更不透明 */
box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}
/* VIP1域名的卡片悬停样式 */
.site-card.vip1:hover {
background-color: rgba(12, 241, 69, 0.8); /* 悬停时背景更不透明 */
box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}
/* VIP2域名的卡片悬停样式 */
.site-card.vip2:hover {
background-color: rgba(12, 241, 69, 0.8); /* 悬停时背景更不透明 */
box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}
.site-icon {
width: 24px;
height: 24px;
border-radius: 50%;
margin-bottom: 4px;
object-fit: cover;
background-color: #e0e0e0;
display: flex;
justify-content: center;
align-items: center;
font-size: 12px;
color: #555;
}
.site-name {
font-weight: bold;
text-align: center;
margin-bottom: 2px;
font-size: 0.75rem;
line-height: 1.1;
}
.site-url {
font-size: 0.65rem;
color: #666;
text-align: center;
word-break: break-all;
}
/* 移动端样式 */
@media (max-width: 768px) {
.site-grid {
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}
.category-section {
width: 100%; /* 移动端每个分类占据整行 */
}
.search-input-container {
flex-direction: column;
}
.search-input {
border-right: 1px solid #ddd;
border-radius: 4px 4px 0 0;
width: 100%;
}
.search-engines {
margin: 10px 0;
width: 100%;
}
.search-button {
border-radius: 0 0 4px 4px;
width: 100%;
}
}
/* PC端样式 */
@media (min-width: 769px) {
.container {
width: 90% !important; /* 强制应用此宽度 */
max-width: 1400px; /* 设置最大宽度,避免在超宽屏幕上过宽 */
margin: 0 auto;
}
.category-section {
width: calc(50% - 5px); /* 每个分类占据一半宽度减去间距的一半 */
margin-bottom: 10px;
}
}
@media (min-width: 1200px) {
.site-grid {
grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
}
}
/* 粒子背景样式 */
#tsparticles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}