:root {
  /* 白天主题 - 现代渐变 */
  --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-secondary: rgba(255, 255, 255, 0.95);
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --accent-color: #667eea;
  --accent-hover: #764ba2;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --neon-glow: 0 0 20px rgba(102, 126, 234, 0.3);
  --quicklink-height: 44px;
}

[data-theme="dark"] {
  /* 夜间主题 - 赛博朋克风 */
  --bg-primary: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  --bg-secondary: rgba(15, 15, 35, 0.9);
  --bg-card: rgba(30, 30, 60, 0.8);
  --text-primary: #e2e8f0;
  --text-secondary: #a0aec0;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
  --accent-color: #667eea;
  --accent-hover: #764ba2;
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.15);
  --neon-glow: 0 0 20px rgba(118, 75, 162, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-primary);
  line-height: 1.6;
  transition: all 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 背景装饰元素 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 - 玻璃拟态 */
.header {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin: 20px 0;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 20px;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 搜索框样式 - 玻璃拟态 */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 500px;
  flex: 1;
}

.search-box i {
  position: absolute;
  left: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 3.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: var(--neon-glow), var(--shadow);
  transform: translateY(-2px);
}

.search-box input:focus + i {
  color: var(--accent-color);
}

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

/* 搜索建议下拉样式 */
.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow), var(--neon-glow);
  backdrop-filter: blur(10px);
  z-index: 10;
  max-height: 260px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text-primary);
}

.suggestion-item:hover,
.suggestion-item.active {
  background: rgba(102, 126, 234, 0.12);
}

.suggestion-type {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.suggestion-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 主题切换按钮 - 玻璃拟态 */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-size: 1.3rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.theme-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-3px) rotate(15deg);
  box-shadow: var(--neon-glow), var(--shadow);
}

/* 返回主页按钮 */
.back-home-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.back-home-btn i {
  color: var(--text-secondary);
}

.back-home-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--neon-glow), var(--shadow);
}

/* 主内容区域 - 左右布局 */
.main-content {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  align-items: flex-start;
  padding-left: 270px;
}

/* 搜索页：增大搜索框与首个卡片的垂直间距 */
body[data-page="search"] .bookmarks-container {
  margin-top: 24px;
}

/* 左侧边栏 - 分类导航 */
.sidebar {
  flex: 0 0 250px;
  position: fixed;
  top: 120px;
  left: 24px;
  width: 250px;
  height: calc(100vh - 140px);
  overflow-y: auto;
}

/* 分类导航 - 垂直布局 */
.category-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  margin-top: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.category-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 1rem 1.2rem;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: flex-start;
}

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

.category-btn:hover::before {
  left: 100%;
}

.category-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--neon-glow), var(--shadow-hover);
}

.category-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: var(--neon-glow), var(--shadow-hover);
  transform: translateY(-2px) scale(1.05);
}

.category-btn i {
  font-size: 16px;
  transition: all 0.3s ease;
}

.category-btn:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* 右侧书签区域 */
.bookmarks-container {
  flex: 1;
  min-height: 400px;
  padding: 1rem 0;
}

.bookmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.bookmark-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bookmark-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.bookmark-item:hover::before {
  transform: scaleX(1);
}

.bookmark-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--neon-glow);
  border-color: var(--accent-color);
}

.bookmark-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.bookmark-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
  background: var(--gradient-primary);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.bookmark-item:hover .bookmark-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.bookmark-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.bookmark-item:hover .bookmark-title {
  color: var(--accent-color);
}

.bookmark-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 1rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.click-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
  opacity: 0.8;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  }
}

