/**
 * JXKit 工作台扩展效率工具箱样式 (workbench-tools.css)
 * 涵盖：更多快捷动作下拉菜单、合规审查报告浮窗、发布就绪度诊断卡
 */

/* 1. 更多操作下拉菜单 */
.dropdown-wrap {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-color);
  padding: 6px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: fadeInDown 0.15s ease;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.dropdown-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--text-muted);
}

.dropdown-item:hover svg {
  stroke: var(--accent-cf);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* 2. 发布就绪度诊断卡 (Publish Readiness Card) */
.readiness-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  gap: 12px;
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

.readiness-safe {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.readiness-warn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.readiness-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.readiness-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.readiness-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.readiness-safe .readiness-badge {
  background: #10b981;
  color: #ffffff;
}

.readiness-warn .readiness-badge {
  background: #f59e0b;
  color: #111827;
}

.readiness-danger .readiness-badge {
  background: #ef4444;
  color: #ffffff;
}

.readiness-desc {
  font-size: 0.86rem;
  color: var(--text-primary);
  font-weight: 500;
}

.readiness-action {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 3. 报告弹窗与 Toast 样式增强 */
.report-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--accent-cf);
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  animation: slideUpToast 0.25s ease;
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 分类筛选空状态与动效 */
.empty-filter-box {
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-filter-box svg {
  width: 36px;
  height: 36px;
  stroke: #10b981;
}

.empty-filter-box h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0;
}

.empty-filter-box p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

@keyframes pulseMark {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.12); filter: brightness(1.3); }
  100% { transform: scale(1); filter: brightness(1); }
}

.pulse-mark {
  animation: pulseMark 0.5s ease 2;
  display: inline-block;
  border-radius: 4px;
}

/* 4. 文案隐私与离线运行保障条 (Privacy Guarantee Bar) */
.privacy-guarantee-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

.privacy-guarantee-bar:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
}

.privacy-shield-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #10b981;
}

.privacy-shield-icon svg {
  width: 18px;
  height: 18px;
}

.privacy-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.privacy-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.privacy-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.privacy-offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pulse-green-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@media (max-width: 768px) {
  .privacy-guarantee-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .privacy-offline-badge {
    align-self: flex-start;
  }
}

/* 5. 爆款 Emoji 快捷抽屉 (Quick Emoji Drawer) */
.emoji-drawer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  animation: fadeInDown 0.15s ease;
}

.emoji-drawer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.emoji-btn-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  padding: 4px 7px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.emoji-btn-chip:hover {
  background: rgba(243, 128, 32, 0.15);
  border-color: var(--accent-cf);
  transform: scale(1.18);
}

/* 6. 漏检违禁词共建反馈入口 (Crowdsource Word Feedback Entry) */
.feedback-entry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  margin-top: 1rem;
  gap: 10px;
}

.feedback-entry-bar span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.btn-open-feedback {
  background: transparent;
  color: var(--accent-cf);
  border: 1px solid rgba(243, 128, 32, 0.35);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-open-feedback:hover {
  background: rgba(243, 128, 32, 0.12);
  border-color: var(--accent-cf);
}


