* {
  box-sizing: border-box;
}
.inside {
  padding-bottom: 0;
}
.title-line:before {
  content: '';
  display: block;
  width: 2.2em;
  height: 4px;
  margin-bottom: 20px;
  background-color: #1290D8;
}
.overview-wrap p.title {
  margin-top: 0;
}
.overview-wrap .d-flex {
  margin: 30px -5px 0;
}
.overview-wrap .item {
  width: 20%;
  padding: 0 5px;

}
.overview-wrap .item .item-content {
  height: 100%;
  background-color: #fafbfc;
  border-radius: 4px;
  padding: 30px 28px 18px;
  transition: all .2s linear;
}
.i18n-zh-hans .overview-wrap .item .item-content {
  padding: 36px 28px;
}
.overview-wrap .item .item-content:hover {
  background-color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
}
.overview-wrap .item .item-content img {
  display: block;
  width: 50px;
  height: auto;
}
.overview-wrap .item .item-content p {
  margin: 8px 0 0;
  font-family: "HelveticaNeueMedium", "HelveticaNeue-Medium", "Helvetica Neue Medium", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, "PingFang SC Medium", "PingFangSC-Medium", "黑体", sans-serif;
}
.esp32-c2-switch-wrap {
}
.textLeft {
  text-align: left !important;
}
.textCenter {
  text-align: center !important;
}
.esp32-c2-switch-wrap h2 {
  margin-bottom: 40px;
}
.esp32-c2-switch-header-wrap  .auto-img {
  display: block;
  width: 100%;
  height: auto;
}
.esp32-c2-switch-header-wrap {
  position: relative;
}
.esp32-c2-switch-header-content {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  padding: 0;
  max-width: 1140px;
}
.esp32-c2-switch-header-content p {
  width: 50%;
  float: right;
  margin: 0;
}
.esp32-wifi-wrap .esp32-c2-switch-header-content {
  top: 12%
}
.esp32-wifi-wrap .esp32-c2-switch-header-content p {
  float: none;
  width: 45%;
}

