
/* 压缩列表容器 */
.compress-list-container {
  width: 100%;
  margin-bottom: 20px;
  max-height: 50vh; /* 使用视口高度的50%，确保在不同屏幕上都合适 */
  min-height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  background-color: #f9fafb;
}

.compress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compress-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}

.compress-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.compress-thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  background-color: #f3f4f6;
  flex-shrink: 0;
}

.compress-info {
  flex: 1;
  min-width: 0; /* 防止文本溢出 */
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.arrow-icon {
  color: #9ca3af;
  font-size: 12px;
}

.size-tag {
  background-color: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  color: #4b5563;
}

.size-tag.new {
  background-color: #dcfce7;
  color: #166534;
  font-weight: 500;
}

.status-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: #f3f4f6;
  color: #6b7280;
  white-space: nowrap;
}

.status-badge.success {
  background-color: #dcfce7;
  color: #166534;
}

.status-badge.processing {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-badge.error {
  background-color: #fee2e2;
  color: #991b1b;
}

.action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.action-btn:hover {
  background-color: #f9fafb;
  border-color: #2563eb;
  color: #2563eb;
}

.unit {
  font-size: 14px;
  color: #6b7280;
  margin-left: 4px;
}

/* 编辑器区域布局 (Compress页面也用到了editor-section) */
.editor-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 底部面板 (Compress页面也用到了) */
.bottom-panel {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

/* 底部控制栏 (Compress页面也用到了) */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
  gap: 16px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-group .label {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.save-button {
  background-color: #1890ff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  height: 48px;
  min-width: 120px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.save-button:hover {
  background-color: #096dd9;
}

.save-button:active {
  background-color: #0050b3;
}

.save-button:disabled {
  background-color: #bfbfbf;
  cursor: not-allowed;
}

.save-button.secondary {
  background-color: #52c41a; /* 绿色，表示成功/下载 */
}

.save-button.secondary:hover {
  background-color: #389e0d;
}

@media (max-width: 640px) {
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .control-group {
    justify-content: center;
  }

  .save-button {
    width: 100%;
  }
}
