/* 官网搜索页 · 产品/新闻 Tab 样式 */
.search-tabs {
  display: flex;
  gap: 12px;
  margin: 6px 0 20px;
}

.search-tabs .tab {
  appearance: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 9px 22px;
  cursor: pointer;
  color: #5b6577;
  background: #f4f6f9;
  border: 1.5px solid #e6e9f0;
  border-radius: 999px;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}

.search-tabs .tab:hover {
  color: #0f55c1;
  border-color: #b9cdf0;
  background: #eef3fb;
}

.search-tabs .tab.active {
  color: #fff;
  background: #0f55c1;
  border-color: #0f55c1;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 85, 193, .22);
}

.search-tabs .tab.active:hover {
  color: #fff;
  background: #0c47a3;
  border-color: #0c47a3;
}

@media (max-width: 767px) {
  .search-tabs {
    gap: 8px;
  }

  .search-tabs .tab {
    padding: 8px 15px;
    font-size: 13px;
  }
}

.search-panel {
  display: none;
}

.search-panel.active {
  display: block;
}

/* 共用搜索栏（Tab 上方：产品 & 新闻 共用同一个输入框 + 搜索按钮） */
.global-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 20px;
}

.global-search-input {
  flex: 1;
  height: 44px;
  line-height: 44px;
  border: 1.5px solid #b6bcc8;
  border-radius: 10px;
  padding: 0 16px 0 40px;
  font-size: 15px;
  color: #1f2329;
  outline: none;
  box-sizing: border-box;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%230f55c1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center;
  box-shadow: 0 2px 8px rgba(31, 35, 41, .10);
  transition: border-color .15s, box-shadow .15s;
}

.global-search-input::placeholder {
  color: #8a94a6;
}

.global-search-input:hover {
  border-color: #8b94a6;
  box-shadow: 0 3px 10px rgba(31, 35, 41, .12);
}

.global-search-input:focus {
  border-color: #0f55c1;
  box-shadow: 0 0 0 3px rgba(15, 85, 193, .14);
}

.global-search-btn {
  height: 44px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  background: #0f55c1;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(15, 85, 193, .18);
}

.global-search-btn:hover {
  background: #0c47a3;
  box-shadow: 0 4px 12px rgba(15, 85, 193, .28);
}

.global-search-btn:active {
  transform: translateY(1px);
}

@media (max-width: 767px) {
  .global-search-input {
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    padding: 0 14px 0 38px;
  }

  .global-search-btn {
    padding: 0 18px;
    height: 40px;
    font-size: 14px;
  }

  .global-search-input:focus {
    box-shadow: 0 0 0 1px rgba(15, 85, 193, .14);
  }
}

/* ============ 结果列表：对齐 demo 单行卡片（产品 & 新闻 共用） ============ */
.search_cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-card {
  display: block;
  background: #fff;
  border: 1px solid #ebedf0;
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: #1f2329;
  box-sizing: border-box;
  transition: border-color .12s, box-shadow .12s;
}

.result-card:hover {
  border-color: #d8dde6;
  box-shadow: 0 2px 10px rgba(31, 35, 41, .05);
}

/* 站点名 / 分类：纯灰字，弱化（非色块） */
.result-card .rc-badge {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: #8a94a6;
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.result-card .rc-main {
  display: block;
}

.result-card .rc-title {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: #1f2329;
  line-height: 1.45;
  margin: 0 0 5px;
  transition: color .12s;
}

.result-card:hover .rc-title {
  color: #2b6cff;
}

.result-card .rc-desc {
  font-size: 13px;
  line-height: 22px;
  color: #5b6577;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 来源 / 日期：底部弱灰字 */
.result-card .rc-meta {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: #aab2c0;
  margin-top: 7px;
  word-break: break-all;
}

/* 高亮：仅变色（蓝），透明底、不加粗 —— 同 demo */
.result-card mark {
  background: transparent;
  color: #2b6cff;
  padding: 0;
  border-radius: 0;
}

.search_empty {
  padding: 40px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* 分页样式统一在 searchList.css 的 .search_lists_pagination（沿用原本新闻分页：文本链接） */

/* ============ 案例卡片：左侧 logo（复刻老版 /case/toSeach 列表的 logo 框） ============ */
/* 仅 .rc-haslogo（案例有 logoimg 时）生效；产品卡 / 无 logo 案例卡保持原纯文本样式 */
.result-card.rc-haslogo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-card .rc-logo {
  flex: 0 0 auto;
  width: 128px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #EDEDED;
  border-radius: 6px;
  padding: 8px;
  box-sizing: border-box;
}

.result-card .rc-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.result-card .rc-body {
  flex: 1;
  min-width: 0;
}

/* 移动端 */
@media (max-width: 767px) {
  .result-card {
    padding: 14px 16px;
  }

  .result-card.rc-haslogo {
    gap: 12px;
  }

  .result-card .rc-logo {
    width: 76px;
    height: 58px;
    padding: 5px;
  }

  .result-card .rc-badge {
    font-size: 11px;
    line-height: 16px;
  }

  .result-card .rc-title {
    font-size: 13px;
    line-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .result-card .rc-desc {
    font-size: 11px;
    line-height: 18px;
  }

  .result-card .rc-meta {
    font-size: 12px;
    line-height: 18px;
  }
}

/* ============ 「全部」聚合 Tab：产品/案例/新闻 分组展示 ============ */
.agg-section {
  margin-bottom: 26px;
}

.agg-section:last-child {
  margin-bottom: 0;
}

.agg-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 2px 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ebedf0;
}

.agg-head .agg-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2329;
}

.agg-head .agg-count {
  font-size: 13px;
  color: #8a94a6;
}

.agg-head .agg-more {
  margin-left: auto;
  font-size: 13px;
  color: #0f55c1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.agg-head .agg-more:hover {
  text-decoration: underline;
}

/* 聚合视图内新闻列表收紧些（只展示 TOP_N，不需要大间距） */
.agg-section .search_lists ul li {
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  .agg-section {
    margin-bottom: 20px;
  }

  .agg-head .agg-title {
    font-size: 15px;
  }
}