280 lines
4.2 KiB
CSS
280 lines
4.2 KiB
CSS
|
|
/* 全局样式 */
|
||
|
|
* {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
font-family: 'Noto Sans SC', sans-serif;
|
||
|
|
line-height: 1.6;
|
||
|
|
color: #333;
|
||
|
|
background-color: #f9f9f9;
|
||
|
|
}
|
||
|
|
|
||
|
|
.container {
|
||
|
|
width: 90%;
|
||
|
|
max-width: 1200px;
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 0 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
a {
|
||
|
|
text-decoration: none;
|
||
|
|
color: #0066cc;
|
||
|
|
}
|
||
|
|
|
||
|
|
a:hover {
|
||
|
|
color: #004499;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn {
|
||
|
|
display: inline-block;
|
||
|
|
padding: 10px 20px;
|
||
|
|
background-color: #0066cc;
|
||
|
|
color: white;
|
||
|
|
border-radius: 4px;
|
||
|
|
transition: background-color 0.3s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn:hover {
|
||
|
|
background-color: #004499;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 头部样式 */
|
||
|
|
header {
|
||
|
|
background-color: white;
|
||
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||
|
|
position: fixed;
|
||
|
|
width: 100%;
|
||
|
|
top: 0;
|
||
|
|
z-index: 1000;
|
||
|
|
}
|
||
|
|
|
||
|
|
header .container {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
padding: 15px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
header h1 {
|
||
|
|
font-size: 1.5rem;
|
||
|
|
font-weight: 700;
|
||
|
|
}
|
||
|
|
|
||
|
|
header h1 a {
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
|
||
|
|
header nav ul {
|
||
|
|
display: flex;
|
||
|
|
list-style: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
header nav ul li {
|
||
|
|
margin-left: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
header nav ul li a {
|
||
|
|
color: #333;
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
header nav ul li a:hover {
|
||
|
|
color: #0066cc;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 主要内容区域 */
|
||
|
|
main {
|
||
|
|
margin-top: 80px;
|
||
|
|
padding: 40px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 英雄区域 */
|
||
|
|
.hero {
|
||
|
|
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
|
||
|
|
background-size: cover;
|
||
|
|
background-position: center;
|
||
|
|
color: white;
|
||
|
|
text-align: center;
|
||
|
|
padding: 100px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.hero h2 {
|
||
|
|
font-size: 2.5rem;
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.hero p {
|
||
|
|
font-size: 1.2rem;
|
||
|
|
margin-bottom: 30px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 特性网格 */
|
||
|
|
.features,
|
||
|
|
.services-grid,
|
||
|
|
.team-grid {
|
||
|
|
margin: 50px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.feature-grid,
|
||
|
|
.services-grid,
|
||
|
|
.team-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||
|
|
gap: 30px;
|
||
|
|
margin-top: 30px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.feature,
|
||
|
|
.service,
|
||
|
|
.team-member {
|
||
|
|
background-color: white;
|
||
|
|
padding: 30px;
|
||
|
|
border-radius: 8px;
|
||
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
|
||
|
|
transition: transform 0.3s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.feature:hover,
|
||
|
|
.service:hover,
|
||
|
|
.team-member:hover {
|
||
|
|
transform: translateY(-5px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.feature h3,
|
||
|
|
.service h3,
|
||
|
|
.team-member h3 {
|
||
|
|
margin-bottom: 15px;
|
||
|
|
color: #0066cc;
|
||
|
|
}
|
||
|
|
|
||
|
|
.position {
|
||
|
|
color: #666;
|
||
|
|
font-style: italic;
|
||
|
|
margin-bottom: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 关于页面 */
|
||
|
|
.about h2,
|
||
|
|
.services h2,
|
||
|
|
.contact h2,
|
||
|
|
.team h2,
|
||
|
|
.case-studies h2 {
|
||
|
|
text-align: center;
|
||
|
|
margin-bottom: 30px;
|
||
|
|
font-size: 2rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.subtitle {
|
||
|
|
text-align: center;
|
||
|
|
margin-bottom: 40px;
|
||
|
|
color: #666;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 联系我们页面 */
|
||
|
|
.contact-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 50px;
|
||
|
|
margin-top: 40px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-info {
|
||
|
|
background-color: white;
|
||
|
|
padding: 30px;
|
||
|
|
border-radius: 8px;
|
||
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-info h3 {
|
||
|
|
margin-bottom: 20px;
|
||
|
|
color: #0066cc;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-info p {
|
||
|
|
margin-bottom: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-form {
|
||
|
|
background-color: white;
|
||
|
|
padding: 30px;
|
||
|
|
border-radius: 8px;
|
||
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group {
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group label {
|
||
|
|
display: block;
|
||
|
|
margin-bottom: 5px;
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group input,
|
||
|
|
.form-group textarea {
|
||
|
|
width: 100%;
|
||
|
|
padding: 10px;
|
||
|
|
border: 1px solid #ddd;
|
||
|
|
border-radius: 4px;
|
||
|
|
font-family: inherit;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group textarea {
|
||
|
|
resize: vertical;
|
||
|
|
}
|
||
|
|
|
||
|
|
.success-message {
|
||
|
|
background-color: #dff0d8;
|
||
|
|
color: #3c763d;
|
||
|
|
padding: 15px;
|
||
|
|
border-radius: 4px;
|
||
|
|
margin-bottom: 20px;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 页脚样式 */
|
||
|
|
footer {
|
||
|
|
background-color: #333;
|
||
|
|
color: white;
|
||
|
|
padding: 30px 0;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
footer .container {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.footer-links a {
|
||
|
|
color: #ccc;
|
||
|
|
margin-left: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.footer-links a:hover {
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 响应式设计 */
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.contact-grid {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
}
|
||
|
|
|
||
|
|
header .container {
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
header nav ul {
|
||
|
|
margin-top: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
header nav ul li {
|
||
|
|
margin: 0 10px;
|
||
|
|
}
|
||
|
|
}
|