-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
617 lines (511 loc) · 11.4 KB
/
styles.css
File metadata and controls
617 lines (511 loc) · 11.4 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
/* 全局样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Roboto', Arial, sans-serif;
}
body {
font-family: serif, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f9f9f9;
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
a {
text-decoration: none;
color: #0066cc;
}
ul {
list-style: none;
}
img {
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
margin-bottom: 0.5em;
font-weight: 700;
line-height: 1.2;
}
section {
padding: 3rem 0;
}
/* 按钮样式 */
.btn {
display: inline-block;
background-color: #000000;
color: white;
padding: 0.75rem 1.5rem;
border-radius: 4px;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #3a3a3a;
}
.btn-small {
display: inline-block;
background-color: #030303;
color: white;
padding: 0.4rem 0.8rem;
font-size: 0.9rem;
border-radius: 4px;
transition: background-color 0.3s ease;
margin-right: 0.5rem;
}
.center-btn {
width: 150px;
display: block; /* 保持按钮为行内块元素 */
margin: 0 auto; /* 水平居中 */
text-align: center; /* 确保按钮内部文字居中 */
}
.btn-small:hover {
background-color: #3b3b3b;
}
/* 导航栏 */
header {
background-color: #f9f9f9;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
header .container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 15px;
}
header h1 {
margin: 0;
font-size: 1.4rem;
color: #000000;
font-style: italic; /* 显示斜体 */
font-weight: 300;
}
nav ul {
display: flex;
}
nav ul li {
margin-left: 2rem;
}
nav ul li a {
color: #2e1818;
font-weight: 500;
transition: color 0.3s ease;
}
nav ul li a:hover, nav ul li a.active {
color: #292941;
}
nav ul li a.active {
border-bottom: 2px solid #000000;
}
/* 首页样式 */
.hero {
background-color: #f9f9f9;
padding: 10rem 0 6rem 0;
text-align: center;
}
.hero h2 {
font-size: 2.5rem;
margin-bottom: 2.5rem;
/* font-family: 'Italianno', cursive; */
font-family: 'Playfair Display', serif;
font-style: italic; /* 显示斜体 */
font-weight: 300;
}
/* 修改这里,将 p 标签下边距从 2rem 改为 1rem */
.hero p {
font-size: 1.05rem;
max-width: 800px;
margin: 0 auto 0;
font-family: serif, 'Times New Roman', Times, serif;
}
.hero .btn {
margin-top: 20px;
margin-bottom: 10px;
}
.hero img {
margin-top: 100px;
margin-bottom: 5px;
border-radius: 30px; /* 圆角半径为 d% px */
}
/* 介绍成员 */
.members {
background-color: #ffffff;
margin: 0;
padding: 0;
border: none;
}
.members iframe{
margin: 0;
padding: 0;
border: none;
display: block;
width: 100%;
height: 1140px;
}
.about {
background-color: white;
}
.about-content {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 2rem;
}
.about-text {
flex: 1;
min-width: 300px;
}
.about-image {
flex: 1;
min-width: 300px;
text-align: center;
}
.about-image img {
border-radius: 40px; /* 设置图片本身的圆角 */
width: 100%; /* 确保图片适应容器 */
height: auto;
}
.research-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.research-item {
background-color: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.news-item {
display: flex;
margin-bottom: 1.5rem;
background-color: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.news-date {
background-color: #0066cc;
color: white;
padding: 1rem;
display: flex;
align-items: center;
min-width: 120px;
font-weight: 500;
text-align: center;
}
.news-content {
padding: 1rem 1.5rem;
}
.news a.btn {
margin-top: 1rem;
}
/* 实验室成员页面样式 */
.page-header {
background-color: #e9ecef;
padding: 3rem 0;
text-align: center;
}
.members-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.member-card {
background-color: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.member-card:hover {
transform: translateY(-5px);
}
.member-photo {
height: 200px;
overflow: hidden;
}
.member-photo img {
width: 100%;
height: 100%;
object-fit: cover;
}
.member-info {
padding: 1.5rem;
}
.member-title, .member-year {
color: #666;
margin-bottom: 0.5rem;
}
.member-desc {
margin-bottom: 1rem;
}
.member-contact {
font-size: 0.9rem;
margin-bottom: 1rem;
}
.alumni-list {
background-color: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.alumni-group {
margin-bottom: 2rem;
}
.alumni-group h3 {
border-bottom: 1px solid #dee2e6;
padding-bottom: 0.5rem;
margin-bottom: 1rem;
}
.alumni-group ul li {
padding: 0.5rem 0;
border-bottom: 1px dashed #eee;
}
/* 研究成果部分 */
.development {
padding: 10rem 0;
}
.achievement-item {
display: flex;
align-items: center;
margin-bottom: 2rem;
}
.achievement-item img {
width: 40%;
height: auto;
/* margin-right: 2rem; */
border-radius: 18px;
}
.achievement-item .achievement-content {
width: 50%;
}
/* 偶数行反转布局 */
.achievement-item:nth-child(2n-1) {
flex-direction: row-reverse;
}
/* Achievement 占位符 */
.achievement-placeholder {
display: inline-block;
/* width: 80px; */
min-width: 15rem;
height: 1px;
}
/* 设置 h2 样式 */
.development h2 {
/* font-family: 'Playfair Display', serif; */
font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
font-size: 2.5rem;
font-weight: 400;
color: #333;
text-align: center;
margin-bottom: 1.5rem;
}
/* 设置 h3 样式 */
.development h3 {
/* font-family: 'Roboto', sans-serif; */
font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
font-size: 1.2rem;
font-weight: 400;
color: #333;
margin-bottom: 4rem;
text-align: center; /* 居中对齐 */
padding-left: 12rem;
padding-right: 12rem;
}
.development h4 {
/* font-family: 'Roboto', sans-serif; */
font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
font-size: 1.8rem;
font-weight: 400;
color: #333;
padding-left: 2rem;
margin-bottom: 1rem;
text-align: left; /* 左对齐 */
}
/* 设置 p 样式 */
.development p {
/* font-family: 'Roboto', sans-serif; */
font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
font-size: 1.2rem;
color: #333;
margin-bottom: 1rem;
text-align: left; /* 左对齐 */
position: relative;
padding-left: 2rem;
text-indent: -0.8rem;
line-height: 1.0rem;
margin-right: 0rem;
}
.development p::before {
content: "✓";
position: relative;
left: -1rem;
color: #888;
font-size: 1.1em;
line-height: 1.6;
}
/* 研究成果页面样式 */
.research-areas {
background-color: #fff;
/* 如果想跟其他 section 保持同样的上下内边距,可选: */
padding: 10rem 0;
}
.research-areas h2 {
font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
font-size: 2.2rem;
font-weight: 400;
color: #222;
margin-bottom: 1.5rem;
text-align: center;
}
.research-areas h3 {
font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
font-size: 1.5rem;
font-weight: 400;
color: #222;
margin-bottom: 1.5rem;
text-align: center;
}
.research-areas p {
font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
font-size: 1.1rem;
color: #444;
margin-bottom: 1rem;
/* text-align: center; */
line-height: 1.7;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
/* Quote Section */
.quote-section {
background-color: #111; /* 黑色背景 */
color: #fff; /* 白色文字 */
padding: 8rem 0; /* 增加上下内边距为 6rem */
text-align: center; /* 居中对齐 */
}
.quote-section blockquote {
font-family: 'Playfair Display', serif; /* 使用优雅字体 */
font-size: 1.5rem; /* 字体大小 */
font-style: italic; /* 斜体 */
line-height: 1.8; /* 行高 */
margin: 0 auto 2rem; /* 居中并设置下边距 */
max-width: 1000px; /* 增加最大宽度 */
letter-spacing: 0.05em; /* 增加字母间距 */
}
.quote-section .quote-author {
margin-top: 2rem; /* 上边距 */
}
.quote-section .quote-author img {
width: 10%; /* 图标宽度,使用百分比 */
height: auto; /* 图标高度,使用百分比 */
margin-bottom: 1rem; /* 下边距 */
border-radius: 50%;
object-fit: cover;
}
.quote-section .quote-author h4 {
font-size: 1.2rem; /* 作者名字字体大小 */
margin-bottom: 0.5rem; /* 下边距 */
font-weight: 700; /* 加粗 */
}
.quote-section .quote-author p {
font-size: 1rem; /* 职位字体大小 */
color: #aaa; /* 灰色文字 */
margin: 0; /* 去掉默认外边距 */
}
/* Join Section */
.join-section {
background-color: #f9f9f9; /* 浅灰色背景 */
padding: 4rem 0; /* 上下内边距 */
text-align: center; /* 居中对齐 */
border-radius: 10px; /* 圆角 */
margin: 10rem auto; /* 上下外边距 */
max-width: 800px; /* 最大宽度 */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}
.join-section h2 {
font-size: 2rem; /* 标题字体大小 */
font-weight: 700; /* 加粗 */
margin-bottom: 1rem; /* 下边距 */
color: #000; /* 黑色文字 */
}
.join-section p {
font-size: 1rem; /* 正文字体大小 */
color: #555; /* 深灰色文字 */
margin-bottom: 2rem; /* 下边距 */
}
.join-section .btn {
display: inline-block;
padding: 0.75rem 1.5rem; /* 按钮内边距 */
background-color: #000; /* 黑色背景 */
color: #fff; /* 白色文字 */
text-decoration: none; /* 去掉下划线 */
border-radius: 5px; /* 按钮圆角 */
font-size: 1rem; /* 按钮字体大小 */
transition: background-color 0.3s ease; /* 添加过渡效果 */
}
.join-section .btn:hover {
background-color: #333; /* 鼠标悬停时背景变深 */
}
/* 页脚样式 */
footer {
background-color: #212529;
color: #adb5bd;
padding: 3rem 0 1rem;
}
.footer-content {
display: flex;
flex-wrap: wrap;
gap: 2rem;
margin-bottom: 2rem;
}
.contact-info, .quick-links {
flex: 1;
min-width: 250px;
}
footer h3 {
color: white;
margin-bottom: 1rem;
}
.quick-links ul li {
margin-bottom: 0.5rem;
}
.quick-links ul li a {
color: #adb5bd;
transition: color 0.3s ease;
}
.quick-links ul li a:hover {
color: white;
}
.copyright {
text-align: center;
padding-top: 1rem;
border-top: 1px solid #343a40;
}
/* 响应式设计 */
@media (max-width: 768px) {
header .container {
flex-direction: column;
text-align: center;
}
nav ul {
margin-top: 1rem;
}
nav ul li {
margin: 0 0.75rem;
}
.about-content {
flex-direction: column;
}
}