/* =================================================================
 * ca-enhance.css — ca.oane.cn 界面增强层
 * 与 modern.css 互补，不破坏既有样式，仅追加新组件 / 视觉升级
 * 设计语言：白蓝主色（与 modern 一致），圆角、卡片化、状态色
 * ================================================================= */

:root {
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow:    0 4px 14px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .10), 0 8px 16px rgba(15, 23, 42, .06);
  --primary-50:  #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --success-50:  #ecfdf5;
  --success-100: #d1fae5;
  --success-500: #10b981;
  --success-600: #059669;
  --warning-50:  #fffbeb;
  --warning-100: #fef3c7;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --danger-50:   #fef2f2;
  --danger-100:  #fee2e2;
  --danger-500:  #ef4444;
  --danger-600:  #dc2626;
  --info-50:     #eff6ff;
  --info-500:    #3b82f6;
  --purple-50:   #faf5ff;
  --purple-100:  #f3e8ff;
  --purple-500:  #a855f7;
  --grey-50:     #f8fafc;
  --grey-100:    #f1f5f9;
  --grey-200:    #e2e8f0;
  --grey-300:    #cbd5e1;
  --grey-500:    #64748b;
  --grey-700:    #334155;
  --grey-900:    #0f172a;
}

/* ============== 页面骨架 ============== */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}
.page-wrap.narrow { max-width: 720px; }

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 20px;
  flex-wrap: wrap;
}
.page-title-row h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--grey-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title-row h1 i {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 16px;
}
.page-title-row .page-sub {
  color: var(--grey-500);
  font-size: 13px;
  margin-top: 2px;
}
.page-title-row .page-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* ============== 统计卡 ============== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  position: relative;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.kpi-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,.04), transparent 60%);
  pointer-events: none;
}
.kpi-icon {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--primary-50);
  color: var(--primary-600);
}
.kpi-card.kpi-blue   .kpi-icon { background: var(--primary-50);  color: var(--primary-600);  }
.kpi-card.kpi-green  .kpi-icon { background: var(--success-50);  color: var(--success-600);  }
.kpi-card.kpi-orange .kpi-icon { background: var(--warning-50);  color: var(--warning-600);  }
.kpi-card.kpi-red    .kpi-icon { background: var(--danger-50);   color: var(--danger-600);   }
.kpi-card.kpi-purple .kpi-icon { background: var(--purple-50);   color: var(--purple-500);   }
.kpi-card.kpi-grey   .kpi-icon { background: var(--grey-100);    color: var(--grey-700);     }

.kpi-label {
  font-size: 13px;
  color: var(--grey-500);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--grey-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.kpi-value small {
  font-size: 14px;
  color: var(--grey-500);
  font-weight: 500;
  margin-left: 4px;
}
.kpi-foot {
  margin-top: 10px;
  font-size: 12px;
  color: var(--grey-500);
  display: flex; align-items: center; gap: 6px;
}
.kpi-card.kpi-warn { border-color: var(--warning-500); }
.kpi-card.kpi-warn .kpi-value { color: var(--warning-600); }

/* ============== 卡片 / 面板 ============== */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--grey-100);
  background: #fff;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-900);
  display: flex; align-items: center; gap: 8px;
}
.card-head h3 i {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 13px;
}
.card-head .card-actions {
  display: flex; gap: 8px; align-items: center;
}
.card-body {
  padding: 20px;
}
.card-body.compact { padding: 14px 20px; }
.card-body.flush { padding: 0; }

/* ============== Tab ============== */
.tab-bar {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}
.tab-bar a {
  flex: 1 1 auto;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-500);
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 80px;
}
.tab-bar a i { font-size: 13px; opacity: .7; }
.tab-bar a:hover {
  background: var(--grey-50);
  color: var(--grey-700);
}
.tab-bar a.active {
  background: var(--primary-500);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59,130,246,.35);
}
.tab-bar a.active i { opacity: 1; }
.tab-bar a .badge {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--grey-100);
  color: var(--grey-700);
}
.tab-bar a.active .badge {
  background: rgba(255,255,255,.22);
  color: #fff;
}

/* ============== 表格美化 ============== */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}
.table thead th {
  background: var(--grey-50);
  color: var(--grey-700);
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--grey-100);
  white-space: nowrap;
}
.table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--grey-100);
  color: var(--grey-900);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover {
  background: var(--primary-50);
}
.table tbody td code,
.table tbody td .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--grey-100);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--grey-700);
}
.table .col-num { text-align: right; font-variant-numeric: tabular-nums; }
.table .col-center { text-align: center; }
.table tfoot td {
  background: var(--grey-50);
  padding: 12px 14px;
  font-weight: 600;
  border-top: 2px solid var(--grey-200);
}
.table-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--grey-500);
}
.table-empty i { font-size: 32px; opacity: .35; display: block; margin-bottom: 8px; }

