/* 进销存商城系统 - 主样式文件 */
/* 基于秦丝生意通界面风格设计 */

/* ==================== */
/* CSS 变量定义 */
/* ==================== */
:root {
  /* 主色调 - 修正为秦丝生意通官方配色 */
  --primary-color: #2256A4;  /* 导航栏深蓝色 */
  --primary-dark: #1a4583;
  --primary-light: #2E6BC4;
  
  /* 快捷入口卡片配色 - 从原网站获取 */
  --color-purchase: #F39C12;      /* 采购-橙色 */
  --color-sale: #1ABC9C;         /* 销售-蓝绿色 */
  --color-warehouse: #3498DB;    /* 库存-蓝色 */
  --color-finance: #9B59B6;      /* 财务-紫色 */
  --color-customer: #16A085;      /* 客户管理-青色 */
  --color-reconciliation: #5DADE2; /* 客户对账-浅蓝色 */
  --color-ranking: #27AE60;       /* 客户销量排行-绿色 */
  --color-summary: #2980B9;      /* 经营汇总-深蓝 */
  --color-goods: #2ECC71;        /* 商品管理-绿色 */
  
  /* 辅助色 */
  --orange: #F39C12;
  --blue: #3498DB;
  --green: #2ECC71;
  --red: #E74C3C;
  --purple: #9B59B6;
  
  /* 背景色 */
  --bg-primary: #F5F5F5;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-hover: #F0F0F0;
  
  /* 文字色 */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-white: #FFFFFF;
  
  /* 边框 */
  --border-color: #E0E0E0;
  --border-light: #EEEEEE;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.2);
  
  /* 布局 */
  --header-height: 50px;
  --sidebar-width: 200px;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ==================== */
/* 全局样式重置 */
/* ==================== */
* {
  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;
  font-size: 14px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.5;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-light);
}

/* ==================== */
/* 顶部导航栏 */
/* ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(135deg, #3DBAA9, #2A9D8F);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: bold;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 5px;
  flex: 1;
  justify-content: center;
}

.header-nav-item {
  padding: 8px 16px;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  white-space: nowrap;
}

.header-nav-item:hover {
  background: rgba(255,255,255,0.2);
  color: var(--text-white);
}

.header-nav-item.active {
  background: rgba(255,255,255,0.25);
  color: var(--text-white);
  font-weight: 600;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-notification {
  position: relative;
  cursor: pointer;
}

.header-notification .badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--red);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==================== */
/* 主内容区域 */
/* ==================== */
.main-container {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding: 20px;
}

/* ==================== */
/* 卡片组件 */
/* ==================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==================== */
/* 按钮样式 */
/* ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-success {
  background: var(--green);
  color: white;
}

.btn-warning {
  background: var(--orange);
  color: white;
}

.btn-danger {
  background: var(--red);
  color: white;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

/* ==================== */
/* 表格样式 - jqGrid 风格 */
/* ==================== */
.table-container {
  overflow-x: auto;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 13px;
}

.table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-right: 1px solid #dee2e6;
  white-space: nowrap;
  font-size: 13px;
}

.table th:last-child {
  border-right: none;
}

.table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e9ecef;
  border-right: 1px solid #e9ecef;
  color: var(--text-primary);
}

.table td:last-child {
  border-right: none;
}

/* jqGrid 斑马纹效果 */
.table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.table tbody tr:hover {
  background: #e8f4f8;
  cursor: pointer;
}

.table tbody tr.selected {
  background: #d9edf7;
}

/* 表格工具栏 */
.table-toolbar {
  padding: 12px 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.table-toolbar-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.table-toolbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==================== */
/* 表单样式 */
/* ==================== */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ==================== */
/* 快捷入口卡片 - 修正配色 */
/* ==================== */
.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.quick-entry-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.quick-entry-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.quick-entry-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
  color: white;
}

/* 快捷入口卡片颜色 - 精确匹配原网站 */
.quick-entry-icon.purchase { background: var(--color-purchase); }
.quick-entry-icon.sale { background: var(--color-sale); }
.quick-entry-icon.warehouse { background: var(--color-warehouse); }
.quick-entry-icon.finance { background: var(--color-finance); }
.quick-entry-icon.customer { background: var(--color-customer); }
.quick-entry-icon.reconciliation { background: var(--color-reconciliation); }
.quick-entry-icon.ranking { background: var(--color-ranking); }
.quick-entry-icon.summary { background: var(--color-summary); }
.quick-entry-icon.goods { background: var(--color-goods); }

