/* Melons 全局样式 */
:root {
  --melon-green: #4CAF50;
  --melon-green-light: #81C784;
  --melon-green-dark: #2E7D32;
  --melon-orange: #FF8C00;
  --melon-orange-light: #FFB74D;
  --melon-orange-dark: #E65100;
  --melon-cream: #FFFBF5;
  --melon-bg: #FAF8F3;
  --melon-card-shadow: 0 4px 20px rgba(76, 175, 80, 0.08);
  --melon-card-shadow-hover: 0 8px 30px rgba(76, 175, 80, 0.15);
}

body, .v-application {
  background: linear-gradient(135deg, #FFFBF5 0%, #F1F8E9 100%) !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

.v-application--wrap {
  background: transparent !important;
}

/* 卡片通用样式 */
.melon-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: var(--melon-card-shadow) !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(76, 175, 80, 0.06) !important;
}

.melon-card:hover {
  box-shadow: var(--melon-card-shadow-hover) !important;
  transform: translateY(-2px);
}

/* 统计卡片 */
.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--melon-card-shadow);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--melon-card-shadow-hover);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin: 8px 0 4px;
  font-family: "DIN Alternate", sans-serif;
}

.stat-card .stat-label {
  font-size: 13px;
  color: #909399;
}

.stat-card .stat-trend {
  font-size: 12px;
  color: var(--melon-green);
  font-weight: 600;
}

/* 渐变按钮 */
.btn-melon-primary {
  background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%) !important;
  color: white !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3) !important;
  text-transform: none !important;
}

.btn-melon-orange {
  background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%) !important;
  color: white !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3) !important;
  text-transform: none !important;
}

/* 流程阶段卡片 */
.stage-card {
  border-radius: 14px;
  padding: 16px;
  color: white;
  position: relative;
  min-height: 140px;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.stage-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stage-0 { background: linear-gradient(135deg, #90A4AE 0%, #607D8B 100%); }
.stage-1 { background: linear-gradient(135deg, #66BB6A 0%, #388E3C 100%); }
.stage-2 { background: linear-gradient(135deg, #FFA726 0%, #F57C00 100%); }
.stage-3 { background: linear-gradient(135deg, #AB47BC 0%, #7B1FA2 100%); }

.stage-card .stage-number {
  font-size: 36px;
  font-weight: 800;
  opacity: 0.4;
  position: absolute;
  right: 12px;
  top: 8px;
}

.stage-card .stage-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.stage-card .stage-sub {
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 10px;
  font-style: italic;
}

.stage-card .stage-items {
  font-size: 12px;
  line-height: 1.8;
}

/* 标题样式 */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--melon-green) 0%, var(--melon-green-dark) 100%);
  border-radius: 2px;
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-running { background: rgba(33, 150, 243, 0.12); color: #1976D2; }
.status-success { background: rgba(76, 175, 80, 0.12); color: #2E7D32; }
.status-pending { background: rgba(255, 152, 0, 0.12); color: #E65100; }
.status-failed  { background: rgba(244, 67, 54, 0.12); color: #C62828; }

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(76, 175, 80, 0.5);
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* 通用工具类 */
.text-melon-green { color: var(--melon-green) !important; }
.text-melon-orange { color: var(--melon-orange) !important; }
.bg-melon-cream { background: var(--melon-cream) !important; }

.melon-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.2), transparent);
  margin: 16px 0;
}

/* 流程箭头 */
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--melon-green);
  font-size: 24px;
}

/* 闭环动画 */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loop-rotate {
  animation: spin-slow 20s linear infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(76, 175, 80, 0); }
}

.pulse-dot {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* 吉祥物 */
.mascot-emoji {
  font-size: 28px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 上传拖拽区 */
.upload-zone {
  border: 2px dashed #FFB74D;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--melon-orange);
  background: linear-gradient(135deg, #FFE0B2 0%, #FFF3E0 100%);
  transform: scale(1.01);
}

/* 终端日志风格 */
.terminal-log {
  background: #1E1E1E;
  color: #4CAF50;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 12px;
  padding: 16px;
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.8;
}

.terminal-log .log-time { color: #666; }
.terminal-log .log-info { color: #4FC3F7; }
.terminal-log .log-success { color: #81C784; }
.terminal-log .log-warn { color: #FFB74D; }
.terminal-log .log-error { color: #E57373; }
