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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 400px;
  text-align: center;
}

.login-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
}

.downloader-container {
  background: #f5f7fa;
  min-height: 100vh;
}

.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #409eff;
}

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

/* 配置区域样式 */
.config-collapse {
  margin-bottom: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.config-collapse .el-collapse-item__header {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 20px;
}

.config-collapse .el-collapse-item__content {
  padding: 20px;
}

.upload-section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 下载列表主区域样式 */
.download-list-main {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.download-header {
  background: #f8f9fa;
  padding: 20px;
  border-bottom: 1px solid #e4e7ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.download-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-title h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  margin: 0;
}

.download-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.download-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #909399;
}

.empty-state h3 {
  margin: 20px 0 10px 0;
  color: #606266;
}

.empty-state p {
  color: #909399;
  font-size: 14px;
}

/* 下载表格容器 */
.download-table-container {
  padding: 0;
}

/* 文件信息样式 */
.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-icon {
  font-size: 20px;
  color: #409eff;
  flex-shrink: 0;
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
  word-break: break-all;
}

.file-prefix {
  color: #409eff;
  font-weight: 600;
  background: #ecf5ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 4px;
}

.excel-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #606266;
}

.excel-file-name {
  font-size: 13px;
  font-weight: 500;
  color: #409eff;
  background: #f0f9ff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e1f3ff;
}

.file-url {
  font-size: 12px;
  color: #666;
  word-break: break-all;
}

/* 进度容器样式 */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.speed-info {
  font-size: 12px;
  color: #666;
  text-align: center;
}

.completed-text {
  color: #67c23a;
  font-weight: 500;
}

.pending-text {
  color: #909399;
}

.size-info {
  font-size: 12px;
  color: #666;
}

/* 状态标签样式 */
.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-pending {
  background: #f0f9ff;
  color: #0369a1;
}

.status-downloading {
  background: #f0fdf4;
  color: #16a34a;
}

.status-completed {
  background: #f0fdf4;
  color: #16a34a;
}

.status-error {
  background: #fef2f2;
  color: #dc2626;
}

.status-paused {
  background: #fef3c7;
  color: #d97706;
}

/* 分页容器样式 */
.pagination-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e4e7ed;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    padding: 10px;
  }
  
  .download-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .download-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .download-stats {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 表格响应式 */
@media (max-width: 1200px) {
  .el-table {
    font-size: 12px;
  }
  
  .file-name {
    font-size: 13px;
  }
  
  .file-url {
    font-size: 11px;
  }
}

/* 动画效果 */
.el-table__row {
  transition: all 0.3s ease;
}

.el-table__row:hover {
  background-color: #f5f7fa !important;
}

/* 下载通知样式 */
.download-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #67c23a;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
  max-width: 300px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-icon {
  font-size: 20px;
}

.notification-message {
  flex: 1;
  font-size: 14px;
}

.notification-close {
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.notification-close:hover {
  opacity: 1;
}
