/* CSS变量定义 */
:root {
  /* 浅色主题 */
  --bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --bg-secondary: rgba(255, 255, 255, 1);
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-hover: rgba(255, 255, 255, 0.95);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-color: rgba(203, 213, 225, 0.6);
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --accent-color: #667eea;
  --success-color: #48bb78;
  --scrollbar-track: rgba(0, 0, 0, 0.05);
  --scrollbar-thumb: rgba(0, 0, 0, 0.2);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.3);
  --accent-primary: #667eea;
  --focus-shadow-color: rgba(102, 126, 234, 0.1);
}

/* 深色主题 */
[data-theme="dark"] {
  --bg-primary: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  --bg-secondary: rgba(26, 32, 44, 0.95);
  --bg-glass: rgba(26, 32, 44, 0.7); /* 调整为深色背景 */
  --bg-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #a0aec0;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  --accent-color: #63b3ed;
  --scrollbar-track: rgba(255, 255, 255, 0.05);
  --scrollbar-thumb: rgba(255, 255, 255, 0.2);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.3);
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 覆盖Chrome扩展的默认样式 */
:root, html, body, .container {
  background: var(--bg-primary) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html, body {
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

/* 容器样式 */
.container {
  width: 380px;
  height: 600px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative; /* 为绝对定位的右键菜单提供定位基准 */
}

/* 头部样式 */
.header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-primary);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 通用按钮样式 */
.header-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-button:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-button svg {
  width: 16px;
  height: 16px;
}

/* URL按钮状态样式 */
#urlToggle {
  position: relative;
  transition: all 0.2s ease;
}

/* URL按钮开启状态 */
#urlToggle.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* URL按钮关闭状态 */
#urlToggle:not(.active) {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

/* URL按钮悬停效果 */
#urlToggle.active:hover {
  background: var(--accent-primary);
  opacity: 0.9;
  transform: translateY(-1px);
}

#urlToggle:not(.active):hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}



/* 搜索容器 */
.search-container {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
  pointer-events: all;
}

.search-input {
  width: 100%;
  height: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 32px 0 12px;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--focus-shadow-color);
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  opacity: 0;
  visibility: hidden;
}

.search-clear.visible {
  opacity: 1;
  visibility: visible;
}

.search-clear:hover {
  color: var(--text-secondary);
}

.search-clear svg {
  width: 14px;
  height: 14px;
}

/* 主题颜色设置容器 */
.scrollbar-settings-container {
  position: relative;
}



/* 主题颜色设置面板 */
.theme-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: -50px;
  width: 240px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

/* 面板顶部小三角箭头 */
.theme-panel::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 56px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--border-color);
  z-index: 1;
}

.theme-panel::after {
  content: '';
  position: absolute;
  top: -7px;
  right: 56px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--bg-secondary);
  z-index: 2;
}

.theme-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.panel-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.color-group {
  margin-bottom: 8px;
}

