-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
655 lines (559 loc) · 13.7 KB
/
Copy pathstyle.css
File metadata and controls
655 lines (559 loc) · 13.7 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
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
/* style.css */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background: #f9f9f9;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.hero {
height: 50vh;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
background-color: #2c3e50;
position: relative;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.4);
}
/* 修改后的代码:纯白色,无阴影 */
.hero h1 {
font-size: 3rem;
margin-bottom: 0.5rem;
color: white; /* 确保颜色是纯白 */
text-shadow: none; /* 明确移除所有文字阴影 */
}
.tagline {
font-size: 1.5rem;
font-weight: 400; /* 适当加粗以提高清晰度 */
margin-bottom: 1rem;
color: white; /* 确保颜色是纯白 */
text-shadow: none; /* 明确移除所有文字阴影 */
}
.tagline-zh {
font-size: 1.2rem;
opacity: 0.9;
font-weight: 400;
}
.intro, .models, .cta, .reality, .bilingual, .world-knowledge, .instruction-following, .architecture {
padding: 4rem 2rem;
}
/* 将轮播图上方的文本区域的下边距减小,使其与轮播图更紧凑 */
.reality, .bilingual, .world-knowledge, .instruction-following {
padding-bottom: 1rem;
}
.text-block p {
margin-bottom: 1rem;
}
.zh {
color: #666;
font-style: italic;
margin-top: 0.5rem;
}
.model-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.model-card {
background: white;
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
transition: transform 0.2s ease;
}
.model-card:hover {
transform: translateY(-5px);
}
.model-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
}
.model-header h3 {
font-size: 1.4rem;
margin: 0;
}
.model-desc p {
margin-bottom: 1rem;
}
.stats {
font-size: 0.9rem;
color: #777;
margin: 0.5rem 0;
}
.features {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1rem;
}
.feature-tag {
background: #e0f7fa;
color: #00796b;
padding: 0.3rem 0.6rem;
border-radius: 12px;
font-size: 0.85rem;
}
.cta {
background: #f0f8ff;
text-align: center;
}
.cta h2 {
margin-bottom: 1rem;
}
.btn {
display: inline-block;
background: #2c3e50;
color: white;
padding: 0.8rem 1.5rem;
border-radius: 25px;
text-decoration: none;
font-weight: 600;
transition: background 0.2s;
}
.btn:hover {
background: #1a252e;
}
footer {
background: #2c3e50;
color: white;
text-align: center;
padding: 1.5rem;
font-size: 0.9rem;
}
footer a {
color: #a8d8ea;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
/* Features Showcase Styles */
/* .features-showcase {
padding: 4rem 2rem;
background: #fff;
}
.features-showcase h2,
.features-showcase .subtitle {
text-align: center;
} */
.features-showcase .subtitle {
color: #666;
margin-bottom: 3rem;
font-size: 1.1rem;
}
.showcase-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: 200px;
gap: 1rem;
}
.showcase-item {
border-radius: 16px;
overflow: hidden;
position: relative;
background-size: cover;
background-position: center;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.showcase-item:hover {
transform: scale(1.03);
z-index: 10;
}
.showcase-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
pointer-events: none;
}
.item-content {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 1.5rem;
color: white;
z-index: 2;
}
.item-content h3 {
margin: 0 0 0.25rem 0;
font-size: 1.2rem;
}
.item-content p {
margin: 0;
font-size: 0.9rem;
opacity: 0.9;
}
.showcase-item.light-bg {
background-color: #f8f9fa;
background-image: none;
}
.showcase-item.light-bg::before {
display: none;
}
.showcase-item.light-bg .item-content {
color: #333;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
height: 100%;
top: 0;
padding: 1rem;
}
.showcase-item.light-bg h3 {
font-size: 2rem;
font-weight: 700;
}
.item-content.center-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
text-align: center;
background: rgba(0,0,0,0.3);
}
.item-content.center-content h2 {
font-size: 3rem;
margin: 0;
text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
/* Grid item sizing */
.item-wide { grid-column: span 2; }
.item-tall { grid-row: span 2; }
.item-large { grid-column: span 2; grid-row: span 2; }
/* Gallery Carousel Section */
.gallery-carousel {
padding: 2rem 0 4rem 0; /* 调整上下内边距 */
background: #f8f9fa;
}
.gallery-carousel .container {
padding-top: 0;
padding-bottom: 0;
}
/* Swiper 样式 */
.gallery-swiper {
position: relative;
max-width: 100%;
margin: 0 auto;
padding: 0;
}
/* 核心修改:调整滑块和图片尺寸 */
.gallery-swiper .swiper-slide {
height: 480px; /* **设定一个固定的高度以容纳竖版图片** */
display: flex;
justify-content: center;
align-items: center;
background-color: #f0f2f5; /* 图片未填满时的背景色 */
border-radius: 12px;
overflow: hidden;
/* 宽度由JS根据 slidesPerView 自动计算,无需手动设置 */
}
.gallery-swiper .swiper-slide a {
display: block;
height: 100%;
width: 100%;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
transition: transform 0.3s ease;
}
.gallery-swiper .swiper-slide a:hover {
transform: scale(1.02);
}
.gallery-swiper .swiper-slide img {
width: 100%; /* 图片宽度填满 a 标签 */
height: 100%; /* 图片高度填满 a 标签 */
object-fit: cover; /* 优先使用 cover 填满,避免留白 */
transition: filter 0.3s;
}
.gallery-swiper .swiper-slide img:hover {
filter: brightness(0.98);
}
/* Swiper 分页器样式 */
.swiper-pagination {
position: relative;
bottom: auto;
margin-top: 2rem;
}
.swiper-pagination-bullet {
width: 10px;
height: 10px;
background: #ccc;
opacity: 0.8;
}
.swiper-pagination-bullet-active {
background: #2c3e50;
opacity: 1;
}
/* Swiper 导航按钮样式 (修改后) */
.swiper-button-prev,
.swiper-button-next {
/* 移除背景、圆角和阴影 */
background: transparent;
border-radius: 0;
box-shadow: none;
/* 设置箭头为白色,并增加文字阴影以确保在任何背景上都清晰可见 */
color: white;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
/* 保持原有的尺寸和过渡效果 */
width: 44px;
height: 44px;
transition: transform 0.2s;
}
.swiper-button-prev:after, .swiper-button-next:after {
/* 可以适当增大箭头,让它更显眼 */
font-size: 28px;
font-weight: 600; /* 加粗一点更有质感 */
}
/* 修改悬停效果:移除背景变化,改为轻微放大 */
.swiper-button-prev:hover,
.swiper-button-next:hover {
background: transparent; /* 确保悬停时也没有背景 */
color: white; /* 保持箭头颜色不变 */
transform: scale(1.15); /* 轻微放大,提供反馈 */
}
.architecture-image {
text-align: left;
}
.architecture-image img {
max-width: 100%;
height: auto;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.arena-image {
text-align: left;
}
.arena-image img {
max-width: 100%;
height: auto;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
/* 响应式调整 */
@media (max-width: 992px) {
.showcase-grid {
grid-template-columns: repeat(2, 1fr);
grid-auto-rows: 220px;
}
}
@media (max-width: 768px) {
.hero h1 {
font-size: 2rem;
}
.tagline {
font-size: 1.2rem;
}
.container {
padding: 1.5rem;
}
.model-card {
padding: 1rem;
}
.gallery-swiper .swiper-slide {
height: 400px; /* 在小屏幕上减小高度 */
}
/* 在移动端隐藏左右按钮,以节省空间 */
.swiper-button-prev, .swiper-button-next {
display: none;
}
}
@media (max-width: 576px) {
.features-showcase {
padding: 2rem 1rem;
}
.showcase-grid {
grid-template-columns: 1fr;
grid-auto-rows: 250px;
}
.showcase-item.item-wide,
.showcase-item.item-tall,
.showcase-item.item-large {
grid-column: span 1;
grid-row: span 1;
}
.item-large .item-content.center-content h2 {
font-size: 2.5rem;
}
.intro, .models, .cta, .reality, .bilingual, .world-knowledge, .instruction-following, .architecture .arena .summary .citation{
padding: 3rem 1rem;
}
.intro, .models, .cta, .reality, .bilingual, .world-knowledge, .instruction-following, .architecture .arena .summary{
padding-bottom: 1rem;
}
}
/* Lightbox 样式微调,使其背景更暗 */
body.lb-disable-scrolling {
overflow: hidden;
}
.lightboxOverlay {
background-color: rgba(0, 0, 0, 0.85);
}
/* 新增:为图片卡片添加可点击的链接覆盖层 */
.showcase-link {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* z-index 确保链接在最上层,使整个卡片都可点击 */
z-index: 3;
/* 继承父元素的圆角,确保覆盖层也被裁剪 */
border-radius: 16px;
}
/* === START: Hero Links 区域完整样式 (无框版) === */
.hero-links {
position: relative;
margin-top: 2.5rem;
max-width: 800px;
width: 90%;
margin-left: auto;
margin-right: auto;
/* 移除了背景、边框、圆角、内边距和毛玻璃效果 */
}
.hero-link-item {
display: flex;
align-items: center;
font-size: 1rem;
color: #f0f0f0;
/* 调整了上下内边距来控制行间距 */
padding: 0.5rem 0;
}
.hero-link-item.space-between {
justify-content: space-between;
}
/* 移除了原有的下边框样式 */
.hero-link-item:not(:last-child) {
border-bottom: none;
}
.hero-link-item .left-part {
display: flex;
align-items: center;
}
.hero-link-item .icon {
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 1rem;
width: 24px;
height: 24px;
text-align: center;
}
.hero-link-item .icon img {
width: 22px;
height: 22px;
object-fit: contain;
/* 保留滤镜,让深色图标变白 */
filter: invert(1);
}
.hero-link-item .icon img.no-invert {
filter: none;
}
.hero-link-item .text {
font-weight: 500;
color: white;
/* 给文字增加轻微阴影,提高在复杂背景下的可读性 */
text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero-link-item .url {
color: #a8d8ea;
text-decoration: none;
font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
font-size: 0.9rem;
opacity: 0.9;
transition: color 0.2s, opacity 0.2s;
word-break: break-all;
margin-left: 1rem;
/* 给链接也增加阴影 */
text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero-link-item .url:hover {
color: white;
opacity: 1;
text-decoration: underline;
}
/* 响应式调整 (同样重要) */
@media (max-width: 768px) {
.hero-links {
padding: 0; /* 确保在移动端也没有内边距 */
}
.hero-link-item.space-between {
flex-wrap: wrap;
flex-direction: column;
align-items: flex-start;
gap: 0.25rem;
}
.hero-link-item .url {
padding-left: calc(24px + 1rem);
margin-left: 0;
}
}
/* === END: Hero Links 区域样式 === */
/* === 在这里添加新代码 === */
/* 这是实现左右对齐的关键 */
.hero-link-item.space-between {
justify-content: space-between;
}
/* 新增:将不包含 space-between 类的项目(即第一行)居中 */
.hero-link-item:not(.space-between) {
justify-content: center;
}
/* === 添加结束 === */
/* === 新增:为轮播图中的图片添加描述文字样式 === */
/* 首先,为图片的父容器 <a> 设置相对定位,作为文字定位的基准 */
.gallery-swiper .swiper-slide a {
position: relative;
/* 确保 <a> 标签是块级元素并填满滑块 */
display: block;
width: 100%;
height: 100%;
}
/* 然后,定义描述文字的样式和位置 */
.slide-caption {
position: absolute; /* 绝对定位,相对于父容器 <a> */
bottom: 0; /* 定位到父容器的底部 */
left: 0; /* 从左侧开始 */
width: 100%; /* 宽度撑满父容器 */
/* 视觉样式 */
color: white; /* 白色字体 */
font-size: 0.9rem; /* 偏小的字体 */
padding: 20px 15px 12px; /* 内边距 (上/左右/下) */
text-align: left; /* 文字左对齐 */
/* 添加一个从下到上的黑色半透明渐变,确保白色文字在任何图片上都清晰可见 */
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
/* 确保文字在图片之上 */
z-index: 2;
/* 防止文字层意外捕获鼠标事件 */
pointer-events: none;
/* 确保内边距不会撑大盒子 */
box-sizing: border-box;
}