/* 首页大图 */
/* 移动端响应式样式 - 最大宽度768px */
@media (min-width: 768px) {
.banner{
    width: 100%;
    height: calc(961/1889 * 100vw); /* 约51.77vw */
}
}
.banner{
    overflow: hidden;
}
.banner img{
    width: 100%;
    height: 90%;
    margin-top: 100px;
}

.banner span{
    position: relative;
    bottom: 564px;
    left: 8%;
    font-family: SourceHanSansCN, SourceHanSansCN;
    font-weight: 300;
    font-size: 42px;
    color: #FFFFFF;
    line-height: 57px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    width: 38%;
    display: flex;
    word-wrap: break-word;
    white-space: normal;
}
.title-cn { width: 303px; }
.title-en { width: 449px; }

.banner button{
    width: 170px;
    height: 48px;
    position: relative;
    bottom: 47%;
    left: 8%;
    background: #c7c8ca;
    border-radius: 5px 5px 5px 5px;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
}
.banner button:hover{
    cursor: pointer;
}
.product_ranges{
  width: 100%;
}
/* -------------------------------------------------------------------------------------------------------------------------- */


/* 认证部分 */
.renzheng{
    width: 78%;
    height: 221px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;

}
.renzheng_item{
    width: 23%;
    height: 221px;
}
.renzheng_item img{
    float: left;
    padding-top: 80px;
}
.renzheng_item_content{
    padding: 70px 0 0 80px;
}
.renzheng_item span{
    font-family: 'Poppins-Bold';
    font-weight: bold;
    font-size: 22px;
    color: #222254;
    font-style: normal;
    text-transform: none;
}
.renzheng_item_content_text{
    width: 100%;
    font-family: ArialMT;
    font-size: 16px;
    color: #222254;
    line-height: 25px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    padding-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------------------------------------------------------------------------------------------------------------- */

/* 适用模型 */
.Applicable_Models{
    width: 100%;
    height: 640px;
    background-color: #f1f3f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}
.Applicable_Models h1{
    padding: 10px 0 0px 0;
    font-family: 'Poppins-Black';
    font-weight: 900;
    font-size: 48px;
    color: #222254;
    text-align: left;
    font-style: normal;
    text-transform: none;
}
.Applicable_Models_img{
    width: 78%;
    height: 688px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 适用模型轮播 - 动画效果 */
.Applicable_Models_carousel {
    width: 78%;
    height: 381px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.carousel-track {
    height: 374px;
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-track img {
    width: 194px;
    height: 110px;
    object-fit: cover;
    margin: 0 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.carousel-track img:hover {
    transform: scale(1.05);
    z-index: 10;
    cursor: pointer;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 鼠标悬停时暂停动画 */
.Applicable_Models_carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* -------------------------------------------------------------------------------------------------------------------------- */

/* 产品范围 */
.product_ranges{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}
.product_ranges h1{
    padding: 10px 0 0px 0;
    font-family: Poppins-Black;
    font-weight: 900;
    font-size: 48px;
    color: #222254;
    text-align: left;
    font-style: normal;
    text-transform: none;
}
.product_ranges_content_carousel img{
    width: clamp(222px, calc(222px + 121 * (100vw - 1300px)/620), 343px);
    /* height: 343px; */
}
.product_ranges_content{
    width: 85%;
    height: 550px;
    margin: 0 auto;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product_ranges_content_carousel{
    width: 1481px;
    height: 468px;
    display: flex;
    align-items: center;
    overflow: hidden; /* 隐藏超出容器的内容 */
}
#carouselContainer{
    width: 96.7%;
    height: 468px;
    display: flex;
    align-items: center;
    transition: transform 0.5s ease-in-out;
    transform: translateX(0);
    justify-content: space-between;
    align-items: center;transform: translateX(0px);
}
#carouselContainer .product_ranges_content_carousel_item{
   width: clamp(222px, calc(222px + 121 * (100vw - 1300px)/620), 343px);
    /* height: 425px; */
    border: 1px solid #e6e6e6;
    border-radius: 10px 10px 10px 10px;
    margin-right: 31px;
    span{
        width: 220px;
        font-family: Poppins-Bold;
        font-weight: bold;
        font-size: 22px;
        color: #222254;
        text-align: center;
        font-style: normal;
        text-transform: none;
    }
}
.product_ranges_content_carousel_item div{
    border-radius: 0px 0px 10px 10px;
    background-color: #e5e5e5;
    color: #000000;
     width: clamp(222px, calc(222px + 121 * (100vw - 1300px)/620), 343px);
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 添加鼠标悬停效果 */
#carouselContainer div:hover {
    transform: scale(1.02); /* 放大1.1倍 */
    transition: transform 0.4s ease;
    z-index: 10;
}
/* 悬停时修改内部div背景颜色为红色 */
#carouselContainer div:hover > div {
    background-color: #e60012 !important;
    span{
        color: #ffffff;
    }
}
.carousel-prev-btn{
    position: relative;
    right: 100px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    font-size: 30px;
    background-color: #ffffff;
    color: #e60012;
    border: 1px solid #e5e7ea;
    border-radius: 50%;
    cursor: pointer;
}
.carousel-next-btn {
    position: relative;
    left: 100px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    font-size: 30px;
    background-color: #ffffff;
    color: #e60012;
    border: 1px solid #e5e7ea;
    border-radius: 50%;
    cursor: pointer;
}
/* -------------------------------------------------------------------------------------------------------------------------- */

/* 关于我们 */
.About_Us{
    width: 100%;
    height: 750px;
    background-image: url('/static/public/images/图层 757.png');
    background-size: 100% 100%;
}
.About_Us_content{
    width: 78%;
    height: 750px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}
.About_Us_content_text{
    width: 48.7%;
    height: 40%;
}
.About_Us_content_text h1{
    margin: -100 0 30px 0;
    font-family: 'Poppins-Black';
    font-weight: 900;
    font-size: 48px;
    color: #222254;
    text-align: left;
    font-style: normal;
    text-transform: none;
}
.About_Us_content_text div{
    width: 90%;
    height: 343px;
    font-family: 'Poppins-Regular';
    font-weight: 400;
    font-size: 18px;
    color: #222254;
    line-height: 36px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    display: -webkit-box;

    -webkit-box-orient: vertical;
    overflow: hidden; /* 隐藏超出部分 */
}
.About_Us_content_text button{
    width: 210px;
    height: 50px;
    background: #E60012;
    border-radius: 25px 25px 25px 25px;
    margin-top: 41px;
    font-family: 'Poppins-Bold';
    font-weight: bold;
    font-size: 20px;
    color: #FFFFFF;
    line-height: 36px;
    text-align: center;
    font-style: normal;
    text-transform: none;
    border: none;
}
.About_Us_content_text button:hover{
    cursor: pointer;
}
.About_Us_content_img{
   /* width: 60.7%; */
    height: 54%;
    margin-bottom: 100px;
}
/* -------------------------------------------------------------------------------------------------------------------------- */


/* 消息上传 */
.Online_Message{
    width: 100%;
    height: 647px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}
.Online_Message h1{
    height: 54px;
    font-family: 'Poppins-Black';
    font-weight: 900;
    font-size: 48px;
    color: #222254;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-bottom: 0px;
}
.Online_Message p{
    font-family: SourceHanSansCN, SourceHanSansCN;
    font-weight: 400;
    font-size: 20px;
    color: #222254;
    line-height: 29px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-bottom: 40px;
}
.Online_Message_input{
    width: 78%;
    height: 365px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* 添加换行属性 */
}
.Online_Message_input input{
    width: 31.4%;
    height: 58px;
    background: #FFFFFF;
    border-radius: 5px 5px 5px 5px;
    border: 1px solid #222254;
    opacity: 0.5;
}
.Online_Message_input textarea{
    width: 100%;
    height: 160px;
    background: #FFFFFF;
    border-radius: 5px 5px 5px 5px;
    border: 1px solid #222254;
    opacity: 0.5;
}
.Online_Message_input button{
    width: 204px;
    height: 58px;
    background: #E60012;
    border-radius: 29px 29px 29px 29px;
    font-family: 'Poppins-Bold';
    font-weight: bold;
    font-size: 20px;
    color: #FFFFFF;
    line-height: 36px;
    font-style: normal;
    text-transform: none;
    border: none;
    margin-left: 43.2%;
}
.Online_Message_input button:hover{
    cursor: pointer;
}
/* 消息上传 placeholder样式 */
.Online_Message_input input::placeholder,
.Online_Message_input textarea::placeholder {
    color: #666666;
    font-family: 'Poppins-Regular';
    font-size: 16px;
    opacity: 0.8;

}

.Online_Message_input input:focus::placeholder,
.Online_Message_input textarea:focus::placeholder {
    color: #999999;
    opacity: 0.6;
}



/* ====================================手机端================================================ */
/* 移动端响应式样式 - 最大宽度768px */
@media (max-width: 768px) {
  /* 首页大图 - 优化居中 */
  .banner {
    /* height: 250px; */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .banner img {
    height: 140px;
    object-fit: cover;
    width: 100%;
   height: 50%;
        margin-top: 53px;
  }

  .banner span {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    text-align: center;
    width: 90%;
    line-height: 1.4;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  }

  .banner button {
    position: absolute;
    bottom: 282px;
    left: 49%;
    transform: translateX(-50%);
    width: 160px;
    height: 44px;
    font-size: 16px;
    background: rgba(230, 0, 18, 0.9);
    border: none;
    border-radius: 25px;
    color: #FFFFFF;
    font-weight: 500;
  }

  /* 认证部分 - 优化对齐 */
  .renzheng {
    width: 100%;
    height: auto;
    flex-direction: column;
    padding: 0px 0px;
    gap: 25px;
  }

  .renzheng_item {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  .renzheng_item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    padding-top: 30px;
  }

  .renzheng_item span {
    font-size: 18px;
    font-weight: 600;
    color: #222254;
    margin-bottom: 10px;
  }
  .renzheng_item_content{
    padding: 0px 0 0 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .renzheng_item_content_text {
    text-align: center;
    width: 69%;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
  }

  /* 适用模型 - 优化布局 */
  .Applicable_Models {
    height: auto;
  }

  .Applicable_Models h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 25px;
    color: #222254;
  }

  .Applicable_Models_carousel {
    width: 100%;
    height: 222px;
  }

  .carousel-track {
    /* height: 146px; */
    align-items: center;
  }

  .carousel-track img {
    width: 140px;
    height: 80px;
    margin: 0 12px;
    object-fit: contain;
  }

  /* 产品范围 - 优化对齐 */
  .product_ranges {
   display: block !important;
  }

  .product_ranges h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: -30px;
    color: #222254;
  }

  .product_ranges_content {
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 20px;
  }

  .product_ranges_content_carousel {
    width: 100%;
    height: auto;
    overflow-x: auto;
     position: relative;
    -webkit-overflow-scrolling: touch;
    overflow-x: visible;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
  }
  .carousel-prev-btn {
    display: none;
  }
  .carousel-next-btn{
    display: none;
  }
  #carouselContainer {
    scroll-padding: 0 5%;
  }
  .product_ranges_content_carousel::-webkit-scrollbar {
    /* display: none; */
  }

  #carouselContainer {
    display: flex;
    gap: 20px;
    padding: 0 20px;
  }

  .product_ranges_content_carousel_item {
     width: 85vw;
    height: auto;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .product_ranges_content_carousel_item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .product_ranges_content_carousel_item div {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 15px;
  }

  .product_ranges_content_carousel_item span {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #222254;
    line-height: 1.3;
  }

  /* 关于我们 - 优化布局 */
  .About_Us {
    height: auto;
    background-size: cover;
  }

  .About_Us_content {
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 30px;
    margin-top: 10px;
  }

  .About_Us_content_text {
    width: 78%;
    height: auto;
    text-align: center;
  }

  .About_Us_content_text h1 {
        margin: 0 0 30px 0;
    font-size: 28px;
    margin-bottom: 0px;
    color: #222254;
    text-align: center;
    margin-top: 20px;
  }

  .About_Us_content_text div {
    width: 100%;
    height: auto;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
     display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6; /* 保持原有行高 */
    max-height: calc(1.6em * 10); /* 10行高度 */
  }


  .About_Us_content_text button {
    margin: 0 auto;
  }

  .About_Us_content_img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  /* 消息上传 - 优化表单 */
  .Online_Message {
    height: auto;
  }

  .Online_Message h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
    color: #222254;
  }

  .Online_Message p {
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
    color: #666;
    margin-bottom: 30px;
  }

  .Online_Message_input {
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 15px;
  }

  .Online_Message_input input,
  .Online_Message_input textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
  }

  .Online_Message_input textarea {
    height: 120px;
    resize: vertical;
  }

  .Online_Message_input button {
    width: 100%;
    height: 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 25px;
    margin: 10px 0 0 0;
  }
}

/* 小屏幕手机样式 - 最大宽度480px */
@media (max-width: 480px) {
  .banner span {
    font-size: 25px;
  }

  .banner button {
    width: 140px;
    height: 40px;
    font-size: 14px;
  }

  .renzheng {
    gap: 20px;
  }
    .product_ranges{
  }

  .renzheng_item img {
    width: 50px;
    height: 50px;
  }

  .renzheng_item span {
    font-size: 16px;
  }

  .renzheng_item_content_text {
    font-size: 13px;
    padding-top: 0;
  }


   .product_ranges{
    display: none;
   }
  .Applicable_Models h1,
  .product_ranges h1,
  .About_Us_content_text h1,
  .Online_Message h1 {
    font-size: 24px;
  }

  .carousel-track img {
    width: 110px;
    height: 65px;
    margin: 0 8px;
  }

  .product_ranges_content_carousel_item {
    width: 250px;
    height: 320px;
  }

  .product_ranges_content_carousel_item img {
    height: 220px;
  }

  .product_ranges_content_carousel_item div {
    height: 100px;
  }

  .product_ranges_content_carousel_item span {
    font-size: 15px;
  }

  .About_Us_content_text div {
    font-size: 15px;
  }

  .Online_Message_input input,
  .Online_Message_input textarea {
    padding: 12px;
    font-size: 15px;
  }

  .Online_Message_input button {
    height: 45px;
    font-size: 16px;
  }
}

/* 横屏模式适配 */
@media (max-width: 768px) and (orientation: landscape) {
  .banner {
    height: 300px;
  }

  .banner img {
    height: 300px;
  }

  .banner span {
    font-size: 20px;
  }

  .nav-links {
    height: calc(100vh - 70px);
    padding: 20px;
  }
}
