/* 动画定义 */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes spin {
  to { 
    transform: rotate(360deg); 
  }
}

/* 主题相关的特定样式 */
/* 这些样式主要在 themes.css 中定义，因为它们与主题切换功能密切相关 */

/* 主题切换交互效果 */
.theme-toggle .theme-option {
  transition: all 0.2s ease-in-out;
}

.theme-toggle .theme-option:hover {
  background: var(--border-color);
}

.theme-toggle .theme-option.active:hover {
  background: var(--primary-hover);
}

/* 主题切换动画 */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 深色主题下的特殊调整 */
[data-theme="dark"] .theme-toggle {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .nav-tab.active {
  background: var(--bg-secondary);
}

[data-theme="dark"] .card:hover {
  border-color: var(--primary-color);
}

[data-theme="dark"] .modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

/* 主题相关的表单焦点效果 */
.form-control:focus {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* 主题相关的按钮悬停效果 */
.btn {
  transition: all 0.2s ease-in-out;
}

/* 主题相关的卡片悬停效果 */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 主题相关的列表项悬停效果 */
.list-item {
  transition: background-color 0.2s ease-in-out;
}

/* 主题相关的站点卡片悬停效果 */
.site-card {
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* 主题相关的导航项悬停效果 */
.nav-item {
  transition: box-shadow 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* 主题相关的导航标签悬停效果 */
.nav-tab {
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* 主题相关的状态消息动画 */
.status-message {
  animation: slideIn 0.3s ease-out;
  transition: all 0.3s ease-out;
}

/* 主题相关的内容区域动画 */
.content-section {
  animation: fadeIn 0.3s ease-out;
}

/* 主题相关的加载动画 */
.spinner {
  animation: spin 1s ease-in-out infinite;
}
