    img {
        width: 100%;
    }

    body {
        overflow: hidden; /* 禁用滚动条 */
    }
    
    .top {
        width: 100%;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 99;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 6vw 4vw;
        box-sizing: border-box;
    }

    /* .logo {
        width: 40%;
        margin: 0;
    } */

    .top-right {
        width: 30%;
    }

    .top-right .gift {
        width: 100%;
        margin-bottom: 3vw;
    }

    .top-right .contact {
        width: 100%;
    }
    
    .fixed-size {
        width: 100px;
        height: 100px;
      }
      
    .swiper {
        position: relative;
        width: 100%;
        height: 100vh;
        background: url(../images/bg4.jpg) top / cover no-repeat;
    }
    
    .swiper-slide {
        width: 100%;
        height: 100%;
        padding: 15vh 12px;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        flex-flow: column;
    }

    .banner {
        width: 100%; /* 设置宽度为100%以适应父元素 */
        max-width: 1200px; /* 设置最大宽度 */
        margin: -100px auto 10px; /* 顶部距离50px，底部保留20px，左右居中对齐 */
        overflow: hidden; /* 隐藏超出部分 */
    }
    
    
    .swiper-slide img {
        width: 100%; /* 图片宽度为100% */
        height: 80%; /* 高度自动，以保持图片的纵横比 */
        object-fit: cover; /* 避免图片变形 */
    }
    


    .swiper-slide >img:nth-child(1) {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        margin-top: 20px; 
    }

    .swiper-content {
        box-sizing: border-box;
        overflow: hidden;
    }

    .bottom {
        width: 100%;
        height: 15vh;
        position: fixed;
        right: 0;
        bottom: 0;
        z-index: 99;
        text-align: center;
        display: flex;
        align-items: center;
    }

    .bottom .btn {
        display: inline-block;
    }
    
    .bottom .btn .img-and,
    .bottom .btn .img-ios {
        width: 60%;
        margin: 2px 80px;
    }   
    
    .chat-container {
        width: 300px;
        height: 150px; /* 适合你的需求 */
        border: 1px solid #cccccc00;
        overflow: hidden;
        position: relative;
      }
      
      .chat-box {
        width: 100%;
        max-width: 500px; /* 限制聊天框的最大宽度 */
        height: 120px; /* 设置聊天框的固定高度 */
        overflow: hidden; /* 隐藏超出框的内容 */
        position: relative;
      }
      
      .messages {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        animation: scroll-up 15s linear infinite; /* 不间断滚动动画 */
      }
      
      .messages p {
        margin: 4px 0; /* 设置上下间距 */
        padding: 3px 14px; /* 内边距 */
        font-size: 14px;
        line-height: 1.4;
        color: #43c4b7; /* 文字颜色 */
        border: 1px solid #cccccc35; /* 边框颜色 */
        border-radius: 60px; /* 边框圆角，形成泡泡效果 */
        background: linear-gradient(145deg, #9259b55c, #754bc967); /* 渐变背景色 */
        box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), 
                    -4px -4px 8px rgba(225, 216, 216, 0.059); /* 阴影，形成立体感 */
        max-width: 100%; /* 设置消息的最大宽度 */
        word-wrap: break-word; /* 处理长单词的换行 */
        white-space: nowrap; /* 不换行 */
        display: inline-block;
      }
      
      @keyframes scroll-up {
        0% {
          transform: translateY(0); /* 开始位置 */
        }
        100% {
          transform: translateY(-50%); /* 向上滚动一半内容高度 */
        }
      }

      @keyframes swing-animation {
        15%, 45% {
          transform: rotate(3deg);
          transform-origin: 50% 100%; /* 从底部摆动 */
        }
        30% {
          transform: rotate(-3deg);
          transform-origin: 50% 100%;
        }
        60%, 100% {
          transform: rotate(0deg);
          transform-origin: 50% 100%;
        }
      }
      
      .hbimg {
        animation: swing-animation 1.5s infinite ease-in-out;
      }
      
      

      