77
88 : root {
99 --primary-color : # 3498db ;
10+ --secondary-color : # 2ecc71 ;
1011 --text-color : # 333 ;
11- --light-gray : # f5f5f5 ;
12+ --light-gray : rgba (245 , 245 , 245 , 0.9 );
13+ --dark-gray : # 777 ;
14+ --content-bg : rgba (255 , 255 , 255 , 0.85 );
1215 }
1316
1417 body {
1518 font-family : 'Segoe UI' , Tahoma, Geneva, Verdana, sans-serif;
1619 line-height : 1.6 ;
1720 color : var (--text-color );
21+ display : flex;
22+ flex-direction : column;
23+ min-height : 100vh ;
24+ background : url ('/public/img/background.jpg' ) no-repeat center center fixed;
25+ background-size : cover;
26+ }
27+
28+ /* 添加遮罩层确保文字可读性 */
29+ body ::before {
30+ content : '' ;
31+ position : fixed;
32+ top : 0 ;
33+ left : 0 ;
34+ right : 0 ;
35+ bottom : 0 ;
36+ background-color : rgba (255 , 255 , 255 , 0.3 );
37+ z-index : -1 ;
1838 }
1939
2040 .container {
2141 width : 90% ;
2242 max-width : 1200px ;
23- margin : 0 auto;
43+ margin : 2rem auto;
44+ padding : 2rem ;
45+ flex : 1 ;
46+ background-color : var (--content-bg );
47+ border-radius : 8px ;
48+ box-shadow : 0 2px 10px rgba (0 , 0 , 0 , 0.1 );
49+ }
50+
51+ /* 头部样式 */
52+ .site-header {
53+ background-color : white;
54+ box-shadow : 0 2px 5px rgba (0 , 0 , 0 , 0.1 );
55+ position : sticky;
56+ top : 0 ;
57+ z-index : 100 ;
58+ }
59+
60+ .header-container {
61+ display : flex;
62+ justify-content : space-between;
63+ align-items : center;
64+ padding : 1rem 5% ;
65+ }
66+
67+ .logo a {
68+ font-size : 1.5rem ;
69+ font-weight : bold;
70+ color : var (--primary-color );
71+ text-decoration : none;
72+ }
73+
74+ .main-nav ul {
75+ display : flex;
76+ list-style : none;
77+ }
78+
79+ .main-nav li {
80+ margin-left : 2rem ;
81+ }
82+
83+ .main-nav a {
84+ text-decoration : none;
85+ color : var (--text-color );
86+ font-weight : 500 ;
87+ transition : color 0.3s ;
88+ }
89+
90+ .main-nav a : hover ,
91+ .main-nav a .active {
92+ color : var (--primary-color );
93+ }
94+
95+ .mobile-menu-btn {
96+ display : none;
97+ font-size : 1.5rem ;
98+ cursor : pointer;
99+ }
100+
101+ /* 页脚样式 */
102+ .site-footer {
103+ background-color : var (--light-gray );
24104 padding : 2rem 0 ;
105+ margin-top : 2rem ;
106+ }
107+
108+ .footer-container {
109+ display : flex;
110+ flex-wrap : wrap;
111+ justify-content : space-between;
112+ gap : 2rem ;
113+ }
114+
115+ .footer-section {
116+ flex : 1 ;
117+ min-width : 200px ;
118+ }
119+
120+ .footer-section h3 {
121+ margin-bottom : 1rem ;
122+ color : var (--primary-color );
123+ }
124+
125+ .footer-section ul {
126+ list-style : none;
127+ }
128+
129+ .footer-section li {
130+ margin-bottom : 0.5rem ;
131+ }
132+
133+ .footer-section a {
134+ text-decoration : none;
135+ color : var (--text-color );
136+ transition : color 0.3s ;
137+ }
138+
139+ .footer-section a : hover {
140+ color : var (--primary-color );
141+ }
142+
143+ .contact-info i {
144+ margin-right : 0.5rem ;
145+ color : var (--primary-color );
146+ }
147+
148+ .social-links {
149+ display : flex;
150+ gap : 1rem ;
151+ margin-top : 1rem ;
152+ }
153+
154+ .social-links a {
155+ font-size : 1.2rem ;
156+ }
157+
158+ .copyright {
159+ text-align : center;
160+ margin-top : 2rem ;
161+ padding-top : 1rem ;
162+ border-top : 1px solid # ddd ;
163+ color : var (--dark-gray );
164+ }
165+
166+ /* 关于页面样式 */
167+ .about-section h1 {
168+ margin-bottom : 1rem ;
169+ color : var (--primary-color );
170+ }
171+
172+ .about-content {
173+ margin-bottom : 3rem ;
174+ }
175+
176+ .about-content h2 {
177+ margin : 1.5rem 0 1rem ;
178+ color : var (--secondary-color );
179+ }
180+
181+ .values-list {
182+ list-style : none;
183+ margin-top : 1rem ;
184+ }
185+
186+ .values-list li {
187+ margin-bottom : 0.5rem ;
188+ }
189+
190+ .values-list i {
191+ color : var (--secondary-color );
192+ margin-right : 0.5rem ;
193+ }
194+
195+ .team-showcase h2 {
196+ margin-bottom : 2rem ;
197+ color : var (--primary-color );
198+ }
199+
200+ .team-grid {
201+ display : grid;
202+ grid-template-columns : repeat (auto-fill, minmax (250px , 1fr ));
203+ gap : 2rem ;
204+ }
205+
206+ .team-member {
207+ text-align : center;
208+ }
209+
210+ .member-photo {
211+ width : 150px ;
212+ height : 150px ;
213+ margin : 0 auto 1rem ;
214+ border-radius : 50% ;
215+ background-color : var (--light-gray );
216+ }
217+
218+ /* 响应式设计 */
219+ @media (max-width : 768px ) {
220+ .main-nav {
221+ position : fixed;
222+ top : 70px ;
223+ left : 0 ;
224+ width : 100% ;
225+ background-color : white;
226+ box-shadow : 0 5px 5px rgba (0 , 0 , 0 , 0.1 );
227+ max-height : 0 ;
228+ overflow : hidden;
229+ transition : max-height 0.3s ease-out;
230+ }
231+
232+ .main-nav .show {
233+ max-height : 300px ;
234+ }
235+
236+ .main-nav ul {
237+ flex-direction : column;
238+ padding : 1rem ;
239+ }
240+
241+ .main-nav li {
242+ margin : 0.5rem 0 ;
243+ }
244+
245+ .mobile-menu-btn {
246+ display : block;
247+ }
248+
249+ .footer-container {
250+ flex-direction : column;
251+ }
25252 }
0 commit comments