/* ============================================================
   君道车卫 · 事故查勘下发回传及案件分发系统
   全局主题样式 —— UI优化版
   ============================================================ */

:root {
  /* 品牌主色 —— 君道车卫深蓝 + 安全橙（渐变色系升级） */
  --brand-primary: #0b2a4a;
  --brand-primary-2: #114a82;
  --brand-primary-3: #1a6fb5;
  --brand-accent: #f5a623;
  --brand-accent-2: #ff7a45;
  --brand-success: #1faf7a;
  --brand-success-2: #52c41a;
  --brand-danger: #e15555;
  --brand-danger-2: #ff4d4f;
  --brand-warn: #e6a23c;
  --brand-info: #3a8ee6;
  --brand-purple: #9b59b6;
  --brand-cyan: #13c2c2;

  /* 中性色升级 */
  --bg-page: #f0f2f7;
  --bg-card: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-hover: #f0f4fa;
  --bg-sidebar: linear-gradient(180deg, #0b2a4a 0%, #0e3559 100%);
  --bg-sidebar-2: #0e3559;
  --text-strong: #1a2a3a;
  --text-base: #4a5770;
  --text-muted: #8a98ad;
  --text-faint: #b8c2d2;
  --border-color: #e6eaf2;
  --border-strong: #d4dbe8;

  /* 状态色 */
  --st-pending: #909399;
  --st-dispatch: #3a8ee6;
  --st-processing: #f5a623;
  --st-review: #9b59b6;
  --st-done: #1faf7a;
  --st-reject: #e15555;
  --st-overtime: #ff4d4f;

  /* 渐变背景 */
  --grad-primary: linear-gradient(135deg, #114a82 0%, #1a6fb5 100%);
  --grad-accent: linear-gradient(135deg, #f5a623 0%, #ff7a45 100%);
  --grad-success: linear-gradient(135deg, #1faf7a 0%, #52c41a 100%);
  --grad-danger: linear-gradient(135deg, #e15555 0%, #ff4d4f 100%);
  --grad-info: linear-gradient(135deg, #3a8ee6 0%, #13c2c2 100%);
  --grad-purple: linear-gradient(135deg, #9b59b6 0%, #d079ec 100%);

  /* 阴影升级（多层级） */
  --shadow-xs: 0 1px 2px rgba(11, 42, 74, .04);
  --shadow-sm: 0 2px 6px rgba(11, 42, 74, .06);
  --shadow-md: 0 6px 20px rgba(11, 42, 74, .10);
  --shadow-lg: 0 16px 48px rgba(11, 42, 74, .16);
  --shadow-xl: 0 24px 64px rgba(11, 42, 74, .22);
  --shadow-inset: inset 0 1px 3px rgba(11, 42, 74, .06);

  /* 圆角升级 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --sidebar-w: 240px;
  --topbar-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-base);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c7d0de, #aab7c9); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #aab7c9, #8a98ad); }
::-webkit-scrollbar-track { background: transparent; }

/* ==================== 通用工具类（升级） ==================== */
.flex { display: flex; }
.flex-c { display: flex; align-items: center; }
.flex-b { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.grow { flex: 1; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.p-4 { padding: 4px; } .p-8 { padding: 8px; } .p-12 { padding: 12px; } .p-16 { padding: 16px; } .p-24 { padding: 24px; }
.text-muted { color: var(--text-muted); }
.text-strong { color: var(--text-strong); font-weight: 600; }
.text-faint { color: var(--text-faint); }
.text-sm { font-size: 12px; line-height: 1.6; }
.text-base { font-size: 14px; line-height: 1.7; }
.text-lg { font-size: 16px; font-weight: 600; }
.text-xl { font-size: 20px; font-weight: 700; }
.text-2xl { font-size: 24px; font-weight: 800; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* ==================== 按钮（升级：渐变色、交互反馈） ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; transition: all .22s cubic-bezier(.4,0,.2,1);
  white-space: nowrap; position: relative; overflow: hidden;
  border: 1px solid transparent;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background .2s;
}
.btn:hover::before { background: rgba(255,255,255,.12); }
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 12px rgba(17,74,130,.28); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(17,74,130,.36); }

.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 4px 12px rgba(245,166,35,.30); }
.btn-accent:hover { box-shadow: 0 6px 18px rgba(245,166,35,.40); }

.btn-success { background: var(--grad-success); color: #fff; box-shadow: 0 4px 12px rgba(31,175,122,.28); }
.btn-success:hover { box-shadow: 0 6px 18px rgba(31,175,122,.36); }

.btn-danger { background: var(--grad-danger); color: #fff; box-shadow: 0 4px 12px rgba(225,85,85,.28); }
.btn-danger:hover { box-shadow: 0 6px 18px rgba(225,85,85,.36); }

.btn-ghost { background: transparent; color: var(--text-base); border: 1px solid var(--border-strong); }
.btn-ghost:hover { color: var(--brand-primary-2); border-color: var(--brand-primary-2); background: rgba(17,74,130,.04); }
.btn-ghost::before { display: none; }

.btn-outline { background: #fff; color: var(--brand-primary-2); border: 1px solid var(--brand-primary-2); }
.btn-outline:hover { background: rgba(17,74,130,.06); }
.btn-outline::before { display: none; }

.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-lg { height: 44px; padding: 0 24px; font-size: 15px; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ==================== 卡片（升级：圆角、阴影、悬停动效） ==================== */
.card {
  background: var(--bg-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}
.card-head h3 { font-size: 15px; color: var(--text-strong); font-weight: 600; }
.card-body { padding: 20px; }
.card-nopad { padding: 0; }

/* 卡片变体：带渐变顶边 */
.card-themed { position: relative; }
.card-themed::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary); border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.card-themed.accent::before { background: var(--grad-accent); }
.card-themed.success::before { background: var(--grad-success); }
.card-themed.danger::before { background: var(--grad-danger); }
.card-themed.purple::before { background: var(--grad-purple); }

/* ==================== 标签（升级：胶囊型、渐变色） ==================== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  line-height: 20px; transition: all .18s;
  border: 1px solid transparent;
}
.tag:hover { transform: translateY(-1px); }
.tag-blue { background: linear-gradient(135deg, #e8f1ff, #d6e4ff); color: #2b7ad9; border-color: #c6d9f5; }
.tag-orange { background: linear-gradient(135deg, #fff3e0, #ffe8c8); color: #e68a00; border-color: #ffd9a8; }
.tag-green { background: linear-gradient(135deg, #e6f7ef, #d5f5e5); color: #1a9e6e; border-color: #b6e5cc; }
.tag-red { background: linear-gradient(135deg, #fdeaea, #fbd6d6); color: #d64545; border-color: #f2b9b9; }
.tag-purple { background: linear-gradient(135deg, #f1eafa, #e9dcfa); color: #8e5fc7; border-color: #d8c4ee; }
.tag-gray { background: linear-gradient(135deg, #eef1f6, #e2e7ef); color: #7a8699; border-color: #d0d8e6; }
.tag-cyan { background: linear-gradient(135deg, #e0f7f7, #c8f0f0); color: #13a8a8; border-color: #a6e3e3; }
.tag-gold { background: linear-gradient(135deg, #fff7e0, #fff0b8); color: #b8860b; border-color: #f2dd8f; }
.tag-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  flex-shrink: 0;
}

/* ==================== 状态徽章（升级） ==================== */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  border: 1px solid;
}
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.st-pending { background: #eef1f6; color: var(--st-pending); border-color: #d8dee8; }
.st-dispatch { background: #e8f1ff; color: var(--st-dispatch); border-color: #c6d9f5; }
.st-processing { background: #fff3e0; color: var(--st-processing); border-color: #ffd9a8; }
.st-review { background: #f1eafa; color: var(--st-review); border-color: #d8c4ee; }
.st-done { background: #e6f7ef; color: var(--st-done); border-color: #b6e5cc; }
.st-reject { background: #fdeaea; color: var(--st-reject); border-color: #f2b9b9; }

/* ==================== 表单（升级：聚焦环、过渡动效） ==================== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; color: var(--text-strong); margin-bottom: 8px; font-weight: 500; }
.form-label .req { color: var(--brand-danger); margin-left: 3px; }
.form-label .hint { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-left: 6px; }

.form-control {
  width: 100%; height: 40px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-strong); background: #fff;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-inset);
}
.form-control:hover { border-color: #b9c4d6; }
.form-control:focus {
  border-color: var(--brand-primary-2);
  box-shadow: 0 0 0 4px rgba(17,74,130,.08), var(--shadow-inset);
  background: #fff;
}
.form-control:disabled { background: var(--bg-soft); color: var(--text-muted); cursor: not-allowed; }

textarea.form-control { height: auto; padding: 12px 14px; resize: vertical; min-height: 90px; line-height: 1.7; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a98ad' d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ==================== 专栏表单控件（.form-input · v78 补齐，对齐 .form-control 视觉） ====================
   各专栏页/弹窗大量使用 form-input，此前无样式定义吃浏览器默认外观，统一升级： */
.form-input {
  width: 100%; height: 40px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-strong); background: #fff;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-inset);
  outline: none;
}
.form-input:hover { border-color: #b9c4d6; }
.form-input:focus {
  border-color: var(--brand-primary-2);
  box-shadow: 0 0 0 4px rgba(17,74,130,.08), var(--shadow-inset);
  background: #fff;
}
.form-input:disabled { background: var(--bg-soft); color: var(--text-muted); cursor: not-allowed; }
.form-input::placeholder { color: #9aa7b8; }
textarea.form-input { height: auto; padding: 12px 14px; resize: vertical; min-height: 90px; line-height: 1.7; font-family: inherit; }
select.form-input {
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a98ad' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
/* 专栏弹窗 .form-group 内裸 label 规范化（此前吃浏览器默认样式） */
.form-group > label { display: block; font-size: 13px; color: var(--text-strong); margin-bottom: 8px; font-weight: 500; }

/* ==================== 表格（升级：斑马纹、悬停高亮、圆角表头等） ==================== */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { padding: 14px 16px; text-align: left; font-size: 13px; }
.table th {
  color: var(--text-strong); font-weight: 600;
  background: linear-gradient(180deg, #f7f9fc, #eef2f8);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
  font-size: 12.5px;
  text-transform: none;
}
.table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.table td { color: var(--text-base); border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.table tbody tr { transition: background .18s; }
.table tbody tr:nth-child(even) { background: #fafbfd; }
.table tbody tr:hover { background: rgba(17,74,130,.04); }
.table .link { color: var(--brand-primary-2); cursor: pointer; font-weight: 600; transition: all .18s; }
.table .link:hover { color: var(--brand-primary-3); text-decoration: underline; }

/* ==================== 输入框图标 ==================== */
.input-affix { position: relative; }
.input-affix .form-control { padding-left: 42px; }
.input-affix .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; }

.input-suffix { position: relative; }
.input-suffix .form-control { padding-right: 42px; }
.input-suffix .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; }

/* ==================== 空状态（升级） ==================== */
.empty { padding: 60px 20px; text-align: center; color: var(--text-muted); }
.empty .ic {
  font-size: 56px; opacity: .25; display: block; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-faint), var(--text-muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.empty .text { font-size: 14px; margin-bottom: 6px; color: var(--text-muted); }
.empty .desc { font-size: 12px; color: var(--text-faint); }
.empty .btn { margin-top: 16px; }

/* ==================== 待上线占位页（WIP placeholder） ==================== */
.wip-placeholder {
  max-width: 560px; margin: 80px auto; padding: 48px 36px;
  background: var(--card-bg); border-radius: 16px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border-light);
  text-align: center;
}
.wip-icon {
  font-size: 64px; line-height: 1; margin-bottom: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wip-float 3s ease-in-out infinite;
}
@keyframes wip-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.wip-title {
  font-size: 22px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px;
}
.wip-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px;
}
.wip-meta {
  background: var(--bg-soft); border-radius: 10px; padding: 16px 20px;
  font-size: 12px; color: var(--text-muted); text-align: left; margin-bottom: 20px;
  line-height: 1.9;
}
.wip-meta code {
  background: rgba(99,102,241,.12); color: #6366f1;
  padding: 2px 6px; border-radius: 4px; font-size: 12px;
}
.wip-admin {
  background: rgba(245,158,11,.08); border-left: 3px solid #f59e0b;
  padding: 10px 14px; border-radius: 6px; font-size: 12px;
  color: #b45309; text-align: left; margin-bottom: 20px;
}
.wip-admin code {
  background: rgba(245,158,11,.18); color: #92400e;
  padding: 2px 6px; border-radius: 4px;
}
.wip-actions { display: flex; gap: 12px; justify-content: center; }
.wip-actions button {
  padding: 8px 20px; border-radius: 8px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card-bg); color: var(--text-primary);
  transition: all .2s;
}
.wip-actions button:hover { border-color: var(--primary); color: var(--primary); }
.wip-actions .btn-home {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.wip-actions .btn-home:hover { background: var(--primary-dark); color: #fff; }

/* 菜单列表的「上线中」角标 */
.nav-wip { opacity: .72; }
.nav-wip:hover { opacity: 1; }
.wip-tag {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  margin-left: auto; font-weight: 500; line-height: 1.4;
}
.nav-item .wip-tag { flex-shrink: 0; }

/* v20261016 物流管理 · 仓储二期灰显菜单 */
.nav-phase2 { opacity: .55; }
.nav-phase2 .wip-tag { background: linear-gradient(135deg, #94a3b8, #64748b); }
.nav-phase2:hover { opacity: .85; }

/* v20261016 物流管理 · RuoYi 风格表单控件 */
.lgm-input { padding:6px 10px; border:1px solid #cbd5e1; border-radius:6px; font-size:13px; color:#1e293b; background:#fff; outline:none; box-sizing:border-box; }
.lgm-input:focus { border-color:#1d4ed8; box-shadow:0 0 0 3px rgba(29,78,216,.12); }

/* ==================== 进度条（升级：渐变、动画） ==================== */
.progress {
  height: 10px; background: linear-gradient(180deg, #eef1f6, #e4e8f0);
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-inset);
}
.progress-bar {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 10px; transition: width .5s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.progress-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shimmer 2s infinite;
}
.progress-bar.success { background: var(--grad-success); }
.progress-bar.accent { background: var(--grad-accent); }
.progress-bar.danger { background: var(--grad-danger); }
.progress-bar.purple { background: var(--grad-purple); }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* 环形进度 */
.ring-progress { position: relative; width: 80px; height: 80px; display: inline-flex; align-items: center; justify-content: center; }
.ring-progress svg { transform: rotate(-90deg); }
.ring-progress .track { stroke: var(--border-color); }
.ring-progress .bar { stroke-linecap: round; transition: stroke-dashoffset .8s; }
.ring-progress .val { position: absolute; font-size: 16px; font-weight: 700; color: var(--text-strong); }

/* ==================== 动画 ==================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.15); } }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(.3); } 50% { transform: scale(1.05); } 70% { transform: scale(.9); } 100% { opacity: 1; transform: scale(1); } }

.fade-up { animation: fadeUp .35s ease both; }
.fade-in { animation: fadeIn .25s ease both; }
.slide-right { animation: slideInRight .35s ease both; }
.slide-left { animation: slideInLeft .35s ease both; }
.scale-in { animation: scaleIn .25s ease both; }
.bounce-in { animation: bounceIn .45s ease both; }
.float { animation: float 3s ease-in-out infinite; }

/* ==================== Toast（升级） ==================== */
.toast-wrap {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 22px;
  background: linear-gradient(135deg, #1b2a3a, #2c3e52);
  color: #fff; border-radius: var(--radius-md); font-size: 13px;
  box-shadow: var(--shadow-lg); animation: bounceIn .35s ease both;
  pointer-events: auto; font-weight: 500;
  backdrop-filter: blur(8px);
}
.toast .icon { font-size: 16px; }
.toast.success { background: var(--grad-success); }
.toast.error { background: var(--grad-danger); }
.toast.warn { background: linear-gradient(135deg, #e6a23c, #f0b858); }
.toast.info { background: var(--grad-info); }

/* ==================== 弹窗（升级：圆角、阴影、动画） ==================== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(11, 42, 74, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s ease;
}
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 580px; max-width: 100%;
  max-height: 88vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl); animation: scaleIn .28s ease both;
}
.modal.lg { width: 860px; }
.modal.xl { width: 1000px; }
.modal.sm { width: 440px; }

.modal-head {
  padding: 20px 24px; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #ffffff, #fafbfd);
}
.modal-head h3 { font-size: 17px; color: var(--text-strong); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.modal-head h3::before {
  content: ''; width: 4px; height: 18px;
  background: var(--grad-primary); border-radius: 3px;
}
.modal-head .close {
  width: 32px; height: 32px; border-radius: 8px;
  font-size: 20px; color: var(--text-muted); line-height: 32px; text-align: center;
  cursor: pointer; transition: all .18s;
}
.modal-head .close:hover { background: var(--bg-hover); color: var(--brand-danger); transform: rotate(90deg); }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 16px 24px; border-top: 1px solid var(--border-color);
  display: flex; justify-content: flex-end; gap: 10px;
  background: linear-gradient(180deg, #fafbfd, #f5f7fb);
}

/* ==================== 提示框 / 说明框（升级） ==================== */
.hint-box {
  background: linear-gradient(135deg, #eef4fc, #f5f9fe);
  border-left: 4px solid var(--brand-info);
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-base); line-height: 1.75;
  position: relative;
}
.hint-box.warn {
  background: linear-gradient(135deg, #fff7e9, #fffdf5);
  border-left-color: var(--brand-accent);
}
.hint-box.danger {
  background: linear-gradient(135deg, #fdf3f3, #fff8f8);
  border-left-color: var(--brand-danger);
}
.hint-box.success {
  background: linear-gradient(135deg, #f0faf3, #f5fcf7);
  border-left-color: var(--brand-success);
}
.hint-box strong { color: var(--text-strong); }
.hint-box .icon { position: absolute; left: 18px; top: 14px; font-size: 15px; }

/* 分节标题 */
.section-title {
  font-size: 15px; color: var(--text-strong); font-weight: 600;
  margin: 6px 0 14px; display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; width: 4px; height: 16px;
  background: var(--grad-primary); border-radius: 3px;
}
.section-title.accent::before { background: var(--grad-accent); }
.section-title.success::before { background: var(--grad-success); }
.section-title .more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-muted); cursor: pointer; }
.section-title .more:hover { color: var(--brand-primary-2); }

/* 分割线 */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-color), transparent); margin: 20px 0; }
.divider-solid { height: 1px; background: var(--border-color); margin: 16px 0; }

/* 数据可视化：色块指标条 */
.kpi-bar {
  display: flex; height: 10px; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); box-shadow: var(--shadow-inset);
}
.kpi-bar > span { transition: width .5s cubic-bezier(.4,0,.2,1); }

/* 头像组 */
.avatar-group { display: inline-flex; }
.avatar-group .ava { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; }
.avatar-group .ava:first-child { margin-left: 0; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border-strong); transition: .3s; border-radius: 24px;
}
.switch .slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: #fff; transition: .3s; border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.switch input:checked + .slider { background: var(--grad-primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* 徽章数字 */
.badge-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--grad-danger); color: #fff;
  border-radius: 10px; font-size: 11px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(225,85,85,.4);
}

/* ==================== 同步节点（数据中心对接） ==================== */
.sync-node {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.sync-node:hover {
  background: #fff;
  border-color: var(--brand-primary-3);
  box-shadow: 0 4px 14px rgba(17,74,130,.10);
  transform: translateX(2px);
}
.sync-node.primary { border-left: 4px solid var(--brand-primary-2); }
.sync-node.accent { border-left: 4px solid var(--brand-accent); }
.sync-node.success { border-left: 4px solid var(--brand-success); }
.sync-node.danger { border-left: 4px solid var(--brand-danger); }
.sync-node.purple { border-left: 4px solid var(--brand-purple); }
.sync-node .ic {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
  background: linear-gradient(135deg, #e8f1ff, #d6e4ff);
  color: #2b7ad9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.sync-node.accent .ic { background: linear-gradient(135deg, #fff3e0, #ffe8c8); color: #e68a00; }
.sync-node.success .ic { background: linear-gradient(135deg, #e6f7ef, #d5f5e5); color: #1a9e6e; }
.sync-node.danger .ic { background: linear-gradient(135deg, #fdeaea, #fbd6d6); color: #d64545; }
.sync-node.purple .ic { background: linear-gradient(135deg, #f1eafa, #e9dcfa); color: #8e5fc7; }
.sync-node.cyan .ic { background: linear-gradient(135deg, #e0f7f7, #c8f0f0); color: #13a8a8; }
.sync-node.gold .ic { background: linear-gradient(135deg, #fff7e0, #fff0b8); color: #b8860b; }
.sync-node .grow { flex: 1; min-width: 0; }
.sync-node .nm { font-size: 14px; color: var(--text-strong); font-weight: 600; line-height: 1.4; }
.sync-node .ds { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.55; }
.sync-node .ava { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* ==================== 流程图（中台对接架构） ==================== */
.flow-diagram {
  display: flex; align-items: center; justify-content: center; gap: 0;
  padding: 20px 10px; flex-wrap: wrap;
}
.flow-node {
  padding: 22px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 160px;
  border: 2px solid;
  position: relative;
  transition: all .25s;
}
.flow-node:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.flow-node.primary {
  background: linear-gradient(135deg, #eef4fc, #dce8f8);
  border-color: var(--brand-primary-2);
  color: var(--brand-primary-2);
}
.flow-node.accent {
  background: linear-gradient(135deg, #fff7e9, #fff0d6);
  border-color: var(--brand-accent);
  color: var(--brand-accent-2);
}
.flow-node.success {
  background: linear-gradient(135deg, #e6f7ef, #d5f5e5);
  border-color: var(--brand-success);
  color: var(--brand-success);
}
.flow-node .nm { font-size: 15px; font-weight: 700; line-height: 1.4; }
.flow-node .ds { font-size: 11.5px; opacity: .85; margin-top: 8px; font-weight: 500; }
.flow-arrow {
  font-size: 22px;
  font-weight: 700;
  padding: 0 14px;
  color: var(--brand-primary-3);
  animation: pulse 2.5s ease-in-out infinite;
}

/* ==================== 数据看板：图表容器增强 ==================== */
.chart-wrap { padding: 4px 2px; }
.chart-bar-item { margin-bottom: 14px; }
.chart-bar-item:last-child { margin-bottom: 0; }
.chart-bar-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 8px;
}
.chart-bar-label .name { color: var(--text-base); font-weight: 500; }
.chart-bar-label .cnt { color: var(--text-muted); font-weight: 600; }

/* 数据面板：多行指标统计 */
.metric-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 14px;
}
@media (max-width: 900px) { .metric-row { grid-template-columns: repeat(2, 1fr); } }
.metric-item {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  transition: all .2s;
  position: relative;
}
.metric-item:hover { background: #fff; border-color: var(--brand-primary-3); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.metric-item .v { font-size: 22px; font-weight: 800; color: var(--text-strong); line-height: 1.1; }
.metric-item .l { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

/* 迷你状态卡 */
.mini-stat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 24px;
  background: var(--bg-soft); border: 1px solid var(--border-color);
  font-size: 12.5px; font-weight: 600;
}
.mini-stat .dot { width: 8px; height: 8px; border-radius: 50%; }

/* 小程序渠道卡片 */
.mini-card {
  background: linear-gradient(135deg, #ffffff, #fafbff);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-3);
}
.mini-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary);
}
.mini-card.wx::before { background: linear-gradient(135deg, #07c160, #10ad5a); }
.mini-card.ali::before { background: linear-gradient(135deg, #1677ff, #3a8ee6); }
.mini-card.dy::before { background: linear-gradient(135deg, #161823, #2c2f3a); }
.mini-card.app::before { background: linear-gradient(135deg, #0b2a4a, #1a6fb5); }
.mini-card .head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.mini-card .logo {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; font-weight: 800;
}
.mini-card.wx .logo { background: linear-gradient(135deg, #07c160, #10ad5a); }
.mini-card.ali .logo { background: linear-gradient(135deg, #1677ff, #3a8ee6); }
.mini-card.dy .logo { background: linear-gradient(135deg, #161823, #2c2f3a); }
.mini-card.app .logo { background: var(--grad-primary); }
.mini-card .nm { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.mini-card .plat { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.mini-card .desc { font-size: 12.5px; color: var(--text-base); line-height: 1.7; }

/* 数据中心通用样式 */
.sync-node {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ffffff, #fafbfd);
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  transition: all .2s;
}
.sync-node:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--brand-primary-2);
}
.sync-node .ic {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  background: var(--grad-primary); color: #fff;
}
.sync-node.accent .ic { background: var(--grad-accent); }
.sync-node.success .ic { background: var(--grad-success); }
.sync-node.danger .ic { background: var(--grad-danger); }
.sync-node.purple .ic { background: var(--grad-purple); }
.sync-node .nm { font-weight: 600; color: var(--text-strong); font-size: 14px; }
.sync-node .ds { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.6; }
.sync-node .status { margin-left: auto; flex-shrink: 0; }

/* 流程图节点 */
.flow-diagram { display: flex; align-items: center; justify-content: center; gap: 0; padding: 36px 16px; flex-wrap: wrap; }
.flow-node {
  text-align: center; padding: 22px 18px; border-radius: var(--radius-md);
  background: #fff; border: 2px solid var(--border-color);
  min-width: 140px; position: relative;
  transition: all .25s;
  box-shadow: var(--shadow-sm);
}
.flow-node:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.flow-node.primary { border-color: var(--brand-primary-2); background: linear-gradient(180deg, #eef4fc, #f8fbff); }
.flow-node.accent { border-color: var(--brand-accent); background: linear-gradient(180deg, #fff7e9, #fffdf5); }
.flow-node.success { border-color: var(--brand-success); background: linear-gradient(180deg, #f0faf3, #f5fcf7); }
.flow-node.purple { border-color: var(--brand-purple); background: linear-gradient(180deg, #f7f0fc, #fbf7fe); }
.flow-node .ic { font-size: 28px; margin-bottom: 10px; display: block; }
.flow-node .nm { font-size: 14px; font-weight: 700; color: var(--text-strong); }
.flow-node .ds { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }
.flow-arrow {
  color: var(--text-faint); font-size: 26px; margin: 0 6px;
  display: flex; align-items: center;
}
.flow-arrow::before { content: '→'; font-weight: 300; }

/* 步骤条 */
.steps { display: flex; align-items: flex-start; justify-content: space-between; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 16px; left: 50%; right: -50%; height: 2px;
  background: var(--border-color); z-index: 0;
}
.step.done:not(:last-child)::after { background: var(--grad-success); }
.step.active:not(:last-child)::after { background: linear-gradient(90deg, var(--brand-success), var(--border-color)); }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; z-index: 1;
  background: #fff; border: 2px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--text-muted); margin-bottom: 8px;
  transition: all .25s;
}
.step.done .num { background: var(--grad-success); border-color: var(--brand-success); color: #fff; box-shadow: 0 4px 12px rgba(31,175,122,.3); }
.step.active .num { background: var(--grad-primary); border-color: var(--brand-primary-2); color: #fff; box-shadow: 0 4px 12px rgba(17,74,130,.3); }
.step .tl { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.step .ds { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* 列表项 */
.list-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--radius-sm); transition: all .18s;
  cursor: pointer;
}
.list-item:hover { background: var(--bg-hover); }
.list-item + .list-item { border-top: 1px solid var(--border-color); }

/* 网格辅助 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* 响应式小屏适配 */
@media (max-width: 768px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { flex: 1; }
}

/* ==================== v2 界面优化 ==================== */

/* 统计卡片增强 */
.stat-card { transition: transform .2s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.stat-card .val { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }

/* 按钮微交互（v78：悬浮上移增强） */
.btn { transition: all .18s cubic-bezier(.4,0,.2,1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.btn-primary { background: linear-gradient(135deg, var(--brand-primary-2), var(--brand-primary)); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(17,74,130,.38); }

/* 表格行hover */
.data-table tbody tr, .table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover, .table tbody tr:hover { background: var(--bg-hover) !important; }

/* 链接样式 */
.link { cursor: pointer; transition: color .15s ease; }
.link:hover { color: var(--brand-primary-2); text-decoration: underline; }

/* 导航项增强 */
.nav-item { transition: all .2s ease; border-left: 3px solid transparent; }
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { border-left-color: var(--brand-accent); }

/* 模态框优化 */
.modal { border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.2); animation: modalIn .2s ease; }
.modal-head { border-bottom: 1px solid var(--border-color); padding: 16px 20px; }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--brand-primary); }
.modal-body { padding: 20px; max-height: 65vh; overflow-y: auto; }
.modal-foot { border-top: 1px solid var(--border-color); padding: 12px 20px; display: flex; justify-content: flex-end; gap: 8px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-20px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* 页面头部增强 */
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--brand-primary); display: flex; align-items: center; gap: 8px; }
.page-head .icon { color: var(--brand-accent); font-size: 24px; }
.page-head .desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* 表单控件增强 */
.form-control { transition: border-color .15s ease, box-shadow .15s ease; }
.form-control:focus { border-color: var(--brand-primary-2); box-shadow: 0 0 0 3px rgba(43,122,217,.12); outline: none; }

/* 附件网格增强 */
.attachment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.attachment-card { position: relative; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; cursor: pointer; transition: all .2s ease; }
.attachment-card:hover { border-color: var(--brand-primary-2); box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-2px); }
.att-thumb { width: 100%; height: 80px; object-fit: cover; display: block; }
.att-file-icon { width: 100%; height: 80px; display: flex; align-items: center; justify-content: center; font-size: 32px; background: var(--bg-soft); }
.att-name { padding: 6px 8px; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-wm-badge { position: absolute; top: 4px; right: 4px; background: var(--brand-success); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; }

/* 时间线增强 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border-color); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-dot { position: absolute; left: -20px; top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--border-color); }
.tl-dot.done { background: var(--brand-success); }
.tl-dot.active { background: var(--brand-accent); box-shadow: 0 0 0 2px var(--brand-accent), 0 0 8px rgba(245,166,35,.4); animation: pulse 1.5s ease infinite; }
.tl-dot.reject { background: var(--danger); }
.tl-title { font-weight: 600; font-size: 14px; color: var(--brand-primary); }
.tl-meta { font-size: 12px; color: var(--text-muted); margin: 2px 0; }
.tl-note { font-size: 12px; color: var(--text-secondary); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* 徽章动画 */
.tag-dot::before { content: '●'; margin-right: 3px; animation: dotPulse 2s ease infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* 滚动条美化 */
.modal-body::-webkit-scrollbar, .card-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb, .card-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.modal-body::-webkit-scrollbar-track, .card-body::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   v3 专业级界面优化（测评通过后追加）
   ============================================================ */

/* ========== 顶部导航栏增强 ========== */
.topbar {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  box-shadow: 0 2px 12px rgba(11, 42, 74, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar .crumb { font-size: 16px; }
.topbar .crumb .current {
  background: linear-gradient(135deg, var(--brand-primary-2), var(--brand-primary-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.topbar-search .form-control {
  background: var(--bg-soft);
  border-color: transparent;
  transition: all .2s;
}
.topbar-search .form-control:focus {
  background: #fff;
  border-color: var(--brand-primary-2);
  box-shadow: 0 0 0 4px rgba(17, 74, 130, .08);
}
.topbar-actions .btn-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--text-base);
  border: 1px solid var(--border-color);
  transition: all .2s; position: relative;
}
.topbar-actions .btn-icon:hover {
  background: var(--grad-primary); color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 74, 130, .25);
}
.topbar-actions .btn-icon .badge-num {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; font-size: 10px;
  border: 2px solid #fff;
}

/* ========== 用户信息卡（顶栏右侧） ========== */
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px; border-radius: 22px;
  background: var(--bg-soft); border: 1px solid var(--border-color);
  transition: all .2s; cursor: pointer;
}
.user-chip:hover { background: #fff; box-shadow: var(--shadow-sm); }
.user-chip .ava {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 13px;
}
.user-chip .info { line-height: 1.2; }
.user-chip .info .name { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.user-chip .info .role { font-size: 11px; color: var(--text-muted); }

/* ========== 统计卡片深度优化 ========== */
.stat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfd 100%);
}
.stat-card::after {
  content: ''; position: absolute; right: -20px; bottom: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(17,74,130,.04), transparent 70%);
  pointer-events: none;
}
.stat-card.accent::after { background: radial-gradient(circle, rgba(245,166,35,.06), transparent 70%); }
.stat-card.success::after { background: radial-gradient(circle, rgba(31,175,122,.06), transparent 70%); }
.stat-card.danger::after { background: radial-gradient(circle, rgba(225,85,85,.06), transparent 70%); }
.stat-card.purple::after { background: radial-gradient(circle, rgba(155,89,182,.06), transparent 70%); }
.stat-card .val {
  background: linear-gradient(135deg, var(--text-strong), var(--text-base));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card.accent .val {
  background: linear-gradient(135deg, #e68a00, #f5a623);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card.success .val {
  background: linear-gradient(135deg, #1a9e6e, #1faf7a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card.danger .val {
  background: linear-gradient(135deg, #d64545, #e15555);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card.purple .val {
  background: linear-gradient(135deg, #8e5fc7, #9b59b6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .ic-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; transition: transform .3s;
}
.stat-card:hover .ic-wrap { transform: scale(1.1) rotate(-5deg); }

/* ========== 页面头部增强（带渐变背景） ========== */
.page-head {
  padding: 18px 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}
.page-head h2 {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-head .desc { display: flex; align-items: center; gap: 6px; }
.page-head .desc::before {
  content: ''; width: 3px; height: 12px;
  background: var(--grad-accent); border-radius: 2px;
}

/* ========== 案件列表卡片视图 ========== */
.case-card {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 18px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.case-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--grad-primary);
  transition: width .2s;
}
.case-card.urgent::before { background: var(--grad-danger); }
.case-card.high::before { background: var(--grad-accent); }
.case-card.done::before { background: var(--grad-success); }
.case-card:hover {
  border-color: var(--brand-primary-3);
  box-shadow: 0 8px 24px rgba(17, 74, 130, .12);
  transform: translateY(-2px);
}
.case-card:hover::before { width: 6px; }
.case-card .case-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
}
.case-card .case-title {
  font-size: 15px; font-weight: 600; color: var(--text-strong);
  margin-bottom: 4px;
}
.case-card .case-no { font-size: 12px; color: var(--text-muted); }
.case-card .case-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 12px; color: var(--text-base);
  padding: 10px 0; border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  margin: 10px 0;
}
.case-card .case-meta .meta-item { display: flex; align-items: center; gap: 4px; }
.case-card .case-meta .meta-item .lbl { color: var(--text-muted); }
.case-card .case-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
}

/* ========== 数据表格深度优化 ========== */
.table {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: #334155; font-weight: 600;
  letter-spacing: .3px;
  font-size: 12.5px; padding: 14px 16px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}
.table thead th::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(51,65,85,.08);
}
.table thead th:first-child::before { display: none; }
.table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: all .18s;
}
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:nth-child(even) { background: #fafbfd; }
.table tbody tr:hover {
  background: linear-gradient(90deg, rgba(17,74,130,.04), rgba(17,74,130,.01));
  transform: translateX(2px);
}
.table tbody tr.done { opacity: .75; }
.table tbody tr.done td:first-child::before {
  content: '✓'; color: var(--brand-success); font-weight: 700;
  margin-right: 6px;
}
.table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table .row-actions .btn-sm { height: 26px; padding: 0 10px; font-size: 11px; }

/* ========== 状态徽章动画增强 ========== */
.status-badge {
  position: relative; padding-left: 22px;
}
.status-badge .dot {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
}
.status-badge .dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; border: 2px solid currentColor;
  opacity: 0; animation: ringPulse 2s ease infinite;
}
.st-processing .dot::after, .st-dispatch .dot::after { opacity: 1; }
@keyframes ringPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ========== 按钮组优化 ========== */
.btn-group {
  display: inline-flex; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border-strong);
}
.btn-group .btn {
  border-radius: 0; border: none; border-right: 1px solid var(--border-strong);
  height: 34px; padding: 0 14px;
}
.btn-group .btn:last-child { border-right: none; }
.btn-group .btn.active {
  background: var(--grad-primary); color: #fff;
}

/* ========== 加载骨架屏 ========== */
.skeleton {
  background: linear-gradient(90deg, #f0f2f7 25%, #e6eaf2 37%, #f0f2f7 63%);
  background-size: 400% 100%;
  animation: skeletonLoading 1.4s ease infinite;
  border-radius: var(--radius-xs);
}
@keyframes skeletonLoading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.long { width: 100%; }
.skeleton-card { padding: 16px; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }

/* ========== 空状态深度优化 ========== */
.empty {
  padding: 70px 20px;
}
.empty .ic {
  font-size: 72px;
  background: linear-gradient(135deg, var(--text-faint), var(--text-muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.05));
}
.empty .text {
  font-size: 15px; color: var(--text-base); font-weight: 500;
  margin-bottom: 6px;
}
.empty .desc { font-size: 13px; color: var(--text-muted); }

/* ========== 案件详情页优化 ========== */
.detail-section {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.detail-section .section-head {
  padding: 14px 20px;
  background: linear-gradient(135deg, #fafbfd 0%, #f5f8fc 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
}
.detail-section .section-head h3 {
  font-size: 14px; font-weight: 600; color: var(--text-strong);
  display: flex; align-items: center; gap: 8px;
}
.detail-section .section-head h3::before {
  content: ''; width: 4px; height: 16px;
  background: var(--grad-primary); border-radius: 2px;
}
.detail-section .section-body { padding: 18px 20px; }
.detail-row {
  display: flex; padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}
.detail-row:last-child { border-bottom: none; }
.detail-row .lbl {
  width: 110px; flex-shrink: 0;
  font-size: 13px; color: var(--text-muted);
  font-weight: 500;
}
.detail-row .val {
  flex: 1; font-size: 13px; color: var(--text-strong);
  word-break: break-all;
}

/* ========== 浮动操作按钮（FAB） ========== */
.fab {
  position: fixed; right: 32px; bottom: 32px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 300;
  box-shadow: 0 8px 24px rgba(245, 166, 35, .4);
  z-index: 50; cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 32px rgba(245, 166, 35, .5);
}
.fab::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid var(--brand-accent);
  animation: ringPulse2 2s ease infinite;
}
@keyframes ringPulse2 {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ========== 通知面板优化 ========== */
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 380px; max-height: 480px; overflow-y: auto;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  z-index: 200; animation: scaleIn .2s ease;
  transform-origin: top right;
}
.notif-panel .notif-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, #fafbfd, #f5f8fc);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex; justify-content: space-between; align-items: center;
}
.notif-panel .notif-head h4 { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.notif-panel .notif-item {
  padding: 12px 18px; border-bottom: 1px solid var(--border-color);
  display: flex; gap: 12px; cursor: pointer; transition: background .18s;
}
.notif-panel .notif-item:hover { background: var(--bg-hover); }
.notif-panel .notif-item.unread { background: rgba(17, 74, 130, .03); }
.notif-panel .notif-item.unread::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-danger); margin-top: 6px; flex-shrink: 0;
}
.notif-panel .notif-item .n-title { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.notif-panel .notif-item .n-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.notif-panel .notif-item .n-time { font-size: 11px; color: var(--text-faint); margin-top: 4px; }

/* ========== 进度看板优化 ========== */
.kanban-col {
  background: var(--bg-soft); border-radius: var(--radius-md);
  padding: 12px; min-height: 200px;
  border: 1px solid var(--border-color);
}
.kanban-col .col-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}
.kanban-col .col-head .title {
  font-size: 13px; font-weight: 600; color: var(--text-strong);
  display: flex; align-items: center; gap: 6px;
}
.kanban-col .col-head .count {
  background: var(--bg-hover); padding: 2px 8px;
  border-radius: 10px; font-size: 11px; font-weight: 600;
  color: var(--text-base);
}
.kanban-item {
  background: #fff; border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer; transition: all .2s;
  border-left: 3px solid var(--brand-primary-2);
}
.kanban-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}
.kanban-item.urgent { border-left-color: var(--brand-danger); }
.kanban-item.high { border-left-color: var(--brand-accent); }
.kanban-item .ki-title { font-size: 13px; font-weight: 600; color: var(--text-strong); margin-bottom: 4px; }
.kanban-item .ki-meta { font-size: 11px; color: var(--text-muted); }

/* ========== 搜索结果高亮 ========== */
.highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(245, 166, 35, .35) 60%);
  color: var(--text-strong); font-weight: 600;
  padding: 0 2px; border-radius: 2px;
}

/* ========== 标签页（Tabs）—— 胶囊分段控件 ========== */
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
  padding: 4px; border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e8edf3;
  margin-bottom: 18px; max-width: 100%;
}
.tab-item {
  padding: 8px 18px; font-size: 13.5px; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  border: none; border-radius: 9px; background: transparent;
  transition: all .22s cubic-bezier(.4,0,.2,1); position: relative;
  white-space: nowrap;
}
.tab-item:hover { color: var(--brand-primary-2); background: rgba(255,255,255,.92); }
.tab-item.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #1a6fb5 0%, #114a82 100%);
  box-shadow: 0 3px 10px rgba(17,74,130,.35);
}
.tab-item.active:hover { color: #fff; background: linear-gradient(135deg, #1a6fb5 0%, #114a82 100%); }
.tab-item .badge-num {
  margin-left: 6px; min-width: 18px; height: 18px;
  font-size: 10px; padding: 0 5px;
}

/* ========== 警示横幅 ========== */
.alert-banner {
  padding: 12px 18px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; margin-bottom: 16px;
  border-left: 4px solid;
}
.alert-banner.warn {
  background: linear-gradient(135deg, #fff7e9, #fffdf5);
  border-left-color: var(--brand-accent);
  color: #8a5a00;
}
.alert-banner.danger {
  background: linear-gradient(135deg, #fdf3f3, #fff8f8);
  border-left-color: var(--brand-danger);
  color: #a03030;
}
.alert-banner.info {
  background: linear-gradient(135deg, #eef4fc, #f5f9fe);
  border-left-color: var(--brand-info);
  color: #1a4a82;
}
.alert-banner .ic { font-size: 18px; }

/* ========== 响应式优化 ========== */
@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 1024px) {
  :root { --sidebar-w: 200px; }
}
@media (max-width: 768px) {
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head .flex { width: 100%; }
  .table { font-size: 12px; }
  .table th, .table td { padding: 10px 8px; }
  .detail-row { flex-direction: column; }
  .detail-row .lbl { width: auto; margin-bottom: 2px; }
  .notif-panel { width: calc(100vw - 32px); right: -16px; }
  .fab { right: 16px; bottom: 16px; width: 48px; height: 48px; font-size: 20px; }
}

/* ========== 打印优化 ========== */
@media print {
  .sidebar, .topbar, .fab, .notif-panel { display: none !important; }
  .main-content { margin: 0 !important; padding: 0 !important; }
  .card, .detail-section { box-shadow: none !important; border: 1px solid #ddd !important; }
  .stat-card { break-inside: avoid; }
}

/* ========== 焦点可见性（无障碍） ========== */
.btn:focus-visible, .nav-item:focus-visible, .form-control:focus-visible,
.tab-item:focus-visible, .list-item:focus-visible {
  outline: 2px solid var(--brand-primary-3);
  outline-offset: 2px;
}

/* ========== 文字截断辅助 ========== */
.text-ellipsis {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.text-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-clamp-3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================================
   v2.0 UI 美化覆盖 —— Tab / 卡片 / 按钮 / 表格
   ============================================================ */

/* ---- 顶部 Tab：分段胶囊控件 ---- */
.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #eef2f8;
  border: none;
  border-radius: 14px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-item {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-base);
  cursor: pointer;
  border: none;
  border-radius: 10px;
  margin-bottom: 0;
  background: transparent;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.tab-item:hover {
  color: var(--brand-primary-2);
  background: rgba(255,255,255,.7);
}
.tab-item.active {
  color: #fff;
  font-weight: 600;
  background: var(--grad-primary);
  box-shadow: 0 4px 12px rgba(17,74,130,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.tab-item .badge-num {
  margin-left: 6px;
  min-width: 18px; height: 18px;
  font-size: 10px; padding: 0 5px;
  background: rgba(255,255,255,.22);
  color: #fff;
  border-radius: 9px;
}

/* ---- 卡片 ---- */
.card, .stat-card, .detail-section {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: box-shadow .2s, transform .2s;
}
.card:hover, .stat-card:hover {
  box-shadow: var(--shadow-md);
}

/* ---- 按钮 ---- */
.btn {
  border-radius: 10px;
  font-weight: 500;
  transition: all .18s;
}
.btn-primary {
  background: var(--grad-primary);
  border: none;
  box-shadow: 0 4px 12px rgba(17,74,130,.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17,74,130,.3);
}

/* ---- 表格 ---- */
.table thead th {
  background: linear-gradient(180deg, #f7f9fc, #eef2f8);
  font-weight: 600;
  color: var(--text-strong);
}

/* ---- 侧栏菜单激活态 ---- */
.nav-item.active {
  background: rgba(255,255,255,.12);
  border-left: 3px solid var(--brand-accent);
}

.page-head h2 { font-weight: 700; letter-spacing: -.3px; }