.clear-stats-btn {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.clear-stats-btn:hover {
  background: linear-gradient(135deg, #5a6268, #343a40);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.clear-stats-btn:active {
  transform: translateY(0);
}





/* 无结果提示 - 现代风格 */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  border-radius: 20px;
  margin: 2rem 0;
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-results p {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 500;
  color: var(--text-secondary);
}

/* 统计信息 - 现代风格 */
.stats {
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0;
  margin-top: 3rem;
  backdrop-filter: blur(20px);
  border-radius: 20px 20px 0 0;
}

.stats-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.stat-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-item strong {
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 700;
}

.quick-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.quick-link-box input {
  flex: 1;
  height: var(--quicklink-height);
  padding: 0 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.quick-link-box input::placeholder {
  color: var(--text-muted);
}

.quick-link-go {
  background: var(--gradient-secondary);
  color: white;
  border: none;
  height: var(--quicklink-height);
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 92px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-go span {
  white-space: nowrap;
  font-weight: 600;
}

.quick-link-go i {
  font-size: 1rem;
}

.quick-link-go:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.quick-link-floating {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--shadow), var(--neon-glow);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: left 0.25s ease, transform 0.25s ease, padding 0.25s ease, opacity 0.2s ease;
}

.quick-link-floating input {
  width: 640px;
  height: var(--quicklink-height);
  padding: 0 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.quick-link-floating.collapsed {
  left: 24px;
  transform: none;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.quick-link-floating.collapsed input {
  display: none;
}

.quick-link-floating.collapsed .quick-link-go {
  width: var(--quicklink-height);
  height: var(--quicklink-height);
  min-width: 0 !important;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  justify-content: center;
}

.quick-link-floating.collapsed .quick-link-go span {
  display: none;
}

@media (max-width: 768px) {
  .quick-link-floating input {
    width: 70vw;
  }
}

.quick-link-floating.expanding {
  transform: translateX(-50%) scale(1.02);
  box-shadow: var(--neon-glow), var(--shadow-hover);
}

.stat-item i {
  color: var(--accent-color);
}

.current-time {
  color: var(--text-muted);
  font-size: 14px;
  font-family: 'Courier New', monospace;
}

/* 加载动画 - 现代风格 */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.loading.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--glass-border);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.loading-spinner::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 4px solid transparent;
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  filter: blur(2px);
}

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

/* 响应式设计 - 增强版 */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  
  .bookmarks-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header {
    margin: 15px 0;
    padding: 1rem 1.5rem;
    border-radius: 15px;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .logo {
    font-size: 1.8rem;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    font-size: 0.9rem;
  }
  
  .theme-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* 移动端改为垂直布局 */
  .main-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .sidebar {
    flex: none;
    position: static;
    max-height: none;
  }
  
  .category-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .category-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 18px;
    min-width: 100px;
    justify-content: center;
  }
  
  .bookmarks-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .bookmark-item {
    padding: 1.5rem;
    border-radius: 18px;
  }
  
  .bookmark-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .bookmark-title {
    font-size: 1.2rem;
  }
  
  .stats {
    padding: 2rem 0;
    border-radius: 15px 15px 0 0;
  }
  
  .stats-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .header {
    margin: 10px 0;
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo i {
    font-size: 1.8rem;
  }
  
  .search-box input {
    font-size: 0.85rem;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
  }
  
  .search-box i {
    font-size: 1rem;
    left: 1rem;
  }
  
  .theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .main-content {
    gap: 1rem;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .category-nav {
    padding: 0.8rem;
    gap: 0.6rem;
  }
  
  .category-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 12px;
    min-width: 80px;
  }
  
  .bookmark-item {
    padding: 1.2rem;
    border-radius: 15px;
  }
  
  .bookmark-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .bookmark-title {
    font-size: 1.1rem;
  }
  
  .bookmark-description {
    font-size: 0.9rem;
  }
  
  .no-results {
    padding: 3rem 1.5rem;
  }
  
  .no-results i {
    font-size: 3rem;
  }
  
  .no-results p {
    font-size: 1rem;
  }
}

/* 动画定义 - 现代效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: var(--neon-glow);
  }
  50% {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.bookmark-item {
  animation: fadeInUp 0.6s ease forwards;
}

.bookmark-item:nth-child(1) { animation-delay: 0.1s; }
.bookmark-item:nth-child(2) { animation-delay: 0.2s; }
.bookmark-item:nth-child(3) { animation-delay: 0.3s; }
.bookmark-item:nth-child(4) { animation-delay: 0.4s; }
.bookmark-item:nth-child(5) { animation-delay: 0.5s; }
.bookmark-item:nth-child(6) { animation-delay: 0.6s; }

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
.clear-search-btn {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
}

.clear-search-btn:hover {
  color: var(--accent-color);
}
