/* ============ 仪表盘 ============ */
.welcome-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.welcome-text h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.welcome-text p {
  opacity: 0.9;
}

.welcome-actions {
  display: flex;
  gap: 12px;
}

.welcome-actions .btn {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.welcome-actions .btn:hover {
  background: rgba(255,255,255,0.3);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.stat-icon.blue { background: #409eff; }
.stat-icon.green { background: #67c23a; }
.stat-icon.orange { background: #e6a23c; }
.stat-icon.purple { background: #9b59b6; }

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-trend {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.chart {
  height: 280px;
}

.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  border-radius: 8px;
  background: #f5f7fa;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.action-item:hover {
  background: #ecf5ff;
  transform: translateY(-2px);
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 8px;
}

.action-item span {
  font-size: 12px;
  color: var(--text-regular);
}

/* 时间线 */
.timeline {
  list-style: none;
}

.timeline-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 20px;
  border-left: 2px solid var(--border-color);
}

.timeline-item:last-child {
  border-left: none;
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
}

.timeline-item.success::before { background: var(--success); }
.timeline-item.warning::before { background: var(--warning); }
.timeline-item.danger::before { background: var(--danger); }

.timeline-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.timeline-content {
  font-size: 14px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .charts-row, .bottom-row {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ===== v20260926bo 工作台营销图片轮播 ===== */
.mc-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #eef1f5;
  aspect-ratio: 16 / 6;
  min-height: 140px;
  max-height: 360px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.mc-track { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.mc-slide {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  opacity: 0; transition: opacity 0.6s ease;
  pointer-events: none;
}
.mc-slide.active { opacity: 1; pointer-events: auto; }
.mc-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 标题/链接浮层：加暗色渐变保证任何底图上文字都可读 */
.mc-caption, .mc-link {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-link:hover { text-decoration: underline; }

.mc-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.34); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.mc-nav:hover { background: rgba(0, 0, 0, 0.58); }
.mc-prev { left: 10px; }
.mc-next { right: 10px; }

.mc-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.mc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55); cursor: pointer;
  transition: all 0.2s;
}
.mc-dot.active { width: 20px; border-radius: 4px; background: #fff; }

.mc-manage {
  position: absolute; right: 10px; top: 10px;
  padding: 5px 10px; font-size: 12px;
  border: none; border-radius: 6px;
  background: rgba(0, 0, 0, 0.42); color: #fff;
  cursor: pointer; backdrop-filter: blur(2px);
}
.mc-manage:hover { background: rgba(0, 0, 0, 0.66); }

@media (max-width: 768px) {
  .mc-wrap { aspect-ratio: 16 / 9; max-height: none; border-radius: 10px; }
  .mc-nav { width: 28px; height: 28px; font-size: 18px; }
  .mc-manage { font-size: 11px; padding: 4px 8px; }
  .mc-caption, .mc-link { font-size: 12px; padding: 20px 12px 10px; }
}
