-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.css
172 lines (145 loc) · 2.74 KB
/
contact.css
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
/* 春节装饰 */
.spring-festival {
position: fixed;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 100;
}
.lantern {
position: absolute;
width: 60px;
height: 80px;
background: url('../assets/lantern.png') no-repeat;
background-size: contain;
animation: swing 3s ease-in-out infinite;
}
.lantern.left {
top: 50px;
left: 50px;
}
.lantern.right {
top: 50px;
right: 50px;
}
.firecracker {
position: absolute;
width: 100px;
height: 300px;
background: url('../assets/firecracker.png') no-repeat;
background-size: contain;
}
.firecracker.left {
bottom: 0;
left: 0;
}
.firecracker.right {
bottom: 0;
right: 0;
}
@keyframes swing {
0%,
100% {
transform: rotate(-5deg);
}
50% {
transform: rotate(5deg);
}
}
/* 联系内容样式 */
.contact-container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.contact-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
margin-top: 3rem;
}
.contact-info {
display: grid;
gap: 2rem;
}
.contact-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 2rem;
text-align: center;
transition: transform 0.3s ease;
}
.contact-card:hover {
transform: translateY(-5px);
}
.card-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.contact-card h3 {
color: var(--primary-color);
margin-bottom: 1rem;
}
.social-links {
display: flex;
justify-content: center;
gap: 1rem;
}
.social-links a {
color: var(--text-light);
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 20px;
background: rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}
.social-links a:hover {
background: var(--primary-color);
transform: translateY(-2px);
}
.qr-code {
width: 150px;
height: 150px;
margin: 1rem auto 0;
border-radius: 10px;
}
/* 表单样式 */
.contact-form {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 2rem;
}
.contact-form h2 {
color: var(--primary-color);
margin-bottom: 2rem;
text-align: center;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 1rem;
background: rgba(255, 255, 255, 0.1);
border: none;
border-radius: 10px;
color: var(--text-light);
transition: all 0.3s ease;
}
.form-group textarea {
height: 150px;
resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
background: rgba(255, 255, 255, 0.2);
}
.contact-form button {
width: 100%;
padding: 1rem;
font-size: 1.1rem;
}