@charset "UTF-8";

.top_seach {
  width: 100%;
  padding: 2.4rem 0 1.2rem;
  background-color: #f6f6f6;
  border-top: 1px solid rgba(0, 0, 0, .1);
}

.top_seach .formbox {
  width: 70%;
  margin: auto;
}

.top_seach .formbox .search-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 80%;
}

.top_seach .formbox input.txt {
  width: 100%;
  height: 0.8rem;
  background-color: #fff;
  font-size: 0.24rem;
  padding: 0 0.5rem 0 0.5rem;
  padding-right: 30px;
  /* 为清除按钮预留空间 */
}

.top_seach .formbox .search-container .clear-btn {
    position: absolute;
    right: 13%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 0.4rem;
    width: 0.5rem;
    height: 0.5rem;
    text-align: center;
    align-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    /* 确保按钮在输入框之上 */
}

.top_seach .formbox .search-container .clear-btn:hover {
    background-color: #eee;
    color: #666;
}

.top_seach .formbox input.submit {
  display: inline-block;
  vertical-align: top;
  height: 0.8rem;
  line-height: 0.8rem;
  width: 1.2rem;
  font-size: 0.24rem;
  background-color: var(--color-primary);
  color: #fff;
  margin: 0;
  line-height: 1;
  font-weight: 500;
  transition: all 0.4s;
}

/* 搜索历史样式 */
.search-history {
  position: absolute;
  top: 100%;
  left: 0;
  width: calc(100% - 1.2rem);
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 1000;
  display: none;
  padding: 0.1rem 0;
}

.search-history .history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  align-items: center;
}

.search-history .history-item {
  padding: 0.06rem 0.18rem;
  font-size: 0.2rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #f0f0f0;
  border-radius: 12px;
  white-space: nowrap;
}

.search-history .history-item:hover {
  color: var(--color-primary);
  background-color: #e6e6e6;
}

/* 简化显示效果，移除动画 */
.search-history.show {
  display: block;
}

/* 以上是搜索历史样式 */


.result-box {
  padding: 0.5rem 0 2rem 0;
}

.result-box .w1680 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.result-box .result-tit {
  font-size: .2rem;
  line-height: .5rem;
  color: #666;
}

.result-box .sub-nav {
  border-bottom: 1px solid #e5e5e5;
  margin-top: .5rem;
}

.result-box .sub-nav .swiper-slide {
  margin-right: 1.75rem;
}

.result-box .sub-nav .swiper-slide a:after {
  display: none;
}

.result-box .sub-nav .swiper-slide.cur a {
  font-weight: normal;
}

.result-box .pro-list .row {
  margin: 0 -.35rem;
}

.result-box .pro-list .item {
  box-sizing: border-box;
  padding: 0 .35rem;
  margin-bottom: .7rem;
}

.result-box .pro-list .con-box {
  display: block;
}

.result-box .pro-list .img {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.result-box .pro-list img {
  width: 100%;
}

.result-box .pro-list .text {
  margin-top: .4rem;
}

.result-box .pro-list .tit {
  font-size: .45rem;
  line-height: .55rem;
  color: #333;
  transition: all .2s;
}

.result-box .pro-list .more {
  font-size: .3rem;
  line-height: .4rem;
  color: #666;
  margin-top: .25rem;
}

.result-box .result-list {
  width: 100%;
}

.result-box .news-lists {
  width: 100%;
}

.result-box .news-lists .row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  /*margin: 0.1rem -.75rem;*/
}

.result-box .news-lists .news-item {
  padding: 0 .75rem 0 0;
  box-sizing: border-box;
  width: 50%;
  float: left;
}

.result-box .news-lists .con-box {
  display: block;
  padding: .25rem 0 .25rem .2rem;
  position: relative;
  font-size: .15rem;
  line-height: .2rem;
  color: #666;
  border-bottom: 1px dotted #ddd;
  transition: all .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .3s;
}

.result-box .news-lists .con-box:hover {
  color: var(--color-primary);
}

.result-box .news-lists .con-box:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background-color: #888888;
  border-radius: 100%;
  transform: translateY(-50%);
  transition: all .2s;
}


.search-nav {
  overflow: hidden;
}

.search-nav .swiper-slide {
  width: auto;
  margin-right: 2.5rem;
}

.search-nav .swiper-slide:last-child {
  margin-right: 0;
}

.search-nav .swiper-slide a {
  display: block;
  font-size: .25rem;
  line-height: 0.6rem;
  color: #555;
  transition: all .3s;
}

.search-nav .swiper-slide a:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  transition: all .3s;

}

.search-nav .swiper-slide a:after {
  display: block;
  content: attr(title);
  font-weight: bold;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.search-nav .swiper-slide.cur a {
  color: var(--color-primary);
}

.search-nav .swiper-slide.cur a:before {
  width: 100%;
}

.result-box .search-nav {
  border-bottom: 1px solid #e5e5e5;
  width: 100%;
  margin: .2rem 0;
}

.result-box .search-nav .swiper-slide a:after {
  display: none;
}

.result-box .search-nav .swiper-slide.cur a {
  font-weight: normal;
  background-color: #fff;
}

.view {
  padding: 0 5%;
}

@media (max-width: 997px) {
  .top_seach .formbox {
    width: 100%;
  }

  .result-box .result-tit {
    font-size: 18px;
  }

  .search-nav .swiper-slide a {
    font-size: 14px;
  }

  .result-box .news-lists .news-item {
    padding: 0 .75rem;
    box-sizing: border-box;
    width: 100%;
    float: left;
  }

  .result-box .news-lists .con-box {
    font-size: 12px;
    line-height: 1.2;
  }

  .result-box .result-list {
    margin-top: 0.6rem;
  }
}

/* 搜索结果描述样式 */
.search-desc {
  font-size: .3rem;
  line-height: .4rem;
  color: #999;
  margin-top: .25rem;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 无结果样式 */
.no-results, .no-search {
  text-align: center;
  padding: 0.5rem 0;
  color: #999;
  font-size: .2rem;
}

.no-results p, .no-search p {
  margin: 0;
}

/* 关键词高亮样式 */
mark {
  background-color: #ffeb3b;
  color: #333;
  padding: 0;
  font-weight: bold;
}

/* 分页样式保持原版 */


/* pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.16rem;
  margin: 0.5rem auto;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  color: #D1D1D1;
}

.pagination a img {
  width: 0.06rem;
}

.pagination a.prev {
  margin-right: 0.16rem;
  transform: rotate(180deg);
}

.pagination a.next {
  margin-left: 0.16rem;
}

.pagination a.disabled img {
  filter: var(--imggray);
}

.pagination a.dots {
  line-height: 1;
}

.pagination a.active {
  background: var(--color-primary);
  color: #fff;
}

.pagination a.page:hover {
  background: var(--color-primary);
  color: #fff;
}

/* pagination */