/* 右侧抽屉式书签栏样式 */

/* 右边缘触发区域 */
.bookmarks-edge-trigger {
  position: fixed;
  top: 0;
  right: 0;
  width: 8px;
  height: 100vh;
  z-index: 999;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
  /* 调试时可以添加背景色查看区域 */
  /* background: rgba(255, 0, 0, 0.1); */
}

/* 鼠标悬停时显示细线提示 */
.bookmarks-edge-trigger:hover {
  background: none;
  width: 8px;
}

/* 浅色主题下的边缘触发区域悬停效果 */
body.light-theme .bookmarks-edge-trigger:hover {
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(139, 115, 85, 0.7) 25%,
    rgba(139, 115, 85, 0.9) 50%,
    rgba(139, 115, 85, 0.7) 75%,
    transparent 80%
  );
  box-shadow: -2px 0 8px rgba(139, 115, 85, 0.4);
}

/* 当侧边栏打开时隐藏触发区域 */
.bookmarks-edge-trigger.hidden {
  pointer-events: none;
  opacity: 0;
}

/* 遮罩层 */
.bookmarks-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.bookmarks-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 右侧抽屉式侧边栏 */
.bookmarks-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: rgba(28, 28, 28, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1001;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.bookmarks-sidebar.active {
  transform: translateX(0);
}

/* 侧边栏头部 */
.bookmarks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.bookmarks-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.4em;
  font-weight: 600;
}

.bookmarks-close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.bookmarks-close:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff4444;
  transform: scale(1.1);
}

.bookmarks-close i {
  font-size: 16px;
}

/* 分类标签 */
.bookmarks-tabs {
  display: flex;
  flex-direction: column;
  padding: 20px 15px 10px;
  gap: 8px;
}

.bookmark-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 12px;
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  border-left: 3px solid transparent;
}

