/* 官网用户反馈悬浮组件 · 与股策雷达官网风格一致（深色 + indigo/purple 渐变） */
#fb-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#fb-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.45);
}
#fb-fab svg { width: 18px; height: 18px; }

#fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 16, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#fb-overlay.fb-show { display: flex; }

#fb-modal {
  width: min(420px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: rgba(14, 14, 30, 0.96);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 24px;
  color: #e6e6f0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  animation: fb-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fb-pop {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
#fb-modal h3 { margin: 0 0 4px; font-size: 18px; }
#fb-modal .fb-sub { margin: 0 0 18px; color: #8b8ba7; font-size: 12px; }
.fb-field { margin-bottom: 14px; }
.fb-field label { display: block; margin-bottom: 6px; font-size: 13px; color: #b9b9d6; }
.fb-field select,
.fb-field textarea,
.fb-field input {
  width: 100%;
  box-sizing: border-box;
  background: #0e0e1e;
  color: #e6e6f0;
  border: 1px solid #2a2a44;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}
.fb-field select:focus,
.fb-field textarea:focus,
.fb-field input:focus { border-color: #6366f1; }
.fb-field textarea { resize: vertical; min-height: 96px; }
.fb-field .fb-count { float: right; color: #6b6b88; font-size: 12px; }
.fb-actions { display: flex; gap: 10px; margin-top: 6px; }
.fb-submit {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fb-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35); }
.fb-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.fb-cancel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #a1a1c0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
}
.fb-cancel:hover { color: #fff; border-color: #6366f1; }
#fb-msg { margin-top: 12px; font-size: 13px; min-height: 18px; }
#fb-msg.ok { color: #3fb950; }
#fb-msg.err { color: #f85149; }
.fb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1c0;
  font-size: 16px;
  cursor: pointer;
}
.fb-close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
#fb-modal { position: relative; }
