/* 定义思源黑体 Regular 字重 */
@font-face {
    font-family: 'Source Han Sans';
    src: url('../fonts/SourceHanSansCN-Regular.woff2') format('woff2');
    font-weight: 400; /* Regular 对应 400 */
    font-style: normal;
    font-display: swap;
}

/* 定义思源黑体 Bold 字重 */
@font-face {
    font-family: 'Source Han Sans';
    src: url('../fonts/SourceHanSansCN-Bold.woff2') format('woff2');
    font-weight: 700; /* Bold 对应 700 */
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 'Source Han Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400; /* 默认使用 Regular */
    font-size: 22px;
}
h1, strong {
    font-weight: bold; /* 粗体元素自动使用 Bold */
}

header{
    font-weight: bold;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
    margin-top: 5rem;
    margin-bottom: 4rem;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
    bottom: 1rem;
    z-index: 10;
}

/* Declare heights because of positioning of img element */
#myCarousel .carousel-item {
    width: 100%;
    height: auto;
}

#productCarousel .carousel-item {
    /*height: 25rem;*/
}

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
    /* Bump up size of carousel content */
    .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }
}
@media (min-width: 1400px) {
    .carousel-caption {
        bottom: 35%;
    }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .carousel-caption {
        bottom: 30%;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .carousel-caption {
        bottom: 25%;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .carousel-caption {
        bottom: 20%;
    }
}
@media (max-width: 767px){
    #myCarousel .carousel-item {
        width: 100%;
        height: 15rem;
    }
    .carousel-caption {
        bottom: 10%;
        font-size: 1rem;
    }
    .carousel-caption h1 {
        font-size: 1rem;
    }
    .carousel-caption .btn {
        --bs-btn-padding-y: 0.25rem;
        --bs-btn-padding-x: 0.5rem;
        --bs-btn-font-size: 0.875rem;
        --bs-btn-border-radius: var(--bs-border-radius-sm);
    }
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: .75rem;
}

.image-container {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative; /* 错位控制基准 */
    height: fit-content; /* 自适应图片高度 */
}

/* 上方图片（较大）*/
.top-image {
    width: 300px; /* 根据需要调整尺寸 */
    position: relative;
    top: 0;
}

/* 下方图片（较小且偏右）*/
.bottom-image {
    width: 350px; /* 小于上方图片 */
    position: relative;
    top: 150px; /* 关键：向下偏移 */
    left: -80px; /* 关键：向右偏移 */
    border-width: 8px !important;
}

/* 小屏设备调整为纵向排列 */
@media (max-width: 992px) {
    .image-container {
        flex-direction: column;
        align-items: center;
    }

    .bottom-image {
        margin-top: 10px;
        width: 300px;
        top: 0;
        left: 0;
        border-width: 0 !important;
    }
}

.text-justify {
    text-align: justify; /* 关键属性 */
    text-align-last: left; /* 最后一行左对齐（更符合中文习惯）*/
}

.ourServiceBg {
    background-image: url("../images/new/网站首页-图片-压缩/我们的服务.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#ourServiceRow {
    padding-bottom: 10rem !important;
    padding-top: 10rem !important;
    color: white;
}

.ourServiceRow2 {
    padding-bottom: 5rem !important;
    padding-top: 25rem !important;
}

.blur-bg {
    backdrop-filter: blur(5px); /* 模糊程度 */
    background-color: rgba(255, 255, 255, 0.3); /* 半透明白底 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
}

.messageBg {
    background-image: url("../images/new/网站首页-图片-压缩/发送留言.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

.messageBg .container {
    position: relative;
    top: 10rem;
}

footer {
    margin-top: 20rem;
    background-image: url("../images/new/网站首页-图片-压缩/我们的服务.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

footer .container {
    padding-top: 10rem;
}

.accordion {
    --bs-accordion-btn-bg: var(--bs-gray-200)
}

.btn-cover:hover {
    background-color: #11237C !important;
}

.btn-cover2:hover {
    background-color: #11237C !important;
    color: #ffffff;
}

#myNavbar > ul > li > .dropdown-menu > li > .dropdown-item:hover {
    background-color: #11237C !important;
    color: #ffffff !important;
}

.span-cover:hover {
    color: #0259C1 !important;
    cursor: pointer !important;
}

.image-hover:hover .image-hover-img {
    opacity: 0.5 !important;
}

.image-hover:hover .image-hover-div {
    opacity: 0.8 !important;
    color: #0259C1;
}
.nav-link{
    font-weight: bold;
}
.nav-link-active{
    color: #0259C1 !important;
}

/* 通用 placeholder 样式 */
input::placeholder {
    color: #000000; /* 设置字体颜色 */
    font-size: 20px; /* 设置字体大小 */
    font-family: 'Source Han Sans', sans-serif;
}

/* 针对特定浏览器的兼容性 */
input::-webkit-input-placeholder { /* WebKit 浏览器 */
    color: #000000; /* 设置字体颜色 */
    font-size: 20px; /* 设置字体大小 */
    font-family: 'Source Han Sans', sans-serif;
}
input:-moz-placeholder { /* Firefox 4-18 */
    color: #000000; /* 设置字体颜色 */
    font-size: 20px; /* 设置字体大小 */
    font-family: 'Source Han Sans', sans-serif;
}
input::-moz-placeholder { /* Firefox 19+ */
    color: #000000; /* 设置字体颜色 */
    font-size: 20px; /* 设置字体大小 */
    font-family: 'Source Han Sans', sans-serif;
}
input:-ms-input-placeholder { /* IE 10-11 */
    color: #000000; /* 设置字体颜色 */
    font-size: 20px; /* 设置字体大小 */
    font-family: 'Source Han Sans', sans-serif;
}

textarea::placeholder {
    color: #000000; /* 设置字体颜色 */
    font-size: 20px; /* 设置字体大小 */
    font-family: 'Source Han Sans', sans-serif;
}

/* 针对特定浏览器的兼容性 */
textarea::-webkit-input-placeholder { /* WebKit 浏览器 */
    color: #000000; /* 设置字体颜色 */
    font-size: 20px; /* 设置字体大小 */
    font-family: 'Source Han Sans', sans-serif;
}
textarea:-moz-placeholder { /* Firefox 4-18 */
    color: #000000; /* 设置字体颜色 */
    font-size: 20px; /* 设置字体大小 */
    font-family: 'Source Han Sans', sans-serif;
}
textarea::-moz-placeholder { /* Firefox 19+ */
    color: #000000; /* 设置字体颜色 */
    font-size: 20px; /* 设置字体大小 */
    font-family: 'Source Han Sans', sans-serif;
}
textarea:-ms-input-placeholder { /* IE 10-11 */
    color: #000000; /* 设置字体颜色 */
    font-size: 20px; /* 设置字体大小 */
    font-family: 'Source Han Sans', sans-serif;
}