.bookmark-tab:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.bookmark-tab.active {
  background: var(--link-hover-bg);
  color: var(--link-hover-text);
  opacity: 1;
  border-left-color: #ffffff;
  transform: translateX(5px);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.bookmark-tab i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.bookmark-tab span {
  font-weight: 600;
}

/* 书签内容区域 */
.bookmarks-content {
  padding: 10px 15px 20px;
  min-height: calc(100vh - 200px);
}

.bookmark-category {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.bookmark-category.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* 书签列表 */
.bookmark-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 书签项目 */
.bookmark-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  draggable: true;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bookmark-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.bookmark-item:hover::before {
  left: 100%;
}

.bookmark-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
  border-left-color: var(--link-hover-text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.bookmark-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.bookmark-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.bookmark-item:hover .bookmark-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.bookmark-icon i {
  font-size: 18px;
  color: inherit;
}

.bookmark-info {
  flex: 1;
  overflow: hidden;
}

.bookmark-name {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-description {
  font-size: 13px;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-item:hover .bookmark-description {
  opacity: 0.9;
}

/* 外部链接图标 */
.bookmark-external {
  opacity: 0.5;
  font-size: 14px;
  transition: all 0.3s ease;
}

.bookmark-item:hover .bookmark-external {
  opacity: 1;
}

/* 空状态 */
.empty-bookmarks {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-color);
  opacity: 0.6;
}

.empty-bookmarks i {
  font-size: 3em;
  margin-bottom: 15px;
  opacity: 0.5;
}

.empty-bookmarks p {
  font-size: 16px;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .bookmarks-sidebar {
    width: 300px;
  }
  
  .bookmarks-edge-trigger {
    width: 12px; /* 移动端触发区域稍宽一些 */
  }
  
  .bookmark-item {
    padding: 12px 15px;
    gap: 12px;
  }
  
  .bookmark-icon {
    width: 36px;
    height: 36px;
  }
  
  .bookmark-icon i {
    font-size: 16px;
  }
  
  .bookmark-name {
    font-size: 15px;
  }
  
  .bookmark-description {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .bookmarks-sidebar {
    width: 100%;
    border-left: none;
  }
  
  .bookmarks-edge-trigger {
    width: 15px; /* 手机端触发区域更宽，方便触摸 */
  }
  
  .bookmark-item {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .bookmark-icon {
    width: 32px;
    height: 32px;
  }
  
  .bookmark-icon i {
    font-size: 14px;
  }
  
  .bookmark-name {
    font-size: 14px;
  }
  
  .bookmark-description {
    font-size: 11px;
  }
}

/* 背景图片模式下的样式优化 */
body[style*="background-image"] .bookmarks-sidebar {
  background: rgba(28, 28, 28, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}

body[style*="background-image"] .bookmarks-header {
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body[style*="background-image"] .bookmark-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body[style*="background-image"] .bookmark-item:hover {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 亮色主题下背景图片模式的样式 */
body.light-theme[style*="background-image"] .bookmarks-sidebar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme[style*="background-image"] .bookmarks-header {
  background: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme[style*="background-image"] .bookmark-item {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme[style*="background-image"] .bookmark-item:hover {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* 浅色主题适配 */
body.light-theme .bookmarks-sidebar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: -3px 0 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .bookmarks-header {
  background: linear-gradient(135deg, 
    rgba(139, 115, 85, 0.08) 0%, 
    rgba(139, 115, 85, 0.05) 100%);
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

body.light-theme .bookmarks-header h3 {
  color: #2c2c2c;
  font-weight: 700;
}

body.light-theme .bookmarks-close {
  background: rgba(139, 115, 85, 0.1);
  color: #666;
}

body.light-theme .bookmarks-close:hover {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

body.light-theme .bookmark-tab {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .bookmark-tab:hover {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.9);
}

body.light-theme .bookmark-tab.active {
  background: rgba(139, 115, 85, 0.15);
  color: #8b7355;
  border-left-color: #8b7355;
  box-shadow: 0 3px 15px rgba(139, 115, 85, 0.1);
}

body.light-theme .bookmark-item {
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid transparent;
  color: #4a4a4a;
}

body.light-theme .bookmark-item:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #2c2c2c;
  border-left-color: #8b7355;
  transform: translateX(5px);
  box-shadow: 0 3px 15px rgba(139, 115, 85, 0.15);
}

body.light-theme .bookmark-icon {
  background: rgba(139, 115, 85, 0.12);
  color: #8b7355;
}

body.light-theme .bookmark-item:hover .bookmark-icon {
  background: rgba(139, 115, 85, 0.2);
  color: #6d5a42;
  transform: scale(1.05);
}

body.light-theme .bookmark-name {
  color: inherit;
  font-weight: 600;
}

body.light-theme .bookmark-description {
  color: #666;
  opacity: 0.8;
}

body.light-theme .bookmark-item:hover .bookmark-description {
  color: #555;
  opacity: 1;
}

body.light-theme .bookmark-external {
  color: #8b7355;
  opacity: 0.6;
}

body.light-theme .bookmark-item:hover .bookmark-external {
  color: #6d5a42;
  opacity: 1;
}

/* 首次访问提示框 */
.bookmarks-tip {
  background: var(--app-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.bookmarks-tip .tip-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: var(--text-color);
  font-size: 14px;
  white-space: nowrap;
}

.bookmarks-tip .tip-content i {
  color: var(--link-hover-bg);
  font-size: 16px;
  flex-shrink: 0;
}

.bookmarks-tip .tip-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bookmarks-tip .tip-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ff4444;
}

/* 动画效果 */
@keyframes tipSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes tipSlideOut {
  from {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
  to {
    opacity: 0;
    transform: translateY(-50%) translateX(100%);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 滚动条样式优化 */
.bookmarks-sidebar::-webkit-scrollbar {
  width: 6px;
}

.bookmarks-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.bookmarks-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.bookmarks-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 亮色主题滚动条适配 */
body.light-theme .bookmarks-sidebar::-webkit-scrollbar-thumb {
  background: rgba(139, 115, 85, 0.2);
}

body.light-theme .bookmarks-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 115, 85, 0.35);
}

/* 书签列表容器滚动条 */
.bookmark-category::-webkit-scrollbar {
  width: 6px;
}

.bookmark-category::-webkit-scrollbar-track {
  background: transparent;
}

.bookmark-category::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.bookmark-category::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 亮色主题书签列表滚动条适配 */
body.light-theme .bookmark-category::-webkit-scrollbar-thumb {
  background: rgba(139, 115, 85, 0.2);
}

body.light-theme .bookmark-category::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 115, 85, 0.35);
}

/* 浅色主题下的遮罩层 */
body.light-theme .bookmarks-overlay {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* 浅色主题下的提示框 */
body.light-theme .bookmarks-tip {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(139, 115, 85, 0.2);
  box-shadow: 0 8px 32px rgba(139, 115, 85, 0.15);
}

body.light-theme .bookmarks-tip .tip-content {
  color: #2c2c2c;
}

body.light-theme .bookmarks-tip .tip-content i {
  color: #8b7355;
}

body.light-theme .bookmarks-tip .tip-close {
  color: #666;
}

body.light-theme .bookmarks-tip .tip-close:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* 浅色主题下的空状态 */
body.light-theme .empty-bookmarks {
  color: #666;
}

body.light-theme .empty-bookmarks i {
  color: #8b7355;
  opacity: 0.6;
}

/* 搜索框容器样式优化 */
.bookmarks-search {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.02);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper:focus-within {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* 搜索框内部元素布局优化 */
.search-input-wrapper i {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 12px;
    font-size: 14px;
    min-width: 16px;
    text-align: center;
}

#bookmarks-search-input {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    padding: 2px 8px;
    margin-right: 8px;
    outline: none;
    min-width: 0; /* 防止输入框溢出 */
    font-weight: 500;
}

#bookmarks-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-shortcut {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    margin-left: auto;
}

/* 亮色主题适配 */
body.light-theme .bookmarks-search {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}

/* 搜索结果样式 */
.search-results {
    margin-top: 10px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--text-color);
    font-size: 14px;
}

.clear-search {
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.7;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.clear-search:hover {
    opacity: 1;
    transform: scale(1.1);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-item {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.result-category {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 5px;
}

.result-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
    margin-bottom: 3px;
}

.result-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.highlight {
    background: rgba(255, 255, 0, 0.3);
    color: #ffffff;
    font-weight: 600;
    padding: 0 3px;
    border-radius: 3px;
}

/* 亮色主题适配 */
body.light-theme .search-result-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .search-result-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .result-category {
    color: rgba(0, 0, 0, 0.85);
}

body.light-theme .result-title {
    color: rgba(0, 0, 0, 1);
}

body.light-theme .result-description {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .results-count {
    color: rgba(0, 0, 0, 0.9);
}

body.light-theme .highlight {
    background: rgba(255, 230, 0, 0.5);
    color: rgba(0, 0, 0, 1);
}

/* 右键菜单样式 */
.bookmark-context-menu {
    position: fixed;
    background: var(--app-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 0;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    display: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.menu-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.menu-item:hover {
    background: var(--link-hover-bg);
    color: var(--link-hover-text);
}

.menu-item i {
    width: 16px;
    text-align: center;
}

.menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* 提示框样式 */
.bookmark-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1100;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bookmark-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* 亮色主题适配 */
body.light-theme .bookmark-context-menu {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

body.light-theme .bookmark-toast {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 触发区域呼吸动画 */
@keyframes breathe {
    0% {
        opacity: 0.4;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1.2);
    }
    100% {
        opacity: 0.4;
        transform: scaleX(1);
    }
}

.bookmarks-edge-trigger:hover::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 20%,
        var(--link-hover-text) 25%,
        var(--link-hover-text) 50%,
        var(--link-hover-text) 75%,
        transparent 80%
    );
    opacity: 0.4;
    animation: breathe 2s ease-in-out infinite;
    z-index: -1;
}

/* 搜索结果样式优化 */
.results-count {
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
    padding: 8px 15px;
    font-size: 14px;
} 