/* 卡片头部布局 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* 卡片徽章样式 */
.card-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  min-width: 24px;
}

.card-badge.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.card-badge.backup {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(240, 147, 251, 0.3);
}

/* 卡片URL样式 */
.card-url {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #666;
  font-family: 'Courier New', monospace;
}

/* 测速功能样式 */
.speed-test {
  margin-top: 8px;
  font-size: 12px;
}

.speed-status {
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 11px;
  display: inline-block;
  transition: all 0.3s ease;
}

.speed-fast {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.speed-normal {
  background: linear-gradient(135deg, #FF9800 0%, #f57c00 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.speed-slow {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

.speed-error {
  background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(158, 158, 158, 0.3);
}

/* 卡片悬停效果增强 */
.card:hover .card-badge {
  transform: scale(1.05);
}

.card:hover .speed-status {
  transform: translateY(-1px);
} 