.quick-entry-label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.quick-entry-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ==================== */
/* 统计卡片 */
/* ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stat-card-title {
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.stat-card-value {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.stat-card-trend {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-card-trend.positive {
  color: var(--green);
}

.stat-card-trend.negative {
  color: var(--red);
}

/* ==================== */
/* 布局辅助 */
/* ==================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.col {
  flex: 1;
  padding: 10px;
}

.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* ==================== */
/* 面包屑导航 */
/* ==================== */
.breadcrumb {
  padding: 12px 0;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumb-item {
  display: inline;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-muted);
}

/* ==================== */
/* 分页 - jqGrid 风格 */
/* ==================== */
.pagination-container {
  padding: 10px 15px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination-info {
  font-size: 12px;
  color: #666;
}

.pagination {
  display: flex;
  gap: 3px;
  align-items: center;
}

.pagination-item {
  padding: 5px 10px;
  border: 1px solid #dee2e6;
  background: var(--bg-white);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  color: #333;
}

.pagination-item:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.pagination-item.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-item.disabled {
  color: #ccc;
  cursor: not-allowed;
  background: #f8f9fa;
}

/* ==================== */
/* 搜索栏/筛选工具栏 */
/* ==================== */
.filter-bar {
  background: var(--bg-white);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-input {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  min-width: 150px;
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filter-select {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: white;
  cursor: pointer;
}

/* ==================== */
/* 导航栏下拉菜单 */
/* ==================== */
.header-nav-item {
  position: relative;
}

.header-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  padding: 5px 0;
  display: none;
  z-index: 1001;
}

.header-nav-item:hover .header-nav-dropdown {
  display: block;
}

.header-nav-dropdown a {
  display: block;
  padding: 8px 15px;
  color: var(--text-primary);
  font-size: 13px;
  text-decoration: none;
}

.header-nav-dropdown a:hover {
  background: #f0f7ff;
  color: var(--primary-color);
}

/* ==================== */
/* 模态框/对话框 */
/* ==================== */
.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: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  cursor: pointer;
  font-size: 20px;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==================== */
/* 左侧菜单栏（可选） */
/* ==================== */
.sidebar {
  width: var(--sidebar-width);
  background: #2c3e50;
  min-height: calc(100vh - var(--header-height));
  position: fixed;
  left: 0;
  top: var(--header-height);
  overflow-y: auto;
}

.sidebar-menu {
  padding: 10px 0;
}

.sidebar-menu-item {
  padding: 12px 20px;
  color: #bdc3c7;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-menu-item:hover {
  background: #34495e;
  color: white;
}

.sidebar-menu-item.active {
  background: var(--primary-color);
  color: white;
}

.sidebar-menu-item i {
  width: 20px;
  text-align: center;
}

/* ==================== */
/* 5步快速上手横幅 */
/* ==================== */
.quick-start-banner {
  background: linear-gradient(135deg, #FF6B6B, #FFA07A, #FF69B4);
  color: white;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.quick-start-steps {
  display: flex;
  gap: 20px;
  align-items: center;
}

.quick-start-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.quick-start-step .step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.quick-start-close {
  cursor: pointer;
  font-size: 18px;
  opacity: 0.8;
}

.quick-start-close:hover {
  opacity: 1;
}

/* ==================== */
/* 搜索栏 */
/* ==================== */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ==================== */
/* 标签 */
/* ==================== */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 5px;
}

.tag-primary {
  background: rgba(26, 188, 156, 0.1);
  color: var(--primary-color);
}

.tag-success {
  background: rgba(46, 204, 113, 0.1);
  color: var(--green);
}

.tag-warning {
  background: rgba(243, 156, 18, 0.1);
  color: var(--orange);
}

.tag-danger {
  background: rgba(231, 76, 60, 0.1);
  color: var(--red);
}

/* ==================== */
/* 响应式设计 */
/* ==================== */
@media (max-width: 1200px) {
  .header-nav {
    gap: 2px;
  }
  
  .header-nav-item {
    padding: 6px 10px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .col-2, .col-3, .col-4, .col-6, .col-8, .col-9 {
    flex: 0 0 100%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== */
/* 滚动条美化 */
/* ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==================== */
/* 动画 */
/* ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

/* ==================== */
/* 工具类 */
/* ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

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

.text-primary { color: var(--primary-color); }
.text-success { color: var(--green); }
.text-warning { color: var(--orange); }
.text-danger { color: var(--red); }
.text-muted { color: var(--text-muted); }

.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); }

/* ==================== */
/* 按钮样式系统 */
/* ==================== */

/* 基础按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
  outline: none;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 主按钮 - 蓝色 */
.btn-primary {
  background: #3498DB;
  color: white;
  border-color: #3498DB;
}
.btn-primary:hover:not(:disabled) {
  background: #2980B9;
  border-color: #2980B9;
}

/* 成功按钮 - 绿色 */
.btn-success {
  background: #27AE60;
  color: white;
  border-color: #27AE60;
}
.btn-success:hover:not(:disabled) {
  background: #229954;
  border-color: #229954;
}

/* 危险按钮 - 红色 */
.btn-danger {
  background: #E74C3C;
  color: white;
  border-color: #E74C3C;
}
.btn-danger:hover:not(:disabled) {
  background: #C0392B;
  border-color: #C0392B;
}

/* 警告按钮 - 橙色 */
.btn-warning {
  background: #F39C12;
  color: white;
  border-color: #F39C12;
}
.btn-warning:hover:not(:disabled) {
  background: #D68910;
  border-color: #D68910;
}

/* 次要按钮 - 灰色 */
.btn-secondary {
  background: white;
  color: #666;
  border-color: #DDD;
}
.btn-secondary:hover:not(:disabled) {
  background: #F5F5F5;
  border-color: #CCC;
}

/* 文字按钮 */
.btn-link {
  background: none;
  border: none;
  color: #3498DB;
  padding: 4px 8px;
}
.btn-link:hover {
  text-decoration: underline;
}
.btn-link.btn-danger {
  color: #E74C3C;
}

/* 小按钮 */
.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* 大按钮 */
.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

/* 图标按钮 */
.btn-icon {
  padding: 8px;
  min-width: 36px;
}

/* ==================== */
/* 表单样式 */
/* ==================== */

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  height: 36px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #3498DB;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control:disabled {
  background-color: #F5F5F5;
  cursor: not-allowed;
}

textarea.form-control {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

/* ==================== */
/* 表格样式增强 */
/* ==================== */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

.data-table th {
  background: #E8E8E8;
  font-weight: 600;
  text-align: left;
  padding: 12px 10px;
  border-bottom: 2px solid #DDD;
  white-space: nowrap;
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid #EEE;
  vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
  background: #F9F9F9;
}

.data-table tbody tr:hover {
  background: #F0F7FF;
}

.data-table .action-cell {
  white-space: nowrap;
}

/* 斑马纹 */
.data-table.striped tbody tr:nth-child(odd) {
  background: white;
}
.data-table.striped tbody tr:nth-child(even) {
  background: #F5F5F5;
}

/* 操作按钮 */
.action-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 50px 20px !important;
  color: #999;
}

.empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* ==================== */
/* 分页样式 */
/* ==================== */

.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  margin-top: 15px;
}

.pagination-info {
  color: #666;
  font-size: 14px;
}

.pagination {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-btn {
  padding: 6px 12px;
  border: 1px solid #DDD;
  background: white;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled):not(.active) {
  background: #F5F5F5;
  border-color: #CCC;
}

.page-btn.active {
  background: #3498DB;
  color: white;
  border-color: #3498DB;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0 5px;
  color: #999;
}

/* ==================== */
/* 状态标签 */
/* ==================== */

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 10px;
}

.status-success {
  background: #D4EDDA;
  color: #155724;
}

.status-warning {
  background: #FFF3CD;
  color: #856404;
}

.status-error {
  background: #F8D7DA;
  color: #721C24;
}

.status-info {
  background: #D1ECF1;
  color: #0C5460;
}

/* ==================== */
/* 搜索和筛选区域 */
/* ==================== */

.search-bar {
  background: #F8F9FA;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.search-bar .form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.search-bar .form-group {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-bar .form-group label {
  margin-bottom: 0;
  white-space: nowrap;
  font-weight: normal;
  color: #666;
}

.search-bar .form-control {
  height: 32px;
}

/* ==================== */
/* 工具栏 */
/* ==================== */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #EEE;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==================== */
/* 统计卡片增强 */
/* ==================== */

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.stat-card .stat-label {
  font-size: 14px;
  color: #666;
}

.stat-card .stat-change {
  font-size: 12px;
  margin-top: 5px;
}

.stat-card .stat-change.up {
  color: #27AE60;
}

.stat-card .stat-change.down {
  color: #E74C3C;
}

/* ==================== */
/* 弹窗增强样式 */
/* ==================== */

.modal-overlay {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialogIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 表单必填项 */
.form-group label .required {
  color: red;
  margin-left: 2px;
}

/* ==================== */
/* 响应式优化 */
/* ==================== */

@media (max-width: 768px) {
  .toolbar {
    flex-direction: column;
    gap: 10px;
  }
  
  .toolbar-left,
  .toolbar-right {
    width: 100%;
    justify-content: center;
  }
  
  .search-bar .form-inline {
    flex-direction: column;
  }
  
  .search-bar .form-group {
    width: 100%;
  }
  
  .search-bar .form-control {
    width: 100%;
  }
  
  .pagination-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  
  .data-table {
    font-size: 12px;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 5px;
  }
}
