/* 设置整个页面的背景颜色和背景图像 */
body {
    background-image: url('../images/background-service.jpg'); /* 设置背景图像 */
}

/* 容器布局 */
.container {
    gap: 30px; /* 添加间距 */
    margin-top: 20px;
    background-color: transparent; /* 淡蓝色背景 */
}

/* 左侧导航栏样式 */
.sidebar {
    display: flex; /* 使用flex布局 */
    justify-content: center; /* 水平居中 */
    width: 100%; /* 宽度为100% */
    padding: 0; /* 移除内边距 */
    margin: 0; /* 移除外边距 */
    background-color: transparent; /* 背景透明 */
}

/* 导航项样式 */
.sidebar-nav {
    display: flex; /* 使用flex布局 */
    list-style: none; /* 移除列表项的默认样式 */
    padding: 0; /* 移除默认的内边距 */
    margin: 0; /* 移除默认的外边距 */
    gap: 20px; /* 设置导航项之间的间距 */
}

/* 导航项样式 */
.sidebar-item {
    margin: 0; /* 移除导航项的外边距 */
    position: relative; /* 使伪元素相对于此元素定位 */
}

/* 导航链接样式 */
.sidebar-link {
    padding: 12px 20px; /* 设置内边距 */
    color: #333; /* 文字颜色 */
    text-decoration: none; /* 移除下划线 */
    border-right: 1px solid rgba(211, 211, 211, 0.5); /* 使用淡灰色边框，增加透明度 */  
    transition: background-color 0.3s ease, color 0.3s ease; /* 平滑过渡 */
}

/* 移除最后一个导航项的右边框 */
.sidebar-item:last-child .sidebar-link {
    border-right: none; /* 最后一个选项不显示右边框 */
}

/* 光标移动到选项上时的颜色改为灰色 */
.sidebar-link:hover {
    background-color: #6b6c6e; /* 悬停时的背景颜色 */
    color: #fff; /* 悬停时的文字颜色 */
}

/* 确保高亮色为更浅的灰色 */
.sidebar-item.active .sidebar-link {
    background-color: #6b6c6e !important; /* 激活状态的背景颜色 */
    color: #fff !important; /* 确保文字颜色为白色 */
}

.sidebar-item.active .sidebar-link::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background-color: #414142; /* 激活状态左侧指示条 */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 右侧内容 */
.main-content {
    padding: 20px; /* 设置内边距 */
    min-width: 0; /* 防止内容溢出 */
}

/* 美化服务范围页面标题下方的装饰线条样式 */

/* 主标题装饰线条 */
.title-lines {
    display: flex;
    flex-direction: column;
    align-items: center; /* 居中对齐 */
    margin: 20px 0; /* 上下间距 */
    position: relative;
}

.line-long, .line-short {
    height: 4px; /* 调整线的高度 */
    margin-bottom: 5px; /* 两根线之间的间距 */
    width: 80%; /* 设置线的宽度为80% */
    border-radius: 2px; /* 圆角 */
    transition: all 0.3s ease; /* 平滑过渡 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 添加阴影 */
}

.line-long {
    background: linear-gradient(90deg, #2575fc, #6a11cb); /* 渐变色 */
    animation: slideIn 1s ease-out forwards; /* 添加动画 */
}

.line-short {
    background: linear-gradient(90deg, #6a11cb, #2575fc); /* 渐变色 */
    animation: slideIn 1s ease-out forwards 0.5s; /* 添加动画，延迟0.5秒 */
}

/* 动画效果 */
@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80%;
        opacity: 1;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .line-long, .line-short {
        width: 90%; /* 在移动设备上增加线的宽度 */
    }
}

/* 服务模块样式 */
.service-section {
    min-height: 400px; /* 根据需要调整高度 */
    margin-bottom: 0px; /* 下边距 */
    padding: 20px; /* 内边距 */
    border-radius: 0px; /* 圆角 */
    box-shadow: none; /* 移除阴影 */
    border: none; /* 移除边框 */
}

/* 服务模块标题样式 */
.service-section h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px; /* 调整标题下方间距 */
    padding-bottom: 10px;
    position: relative; /* 使伪元素相对于此元素定位 */
}