/* ============== 状态徽章 ============== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--grey-100);
  color: var(--grey-700);
  white-space: nowrap;
  line-height: 1.6;
}
.badge i { font-size: 9px; }
.badge-ok,
.badge-success {
  background: var(--success-100);
  color: var(--success-600);
}
.badge-warn,
.badge-warning {
  background: var(--warning-100);
  color: var(--warning-600);
}
.badge-err,
.badge-error,
.badge-danger {
  background: var(--danger-100);
  color: var(--danger-600);
}
.badge-info {
  background: var(--primary-100);
  color: var(--primary-600);
}
.badge-purple {
  background: var(--purple-100);
  color: var(--purple-500);
}
.badge-grey {
  background: var(--grey-100);
  color: var(--grey-700);
}
.badge-dot {
  padding-left: 16px;
  position: relative;
}
.badge-dot::before {
  content: "";
  position: absolute;
  left: 8px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

/* ============== 按钮 ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  background: #fff;
  color: var(--grey-700);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1.3;
}
.btn:hover { background: var(--grey-50); color: var(--grey-900); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn i { font-size: 12px; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-500);
  box-shadow: 0 1px 2px rgba(59,130,246,.3);
}
.btn-primary:hover {
  background: var(--primary-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59,130,246,.4);
}
.btn-success {
  background: var(--success-500);
  color: #fff;
  border-color: var(--success-500);
}
.btn-success:hover { background: var(--success-600); color: #fff; }
.btn-danger {
  background: var(--danger-500);
  color: #fff;
  border-color: var(--danger-500);
}
.btn-danger:hover { background: var(--danger-600); color: #fff; }
.btn-warning {
  background: var(--warning-500);
  color: #fff;
  border-color: var(--warning-500);
}
.btn-outline {
  background: #fff;
  border-color: var(--grey-200);
  color: var(--grey-700);
}
.btn-outline:hover {
  border-color: var(--primary-500);
  color: var(--primary-600);
  background: var(--primary-50);
}
.btn-ghost {
  background: transparent;
  color: var(--grey-500);
}
.btn-ghost:hover {
  background: var(--grey-100);
  color: var(--grey-700);
}

/* ============== 表单 ============== */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 6px;
}
.form-label .req { color: var(--danger-500); margin-left: 2px; }
.form-hint {
  font-size: 12px;
  color: var(--grey-500);
  margin-top: 6px;
}
.form-control,
input[type="text"]:not(.input-plain),
input[type="password"]:not(.input-plain),
input[type="email"]:not(.input-plain),
input[type="number"]:not(.input-plain),
input[type="date"]:not(.input-plain),
input[type="time"]:not(.input-plain),
select:not(.select-plain),
textarea:not(.textarea-plain) {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--grey-900);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus,
input:focus:not(.input-plain),
select:focus:not(.select-plain),
textarea:focus:not(.textarea-plain) {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
textarea { min-height: 80px; resize: vertical; }
select { cursor: pointer; }

/* ============== 工具：空状态 ============== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--grey-500);
}
.empty-state .empty-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--grey-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-300);
  font-size: 28px;
}
.empty-state h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 13px;
  color: var(--grey-500);
  margin-bottom: 12px;
}

/* ============== 工具：分隔线 ============== */
.divider {
  height: 1px;
  background: var(--grey-100);
  margin: 16px 0;
  border: 0;
}

/* ============== 工具：链接/文本 ============== */
.muted { color: var(--grey-500); }
.text-err { color: var(--danger-600); }
.text-ok { color: var(--success-600); }
.text-warn { color: var(--warning-600); }
.text-info { color: var(--primary-600); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* ============== Alert ============== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  background: var(--grey-50);
  color: var(--grey-700);
}
.alert i { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.alert-ok, .alert-success {
  background: var(--success-50);
  color: var(--success-600);
  border-color: var(--success-100);
}
.alert-warn, .alert-warning {
  background: var(--warning-50);
  color: var(--warning-600);
  border-color: var(--warning-100);
}
.alert-err, .alert-error {
  background: var(--danger-50);
  color: var(--danger-600);
  border-color: var(--danger-100);
}
.alert-info {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-100);
}

/* ============== 工具栏（筛选条） ============== */
.toolbar {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}
.toolbar .toolbar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-700);
  margin-right: 4px;
}
.toolbar form {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1;
}
.toolbar input,
.toolbar select {
  padding: 7px 10px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  min-width: 100px;
}

/* ============== 分页 ============== */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border-top: 1px solid var(--grey-100);
  background: var(--grey-50);
}
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--grey-200);
  color: var(--grey-700);
  font-size: 13px;
  text-decoration: none;
  transition: all .15s;
}
.pager a:hover {
  border-color: var(--primary-500);
  color: var(--primary-600);
}
.pager .current {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-500);
}
.pager .disabled {
  opacity: .4;
  pointer-events: none;
}
.pager .gap {
  border: 0;
  background: transparent;
}

