/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  min-height: 100vh;
  color: #303133;
  font-size: 14px;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ===== 顶部导航 ===== */
.top-nav {
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav-brand {
  font-size: 22px;
  font-weight: 700;
  color: #409eff;
  letter-spacing: 1px;
  margin-right: 40px;
  white-space: nowrap;
}
.nav-menu {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}
.nav-menu a {
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #606266;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover {
  color: #409eff;
  background: #ecf5ff;
}
.nav-menu a.active {
  color: #409eff;
  border-bottom-color: #409eff;
  font-weight: 500;
}
.nav-menu a svg { width: 16px; height: 16px; }
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}
.nav-user .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.nav-user .username {
  font-size: 14px;
  color: #303133;
  font-weight: 500;
}
.nav-user .logout {
  font-size: 13px;
  color: #909399;
  padding: 6px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-user .logout:hover {
  color: #f56c6c;
  border-color: #f56c6c;
  background: #fef0f0;
}

/* ===== 主内容 ===== */
.main-content {
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
}
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 页面标题 ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1a202c;
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.header-actions input, .header-actions select {
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  background: #fff;
}
.header-actions input:focus, .header-actions select:focus {
  outline: none;
  border-color: #409eff;
  box-shadow: 0 0 0 3px rgba(64,158,255,0.1);
}

/* ===== 欢迎横幅 ===== */
.welcome-banner {
  background: #fff;
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.welcome-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.welcome-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  flex-shrink: 0;
}
.welcome-text h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 4px;
}
.welcome-text p {
  font-size: 14px;
  color: #718096;
}

/* ===== 按钮 ===== */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #409eff 0%, #337ecc 100%);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64,158,255,0.3);
}
.btn-success {
  background: linear-gradient(135deg, #67c23a 0%, #5daf34 100%);
  color: #fff;
}
.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(103,194,58,0.3);
}
.btn-warning {
  background: linear-gradient(135deg, #e6a23c 0%, #cf9236 100%);
  color: #fff;
}
.btn-warning:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,162,60,0.3);
}
.btn-danger {
  background: linear-gradient(135deg, #f56c6c 0%, #dd6161 100%);
  color: #fff;
}
.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,108,108,0.3);
}
.btn-plain {
  background: #fff;
  color: #606266;
  border: 1px solid #dcdfe6;
}
.btn-plain:hover {
  color: #409eff;
  border-color: #409eff;
  background: #ecf5ff;
}
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-refresh {
  background: linear-gradient(135deg, #409eff 0%, #337ecc 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}
  transition: all 0.2s;
}
.btn-refresh:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64,158,255,0.3);
}

/* ===== 统计卡片（老系统风格：横向布局+圆形图标） ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #ebeef5;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.stat-header {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  flex-shrink: 0;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.users { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-icon.orders { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-icon.total { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-icon.products { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-icon.couriers { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.stat-icon.money { background: linear-gradient(135deg, #fa709a, #fee140); }
.stat-icon.pending { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-icon.settling { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.stat-icon.settled { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.stat-icon.cancelled { background: linear-gradient(135deg, #fa709a, #fee140); }
.stat-trend {
  display: none;
}
.stat-body {
  flex: 1;
  min-width: 0;
}
.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #303133;
  margin-bottom: 4px;
  line-height: 1.2;
}
.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: #909399;
  margin-bottom: 0;
}
.stat-detail {
  display: none;
}

/* ===== 区块标题 ===== */
.section-title {
  margin-bottom: 16px;
}
.section-title h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 4px;
}
.section-title .subtitle {
  font-size: 14px;
  color: #718096;
}

