/* ===== 全站搜索 SiteSearch 样式 ===== */
/* 主色：深蓝渐变 + 香槟金 #D4A017 点缀，白卡 */

.ss-wrap {
  position: relative;
  display: inline-flex;
  width: 100%;
  max-width: 420px;
}
/* 用于导航栏内已有的搜索框（桌面/移动），避免宽度溢出 */
.ss-wrap--nav { flex: 1; min-width: 0; width: auto; max-width: none; }
/* 页面内容区顶部挂载的全站搜索条 */
.ss-pagemount { max-width: 560px; margin: 0 auto 24px; }
@media (max-width: 640px) { .ss-pagemount { margin-bottom: 18px; } }
/* 浅色页面背景下的输入框配色（覆盖默认深色导航样式） */
.ss-pagemount .ss-input {
  background: #fff;
  color: #16263f;
  border: 1px solid #d9e0ec;
}
.ss-pagemount .ss-input::placeholder { color: #9aa3b5; }
.ss-pagemount .ss-input:focus { border-color: #D4A017; }
.ss-pagemount .ss-input__icon { color: #9aa3b5; }
.ss-pagemount .ss-input__clear { color: #9aa3b5; }

.ss-input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 40px 0 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ss-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.ss-input:focus {
  border-color: #D4A017;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}

.ss-input__icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  pointer-events: none;
}

.ss-input__clear {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: none;
}
.ss-input__clear:hover { color: #fff; }

/* 即时下拉建议 */
.ss-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 43, 91, 0.22);
  overflow: hidden;
  display: none;
  max-height: 380px;
  overflow-y: auto;
}
.ss-suggest__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid #f0f2f6;
  transition: background .15s;
}
.ss-suggest__item:last-child { border-bottom: none; }
.ss-suggest__item:hover,
.ss-suggest__item.is-active { background: #f6f8fc; }
.ss-suggest__icon {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: #eef2fb;
  border-radius: 8px;
  font-size: 17px;
}
.ss-suggest__body { display: flex; flex-direction: column; min-width: 0; }
.ss-suggest__title {
  color: #16263f;
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-suggest__meta {
  color: #8a93a6;
  font-size: 12px;
  margin-top: 2px;
}
.ss-suggest__item mark { background: rgba(212,160,23,.28); color: inherit; border-radius: 3px; padding: 0 1px; }

/* 结果页 */
.ss-result-head {
  margin: 0 0 18px;
  color: #2a3a55;
  font-size: 15px;
}
.ss-result-head b { color: #D4A017; }
.ss-group { margin-bottom: 28px; }
.ss-group__title {
  font-size: 17px;
  color: #16263f;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eef2fb;
}
.ss-group__count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  background: #f1f4fa;
  color: #5a6678;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.ss-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.ss-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ss-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 43, 91, 0.12);
  border-color: #D4A017;
}
.ss-card__icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #eef2fb;
  border-radius: 10px;
  font-size: 22px;
}
.ss-card__body { min-width: 0; }
.ss-card__title {
  color: #16263f;
  font-size: 15px; font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}
.ss-card__desc {
  color: #5a6678;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.ss-card__meta {
  color: #9aa3b5;
  font-size: 12px;
}
.ss-card mark, .ss-suggest mark { background: rgba(212,160,23,.30); color: inherit; border-radius: 3px; padding: 0 1px; }

.ss-empty {
  color: #5a6678;
  font-size: 15px;
  line-height: 1.8;
  padding: 30px;
  text-align: center;
  background: #f7f9fc;
  border-radius: 12px;
}
.ss-empty a { color: #D4A017; font-weight: 600; }

/* 结果页顶部搜索框（深色区） */
.ss-searchbar {
  display: flex;
  justify-content: center;
  padding: 30px 16px 10px;
}
.ss-searchbar .ss-wrap { max-width: 560px; }
.ss-searchbar .ss-input {
  height: 48px;
  border-radius: 24px;
  background: #fff;
  color: #16263f;
  border: 1px solid #d9e0ec;
  font-size: 15px;
}
.ss-searchbar .ss-input::placeholder { color: #9aa3b5; }
.ss-searchbar .ss-input:focus { border-color: #D4A017; }
.ss-searchbar .ss-input__icon { color: #9aa3b5; }
.ss-searchbar .ss-input__clear { color: #9aa3b5; }