/* ============== 后台侧栏美化 ============== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 232px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 100;
  box-shadow: 1px 0 0 rgba(255,255,255,.04);
}
.admin-sidebar .admin-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 12px;
  font-size: 16px; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.admin-sidebar .admin-brand i {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  font-size: 14px;
}
.admin-sidebar .admin-brand-sub {
  padding: 0 18px 16px;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.admin-sidebar .admin-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}
.admin-sidebar .admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13.5px;
  margin-bottom: 2px;
  transition: all .15s;
  font-weight: 500;
}
.admin-sidebar .admin-nav-item i {
  width: 18px; text-align: center;
  font-size: 14px;
}
.admin-sidebar .admin-nav-item:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.admin-sidebar .admin-nav-item.active {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,130,246,.4);
}
.admin-sidebar .admin-brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--brand-grad);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px -4px rgba(99,102,241,.6);
}
.admin-sidebar .admin-nav-group-label {
  padding: 14px 18px 6px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.admin-sidebar .admin-nav-divider {
  height: 1px;
  background: rgba(255,255,255,.05);
  margin: 8px 14px;
}
.admin-sidebar .admin-sidebar-foot {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.admin-sidebar .admin-sidebar-foot a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 13px;
  border-radius: 10px;
  transition: all .15s;
}
.admin-sidebar .admin-sidebar-foot a:hover {
  background: rgba(239,68,68,.15);
  color: #fca5a5;
}

.admin-content {
  flex: 1;
  margin-left: 232px;
  min-width: 0;
  background: var(--grey-50);
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid var(--grey-100);
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--grey-900); }
.admin-topbar-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--grey-700);
}
.admin-topbar-user .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.admin-main { padding: 24px 28px 64px; }

@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}

/* ============== 列表操作 / 工具按钮 ============== */
.toolbar-link {
  color: var(--primary-600);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.toolbar-link:hover { text-decoration: underline; }
.toolbar-link.danger { color: var(--danger-600); }

/* ============== 用户徽章 / 头像 ============== */
.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--grey-100);
  font-size: 12px;
  color: var(--grey-700);
}
.user-chip img {
  width: 18px; height: 18px; border-radius: 50%;
}

/* ============== 价格/金额突出 ============== */
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--grey-900);
}
.money.up   { color: var(--success-600); }
.money.down { color: var(--danger-600); }

/* ============== 移动端 ============== */
@media (max-width: 640px) {
  .page-wrap { padding: 16px 12px 48px; }
  .kpi-value { font-size: 24px; }
  .table thead { display: none; }
  .table tbody tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-100);
  }
  .table tbody td {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 12px;
    border: 0;
  }
  .table tbody td::before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .admin-main { padding: 16px; }
}

/* =================================================================
 * ca-enhance.css v2 追加 — 统一设计语言
 * 风格基线：参考 login.php 的玻璃质感 + 渐变 blob + 渐变按钮
 * ================================================================= */

/* ============== 全局品牌色系追加 ============== */
:root {
  --brand-grad: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  --brand-grad-soft: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fdf4ff 100%);
  --brand-blue: #3b82f6;
  --brand-indigo: #6366f1;
  --brand-violet: #8b5cf6;
  --glass-bg: rgba(255,255,255,0.72);
  --glass-bg-strong: rgba(255,255,255,0.88);
  --glass-border: rgba(255,255,255,0.55);
  --glass-shadow: 0 20px 50px -12px rgba(31,41,55,.18), 0 8px 20px -8px rgba(31,41,55,.08);
  --blob-1: #93c5fd;
  --blob-2: #c4b5fd;
  --blob-3: #fbcfe8;
}

/* ============== 玻璃 Hero（首页/用户中心用）============== */
.glass-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(139,92,246,.10));
  border: 1px solid rgba(255,255,255,.4);
  margin-bottom: 24px;
}
.glass-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 0%, rgba(59,130,246,.18), transparent 35%),
    radial-gradient(circle at 85% 100%, rgba(139,92,246,.18), transparent 35%);
}
.glass-hero .glass-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--grey-900);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.glass-hero .glass-sub {
  color: var(--grey-500);
  font-size: 14px;
  margin-bottom: 16px;
}
.glass-hero .glass-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============== Blob 背景（沿用 login.php 的视觉）============== */
.blob-bg {
  position: relative;
  isolation: isolate;
  min-height: 100%;
}
.blob-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #eef4ff 0%, #f6f0ff 50%, #fff5f0 100%);
}
.blob-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(59,130,246,.10), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(168,85,247,.10), transparent 45%);
  pointer-events: none;
}
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
  animation: blob-float 18s ease-in-out infinite;
}
.blob-1 { width: 360px; height: 360px; top: -120px; left: -100px; background: var(--blob-1); }
.blob-2 { width: 420px; height: 420px; bottom: -160px; right: -120px; background: var(--blob-2); animation-delay: -6s; }
.blob-3 { width: 260px; height: 260px; top: 40%; left: 55%; background: var(--blob-3); animation-delay: -12s; }
@keyframes blob-float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(28px,-28px) scale(1.05); }
  66%     { transform: translate(-22px,22px) scale(0.95); }
}

/* ============== 玻璃卡片容器 ============== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 28px;
}
.glass-card.compact { padding: 20px; }
.glass-card.flush { padding: 0; overflow: hidden; }
.glass-card .glass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.glass-card .glass-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--grey-900);
  display: flex; align-items: center; gap: 8px;
}
.glass-card .glass-head h3 i {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
}

/* ============== 渐变按钮 ============== */
.btn-brand {
  background: var(--brand-grad);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px -2px rgba(99,102,241,.45);
}
.btn-brand:hover {
  color: #fff;
  box-shadow: 0 8px 22px -4px rgba(99,102,241,.55);
  transform: translateY(-1px);
}
.btn-brand:active { transform: translateY(0); }

