-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
407 lines (355 loc) · 7.75 KB
/
style.css
File metadata and controls
407 lines (355 loc) · 7.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
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
:root {
--bg: #f5f5f7;
--text: #1d1d1f;
--subtext: #555;
--accent: #4a6f58;
--card-bg: #ffffff;
--fg-blue : #007aff;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: linear-gradient(to bottom, #f5f5f7, #ffffff);
color: #1d1d1f;
}
.container {
max-width: 1200px;
margin: auto;
padding: 0px 20px;
}
h1 {
font-size: 52px;
font-weight: 700;
letter-spacing: -0.02em;
}
h2 {
font-size: 28px;
margin-bottom: 10px;
}
p {
color: #555;
line-height: 1.6;
}
.hero {
text-align: center;
padding: 20px 20px 20px;
}
.section p {
text-align: center;
/* 可选:限制最大宽度,防止文字太宽导致阅读体验不好 */
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
.app-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 30px;
margin-top: 40px;
}
.app-card {
background: var(--card-bg);
padding: 30px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
text-align: center;
transition: 0.3s ease;
display: flex;
flex-direction: column;
align-items: center; /* 水平完全居中 */
}
.app-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.app-icon {
width: 90px;
height: 90px;
border-radius: 22px;
margin: 0 auto 20px; /* 自动水平居中 */
display: block; /* 关键 */
}
.button {
display: inline-block;
margin-top: auto;
padding: 10px 20px;
border-radius: 999px;
background: var(--fg-blue);
color: white;
text-decoration: none;
font-size: 14px;
}
.button-group {
margin-top: auto;
display: flex;
justify-content: center;
gap: 10px;
}
.button {
padding: 10px 20px;
margin-top: auto;
border-radius: 999px;
background: var(--fg-blue);
color: white;
text-decoration: none;
font-size: 14px;
transition: 0.2s ease;
}
.button:hover {
background: #0062cc;
}
.download-button {
width: 36px;
height: 36px;
border-radius: 50%;
background: #f2f2f2;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
transition: 0.2s ease;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.download-button:hover {
background: #e5e5e5;
transform: scale(1.05);
box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.download-button svg {
width: 18px;
height: 18px;
fill: #000;
}
.footer {
text-align: center;
margin-top: 120px;
padding: 40px 20px;
font-size: 14px;
color: #888;
border-top: 1px solid #eee;
}
.subtitle {
font-size: 21px;
color: var(--subtext);
margin-bottom: 40px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
/* Screenshot Section */
.screenshot-section {
margin: 80px 0;
text-align: center;
}
.screenshot-wrapper {
position: relative;
overflow: hidden;
border-radius: 20px;
}
.screenshot-track {
display: flex;
transition: transform 0.4s ease;
}
.screenshot-track img {
width: 100%;
border-radius: 20px;
flex-shrink: 0;
box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.nav-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.35);
color: white;
border: none;
width: 44px;
height: 44px;
cursor: pointer;
border-radius: 999px;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
backdrop-filter: blur(6px);
}
.nav-btn:hover {
background: rgba(0, 0, 0, 0.6);
}
.prev {
left: 15px;
}
.next {
right: 15px;
}
.section h2 {
font-size: 28px;
margin-bottom: 30px;
text-align: center;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.lang-switch {
position: absolute;
top: 20px;
right: 20px;
display: flex;
gap: 10px;
}
.lang-switch button {
border: none;
background: #eee;
padding: 6px 12px;
border-radius: 8px;
cursor: pointer;
}
.lang-switch button:hover {
background: #ddd;
}
/* 帮助文档区域 */
.help-section {
max-width: 1200px;
margin: auto;
}
.help-content {
text-align: left;
line-height: 1.7;
}
.help-content h3 {
margin-top: 40px;
}
.help-content pre {
background: #f4f4f4;
padding: 15px;
border-radius: 10px;
overflow-x: auto;
}
.help-content ul {
padding-left: 20px;
}
.help-content ol {
padding-left: 20px;
}
/* 强制覆盖 .section p 的居中设置 */
.help-content p,
.help-content li,
.help-content pre,
.help-content code {
text-align: left !important; /* !important 确保最高优先级 */
margin-left: 0;
margin-right: 0;
}
/* 同时也让 help-content 里的标题左对齐 */
.help-content h3,
.help-content h4 {
text-align: left;
}
/* 核心代码:让 help-content 里的正文统一缩进 */
.indent-text {
padding-left: 24px; /* 缩进距离 */
border-left: 2px solid var(--accent); /* 用你的主题色做左边框 */
margin-bottom: 30px; /* 和下面内容拉开点距离 */
color: #333; /* 稍微加深一点文字颜色 */
}
.help-content img {
max-width: 300px; /* 宽度最大 200px */
max-height: 300px; /* 高度最大 200px */
width: auto; /* 宽度自动(关键:保持比例) */
height: auto; /* 高度自动(关键:保持比例) */
/* 可选:让图片在限制框内居中显示(如果图片很小) */
display: block;
margin: 10px auto;
}
.screenshot-wrapper {
position: relative;
max-width: 1200px; /* 根据你的设计调整最大宽度 */
margin: 0 auto;
overflow: hidden; /* 隐藏溢出的按钮或图片 */
}
.screenshot-track {
display: flex;
/* 不需要设置宽度,由内部内容决定,或者设为 100% */
}
/* 关键点:每个语言组必须是 flex 布局,让图片横向排开 */
.screenshot-track > div[data-lang] {
display: flex;
width: 100%; /* 占据 wrapper 的宽度 */
transition: transform 0.4s ease-in-out; /* 平滑滚动效果 */
/* 初始状态由你的语言切换 JS 控制 display: none/block */
}
/* 确保图片不压缩,且每张图占满容器宽度 */
.screenshot-track img {
flex-shrink: 0; /* 禁止收缩 */
width: 100%; /* 每张图宽度等于父容器 (即 wrapper) 宽度 */
max-width: 100%;
height: auto;
display: block;
}
/* 导航按钮样式 */
.nav-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
z-index: 10;
font-size: 18px;
border-radius: 4px;
}
.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }
.nav-btn:hover { background: rgba(0, 0, 0, 0.8); }
/*小图轮播组件的调整*/
.screenshot-wrapper.small {
position: relative;
max-width: 100%;
overflow: hidden; /* track 滚动,不裁剪按钮 */
padding: 10px 0;
}
.screenshot-track.small {
display: flex;
overflow-x: auto;
scroll-behavior: smooth;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE 10+ */
gap: 20px;
}
.screenshot-track.small::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}
.screenshot-wrapper.small .screenshot-track img {
flex-shrink: 0; /* 不缩小 */
width: auto; /* 固定宽度,根据你原来的尺寸改 */
height: 500px; /* 自动高度保持比例 */
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
cursor: pointer;
transition: transform 0.2s ease;
}
.screenshot-wrapper.small .nav-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 36px;
height: 36px;
border-radius: 50%;
border: none;
background: rgba(0,0,0,0.6);
color: #fff;
font-size: 20px;
cursor: pointer;
z-index: 20;
}
.screenshot-wrapper.small .nav-btn.prev {
left: 0px; /* 完全在 track 外侧 */
}
.screenshot-wrapper.small .nav-btn.next {
right: 0px;
}