.header-buttons > .n-badge,
.header-buttons > span.cursor-pointer,
.article-header-actions > .article-icon-button:nth-of-type(2),
.article-header-actions > .article-icon-button:nth-of-type(3),
.article-header-actions > .article-login {
  display: none !important;
}

.site-search-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.site-search-lock {
  overflow: hidden;
}

.site-search-modal.is-open {
  display: flex;
}

.site-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 45, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-search-dialog {
  position: relative;
  z-index: 1;
  width: min(800px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  overflow: visible;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 26px 80px rgba(0, 16, 32, .24);
  color: #233041;
  transform: translateY(14px) scale(.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

.site-search-modal.is-open .site-search-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.site-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px 18px;
}

.site-search-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  color: #233041;
}

.site-search-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #9aa7b9;
  cursor: pointer;
  padding: 0;
  transition: color .18s ease, transform .18s ease;
}

.site-search-close:hover {
  color: #008efb;
  transform: rotate(90deg);
}

.site-search-close svg {
  width: 18px;
  height: 18px;
}

.site-search-body {
  padding: 0 40px 32px;
}

.site-search-tip {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  margin-bottom: 20px;
  border: 1px solid #b9dcff;
  border-radius: 4px;
  background: #eef6ff;
  color: #3b668f;
  font-size: 12px;
  line-height: 1.7;
}

.site-search-form {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 80px;
  min-height: 46px;
  border: 1px solid #eff5ff;
  border-radius: 3px;
  background: #f8fafc;
}

.site-search-type,
.site-search-submit {
  height: 46px;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.site-search-type {
  gap: 12px;
  color: #62748e;
  background: #f8fafc;
  border-right: 1px solid #eff5ff;
}

.site-search-type svg {
  width: 14px;
  height: 14px;
  color: #b7c4d7;
}

.site-search-field {
  position: relative;
  min-width: 0;
}

.site-search-input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 14px;
  border: 0;
  background: #f8fafc;
  color: #334155;
  outline: none;
  font-size: 14px;
}

.site-search-input::placeholder {
  color: #9aa7b9;
}

.site-search-input:focus {
  box-shadow: inset 0 0 0 1px #008efb;
  background: #fff;
}

.site-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #c6ced8;
  color: #fff;
  padding: 0;
  cursor: pointer;
}

.site-search-clear.is-visible {
  display: inline-flex;
}

.site-search-clear svg {
  width: 12px;
  height: 12px;
}

.site-search-submit {
  background: #008efb;
  color: #fff;
  transition: background-color .18s ease;
}

.site-search-submit:hover {
  background: #0078d5;
}

.site-search-submit:disabled {
  cursor: not-allowed;
  background: #7cc8ff;
}

.site-search-suggest {
  display: none;
  margin-top: 0;
  border: 1px solid #eff5ff;
  border-top: 0;
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  max-height: 380px;
  overflow: auto;
}

.site-search-suggest.is-visible {
  display: block;
}

.site-search-suggest-list {
  list-style: none;
  margin: 0;
  padding: 14px 22px 4px;
}

.site-search-suggest-list li {
  border-bottom: 1px solid #eff5ff;
}

.site-search-suggest-list a {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  color: #233041;
  font-size: 13px;
  text-decoration: none;
}

.site-search-suggest-list a:hover {
  color: #008efb;
}

.site-search-suggest-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-search-suggest-date {
  color: #9aa7b9;
  font-size: 12px;
}

.site-search-suggest-empty,
.site-search-suggest-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  color: #9aa7b9;
  font-size: 13px;
}

.site-search-suggest-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0 20px;
}

.site-search-suggest-actions button {
  min-width: 88px;
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.site-search-cancel {
  background: #d93158;
}

.site-search-more {
  background: #008efb;
}

.site-search-history,
.site-search-hot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 24px;
  margin-top: 20px;
  color: #8b9bb0;
  font-size: 12px;
}

.site-search-hot {
  margin-top: 12px;
}

.site-search-history a,
.site-search-hot a {
  color: #62748e;
  text-decoration: none;
}

.site-search-history a:hover,
.site-search-hot a:hover {
  color: #008efb;
}

.site-search-history-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #eff5ff;
  border-radius: 3px;
  background: #f8fafc;
}

.site-search-history-chip button,
.site-search-history-clear {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
}

.site-search-history-chip button {
  width: 16px;
  height: 16px;
  background: transparent;
  color: #9aa7b9;
}

.site-search-history-clear {
  background: #d93158;
  color: #fff;
}

.site-search-history-clear svg,
.site-search-history-chip button svg {
  width: 14px;
  height: 14px;
}

body:has(.cms-search-page) {
  background: #f8f9fc;
}

body:has(.cms-search-page) header > section,
body:has(.cms-search-page) .article-header-shell {
  background: rgba(255, 255, 255, .96) !important;
  border-color: #eff5ff !important;
  box-shadow: 0 6px 24px rgba(15, 23, 42, .05);
}

body:has(.cms-search-page) header > section > section > section:first-child,
body:has(.cms-search-page) .article-header-top {
  border-color: #eff5ff !important;
}

