.context-menu {
  position: fixed;
  z-index: 99999;
  min-width: 200px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 35, 45, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4px;
  color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
              0 1px 3px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.95);
  transform-origin: top left;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.context-menu.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.context-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.1s ease;
  user-select: none;
  color: #e2e8f0;
}

.context-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.context-menu-item:active {
  background: rgba(255, 255, 255, 0.15);
}

.context-menu-item.disabled {
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.5;
}

.context-menu-item.disabled:hover {
  background: transparent;
}

.context-menu-item .label {
  flex: 1;
}

.context-menu-item .shortcut {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
  font-family: 'Consolas', 'Monaco', monospace;
}

.context-menu-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 4px;
}

.context-menu-item.danger {
  color: #fca5a5;
}

.context-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

/* 勾选指示器样式 */
.context-menu-item .check-indicator {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.context-menu-item .check-indicator svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.15s ease;
}

.context-menu-item .check-indicator.active svg {
  opacity: 1;
  transform: scale(1);
}

/* 浅色主题适配 */
.light-theme .context-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15),
              0 1px 3px rgba(0, 0, 0, 0.1);
}

.light-theme .context-menu-item {
  color: #1e293b;
}

.light-theme .context-menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
}

.light-theme .context-menu-item:active {
  background: rgba(0, 0, 0, 0.1);
}

.light-theme .context-menu-item.disabled {
  color: #94a3b8;
}

.light-theme .context-menu-separator {
  background: rgba(0, 0, 0, 0.1);
}

.light-theme .context-menu-item .shortcut {
  color: #64748b;
}

.light-theme .context-menu-item.danger {
  color: #dc2626;
}

.light-theme .context-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}


