/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: PingFang SC, Helvetica Neue, Helvetica, Hiragino Sans GB,
    Microsoft YaHei, SimSun, sans-serif;
  line-height: 1.6;
  color: #333;
}

/*  按钮样式 */
.btn {
  background-color: #0080ff;
  color: #fff;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 100px;
  cursor: pointer;
  border: none;
}
.btn:focus {
  outline: none;
}
.btn:hover {
  background: radial-gradient(
    ellipse at top center,
    /* 渐变中心点在上边框中心 */ #ffc05e,
    #f9421e
  );
}
@media screen and (max-width: 768px) {
  .btn {
    padding: 14px 26px;
    font-size: 14px;
  }
}

/* banner样式 */
.banner-container img[alt="banner-right"] {
  animation: bounce 1.8s infinite ease-in-out;
}
@keyframes bounce {
  0%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-12px);
    transform: translateY(-12px);
  }
}

.banner-container > .banner-bg {
  background: linear-gradient(180deg, #6fadfb 0%, #d7eeff 40%, #eff6fe 100%);
}

.banner-m-bg {
  background-image: url("../static/img/banner-mobile-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  aspect-ratio: 750 / 500;
}

/* banner 底图 */
.banner-b {
  position: absolute;
  width: 1350px;
  height: 540px;
  bottom: 0;
  right: 0;
  z-index: 1;
  object-fit: cover;
}
.banner-left {
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 768px) {
  .banner-container > .banner-bg {
    padding-top: 20px;
    background: linear-gradient(180deg, #71aefc 0%, #def0fe 100%);
  }
}

@media screen and (min-width: 768px) {
  .banner-container > .banner-bg > .container {
    padding: 100px 0;
    /* min-width: 1350px; */
    /* background-image: url("../static/img/banner-bg-2.png");
    background-repeat: no-repeat;
    background-position: -250px 100%;
    background-size: cover; */
  }

  .banner-container > .banner-bg > .container > img {
    position: absolute;
    right: 25px;
    width: 400px;
  }

  .banner-b {
    right: -120px;
  }
}

@media screen and (min-width: 1280px) {
  /* .banner-container > .banner-bg > .container {
    background-position: 60px 100%;
    background-size: 100% auto;
  } */
  .banner-container > .banner-bg > .container > div {
    width: calc(100% - 600px);
  }
  .banner-container > .banner-bg > .container > img {
    width: 500px;
    right: 20px;
  }
  .banner-b {
    right: -55px;
  }
}
@media screen and (min-width: 1350px) {
  /* .banner-container > .banner-bg > .container {
    background-position: -190px 100%;
    background-size: cover;
    background-size: 100% auto;
  } */
  .banner-container > .banner-bg > .container > div {
    width: calc(100% - 600px);
  }
  .banner-container > .banner-bg > .container > img {
    width: 530px;
    right: 20px;
  }

  .banner-b {
    right: -45px;
  }
}
@media screen and (min-width: 1535px) {
  /* .banner-container > .banner-bg > .container {
    background-position: bottom right;
    background-size: cover;
  } */
  .banner-container > .banner-bg > .container > div {
    width: calc(100% - 750px);
  }
  .banner-container > .banner-bg > .container > img {
    width: 550px;
    right: 130px;
  }

  .banner-b {
    right: 80px;
  }
}

/* logo横向滚动 容器 */
.logo-scroll-container {
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 25%,
    black 75%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 25%,
    black 75%,
    transparent 100%
  );
}

/* 横向滚动轨道 */
.logo-scroll-track {
  display: flex;
  width: fit-content;
}

/* 单个logo样式 */
.logo-item {
  flex-shrink: 0;
  margin: 0 15px;
  height: 75px;
  object-fit: cover;
}

/* 热门产品 tab 部分 */
.hot-product-tabs-container {
  background: linear-gradient(180deg, #ebf5ff 0%, #ffffff 50%);
  box-shadow: inset 0px 1 4px 0px rgba(0, 0, 0, 0.5);
  border-radius: 40px;
  border: 4px solid #b0cef1;
}
@media screen and (max-width: 768px) {
  .hot-product-tabs-container {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: none;
  }
}

.hot-product-tabs-container .tab-item {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}
.hot-product-tabs-container .tab-item:not(.active) {
  justify-content: space-between;
  background: #fff;
  font-size: 18px;
  color: #333;
  padding: 10px 20px;
  box-shadow: 0px 3 17px 0px #f1f4f9;
}

.hot-product-tabs-container .tab-item img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.hot-product-tabs-container .tab-item.active {
  background-image: url("../static/img/hot-tab-active.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  font-size: 22px;
  padding: 30px 14px;
  justify-content: center;
  text-align: center;
}
.hot-product-tabs-container .tab-item.active img {
  display: none;
}
@media screen and (max-width: 1024px) {
  .hot-product-tabs-container .tab-item {
    flex-direction: column-reverse;
  }
  .hot-product-tabs-container .tab-item:not(.active) {
    text-align: center;
    justify-content: center;
  }
}
@media screen and (max-width: 768px) {
  .hot-product-tabs-container .tab-item {
    flex-direction: column-reverse;
    font-weight: 400;
    gap: 0;
    width: 25%;
  }
  .hot-product-tabs-container .tab-item:not(.active) {
    text-align: center;
    font-size: 12px;
    padding: 8px 4px;
    justify-content: center;
  }
  .hot-product-tabs-container .tab-item img {
    width: 12vw;
    height: 12vw;
  }
  .hot-product-tabs-container .tab-item.active {
    font-size: 14px;
    padding: 20px 12px;
  }
}

/* 热门产品 tab 内容部分 */
.hot-product-tabs-container .tab-content {
  visibility: hidden;
  opacity: 0;
  display: none;
}
.hot-product-tabs-container .tab-content.active {
  visibility: visible;
  opacity: 1;
  display: flex;
  gap: 40px;
  margin: 0 40px;
}
.hot-product-tabs-container .tab-content > div:first-child > h1:after {
  content: "";
  display: block;
  width: 50px;
  height: 5px;
  background: #0080ff;
  margin-bottom: 20px;
}

@media screen and (max-width: 1024px) {
  .hot-product-tabs-container .tab-content.active {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .hot-product-tabs-container .tab-content.active {
    flex-direction: column;
    gap: 20px;
    margin: 0 10px;
    padding: 20px 25px;
    border-radius: 40px;
    background: linear-gradient(180deg, #ebf5ff 0%, #ffffff 50%);
    border: 3px solid #b0cef1;
  }
}

/* 主要优势部分 */
.segmented-control {
  display: flex;
  border-radius: 100px;
  overflow: hidden;
  background: #e6f0ff;
  padding: 6px;
}

.segment-item {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 100px;
  text-align: center;
}

.segment-item.active {
  background-color: white;
  color: #0080ff;
  font-weight: 600;
}
.segment-content {
  visibility: hidden;
  opacity: 0;
  display: none;
}
.segment-content.active {
  visibility: visible;
  opacity: 1;
  display: block;
}
@media screen and (max-width: 768px) {
  .segmented-control {
    padding: 4px;
  }
  .segment-item {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* 联系我们部分 */
.form-item-input {
  border-radius: 8px;
  padding: 0 8px;
  border: 1px solid #dcdcdc;
  background: #ffffff;
  display: flex;
  align-items: center;
}
.form-item-input > i {
  margin-right: 2px;
}

.form-item-input-error {
  border-color: red;
  min-height: 1.2em;
}
.input-error {
  color: red;
  min-height: 12px;
  font-size: 14px;
}

.form-item-input > input,
.form-item-input > textarea {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
}

/* 针对移动端的特殊处理，移除所有可能的焦点样式 */
.form-item-input > input:focus,
.form-item-input > textarea:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

/* 移除iOS设备上的默认聚焦样式 */
.form-item-input input::-webkit-focus-ring-color,
.form-item-input textarea::-webkit-focus-ring-color {
  color: transparent !important;
}

/* 移除Android设备上的默认聚焦样式 */
.form-item-input input:-webkit-autofill,
.form-item-input textarea:-webkit-autofill {
  -webkit-box-shadow: none !important;
  -webkit-text-fill-color: initial !important;
  border: none !important;
  background: transparent !important;
}

/* 移除Chrome浏览器的自动填充背景色 */
.form-item-input input:-webkit-autofill,
.form-item-input input:-webkit-autofill:hover,
.form-item-input input:-webkit-autofill:focus,
.form-item-input input:-webkit-autofill:active {
  -webkit-box-shadow: none !important;
  -webkit-text-fill-color: initial !important;
  background: transparent !important;
  transition: background-color 0s !important;
}

/* 移除Firefox浏览器的自动填充样式 */
.form-item-input input:-moz-placeholder,
.form-item-input input::-moz-placeholder,
.form-item-input input:-ms-input-placeholder,
.form-item-input input::-ms-input-placeholder,
.form-item-input input::placeholder {
  color: #999;
  opacity: 1;
}

/* 弹窗 */
.modal-close {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out, visibility 0.1s ease-in-out;
}

.modal-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease-in-out, visibility 0.1s ease-in-out;
}
