-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
540 lines (481 loc) · 10.9 KB
/
Copy pathstyle.css
File metadata and controls
540 lines (481 loc) · 10.9 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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
body {
font-family: "HarmonyOS Sans", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
background: #f6f7fb;
margin: 0;
padding: 0;
}
.main-layout {
display: flex;
flex-direction: row;
gap: 32px;
max-width: 90%;
margin: 48px auto 48px auto;
padding: 0 16px;
justify-content: center;
align-items: flex-start;
}
@media (max-width: 900px) {
.main-layout {
flex-direction: column;
gap: 20px;
margin: 10px;
/* 关键修复:确保垂直对齐 */
align-items: center;
justify-content: flex-start;
}
.player-card,
.info-card {
width: 100%;
max-width: 100%; /* 移除最大宽度限制 */
/* 确保卡片在移动端完全对齐 */
margin-left: 0;
margin-right: 0;
}
}
.player-card {
flex: 0 0 auto;
background: #fff;
border-radius: 28px;
box-shadow: 0 6px 32px 0 rgba(30, 34, 40, 0.10);
padding: 32px 32px 24px 32px;
display: flex;
flex-direction: column;
align-items: center;
width: auto;
width: 750px;
height: fit-content;
}
/* 移动端专用样式 - 确保卡片完全对齐 */
@media (max-width: 900px) {
.player-card {
max-width: none; /* 移除最大宽度限制 */
width: 100%;
margin: 0; /* 移除任何外边距 */
padding: 24px 20px; /* 调整内边距保持一致 */
}
}
#dplayer {
width: 100%;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
margin-bottom: 32px;
position: relative;
aspect-ratio: 16/9;
/* min-height: 360px; */
/* 提供一个最小高度作为备用 */
max-width: 720px;
}
/* DPlayer加载后会创建自己的容器,确保它填满父元素 */
#dplayer .dplayer-video-wrap {
width: 100%;
height: 100%;
}
#video-placeholder {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #bbb;
font-size: 22px;
background: #f7f8fa;
z-index: 2;
pointer-events: none;
height: 100%;
width: 100%;
}
#video-placeholder .icon {
font-size: 60px;
margin-bottom: 18px;
color: #e3e5e7;
}
.controls {
display: flex;
gap: 18px;
margin-bottom: 0;
width: 100%;
justify-content: center;
}
input[type="text"] {
flex: 1;
padding: 14px 18px;
border: 2px solid #e3e5e7;
border-radius: 14px;
font-size: 18px;
outline: none;
background: #f7f8fa;
transition: border 0.2s;
max-width: 400px;
/* 新增:限制最大宽度,防止超出 */
}
input[type="text"]:focus {
border-color: #00A1D6;
}
button,
.file-label {
border: none;
border-radius: 14px;
font-size: 18px;
font-weight: 600;
padding: 14px 22px;
background: #222;
color: #fff;
cursor: pointer;
transition: background 0.2s, box-shadow 0.2s;
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}
button:hover,
.file-label:hover {
background: #444;
}
button:disabled {
background: #b8c0cc;
cursor: not-allowed;
}
.file-input {
display: none;
}
.status {
padding: 14px;
background: #f2f3f7;
border-radius: 14px;
color: #555;
font-size: 16px;
text-align: center;
}
.progress-container {
margin-top: 18px;
display: none;
}
progress {
width: 100%;
height: 18px;
border-radius: 9px;
overflow: hidden;
background: #e3e5e7;
accent-color: #00A1D6;
}
#progressText {
color: #00A1D6;
font-weight: 600;
margin-top: 6px;
font-size: 16px;
text-align: center;
}
.info-card {
flex: 0 0 340px;
background: linear-gradient(135deg, #fafdff 60%, #e9f3ff 100%);
border-radius: 32px;
box-shadow: 0 8px 36px 0 rgba(30, 34, 40, 0.13), 0 1.5px 6px 0 rgba(0, 161, 214, 0.06);
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
min-width: 260px;
max-width: 340px;
border: 1.5px solid #e3e5e7;
position: relative;
overflow: visible;
height: auto;
min-height: auto;
}
/* 移动端专用样式 - 修复对齐 */
@media (max-width: 900px) {
.info-card {
flex: none;
min-width: auto;
max-width: none; /* 移除最大宽度限制 */
width: 100%;
/* 完全自适应高度,让页面自然延长 */
height: auto;
min-height: auto;
/* 确保内容可以完全显示 */
overflow: visible;
/* 调整内边距与 player-card 保持一致 */
padding: 20px 20px 32px 20px;
margin: 0; /* 移除任何外边距 */
}
/* 移动端调整头像和文字大小 */
.avatar {
width: 60px;
height: 60px;
}
.info-detail {
font-size: 14px;
padding: 5px 8px;
}
.info-section {
margin-bottom: 6px;
margin-top: 10px;
}
.info-section:not(:first-child) {
margin-top: 14px;
}
.info-section b {
font-size: 15px;
margin-bottom: 6px;
margin-left: 16px;
}
.info-section ul {
font-size: 13px;
margin: 6px 0 0 0;
}
.info-section ul li {
margin-bottom: 4px;
margin-left: 16px;
}
}
/* 超小屏幕适配 - 保持一致的内边距 */
@media (max-width: 480px) {
.player-card {
padding: 16px 16px 20px 16px;
}
.info-card {
padding: 16px 16px 24px 16px;
border-radius: 24px;
}
.avatar {
width: 50px;
height: 50px;
}
.info-detail {
font-size: 13px;
padding: 4px 6px;
}
.info-section b {
font-size: 14px;
margin-left: 12px;
}
.info-section ul {
font-size: 12px;
}
.info-section ul li {
margin-left: 12px;
}
}
.avatar {
width: 70px;
height: 70px;
border-radius: 50%;
background: #e3e5e7;
object-fit: cover;
border: 3px solid #fff;
box-shadow: 0 2px 12px 0 rgba(0, 161, 214, 0.08);
}
.info-detail {
font-size: 15px;
color: #4a6fa1;
text-align: center;
background: #f2f7fb;
border-radius: 10px;
padding: 6px 10px;
}
.info-section {
width: 100%;
margin-bottom: 8px;
/* 减少下间距 */
margin-top: 12px;
/* 减少上间距 */
position: relative;
}
.info-section:not(:first-child) {
margin-top: 16px;
/* 调整分割线和内容间距 */
}
.info-section:not(:first-child)::before {
content: "";
display: block;
width: 60%;
/* 缩短分割线 */
height: 1px;
/* 变细分割线 */
background: linear-gradient(90deg, #e3e5e7 0%, #b8c0cc 100%);
margin: 0 auto 12px auto;
/* 调整分割线上下间距 */
border-radius: 1px;
}
.info-section b {
/* 为分区标题添加样式 */
display: block;
text-align: left;
font-size: 16px;
color: #333;
margin-bottom: 8px;
margin-left: 20px;
}
.info-section ul {
padding-left: 0;
margin: 8px 0 0 0;
/* 调整列表边距 */
color: #3a4a5a;
font-size: 14px;
/* 缩小列表字体 */
list-style: none;
text-align: center;
/* 居中列表项 */
}
.info-section ul li {
margin-bottom: 5px;
/* 减少列表项间距 */
display: inline-block;
/* 让列表项水平排列,如果需要 */
margin-right: 10px;
/* 如果水平排列,添加右边距 */
align-items: start;
/* 确保列表项对齐 */
text-align: left;
/* 确保文本对齐 */
display: flex;
/* 确保项目符号对齐 */
margin-left: 20px;
}
.info-section ul li::before {
content: "•";
color: #00A1D6;
font-size: 16px;
/* 调整项目符号大小 */
margin-right: 6px;
/* 调整项目符号间距 */
line-height: 1;
}
/* 统一文件选择标签和输入框组样式 */
.file-control-group {
width: 100%;
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
margin-top: 8px;
margin-bottom: 10px;
/* 减少与标题的间距 */
}
.file-label,
.input-group-container {
/* 应用于标签和输入框组容器 */
display: block;
/* 或 flex */
width: 100%;
/* 统一宽度 */
max-width: 300px;
/* 设置最大宽度 */
margin-left: auto;
margin-right: auto;
box-sizing: border-box;
}
.input-group-container {
/* 特指输入框+按钮的容器 */
display: flex;
gap: 8px;
height: 48px;
/* 保持高度一致 */
padding: 0;
/* 移除容器的内边距 */
}
/* 弹幕速度滑块美化 */
#speedSlider {
width: 87%;
height: 8px;
border-radius: 4px;
background: linear-gradient(90deg, #00A1D6 0%, #e3e5e7 100%);
outline: none;
accent-color: #00A1D6;
margin: auto;
display: flex;
}
#speedSlider::-webkit-slider-thumb {
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
border: 2px solid #00A1D6;
box-shadow: 0 2px 6px 0 rgba(0, 161, 214, 0.10);
cursor: pointer;
transition: background 0.2s;
}
#speedSlider::-moz-range-thumb {
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
border: 2px solid #00A1D6;
box-shadow: 0 2px 6px 0 rgba(0, 161, 214, 0.10);
cursor: pointer;
transition: background 0.2s;
}
#speedSlider::-ms-thumb {
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
border: 2px solid #00A1D6;
box-shadow: 0 2px 6px 0 rgba(0, 161, 214, 0.10);
cursor: pointer;
transition: background 0.2s;
}
#speedValue {
color: #00A1D6;
font-weight: bold;
font-size: 17px;
margin-right: 25px;
}
.file-input-style {
flex: 1;
border: 2px solid #e3e5e7;
border-radius: 14px;
font-size: 16px;
/* 缩小字体 */
outline: none;
background: #f7f8fa;
transition: border 0.2s;
height: 100%;
/* 继承父容器高度 */
box-sizing: border-box;
padding: 0 12px;
/* 调整内边距 */
min-width: 0;
/* 防止 flex 溢出 */
}
.danmu-fetch-btn {
padding: 0 18px;
/* 调整内边距以适应高度 */
font-size: 16px;
/* 缩小字体 */
border-radius: 14px;
font-weight: 600;
background: #222;
color: #fff;
border: none;
cursor: pointer;
transition: background 0.2s, box-shadow 0.2s;
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
height: 100%;
/* 继承父容器高度 */
width: 80px;
/* 固定宽度 */
flex-shrink: 0;
}
.danmu-fetch-btn:hover {
background: #444;
}
/* 额外的容器对齐确保 */
@media (max-width: 900px) {
/* 确保没有任何元素有额外的边距影响对齐 */
.player-card *,
.info-card * {
box-sizing: border-box;
}
/* 调试用边框 - 如果需要检查对齐问题可以取消注释 */
/*
.player-card {
border: 1px solid red;
}
.info-card {
border: 1px solid blue;
}
*/
}