.banner-text {
    font-size: 30px;
    font-weight: bold; /* 加粗字体 */
    color: #ffffff; /* 文字颜色为白色 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 添加文字阴影以提高可读性 */
    position: absolute; /* 绝对定位 */
    top: 50%; /* 垂直居中 */
    transform: translate(-50%, -50%); /* 确保文字居中 */
    text-align: center; /* 文本居中 */
    z-index: 2; /* 确保文字在图片之上 */
}
.line-one {
    display: block; /* 确保第一行占据一整行 */
}

.line-two {
    display: block; /* 确保第二行占据一整行 */
}

/* 左侧导航栏样式 */
.sidebar {
    width: 350px;
    flex-shrink: 0; /* 防止侧边栏被压缩 */
    background-color: rgba(255, 255, 255, 0.9);
    position: relative; /* 改为相对定位 */
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s ease; /* 平滑过渡 */
    margin-bottom: 40px;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 27px;
    bottom: 0;
    width: 2px; /* 线条宽度 */
    background-color: #4d4e4e; /* 线条的新颜色 */
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    position: relative; /* 确保伪元素相对于父元素定位 */
    margin-bottom: 10px;
    display: flex; /* 使用flex布局 */
    align-items: center; /* 垂直居中对齐 */
}

@media (max-width: 768px) {
    .sidebar::after {
        display: none; /* 移除横线 */
    }
    .sidebar-item::after {
        display: none; /* 移除横线 */
    }
    .sidebar-item.active::after {
        display: none; /* 移除横线 */
    }

    .sidebar {
        position: static; /* 静态定位，使其紧贴横幅底部 */
        width: 100%; /* 占满宽度 */
        margin-top: 0 !important; /* 移除顶部外边距 */
        padding: 10px 0; /* 调整内边距 */
        box-sizing: border-box; /* 确保内边距不影响总宽度 */
        margin-bottom: 0 !important;
    }

    .sidebar-nav {
        display: flex; /* 使用flex布局 */
        flex-direction: column; /* 垂直排列 */
        flex-wrap: wrap; /* 允许换行 */
        align-items: stretch; /* 确保每个项占满宽度 */
    }

    .sidebar-item {
        margin: 0; /* 移除外边距 */
        flex: 0 0 48%; /* 每个导航项占据48%的宽度，留出间距 */

    }

    .sidebar-link {
        text-align: left !important; /* 居中对齐文本 */
        padding: 10px 15px; /* 调整内边距 */
        font-size: 14px !important; /* 缩小字体大小 */
        width: 100%; /* 占满宽度 */
        margin-bottom: 1px !important;
    }

    .sidebar-item.active .sidebar-link {
        background-color: #f0f0f081 !important; /* 设置选中项的背景颜色 */
        color: #333; /* 确保文字颜色可读 */
    }

    .content-section {
        line-height: 1.5 !important;
    }


}

.sidebar-item::after {
    content: '';
    position: absolute;
    right: 3px; /* 圆圈的位置 */
    transform: translateY(-50%);
    width: 10px; /* 圆圈的大小 */
    height: 10px;
    background-color: #4d4e4e; /* 圆圈的新颜色 */
    border-radius: 50%; /* 圆形 */
    transition: transform 0.3s ease, background-color 0.3s ease;
}



.sidebar-item.active::after {
    content: '';
    position: absolute;
    right: 4px; /* 调整圆点的位置 */
    transform: translateY(-50%) scale(1.2); /* 放大圆点 */
    width: 10px; /* 圆点的大小 */
    height: 10px;
    background-color: #007bff; /* 圆点的新颜色 */
    border-radius: 50%; /* 圆形 */
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 100;
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease; /* 平滑过渡 */
    font-size: 16px;
    font-weight: 500;
    position: relative;
    border-left: 3px solid transparent;
    margin-bottom: 15px;
    flex-grow: 1; /* 使链接占据剩余空间 */
    text-align: right; /* 右对齐文本 */
    margin-right: 3px;
}

.sidebar-link:hover {
    background-color: rgba(85, 86, 87, 0.1);
    border-left-color: #888;
    color: #333;
}

.sidebar-item.active .sidebar-link {
    background-color: transparent;
    font-weight: bold;
    color: black;
}


.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1); /* 高亮背景色 */
    border-radius: 4px; /* 圆角 */
}

