/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}
/* 顶部导航栏样式 */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 12px 0;
    z-index: 1000;
    height: 60px;
}
.top-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    height: 100%;
}
.site-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    line-height: 60px;
}
.contact-section {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}
.service-title {
    font-size: 20px;
    color: #8e9aad;
    font-weight: 600;
}
.contact-info {
    font-size: 16px;
    text-decoration: none;
    color: white;
    white-space: nowrap;
}



.carousel {
  position: relative;
  width: 100%;
  height: 800px;
  margin: 80px 0 0 150px; /* 保留顶部和左侧外边距 */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 0; /* 保持padding为0 */
}

.slide {
  position: absolute;
  top: 50%; /* 新增垂直居中 */
  left: 50%; /* 新增水平居中 */
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translate(-50%, -50%); /* 新增居中转换 */
  transition: opacity 1s ease-in-out, transform 0.5s ease-out; /* 新增transform过渡 */
  padding: 4px;
}

.slide.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02); /* 新增激活状态缩放 */
}





/* 左侧导航栏样式 */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 200px;
    background-color: #f0f2f5;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 999;
}
.sidebar h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
}
.nav-item {
    display: block;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}
.nav-item:hover {
    background-color: #eaecef;
    color: #2c3e50;
    transform: translateX(5px);
}
.active {
    background-color: #34495e;
    color: white;
}
/* 首页专属样式 */
.home-nav {
    font-size: 20px;
    font-weight: 600;
}
/* 主体内容样式 */
main {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px;
    line-height: 1.8;
    font-size: 16px;
    margin-left: 220px;
}
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    main {
        margin-left: 0;
        padding: 40px;
    }
}
.footer {
    /*position: fixed;*/
    position: static;/* 改为静态定位 */
    /*bottom: 0;*/
    width: 100%;
    background-color: #f8f9fa;
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid #eee;
    font-size: 12px;
	margin-top: 40px;         /* 添加上边距，与内容保持距离 */
}
