/* idx-banner */
.idx-banner {
  position: relative;
}

.idx-banner .swiper-slide img {
  width: 100%;
  aspect-ratio: 1920 / 800;
}

.idx-banner .container {
  position: absolute;
  top: 10px;
  left: 50%;
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
  z-index: 1;
}

.idx-banner .title {
  font-weight: normal;
  color: var(--sub-color);
  font-family: 'DMSans-Medium';
  margin-bottom: 5px;
}

.idx-banner .info {
  color: var(--sub-color);
}

.idx-banner .swiper-pagination {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin-top: 0;
  z-index: 2;
}

@media (max-width: 767px) {
  .idx-banner .info-group {
    width: calc((100% / ((100vw - 30px) / 767)) * 1px);
    transform: scale(calc((100vw - 30px) / 767px));
    transform-origin: 0 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .idx-banner .container {
    top: 5px;
  }

  .idx-banner .info-group {
    transform: scale(.8);
  }
}

@media (min-width: 1200px) {
  .idx-banner .title {
    margin-bottom: 10px;
  }

  .idx-banner .info {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .idx-banner .swiper-pagination {
    bottom: 20px;
    display: flex;
  }
}

@media (min-width: 1440px) {
  .idx-banner .container {
    top: 30px;
    max-width: 1230px;
  }

  .idx-banner .title {
    font-size: 50px;
  }

  .idx-banner .info {
    font-size: 20px;
  }

  .idx-banner .swiper-pagination {
    bottom: 40px;
  }
}

@media (min-width: 1640px) {
  .idx-banner .container {
    top: 60px;
  }

  .idx-banner .title {
    font-size: 60px;
    margin-bottom: 20px;
  }
}


/* products */
.products {
  padding: 30px 0;
}

/* 分类 */
.products .lt-nav {
  margin-bottom: 30px;
}

.products .product-form {
  display: flex;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #E1E1E1;
  background: #FFF;
  margin-bottom: 20px;
}

.products .product-form .form-control {
  flex: 1;
  height: 40px;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 0;
  border: none;
  background: transparent;
}

.products .product-form .form-control::-webkit-input-placeholder {
  color: #D9D9D9;
}

.products .product-form .form-control:-moz-placeholder {
  color: #D9D9D9;
}

.products .product-form .form-control::-moz-placeholder {
  color: #D9D9D9;
}

.products .product-form .form-control:-ms-input-placeholder {
  color: #D9D9D9;
}

.products .product-form .btn {
  width: 93px;
  height: 40px;
  color: #fff;
  border-radius: 4px;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.products .product-form .btn i {
  font-size: 28px;
}

.products .nav-title {
  color: #333;
  text-align: left;
  line-height: calc(28 / 18);
  margin-bottom: 14px;
}

.products #category {
  border: none;
  background: none;
  cursor: pointer;
}

.products #category i {
  margin-right: 5px;
}

.products .pdt-nav {
  padding: 15px 0;
  margin-top: 10px;
  border-top: 1px solid #CFCFCF;
  border-bottom: 1px solid #CFCFCF;
}

.products .pdt-nav>li:not(:last-child) {
  margin-bottom: 8px;
}

.products .nav-open {
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.products .nav-open a {
  flex: 1;
  padding: 5px 15px;
}

.products .nav-open.drop {
  color: var(--style-color);
}

.products .nav-open i {
  font-size: 12px;
  margin-left: 5px;
  margin-right: 15px;
  cursor: pointer;
}

.products .nav-open.drop i {
  transform: rotate(90deg);
}

.products .first-btn {
  border-radius: 6px;
  color: var(--sub-color);
}

.products .first-btn.drop {
  color: #fff;
  background: var(--style-color);
}

.products .first-btn a {
  padding: 12px 10px 12px 20px;
}

.products .child-list {
  padding-top: 15px;
  padding-left: 20px;
  padding-right: 5px;
  padding-bottom: 7px;
  display: none;
}

.products .child-list li:not(:last-child) {
  margin-bottom: 6px;
}

.products .bottom-wrap {
  display: none;
}

/* 右侧 */
.products .title {
  margin-bottom: 14px;
}

.products .sub-info {
  margin-bottom: 20px;
}

.products .sub-info>*:not(:last-child) {
  margin-bottom: 15px;
}

.products .rt-content .row {
  margin-left: -10px;
  margin-right: -10px;
  margin-bottom: -30px;
}

.products .rt-content .row>div {
  padding: 0 10px;
  margin-bottom: 30px;
}

.products .scale-img {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #E8E8E8;
  background: #FBFCFB;
}

.products .scale-img img {
  width: 100%;
  aspect-ratio: 290 / 290;
}

.products .tit {
  margin-top: 15px;
  margin-bottom: 8px;
}

.products .info {
  height: 4.5em;
}

.products .rt-content .btn {
  width: 100%;
  margin-top: 20px;
  line-height: 22px;
  padding: 11px 15px;
  border-radius: 4px;
  color: var(--style-color);
  border: 1px solid var(--style-color);
}

@media (min-width: 768px) {
  .products {
    padding-top: 20px;
  }

  .products #category {
    display: none;
  }

  .products .pdt-nav {
    margin-top: 0;
  }
}

@media (min-width: 1200px) {
  .products {
    padding-bottom: 60px;
  }

  .products .container {
    display: flex;
    align-items: flex-start;
  }

  .products .lt-nav {
    width: 300px;
    margin-bottom: 0;
  }

  .products .rt-content {
    flex: 1;
    padding-left: 30px;
  }

  .products .product-form {
    margin-bottom: 40px;
  }

  .products .product-form .btn:hover {
    background: var(--style-color);
  }

  .products .pdt-nav {
    padding: 21px 0;
  }

  .products .nav-open:hover {
    color: var(--style-color);
  }

  .products .first-btn:hover {
    color: #fff;
    background: var(--bg-color);
  }

  /* 表单 */
  .products .bottom-wrap {
    margin-top: 40px;
    padding: 24px 20px;
    border-radius: 14px;
    background: var(--style-color);
    display: block;
  }

  .products .sub-title {
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
  }

  .products .form-group {
    margin-bottom: 12px;
  }

  .products .form-control {
    font-size: 14px;
    line-height: 24px;
    border-color: #EBEBEB;
  }

  .products input.form-control {
    height: 44px;
  }

  .products textarea.form-control {
    min-height: 74px;
  }

  .products .form-control.file-item {
    padding: 0;
    height: 0;
    opacity: 0;
    border: none;
    visibility: hidden;
  }

  .products .file-upload {
    width: fit-content;
    color: rgba(255, 255, 255, 0.80);
    font-size: 14px;
    line-height: calc(24 / 14);
    font-family: 'DMSans-Regular';
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .products .file-upload span {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border-radius: 2px;
    border: 1px solid #EBEBEB;
    background: rgba(250, 250, 250, 0.20);
    display: block;
    position: relative;
  }

  .products .file-upload.active span {
    background: #fff;
    border-color: #fff;
  }

  .products .file-upload span::after {
    content: '\e613';
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 10px;
    line-height: 1;
    font-weight: bold;
    color: var(--style-color);
    transform: translate(-50%, -50%);
    font-family: "iconfont" !important;
    opacity: 0;
  }

  .products .file-upload.active span::after {
    opacity: 1;
  }

  .products .bottom-wrap .btn {
    width: 100%;
    color: #fff;
    border-radius: 4px;
    margin-top: 20px;
    line-height: 22px;
    padding: 11px 15px;
    border: 1px solid #fff;
    transition: all .3s;
  }

  .products .bottom-wrap .btn:hover {
    color: var(--style-color);
    background: #fff;
  }

  .products .bottom-wrap .form-control::-webkit-input-placeholder {
    color: #999;
  }

  .products .bottom-wrap .form-control:-moz-placeholder {
    color: #999;
  }

  .products .bottom-wrap .form-control::-moz-placeholder {
    color: #999;
  }

  .products .bottom-wrap .form-control:-ms-input-placeholder {
    color: #999;
  }

  .products .sub-info {
    margin-bottom: 40px;
  }

  .products .rt-content .row {
    margin-bottom: -60px;
  }

  .products .rt-content .row>div {
    margin-bottom: 60px;
  }

  .products .tit {
    margin-top: 22px;
  }

  .products .tit a:hover {
    color: var(--style-color);
  }

  .products .rt-content .btn {
    margin-top: 22px;
  }

  .products .rt-content .btn:hover {
    color: #fff;
    padding-top: 12px;
    padding-bottom: 12px;
    background: var(--bg-color);
    border: none;
  }
}

@media (min-width: 1440px) {
  .products {
    padding-bottom: 80px;
  }

  .products .rt-content {
    padding-left: 60px;
  }

  .products .rt-content .row {
    margin-left: -20px;
    margin-right: -20px;
  }

  .products .rt-content .row>div {
    padding: 0 20px;
  }
}