/* ============== 统一顶栏（替换 header.php 的 .topbar）============== */
.topbar-modern {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.7);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-modern .tb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-modern .tb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--grey-900);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.topbar-modern .tb-brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-grad);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 6px 16px -6px rgba(99,102,241,.55);
}
.topbar-modern .tb-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.topbar-modern .tb-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--grey-700);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.topbar-modern .tb-nav a i { font-size: 12px; opacity: .7; }
.topbar-modern .tb-nav a:hover {
  background: var(--grey-50);
  color: var(--grey-900);
}
.topbar-modern .tb-nav a.active {
  background: var(--primary-50);
  color: var(--primary-700);
}
.topbar-modern .tb-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  text-decoration: none;
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 500;
}
.topbar-modern .tb-user:hover { background: var(--grey-100); }
.topbar-modern .tb-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ============== 后台顶栏美化 ============== */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid rgba(226,232,240,0.7);
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--grey-900); display:flex; align-items:center; gap:10px; }
.admin-topbar h2 .tb-title-icon {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
}

/* ============== 登录/注册玻璃卡片（外置样式，给 login/register 用）============== */
.auth-shell {
  position: relative;
  min-height: calc(100vh - 0px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
  isolation: isolate;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  animation: card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-brand .brand-mark {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 56px;
  box-shadow: 0 8px 20px -6px rgba(99,102,241,.55);
}
.auth-brand h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 4px;
}
.auth-brand .auth-sub {
  color: var(--grey-500);
  font-size: 14px;
}
.auth-form .field { margin-bottom: 16px; }
.auth-form .field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-700);
}
.auth-form .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--grey-200);
  border-radius: 10px;
  transition: all 0.2s;
}
.auth-form .input-wrap:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}
.auth-form .input-wrap > .input-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; color: var(--grey-500);
  flex: 0 0 40px;
}
.auth-form .input-wrap > input {
  flex: 1;
  padding: 12px 12px 12px 0;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--grey-900);
  outline: none;
}
.auth-form .input-wrap > input::placeholder { color: var(--grey-300); }
.auth-form .input-wrap > .pwd-toggle {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--grey-500);
  display: flex; align-items: center;
}
.auth-form .input-wrap > .pwd-toggle:hover { color: var(--brand-blue); }
.auth-form .submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-grad);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px -2px rgba(99,102,241,.4);
}
.auth-form .submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px rgba(99,102,241,.55);
}
.auth-form .submit-btn:active { transform: translateY(0); }
.auth-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--grey-500);
}
.auth-foot a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}
.auth-foot a:hover { color: var(--brand-indigo); text-decoration: underline; }
.auth-hint {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--primary-50);
  border-radius: 8px;
  font-size: 12px;
  color: var(--grey-500);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; border-radius: 16px; }
  .auth-brand h1 { font-size: 22px; }
  .topbar-modern .tb-nav a { padding: 7px 10px; font-size: 12.5px; }
  .topbar-modern .tb-brand-text { display: none; }
  .glass-hero { padding: 22px 18px; }
  .glass-hero .glass-title { font-size: 22px; }
}

/* ============== 服务网格（首页用）============== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  cursor: pointer;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-grad-soft);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.service-card:hover::after { opacity: 0.4; }
.service-card .sc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.service-card .sc-name { font-size: 15px; font-weight: 700; color: var(--grey-900); position: relative; z-index: 1; }
.service-card .sc-cat { font-size: 12px; color: var(--grey-500); margin-top: 2px; position: relative; z-index: 1; }
.service-card .sc-price {
  margin-top: 14px;
  font-size: 13px;
  color: var(--grey-700);
  position: relative; z-index: 1;
}
.service-card .sc-price strong { color: var(--brand-indigo); font-size: 16px; font-weight: 700; }

/* ============== 价格表 ============== */
.price-list {
  display: flex; flex-direction: column;
  gap: 8px;
}
.price-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-sm);
}
.price-item .pi-label { font-size: 14px; font-weight: 500; color: var(--grey-900); }
.price-item .pi-value { font-size: 15px; font-weight: 700; color: var(--brand-indigo); }

/* ============== 状态徽章 v2（更精致）============== */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--grey-100);
  color: var(--grey-700);
  white-space: nowrap;
  line-height: 1.5;
}
.chip i { font-size: 9px; }
.chip-ok   { background: var(--success-100); color: var(--success-600); }
.chip-warn { background: var(--warning-100); color: var(--warning-600); }
.chip-err  { background: var(--danger-100);  color: var(--danger-600);  }
.chip-info { background: var(--primary-100); color: var(--primary-600); }
.chip-purple { background: var(--purple-100); color: var(--purple-500); }