/*.esp32-wifi-wrap .esp32-c2-switch-content .item h3 {
  min-height: 0;
}*/
.esp32-c2-switch-content-wrap {
  padding-top: 40px;
}
.esp32-c2-switch-content-title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  background-image: linear-gradient(to right, #C3E8FE, #77C0ED, #DDF4FE);
  border-radius: 30px;
}
.esp32-c2-switch-content-title h2 {
  margin: 0;
  color: #fff;
}
.esp32-c2-switch-content {
  display: flex;
  justify-content: flex-start;
  padding: 0 80px;
  height: 167px;
  position: relative;
  overflow: hidden;
}
.esp32-c2-switch-content.right {
  justify-content: flex-end;
}
.esp32-c2-switch-content .item {
  position: absolute;
  left: 80px;
  cursor: pointer;
  transition: left .3s linear;
}
.esp32-c2-switch-content .item:nth-child(2) {
  left: 380px;
}
.esp32-c2-switch-content .item:nth-child(3) {
  left: 680px;
}
.esp32-c2-switch-content.right .item {
  left: unset;
  transition: right .3s linear;
}
.esp32-c2-switch-content.right .item:nth-child(3) {
  right: 80px;
}
.esp32-c2-switch-content.right .item:nth-child(2) {
  right: 380px;
}
.esp32-c2-switch-content.right .item:nth-child(1) {
  right: 680px;
}
.esp32-wifi-wrap .esp32-c2-switch-content .item-title {
  width: 250px;
}
.esp32-wifi-wrap .esp32-c2-switch-content .item:nth-child(2) {
  left: 330px;
}
.esp32-wifi-wrap .esp32-c2-switch-content .item:nth-child(3) {
  left: 580px;
}
.esp32-wifi-wrap .esp32-c2-switch-content .item:nth-child(4) {
  left: 830px;
}
.esp32-c2-switch-content .item h3 {
  min-height: 50px;
}
.esp32-c2-switch-content .item h2 {
  text-align: left;
  margin-bottom: 20px;
  color: #1290D8;
}
.esp32-c2-switch-content.down .item h2 {
  margin-bottom: 0;
  margin-top: 20px;
}
.esp32-c2-switch-content.right .item h2 {
  text-align: right;
}
.esp32-c2-switch-content.right .item,
.esp32-c2-switch-content.right .item h3{
  text-align: right;
}
.esp32-c2-switch-content .item-title {
  position: relative;
  padding: 20px 40px 40px;
  width: 300px;
}
.i18n-zh-hans .esp32-c2-switch-content .item-title {
  padding: 20px 56px 40px;
}
.esp32-c2-switch-content.down .item-title {
  padding: 40px 40px 20px;
}
.esp32-c2-switch-content .item .item-title:after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 2px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.esp32-c2-switch-content:not(.right) .item:not(:last-child) .item-title:after,
.esp32-c2-switch-content:not(.right) .item.active .item-title:after {
  right: 0;
  background-image: url("../images/esp-now/line.png");
}
.esp32-c2-switch-content.right .item:not(:first-child) .item-title:after,
.esp32-c2-switch-content.right .item.active .item-title:after {
  background-image: url("../images/esp-now/line-1.png");
  right: unset;
  left: 0;
}
.esp32-c2-switch-content.down:not(.right) .item:not(:last-child) .item-title:after,
.esp32-c2-switch-content.down:not(.right) .item.active .item-title:after{
  background-image: url("../images/esp-now/line-1.png");
  right: 0;
}
.esp32-c2-switch-content .item-content {
  display: none;
  opacity: 0;
  overflow: hidden;
}
.esp32-c2-switch-content .item-content p {
  margin: 0;
}
.esp32-c2-switch-content .item.active {
  display: flex;
  align-items: center;
  right: 80px !important;
  left: 80px !important;
  overflow: hidden;
}
.esp32-c2-switch-content .item .item-content  p {
  opacity: 0;
}
.esp32-c2-switch-content .item.active .item-content p {
   -webkit-animation-duration: .3s;
   animation-duration: .3s;
   -webkit-animation-delay: .3s;
   animation-delay: .3s;
   -webkit-animation-fill-mode: both;
   animation-fill-mode: both;
   -webkit-animation-name: fadeIn;
   animation-name: fadeIn;
}
@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
.esp32-c2-switch-content .item.active  h3 {
  color: #1290D8;
}
.esp32-c2-switch-content:not(.right) .item.active .item-content {
  flex: 1;
  display: block;
  padding-left: 40px;
  opacity: 1;
}
.esp32-c2-switch-content.right .item.active .item-content {
  flex: 1;
  display: block;
  padding-right: 40px;
  opacity: 1;
}
.esp32-c2-switch-content .item.hide {
  opacity: 0;
  width: 0;
}
.esp-now-wrap h2,
.esp-video-wrap h2{
  margin-bottom: 60px;
}
.esp-now-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.esp-now-wrap p {
  margin: 30px auto;
  max-width: 1080px;
  text-align: center;
}
.esp-now-content {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}
.esp-now-content .item {
  width: 50%;
  display: flex;
  align-items: center;
  padding: 30px 0;
}
.esp-now-content:not(:last-child) {
  background-image: linear-gradient(to right, #9B9B9B 0%, #9B9B9B 20%, #fff 20%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  background-position: bottom;
}
.esp-now-content .item:nth-child(odd) {
  padding-right: 40px;
}
.esp-now-content .item:nth-child(even) {
  padding-left: 40px;
}
.esp-now-content img {
  display: block;
  width: 56px;
  height: auto;
}
.esp-now-content .item-content {
  padding-left: 44px;
  line-height: 1.625;
}
.esp-now-protocol-wrap {
  padding: 35px 60px;
  background-color: #FAFBFC;
  border-radius: 10px;
  margin-top: 30px;
}
.esp-now-protocol-wrap img {
  display: block;
  width: 112px;
  height: auto;
  margin-right: 50px;
}
.esp-now-protocol-wrap p,
.overview-wrap .link-wrap {
  margin: 0 ;
  text-align: left;
}
.esp-now-protocol-wrap .link-wrap,
.overview-wrap .link-wrap {
  margin-top: 30px;
}
.esp-now-protocol-wrap a,
.overview-wrap .link-wrap a {
  color: #1290D8 !important;
  margin-right: 40px;
  text-decoration: none;
}
.esp-now-protocol-wrap a:hover,
.overview-wrap .link-wrap a:hover {
  text-decoration: underline;
}
.esp-now-protocol-wrap a:after,
.overview-wrap .link-wrap a:after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-top: 1px solid #1290D8;
  border-right: 1px solid #1290D8;
  transform: rotate(45deg) translateY(-15%);
}
.esp-video-wrap {
  padding-bottom: 80px;
}
.esp-video-wrap p {
  max-width: 1080px;
  margin: 24px auto 40px;
}
.video-wrap {
  text-align: center;
  max-width: 710px;
  margin: 0 auto;
}
.video-wrap .video {
    width: 100%;
    max-width: 100%;
    height: 400px;
}
.buy-now .buy-now-bg {
  background-image: url(../images/esp-now/buy-now.png);
  background-size: cover;
  background-position: bottom;
}
.buy-now .buy-now-bg .inside {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 256px;
}
.buy-now h2 {
  color: #38393a;
  margin-bottom: 20px;
}
.buy-now .buy-now-bg p {
  margin: 0;
  max-width: 810px;
  text-align: center;
}
.i18n-zh-hans .buy-now .buy-now-bg p {
  max-width: 710px;
}
.buy-now .buy-now-bg .btn-wrap {
  margin-top: 20px;
}
.buy-now .buy-now-bg .button {
  border-color: #1290D8 !important;
  color: #38393a !important;
  width: 172px;
  transition: all .1s;
  box-sizing: border-box;
}
.buy-now .buy-now-bg .button:hover {
  background-color: #1290D8 !important;
  border-color: #1290D8 !important;
  color: #fff !important;
}
.esp32-c2-switch-bg-wrap {
  position: relative;
  height: 26vw;
  overflow: hidden;
}
.esp32-c2-switch-bg {
  transition: all .3s linear;
}
.esp32-c2-switch-bg-wrap .carousel-wrap {
  position: absolute;
  top:  50%;
  right: 20px;
  transform: translateY(-50%);
}

