/* 全局样式设置 */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f4f7fa;
    background: linear-gradient(to bottom, #ffffff, #b6d8ee);
}

/* 导航栏、页脚、按钮和链接样式 */
.navbar, .footer {
    background-color: #0056b3;
    color: white;
}

.nav-link, .btn-outline-primary {
    color: white;
}

.nav-link:hover, .btn-outline-primary:hover {
    color: #ffffff;
    background-color: #007bff;
}

.footer {
    padding: 20px 0;
    text-align: center;
}

/* 按钮样式 */
.btn-outline-primary {
    border-color: #007bff;
}

/* 主幻灯片样式 */
.main-carousel .carousel-item img {
    width: 100%;
    height: auto;
    max-width: 1200px; /* 控制最大宽度 */
    object-fit: cover; /* 确保图片覆盖整个元素 */
}

/* 产品展示区样式 */
.product-slider {
    overflow: hidden;
    white-space: nowrap;
    background: #e1ecf4;
    padding: 20px 0;
}

.product-wrapper {
    display: flex;
    width: calc(200%);
    animation: scroll 10s linear infinite;
}

.product-container {
    display: flex;
    flex: 1;
    justify-content: space-around;
}

.product {
    display: inline-block;
    margin-right: 20px;
    text-align: center;
    width: 150px;
    background: white;
    border: 1px solid #cce1f2;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

.product span {
    display: block;
    margin-top: 5px;
    color: #0056b3;
}

hr {
    border-top: 1px solid #cce1f2;
}

/* 信息区域定制样式 */
.info-section-custom {
    background-color: #0056b3; /* 明确背景颜色 */
}

.custom-container {
    max-width: 80%; /* 容器宽度调整为80% */
    margin: auto; /* 水平居中 */
    padding: 15px; /* 内边距 */
    border-radius: 5px; /* 边角圆润 */
}

.section-title-custom {
    color: #ffffff; /* 标题颜色白色 */
    font-size: 22px; /* 标题大小 */
}

.info-text {
    color: #ffffff; /* 文本颜色白色 */
}

.info-section .carousel-inner .carousel-item img {
    max-width: 100%; /* 图片最大宽度100% */
    max-height: 300px; /* 图片最大高度300px */
    object-fit: contain; /* 图片缩放填充 */
}

.caption-bg {
    background-color: rgba(0, 85, 179, 0.75); /* 半透明蓝色背景框 */
    padding: 10px; /* 内边距 */
    border-radius: 5px; /* 圆角边框 */
}
/* 按钮样式调整 */
.btn-outline-primary {
    color: #007bff; /* 按钮文字颜色设置为蓝色 */
    background-color: #e1ecf4; /* 按钮背景设置为浅蓝色 */
    border-color: #007bff; /* 边框颜色也设置为蓝色 */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; /* 平滑过渡效果 */
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    color: #ffffff; /* 悬浮时文字颜色变为白色 */
    background-color: #007bff; /* 悬浮时背景颜色变为深蓝色 */
    border-color: #0056b3; /* 悬浮时边框颜色变为稍微深一点的蓝色 */
}

/* 资质荣誉证书图片样式调整 */
.carousel-inner .carousel-item img {
    max-height: 300px; /* 设置最大高度为300px */
    width: auto; /* 宽度自动，保持图片的比例 */
    max-width: 100%; /* 最大宽度不超过容器宽度 */
    object-fit: contain; /* 图片会尽可能填满容器，但不会被拉伸，保持其原有比例 */
    margin: auto; /* 水平居中显示 */
}

.carousel-caption {
    background-color: rgba(0, 85, 179, 0.8); /* 为文字背景设置半透明的蓝色 */
    padding: 10px; /* 内边距增加一些空间 */
    border-radius: 5px; /* 文字背景圆角边框 */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #007bff; /* 控制箭头的背景颜色为深蓝色，增强可见度 */
    border-radius: 50%; /* 圆形箭头背景 */
    padding: 10px; /* 内部填充 */
}


@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 资质荣誉证书图片样式调整 */
#licenseCarousel .carousel-inner .carousel-item img {
    max-height: 100px; /* 设置最大高度为300px，确保所有图片高度一致 */
    width: auto; /* 宽度自动，保持图片的比例 */
    max-width: 100%; /* 最大宽度不超过容器宽度 */
    object-fit: contain; /* 图片会尽可能填满容器，但不会被拉伸，保持其原有比例 */
    margin: auto; /* 水平居中显示 */
}

