-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
263 lines (233 loc) · 5.02 KB
/
Copy pathstyle.css
File metadata and controls
263 lines (233 loc) · 5.02 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Microsoft YaHei', sans-serif;
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
position: relative;
}
body::after {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: -1;
}
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url(https://s2.loli.net/2025/02/23/71FG6jSdPWXyEQR.png) center/cover no-repeat;
z-index: -1;
}
header {
position: relative;
padding: 4rem 2rem;
text-align: center;
z-index: 2;
backdrop-filter: blur(5px);
}
h1 {
color: white;
font-size: 2.5rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.main-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
padding: 2rem;
z-index: 1;
position: relative;
}
.iframe-container {
position: relative;
width: 80%;
max-width: 1200px;
margin: 2rem auto;
background: rgba(0,0,0,0.8);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 24px rgba(0,0,0,0.3);
transition: all 0.3s ease;
opacity: 1; /* 从 0 改为 1 */
transition: transform 0.3s ease; /* 移除 opacity 过渡 */
}
.iframe-container.loading {
opacity: 1; /* 保持加载时也不透明 */
transform: scale(0.98);
}
.iframe-container::before {
content: "";
display: block;
padding-top: 56.25%;
}
#resultFrame {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
.input-group {
display: flex;
gap: 1rem;
max-width: 1200px;
width: 80%;
margin: 0 auto 2rem;
}
.line-select {
position: relative;
flex: 0 1 200px;
}
#lineBtn, #parseBtn, input {
height: 50px;
border: none;
border-radius: 25px;
padding: 0 1.5rem;
font-size: 1rem;
transition: all 0.3s;
}
#lineBtn {
background: #4CAF50;
color: white;
width: 100%;
cursor: pointer;
}
#videoUrl {
flex: 1;
background: rgba(255,255,255,0.9);
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#parseBtn {
background: #2196F3;
color: white;
padding: 0 2rem;
cursor: pointer;
}
.line-options {
position: absolute;
top: 60px;
left: 0;
right: 0;
background: white;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
display: none;
z-index: 1;
max-height: 300px;
overflow-y: auto;
}
.line-option {
padding: 1rem;
cursor: pointer;
transition: 0.3s;
}
.line-option:hover {
background: #f5f5f5;
}
footer {
margin-top: auto;
text-align: center;
padding: 1.5rem;
color: rgba(255,255,255,0.8);
width: 100%;
position: relative;
z-index: 2;
backdrop-filter: blur(2px);
}
@media (max-width: 768px) {
#videoUrl {
background: rgba(255,255,255,0.9) !important; /* 强制保留背景 */
box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important; /* 强制保留阴影 */
flex: none; /* 禁用flex属性 */
}
#parseBtn {
display: block;
flex: none; /* 防止flex布局压缩按钮 */
}
.line-select {
flex: none; /* 禁用PC端的flex设置 */
}
}
#parseBtn {
background: #2196F3;
color: white;
padding: 0 2rem;
cursor: pointer;
}
.line-options {
position: absolute;
top: 60px;
left: 0;
right: 0;
background: white;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
display: none;
z-index: 1;
max-height: 300px;
overflow-y: auto;
}
.line-option {
padding: 1rem;
cursor: pointer;
transition: 0.3s;
}
.line-option:hover {
background: #f5f5f5;
}
footer {
margin-top: auto;
text-align: center;
padding: 1.5rem;
color: rgba(255,255,255,0.8);
width: 100%;
position: relative;
z-index: 2;
backdrop-filter: blur(2px);
}
@media (max-width: 768px) {
.input-group {
flex-direction: column;
gap: 1.5rem; /* 增加间距 */
}
/* 统一移动端输入元素样式 */
.line-select,
#videoUrl,
#parseBtn {
width: 100%;
height: 50px; /* 保持与PC一致的高度 */
border-radius: 25px; /* 保持圆角效果 */
}
/* 按钮样式增强 */
#parseBtn {
padding: 0 2rem; /* 保持PC端的内边距 */
font-size: 1.1rem; /* 适当放大文字 */
}
/* 优化iframe容器显示 */
.iframe-container {
width: 100%; /* 使用全宽显示 */
margin: 1.5rem auto;
}
header {
padding: 2rem 1rem;
}
h1 {
font-size: 2rem;
}
}