.color-presets {
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.color-preset {
  width: 24px;
  height: 24px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.color-preset:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-preset.active {
  border-color: var(--accent-color);
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
  transform: scale(1.1);
}

/* 主题描述文字 */
.theme-description {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.theme-description span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 主内容区域 */
.main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* 骨架屏样式 */
.skeleton-container {
  padding: 12px 16px;
}

.skeleton-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-icon {
  width: 32px;
  height: 32px;
  background: #e2e8f0;
  border-radius: 8px;
  flex-shrink: 0;
}

.skeleton-content {
  flex: 1;
  position: relative;
  min-height: 50px;
}

.skeleton-title {
  height: 16px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 8px;
  width: 80%;
}

.skeleton-date {
  height: 12px;
  background: #f1f5f9;
  border-radius: 4px;
  width: 40%;
  position: absolute;
  right: 0;
  bottom: 0;
}

@keyframes skeleton-loading {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 书签容器 */
.bookmarks-container {
  height: 100%;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}

/* 自定义滚动条 */
.bookmarks-container::-webkit-scrollbar {
  width: 6px;
}

.bookmarks-container::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 3px;
}

.bookmarks-container::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

.bookmarks-container::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* 书签列表 */
.bookmarks-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

/* 日期分组样式 */
.date-group {
  margin: 0;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  margin: 0;
  background: #f8f9fa;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  width: 100%;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .group-title {
  background: #2d3748;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.group-icon {
  width: 10px;
  height: 10px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.group-bookmarks {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}

/* 书签项样式 - 简洁布局 */
.bookmark-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  border: none;
  margin: 0;
}

.bookmark-item:hover {
  background: #f5f5f5;
}

[data-theme="dark"] .bookmark-item {
  background-color: #1a202c;
}

[data-theme="dark"] .bookmark-item:hover {
  background-color: #2d3748;
}

/* 图标外层包装器 - 灰色圆角矩形背景 */
.bookmark-icon-wrapper {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative; /* 为加载动画提供定位基准 */
  overflow: hidden; /* 确保内容不会溢出 */
}

[data-theme="dark"] .bookmark-icon-wrapper {
  background: #4a5568;
}

.bookmark-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.bookmark-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 图标状态样式 */
.bookmark-icon.fallback,
.bookmark-icon.success {
  background: transparent;
}

/* 加载状态动画 - 在外层容器中心显示 */
.bookmark-icon-wrapper.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid #e2e8f0;
  border-top: 2px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
  box-sizing: border-box;
}

/* 深色主题下的加载动画 */
[data-theme="dark"] .bookmark-icon-wrapper.loading::before {
  border: 2px solid #4a5568;
  border-top: 2px solid var(--accent-primary);
}

/* 加载时隐藏内部内容 */
.bookmark-icon.loading {
  opacity: 0;
}

.bookmark-content {
  flex: 1;
  min-width: 0;
}

.bookmark-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  margin-bottom: 2px;
}

.bookmark-meta {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.1;
}

.bookmark-url,
.bookmark-date {
  display: inline;
  white-space: nowrap;
}

.bookmark-url {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-separator {
  display: inline-block;
  width: 3px;
  height: 3px;
  background-color: var(--text-muted);
  border-radius: 50%;
  margin: 0 4px;
  vertical-align: middle;
}

/* 加载指示器 */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  color: var(--accent-primary);
  font-size: 14px;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
  width: 100%;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 无更多数据提示 */
.no-more-data {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  color: var(--text-secondary);
  font-size: 14px;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
  width: 100%;
}

.no-more-data svg {
  width: 18px;
  height: 18px;
  color: var(--success-color);
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
  color: var(--text-muted);
  background: transparent;
  margin: 0;
  padding: 20px;
  width: 100%;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.7;
  color: var(--text-secondary);
}

.empty-state h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 底部操作区域 */
.footer {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  flex-shrink: 0;
}

.manager-button {
  width: 100%;
  height: 32px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.manager-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.manager-icon {
  width: 14px;
  height: 14px;
}


/* 回到顶部按钮 */
.back-to-top {
  position: absolute;
  bottom: 70px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(50px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.back-to-top.visible:hover {
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

.back-to-top.visible:active {
  transform: translateX(0) scale(0.95);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

/* 隐藏状态 */
.hidden {
  display: none !important;
}

/* 响应式设计 */
@media (max-width: 400px) {
  .container {
    width: 320px;
  }
  
  .bookmark-item {
    padding: 10px;
  }
  
  .bookmark-icon {
    width: 16px;
    height: 16px;
  }
  
  .bookmark-title {
    font-size: 13px;
  }
  
  .bookmark-date {
    font-size: 11px;
  }
}

/* 搜索结果高亮 */
.bookmark-title .highlight {
  background: var(--accent-color);
  color: white;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
}

/* 右键菜单样式 */
.context-menu {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0; /* 移除上下间距，消除割裂感 */
  min-width: 140px;
  max-width: 200px; /* 进一步减小宽度，使菜单更紧凑 */
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease; /* 只对特定属性做过渡 */
  backdrop-filter: blur(20px);
  display: none; /* 默认完全隐藏 */
  overflow: hidden; /* 确保圆角效果完整 */
  contain: layout style; /* 优化渲染性能，防止布局抖动 */
}

.context-menu.visible {
  display: block; /* 显示时设置为block */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease; /* 只对背景和阴影做过渡，避免影响布局 */
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
  border-radius: 0; /* 移除默认圆角 */
}

/* 第一个菜单项的圆角 */
.context-menu-item:first-child {
  border-radius: 8px 8px 0 0; /* 只有顶部圆角 */
}

/* 最后一个菜单项的圆角 */
.context-menu-item:last-child {
  border-radius: 0 0 8px 8px; /* 只有底部圆角 */
}

/* 如果只有一个菜单项，四个角都要圆角 */
.context-menu-item:only-child {
  border-radius: 8px;
}

.context-menu-item:hover {
  background: var(--bg-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 简单的阴影效果 */
}

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

.context-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2); /* 红色阴影 */
}

.context-menu-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block; /* 避免inline元素的基线对齐问题 */
}

.context-menu-item .menu-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 1.2em; /* 确保文本区域有固定的最小高度 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直居中对齐 */
}

.context-menu-item .folder-path {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}



/* 按钮提示框样式 - 浅色主题 */
.button-tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 6px 10px;
  z-index: 10003; /* 比其他tooltip更高 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
  pointer-events: none;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  max-width: 200px;
}

.button-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.button-tooltip-content {
  color: inherit;
}

/* 深色主题下的按钮提示框 */
[data-theme="dark"] .button-tooltip {
  background: rgba(45, 55, 72, 0.95);
  color: #f7fafc;
  border: 1px solid rgba(75, 85, 99, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* URL悬停提示框样式 - 浅色主题 */
.url-tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  z-index: 10001; /* 比右键菜单稍高 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(20px);
  pointer-events: none; /* 避免鼠标事件干扰 */
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  left: 10px; /* 固定左边距 */
  right: 10px; /* 固定右边距 */
  width: auto; /* 自动宽度 */
  max-width: none; /* 移除最大宽度限制，由left和right控制 */
}

/* 短URL时的自适应宽度样式 */
.url-tooltip.short-url {
  right: auto; /* 取消固定右边距 */
  max-width: 300px; /* 设置最大宽度防止过宽 */
  min-width: 60px; /* 设置最小宽度 */
}

/* 深色主题下的URL提示框 */
[data-theme="dark"] .url-tooltip {
  background: rgba(45, 55, 72, 0.95);
  color: #f7fafc;
  border: 1px solid rgba(75, 85, 99, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.url-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.url-tooltip-content {
  word-break: break-all;
  word-wrap: break-word;
  white-space: normal;
}

/* 右键菜单箭头样式 */
.context-menu-item.with-arrow::after {
  content: '→';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  font-weight: 900;
  font-size: 16px;
  opacity: 0;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.context-menu-item.with-arrow:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* 复制成功提示样式 */
.copy-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(34, 197, 94, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.copy-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.copy-toast svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* 删除成功提示样式 */
.delete-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(239, 68, 68, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.delete-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.delete-toast svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}