/* 英文标题样式 */
.title-en {
    color: #888; /* 设置为灰色 */
    font-weight: normal; /* 可选：设置为正常字体粗细 */
    margin-left: 10px; /* 设置左边距，增加空隙 */
}

/* 服务模块文本样式 */
.service-text {
    margin-top: 10px; /* 标题与文本之间的间距 */
    text-align: left; /* 文本左对齐 */
    width: 100%; /* 确保文本占满宽度 */
}

/* 段落样式 */
.service-text p {
    font-size: 16px; /* 段落字体大小 */
    line-height: 1.6; /* 行高 */
    color: #444; /* 段落颜色 */
    margin: 0; /* 移除段落的默认外边距 */
}

/* 图片样式 */
.service-image {
    margin-top: 20px; /* 图片与文本之间的间距 */
}

.service-image img {
    height: auto; /* 保持图片比例 */
    border-radius: 8px; /* 圆角 */
}

/* 上下布局 */
.service-content.vertical-layout {
    display: flex; /* 弹性布局 */
    flex-direction: column; /* 垂直布局 */
    gap: 20px; /* 间距 */
}

.service-content.vertical-layout .service-text {
    order: 1; /* 文本在上 */
}

.service-content.vertical-layout .service-image {
    order: 2; /* 图片在下 */
    text-align: center; /* 居中对齐 */
}

.service-content.vertical-layout .service-image img {
    max-width: 100%; /* 最大宽度 */
    height: auto; /* 自动高度 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影 */
}

/* 调整内容布局 */
.service-content {
    display: block; /* 将布局改为 block，使文本和图片垂直排列 */
}

.service-text {
    width: 100%; /* 文本占满宽度 */
}

/* 通用图片样式 */
.service-image {
    width: 80%; /* 默认图片宽度为容器的 80% */
    max-width: 400px; /* 默认图片最大宽度为 500px */
    height: auto; /* 保持图片比例 */
    margin: 20px 0; /* 默认图片靠左显示，与上下内容保持间距 */
    display: block; /* 确保图片是块级元素 */
    object-fit: cover; /* 确保图片填充容器 */
}

/* BA 系统、AI 办公系统、应用程序开发页面的图片样式 */
.ba-system .service-image,
.ai-office .service-image,
.app-development .service-image {
    width: 100%; /* 图片占满容器宽度 */
    max-width: 1300px; /* 图片最大宽度为 1000px */
    height: auto; /* 保持图片比例 */
    margin: 20px auto; /* 图片居中显示，与上下内容保持间距 */
    display: block; /* 确保图片是块级元素 */
    object-fit: cover; /* 确保图片填充容器 */
}

.video-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

.video-container video {
    flex: 1;
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    background-color: #000;
}

/* 主标题样式 */
.service-text h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #3498db;
}

/* 二级标题样式 */
.service-text h4 {
    font-size: 20px;
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* 强调文本样式 */
.service-text strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 列表样式 */
.service-text ul {
    margin: 0 0 20px 10px; /* 减少左边距 */
    padding-left: 0;
}

.service-text ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .service-text ul li {
        margin-bottom: 10px;
        line-height: 1.6;
        position: relative;
        padding-left: 20px;
        font-size: 14px;
    }
}

/* 二级列表样式 */
.service-text ul ul {
    margin: 10px 0 10px 10px; /* 减少二级列表的左边距 */
}

.service-text ul ul li {
    margin-bottom: 8px;
}

.service-text ul ul li::before {
    content: "◦";
    color: #7f8c8d;
}

