.upload-info {
    margin-top: 5px;
    font-size: 12px;
}
.file-name {
    color: #666;
}
.progress-bar {
    height: 4px;
    background-color: #e0e0e0;
    margin-top: 3px;
    width: 100%;
}
.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background-color: #4CAF50;
    width: var(--progress, 0%);
    transition: width 0.3s;
}

.header {
    color: #333;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-title {
    font-size: 20px;
    font-weight: bold;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.header-button {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.header-button:hover {
    background-color: rgba(255,255,255,0.2);
}



.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* 垂直居中 */
    margin: 0 auto; /* 水平居中 */
    max-width: 1200px; /* 限制最大宽度 */
    /* 统计卡片容器 */
    backface-visibility: hidden; /* 减少重绘 */
}

:root {
  --card-width: calc(40% - 15px);
  --card-min-width: 90px;
  --card-height: 80px;
  --card-padding: 8px;
  --card-margin: 0 7.5px 15px 7.5px;
}

:root {
  --stat-card-width: calc(40% - 15px);
  --stat-card-min-width: 90px;
  --stat-card-height: 80px;
  --stat-card-padding: 8px;
  --stat-card-margin: 0 7.5px 15px 7.5px;
}

.stat-card {
  flex: 0 0 var(--stat-card-width);
  min-width: var(--stat-card-min-width);
  height: var(--stat-card-height);
  padding: var(--stat-card-padding);
  margin: var(--stat-card-margin);
  will-change: transform; /* 优化动画性能 */
  contain: content; /* 限制重绘范围 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直居中 */
  align-items: center; /* 水平居中 */
  text-align: center; /* 文本居中 */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: white;
  transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #2196F3;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-value.primary {
    color: #2196F3;
}

.stat-value.danger {
    color: #F44336;
}

.stat-value.success {
    color: #4CAF50;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.purple-btn {
    background-color: #6a1b9a;
}

.blue-btn {
    background-color: #1976d2;
}

.red-btn {
    background-color: #d32f2f;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


@media (max-width: 768px) {
  :root {
    --card-width: calc(50% - 15px);
  }
}

@media (max-width: 480px) {
  :root {
    --card-width: 100%;
  }
}