/* 全局搜索面板样式 */
.search-mask { position: fixed; inset: 0; background: rgba(10,18,36,.55); backdrop-filter: blur(3px); z-index: 400; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; animation: sfade .14s ease; }
@keyframes sfade { from { opacity: 0; } }
.search-panel { width: 640px; max-width: 100%; max-height: 78vh; background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(2,10,30,.35); display: flex; flex-direction: column; overflow: hidden; animation: spop .16s ease; }
@keyframes spop { from { transform: translateY(-10px) scale(.98); opacity: 0; } }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #EEF2F7; }
.search-bar .si { font-size: 16px; }
.search-bar input { flex: 1; border: none; outline: none; font-size: 15.5px; color: #1E293B; background: transparent; min-width: 0; }
.search-bar .sx { border: none; background: #F1F5F9; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: #64748B; font-size: 12px; flex: none; }
.search-domains { display: flex; gap: 6px; padding: 10px 14px; flex-wrap: wrap; border-bottom: 1px solid #F4F6FA; }
.sd-chip { border: 1px solid #E2E8F0; background: #F8FAFC; border-radius: 20px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; color: #475569; }
.sd-chip.on { background: #2563EB; border-color: #2563EB; color: #fff; }
.sd-chip i { font-style: normal; opacity: .75; margin-left: 3px; font-size: 11px; }
.search-results { flex: 1; overflow-y: auto; padding: 8px 10px 14px; }
.s-count { font-size: 12px; color: #94A3B8; padding: 6px 8px; }
.s-gt { font-size: 12.5px; font-weight: 700; color: #475569; padding: 10px 8px 4px; display: flex; align-items: center; gap: 6px; }
.s-gt i { font-style: normal; background: #EEF2F7; color: #64748B; font-size: 11px; border-radius: 10px; padding: 0 7px; }
.s-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.s-item:hover, .s-item.sel { background: #F0F6FF; }
.s-item .s-ico { font-size: 17px; flex: none; }
.s-mid { min-width: 0; flex: 1; }
.s-title { font-size: 13.5px; font-weight: 600; color: #1E293B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-sub { font-size: 12px; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.s-open { font-size: 11.5px; color: #2563EB; opacity: 0; flex: none; }
.s-item:hover .s-open, .s-item.sel .s-open { opacity: 1; }
.search-results mark { background: #FEF08A; border-radius: 2px; padding: 0 1px; }
.s-domgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 8px 4px; }
.s-dom { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 1px solid #EEF2F7; background: #FAFBFD; border-radius: 12px; padding: 12px 4px; font-size: 12.5px; color: #475569; cursor: pointer; }
.s-dom span { font-size: 19px; }
.s-dom:hover { border-color: #BFDBFE; background: #F0F6FF; }
.search-foot { border-top: 1px solid #F1F5F9; padding: 8px 16px; font-size: 11.5px; color: #B0BCCF; text-align: center; }

@media (max-width: 640px) {
  .search-mask { padding: 0; }
  .search-panel { width: 100%; max-height: 100vh; height: 100vh; height: 100dvh; border-radius: 0; }
  .search-bar { padding: max(14px, env(safe-area-inset-top)) 14px 12px; }
  .search-bar input { font-size: 16px; }
  .s-domgrid { grid-template-columns: repeat(3, 1fr); }
  .s-open { display: none; }
}
