-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
380 lines (333 loc) · 7.9 KB
/
styles.css
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
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
padding: 0;
background-color: #fff;
}
.title {
text-align: center;
background: linear-gradient(45deg, #2196F3, #4CAF50);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 84px;
margin: 120px auto 60px;
font-weight: 700;
font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
letter-spacing: -2px;
max-width: 800px;
}
.input-group {
display: flex;
margin: 30px 0;
gap: 10px;
width: 100%;
max-width: 800px;
}
.input-group input {
flex: 1;
padding: 12px 20px;
border: 1px solid #ddd;
border-radius: 24px;
font-size: 16px;
transition: all 0.3s ease;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.input-group input:focus {
outline: none;
border-color: #2196F3;
box-shadow: 0 2px 8px rgba(33,150,243,0.2);
}
.download-btn {
background: #1a73e8;
color: white;
border: none;
padding: 12px 28px;
border-radius: 24px;
cursor: pointer;
font-size: 16px;
transition: all 0.3s ease;
box-shadow: 0 2px 6px rgba(26,115,232,0.2);
}
.download-btn:hover {
background: #1557b0;
box-shadow: 0 4px 12px rgba(26,115,232,0.3);
}
.select-group {
position: relative;
display: flex;
align-items: center;
gap: 10px;
margin: 20px 0;
width: 100%;
max-width: 800px;
}
.select-group select {
flex: 1;
padding: 8px 16px;
border: 1px solid #ddd;
border-radius: 20px;
transition: all 0.3s ease;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.select-group select:focus {
outline: none;
border-color: #2196F3;
box-shadow: 0 2px 8px rgba(33,150,243,0.2);
}
.test-btn {
background: #4CAF50;
color: white;
border: none;
padding: 8px 20px;
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 6px rgba(76,175,80,0.2);
}
.test-btn:hover {
background: #388E3C;
box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}
.notice {
background: #f0f7ff;
border: 1px solid #cce5ff;
color: #1a73e8;
padding: 16px 24px;
border-radius: 16px;
margin: 20px 0;
box-shadow: 0 2px 6px rgba(26,115,232,0.05);
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
position: fixed;
top: 0;
left: 0;
right: 0;
background: white;
z-index: 100;
}
.logo {
font-size: 28px;
font-weight: 600;
display: flex;
align-items: center;
gap: 12px;
background: linear-gradient(45deg, #2196F3, #4CAF50);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.logo::before {
content: "";
display: inline-block;
width: 32px;
height: 32px;
background: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill="%23333" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>') center/contain no-repeat;
}
.header-buttons {
display: flex;
gap: 10px;
}
.hosts-btn, .reaction-btn {
padding: 8px 16px;
border-radius: 20px;
font-size: 14px;
cursor: pointer;
text-decoration: none;
transition: all 0.3s ease;
}
.hosts-btn {
background: #f3f4f6;
color: #333;
border: 1px solid #ddd;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.hosts-btn:hover {
background: #e5e7eb;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.reaction-btn {
background: #1a73e8;
color: white;
border: none;
box-shadow: 0 2px 6px rgba(26,115,232,0.2);
text-decoration: none;
display: inline-block;
}
.reaction-btn:hover {
background: #1557b0;
box-shadow: 0 4px 12px rgba(26,115,232,0.3);
}
/* 添加使用说明样式 */
.instructions {
background: white;
border-radius: 16px;
padding: 24px 32px;
margin: 20px 0 30px;
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.instructions h2 {
color: #1a73e8;
font-size: 24px;
margin: 0 0 16px;
font-weight: 600;
}
.instructions ol, .instructions ul {
margin: 0;
padding-left: 24px;
}
.instructions li {
margin: 12px 0;
color: #333;
line-height: 1.6;
}
.instructions ul li {
list-style: none;
margin: 16px 0;
}
.label {
display: inline-block;
min-width: 80px;
color: #666;
font-weight: 500;
}
.example-link {
color: #1a73e8;
text-decoration: none;
word-break: break-all;
background: #f0f7ff;
padding: 4px 8px;
border-radius: 4px;
margin-left: 8px;
transition: all 0.3s ease;
}
.example-link:hover {
background: #e3f2fd;
text-decoration: underline;
}
/* 确保使用说明在标题下方 */
.title + #results .instructions {
margin-top: 0;
}
/* 调整主内容区域样式 */
.main-content {
min-height: calc(100vh - 600px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0 20px;
max-width: 800px;
margin: 0 auto;
width: 100%;
}
/* 页脚样式 */
.footer {
text-align: center;
padding: 20px;
margin-top: 40px;
border-top: 1px solid #eee;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.copyright {
color: #666;
font-size: 14px;
text-align: left;
}
.github-link {
color: #1a73e8;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 14px;
transition: color 0.3s ease;
}
.github-link:hover {
color: #1557b0;
}
.github-icon {
width: 20px;
height: 20px;
display: inline-block;
background: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill="%231a73e8" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>') center/contain no-repeat;
}
/* 修改使用说明样式以适应页脚 */
.footer .instructions {
max-width: 1200px;
margin: 0 auto;
background: transparent;
box-shadow: none;
padding: 0 20px;
}
.footer .instructions h2 {
color: #1a73e8;
font-size: 20px;
margin: 30px 0 16px;
font-weight: 600;
}
.footer .instructions h2:first-child {
margin-top: 0;
}
/* 调整示例链接样式 */
.footer .example-link {
display: inline-block;
margin-top: 4px;
font-size: 14px;
}
#results {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 60px 0 0;
max-width: 1200px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
}
/* 修改自动选择提示的样式 */
.auto-select-notice {
position: absolute;
bottom: -30px;
left: 0;
color: #1a73e8;
font-size: 14px;
opacity: 1;
transition: opacity 0.3s ease;
}
/* 添加测速提示样式 */
.speed-notice {
position: absolute;
bottom: -30px;
left: 0;
color: #1a73e8;
font-size: 14px;
animation: fadeInOut 3s ease-in-out forwards;
}
@keyframes fadeInOut {
0% { opacity: 0; }
20% { opacity: 1; }
80% { opacity: 1; }
100% { opacity: 0; }
}
/* 修改测试按钮禁用状态样式 */
.test-btn:disabled {
background: #ccc;
cursor: not-allowed;
}
#testProgress {
color: #666;
font-size: 14px;
}