/* ===================== files.css ===================== */
/* 深蓝色科技风格 */

.breadcrumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.breadcrumb a { color: var(--primary); text-decoration: none; padding: 3px 6px; border-radius: 4px; font-size: 14px; transition: all 0.2s; }
.breadcrumb a:hover { background: var(--bg-card-hover); }
.breadcrumb span { color: var(--text-secondary); font-size: 14px; }

/* 工具栏 */
.toolbar {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.path-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.path-label { color: var(--text-secondary); font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.batch-actions { display: flex; gap: 8px; }

/* 文件列表容器 */
.file-list-container {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* 文件表格 */
.file-table { width: 100%; border-collapse: collapse; }
.file-table th { 
  background: rgba(0, 102, 255, 0.1); 
  color: var(--text-primary); 
  padding: 14px 15px; 
  text-align: left; 
  font-weight: 600; 
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.file-table td { 
  padding: 12px 15px; 
  border-bottom: 1px solid var(--border); 
  color: var(--text-secondary);
  font-size: 14px;
}
.file-table tbody tr { 
  transition: background 0.2s; 
}
.file-table tbody tr:hover { 
  background: var(--bg-card-hover); 
}

/* 文件项 */
.file-name { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  color: var(--text-primary); 
  font-weight: 500;
}
.file-name i { 
  font-size: 18px; 
  width: 24px; 
  text-align: center;
}
.file-type { 
  color: var(--primary); 
  font-size: 13px; 
}
.file-size { 
  color: var(--text-secondary); 
  font-size: 13px; 
}
.file-time { 
  color: var(--text-secondary); 
  font-size: 13px; 
}
.file-actions { 
  display: flex; 
  gap: 6px; 
}
.file-actions .btn { 
  padding: 4px 8px; 
  font-size: 12px; 
}

/* 文件图标颜色 */
.fa-folder { color: #fbbf24; }
.fa-folder-open { color: #fbbf24; }
.fa-file { color: var(--text-secondary); }
.fa-file-code { color: #10b981; }
.fa-file-image { color: #f472b6; }
.fa-file-pdf { color: #ef4444; }
.fa-file-archive { color: #f59e0b; }
.fa-file-audio { color: #8b5cf6; }
.fa-file-video { color: #ec4899; }

/* 点击文件名 */
.file-item.clickable { cursor: pointer; }
.file-item.clickable:hover .file-name { color: var(--primary); text-decoration: underline; }

/* 上传区域 */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(0,0,0,0.2);
}
.upload-area:hover { 
  border-color: var(--primary); 
  background: rgba(0, 102, 255, 0.05); 
}
.upload-area.dragover { 
  border-color: var(--primary); 
  background: rgba(0, 102, 255, 0.1); 
}
.upload-area i { 
  font-size: 48px; 
  color: var(--primary); 
  margin-bottom: 16px; 
}
.upload-area p { 
  color: var(--text-secondary); 
  font-size: 16px; 
}

/* 进度条 */
.progress-bar { 
  width: 100%; 
  height: 8px; 
  background: var(--border); 
  border-radius: 4px; 
  overflow: hidden; 
  margin-top: 12px;
}
.progress-fill { 
  height: 100%; 
  background: linear-gradient(90deg, #10b981, var(--primary)); 
  transition: width 0.3s ease; 
  width: 0%; 
}

/* 预览区域 */
.file-preview { 
  margin-top: 12px; 
  max-height: 280px; 
  overflow-y: auto; 
  border: 1px solid var(--border); 
  border-radius: 6px; 
  padding: 10px; 
  background: rgba(0,0,0,0.2); 
}
.preview-item { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 8px 12px; 
  background: var(--bg-card); 
  border-radius: 6px; 
  margin-bottom: 8px; 
  border: 1px solid var(--border);
}
.preview-item:last-child { margin-bottom: 0; }
.preview-name { color: var(--text-primary); font-weight: 500; font-size: 14px; }
.remove-file { 
  color: var(--text-secondary); 
  cursor: pointer; 
  padding: 4px 8px; 
  border-radius: 4px; 
  transition: all 0.2s;
}
.remove-file:hover { 
  background: rgba(239, 68, 68, 0.1); 
  color: #ef4444; 
}

/* 移动对话框 */
.move-info { 
  margin-bottom: 12px; 
  padding: 10px; 
  background: rgba(0, 102, 255, 0.1); 
  border-radius: 6px; 
  border-left: 4px solid var(--primary); 
  font-size: 14px; 
  color: var(--text-primary);
}
.folder-tree { 
  max-height: 280px; 
  overflow-y: auto; 
  border: 1px solid var(--border); 
  border-radius: 6px; 
  padding: 8px; 
  background: rgba(0,0,0,0.2); 
  margin-bottom: 12px; 
}
.folder-item { 
  padding: 8px 12px; 
  cursor: pointer; 
  border-radius: 4px; 
  color: var(--text-primary); 
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.folder-item:hover { 
  background: var(--bg-card-hover); 
}
.folder-item.selected { 
  background: rgba(0, 102, 255, 0.1); 
  border: 1px solid var(--primary); 
}
.selected-target { 
  padding: 8px 12px; 
  background: rgba(0, 102, 255, 0.1); 
  border-radius: 6px; 
  border: 1px solid var(--primary); 
  font-size: 14px; 
  color: var(--text-primary);
}
.selected-target span { 
  color: var(--primary); 
  font-weight: 500; 
}

/* 快捷工具按钮 */
.btn-json { background: #8b5cf6; color: var(--text-primary); }
.btn-json:hover { background: #7c3aed; }
.btn-md { background: #14b8a6; color: var(--text-primary); }
.btn-md:hover { background: #0d9488; }
.btn-img { background: #f97316; color: var(--text-primary); }
.btn-img:hover { background: #ea580c; }
.btn-json-quick { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: var(--text-primary); font-weight: 600; }
.btn-json-quick:hover { background: linear-gradient(135deg, #7c3aed, #6d28d9); }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state i {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}
.empty-state p {
  font-size: 16px;
}
