-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
194 lines (164 loc) · 3.37 KB
/
style.css
File metadata and controls
194 lines (164 loc) · 3.37 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
/* 全局样式和字体设置 */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
line-height: 1.6;
background-color: #f8f9fa;
color: #333;
margin: 0;
padding: 20px;
}
/* 主容器,采用 Flexbox 布局实现左右分栏 */
.container {
display: flex;
max-width: 1200px;
margin: 40px auto;
background-color: #fff;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
border-radius: 8px;
overflow: hidden;
}
/* 左侧边栏 */
.sidebar {
flex: 0 0 280px; /* 固定宽度,不伸缩 */
padding: 30px;
text-align: center;
border-right: 1px solid #e9ecef;
}
.profile-pic {
width: 180px;
height: 180px;
border-radius: 50%; /* 圆形头像 */
object-fit: cover;
border: 5px solid #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
.sidebar h1 {
font-size: 1.8em;
margin-bottom: 5px;
}
.sidebar .affiliation {
font-size: 1em;
color: #6c757d;
margin-bottom: 25px;
}
.contact-info {
list-style: none;
padding: 0;
text-align: left;
}
.contact-info li {
margin-bottom: 12px;
font-size: 0.95em;
display: flex;
align-items: center;
}
.contact-info i {
color: #6c757d;
width: 25px; /* 固定图标宽度,让文字对齐 */
text-align: center;
margin-right: 10px;
}
.contact-info a {
text-decoration: none;
color: #007bff;
}
.contact-info a:hover {
text-decoration: underline;
}
/* 右侧主内容区域 */
.main-content {
flex: 1; /* 占据剩余所有空间 */
padding: 30px 40px;
}
/* 顶部导航栏 */
.top-nav {
border-bottom: 1px solid #e9ecef;
padding-bottom: 15px;
margin-bottom: 30px;
}
.top-nav a {
text-decoration: none;
color: #6c757d;
margin-right: 25px;
font-size: 1.1em;
font-weight: 500;
transition: color 0.3s;
}
.top-nav a.active, .top-nav a:hover {
color: #000;
}
/* 内容区域的 Section */
.main-content section {
margin-bottom: 40px;
}
.main-content h2 {
font-size: 1.6em;
color: #343a40;
border-bottom: 2px solid #e9ecef;
padding-bottom: 10px;
margin-bottom: 20px;
}
.main-content h2 i {
margin-right: 10px;
}
#news ul, .publication-details ul {
list-style: disc;
padding-left: 20px;
}
#news li {
margin-bottom: 10px;
}
/* 出版物条目 */
.publication-item {
display: flex;
gap: 20px;
margin-top: 20px;
}
.publication-image {
flex: 0 0 200px; /* 固定图片容器宽度 */
position: relative; /* 用于标签定位 */
}
.publication-image img {
width: 100%;
border: 1px solid #ddd;
border-radius: 4px;
}
.publication-tag {
position: absolute;
top: 0;
left: 0;
background-color: #007bff;
color: white;
padding: 3px 8px;
font-size: 0.8em;
font-weight: bold;
border-top-left-radius: 4px;
}
.publication-details {
flex: 1;
}
.publication-details h3 {
margin-top: 0;
font-size: 1.2em;
}
.publication-details h3 a {
text-decoration: none;
color: #0056b3;
}
.publication-details h3 a:hover {
text-decoration: underline;
}
.publication-details .authors {
font-style: italic;
color: #555;
margin: 5px 0;
}
.project-page-link {
font-weight: bold;
color: #007bff;
text-decoration: none;
}
.project-page-link:hover {
text-decoration: underline;
}