audio-overlay.wxss
1.75 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
/* 音频播放蒙层样式 */
.audio-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.overlay-content {
background: white;
border-radius: 16rpx;
padding: 60rpx 40rpx;
margin: 40rpx;
text-align: center;
min-width: 500rpx;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.2);
}
.audio-icon {
margin-bottom: 40rpx;
}
.sound-wave {
display: flex;
align-items: center;
justify-content: center;
gap: 8rpx;
height: 80rpx;
}
.wave {
width: 6rpx;
background: #1296db;
border-radius: 3rpx;
animation: wave 1.5s ease-in-out infinite;
}
.wave:nth-child(1) {
height: 20rpx;
animation-delay: 0s;
}
.wave:nth-child(2) {
height: 40rpx;
animation-delay: 0.1s;
}
.wave:nth-child(3) {
height: 60rpx;
animation-delay: 0.2s;
}
.wave:nth-child(4) {
height: 40rpx;
animation-delay: 0.3s;
}
@keyframes wave {
0%, 100% {
transform: scaleY(1);
}
50% {
transform: scaleY(1.5);
}
}
.audio-text {
font-size: 32rpx;
color: #333;
margin-bottom: 40rpx;
line-height: 1.4;
max-height: 200rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.progress-container {
margin-bottom: 40rpx;
}
.progress-bar {
width: 100%;
height: 8rpx;
background: #f0f0f0;
border-radius: 4rpx;
overflow: hidden;
margin-bottom: 16rpx;
}
.progress-fill {
height: 100%;
background: #1296db;
transition: width 0.3s ease;
}
.time-info {
font-size: 24rpx;
color: #666;
}
.stop-btn {
background: #ff4757;
color: white;
border: none;
border-radius: 50rpx;
padding: 20rpx 60rpx;
font-size: 30rpx;
}