-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
215 lines (182 loc) · 3.63 KB
/
style.css
File metadata and controls
215 lines (182 loc) · 3.63 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
/* 弹窗美化 */
.popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 600px;
height: 300px;
background-color: #FFFFFF;
border-radius: 5px;
opacity: 0;
animation: popup-in 0.5s ease forwards;
z-index: 999;
}
.popup-text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
width: 100%;
height: 100%;
}
.popup-text p {
margin: 0;
}
.popup.hide {
animation: popup-out 0.5s ease forwards;
}
@keyframes popup-in {
0% {
opacity: 0;
transform: translate(-50%, -50%) scale(0.5);
}
100% {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
}
@keyframes popup-out {
0% {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
100% {
opacity: 0;
transform: translate(-50%, -50%) scale(0.5);
}
}
/* */
div {
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
}
h1 {
-webkit-user-select: text; /* Safari */
-moz-user-select: text; /* Firefox */
-ms-user-select: text; /* Internet Explorer/Edge */
user-select: text;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystem, SF Pro text, PingFang SC, Helvetica, Helvetica Neue, MiSans, HarmonyOSHans, Segoe UI, Arial, Microsoft YaHei, sans-serif, "\5B8B\4F53";
background-color: #F7F7F7;
}
nav {
background-color: #FFFFFF;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
nav ul li {
float: left;
}
nav ul li a {
display: block;
color: #3B3B3B;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
nav ul li a:hover {
background-color: #F7F7F7;
}
.banner {
object-fit: cover;
height: 600px;
background-size: cover;
background-repeat: no-repeat;
background-color: #FFFFFF;
padding: 60px;
text-align: center;
background-image: url(./images/banner0.png);
}
.banner {
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
.banner h1 {
font-size: 70px;
margin: 0;
color: #FFFFFF;
}
.banner p {
font-size: 15px;
color: #f2f2f2;
line-height: 35px;
text-shadow: 0 0 3 white;
}
.intro {
background-color: #FFFFFF;
margin: 30px auto;
padding: 16px;
}
.intro h2 {
font-size: 25px;
color: #3B3B3B;
}
.intro p {
font-size: 15px;
color: #3B3B3B;
line-height: 25px;
}
.intro h2 {
font-size: 25px;
color: #3B3B3B;
}
.work {
background-color: #FFFFFF;
margin: 30px auto;
padding: 16px;
}
.work-center {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.work a {
color: #3B3B3B;
}
.work h3 {
color: #3B3B3B;
position: relative;
font-weight: normal;
display: inline-block; /* 让下划线宽度与文本内容宽度保持一致 */
}
.work h3::after {
content: '';
position: absolute;
bottom: 0;
left: 50%; /* 从中间开始 */
width: 0;
height: 2px;
background-color: #3B3B3B;
transition: width 0.2s ease-in-out, left 0.2s ease-in-out;
transform-origin: 50% 50%; /* 设置变换的原点为中间 */
}
.work h3:hover::after {
width: 100%; /* 宽度变为100% */
left: 0; /* 左侧对齐 */
}
.work iframe {
width: 800px;
height: 450px;
border-radius: 5px;
}
a {
color: #5f9aff;
text-decoration: none;
}