/*!* 主容器样式 *!*/
/*.container {*/
/*    display: flex;*/
/*    min-height: 100vh; !* 确保容器至少占满视口高度 *!*/
/*}*/

/* 侧边栏样式 */
.sidebar {
    width: 200px; /* 调整侧边栏宽度 */
    background-color: #434752;
    color: white;
    padding: 15px;
    margin-right: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 标题样式 */
.sidebar h3 {
    color: #b89c16;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #5a5d66;
}

/* 菜单项样式 */
.sidebar-item {
    padding: 10px 5px;
    border-bottom: 1px solid #5a5d66;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.sidebar-item:hover, .sidebar-item.active {
    background-color: #4a4e5a; /* 稍微不同的背景色表示选中状态 */
}

/* 联系信息样式 */
.contact-info {
    margin-top: 20px;
    padding-top: 15px;
    /*border-top: 1px solid #5a5d66;*/
    font-size: 12px;
    line-height: 1.5;
}

.contact-info p {
    margin-bottom: 5px;
}

/* 二维码样式 */
.qrcode-img {
    width: 80px;
    height: 80px;
    display: block;
    margin: 10px auto 0;
}

/* 主内容区域样式 */
.main-content {
    flex: 1; /* 主内容区域占据剩余空间 */
    padding: 20px;
    background-color: #222;
    color: white;
    display: flex;
    flex-direction: column;
}

/* 标题样式 */
.page-title {
    text-align: center;
    font-size: 24px;
}

/* 轮播图容器样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px; /* 固定高度，避免变形 */
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #333; /* 添加背景颜色，避免内容加载前显示空白 */
}

/* 轮播图图片容器样式 */
.carousel-slides {
    object-fit:cover;
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
}



.carousel-container .carousel-slides .carousel-slide {
    object-fit:cover;
    flex: 0 0 100%;
    width: 100%;
    height: 100%; /* 使用100%高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 关键修复：确保图片不会变形 */
.carousel-slide img {
    object-fit:cover;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，裁剪多余部分 */
    object-position: center; /* 居中显示 */
    display: block; /* 移除图片默认间距 */
}

/* 响应式设计 - 确保在不同设备上正常显示 */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px; /* 移动端降低高度 */
    }

    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px; /* 小屏幕进一步降低高度 */
    }

    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
/* 轮播图控制按钮样式 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    background-color: rgba(0,0,0,0.5);
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* 轮播图指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
}

.carousel-indicator.active {
    background-color: white;
}

/* 内容区域样式 */
.content-section {
    flex: 1; /* 内容区域占据剩余空间 */
    width: 100%; /* 确保内容区域占据整个宽度 */
    display: none; /* 默认隐藏所有内容区域 */
}

.content-section.active {
    display: block; /* 显示当前激活的内容区域 */
    overflow-y: auto; /* 添加垂直滚动条以防止内容溢出 */
}

/* 公司信息样式 */
.company-info {
    margin-top: 20px;
    line-height: 1.6;
}

.content_list {
    width: 100%;
    display: flex;
    justify-content: center;
}