/* 分段标题样式 */
.service-text p strong {
    display: block;
    color: #34495e;
    font-size: 18px;
    margin: 20px 0 10px 0;
    padding-left: 12px;
    border-left: 3px solid #95a5a6;
}

/* 确保内容不会与侧边栏重叠 */
@media (min-width: 769px) {
    .container {
        gap: 30px; /* 增加侧边栏和主内容之间的间距 */
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        background-color: rgba(255, 255, 255, 0.85);
        border-radius: 8px;
        padding: 10px 5px;
        margin-bottom: 20px;
    }
    
    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 5px;
    }
    
    .sidebar-item {
        flex: none;
        margin: 0;
    }
    
    .sidebar-link {
        display: block;
        text-align: center;
        font-size: 12px;
        padding: 10px 2px;
        border: none;
        border-radius: 6px;
        background-color: rgba(220, 238, 245, 0.7);
        transition: all 0.2s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .sidebar-link:hover {
        background-color: rgba(107, 108, 110, 0.8);
        transform: translateY(-2px);
    }
    
    .sidebar-item.active .sidebar-link {
        background-color: rgba(107, 108, 110, 0.8) !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
    }

    .main-content {
        padding: 20px;
        margin-left: 0;
    }

    .service-content {
        flex-direction: column;
    }
    
    .service-image {
        width: 100%;
        margin-top: 20px;
    }
    
    .service-section h2 {
        font-size: 24px;
    }
    
    .service-text h3 {
        font-size: 14px;
    }
    
    .service-text h4 {
        font-size: 14px;
    }
    
    .service-text p strong {
        font-size: 16px;
    }

    .service-text p {
        font-size: 14px;
    }

    .service-text {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .service-videos {
        width: 100%;
    }

    .video-container {
        flex-direction: column;
    }
    
    .video-container video {
        width: 100%;
    }

    .service-section {
        padding: 10px; /* 添加内边距以适应手机屏幕 */
    }

    .service-content {
        flex-direction: column; /* 垂直排列内容 */
    }

    .service-text {
        width: 100%; /* 确保文本占满宽度 */
        padding: 0; /* 去掉内边距 */
    }

    .service-image {
        width: 100%; /* 图片宽度为100% */
        margin-top: 10px; /* 图片与文本之间的间距 */
    }

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

    .title-lines {
        display: flex; /* 使用flex布局 */
        flex-direction: column; /* 垂直排列 */
        align-items: center; /* 水平居中 */
        margin: 10px 0; /* 上下间距 */
    }

    .line-long, .line-short {
        height: 4px; /* 调整线的高度 */
        margin-bottom: 5px; /* 两根线之间的间距 */
        width: 90%; /* 在移动设备上增加线的宽度 */
    }

    .line-long {
        background-color: #2575fc; /* 蓝色 */
    }

    .line-short {
        background-color: #6a11cb; /* 紫色 */
    }

    h2 {
        font-size: 24px; /* 调整标题字体大小 */
        text-align: center; /* 标题居中 */
    }

    h3 {
        font-size: 20px; /* 调整子标题字体大小 */
    }

    p {
        font-size: 16px; /* 调整段落字体大小 */
        line-height: 1.5; /* 调整行高 */
    }
}

/* 移除点击和悬停状态的效果 */
.service-content:hover,
.service-content:active,
.service-content:focus {
    box-shadow: none; /* 移除阴影 */
    border: none; /* 移除边框 */
    transform: none; /* 移除变换效果 */
    transition: none; /* 移除过渡动画 */
}

/* 如果有任何动画类，也需要移除 */
.fade-in,
.slide-in,
.animate {
    animation: none;
    transition: none;
}

.service-videos {
    width: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-videos video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    background-color: #000;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .service-videos {
        width: 100%;
    }
}

/* 仅针对LCD/LED模块的特殊布局 */
.lcd-led-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lcd-led-layout .service-text {
    width: 100%;
}

.lcd-led-layout .video-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

