﻿.home-services{ background:#fff; border-radius: 10px; padding: 20px; margin-top: 20px;}
.home-services dl{ text-align: center; border-right:1px solid #eee; width: 25%;}
.home-services dl:last-child{ border: none;}
.home-services dl dd{ margin-left: 18px;}

.home-newspro{ margin-top: 20px;}
.home-newspro-left {
  width: 260px;
  position: relative;
}

.home-newspro-left img {
  width: 100%;
  height: auto;
  border-radius: 10px 0 0 10px;
  display: block;
}

.home-newspro-left-info {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 333;
  color: #fff;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 35px 20px 30px;
}

.home-newspro-left-info h2 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
}

.home-newspro-left-info a {
  display: inline-block;
  color: #fff;
  border: 1px solid #fff;
  height: 36px;
  line-height: 34px;
  padding: 0 15px;
  border-radius: 18px;
}

.home-newspro-left-info a i {
  margin-left: 15px;
  font-size: 1.1rem;
}

.home-newspro-left-info a:hover {
  background: #fff;
  color: #053099;
}

.home-newspro-right{ width: calc(100% - 260px); height: auto; background: #fff; border-radius: 0 10px 10px 0; padding: 0 30px;}
.main_visual1{ width: 100%; height: 100%; position: relative; }
.main_visual1 .owl-carousel,.main_visual1 .owl-stage-outer,.main_visual1 .owl-stage,.main_visual1 .owl-carousel .owl-item{width: 100%;height: 100% !important;}
.main_visual1 .owl-carousel .item{width: 100%;height: 100%; text-align: center; padding: 30px 0;}
.main_visual1 .owl-carousel .item img{ width: 100%; max-width: 160px; height: auto;  }
.main_visual1 .owl-carousel .item p{ font-size: 1.1rem; font-weight: 500; height: 40px; line-height: 40px; overflow: hidden;}
.main_visual1 .owl-carousel .item  em{ display: block; margin-top: 10px; height: 42px; line-height: 42px; font-size: 1.1rem; background: #3095F0;border-radius: 6px; color: #fff;}
.main_visual1 .owl-carousel .item:hover em{ background: #053099;}
.main_visual1 .owl-prev,.main_visual1 .owl-next{width:30px;height: 46px; background-repeat: no-repeat; background-position: center center; position: absolute;top: 50%;margin-top: -23px;text-indent: -999px; overflow: hidden;}
.main_visual1 .owl-prev{background-image: url(../images/PL.png);left: -30px;}
.main_visual1 .owl-next{background-image: url(../images/PR.png);right:-30px; }


.main_visual1 .owl-dots{ display: none; text-indent: -9999em;}

.home-title{ height: 38px; line-height: 38px; margin-bottom: 20px;}
.home-title h2{ font-size: 1.8rem;  position: relative; z-index: 666;}
.home-title h2::after{ content: ""; display: inline-block; z-index: -666; top: -10px; left: -7px; position: relative; width: 22px; height: 22px; background: url(../images/hometitle.png) no-repeat;}
.home-title a{ font-size: 1rem;}
.home-title a i{ margin-left: 10px; font-size: 1.2rem;}





.home-fast{ padding: 20px; margin-top: 20px; margin-bottom: 20px; background: linear-gradient( 180deg, #F5FBFF 0%, #FFFFFF 100%); border-radius: 10px;}

.home-fast-box{ width: 100%;}
.home-fast-feedback{ width: 447px; height: auto; padding: 30px; border-radius: 10px; background: url(../images/homefedbg.jpg) no-repeat; background-size:cover;}
.home-fast-feedback h3{ font-size: 1.4rem; line-height: 26px; margin-bottom: 24px;}
.home-fast-feedback-list{ width: 100%; gap: 13px; grid-template-columns: repeat(1, 1fr); /* 3 列 */  display: grid;}
.home-fast-feedback-list dl{ background: #FFFFFF;height: 56px;border-radius: 6px; padding: 0 20px;}
.home-fast-feedback-list dl dt{ width: 80px; font-size: 1rem; }
.home-fast-feedback-list dl dd{ width: calc(100% - 80px);}
.home-fast-feedback-list dl dd input{ width: 100%; height: auto; border: none; background: none;}
.home-fast-feedback-list button{ cursor: pointer; width: 100%; height: 56px; border: none; font-size: 1rem; color: #FFFFFF; background: #3095F0;border-radius: 6px;}
.home-fast-feedback-list button:hover{ background: #053099;}



.home-fast-products{ width: calc(100% - 482px);}
.home-fast-products h3{ font-size: 1.4rem; line-height: 26px; margin-bottom: 17px;}
.home-fast-products-list{ width: 100%; gap: 10px; grid-template-columns: repeat(3, 1fr); /* 3 列 */  display: grid;}
.home-fast-products-list a{ display: block; width: 100%; height: 28px; line-height: 28px; overflow: hidden; padding-left: 30px; background: url(../images/hot.png) no-repeat;}

.home-redproducts{ margin-bottom: 20px;}
.home-redproducts-left{ width: 260px; height: auto; position: relative;}
.home-redproducts-left img{ width: 100%; height: auto; border-radius: 10px 0 0 10px;}
.home-redproducts-left-info{ position: absolute; left: 0; bottom: 0; z-index: 333; text-align: center; width: 100%; padding: 65px 50px;}
.home-redproducts-left-info h3{ color: #FFFFFF; font-size: 2rem; line-height: 56px;}
.home-redproducts-left-info p{ font-size: 1rem; color: #fff; line-height: 32px;}


.home-redproducts-right{ width: calc(100% - 260px); background: #FFFFFF; border-radius:0 10px 10px 0; padding: 20px; gap: 20px; grid-template-columns: repeat(4, 1fr); /* 3 列 */  display: grid;}
.home-redproducts-right .home-redproitem{transition: transform .22s ease;  position: relative; width: 100%; text-align: center; border:1px solid #eee; padding: 20px;}
.home-redproducts-right .home-redproitem em{ display: block; width: 47px; height: 32px; background: url(../images/hot1.png) no-repeat; position: absolute; left: 20px; top: 20px;}
.home-redproitem-pic{ width: 100%; }
.home-redproitem-pic img{width: 100%; max-width: 160px; height: auto; }
.home-redproitem-info{ width: 100%;}
.home-redproitem-info a{ display: block; font-size: 1.1rem; height: 32px; line-height: 32px; overflow: hidden; font-weight: bold;}
.home-redproitem-info p{ height: 26px; line-height: 26px; overflow: hidden;}
.home-redproitem:hover{transform: translateY(-5px);box-shadow: 0 12px 30px rgba(0,0,0,.08);}


.home-brand{margin-bottom: 20px;  gap: 13px; grid-template-columns: repeat(6, 1fr); /* 3 列 */  display: grid;}
.home-brand a{ display: block; width: 100%; background: #FFFFFF; border-radius: 6px; padding:15px 25px;}
.home-brand a img{ width: 100%; height: auto;}
.home-brand a:hover{transform: translateY(-5px);box-shadow: 0 12px 30px rgba(0,0,0,.08);}


.home-blog{ width: 100%; padding: 40px 0; background: #eef6ff;}

.home-blog-list{gap: 20px; grid-template-columns: repeat(2, 1fr); /* 3 列 */  display: grid;}
.home-blog-item{transition: transform .22s ease; cursor: pointer; width: 100%; background: #FFFFFF; padding: 20px 20px 20px 0; border-radius: 10px;}
.home-blog-item-time{ width: 20%; text-align: center; border-right:1px solid #eee;}
.home-blog-item-time p{ font-size: 1rem; line-height: 32px; margin-top: 12px;}
.home-blog-item-time b{ display: block; font-size: 2.2rem; line-height: 60px;}


.home-blog-item-info{ width: 40%; padding: 0 15px;}
.home-blog-item-info a.bloglinks1{ display: block; font-size: 1.1rem; font-weight: bold; height: 32px; line-height: 32px; overflow: hidden; margin-bottom: 10px;}
.home-blog-item-info p{ color: #666; line-height: 22px; height: 66px; overflow: hidden;}
.home-blog-item-info a.bloglinks2{ display: block;  height: 32px; line-height: 32px; overflow: hidden; margin-top: 20px;}
.home-blog-item-info a.bloglinks2 i{ margin-left: 10px; font-size: 1.2rem;}
.home-blog-item-pic{ width: 40%; height: auto; overflow: hidden; border-radius: 10px;}
.home-blog-item-pic img{ width: 100%; height: auto; border-radius: 10px;}

.home-blog-item:hover{transform: translateY(-5px);box-shadow: 0 12px 30px rgba(0,0,0,.08);}
.home-blog-item:hover img{  transform: scale(1.06);}


/* 必填星号 */
.home-fast-feedback-list dl dt em{
    color:#ff3b30;
    font-style:normal;
    margin-left:2px;
}

/* 输入错误状态 */
.home-fast-feedback-list dl.rfq-field-error{
    border:1px solid #ff4d4f;
    box-shadow:0 0 0 3px rgba(255,77,79,.08);
}

.home-fast-feedback-list dl.rfq-field-error input::placeholder{
    color:#ff4d4f;
}

/* 弹窗遮罩 */
.rfq-popup-mask,
.rfq-loading-mask{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.45);
    z-index:99999;
    display:none;
}

/* 提示弹窗 */
.rfq-popup-box{
    width:360px;
    max-width:calc(100% - 40px);
    background:#fff;
    border-radius:14px;
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
    text-align:center;
    padding:35px 28px 28px;
    box-shadow:0 18px 50px rgba(0,0,0,.18);
    animation:rfqPop .22s ease-out;
}

@keyframes rfqPop{
    from{
        opacity:0;
        transform:translate(-50%, -48%) scale(.96);
    }
    to{
        opacity:1;
        transform:translate(-50%, -50%) scale(1);
    }
}

.rfq-popup-icon{
    width:58px;
    height:58px;
    line-height:58px;
    border-radius:50%;
    margin:0 auto 16px;
    background:#3095F0;
    color:#fff;
    font-size:30px;
    font-weight:bold;
    font-family:Arial, sans-serif;
}

.rfq-popup-icon.error{
    background:#ff4d4f;
}

.rfq-popup-icon.success{
    background:#20b26b;
}

.rfq-popup-icon.warning{
    background:#ff9800;
}

.rfq-popup-box h3{
    font-size:20px;
    color:#222;
    margin:0 0 10px;
    font-weight:bold;
}

.rfq-popup-box p{
    font-size:15px;
    color:#666;
    line-height:24px;
    margin:0 0 24px;
}

.rfq-popup-box a{
    display:inline-block;
    min-width:120px;
    height:42px;
    line-height:42px;
    background:#3095F0;
    color:#fff;
    border-radius:22px;
    text-decoration:none;
    font-size:15px;
}

.rfq-popup-box a:hover{
    background:#053099;
    color:#fff;
}

/* Loading */
.rfq-loading-box{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
    width:220px;
    background:#fff;
    border-radius:14px;
    padding:30px 20px;
    text-align:center;
    box-shadow:0 18px 50px rgba(0,0,0,.18);
}

.rfq-loading-box span{
    display:block;
    width:42px;
    height:42px;
    border:4px solid #e8f3ff;
    border-top-color:#3095F0;
    border-radius:50%;
    margin:0 auto 15px;
    animation:rfqLoading 0.8s linear infinite;
}

@keyframes rfqLoading{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

.rfq-loading-box p{
    margin:0;
    color:#333;
    font-size:15px;
}

/* 提交按钮禁用 */
#btnGoodsSubmit.disabled,
#btnGoodsSubmit:disabled{
    opacity:.65;
    cursor:not-allowed;
}

@media (max-width: 768px) {

.home-services{ display: none;}
.home-newspro{ margin-top: 10px;}
.home-newspro-left{ display: none;}
.home-newspro-right{ width: 100%;}
.main_visual1 .owl-carousel .item p{ font-size: 0.8rem;}
.main_visual1 .owl-carousel .item em{ font-size: 0.9rem;}

 .home-title{
    height: auto;
    line-height: normal;
    margin-bottom: 15px;
  }

  .home-title h2{
    font-size: 1.4rem;
    line-height: 1.4;
  }

  .home-title h2::after{
    width: 18px;
    height: 18px;
    background-size: contain;
    top: -6px;
    left: -6px;
  }

  .home-title a{
    font-size: 0.9rem;
  }

  .home-title a i{
    margin-left: 6px;
    font-size: 1rem;
  }


  /* 快速询盘 + 热门产品 */
  .home-fast{
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
  }

  .home-fast-box{
    display: block;
  }

  .home-fast-feedback{
    width: 100%;
    padding: 20px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .home-fast-feedback h3,
  .home-fast-products h3{
    font-size: 1.2rem;
    line-height: 24px;
    margin-bottom: 15px;
  }

  .home-fast-feedback-list{
    gap: 10px;
  }

  .home-fast-feedback-list dl{
    height: 48px;
    padding: 0 15px;
  }

  .home-fast-feedback-list dl dt{
    width: 62px;
    font-size: 0.9rem;
  }

  .home-fast-feedback-list dl dd{
    width: calc(100% - 62px);
  }

  .home-fast-feedback-list button{
    height: 48px;
    font-size: 0.95rem;
  }

  .home-fast-products{
    width: 100%;
  }

  .home-fast-products-list{
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .home-fast-products-list a{
    height: 30px;
    line-height: 30px;
    padding-left: 28px;
    font-size: 0.92rem;
  }


  /* 红色产品推荐模块 */
  .home-redproducts-left{ display: none;}
  .home-redproducts,
    .home-redproducts * {
      box-sizing: border-box;
    }
  
    .home-redproducts {
      width: 100%;
      overflow: hidden;
    }
  
    .home-redproducts-right {
      width: 100%;
      max-width: 100%;
      padding: 10px;
      gap: 10px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      overflow: hidden;
    }
  
    .home-redproducts-right .home-redproitem {
      width: 100%;
      min-width: 0;
      padding: 12px 8px;
      overflow: hidden;
    }
  
    .home-redproitem-pic {
      width: 100%;
      text-align: center;
      overflow: hidden;
    }
  
    .home-redproitem-pic img {
      max-width: 100%;
      width: auto;
      height: auto;
    }
  
    .home-redproitem-info {
      width: 100%;
      min-width: 0;
      overflow: hidden;
    }
  
    .home-redproitem-info a {
      width: 100%;
      display: block;
      font-size: 0.95rem;
      height: 28px;
      line-height: 28px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  
    .home-redproitem-info p {
      width: 100%;
      font-size: 0.85rem;
      height: 24px;
      line-height: 24px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }


  /* 品牌列表 */
  .home-brand{
    margin-bottom: 15px;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
  }

  .home-brand a{
    padding: 12px 15px;
    border-radius: 6px;
  }


  /* 新闻博客 */
  .home-blog{
    padding: 25px 0;
  }

  .home-blog-list{
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }

  .home-blog-item{
    display: block;
    padding: 15px;
    border-radius: 8px;
  }

  .home-blog-item-time{
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-align: left;
  }

  .home-blog-item-time p{
    display: inline-block;
    font-size: 0.9rem;
    line-height: 24px;
    margin-top: 0;
    margin-right: 8px;
  }

  .home-blog-item-time b{
    display: inline-block;
    font-size: 1.4rem;
    line-height: 28px;
  }

  .home-blog-item-info{
    width: 100%;
    padding: 0;
  }

  .home-blog-item-info a.bloglinks1{
    font-size: 1rem;
    height: auto;
    line-height: 24px;
    max-height: 48px;
    margin-bottom: 8px;
  }

  .home-blog-item-info p{
    font-size: 0.9rem;
    line-height: 22px;
    height: 44px;
  }

  .home-blog-item-info a.bloglinks2{
    height: 28px;
    line-height: 28px;
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .home-blog-item-info a.bloglinks2 i{
    margin-left: 6px;
    font-size: 1rem;
  }

  .home-blog-item-pic{
    width: 100%;
    margin-top: 12px;
    border-radius: 8px;
  }

  .home-blog-item-pic img{
    border-radius: 8px;
  }
    .rfq-popup-box {
        width: 320px;
        padding: 30px 22px 24px;
    }

        .rfq-popup-box h3 {
            font-size: 18px;
        }

        .rfq-popup-box p {
            font-size: 14px;
        }
}