/* QIMG 前端提示条样式表
 * 由后端 admin/assets/admin.css 的 #bannerStack / .top-banner 组件原样移植。
 * 顶部胶囊横幅（非弹窗），与后端「隐私模式已开启」提示条同一套 UI。
 */

#bannerStack {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 24px;
  width: auto;
  min-width: 0;
  max-width: 88%;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}

.top-banner.show { opacity: 1; transform: translateY(0); }
.top-banner.hide { opacity: 0; transform: translateY(-10px); }

.top-banner svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.top-banner.success { background: #15803d; color: #ffffff; border-color: #15803d; }
.top-banner.warning { background: #f59e0b; color: #ffffff; border-color: #f59e0b; }
.top-banner.off     { background: #18181b; color: #ffffff; border-color: #18181b; }
.top-banner.neutral { background: var(--hover-bg, rgba(15, 23, 42, 0.06)); color: var(--text-muted); border-color: var(--panel-border); }

.top-banner svg.bn-solid { fill: currentColor; stroke: none; }
.top-banner svg.bn-solid * { fill: currentColor; stroke: none; }

@media (max-width: 640px) {
  .top-banner { padding: 10px 18px; font-size: 14px; max-width: 92%; }
  .top-banner svg { width: 20px; height: 20px; }
}
