
/* body {
     background-color: white;!important;
 }*/
.carousel-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.card {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}
.input-group {
    display: flex;
    margin-top: 10px;
}
.form-control {
    flex: 1;
    margin-right: 5px;
}
.chat-message {
    margin: 5px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}
.sent-message {
    background-color: green;
    color: white;
    text-align: right;
    margin-left: auto; /* 靠右显示 */
}

.received-message {
    background-color: lightgray;
    color: black;
    text-align: left;
    margin-right: auto; /* 靠左显示 */
}
#visitorChatContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px; /* 大屏幕宽度 */
    z-index: 1000;
    background-color: rgba(255, 255, 255, 1); /* 修改为1以确保不透明 */
    border: 1px solid #ccc;
    border-radius: 5px;
    display: none;
}

/* 媒体查询：屏幕宽度小于480px时 */
@media (max-width: 576px) {
    #visitorChatContainer {
        width: 100%; /* 手机屏幕宽度 */
        right: 0; /* 使其在手机屏幕上对齐 */
    }
}

.media {
    margin-bottom: 10px; /* 调整这里的值来增加间距 */
}
@media (max-width: 768px) {
    .mb3 {
        margin-bottom: 10px; /* 仅在手机屏幕上添加底部间距 */
    }
}
.carousel-caption0 {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;

    transform: none; /* 不需要水平居中 */
    text-align: left; /* 文本靠左对齐 */
    padding: 2px; /* 可选，增加内边距 */
    background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    color: #fff;

}
#sb-container {
    position: relative;
}

#sb-overlay {
    display: none;
}

#sb-wrapper {
    position: relative;
    top: 0;
    left: 0;
}

#sb-loading {
    display: none;
}
.content-pushed {
    margin-top: 200px; /* 根据导航栏的高度调整 */
}
.card-body1 {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 0 1.75rem;
}
.container2 {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* slide 图片伸展开了。这个不能再改了。 height: 50 vh;*/
}

.text-section2 {
    width: 32%;
    padding: 10px;
}

.carousel2 {
    width: 68%;
}

@media (max-width: 480px) {
    .container2 {
        flex-direction: row;
        padding-left: 0;
        padding-right: 0;
        /* logo 和button 面包屑水平摆放了。*/
    }

    .text-section2 {
        width: 100%;
        text-align: center;
    }

    .carousel2 {
        width: 100%;
    }

    .carousel-caption2 {
        position: static;
        padding: 10px 2px 2px; /* 增加顶部内边距 */ /* 可选，增加内边距 */
        background: rgba(0, 0, 0, 0.5);
        color: white;
    }
}

@media (max-width: 768px) {
    .container2 {
        flex-direction: row;
        /* logo 和button 面包屑水平摆放了。*/
    }

    .text-section2 {
        width: 100%;
        text-align: center;
    }

    .carousel2 {
        width: 100%;
    }

    .carousel-caption2 {
        position: static;
        padding: 10px 2px 2px; /* 增加顶部内边距 */ /* 可选，增加内边距 */
        background: rgba(0, 0, 0, 0.5);
        color: white;
    }
    .media-body {
        padding-left: 0.5rem;
        padding-right: 0.5rem;

    }
}
.container3 {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /*// slide 图片伸展开了。这个不能再改了。 height: 50 vh;*/
}

.text-section {
    width: 0;
    padding: 1px;
}

.carousel {
    width: 100%;
}
.container-fluid {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
}
@media (max-width: 480px) {


    .container1 {
        flex-direction: row;
        padding-left: 1px;
        padding-right: 1px;
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        /* logo 和button 面包屑水平摆放了。*/
    }
    .navbar > .container,
    .navbar > .container-fluid {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-pack: justify;
        justify-content: space-between;
        padding-left: 5px;
        padding-right: 5px;
    }

    .container-fluid {
        flex-direction: row;
        padding-left: 0;!important;
        padding-right: 0;!important;
        /* logo 和button 面包屑水平摆放了。*/
    }
    .container-fluid1 {
        flex-direction: row;
        padding-left: 15px;!important;
        padding-right: 15px;!important;
        /* logo 和button 面包屑水平摆放了。*/
    }
    .text-section {
        width: 100%;
        text-align: center;
    }

    .carousel {
        width: 100%;
    }

    .carousel-caption {
        position: static;
        padding: 1px;
        background: rgba(0, 0, 0, 0.5);
        color: white;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: row;
        /* logo 和button 面包屑水平摆放了。*/
    }

    .text-section {
        width: 0;
        text-align: center;
    }

    .carousel {
        width: 100%;
    }

    .carousel-caption3 {
        position: absolute; /* 确保绝对定位 */
        bottom: 10px; /* 距离底部的距离 */
        left: 10px; /* 距离左边的距离 */
        transform: none; /* 不需要水平居中 */
        text-align: left; /* 文本靠左对齐 */
        padding: 10px; /* 可选，增加内边距 */
        background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
        color: white; /* 字体颜色 */
    }
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5); /* 使边框半透明 */
    }
    /*  .navbar-toggler-icon {
          background-image: url('css/hamburger-icon.svg');
          background-size: contain;
          width: 30px;
          height: 30px;
      }*/

}
@media (max-width: 768px) {
    /* 根据需要调整最大宽度 */
    .vertical-line {
        display: none;
    }
    .horizontal-line {
        display: none;
    }
}



/* 针对移动设备的样式 */
@media (max-width: 768px) {
    .navbar {
        height: auto; /* 自动适配内容高度 */
        padding: 10px; /* 增加内边距 */
    }

    .collapse.show {
        display: block !important; /* 确保展开状态显示正常 */
        /*     background-color: #343a40; /* 设置背景颜色 */
        /* color: #ffffff; /* 确保文字为白色 */
        width: 100%; /* 占满屏幕宽度 */
        /*  padding: 10px; /* 增加内边距 */
    }



    .navbar-toggler {
        z-index: 30; /* 确保切换按钮可见 */
    }
}