.lcd-led-layout .video-container video {
    flex: 1;
    width: 50%;
    height: 600px; /* 设置固定高度 */
    border-radius: 8px;
    object-fit: cover;
    background-color: #000;
}

/* 左边视频 */
.lcd-led-layout .video-container video:first-child {
    width: 60%; /* 左边视频占60%宽度 */
}

/* 右边视频 */
.lcd-led-layout .video-container video:last-child {
    width: 40%; /* 右边视频占40%宽度 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lcd-led-layout .video-container video {
        height: 150px;
        width: 100% !important; /* 在移动设备上恢复全宽 */
    }
}

/* BA系统模块的特殊布局 */
.ba-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ba-layout .service-text {
    width: 100%;
}

.ba-layout .service-image {
    width: 100%;
    text-align: center;
}

.ba-layout .service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ba-layout .service-image img {
        width: 100%;
    }
}

/* AI办公系统模块的特殊布局 */
.ai-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-layout .service-text {
    width: 100%;
}

.ai-layout .service-image {
    width: 100%;
    text-align: center;
}

.ai-layout .service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ai-layout .service-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-layout .service-image img {
        width: 100%;
    }
    .ai-layout .service-text p {
        font-size: 14px;
    }
}

/* 应用程序开发模块的特殊布局 */
.app-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-layout .service-text {
    width: 100%;
}

.app-layout .service-image {
    width: 100%;
    text-align: center;
}

.app-layout .service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.app-layout .additional-text {
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.app-layout .additional-text p {
    margin-bottom: 15px;
}

.app-layout .additional-text ul,
.app-layout .additional-text ol {
    margin: 0 0 20px 20px;
    padding-left: 0;
}

.app-layout .additional-text li {
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .app-layout .service-image img {
        width: 100%;
    }
    
    .app-layout .additional-text {
        font-size: 14px;
    }
}

/* 数据中心模块的特殊布局 */
.data-center-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.data-center-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.data-center-text {
    width: 100%;
}

.data-center-text h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #3498db;
}

.data-center-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.data-center-image {
    width: 100%;
    text-align: center;
}

.data-center-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .data-center-text h3 {
        font-size: 14px;
    }
    
    .data-center-text p {
        font-size: 14px;
    }
}

/* 通信服务页面图片样式 */
#communication .service-image img {
    height: auto !important; /* 保持图片比例 */
    margin: 20px 0 !important; /* 图片靠左显示，与上下内容保持间距 */
    display: block !important; /* 确保图片是块级元素 */
}

/* 服务器机房设计页面图片样式 */
#server-room-design .service-image img {
    max-width: 1000px !important; /* 设置图片最大宽度 */
    height: auto !important; /* 保持图片比例 */
    margin: 20px 0 !important; /* 图片靠左显示，与上下内容保持间距 */
    display: block !important; /* 确保图片是块级元素 */
}

/* 数据中心页面在手机端的标题布局 */
@media (max-width: 768px) {
    #data-center h2 .title-en {
        display: block; /* 让英文标题成为块级元素 */
        margin-left: 0; /* 移除左侧间距 */
        margin-top: 5px; /* 增加与中文标题之间的间距 */
        font-size: 0.8em; /* 调整字体大小 */
        text-align: center; /* 文本居中 */
        color: #888; /* 保持灰色 */
    }
}

/* 在services.css文件末尾添加以下代码 */
@media (max-width: 768px) {
    /* 所有服务页面在手机端的标题布局 */
    .service-section h2 .title-en {
        display: block; /* 让英文标题成为块级元素 */
        margin-left: 0; /* 移除左侧间距 */
        margin-top: 5px; /* 增加与中文标题之间的间距 */
        font-size: 0.8em; /* 调整字体大小 */
        text-align: center; /* 文本居中 */
        color: #888; /* 保持灰色 */
    }
    
    /* 使中文标题也居中 */
    .service-section h2 {
        text-align: center;
    }
}