.carousel-caption {
    background-color: rgba(0, 85, 179, 0.8); /* 为文字背景设置半透明的蓝色 */
    padding: 10px; /* 内边距增加一些空间 */
    border-radius: 5px; /* 文字背景圆角边框 */
    display: flex; /* 使用Flex布局使内容垂直居中 */
    align-items: center; /* 垂直居中对齐 */
    justify-content: center; /* 水平居中对齐 */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #007bff; /* 控制箭头的背景颜色为深蓝色，增强可见度 */
    border-radius: 50%; /* 圆形箭头背景 */
    padding: 10px; /* 内部填充 */
}

.custom-caption {
    text-align: center; /* 文字居中 */
    padding: 10px 0; /* 上下内边距 */
    /* background-color: rgba(0, 85, 179, 0.75); 背景颜色 */
    border-radius: 5px; /* 圆角 */
    color: rgb(66, 61, 61); /* 文字颜色 */
    position: relative; /* 相对定位 */
    top: -60px; /* 调整位置，确保不在图片上 */
    transform: translateY(100%); /* 下移，使其位于图片下方 */
}

/* 确保.carousel-inner之后紧跟.custom-caption而不是覆盖在图片上 */
.carousel-inner {
    margin-bottom: 60px; /* 为底部文字留出空间 */
}
.content-spacer {
    height: 50px;  /* 间隔高度，可以根据需要调整 */
    clear: both;  /* 确保不与其他元素的浮动属性冲突 */
}
.custom-info-section {
    background-color: #0056b3; /* 深蓝色背景 */
    color: white; /* 白色文字 */
    padding: 20px 0; /* 上下内边距 */
    border-radius: 5px; /* 圆角边框 */
}

.custom-container {
    max-width: 80%; /* 容器最大宽度调整为80% */
    margin: auto; /* 居中显示 */
}

.custom-section-title {
    color: white; /* 标题颜色 */
    margin-bottom: 15px; /* 标题与内容间隔 */
}

.custom-news-list {
    list-style-type: none; /* 去掉列表前的点 */
    padding-left: 0; /* 去掉默认的内边距 */
}

.custom-news-list li {
    padding: 5px 0; /* 列表项间隔 */
    border-bottom: 1px solid #e1ecf4; /* 列表项之间的分隔线 */
}

.custom-news-list li:last-child {
    border-bottom: none; /* 最后一个列表项无分隔线 */
}

.custom-contact-section p {
    margin-bottom: 5px; /* 段落间距调整 */
}
.list-group-item {
    font-size: 0.9rem; /* 减小字体大小以适应更紧凑的布局 */
}

.news-content p {
    line-height: 1.4; /* 较小的行间距 */
    margin-bottom: 1.5rem; /* 增大段间距 */
}

.news-content h2 {
    margin-bottom: 1rem; /* 标题和内容之间的间距 */
}
.wechat-icon {
    width: 60px; /* 图标的宽度 */
    height: 60px; /* 图标的高度 */
    cursor: pointer; /* 鼠标悬停时变为手形图标 */
}
.header-container {
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* 子项之间的间隔最大化，推动图标到右边 */
    background-color: white;
    /* padding-right: 50px; 右边距 */
}
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    align-items: center;
    justify-content: center;
    z-index: 1000; /* 确保在顶层 */
}
.wechat-qr {
    max-width: 30%;
    max-height: 30%;
}