/* styles.css */

.carousel {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    width: 100%;
    height: auto;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    padding: 1rem;
    cursor: pointer;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-control-prev-icon {
    background-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 16 16\' fill=\'%23fff\'%3E%3Cpath d=\'M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z\'/%3E%3C/svg%3E');
}

.carousel-control-next-icon {
    background-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 16 16\' fill=\'%23fff\'%3E%3Cpath d=\'M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z\'/%3E%3C/svg%3E');
}









.company-info {
    display: flex;
    /* 使用 Flexbox 布局 */
    justify-content: space-between;
    /* 子元素均匀分布 */
    max-width: 80%;
    margin: 0 auto;
    /* 水平居中对齐 */
    padding: 20px;
    /* 上下内外边距为 20px */
    border-bottom: 1px solid #ccc;
    /* 下方加一条浅灰色的边框 */
}

/* 设置信息块的样式 */
.info-block {
    display: flex;
    /* 使用 Flexbox 布局 */
    width: 25%;
    flex-direction: column;
    /* 子元素垂直排列 */
    /* align-items: left; 文字水平居左 */
    text-align: left;

    /* 宽度为总宽度的四分之一减去 20px */
    padding: 20px 0;
    /* 左右内边距为 20px */
    position: relative;
    /* 为绝对定位提供参照物 */
    padding-left: 9%;
}
.info-block:nth-child(4){
    padding-left:8%;
}
/* 在每个信息块之间添加竖线 */
.info-block::before {
    content: '';
    /* 创建一个伪元素 */
    position: absolute;
    /* 绝对定位 */
    left: 0%;
    /* 竖线位于中心 */
    top: 50%;
    /* 竖线位于中心 */
    transform: translate(-50%, -50%);
    /* 精确地放在中心 */
    width: 1px;
    /* 竖线宽度为 1px */
    height: 100%;
    /* 竖线高度等于父元素的高度 */
    background-color: #ccc;
    /* 竖线的颜色 */
    display: block;
    /* 显示为块级元素 */
}

/* 不要在第一个信息块中显示竖线 */
.info-block:first-child::before {
    display: none;
}

/* 设置标题（中文部分）的样式 */
.info-block h3 {
    color: #7f7f7f;
    /* 字体颜色 */
    font-weight: bold;
    /* 加粗 */
    font-size: 20px;
    /* 字号为 14px */
}

/* 设置数字（英文部分）的样式 */
.info-block p {
    color: #293543;
    /* 字体颜色 */
    font-size: 2.8rem;
    /* 字号为 24px */
    line-height: 1.2;
    /* 行高为 1.2 倍 */
}

.info-block p span.plus-sign {
    display: inline-block;
    vertical-align: top;
    font-size: 30px;
}

.info-block p span.tons {
    display: inline-block;
    vertical-align: bottom;
    font-size: 30px;
}

/* 在数字后添加“+”符号 */
.info-block p::after {
    /* content: '+'; */
    margin-left: 5px;
    /* “+”符号距离数字 5px */
}


@media screen and (max-width:800px) and (min-width:300px) {
    .container {
        padding: 0px 20px;
    }

    .products-title {
        padding: 0px 20px;
    }

    .grid {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .products-title {
        margin-left: 0rem;
    }

    .is-max-widescreen {
        margin-left: 0rem;
    }

    .info-block {
        padding: 1rem;
        width: calc(25% - 20px);
    }

    .company-info .info-block h3 {
        font-size: 16px;
    }

    .company-info .info-block p {
        font-size: 30px;
    }

    .info-block p span.plus-sign {
        font-size: 2rem;
    }

    .info-block p span.tons {
        font-size: 1.8rem !important;
    }

}

@media screen and (max-width:1100px) and (min-width:800px) {
    .container {
        padding: 0px 20px;
    }

    .products-title {
        padding: 0px 20px;
    }

    .grid {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .products-title {
        margin-left: 7rem;
    }

    .is-max-widescreen {
        margin-left: 7rem;
    }

    .info-block {
        padding: 1rem;
        width: calc(25% - 20px);
    }

    .company-info .info-block h3 {
        font-size: 16px;
    }

    .company-info .info-block p {
        font-size: 30px;
    }

    .info-block p span.plus-sign {
        font-size: 2rem;
    }

    .info-block p span.tons {
        font-size: 1.8rem !important;
    }

}

@media screen and (max-width:768px) and (min-width:450px) {
    .company-info .info-block h3 {
        font-size: 12px;
    }

    .company-info .info-block p {
        font-size: 26px;
    }
}