.mobile-nav-list a {
  color: #9B9B9B;
}

.nav-list a {
  color: #9B9B9B;
  margin-bottom: 15px;
}
.product-item {
  line-height: 0;
  font-size: 0;
}
.product-item > div {
  background: #E8E8E8;
  position: relative;
}
.product-item > div > img.homekit {
  position: absolute;
  right: 20px;
  top: 20px;
  height: 40px;
  object-fit: contain;
  object-position: top right;
}
.product-item > div > img.if {
  position: absolute;
  width: 40px;
  right: 20px;
  top: 20px;
  object-fit: contain;
  object-position: top right;
}
.product-item > div > img.two {
  /* bottom: 20px; */
  top: 80px;
}
.product-item > div:hover {
  transition: background-color 0.5s ease;
}
#home-security .product-item > div:hover {
  /*蓝色*/
  background: #D5E2F1;
}
#comfortable-environment .product-item > div:hover {
  /*绿色*/
  background: #D4E8E4;
}
#lighting-management .product-item > div:hover {
  /*黄色*/
  background: #F3E7C0;
}
#energy-saving .product-item > div:hover {
  /*蓝色*/
  background: #D5E2F1;
}
#intelligent-control .product-item > div:hover {
  /*绿色*/
  background: #D4E8E4;
}
#voice-control .product-item > div:hover {
  /*黄色*/
  background: #F3E7C0;
}
.product-item img {
  display: block;
  border: none;
}
/*导航底部选中底部下划线*/
.nav-list a:last-child {
  border-bottom: 1px solid #9B9B9B;
}
a img {
  border: none;
}

/* x > 768 */
@media screen and (min-width: 768px) {
  .nav-logo a {
    color: #9B9B9B;
  }
  .nav-sub-wrap {
    width: 100%;
    height: 50px;
    background: #E4E4E4;
  }
  .nav-sub {
    width: 1320px;
    margin: 0 auto;
    line-height: 50px;
  }
  .nav-sub div {
    margin-left: 57px;
    padding: 0 10px;
    float: left;
    color: #464646;
    font-weight: 300;
    font-size: 16px;
    cursor: pointer;
    -webkit-user-select: none;
  }
  .nav-sub div:first-child {
    margin-left: 0;
  }
  .model {
    padding-bottom: 79px;
    margin-top: 20px;
    background: #fff;
  }
  .model > h1, .model > p {
    padding: 0 25px;
  }
  .model h1 {
    padding-top: 22px;
    color: #464646;
    font-size: 36px;
    line-height: 70px;
    font-weight: 600;
  }
  .model > p {
    margin-bottom: 25px;
    color: #7D7D7D;
    font-size: 16px;
    line-height: 32px;
    font-weight: 300;
  }
  .product-list > a {
    color: #000;
  }
  .product-list > a:first-child, .product-list > a:nth-child(4n + 1) {
    margin-left: 0
  }
  .product-item div img {
   width: 100%;
   height: 100%;
  }
  .product-item p:nth-child(2) {
    font-weight: 600;
    margin-top: 13px;
  }
  .product-item p:last-child {
    font-weight: 300;
    font-size: 12px;
    margin-bottom: 20px;
    color: #7D7D7D;
  }
  .top-btn {
    position: fixed;
    display: none;
    cursor: pointer;
    bottom: 20px;
    right: calc((100% - 1320px) / 2 + 20px);
  }
  .product-item {
    line-height: 0;
  }
}
/* x > 1320 */
@media screen and (min-width: 1320px) {
 .content {
   width: 1320px;
   margin: 0px auto;
   padding-top: 6px;
 }
 .model {
   padding-bottom: 79px;
   margin-top: 20px;
   background: #fff;
 }
 .product-list {
   width: 1266px;
   margin: 0 auto;
   overflow: hidden;
 }
 .product-item {
   width: 300px;
   margin: 22px 0 0 22px;
   float: left;
   background: #FAFAFA;
 }
 .product-item div img {
   width: 300px;
   height: auto;
 }
 .product-item p {
   padding: 0 20px;
   font-size: 14px;
   line-height: 26px;
   white-space: nowrap;
 }
}
@media screen and (min-width: 1536px) {
  .top-btn {
    right: calc((100% - 1320px) / 2 - 85px);
  }
}

 /*768 < x < 1320*/
