/* ============================================================
   超级客服 · 全局样式 + 公共组件
   Phase UI-1: 信息架构重构
   ============================================================ */

:root {
  --brand-primary: #0f766e;
  --brand-secondary: #2563eb;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  --risk-none: #6b7280;
  --risk-low: #10b981;
  --risk-medium: #f59e0b;
  --risk-high: #f97316;
  --risk-critical: #dc2626;
  --bg-base: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-base);
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* 卡片 */
.card {
  background: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}

.script-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--brand-secondary);
}

.risk-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--color-danger);
}

.step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}
.btn-primary:hover { filter: brightness(1.05); }

.btn-secondary {
  background: white;
  border: 1px solid #e2e8f0;
  color: var(--text-secondary);
}
.btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: #f1f5f9; }

/* 状态标签 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.badge-blue { background: #dbeafe; color: #1e40af; }

/* 移动端 */
@media (max-width: 768px) {
  .sidebar-desktop { display: none !important; }
  .main-with-sidebar { margin-left: 0 !important; }
}