/* 右侧内容 */
.main-content {
    flex: 1; /* 占据剩余空间 */
    padding: 0px;
    margin-bottom: 100px;
    min-width: 0; /* 防止内容溢出 */
}

/* 内容模块样式 */
.content-section {
    display: none; /* 默认隐藏所有内容 */
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    transition: opacity 0.3s ease;
}

.content-section.active {
    display: block; /* 显示激活的内容 */
}

.content-section:hover {
    transform: none; /* 移除悬停效果 */
    box-shadow: none; /* 移除悬停时的阴影 */
}

.content-section h2 {
    color: #007bff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-size: 30px; /* 增大标题字体大小 */
    font-weight: bold; /* 使标题加粗 */

}

.content-section h2::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #555, #999);
    bottom: -10px;
    left: 0;
    transition: width 0.4s;
}

.content-section h2:hover::after {
    width: 100%;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
}

.content-text {
    flex: 1;
}

.content-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.content-text ul {
    list-style: none;
    padding: 0;
}

.content-text ul li {
    padding: 10px 0;
    color: #666;
    font-size: 14px;
    font-size: 18px; /* 增大字体大小 */
    font-weight: bold; /* 使文本加粗 */
}

.content-image {
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.content-image img {
    max-width: 100%;
    transition: transform 0.6s ease;
}

.content-image:hover img {
    transform: scale(1.05);
}

.content-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.1));
    pointer-events: none;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 - 仅针对手机端 */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* 垂直排列容器内容 */
        align-items: center; /* 水平居中 */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .main-content {
        width: 100%; /* 确保主内容宽度为100% */
        margin-left: 0; /* 移除左侧外边距 */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .content-section {
        margin-bottom: 20px; /* 减少内容模块之间的间距 */
    }

    .content-section h2 {
        font-size: 20px;
    }

    .content-wrapper {
        flex-direction: column; /* 垂直排列内容 */
        align-items: center; /* 水平居中 */
        gap: 20px;
    }

    .content-text {
        width: 100%; /* 确保文本占满宽度 */
        padding: 20px 15px;
        text-align: left; /* 确保文本左对齐 */
    }

    .content-text p {
        font-size: 14px; /* 调整段落字体大小 */
        line-height: 1.5; /* 调整行高 */
        color: #666; /* 设置段落颜色 */
    }

    .content-text ul {
        list-style: none; /* 去掉默认列表样式 */
        padding: 0; /* 去掉内边距 */
    }

    .content-text ul li {
        padding: 5px 0; /* 调整列表项的上下间距 */
        font-size: 14px; /* 调整列表项字体大小 */
        color: #666; /* 设置列表项颜色 */
        font-weight: normal !important;
    }

    .content-image {
        width: 100%; /* 图片宽度为100% */
        text-align: center; /* 居中对齐 */
        margin-top: 10px; /* 图片与文本之间的间距 */
    }

    .content-image img {
        max-width: 100%; /* 确保图片占满容器宽度 */
        height: auto; /* 保持图片比例 */
        border-radius: 8px; /* 圆角 */
    }

    .slider-container {
        width: 100%; /* 确保轮播容器宽度为100% */
    }

    .slider-btn {
        padding: 10px; /* 调整按钮内边距 */
        font-size: 16px; /* 调整按钮字体大小 */
    }

    .banner-text {
        position: absolute;
        top: 30%;
        left: 0%;
        transform: translate(-50%, -50%); /* 使文字居中 */
        color: white; /* 文字颜色 */
        font-size: 13px; /* 根据需要调整字体大小 */
        z-index: 10; /* 确保文字在图片上方 */
        padding: 10px; /* 可选：增加内边距 */
    }
}

/* 确保页面容器有最小高度并使用左右布局 */
.container {
    min-height: calc(100vh - 180px);
    position: relative;
    padding-bottom: 100px;
    display: flex; /* 使用flex布局 */
    gap: 30px; /* 添加间距 */
    margin-top: 20px;
}


/* 图片轮播样式 */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px; /* 设置固定高度 */
}

.slide, .slide-robot, .slide-security {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.slide.active, .slide-robot.active, .slide-security.active {
    opacity: 1;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.6);
    opacity: 0.7;
    backdrop-filter: blur(2px);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
    opacity: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .slider-wrapper {
        height: 200px;
    }
    
    .slider-btn {
        padding: 10px 15px;
        font-size: 16px;
    }
}

