body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #2d3748;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

header .logo:hover {
    transform: scale(1.05);
}

header nav {
    margin-left: auto; /* 新增：将导航栏整体推到右侧 */
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    color: #003366;
    text-decoration: none; /* 去掉下划线 */
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

header nav ul li a:hover {
    background-color: #007BFF;
    color: #ffffff;
}

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto; /* 新增：实现水平居中 */
    max-width: none;
    height: 40%; /* 原高度的80% */
    background-color: #ffffff;
}

/* 确保Logo容器位于轮播图的左上角 */
.logo-container-left {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo-container-left img {
    width: 60px;
}

/* 确保Logo容器位于轮播图的右上角 */
.logo-container-right {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* 确保轮播图容器相对定位，以便Logo容器可以相对于它定位 */
#home {
    position: relative;
}

.carousel img {
    width: 100%;
    height:100%;
    display: none;
    border-radius: 15px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    margin: 0 auto; /* 新增：实现图片水平居中 */
}

.featured {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    background-color: #ffffff;
    margin: 40px 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-item {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    transition: transform 0.3s ease;
    width: 25%;
    border: 1px solid #e0e0e0;
}

.featured-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.featured-item a {
    text-decoration: none; /* 去掉精选产品/服务/案例部分链接的下划线 */
}

.featured-item-content {
    display: flex;
    align-items: center;
}

.featured-item img {
    width:40%; /* 原尺寸的10分之一 */
    height:40%; /* 原尺寸的10分之一 */
    margin-right: 20px; /* 图片与文字之间的间距 */
}

.featured-item-text {
    flex: 1;
}

.featured-item h3 {
    color: #007BFF;
    margin-bottom: 10px;
}

.featured-item p {
    color: #333333;
    font-size: 14px;
}

/* 公司简介样式 */
#about {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #333333;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007BFF;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #333333;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.copyright {
    margin-top: 10px;
    font-size: 12px;
    color: #666666;
}