.mobile-container,
.phoneheader,
.dian {
  display: none;
}

@media screen and (min-width: 320px) and (max-width: 1024px) {
  .wrap {
    width: 92.5%;
  }

  header {
    display: none;
  }

  .dian {
    display: block;
    height: 1.4rem;
  }

  .phoneheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 1.4rem;
    background: #fff;
    z-index: 999;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    padding: 0 0.5rem;
  }

  .phoneheader .logo {
    width: 2.8rem;
  }

  .phoneheader .logo img {
    display: block;
    width: 100%;
    height: auto;
  }

  .phoneheader .menu img {
    filter: invert(1);
  }

  .mobile-nav .sub {
    display: none;
  }

  .mobile-nav .sub > li > a {
    display: block;
    text-align: left;
    padding-left: 0.4rem;
    font-weight: normal;
  }

  .mobile-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
  }

  .mobile-container .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 70%;
    height: 100%;
    background: #fff;
    padding: 1rem 0.12rem;
    overflow-y: scroll;
  }

  .mobile-container .mobile-nav img {
    width: 0.4rem;
    position: absolute;
    right: 0.4rem;
    top: 0.4rem;
  }

  .mobile-container .mobile-nav ul li {
    border-bottom: 1px solid #eeeeee;
    line-height: 0.8rem;
    text-align: left;
    padding-left: 0.6rem;
  }

  .mobile-container .mobile-nav ul li a {
    font-size: 0.34rem;
    font-family: Bo;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1200px) {
  .wrap {
    width: 80%;
  }
}

.index-banner__chat,
.solution-banner__chat,
.product-banner__chat,
.about-banner__chat {
  display: none !important;
}

.float-chat {
  position: fixed;
  right: 0.4rem;
  bottom: 1.2rem;
  z-index: 9998;
}

.float-chat__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #033fd1;
  box-shadow: 0 0.04rem 0.1rem rgba(3, 63, 209, 0.6);
  cursor: pointer;
}

.float-chat__btn img {
  width: 0.24rem;
  height: 0.24rem;
  display: block;
}

.float-chat__qr {
  position: absolute;
  right: calc(100% + 0.16rem);
  top: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
  width: 1.72rem;
  padding: 0.16rem 0.16rem 0.12rem;
  background: #fff;
  border-radius: 0.08rem;
  box-shadow: 0 0.08rem 0.24rem rgba(15, 23, 42, 0.16);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.float-chat__qr img {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
}

.float-chat__qr p {
  margin: 0.08rem 0 0;
  font-size: 0.14rem;
  line-height: 1.4;
  color: #333;
}

.float-chat:hover .float-chat__qr,
.float-chat.is-open .float-chat__qr {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media screen and (min-width: 320px) and (max-width: 1024px) {
  .float-chat {
    right: 0.3rem;
    bottom: 1.6rem;
  }

  .float-chat__btn {
    width: 0.8rem;
    height: 0.8rem;
  }

  .float-chat__btn img {
    width: 0.32rem;
    height: 0.32rem;
  }

  .float-chat__qr {
    width: 2.4rem;
    padding: 0.2rem;
  }

  .float-chat__qr img {
    width: 2rem;
    height: 2rem;
  }

  .float-chat__qr p {
    font-size: 0.22rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.phoneheader .pheader-right {
  display: flex;
  align-items: center;
  gap: 0.24rem;
}

.phoneheader .header-search {
  width: 0.64rem;
  height: 0.64rem;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phoneheader .header-search img {
  width: 0.56rem;
  height: 0.56rem;
  filter: invert(1);
}

.site-search {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.site-search.is-open,
.site-search.is-open[hidden] {
  display: block !important;
}

.site-search__mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 16, 40, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.site-search.is-ready .site-search__mask {
  opacity: 1;
}

.site-search__panel {
  position: relative;
  width: 8.8rem;
  max-width: calc(100% - 0.64rem);
  margin: 1.6rem auto 0;
  padding: 0.4rem 0.4rem 0.32rem;
  background: #fff;
  border-radius: 0.12rem;
  box-shadow: 0 0.16rem 0.48rem rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(-0.2rem) scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.site-search.is-ready .site-search__panel {
  opacity: 1;
  transform: none;
}

.site-search__close {
  position: absolute;
  right: 0.2rem;
  top: 0.2rem;
  width: 0.32rem;
  height: 0.32rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-search__close::before,
.site-search__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.18rem;
  height: 1px;
  background: #333;
}

.site-search__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-search__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-search__form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding-right: 0.36rem;
}

.site-search__input {
  flex: 1;
  height: 0.56rem;
  border: 0;
  outline: none;
  font-size: 0.18rem;
  color: #111;
  background: transparent;
}

.site-search__input::placeholder {
  color: #999;
}

.site-search__submit {
  width: 0.4rem;
  height: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-search__submit img {
  width: 0.22rem;
  height: 0.22rem;
  filter: invert(1);
}

.site-search__hint {
  margin-top: 0.16rem;
  font-size: 0.14rem;
  color: #888;
}

.site-search__loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  margin-top: 0.28rem;
  padding: 0.28rem 0 0.16rem;
  color: #888;
  font-size: 0.14rem;
}

.site-search__loading.is-show,
.site-search__loading.is-show[hidden] {
  display: flex !important;
}

.site-search__spinner {
  width: 0.22rem;
  height: 0.22rem;
  border: 2px solid #e5e7eb;
  border-top-color: #033fd1;
  border-radius: 50%;
  animation: site-search-spin 0.7s linear infinite;
}

@keyframes site-search-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-search__mask,
  .site-search__panel,
  .site-search__spinner {
    transition: none;
    animation: none;
  }

  .site-search__panel {
    transform: none;
  }
}

.site-search__list {
  margin-top: 0.16rem;
  max-height: 4.2rem;
  overflow-y: auto;
}

.site-search__item {
  display: block;
  padding: 0.16rem 0.04rem;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #222;
}

.site-search__item:hover {
  background: #f7f9fc;
}

.site-search__item-top {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.site-search__type {
  flex-shrink: 0;
  padding: 0 0.08rem;
  height: 0.22rem;
  line-height: 0.22rem;
  border-radius: 0.04rem;
  background: rgba(3, 63, 209, 0.1);
  color: #033fd1;
  font-size: 0.12rem;
}

.site-search__item h3 {
  margin: 0;
  font-size: 0.16rem;
  font-weight: 600;
  line-height: 1.4;
}

.site-search__item p {
  margin: 0.06rem 0 0;
  font-size: 0.13rem;
  line-height: 1.5;
  color: #666;
}

@media screen and (min-width: 320px) and (max-width: 1024px) {
  .site-search__panel {
    width: 92.5%;
    margin-top: 1.8rem;
    padding: 0.36rem 0.28rem 0.24rem;
  }

  .site-search__input {
    height: 0.72rem;
    font-size: 0.28rem;
  }

  .site-search__item h3 {
    font-size: 0.28rem;
  }

  .site-search__item p,
  .site-search__hint,
  .site-search__loading {
    font-size: 0.22rem;
  }

  .site-search__spinner {
    width: 0.32rem;
    height: 0.32rem;
  }
}
