/* 独立搜索页样式 */

.searchHero {
  position: relative;
  width: 100%;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1e5f9e 0%, #2a7cc8 50%, #4a9fd8 100%);


}

.searchHeroBgWrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.searchHeroBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}

.searchHeroBg.active {
  opacity: 1;
}

.searchHeroContent {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  padding: 200px 20px 20px;
  text-align: center;
}

.searchHeroTitle {
  margin-bottom: 50px;
  color: #fff;
}

.searchHeroTitle h1 {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 2px;
}

.searchHeroTitle p {
  font-size: 16px;
  opacity: 0.85;
  letter-spacing: 1px;
}

.searchBoxWrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.searchBox {
  display: flex;
  width: 100%;
  height: 60px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.searchBox:focus-within {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.searchBox input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 24px;
  font-size: 16px;
  color: #333;
  background: transparent;
}

.searchBox input::placeholder {
  color: #999;
}

.searchBox button {
  width: 140px;
  height: 100%;
  border: none;
  outline: none;
  background: linear-gradient(135deg, #f5a623 0%, #e0901f 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.searchBox button:hover {
  background: linear-gradient(135deg, #e0901f 0%, #d08018 100%);
}

.searchIcon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
}

.searchIcon::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: #fff;
  bottom: -4px;
  right: -5px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.searchHot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.searchHot span {
  margin-right: 5px;
}

.searchHot a {
  font-weight: bold; /* 相当于数值 700 */
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(245, 165, 30, 0.8);
  transition: all 0.3s ease;
}

.searchHot a:hover {
  background: rgba(245, 165, 30, 0.9);
  color: #fff;
}

.bgSwitchBtns {
  margin-top: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.bgSwitchBtn {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.bgSwitchBtn:hover {
  background: rgba(255, 255, 255, 0.8);
}

.bgSwitchBtn.active {
  background: #2a7cc8;
  width: 34px;
  border-radius: 7px;
}

.searchResultWrap {
  padding: 50px 0 80px;
  background: #f5f7fa;
  min-height: 400px;
}

.searchResultHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e4e8;
}

.searchStats {
  font-size: 16px;
  color: #666;
}

.searchStats span {
  color: #2a7cc8;
  font-weight: 600;
  font-size: 20px;
  margin: 0 4px;
}

.searchFilter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.searchFilter a {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  background: #fff;
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e0e4e8;
}

.searchFilter a:hover,
.searchFilter a.active {
  background: #2a7cc8;
  color: #fff;
  border-color: #2a7cc8;
}

.searchResultList {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  min-height: 200px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.searchResultItem {
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
}

.searchResultItem:last-child {
  border-bottom: none;
}

.searchResultItem:hover {
  background: #fafbfc;
}

.searchResultItem h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.5;
}

.searchResultItem h3 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.searchResultItem h3 a:hover {
  color: #2a7cc8;
}

.searchResultItem h3 a .highlight {
  color: #e0901f;
  font-weight: 600;
}

.searchResultMeta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #999;
  flex-wrap: wrap;
}

.searchResultMeta .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: #eef5fc;
  color: #2a7cc8;
  font-size: 12px;
}

.searchResultMeta .tag.notice {
  background: #fff3e0;
  color: #e0901f;
}

.searchResultMeta .tag.dept {
  background: #e8f5e9;
  color: #388e3c;
}

.searchResultMeta .tag.service {
  background: #f3e5f5;
  color: #7b1fa2;
}

.searchResultMeta .tag.file {
  background: #eceff1;
  color: #546e7a;
}

.searchResultDesc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.searchResultDesc .highlight {
  color: #e0901f;
  font-weight: 600;
}

.searchEmpty {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.searchEmptyIcon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #eef5fc;
  border-radius: 50%;
  position: relative;
}

.searchEmptyIcon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid #2a7cc8;
  border-radius: 50%;
  opacity: 0.5;
}

.searchEmptyIcon::after {
  content: '';
  position: absolute;
  top: 62%;
  left: 62%;
  width: 12px;
  height: 3px;
  background: #2a7cc8;
  transform: rotate(45deg);
  opacity: 0.5;
}

.searchPagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.searchPagination a,
.searchPagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #e0e4e8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.searchPagination a:hover,
.searchPagination span.current {
  background: #2a7cc8;
  color: #fff;
  border-color: #2a7cc8;
}

.searchPagination a.disabled {
  color: #ccc;
  cursor: not-allowed;
  background: #f5f5f5;
}

@media (max-width: 768px) {
  .searchHeroTitle h1 {
    font-size: 26px;
  }

  .searchBox {
    height: 50px;
  }

  .searchBox button {
    width: 100px;
    font-size: 16px;
  }

  .searchBox input {
    padding: 0 16px;
    font-size: 14px;
  }

  .searchResultHeader {
    flex-direction: column;
    align-items: flex-start;
  }

  .searchResultList {
    padding: 20px;
  }

  .searchResultItem h3 {
    font-size: 16px;
  }
}