.esp32-c2-switch-bg-wrap .carousel-wrap .carousel  {
  position: relative;
  display: block;
  width: 50px;
  height: 40px;
  cursor: pointer;
}
.esp32-c2-switch-bg-wrap .carousel-wrap .carousel:after {
  content: '';
  position: absolute;
  top:  0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 100%;
  background: #ddd;
  transition: all .3s linear;
  border-radius: 6px;
}
.esp32-c2-switch-bg-wrap .carousel-wrap .carousel:not(:last-child)  {
  margin-bottom: 20px;
}
.esp32-c2-switch-bg-wrap .carousel-wrap .carousel.active:after {
  background: #1290D8;
  opacity: .3;
}
.esp32-c2-switch-wrap.active .esp32-c2-switch-header-content p {
  float: left;
}
.esp32-c2-switch-wrap.active .esp32-c2-switch-bg {
  transform: translateY(-50%);
}
@media (min-width: 1170px) {
  .overview-wrap {
    padding-top: 60px;
  }
}
@media (max-width: 1280px) and (min-width: 1170px) {
  .intro-wrapper .inside {
      width: 100%;
      padding-left: 20px;
      padding-right: 20px;
  }
}

@media only screen and (max-width: 1170px) {
  .esp32-c2-switch-header-content {
    padding: 0 30px 0 0;
  }
}
@media only screen and (max-width: 1000px) {
  .esp32-c2-switch-header-wrap {
    display: flex;
    flex-direction: column;

  }
  .esp32-c2-switch-wrap h2 {
    margin-bottom: 30px;
  }

  .esp32-c2-switch-bg-wrap {
    height: auto;
  }
  .esp32-c2-switch-wrap .esp32-c2-switch-bg {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
  .esp32-c2-switch-wrap .esp32-c2-switch-bg .esp32-c2-switch {
    width: 100%;
    min-width: 100%;
  }
  .esp32-c2-switch-wrap.active .esp32-c2-switch-bg {
    transform: translateX(-100%);
  }
  .esp32-c2-switch-bg-wrap .carousel-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    bottom: 0;
    left: 50%;
    top: unset;
    transform: translateX(-50%);
  }
  .esp32-c2-switch-bg-wrap .carousel-wrap .carousel:after {
    top: unset;
    bottom: 10px;
    height: 5px;
    width: 30px;
  }
  .esp32-c2-switch-bg-wrap .carousel-wrap .carousel:not(:last-child) {
    margin: 0;
  }
  .esp32-c2-switch-header-content p {
    width: 100% !important;
    float: none !important;
    margin-bottom: 20px;
    text-align: center;
  }
  .esp32-c2-switch-bg-wrap {
    order:  2;
  }
  .esp32-c2-switch-content {
    display: block;
    height: auto;
    padding: 0;
  }
  .esp32-c2-switch-header-content {
    position: static;
    transform: none !important;
  }
  .esp32-c2-switch-content .item.active {
    display: block;
  }
  .esp32-c2-switch-content .item {
    position: static;
    width: 100%;
    max-width: 100%;
  }
  .esp32-c2-switch-content .item-title,
  .esp32-c2-switch-content.down .item-title {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 !important;
  }
  .esp32-c2-switch-content.right .item {
    display: flex;
    flex-direction: column;
  }
  .esp32-c2-switch-content .item-content {
    display: block;
    opacity: 1;
    order: 2;
  }
  .esp32-c2-switch-content .item h2 {
    margin-bottom: 0;
  }
  .esp32-c2-switch-content.down .item h2 {
    margin-top: 0;
  }
  .esp32-c2-switch-content .item h3 {
    min-height: 0;
    color:  #1290D8;
    margin-left: 14px;
  }
  .esp32-c2-switch-content .item .item-title:after {
    display: none;
  }
  .esp-now-wrap h2, .esp-video-wrap h2 {
    margin-bottom: 30px;
  }
  .esp32-c2-switch-content.right .item, 
  .esp32-c2-switch-content.right .item h3,
  .esp32-wifi-wrap .esp32-c2-switch-content .item h3 {
    text-align: left;
    order: 2;
  }
  .esp32-c2-switch-content .item-content p {
    margin: 12px 0 22px;
    opacity: 1 !important;
  }
  .esp32-c2-switch-content.down .item:last-child .item-content p {
    margin-bottom: 0;
  }

  .esp32-c2-switch-content-wrap {
    position: relative;
    padding-left: 60px;
    margin-bottom: 20px;
    margin-top: 20px;
  }
  .esp32-c2-switch-content-title {
    position: absolute;
    top: 20px;
    left: 0;
    justify-content: flex-start;
    width: 40px;
    height: 100%;
    background-image: linear-gradient(180deg, #77C0ED, #DDF4FE);
  }
   .esp32-c2-switch-content-title h2 {
    margin-bottom: 0 !important;
    white-space: nowrap;
    transform: rotate(90deg) translate(50%, 170%);
    position: absolute;
    top: 6px;
    left: 0;
  }
  .i18n-zh-hans .esp32-c2-switch-content-title h2  {
    transform: none;
    width: 40px;
    white-space: break-spaces;
    padding-top: 8px;
    text-align: center;
  }
  .intro-wrapper h2 {
    font-size: 22px !important;
  }
  .intro-wrapper h3 {
    font-size: 18px !important;
  }
  .esp-now-protocol-wrap img {
    margin-right: 0;
  }
  .esp-now-protocol-wrap .link-wrap {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
  }
}
@media only screen and (max-width: 768px) { 
  .overview-wrap .d-flex {
    justify-content: center;
  }
  .overview-wrap .item {
    width: 33.3333%;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .esp-now-content {
    display: block;
  }
  .esp-now-content .item:nth-child(odd) {
    padding-right: 0;
  }
  .esp-now-content .item:nth-child(even) {
    padding-left: 0;
  }
  .esp-now-content .item {
    padding: 10px 0;
    width: 100%;
    background-image: linear-gradient(to right, #9B9B9B 0%, #9B9B9B 20%, #fff 20%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
    background-position: bottom;
  }
  .esp-now-content:not(:last-child) {
    background-image: none;
  }
  .esp-now-content img {
    width: 40px;
  }
  .esp-now-content .item-content {
    padding-left: 20px;
  }
  .esp-now-content:last-child .item:last-child {
     background-image: none;
  }
  .esp-now-protocol-wrap {
    margin-top: 10px;
  }
  .esp-now-protocol-wrap {
    padding: 20px;
  }
  .esp-now-protocol-content {
    padding-right: 12px;
  }
  .overview-wrap .item .item-content img {
    width: 40px;
    margin: 0 auto;
  }
  .overview-wrap .item .item-content {
      padding: 12px 18px 10px;
      text-align: center;
  }
  .i18n-zh-hans .overview-wrap .item .item-content {
    padding: 18px;
  }
  .overview-wrap .item .item-content p {
    max-width: 110px;
    margin: 8px auto 0;
  }
  .buy-now h2 {
    margin-bottom: 10px;
  }
  .buy-now .buy-now-bg .btn-wrap {
    margin-top: 10px;
  }
  .esp-video-wrap {
    padding-bottom: 50px;
  }
}
@media only screen and (max-width: 560px) { 
  .i18n-en .overview-wrap .d-flex .item:nth-child(4),
  .i18n-en .overview-wrap .d-flex .item:nth-child(5) {
    width: 50%;
  }
  .overview-wrap .item .item-content  {
    padding-left: 0;
    padding-right: 0;
  }
  .buy-now .buy-now-bg .inside {
    padding: 0 20px;
  }
}
@media only screen and (max-width: 430px) { 
  .esp-now-protocol-wrap img {
    width: 80px;
  }
}
@media only screen and (max-width: 390px) { 
  .esp-now-protocol-content {
    padding-right: 0;
  }
  .esp-now-protocol-wrap .esp-now-protocol-img {
    display: none;
  }
}