@media screen and (min-width: 770px) and (max-width: 1319px) {
  .nav-sub div:first-child {
    margin-left: 20px;
  }
  .content {
    width: 100%;
    margin: 0px auto;
  }
  .model:first-child {
    margin-top: 0;
  }
  .product-list {
    width: calc((1266 / 1320) * 100%);
    margin: 0 auto;
    overflow: hidden;
  }
  .product-item {
    width: calc((298 / 1266) * 100%);
    margin-left: calc((22 / 1266) * 100%);
    float: left;
    background: #FAFAFA;
  }
  .product-item img {
    width: 100%;
  }
  .product-item p {
    padding: 0 calc((20 / 300) * 100%);
    font-size: 14px;
    line-height: 26px;
    white-space: nowrap;
  }

  .top-btn {
    position: fixed;
    bottom: 20px;
    right: 40px;
  }
}
@media screen and (min-width: 769px) and (max-width: 1080px) {
  .product-item p:last-child {
    height: 52px;
    margin-bottom: 10px;
  }
  .product-item p{
    white-space: pre-wrap;
  }
}

/*x < 768px*/
@media screen and (max-width: 768px) {
  .nav-sub-wrap {
    width: 100%;
    background: #E8E8E8;
  }

  .product-item > div > img.homekit {
    position: absolute;
    right: 10px;
    width: 124px;
    top: 10px;
    height: 40px;
    object-fit: contain;
    object-position: top right;
  }
  .product-item > div > img.if {
    position: absolute;
    width: 30px;
    right: 10px;
    top: 10px;
    object-fit: contain;
    object-position: top right;
  }
  .product-item > div > img.two {
    /* bottom: 10px; */
    top:50px;
  }
  .nav-sub {
    width: calc(100% - 1.0133333333333334rem * 2);
    margin: 0 auto;
    overflow: hidden;
    padding: 0.21333333333333335rem 0 0.5rem;
  }
  .nav-sub div {
    width: calc((100% - 1.25rem) / 3);
    height: 1.0666666666666667rem;
    margin: 0.25333333333333335rem 0 0 0.62rem;
    display: block;
    float: left;
    background: #fff;
    color: #464646;
    font-size: 0.32rem;
    font-weight: 300;
    line-height: 1.0666666666666667rem;
    text-align: center;
    border-radius: 0.7407407407407407rem;
  }
  .nav-sub div:first-child, .nav-sub div:nth-child(4n) {
    margin-left: 0
  }
  .content {
    background: #E8E8E8;
  }
  .model {
    background: #fff;
    margin-top: 0.25rem;
    padding-top: 0.6266666666666667rem;
    padding-bottom: 1.0666666666666667rem;
  }
  .model:first-child {
    padding-top: -1rem;
  }
  .model > h1, .model > p {
    padding: 0 0.6533333333333333rem;
  }
  .model h1 {
    color: #464646;
    font-size: 0.48rem;
    line-height: 0.9333333333333333rem;
    font-weight: 600;
  }
  .model > p {
    color: #7D7D7D;
    font-size: 0.32rem;
    line-height: 0.64rem;
    font-weight: 300;
  }
  .product-list {
    width: calc(100% - 0.8rem - 0.3rem);
    margin: 0 auto;
    overflow: hidden;
  }
  .product-item {
    width: calc((100% - 0.35rem) / 2);
    margin-top: 0.8rem;
    float: left;
    background: #FAFAFA;
  }
  .product-item:nth-child(2n) {
    margin-left: 0.346rem;
  }
  .product-item img {
    width: 100%;
  }
  .product-item p {
    padding: 0 0.32rem;
    font-size: 0.32rem;
    line-height: 0.5333333333333333rem;
  }
  .product-item p:nth-child(2) {
    font-weight: 600;
    margin-top: 0.3rem;
    color: #000;
  }
  .product-item p:last-child {
    height: 40px;
    font-weight: 300;
    font-size: 12px;
    margin-bottom: 0.5rem;
    color: #7D7D7D;
  }
  
  .top-btn img {
    width: 1.25rem;
  }
  .top-btn {
    position: fixed;
    display: none;
    cursor: pointer;
    bottom: 0.5rem;
    right: 0.5rem;
  }
}
#voice-control p:last-child {
  height: 0px;
  font-weight: 300;
  font-size: 12px;
  margin-bottom: 0.5rem;
  color: #7D7D7D;
}
