/* ---------- 站内搜索 ---------- */
.search-hero { padding: 34px 0 8px; }
.search-hero h1 { font-size: 26px; margin-bottom: 6px; }
.search-hero p { color: var(--muted); font-size: 14.5px; }

.search-bar { display: flex; gap: 10px; margin: 22px 0 12px; }
.search-bar input {
  flex: 1; height: 46px; padding: 0 16px; font-size: 16px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
  color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.search-bar button {
  height: 46px; padding: 0 22px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 15px; cursor: pointer;
}
.search-bar button:hover { background: #1d4ed8; }

.hot-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.hot-row a {
  padding: 4px 11px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); color: var(--text); text-decoration: none;
}
.hot-row a:hover { border-color: var(--accent); color: var(--accent); }

.type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.type-chips button {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); font-size: 13.5px; cursor: pointer;
}
.type-chips button em { font-style: normal; opacity: .65; margin-left: 4px; font-size: 12px; }
.type-chips button.on { background: var(--accent-soft); border-color: #bfdbfe; color: #1d4ed8; font-weight: 600; }

.search-meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; min-height: 20px; }
.search-meta b { color: var(--text); }

.results { display: flex; flex-direction: column; gap: 10px; padding-bottom: 40px; }
.sr {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.sr:hover { border-color: #bfdbfe; box-shadow: 0 6px 18px rgba(16,24,40,.06); }
.sr-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sr-top h3 { font-size: 16px; font-weight: 600; }
.sr-type {
  font-size: 11.5px; padding: 2px 8px; border-radius: 6px; flex: 0 0 auto;
  background: #f1f5f9; color: #475569;
}
.sr-type.t-事件 { background: #fef2f2; color: #b91c1c; }
.sr-type.t-法规 { background: #ecfdf5; color: #047857; }
.sr-type.t-导航 { background: #ecfeff; color: #0e7490; }
.sr-type.t-工具 { background: #f5f3ff; color: #6d28d9; }
.sr-type.t-发展史 { background: #eff6ff; color: #1d4ed8; }
.sr-type.t-招聘 { background: #fffbeb; color: #b45309; }
.sr-type.t-制度 { background: #f0fdf4; color: #15803d; }
.sr-type.t-页面 { background: #eef2ff; color: #4338ca; }
.sr-year { font-size: 12px; color: var(--muted); margin-left: auto; }
.sr p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.sr .path { font-size: 12px; color: #94a3b8; margin-top: 6px; word-break: break-all; }
.sr mark { background: #fef08a; color: inherit; padding: 0 1px; border-radius: 2px; }

.sr-empty { padding: 40px 0 60px; text-align: center; color: var(--muted); }
.sr-empty b { color: var(--text); }
.sr-empty .tips { margin-top: 14px; font-size: 13.5px; line-height: 2; }
.sr-empty .tips a { color: var(--accent); text-decoration: none; }

@media (max-width: 760px) {
  .search-bar input { font-size: 15px; height: 42px; }
  .search-bar button { height: 42px; padding: 0 16px; }
}
