-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
334 lines (297 loc) · 6.58 KB
/
style.css
File metadata and controls
334 lines (297 loc) · 6.58 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
/* --- Reset & Base --- */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
/* Modern system fonts */
line-height: 1.7;
margin: 0;
padding: 0;
background-color: #f8f9fa;
/* Very light grey background */
color: #495057;
/* Dark grey text */
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.container {
max-width: 900px;
/* Slightly narrower container */
margin: 0 auto;
/* Center container */
padding: 0 25px;
/* Add horizontal padding */
}
/* --- Links --- */
a {
color: #007bff;
/* Standard blue link color */
text-decoration: none;
transition: color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
outline: none;
}
a:hover,
a:focus {
color: #0056b3;
/* Darker blue on hover/focus */
text-decoration: none;
/* Keep underline off by default */
}
/* --- Header --- */
header {
background: #ffffff;
/* White header background */
padding: 30px 0;
border-bottom: 1px solid #dee2e6;
/* Light grey border */
margin-bottom: 40px;
/* Space below header */
display: flex;
align-items: center;
justify-content: center;
/* Center items within the header's container */
flex-wrap: wrap;
/* Allow wrapping on smaller screens */
gap: 25px;
/* Space between pic and text */
}
.profile-pic {
width: 160px;
/* 增大宽度 */
height: 160px;
/* 增大高度 */
/* border-radius: 50%; */
/* 移除圆形 */
border-radius: 8px;
/* 使用方形带轻微圆角 */
overflow: hidden;
flex-shrink: 0;
background-color: #e9ecef;
border: 4px solid #ffffff;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
display: flex;
justify-content: center;
align-items: center;
color: #adb5bd;
font-size: 0.9rem;
cursor: pointer;
/* 添加指针手势,提示可点击 */
transition: transform 0.3s ease, box-shadow 0.3s ease;
/* 添加过渡效果 */
}
.profile-pic:hover {
transform: scale(1.05);
/* 鼠标悬停时轻微放大 */
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
/* 阴影加深 */
}
.profile-pic img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
.header-text {
text-align: left;
}
.header-text h1 {
margin: 0 0 8px 0;
font-size: 2.4rem;
/* Slightly larger */
font-weight: 600;
/* Slightly bolder */
color: #343a40;
/* Darker heading color */
}
.header-text p {
margin: 0;
font-size: 1.15rem;
color: #6c757d;
/* Muted text color */
font-weight: 300;
/* Lighter font weight */
}
/* --- Sections --- */
section {
background: #ffffff;
/* White background for sections */
padding: 35px;
/* More padding */
margin-bottom: 30px;
/* Space between sections */
border-radius: 10px;
/* Slightly more rounded corners */
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
/* Softer, slightly larger shadow */
transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
section:hover {
transform: translateY(-5px);
/* Slightly more lift on hover */
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
section h2 {
margin-top: 0;
margin-bottom: 25px;
/* More space below heading */
font-size: 1.8rem;
font-weight: 500;
color: #343a40;
border-bottom: 1px solid #e9ecef;
/* Thinner border */
padding-bottom: 15px;
/* Adjust padding */
}
/* --- Projects Section --- */
#projects .project {
margin-bottom: 30px;
padding-bottom: 30px;
border-bottom: 1px dashed #dee2e6;
/* Dashed divider */
}
#projects .project:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
#projects h3 {
margin-top: 0;
margin-bottom: 10px;
font-size: 1.3rem;
font-weight: 600;
color: #495057;
}
#projects p {
margin-bottom: 15px;
}
#projects a {
display: inline-block;
/* Allows padding and better interaction */
font-weight: 500;
padding: 3px 8px;
/* Small padding for visual cue */
border-radius: 4px;
}
#projects a:hover {
background-color: rgba(0, 123, 255, 0.1);
/* Subtle background on link hover */
text-decoration: none;
}
/* --- Contact Section --- */
#contact ul {
list-style: none;
padding: 0;
margin: 0;
}
#contact li {
margin-bottom: 12px;
font-size: 1.05rem;
}
/* --- Footer --- */
footer {
text-align: center;
padding: 30px 0;
margin-top: 40px;
background-color: #e9ecef;
/* Light grey footer */
color: #6c757d;
/* Muted text color */
font-size: 0.9rem;
border-top: 1px solid #dee2e6;
}
/* --- Responsive --- */
@media (max-width: 768px) {
.container {
padding: 0 15px;
}
header {
padding: 25px 0;
gap: 20px;
text-align: center;
/* Center text on small screens */
}
.header-text {
text-align: center;
}
.header-text h1 {
font-size: 2rem;
}
.header-text p {
font-size: 1rem;
}
section {
padding: 25px;
}
section h2 {
font-size: 1.6rem;
}
}
/* --- Modal Styles (Add this entire block to the end of style.css) --- */
.modal {
display: none;
/* Hidden by default */
position: fixed;
/* Stay in place */
z-index: 1000;
/* Sit on top */
padding-top: 50px;
/* Location of the box */
left: 0;
top: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height */
overflow: auto;
/* Enable scroll if needed */
background-color: rgba(0, 0, 0, 0.85);
/* Black w/ opacity */
cursor: pointer;
/* Indicate clicking closes it */
}
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
cursor: default;
/* Default cursor for the image itself */
-webkit-user-select: none;
/* Safari */
-ms-user-select: none;
/* IE 10+ */
user-select: none;
/* Standard syntax */
animation-name: zoom;
animation-duration: 0.4s;
}
@keyframes zoom {
from {
transform: scale(0.1)
}
to {
transform: scale(1)
}
}
/* The Close Button */
.close-modal {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
cursor: pointer;
}
.close-modal:hover,
.close-modal:focus {
color: #bbb;
text-decoration: none;
}
/* Responsive adjustments for modal */
@media (max-width: 700px) {
.modal-content {
width: 95%;
}
}