/* ===== 快速操作 ===== */
.quick-actions {
  margin-bottom: 24px;
}
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.action-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}
.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.action-icon svg { width: 20px; height: 20px; }
.action-icon.users { background: linear-gradient(135deg, #667eea, #764ba2); }
.action-icon.orders { background: linear-gradient(135deg, #f093fb, #f5576c); }
.action-icon.products { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.action-icon.couriers { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.action-icon.money { background: linear-gradient(135deg, #fa709a, #fee140); }
.action-icon.settlement { background: linear-gradient(135deg, #a8edea, #fed6e3); color: #666; }
.action-content { flex: 1; min-width: 0; }
.action-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 2px;
}
.action-desc {
  font-size: 13px;
  color: #718096;
}
.action-arrow {
  color: #c0c4cc;
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== 系统状态 ===== */
.system-status {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 10px;
}
.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-indicator.online { background: #67c23a; box-shadow: 0 0 0 4px rgba(103,194,58,0.2); }
.status-indicator.success { background: #409eff; box-shadow: 0 0 0 4px rgba(64,158,255,0.2); }
.status-indicator.warning { background: #e6a23c; box-shadow: 0 0 0 4px rgba(230,162,60,0.2); }
.status-label {
  font-size: 13px;
  color: #718096;
  margin-bottom: 2px;
}
.status-value {
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
}

/* ===== 列表卡片 ===== */
.list-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 20px;
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.card-header .title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.card-header .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.card-body { padding: 0 24px; }
.card-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  border-top: 1px solid #ebeef5;
}

/* ===== 筛选栏 ===== */
.filter-bar {
  padding: 16px 24px;
  background: #fafbfc;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar .form-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-bar label {
  font-size: 13px;
  color: #606266;
  white-space: nowrap;
}
.filter-bar input, .filter-bar select {
  padding: 7px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  transition: all 0.2s;
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: none;
  border-color: #409eff;
}

/* ===== 表格 ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: 0;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
thead th {
  background: #fafafa;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: #606266;
  border-bottom: 1px solid #ebeef5;
  white-space: nowrap;
  font-size: 13px;
}
tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #f2f6fc;
  color: #303133;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr {
  transition: background 0.2s;
}
tbody tr:hover {
  background: #f5f7fa;
}
tbody tr:last-child td { border-bottom: none; }

/* 移动端表格适配 */
@media (max-width: 768px) {
  table {
    font-size: 12px;
  }
  thead th {
    padding: 6px 8px;
    font-size: 11px;
  }
  tbody td {
    padding: 6px 8px;
    font-size: 12px;
  }
}
.empty {
  text-align: center;
  padding: 40px !important;
  color: #c0c4cc;
  font-size: 14px;
}

/* 表格多行信息 */
.cell-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #409eff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}
.user-info { min-width: 0; }
.user-name {
  font-size: 14px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 2px;
}
.user-phone {
  font-size: 12px;
  color: #909399;
  font-family: monospace;
}
.cell-product { min-width: 0; }
.product-name {
  font-size: 14px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 2px;
}
.product-meta {
  font-size: 12px;
  color: #909399;
}
.cell-courier { min-width: 0; }
.courier-name {
  font-size: 14px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 2px;
}
.tracking-num {
  font-size: 12px;
  color: #909399;
  font-family: monospace;
}
.order-id-cell {
  font-family: monospace;
  color: #409eff;
  font-weight: 600;
  font-size: 14px;
}
.amount-cell {
  font-family: monospace;
  color: #f56c6c;
  font-weight: 600;
  font-size: 15px;
}
.amount-cell.green { color: #67c23a; }

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-pending { background: #fdf6ec; color: #e6a23c; }
.tag-settling { background: #ecf5ff; color: #409eff; }
.tag-settled { background: #f0f9eb; color: #67c23a; }
.tag-cancelled { background: #fef0f0; color: #f56c6c; }

/* ===== 分页 ===== */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  color: #606266;
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) {
  color: #409eff;
  border-color: #409eff;
}
.pagination button.active {
  background: #409eff;
  color: #fff;
  border-color: #409eff;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination .page-info {
  font-size: 13px;
  color: #909399;
  margin: 0 8px;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  border-radius: 12px 12px 0 0;
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}
.modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #909399;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}
.modal-close:hover { background: #e4e7ed; color: #606266; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #ebeef5;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #606266;
  margin-bottom: 8px;
}
.form-group label .required { color: #f56c6c; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: #409eff;
  box-shadow: 0 0 0 3px rgba(64,158,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint {
  font-size: 12px;
  color: #909399;
  margin-top: 6px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.toast.success { background: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8; }
.toast.error { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }
.toast.warning { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.toast.info { background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff; }

/* ===== 确认对话框 ===== */
.confirm-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  padding: 20px;
}
.confirm-overlay.active { display: flex; }
.confirm-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.confirm-box .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fdf6ec;
  color: #e6a23c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.confirm-box h4 {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 8px;
}
.confirm-box p {
  font-size: 14px;
  color: #606266;
  margin-bottom: 20px;
}
.confirm-box .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ===== 移动端底部导航 ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e4e7ed;
  padding: 8px 0;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.mobile-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  font-size: 10px;
  color: #909399;
  transition: all 0.2s;
  min-width: 0;
}
.mobile-nav a svg { width: 18px; height: 18px; }
.mobile-nav a.active {
  color: #409eff;
  font-weight: 500;
}
.mobile-nav a.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 2px;
  background: #409eff;
  border-radius: 0 0 2px 2px;
}

/* ===== 移动端用户卡片 ===== */
.mobile-cards { display: none; }
.user-card-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.user-card-header {
  padding: 14px;
  background: #f8f9fa;
  border-bottom: 1px solid #e4e7ed;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.user-card-header .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.user-card-header .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.user-card-header .user-details { flex: 1; min-width: 0; }
.user-card-header .user-name {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 4px;
}
.user-card-header .user-id {
  font-size: 12px;
  color: #909399;
  font-family: monospace;
  background: #f0f0f0;
  padding: 3px 7px;
  border-radius: 4px;
}
.user-card-body { padding: 14px; }
.user-card-body .info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.user-card-body .info-row:last-child { margin-bottom: 0; }
.user-card-body .info-label {
  font-size: 13px;
  color: #606266;
  font-weight: 500;
}
.user-card-body .info-value {
  font-size: 13px;
  color: #303133;
  text-align: right;
  font-family: monospace;
}
.user-card-actions {
  padding: 10px 14px;
  background: #fafafa;
  border-top: 1px solid #e4e7ed;
  display: flex;
  gap: 8px;
}
.user-card-actions .btn { flex: 1; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .top-nav { padding: 0 16px; height: 56px; }
  .nav-brand { font-size: 18px; margin-right: 16px; }
  .nav-menu { display: none; }
  .nav-user .username { display: none; }
  .main-content { padding: 16px; padding-bottom: 80px; }
  .welcome-banner { padding: 16px 20px; }
  .welcome-avatar { width: 48px; height: 48px; font-size: 20px; }
  .welcome-text h1 { font-size: 18px; }
  .welcome-text p { font-size: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-number { font-size: 24px; }
  .stat-label { font-size: 14px; }
  .stat-detail { font-size: 12px; }
  .stat-icon { width: 40px; height: 40px; }
  .actions-grid { grid-template-columns: 1fr; }
  .card-header { padding: 14px 16px; }
  .card-body { padding: 0 16px; }
  .card-footer { padding: 12px 16px; }
  .filter-bar { padding: 12px 16px; }
  .page-header h2 { font-size: 18px; }
  .mobile-nav { display: flex; }
  .desktop-table { display: none; }
  .desktop-only { display: none !important; }
  .mobile-cards { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .modal { margin: 10px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { display: block; padding: 16px; }
  .stat-header { margin-bottom: 8px; flex-direction: row; gap: 8px; align-items: center; }
  .stat-body { flex: none; }
  .stat-number { font-size: 22px; }
  .stat-label { font-size: 13px; }
  .stat-detail { font-size: 11px; }
  .stat-icon { width: 36px; height: 36px; }
  .actions-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .action-card { padding: 16px 12px; }
  .action-title { font-size: 14px; }
  .action-desc { font-size: 11px; }
}

/* ===== 用户等级 ===== */
.level-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #ebeef5;
}
.level-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.level-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.level-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #f5f7fa;
  border: 2px solid #909399;
  min-width: 80px;
  justify-content: center;
}
.level-icon { font-size: 20px; }
.level-name {
  font-size: 15px;
  font-weight: 700;
  color: #909399;
}
.level-growth { flex: 1; }
.growth-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #909399;
  margin-bottom: 6px;
}
.growth-bar {
  height: 8px;
  background: #ebeef5;
  border-radius: 4px;
  overflow: hidden;
}
.growth-progress {
  height: 100%;
  background: linear-gradient(90deg, #909399, #909399dd);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.growth-tip {
  font-size: 11px;
  color: #c0c4cc;
  margin-top: 4px;
}
.level-reward-tip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #ebeef5;
  font-size: 13px;
  color: #606266;
}
.level-arrow {
  font-size: 18px;
  color: #c0c4cc;
}

/* 等级说明弹窗 */
.level-intro {
  margin-bottom: 16px;
}
.level-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.level-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fafafa;
  border-radius: 12px;
}
.level-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.level-item-info { flex: 1; }
.level-item-name {
  font-size: 15px;
  font-weight: 700;
  color: #303133;
  margin-bottom: 2px;
}
.level-item-cond {
  font-size: 12px;
  color: #909399;
}
.level-item-reward {
  font-size: 14px;
  font-weight: 600;
  color: #606266;
}

/* 移动端等级适配 */
@media (max-width: 480px) {
  .level-card { padding: 16px; }
  .level-header { gap: 12px; }
  .level-badge { padding: 6px 10px; min-width: 70px; }
  .level-icon { font-size: 18px; }
  .level-name { font-size: 13px; }
  .level-item { padding: 12px; }
  .level-item-icon { width: 38px; height: 38px; font-size: 18px; }
  .level-item-name { font-size: 14px; }
  .level-item-reward { font-size: 13px; }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* ===== 复选框 ===== */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #409eff;
}

/* ===== 登录页面 ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-card h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.login-card .sub {
  text-align: center;
  color: #909399;
  font-size: 14px;
  margin-bottom: 28px;
}
.login-tabs {
  display: flex;
  margin-bottom: 24px;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 4px;
}
.login-tabs div {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #606266;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.login-tabs div.active {
  background: #fff;
  color: #409eff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.login-card .btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 8px;
}
.login-links {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #c0c4cc;
}

/* ===== 个人中心 - 我的页面 ===== */
.profile-header-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 3px solid rgba(255,255,255,0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}
.profile-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.profile-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.profile-tag {
  background: rgba(255,255,255,0.25);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.profile-date {
  font-size: 12px;
  opacity: 0.9;
}

/* 功能入口卡片 */
.profile-menu-card {
  background: #fff;
  border-radius: 16px;
  padding: 8px 0;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.profile-menu-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f5f7fa;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: #f8f9fa; }
.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}
.menu-icon svg { width: 20px; height: 20px; }
.menu-icon.blue { background: #ecf5ff; color: #409eff; }
.menu-icon.green { background: #f0f9eb; color: #67c23a; }
.menu-icon.red { background: #fef0f0; color: #f56c6c; }
.menu-content { flex: 1; }
.menu-title { font-size: 15px; font-weight: 500; color: #303133; margin-bottom: 2px; }
.menu-subtitle { font-size: 12px; color: #909399; }
.menu-arrow { font-size: 24px; color: #c0c4cc; font-weight: 300; }

/* 个人信息卡片 */
.profile-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 4px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.profile-info-card .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f5f7fa;
}
.profile-info-card .info-label { font-size: 14px; color: #909399; }
.profile-info-card .info-value { font-size: 14px; color: #303133; font-weight: 500; }

/* 子页面头部 */
.sub-page-header {
  display: flex;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 16px;
  position: relative;
}
.sub-page-header h2 {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.back-btn {
  position: absolute;
  left: 0;
  background: none;
  border: none;
  color: #409eff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
}
.back-btn svg { width: 18px; height: 18px; }

/* 编辑头像卡片 */
.edit-avatar-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}
.avatar-tip { font-size: 13px; color: #909399; }

/* 编辑区域卡片 */
.edit-section-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 16px;
}

/* 带图标的输入框 */
.input-with-icon {
  position: relative;
}
.input-with-icon input {
  padding-right: 40px;
}
.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #c0c4cc;
}
.form-hint {
  font-size: 12px;
  color: #c0c4cc;
  margin-top: 6px;
}

/* 编辑操作按钮 */
.edit-actions {
  padding: 8px 0 24px;
}
.edit-actions .btn {
  width: 100%;
  margin-bottom: 12px;
  padding: 14px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.edit-actions .btn svg { width: 18px; height: 18px; }

/* ===== 管理员用户卡片（移动端） ===== */
.admin-user-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.auc-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f5f7fa;
}
.auc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}
.auc-info { flex: 1; }
.auc-name { font-size: 16px; font-weight: 600; color: #303133; margin-bottom: 6px; }
.auc-tags { display: flex; gap: 6px; }
.auc-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.auc-id { font-size: 13px; color: #909399; flex-shrink: 0; }
.auc-body { padding: 4px 16px; }
.auc-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f5f7fa;
}
.auc-label {
  width: 70px;
  font-size: 13px;
  color: #909399;
  flex-shrink: 0;
}
.auc-value { flex: 1; font-size: 13px; color: #303133; }
.auc-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.auc-contact svg { width: 14px; height: 14px; color: #909399; flex-shrink: 0; }
.auc-amount { margin-bottom: 4px; }
.auc-security {
  background: #f8f9fa;
  padding: 8px 10px;
  border-radius: 6px;
}
.auc-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f5f7fa;
}
.auc-actions .btn { display: flex; align-items: center; justify-content: center; gap: 4px; }

/* ===== Switch开关 ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #dcdfe6;
  transition: 0.3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: #409eff;
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* ===== 图片验证码 ===== */
.captcha-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}
.captcha-wrap input { flex: 1; }
.captcha-img {
  width: 110px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #dcdfe6;
  flex-shrink: 0;
}
.captcha-refresh {
  font-size: 12px;
  color: #409eff;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== 图片预览 ===== */
.img-preview-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.img-preview-overlay.active { display: flex; }
.img-preview-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}

/* ===== 老系统风格 - 卡片式列表 ===== */
.legacy-card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e4e7ed;
  overflow: hidden;
}
.legacy-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
}
.legacy-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #303133;
}
.legacy-card-id {
  font-size: 18px;
  font-weight: 700;
  color: #409eff;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}
.legacy-card-body {
  padding: 8px 20px;
}
.legacy-info-row {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f5f7fa;
}
.legacy-info-row:last-child {
  border-bottom: none;
}
.legacy-info-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  color: #909399;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legacy-info-label {
  width: 70px;
  font-size: 15px;
  color: #909399;
  flex-shrink: 0;
  line-height: 24px;
}
.legacy-info-content {
  flex: 1;
  font-size: 15px;
  color: #303133;
  line-height: 24px;
}
.legacy-info-content .sub-text {
  font-size: 13px;
  color: #909399;
  margin-top: 2px;
}
.legacy-amount-row {
  background: #ecf5ff;
  margin: 0 -20px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
}
.legacy-amount-row .legacy-info-icon,
.legacy-amount-row .legacy-info-label {
  color: #606266;
}
.legacy-amount-value {
  font-size: 24px;
  font-weight: 700;
  color: #606266;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}
.legacy-card-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #f0f2f5;
}
.legacy-btn-primary {
  flex: 1;
  background: #409eff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
}
.legacy-btn-primary:hover {
  background: #66b1ff;
}
.legacy-btn-plain {
  flex: 0 0 auto;
  background: #f5f7fa;
  color: #606266;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.legacy-btn-plain:hover {
  background: #ecf5ff;
  color: #409eff;
  border-color: #c6e2ff;
}
.legacy-btn-success {
  flex: 1;
  background: #67c23a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.legacy-btn-success:hover {
  background: #85ce61;
}
.legacy-btn-more {
  background: #909399;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.legacy-btn-more:hover {
  background: #a6a9ad;
}
.legacy-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}
.legacy-tag.active {
  background: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
}
.legacy-tag.disabled {
  background: #f4f4f5;
  color: #909399;
  border: 1px solid #e9e9eb;
}
.legacy-tag.pending {
  background: #fdf6ec;
  color: #e6a23c;
  border: 1px solid #faecd8;
}
.legacy-tag.settling {
  background: #ecf5ff;
  color: #409eff;
  border: 1px solid #d9ecff;
}
.legacy-tag.settled {
  background: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
}
.legacy-tag.cancelled {
  background: #f4f4f5;
  color: #909399;
  border: 1px solid #e9e9eb;
}
.legacy-tag.admin {
  background: #fef0f0;
  color: #f56c6c;
  border: 1px solid #fde2e2;
}
.legacy-tag.user {
  background: #ecf5ff;
  color: #409eff;
  border: 1px solid #d9ecff;
}

/* 老系统风格 - 统计卡片 */
.legacy-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.legacy-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e4e7ed;
  cursor: pointer;
  transition: all 0.3s;
}
.legacy-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.legacy-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
}
.legacy-stat-icon.purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.legacy-stat-icon.blue { background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%); }
.legacy-stat-icon.green { background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%); }
.legacy-stat-icon.orange { background: linear-gradient(135deg, #e6a23c 0%, #ebb563 100%); }
.legacy-stat-icon.red { background: linear-gradient(135deg, #f56c6c 0%, #f78989 100%); }
.legacy-stat-icon.pink { background: linear-gradient(135deg, #f687b3 0%, #f9a8d4 100%); }
.legacy-stat-icon.cyan { background: linear-gradient(135deg, #36cfc9 0%, #5cdbd3 100%); }
.legacy-stat-body {
  flex: 1;
}
.legacy-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #303133;
  line-height: 1.2;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}
.legacy-stat-label {
  font-size: 14px;
  color: #909399;
  margin-top: 4px;
}

/* 老系统风格 - 用户卡片 */
.legacy-user-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fafafa;
  border-bottom: 1px solid #f0f2f5;
}
.legacy-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
}
.legacy-user-info {
  flex: 1;
}
.legacy-user-name {
  font-size: 20px;
  font-weight: 700;
  color: #303133;
  margin-bottom: 6px;
}
.legacy-user-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.legacy-user-id {
  font-size: 14px;
  color: #909399;
  background: #f4f4f5;
  padding: 4px 10px;
  border-radius: 4px;
}
.legacy-settlement-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.legacy-settlement-label {
  width: 70px;
  font-size: 15px;
  color: #909399;
  flex-shrink: 0;
}
.legacy-settlement-amount {
  flex: 1;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}
.legacy-settlement-amount.pending {
  background: #fef0f0;
  color: #f56c6c;
}
.legacy-settlement-amount.settled {
  background: #ecf5ff;
  color: #67c23a;
}

/* 老系统风格 - 页面标题 */
.legacy-page-title {
  font-size: 28px;
  font-weight: 700;
  color: #303133;
  text-align: center;
  margin: 20px 0;
}

/* 老系统风格 - 筛选区域 */
.legacy-filter-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e4e7ed;
}
.legacy-filter-title {
  font-size: 20px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 16px;
}
.legacy-filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.legacy-filter-row select,
.legacy-filter-row input {
  flex: 1;
  min-width: 150px;
  padding: 10px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  color: #606266;
  background: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .legacy-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .legacy-stat-card {
    padding: 16px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .legacy-stat-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  .legacy-stat-number {
    font-size: 22px;
  }
  .legacy-stat-label {
    font-size: 12px;
  }
  .legacy-card-header {
    padding: 14px 16px;
  }
  .legacy-card-title,
  .legacy-card-id {
    font-size: 17px;
  }
  .legacy-card-body {
    padding: 4px 16px;
  }
  .legacy-info-row {
    padding: 10px 0;
  }
  .legacy-info-label {
    width: 60px;
    font-size: 14px;
  }
  .legacy-info-content {
    font-size: 14px;
  }
  .legacy-amount-row {
    padding: 12px 16px;
    margin: 0 -16px;
  }
  .legacy-amount-value {
    font-size: 20px;
  }
  .legacy-card-footer {
    padding: 12px 16px;
  }
  .legacy-user-header {
    padding: 16px;
  }
  .legacy-user-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .legacy-user-name {
    font-size: 18px;
  }
  .legacy-page-title {
    font-size: 22px;
    margin: 16px 0;
  }
}

/* ===== 结算页面样式 ===== */
.settlement-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}
.settlement-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.settlement-summary {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.summary-item {
  font-size: 14px;
  opacity: 0.9;
}
.summary-item strong {
  font-size: 18px;
  font-weight: 700;
  margin-left: 6px;
}
.settlement-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.actions-left, .actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .settlement-header {
    padding: 16px;
  }
  .settlement-title {
    font-size: 16px;
  }
  .settlement-summary {
    gap: 16px;
  }
  .summary-item {
    font-size: 12px;
  }
  .summary-item strong {
    font-size: 15px;
  }
  .settlement-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions-left, .actions-right {
    justify-content: center;
  }
}


/* ===== 老系统风格补充样式 ===== */
/* 用户头像 - 老系统蓝色圆形 */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #409eff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  margin-right: 12px;
  flex-shrink: 0;
}
.user-info-cell {
  display: flex;
  align-items: center;
}
.user-info-text .name {
  font-weight: 500;
  color: #303133;
  font-size: 14px;
}
.user-info-text .phone {
  font-size: 12px;
  color: #909399;
  margin-top: 2px;
}

/* 金额红色 - 老系统风格 */
.amount-red {
  color: #f56c6c;
  font-weight: 600;
  font-size: 16px;
  font-family: 'Consolas', 'Monaco', monospace;
}

/* 地区标签 - 老系统灰色 */
.region-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #f4f4f5;
  color: #909399;
  border-radius: 4px;
  font-size: 12px;
}

/* 状态标签 - 老系统风格 */
.status-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.status-tag.pending { background: #fdf6ec; color: #e6a23c; }
.status-tag.settling { background: #ecf5ff; color: #409eff; }
.status-tag.settled { background: #f0f9eb; color: #67c23a; }
.status-tag.cancelled { background: #f4f4f5; color: #909399; }
.status-tag.active { background: #f0f9eb; color: #67c23a; }
.status-tag.disabled { background: #fef0f0; color: #f56c6c; }

/* 按钮 - 老系统风格 */
.btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.btn-primary {
  background: #409eff;
  color: #fff;
  border-color: #409eff;
}
.btn-primary:hover {
  background: #66b1ff;
  border-color: #66b1ff;
}
.btn-success {
  background: #67c23a;
  color: #fff;
  border-color: #67c23a;
}
.btn-success:hover {
  background: #85ce61;
}
.btn-warning {
  background: #e6a23c;
  color: #fff;
  border-color: #e6a23c;
}
.btn-warning:hover {
  background: #ebb563;
}
.btn-danger {
  background: #f56c6c;
  color: #fff;
  border-color: #f56c6c;
}
.btn-danger:hover {
  background: #f78989;
}
.btn-plain {
  background: #fff;
  color: #606266;
  border-color: #dcdfe6;
}
.btn-plain:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background: #ecf5ff;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* 橙色按钮 - 老系统导出按钮 */
.btn-orange {
  background: linear-gradient(135deg, #ff9a56, #ff6b6b);
  color: #fff;
  border: none;
}
.btn-orange:hover {
  opacity: 0.9;
}

/* 分页 - 老系统风格 */
.pagination {
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.pagination button {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.pagination button:hover {
  color: #409eff;
  border-color: #409eff;
}
.pagination button.active {
  background: #409eff;
  color: #fff;
  border-color: #409eff;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 弹窗 - 老系统风格 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #909399;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.modal-close:hover {
  background: #f5f7fa;
  color: #f56c6c;
}
.modal-body {
  padding: 20px;
}
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #ebeef5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 表单 - 老系统风格 */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  color: #606266;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  color: #606266;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #409eff;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: #c0c4cc;
  font-size: 14px;
}

/* Toast提示 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toastIn 0.3s ease;
}
.toast.success { background: #67c23a; }
.toast.error { background: #f56c6c; }
.toast.warning { background: #e6a23c; }
.toast.info { background: #409eff; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