/* ============== 余额卡片（用户中心 hero）============== */
.balance-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--brand-grad);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px -12px rgba(99,102,241,.45);
}
.balance-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.18), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.10), transparent 55%);
  z-index: -1;
}
.balance-hero .bh-label { font-size: 13px; opacity: .85; margin-bottom: 6px; }
.balance-hero .bh-amount { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.balance-hero .bh-amount small { font-size: 16px; opacity: .8; margin-right: 4px; font-weight: 600; }
.balance-hero .bh-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.balance-hero .bh-actions .btn {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
}
.balance-hero .bh-actions .btn:hover {
  background: rgba(255,255,255,.28);
  color: #fff;
}
.balance-hero .bh-meta { margin-top: 14px; font-size: 12px; opacity: .8; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============== 订单详情（卡片化）============== */
.order-detail-card {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.order-detail-card .odc-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.order-detail-card .odc-title h3 {
  margin: 0; font-size: 16px; font-weight: 700; color: var(--grey-900);
  display: flex; align-items: center; gap: 8px;
}
.order-detail-card .odc-title h3 i {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--brand-grad-soft);
  color: var(--brand-indigo);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.info-grid .ig-item .ig-label { font-size: 12px; color: var(--grey-500); margin-bottom: 4px; }
.info-grid .ig-item .ig-value { font-size: 14px; font-weight: 600; color: var(--grey-900); word-break: break-all; }
.info-grid .ig-item .ig-value code {
  background: var(--grey-100);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--brand-indigo);
}

/* ============== 通用页面头 ============== */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin: 8px 0 16px;
}
.section-head h2 {
  margin: 0;
  font-size: 18px; font-weight: 700; color: var(--grey-900);
  display: flex; align-items: center; gap: 8px;
}
.section-head h2 i {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand-grad-soft);
  color: var(--brand-indigo);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.section-head .sec-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============== 通用 toast（顶部提示）============== */
.toast-stack {
  position: fixed;
  top: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 220px; max-width: 360px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(15,23,42,.92);
  color: #fff;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease;
}
.toast i { font-size: 14px; }
.toast.toast-ok   { background: var(--success-600); }
.toast.toast-err  { background: var(--danger-600); }
.toast.toast-warn { background: var(--warning-600); }
@keyframes toast-in {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* =================================================================
 * ca-enhance.css v3 — 派单监控看板 + 全局玻璃扩散
 * 风格基线：完全沿用 login.php 的玻璃质感 + 渐变 blob + 粉紫渐变按钮
 * ================================================================= */

/* ============== 全局：管理员后台套上 blob 背景 ============== */
body.admin-body {
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 50%, #fdf4ff 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body.admin-body::before,
body.admin-body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: blob-float 22s ease-in-out infinite;
}
body.admin-body::before {
  width: 480px; height: 480px;
  top: -180px; left: -160px;
  background: radial-gradient(circle, #c4b5fd 0%, transparent 70%);
}
body.admin-body::after {
  width: 420px; height: 420px;
  bottom: -180px; right: -140px;
  background: radial-gradient(circle, #fbcfe8 0%, transparent 70%);
  animation-delay: -8s;
}

/* 让 admin 内容浮在 blob 之上 */
body.admin-body .admin-layout,
body.admin-body .admin-content,
body.admin-body .admin-main { position: relative; z-index: 1; }

/* ============== 玻璃 KPI 卡（v3 取代 kpi-blue/green/orange/red）============== */
.kpi-card.kpi-glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  box-shadow: 0 12px 40px -16px rgba(99,102,241,.35), 0 4px 12px -4px rgba(139,92,246,.18);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.kpi-card.kpi-glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -20px rgba(99,102,241,.45), 0 6px 16px -4px rgba(139,92,246,.25);
}
.kpi-card.kpi-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99,102,241,.04), rgba(139,92,246,.04));
  pointer-events: none;
}
.kpi-card.kpi-glass .kpi-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 14px;
}
.kpi-card.kpi-glass.kpi-pending  .kpi-icon { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 8px 20px -6px rgba(99,102,241,.6); }
.kpi-card.kpi-glass.kpi-serving  .kpi-icon { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 8px 20px -6px rgba(245,158,11,.6); }
.kpi-card.kpi-glass.kpi-review   .kpi-icon { background: linear-gradient(135deg, #06b6d4, #3b82f6); box-shadow: 0 8px 20px -6px rgba(6,182,212,.6); }
.kpi-card.kpi-glass.kpi-scrap    .kpi-icon { background: linear-gradient(135deg, #6b7280, #1f2937); box-shadow: 0 8px 20px -6px rgba(31,41,55,.55); }
.kpi-card.kpi-glass .kpi-label { font-size: 13px; color: #475569; font-weight: 500; margin-bottom: 6px; }
.kpi-card.kpi-glass .kpi-value { font-size: 32px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; line-height: 1.1; }
.kpi-card.kpi-glass .kpi-foot  { font-size: 12px; color: #64748b; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.kpi-card.kpi-glass.kpi-warn   { border-color: rgba(239,68,68,.45); }
.kpi-card.kpi-glass.kpi-warn   .kpi-value { color: #dc2626; }
.kpi-card.kpi-glass .kpi-link {
  position: absolute; inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}

/* ============== 玻璃主内容卡（替代默认 .card）============== */
.card.glass {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
  box-shadow: 0 8px 32px -16px rgba(99,102,241,.25);
  overflow: hidden;
}
.card.glass .card-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(99,102,241,.10);
  background: linear-gradient(135deg, rgba(99,102,241,.04), rgba(139,92,246,.04));
}
.card.glass .card-head h3 {
  font-size: 15px; font-weight: 700; color: #1e293b;
  display: inline-flex; align-items: center; gap: 8px;
}
.card.glass .card-head h3 i {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--brand-grad, linear-gradient(135deg,#6366f1,#8b5cf6));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.card.glass .card-body { padding: 20px 22px; }

/* ============== 派单 7-tab 切换条 ============== */
.dispatch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px -10px rgba(99,102,241,.25);
}
.dispatch-tab {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}
.dispatch-tab:hover {
  background: rgba(99,102,241,.08);
  color: #4f46e5;
}
.dispatch-tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(99,102,241,.55);
}
.dispatch-tab .tab-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(15,23,42,.08);
  font-weight: 700;
}
.dispatch-tab.active .tab-count {
  background: rgba(255,255,255,.28);
  color: #fff;
}

/* ============== 派单状态徽章（v3 统一）============== */
.badge-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-state::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-state.state-pending { background: rgba(99,102,241,.10);  color: #4f46e5; }   /* 待分配陪玩 蓝紫 */
.badge-state.state-serving { background: rgba(245,158,11,.12);  color: #d97706; }   /* 服务中 橙 */
.badge-state.state-review  { background: rgba(6,182,212,.12);   color: #0891b2; }   /* 待审核 青 */
.badge-state.state-pass    { background: rgba(16,185,129,.12);  color: #059669; }   /* 已通过 绿 */
.badge-state.state-reject  { background: rgba(239,68,68,.12);   color: #dc2626; }   /* 已驳回 红 */
.badge-state.state-cancel  { background: rgba(107,114,128,.12); color: #4b5563; }   /* 已撤销 灰 */
.badge-state.state-transfer{ background: rgba(168,85,247,.12);  color: #9333ea; }   /* 转单中 紫 */
.badge-state.state-scrap   { background: rgba(15,23,42,.15);    color: #1e293b; }   /* 已作废 深灰 */

/* 兼容旧 chip 类（dispatch_status 显示） */
.chip.state-pending  { background: rgba(99,102,241,.10);  color: #4f46e5; }
.chip.state-serving  { background: rgba(245,158,11,.12);  color: #d97706; }
.chip.state-review   { background: rgba(6,182,212,.12);   color: #0891b2; }
.chip.state-pass     { background: rgba(16,185,129,.12);  color: #059669; }
.chip.state-reject   { background: rgba(239,68,68,.12);   color: #dc2626; }
.chip.state-cancel   { background: rgba(107,114,128,.12); color: #4b5563; }
.chip.state-transfer { background: rgba(168,85,247,.12);  color: #9333ea; }
.chip.state-scrap    { background: rgba(15,23,42,.15);    color: #1e293b; }

/* ============== settings.php 多 tab ============== */
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(99,102,241,.15);
  padding-bottom: 0;
}
.settings-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.settings-tab:hover { color: #4f46e5; }
.settings-tab.active {
  color: #4f46e5;
  border-bottom-color: #6366f1;
}
.settings-tab .tab-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(99,102,241,.10);
  color: #4f46e5;
  font-weight: 700;
}
.settings-tab.active .tab-count {
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  color: #fff;
}

/* ============== 派单员业绩排行 ============== */
.dispatcher-rank {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.dispatcher-rank .rank-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  font-size: 13px;
}
.dispatcher-rank .rank-num {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: rgba(99,102,241,.10);
  color: #4f46e5;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.dispatcher-rank .rank-row.top1 .rank-num { background: linear-gradient(135deg,#fbbf24,#f59e0b); color:#fff; }
.dispatcher-rank .rank-row.top2 .rank-num { background: linear-gradient(135deg,#d1d5db,#9ca3af); color:#fff; }
.dispatcher-rank .rank-row.top3 .rank-num { background: linear-gradient(135deg,#fb923c,#c2410c); color:#fff; }
.dispatcher-rank .rank-name  { font-weight: 600; color: #0f172a; }
.dispatcher-rank .rank-count { font-size: 12px; color: #64748b; }
.dispatcher-rank .rank-money { font-weight: 700; color: #6366f1; }


/* =================================================================
 * ca-enhance.css v4 - 全后台玻璃 + tab + 表单全套组件
 * 目标：login.php 风格一致，admin 全站统一
 * ================================================================= */

/* ============== 工具页 tab-bar 升级成 settings-tabs 风格 ============== */
.tab-bar { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid rgba(99,102,241,.15); padding-bottom: 0; }
.tab-bar > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all .2s ease;
}
.tab-bar > a:hover { color: #4f46e5; }
.tab-bar > a.active {
  color: #4f46e5;
  border-bottom-color: #6366f1;
}
.tab-bar > a .badge {
  font-size: 11px; padding: 1px 7px; border-radius: 99px;
  background: rgba(99,102,241,.10); color: #4f46e5; font-weight: 700;
}
.tab-bar > a.active .badge {
  background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff;
}

/* ============== kpi-blue / kpi-orange / kpi-purple / kpi-red / kpi-green
 *                兼容就样式，但加上 glass 质感 ============== */
.kpi-card.kpi-blue,
.kpi-card.kpi-orange,
.kpi-card.kpi-purple,
.kpi-card.kpi-red,
.kpi-card.kpi-green,
.kpi-card.kpi-grey {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  box-shadow: 0 12px 40px -16px rgba(99,102,241,.35), 0 4px 12px -4px rgba(139,92,246,.18);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.kpi-card.kpi-blue:hover,
.kpi-card.kpi-orange:hover,
.kpi-card.kpi-purple:hover,
.kpi-card.kpi-red:hover,
.kpi-card.kpi-green:hover,
.kpi-card.kpi-grey:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -20px rgba(99,102,241,.45), 0 6px 16px -4px rgba(139,92,246,.25);
}
.kpi-card.kpi-blue   .kpi-icon { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; }
.kpi-card.kpi-orange .kpi-icon { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.kpi-card.kpi-purple .kpi-icon { background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; }
.kpi-card.kpi-red    .kpi-icon { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.kpi-card.kpi-green  .kpi-icon { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.kpi-card.kpi-grey   .kpi-icon { background: linear-gradient(135deg, #6b7280, #1f2937); color: #fff; }
.kpi-card.kpi-blue   .kpi-icon,
.kpi-card.kpi-orange .kpi-icon,
.kpi-card.kpi-purple .kpi-icon,
.kpi-card.kpi-red    .kpi-icon,
.kpi-card.kpi-green  .kpi-icon,
.kpi-card.kpi-grey   .kpi-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px -8px rgba(99,102,241,.5);
}

/* ============== 通用 .card 套玻璃质感（不改名但加 glass 后缀可变）============== */
.card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
  box-shadow: 0 8px 32px -16px rgba(99,102,241,.25);
  overflow: hidden;
  margin-bottom: 16px;
}
.card .card-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(99,102,241,.10);
  background: linear-gradient(135deg, rgba(99,102,241,.04), rgba(139,92,246,.04));
}
.card .card-head h3 {
  font-size: 15px; font-weight: 700; color: #1e293b;
  display: inline-flex; align-items: center; gap: 8px;
}
.card .card-head h3 i {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--brand-grad, linear-gradient(135deg,#6366f1,#8b5cf6));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.card .card-body { padding: 18px 22px; }
.card .card-body.flush { padding: 0; }

/* ============== chip 兼容老 badge-state ============== */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.chip.chip-ok    { background: rgba(16,185,129,.12); color: #059669; }
.chip.chip-err   { background: rgba(239,68,68,.12);  color: #dc2626; }
.chip.chip-warn  { background: rgba(245,158,11,.12); color: #d97706; }
.chip.chip-info  { background: rgba(99,102,241,.10); color: #4f46e5; }
.chip.chip-purple{ background: rgba(168,85,247,.12); color: #9333ea; }
.chip.chip-grey  { background: rgba(107,114,128,.12); color: #4b5563; }

/* ============== alert 玻璃化 ============== */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert-ok, .alert-success { background: rgba(16,185,129,.10); color: #047857; border: 1px solid rgba(16,185,129,.25); }
.alert-err, .alert-error   { background: rgba(239,68,68,.10); color: #b91c1c; border: 1px solid rgba(239,68,68,.25); }
.alert-warn               { background: rgba(245,158,11,.10); color: #b45309; border: 1px solid rgba(245,158,11,.25); }
.alert-info               { background: rgba(99,102,241,.10); color: #4338ca; border: 1px solid rgba(99,102,241,.25); }

/* ============== form-control 玻璃输入 ============== */
.form-control, input[type=text][class], input[type=number][class], select.form-control, textarea.form-control {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(99,102,241,.18);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #0f172a;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none;
  border-color: rgba(99,102,241,.6);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* ============== btn 升级：保留原类名 + 玻璃感 ============== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s ease; border: 1px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; box-shadow: 0 4px 14px -4px rgba(99,102,241,.55); }
.btn-primary:hover { box-shadow: 0 8px 22px -4px rgba(99,102,241,.65); }
.btn-secondary { background: rgba(255,255,255,0.85); color: #475569; border-color: rgba(99,102,241,.15); }
.btn-secondary:hover { background: rgba(99,102,241,.08); color: #4f46e5; }
.btn-warn { background: linear-gradient(135deg,#f59e0b,#ef4444); color: #fff; }
.btn-danger { background: linear-gradient(135deg,#ef4444,#b91c1c); color: #fff; }
.btn-success { background: linear-gradient(135deg,#10b981,#059669); color: #fff; }
.btn-outline { background: transparent; color: #4f46e5; border: 1px solid rgba(99,102,241,.35); }
.btn-outline:hover { background: rgba(99,102,241,.08); }
.btn-brand { background: linear-gradient(135deg,#3b82f6,#6366f1); color: #fff; box-shadow: 0 4px 14px -4px rgba(59,130,246,.55); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 8px; }

/* ============== table 玻璃化 ============== */
.table-container { background: transparent; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: rgba(99,102,241,.06);
  border-bottom: 1px solid rgba(99,102,241,.12);
  padding: 12px 14px;
}
.table tbody td {
  padding: 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(226,232,240,.6);
  vertical-align: middle;
}
.table tbody tr:hover { background: rgba(99,102,241,.03); }
.table code { background: rgba(99,102,241,.08); padding: 2px 7px; border-radius: 6px; color: #4338ca; font-size: 12px; }

/* ============== empty-state ============== */
.empty-state { text-align: center; padding: 60px 0; color: #94a3b8; }
.empty-icon { font-size: 48px; opacity: .45; margin-bottom: 12px; }
.empty-state h4 { margin-bottom: 6px; font-size: 16px; color: #475569; }
.empty-state p { font-size: 13px; }

/* ============== page-header / page-title (v1 备份 风格) ============== */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.page-title h1, .page-title h2 { font-size: 22px; font-weight: 800; color: #0f172a; display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.page-title h1 i, .page-title h2 i {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-grad, linear-gradient(135deg,#6366f1,#8b5cf6));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 6px 16px -6px rgba(99,102,241,.55);
}

/* ============== admin-overview (v1 备份的 4 张统计卡) ============== */
.admin-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.admin-overview .overview-item {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 6px 24px -12px rgba(99,102,241,.30);
  transition: transform .25s, box-shadow .25s;
}
.admin-overview .overview-item:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -12px rgba(99,102,241,.40); }
.admin-overview .overview-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; flex-shrink: 0;
  box-shadow: 0 6px 16px -6px rgba(99,102,241,.5);
}
.admin-overview .overview-icon.blue   { background: linear-gradient(135deg,#3b82f6,#6366f1); }
.admin-overview .overview-icon.green  { background: linear-gradient(135deg,#10b981,#059669); }
.admin-overview .overview-icon.purple { background: linear-gradient(135deg,#a855f7,#ec4899); }
.admin-overview .overview-icon.orange { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.admin-overview .overview-icon.red    { background: linear-gradient(135deg,#ef4444,#b91c1c); }
.admin-overview .overview-icon.grey   { background: linear-gradient(135deg,#6b7280,#1f2937); }
.admin-overview .overview-value { font-size: 22px; font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
.admin-overview .overview-label { font-size: 12px; color: #64748b; margin-top: 2px; }

/* ============== badge 玻璃化 ============== */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: rgba(99,102,241,.10); color: #4f46e5; }
.badge-success { background: rgba(16,185,129,.12); color: #059669; }
.badge-danger  { background: rgba(239,68,68,.12);  color: #dc2626; }
.badge-warning { background: rgba(245,158,11,.12); color: #d97706; }
.badge-info    { background: rgba(99,102,241,.10); color: #4f46e5; }

/* ============== stats-row (v1 备份用) -> 玻璃化 ============== */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 6px 24px -12px rgba(99,102,241,.30);
}
.stat-number { font-size: 28px; font-weight: 800; color: #4f46e5; letter-spacing: -.02em; }
.stat-label { font-size: 12px; color: #64748b; margin-top: 4px; }

/* ============== 移动端卡片列表（v1 player-card）============== */
.user-card-list { display: none; grid-template-columns: 1fr; gap: 12px; }
@media (max-width: 768px) {
  .table-container > .table { display: none; }
  .user-card-list { display: grid; }
}
.player-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 18px -10px rgba(99,102,241,.25);
}
.player-card-header { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.player-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.player-info { flex: 1; }
.player-name { font-weight: 700; color: #0f172a; font-size: 15px; }
.player-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #64748b; margin-top: 2px; }
.player-tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 99px;
  background: rgba(99,102,241,.08); color: #4f46e5;
  font-size: 11px; font-weight: 600;
}
.player-tag.time { background: rgba(245,158,11,.10); color: #b45309; }

/* ============== cleanup-card (v1 cleanup tab) ============== */
.cleanup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.cleanup-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 20px -10px rgba(99,102,241,.25);
}
.cleanup-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; flex-shrink: 0;
}
.cleanup-icon.red    { background: linear-gradient(135deg,#ef4444,#b91c1c); }
.cleanup-icon.yellow { background: linear-gradient(135deg,#f59e0b,#d97706); }
.cleanup-icon.blue   { background: linear-gradient(135deg,#3b82f6,#6366f1); }
.cleanup-icon.purple { background: linear-gradient(135deg,#a855f7,#ec4899); }
.cleanup-icon.green  { background: linear-gradient(135deg,#10b981,#059669); }
.cleanup-info { flex: 1; }
.cleanup-info h4 { margin: 0 0 4px; font-size: 14px; color: #0f172a; }
.cleanup-info p { font-size: 12px; color: #64748b; margin: 0 0 6px; }
.cleanup-info .stats { display: flex; gap: 12px; font-size: 12px; color: #475569; }
.cleanup-info .stats b { color: #4f46e5; }

/* ============== form-row / form-group (v1) -> 玻璃 ============== */
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group label { font-size: 13px; color: #475569; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px;
  border: 1px solid rgba(99,102,241,.18);
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255,255,255,0.85);
  min-width: 150px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: rgba(99,102,241,.6);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* ============== search-form (v1) ============== */
.search-form { padding: 14px 18px; border-bottom: 1px solid rgba(99,102,241,.10); background: rgba(255,255,255,0.5); }
.search-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search-input-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.search-input { padding-left: 36px; width: 100%; }
.filter-select { padding: 10px 14px; border: 1px solid rgba(99,102,241,.18); border-radius: 10px; font-size: 13px; background: rgba(255,255,255,0.85); }

/* ============== action-bar (v1 tab-bar 个变体) ============== */
.action-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }

/* ============== info-card (用于展示 v1 接单信息块) ============== */
.info-card {
  background: rgba(99,102,241,.06);
  border: 1px solid rgba(99,102,241,.15);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}
.info-mini { display: flex; flex-wrap: wrap; gap: 10px; }
.info-mini span { display: inline-flex; align-items: center; gap: 4px; color: #475569; }
.info-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* ============== rating-display (v1) ============== */
.rating-display { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(245,158,11,.10); color: #b45309; font-size: 12px; font-weight: 700; }
.rating-display.empty { background: rgba(148,163,184,.15); color: #94a3b8; }
.rating-display i { font-size: 12px; color: #f59e0b; }

/* ============== Excel-like data-table 备份老样式 玻璃覆盖 ============== */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table thead th { background: rgba(99,102,241,.06); font-size: 12px; color: #475569; padding: 12px 14px; border-bottom: 1px solid rgba(99,102,241,.12); text-align: left; font-weight: 700; }
.data-table tbody td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid rgba(226,232,240,.6); }
.data-table tbody tr:hover { background: rgba(99,102,241,.03); }

/* ============== td-center / td-right / td-muted (v1) ============== */
.td-center { text-align: center !important; }
.td-right  { text-align: right !important; }
.td-muted  { color: #94a3b8; }

.mb-24 { margin-bottom: 24px; }
