You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
1.8 KiB

body {
margin: 0;
font-family: Arial, sans-serif;
}
header {
position: fixed;
top: 0;
width: 100%;
background: linear-gradient(to right, #0066cc, #003366);
color: white;
z-index: 1000;
display: flex;
align-items: center;
padding: 10px 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.site-title {
font-size: 1.8em;
font-weight: bold;
margin-right: auto;
}
nav {
display: flex;
gap: 20px;
margin-right: 25%;
}
.nav-item {
position: relative;
cursor: pointer;
color: white;
font-size: 1em;
}
.nav-item:hover .dropdown {
display: block;
}
.dropdown {
display: none;
position: absolute;
top: 30px;
left: 0;
background-color: rgba(255, 255, 255, 0.9);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border-radius: 4px;
overflow: hidden;
}
.dropdown-item {
padding: 10px 20px;
color: #333;
white-space: nowrap;
}
.dropdown-item:hover {
background-color: #f0f0f0;
}
.carousel {
margin-top: 80px;
width: 100%;
height: 500px; /* 固定轮播图高度 */
overflow: hidden;
position: relative;
}
.carousel-images {
display: flex;
transition: transform 0.5s ease-in-out;
}
.carousel img {
width: 100%;
height: 500px; /* 固定图片高度 */
object-fit: cover; /* 保持图片比例,裁剪多余部分 */
}
.section {
padding: 50px 20px;
text-align: center;
margin: 0 auto;
max-width: 1200px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.section:nth-child(odd) {
background-color: #f9f9f9;
}
.section:nth-child(even) {
background-color: #eaeaea;
}
.section-title {
font-size: 1.5em;
color: #003366;
margin-bottom: 20px;
}
.section img {
max-width: 100%;
height: auto;
margin-bottom: 20px;
border-radius: 8px;
}