/* 全站导航栏模糊搜索框（shared） */
.site-search { position: relative; display: flex; align-items: center; }
.site-search-box {
  display: flex; align-items: center; gap: 0.5rem;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 0.4rem 0.75rem; width: 170px;
  transition: width .2s, border-color .15s, background .15s;
}
.site-search-box:focus-within { border-color: #2563eb; background: #fff; width: 230px; }
.site-search-box svg { flex-shrink: 0; color: #94a3b8; }
.site-search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 0.85rem; font-family: inherit; color: #0f172a; min-width: 0;
}
.site-search-box input::placeholder { color: #94a3b8; }
.site-search-results {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-width: 90vw;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 12px 44px rgba(15,23,42,0.16);
  max-height: 420px; overflow-y: auto; z-index: 300; display: none;
}
.site-search-results.show { display: block; }
.ssr-item {
  display: flex; gap: 0.8rem; align-items: center; padding: 0.75rem 0.9rem;
  cursor: pointer; border-bottom: 1px solid #edf1f7; text-decoration: none; color: inherit;
}
.ssr-item:last-child { border-bottom: none; }
.ssr-item:hover { background: #f6f8fb; }
.ssr-item img { width: 42px; height: 42px; object-fit: contain; background: #fff; border: 1px solid #edf1f7; border-radius: 8px; flex-shrink: 0; }
.ssr-name { font-weight: 600; font-size: 0.88rem; color: #0f172a; }
.ssr-sub { font-size: 0.76rem; color: #94a3b8; margin-top: 0.1rem; }
.ssr-empty { padding: 1.1rem; text-align: center; color: #94a3b8; font-size: 0.84rem; }
.ssr-empty a { font-weight: 600; color: #2563eb; }
@media(max-width: 860px) { .site-search-box { width: 120px; } .site-search-box:focus-within { width: 150px; } }

/* ── Mobile nav (hamburger) ── */
.nav-toggle { display:none; background:none; border:none; font-size:1.5rem; line-height:1; cursor:pointer; color:var(--text-primary); padding:0.3rem 0.4rem; }
@media(max-width: 860px) {
  .nav-toggle { display:block; margin-left:auto; }
  .nav-inner { flex-wrap:wrap; height:auto; padding:0.6rem 1.5rem; }
  .nav-logo { font-size:1rem; }
  .nav-cta { padding:0.4rem 0.8rem; font-size:0.75rem; white-space:nowrap; }
  .nav-links, .nav .site-search { display:none; }
  .nav-inner.open .nav-links { display:flex; flex-direction:column; width:100%; order:10; gap:0; padding-top:0.4rem; }
  .nav-inner.open .nav-links a { display:block; padding:0.7rem 0; font-size:1rem; border-bottom:1px solid var(--border-soft); }
  .nav-inner.open .nav-links a:last-child { border-bottom:none; }
  .nav-inner.open .site-search { display:flex; width:100%; order:11; padding:0.6rem 0 0.5rem; }
  .nav-inner.open .site-search-box { width:100%; }
}
/* ── Tables scroll on small screens ── */
@media(max-width: 600px) {
  .spec-table, table.spec { display:block; overflow-x:auto; white-space:nowrap; -webkit-overflow-scrolling:touch; }
}
