.searchPage {
  padding-top: 1rem;
  background: #fff;
}

.searchContent {
  padding: .8rem 0 1.2rem;
}

.globalSearchForm {
  width: 7.8rem;
  height: .5rem;
  margin: 0 auto;
  display: flex;
  overflow: hidden;
  border: .01rem solid #dcdcdc;
  border-radius: .25rem;
  background: #fff;
}

.globalSearchForm input {
  min-width: 0;
  flex: 1;
  padding: 0 .25rem;
  color: var(--text);
  font-size: clamp(12px, .14rem, 14px);
  line-height: .5rem;
}

.globalSearchForm input::placeholder {
  color: #999;
  opacity: 1;
}

.globalSearchForm button {
  width: 1rem;
  height: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
}

.globalSearchForm button img {
  width: .3rem;
  height: .3rem;
  object-fit: contain;
}

.searchSummary {
  margin-top: .6rem;
}

.searchSummary p {
  color: #333;
  font-size: clamp(16px, .18rem, 18px);
  line-height: .21rem;
}

.searchSummary strong {
  color: var(--blue);
  font-size: inherit;
  font-weight: 400;
}

.searchTabs {
  margin-top: .38rem;
  display: flex;
  gap: .2rem;
}

.searchTab {
  height: .39rem;
  padding: 0 .2rem;
  border: .01rem solid var(--yellow);
  border-radius: .26rem;
  color: var(--text);
  font-size: clamp(14px, .16rem, 16px);
  line-height: .37rem;
  transition: background .2s, color .2s;
}

.searchTab span {
  font-size: inherit;
}

.searchTab.active {
  background: var(--yellow);
  color: var(--text);
}

.searchRule {
  height: .01rem;
  margin-top: .22rem;
  background: #ddd;
}

.searchResults {
  margin-top: .39rem;
}

.searchProductGrid {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: .3rem;
  row-gap: .2rem;
}

.searchPagination {
  grid-column: 1 / -1;
  margin-top: .2rem;
  display: flex;
  justify-content: center;
}

.searchProductCard {
  height: auto;
  min-height: 4.9rem;
  padding: .15rem;
  display: flex;
  flex-direction: column;
  gap: .16rem;
  border: .01rem solid #ddd;
  border-radius: .05rem;
  background: #fff;
  color: var(--text);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.searchProductCard:hover {
  box-shadow: 0 .12rem .24rem rgba(6, 29, 41, .16);
}

.searchProductPicture {
  width: 100%;
  height: 2.65rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .1rem;
  background: linear-gradient(180deg, #f4fbff 0%, #ededed 100%);
}

.searchProductPicture img {
  width: 2.05rem;
  height: 2.05rem;
  object-fit: contain;
}

.searchProductBody {
  display: flex;
  flex-direction: column;
  gap: .16rem;
}

.searchProductBody b {
  color: var(--text);
  font-size: clamp(16px, .18rem, 18px);
  font-weight: 600;
  line-height: .2rem;
}

.searchProductSpecs {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.searchProductSpecs>span {
  padding-bottom: .1rem;
  border-bottom: .01rem solid rgba(235, 235, 235, .83);
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: clamp(12px, .13rem, 13px);
  line-height: .18rem;
  gap: .08rem;
  overflow-wrap: anywhere;
}

.searchProductSpecs i {
  color: inherit;
  font: inherit;
  text-align: right;
}

.searchDetailButton {
  width: 100%;
  height: .29rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .05rem;
  background: var(--blue);
  color: #fff;
  font-size: clamp(12px, .13rem, 13px);
  line-height: .29rem;
}

.searchProductCard:hover .searchDetailButton {
  background: var(--yellow);
  color: var(--text);
}

.searchNewsGrid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: .26rem;
}

.searchResults[data-active="products"] .searchProductGrid,
.searchResults[data-active="news"] .searchNewsGrid {
  display: grid;
}

.searchNewsCard {
  height: 5.88rem;
  overflow: hidden;
  border-radius: .05rem;
  background: #fff;
  box-shadow: 0 0 .05rem rgba(85, 85, 85, .25);
}

.searchNewsImage {
  height: 3.54rem;
  display: block;
  overflow: hidden;
}

.searchNewsImage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s;
}

.searchNewsBody {
  height: 2.34rem;
  padding: .25rem .3rem .35rem;
  display: flex;
  flex-direction: column;
}

.searchNewsBody h2 {
  color: var(--text);
  font-size: clamp(16px, .18rem, 18px);
  font-weight: 600;
  line-height: .28rem;
}

.searchNewsBody p {
  margin-top: .18rem;
  color: #666;
  font-size: clamp(14px, .16rem, 16px);
  line-height: .24rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.searchNewsBody div {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.searchNewsBody time {
  color: #666;
  font-size: clamp(14px, .16rem, 16px);
  line-height: .3rem;
}

.searchNewsMore {
  width: .3rem;
  height: .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #fff;
  font-size: .19rem;
  line-height: 1;
}

.searchNewsCard:hover .searchNewsMore {
  background: var(--blue);
  color: #fff;
}

.searchNewsCard:hover .searchNewsImage img {
  transform: scale(1.05);
}

.searchNewsCard:hover h2 {
  color: var(--blue);
}

.searchEmpty {
  display: none;
  margin-top: .8rem;
  align-items: center;
  flex-direction: column;
}

.searchContent.is-empty .searchEmpty {
  display: flex;
}

.searchContent.is-empty .searchResults,
.searchContent.is-empty .searchTabs,
.searchContent.is-empty .searchRule {
  display: none;
}

.searchEmpty img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
}

.searchEmpty p {
  margin-top: .5rem;
  color: #333;
  font-size: clamp(16px, .18rem, 18px);
  line-height: .21rem;
  white-space: nowrap;
}

.srOnly {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {

  .searchContent {
    padding: .5rem 0 .8rem;
  }

  .globalSearchForm,
  .searchSummary,
  .searchTabs,
  .searchRule,
  .searchResults {
    width: 92%;
    max-width: none;
  }

  .globalSearchForm {
    height: .7rem;
    border-radius: .35rem;
  }

  .globalSearchForm input {
    padding: 0 .24rem;
    line-height: .7rem;
  }

  .globalSearchForm button {
    width: .9rem;
    height: .7rem;
  }

  .searchTabs {
    flex-wrap: wrap;
  }

  .searchTab {
    height: .56rem;
    padding: 0 .26rem;
    border-radius: .3rem;
    line-height: .54rem;
  }

  .searchProductGrid,
  .searchNewsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .22rem;
  }

  .searchProductCard {
    height: auto;
    min-height: 5rem;
  }

  .searchNewsCard {
    height: auto;
  }

  .searchNewsBody {
    height: auto;
    min-height: 2.4rem;
  }

  .searchEmpty img {
    width: 2.2rem;
    height: 2.2rem;
  }

  .searchEmpty p {
    max-width: 92%;
    white-space: normal;
    text-align: center;
  }
}
