/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  background-color: #f5f7fa;
  color: #303133;
}

/* 主容器 */
.container {
  min-height: 100vh;
}

/* 头部 */
.header {
  background-color: #409eff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 60px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-icon {
  font-size: 24px;
  margin-right: 12px;
}

.header-left h1 {
  font-size: 18px;
  font-weight: 600;
}

.header-right {
  display: flex;
  gap: 10px;
}

/* 主体内容 */
.main {
  padding: 20px;
}

/* 统计卡片 */
.stats-row {
  margin-bottom: 20px;
}

.stats-card {
  height: 100%;
}

.card-header {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.card-header .el-icon {
  margin-right: 8px;
}
.el-button .el-icon {
    margin-right: 8px;
}
.stats-content {
  text-align: center;
  padding: 20px 0;
}

.stats-number {
  font-size: 32px;
  font-weight: 600;
  color: #303133;
}

.stats-badge {
  font-size: 14px;
}

/* 搜索卡片 */
.search-card {
  margin-bottom: 20px;
}

.search-form {
  width: 100%;
}

/* 表格卡片 */
.table-card {
  margin-bottom: 20px;
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 10px;
}

.table-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-header-right {
  display: flex;
  align-items: center;
}

/* 表格容器，支持横向滚动 */
.table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 15px;
}

/* 确保复选框可见 */
.el-table .el-checkbox__inner {
  display: block !important;
}

.el-table__header .el-checkbox {
  display: block !important;
}

.el-table__body .el-checkbox {
  display: block !important;
}

/* 信息文本样式 */
.text-info {
  color: #909399;
  font-size: 14px;
  margin-left: 10px;
}

/* 强制显示Element UI选择列复选框 */
.el-table__column--selection {
  display: table-cell !important;
  width: 55px !important;
}

.el-table__column--selection .cell {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 48px !important;
}

.el-checkbox {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.el-checkbox__inner {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  border: 1px solid #dcdfe6 !important;
  border-radius: 2px !important;
  background-color: #fff !important;
  cursor: pointer !important;
  transition: all .3s !important;
}

.el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: #409eff !important;
  border-color: #409eff !important;
}

.el-checkbox__input.is-checked .el-checkbox__inner::after {
  display: block !important;
  content: '' !important;
  position: absolute !important;
  top: 2px !important;
  left: 6px !important;
  width: 4px !important;
  height: 8px !important;
  border: 2px solid #fff !important;
  border-top: 0 !important;
  border-left: 0 !important;
  transform: rotate(45deg) !important;
}

.table-container::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 分页容器 */
.pagination-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }
  
  .header-left h1 {
    font-size: 16px;
  }
  
  .main {
    padding: 10px;
  }
  
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-form .el-form-item {
    margin-bottom: 15px;
  }
  
  .stats-number {
    font-size: 24px;
  }
}

/* 动画效果 */
.el-card {
  transition: all 0.3s ease;
}

.el-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}