/* 顶栏搜索 + AI 智能解答 */
.ac-nav-search {
  position: relative;
  flex: 0 1 320px;
  max-width: 380px;
  min-width: 200px;
  z-index: 120;
}
.ac-nav-search-box {
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid #dce3ee;
  border-radius: 18px;
  background: #fff;
  padding: 0 10px 0 8px;
  gap: 8px;
}
.ac-nav-search.is-open .ac-nav-search-box,
.ac-nav-search-box:focus-within {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.12);
}
.ac-nav-search-ai {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0052d9 0%, #00a3ff 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}
.ac-nav-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #0f172a;
}
.ac-nav-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.ac-nav-search-clear {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.ac-nav-search-clear:hover {
  color: #64748b;
}

.ac-nav-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  min-width: 460px;
  max-width: 560px;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  box-shadow: 0 18px 48px -20px rgba(15, 23, 42, 0.35);
  padding: 0;
  overflow: hidden;
}

.ac-nsp-ai {
  padding: 12px 12px 0;
}
.ac-nsp-ai[hidden] {
  display: none !important;
}
.ac-nsp-ai-card {
  padding: 14px 14px 12px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(0, 163, 255, 0.1), transparent 55%),
    linear-gradient(160deg, #f4f8ff 0%, #f8fbff 100%);
  border: 1px solid rgba(0, 82, 217, 0.12);
}
.ac-nsp-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ac-nsp-ai-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 82, 217, 0.1);
  color: #0052d9;
  font-size: 11px;
  font-weight: 700;
}
.ac-nsp-ai-conf {
  font-size: 11px;
  color: #94a3b8;
}
.ac-nsp-ai-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.ac-nsp-ai-answer {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
}
.ac-nsp-ai-steps {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 12px;
  line-height: 1.7;
}
.ac-nsp-ai-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ac-nsp-ai-hint {
  border: 1px solid rgba(0, 82, 217, 0.16);
  background: #fff;
  color: #0052d9;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.ac-nsp-ai-hint:hover {
  background: #e8f1ff;
}
.ac-nsp-ai-sources {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
}
.ac-nsp-ai-sources > span {
  color: #94a3b8;
}
.ac-nsp-ai-sources a {
  color: #0052d9;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-nsp-ai-sources a:hover {
  text-decoration: underline;
}
.ac-nsp-ai-cta {
  display: inline-flex;
  margin-top: 12px;
  height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  background: #0052d9;
  color: #fff !important;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none !important;
}
.ac-nsp-ai-cta:hover {
  background: #0041b0;
}

.ac-nsp-sec-title {
  padding: 12px 16px 8px;
  font-size: 12px;
  font-weight: 650;
  color: #64748b;
}
.ac-nsp-hots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 0 16px 12px;
}
.ac-nsp-hots a {
  font-size: 13px;
  color: #1e293b;
  text-decoration: none;
}
.ac-nsp-hots a:hover {
  color: #0052d9;
}
.ac-nsp-hot-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  vertical-align: 1px;
}
.ac-nsp-suggest a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #1e293b;
  text-decoration: none;
}
.ac-nsp-suggest a:hover,
.ac-nsp-suggest a.is-active {
  background: #f5f8fc;
  color: #0052d9;
}

.ac-nsp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid #eef2f7;
}
.ac-nsp-col {
  padding: 12px 8px 8px;
}
.ac-nsp-col + .ac-nsp-col {
  border-left: 1px solid #eef2f7;
}
.ac-nsp-col h4 {
  margin: 0 8px 8px;
  font-size: 12px;
  font-weight: 650;
  color: #64748b;
}
.ac-nsp-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}
.ac-nsp-item:hover {
  background: #f5f8fc;
}
.ac-nsp-item-title {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.35;
}
.ac-nsp-item-meta {
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
}
.ac-nsp-tag {
  flex: 0 0 auto;
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 3px;
  padding: 1px 5px;
  margin-top: 2px;
}
.ac-nsp-empty {
  padding: 8px 16px 12px;
  font-size: 13px;
  color: #94a3b8;
}
.ac-nsp-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #eef2f7;
  background: #fbfcfe;
}
.ac-nsp-promo p {
  margin: 0;
  font-size: 12px;
  color: #475569;
}
.ac-nsp-promo a {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #00a870;
  text-decoration: none;
}
.ac-nsp-promo a:hover {
  text-decoration: underline;
}

body .navbar .container {
  overflow: visible !important;
}
body .navbar {
  overflow: visible !important;
}

@media (max-width: 980px) {
  .ac-nav-search {
    display: none;
  }
}