body:has(.cms-search-page) header .menu-transparent-color,
body:has(.cms-search-page) header .header-buttons .n-button,
body:has(.cms-search-page) .article-header-shell,
body:has(.cms-search-page) .article-header-shell a,
body:has(.cms-search-page) .article-header-actions {
  color: #62748e !important;
}

.cms-search-page,
.cms-search-page * {
  box-sizing: border-box;
}

.cms-search-page .wrapper {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.cms-search-main {
  min-height: 680px;
  padding-top: 120px;
  background: #f8f9fc;
}

.cms-search-crumb {
  background: #fff;
  border-top: 1px solid #eff5ff;
  border-bottom: 1px solid #eff5ff;
}

.cms-search-crumb-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #62748e;
  font-size: 13px;
}

.cms-search-crumb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #62748e;
  text-decoration: none;
}

.cms-search-crumb-link:hover,
.cms-search-crumb-link[aria-current="page"] {
  color: #008efb;
}

.cms-search-crumb-separator {
  color: #9aa7b9;
}

.cms-search-shell {
  padding: 22px 0 40px;
}

.cms-search-panel,
.cms-search-pagination,
.cms-search-empty {
  background: #fff;
  border-color: #eff5ff;
}

.cms-search-panel {
  padding: 22px 20px 20px;
}

.cms-search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cms-search-panel-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.cms-search-panel-head span {
  color: #9aa7b9;
  font-size: 13px;
}

.cms-search-form {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) 64px;
  min-height: 46px;
  background: #f8fafc;
  border: 1px solid #eff5ff;
  border-radius: 3px;
}

.cms-search-type,
.cms-search-submit {
  height: 46px;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.cms-search-type {
  gap: 24px;
  color: #62748e;
  background: #f8fafc;
  border-right: 1px solid #eff5ff;
}

.cms-search-type svg {
  width: 14px;
  height: 14px;
  color: #b7c4d7;
}

.cms-search-form input[type="search"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
}

.cms-search-form input[type="search"]::placeholder {
  color: #9aa7b9;
}

.cms-search-submit {
  background: #008efb;
  color: #fff;
}

.cms-search-submit:hover {
  background: #0078d5;
}

.cms-search-results {
  margin-top: 18px;
}

.cms-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cms-search-card {
  overflow: hidden;
  background: #fff;
  border-color: #eff5ff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cms-search-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.cms-search-card-thumb {
  display: block;
  aspect-ratio: 1.6 / 1;
  overflow: hidden;
  background: #eef2f7;
}

.cms-search-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.cms-search-card:hover .cms-search-card-thumb img {
  transform: scale(1.04);
}

.cms-search-card-body {
  padding: 13px 12px 14px;
}

.cms-search-card-body h2 {
  min-height: 44px;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.48;
  font-weight: 700;
}

.cms-search-card-body h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #0f172a;
  text-decoration: none;
}

.cms-search-card-body h2 a:hover {
  color: #008efb;
}

.cms-search-card-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa7b9;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.cms-search-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.cms-search-card-meta a {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9aa7b9;
  text-decoration: none;
}

.cms-search-card-meta a:hover {
  color: #008efb;
}

.cms-search-card-spacer {
  flex: 1 1 auto;
}

.cms-search-empty {
  min-height: 260px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  color: #9aa7b9;
}

.cms-search-empty img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: .72;
}

.cms-search-empty strong {
  color: #8b9bb0;
  font-size: 15px;
}

.cms-search-pagination {
  margin-top: 18px;
  padding: 16px 18px;
}

.cms-search-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cms-search-page-nav a,
.cms-search-page-nav span {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #62748e;
  font-size: 13px;
  text-decoration: none;
}

.cms-search-page-nav a:hover,
.cms-search-page-nav a.active {
  color: #008efb;
  border-color: #008efb;
  background: #fff;
}

.cms-search-page-nav a.is-disabled {
  opacity: .45;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .cms-search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .site-search-modal {
    padding: 16px;
    align-items: flex-start;
  }

  .site-search-dialog {
    width: 100%;
    margin-top: 72px;
    max-height: calc(100vh - 96px);
    overflow: auto;
  }

  .site-search-head {
    padding: 22px 20px 14px;
  }

  .site-search-body {
    padding: 0 20px 24px;
  }

  .site-search-form {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .site-search-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-search-suggest-list {
    padding: 10px 14px 0;
  }

  .site-search-suggest-list a {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 8px 0;
  }

  .cms-search-page .wrapper {
    width: min(100% - 24px, 720px);
  }

  .cms-search-main {
    padding-top: 84px;
  }

  .cms-search-crumb-inner {
    min-height: 54px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .cms-search-shell {
    padding-top: 14px;
  }

  .cms-search-panel {
    padding: 18px 14px;
  }

  .cms-search-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .cms-search-panel-head h1 {
    font-size: 18px;
  }

  .cms-search-form {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .cms-search-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cms-search-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cms-search-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .cms-search-card-thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 116px;
  }

  .cms-search-card-body h2 {
    min-height: auto;
    font-size: 14px;
  }

  .cms-search-card-meta {
    flex-wrap: wrap;
    gap: 8px 10px;
    white-space: normal;
  }

  .cms-search-card-spacer {
    display: none !important;
  }
}
