/* ===== 全局提醒弹窗（模拟）：信息预警 / 线索发现 / 我的待办 ===== */
.ga-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}
.ga-card {
  pointer-events: auto;
  width: 330px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  cursor: pointer;
  transform: translateX(24px);
  opacity: 0;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .38s, box-shadow .2s;
  animation: gaIn .38s cubic-bezier(.2,.8,.2,1) both;
}
.ga-card.show { transform: translateX(0); opacity: 1; }
.ga-card.leaving { transform: translateX(24px); opacity: 0; }
@keyframes gaIn { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.ga-card:hover { box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.3), 0 2px 8px rgba(15, 23, 42, 0.08); }
.ga-top {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  font-size: 12px; font-weight: 700;
}
.ga-top .ga-ico { flex: none; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ga-top .ga-kind { flex: 1; }
.ga-top .ga-time { font-size: 10.5px; font-weight: 400; color: #94a3b8; }
.ga-top .ga-x {
  flex: none; width: 18px; height: 18px; border: none; border-radius: 5px;
  background: transparent; color: #94a3b8; font-size: 12px; line-height: 1;
  cursor: pointer; font-family: inherit; padding: 0;
}
.ga-top .ga-x:hover { background: rgba(15,23,42,.06); color: #475569; }
.ga-body { padding: 10px 12px 11px; }
.ga-title { font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.5; margin-bottom: 4px; }
.ga-text { font-size: 12px; color: #64748b; line-height: 1.6; }
.ga-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-top: 1px solid #f1f5f9; background: #f8fafc;
}
.ga-foot .ga-go { flex: 1; font-size: 11px; color: #0369a1; font-weight: 600; }
.ga-foot .ga-mute {
  border: none; background: transparent; color: #94a3b8; font-size: 11px;
  cursor: pointer; font-family: inherit; padding: 2px 4px; border-radius: 5px;
}
.ga-foot .ga-mute:hover { color: #64748b; background: rgba(15,23,42,.05); }
/* 类型配色 */
.ga-card.t-alert .ga-top { background: linear-gradient(90deg, rgba(220,38,38,.09), rgba(220,38,38,.02)); color: #dc2626; }
.ga-card.t-alert { border-top: 2px solid #dc2626; }
.ga-card.t-clue .ga-top { background: linear-gradient(90deg, rgba(217,119,6,.09), rgba(217,119,6,.02)); color: #d97706; }
.ga-card.t-clue { border-top: 2px solid #d97706; }
.ga-card.t-todo .ga-top { background: linear-gradient(90deg, rgba(2,132,199,.09), rgba(2,132,199,.02)); color: #0369a1; }
.ga-card.t-todo { border-top: 2px solid #0284c7; }
.ga-card.t-trend .ga-top { background: linear-gradient(90deg, rgba(124,58,237,.09), rgba(124,58,237,.02)); color: #7c3aed; }
.ga-card.t-trend { border-top: 2px solid #7c3aed; }
.ga-when {
  flex: none; padding: 1px 7px; border-radius: 999px;
  background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.22);
  color: #7c3aed; font-size: 10px; font-weight: 600; line-height: 1.5;
}

/* ===== 铃铛模式：关闭提醒后浮动在右侧，悬停左侧显示"开启提醒" ===== */
.ga-bell {
  position: fixed;
  right: 0;
  top: 62%;
  z-index: 9999;
  display: flex;
  align-items: center;
  pointer-events: auto;
}
.ga-bell-tip {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  background: #0f172a;
  color: #f8fafc;
  font-size: 12px;
  line-height: 36px;
  padding: 0;
  border-radius: 8px 0 0 8px;
  opacity: 0;
  transition: max-width .3s cubic-bezier(.2,.8,.2,1), opacity .3s, padding .3s;
}
.ga-bell:hover .ga-bell-tip { max-width: 120px; opacity: 1; padding: 0 12px 0 14px; }
.ga-bell-btn {
  flex: none;
  width: 40px; height: 44px;
  border: 1px solid #e2e8f0; border-right: none;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: -4px 6px 18px rgba(15,23,42,.12);
  position: relative;
  transition: color .2s, box-shadow .2s;
}
.ga-bell-btn:hover { color: #0369a1; box-shadow: -4px 8px 22px rgba(2,132,199,.18); }
.ga-bell-btn .ga-badge {
  position: absolute; top: -6px; left: -6px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  background: #dc2626; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.ga-bell-btn .ga-ring { animation: gaSwing 2.6s ease-in-out infinite; transform-origin: 50% 4px; display: flex; }
@keyframes gaSwing { 0%,72%,100% { transform: rotate(0); } 76% { transform: rotate(11deg); } 82% { transform: rotate(-9deg); } 88% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }

@media (max-width: 768px) {
html:not([data-fit]) .ga-card { width: calc(100vw - 32px); }
html:not([data-fit]) .ga-wrap { right: 16px; bottom: 16px; }
}
