﻿/**
 * list-page-theme.css
 * 列表页通用壳层（与用户列表视觉一致）。仅对带 .list-page-theme 的根节点生效。
 * 在页面 Vue 根上增加：class="main-grid list-page-theme"
 */

/* ===================== 页面大框架 ===================== */
.list-page-theme {
  padding: 20px;
  background: #f5f7fa;
  min-height: calc(100vh - 120px);
}

/* ===================== 页面头部（可选） ===================== */
.list-page-theme .page-header {
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #409EFF;
}
.list-page-theme .page-header h2 {
  color: #409EFF;
  font-size: 24px;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.list-page-theme .page-header .header-info {
  color: #909399;
  font-size: 14px;
  margin-top: 8px;
}

/* ===================== 提示条（可选） ===================== */
.list-page-theme .info-tip {
  background: #ecf5ff;
  padding: 12px 16px;
  border-left: 3px solid #409EFF;
  margin-bottom: 15px;
  border-radius: 4px;
  font-size: 14px;
}
.list-page-theme .info-tip i {
  color: #409EFF;
  margin-right: 8px;
}

/* ===================== 搜索区卡片 ===================== */
.list-page-theme .search-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.list-page-theme .search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
}
.list-page-theme .search-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  display: flex;
  align-items: center;
  gap: 6px;
}
.list-page-theme .quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.list-page-theme .search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.list-page-theme .search-form .el-form-item {
  margin-bottom: 10px;
  margin-right: 10px;
}

/* element-ui-coexist 对 .el-input__inner 使用 padding:0 8px !important，会盖住前缀图标所需左侧留白 */
.list-page-theme .el-input--prefix .el-input__inner {
  padding-left: 30px !important;
}
.list-page-theme .el-input__prefix {
  display: flex;
  align-items: center;
  left: 8px;
}

/* daterange 外壳也带 .el-input__inner，element-ui-coexist 的 padding/line-height 会破坏「至」分隔符布局 */
.list-page-theme .el-range-editor.el-input__inner {
  padding: 3px 10px !important;
  line-height: normal !important;
  display: inline-flex !important;
  align-items: center !important;
}
.list-page-theme .el-range-separator {
  flex-shrink: 0 !important;
  padding: 0 4px !important;
  line-height: 1 !important;
  color: #606266 !important;
}
.list-page-theme .el-range-input {
  min-width: 0 !important;
  text-align: center !important;
}

/* ===================== 数据表格区卡片 ===================== */
.list-page-theme .table-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ===================== 表格与表头（对齐原 userList 内联 header-cell-style） ===================== */
.list-page-theme .el-table {
  font-size: 13px;
}
.list-page-theme .el-table th.el-table__cell {
  background: #f5f7fa !important;
  color: #606266 !important;
  font-weight: 600 !important;
  font-size: 13px;
}

/* ===================== 分页 ===================== */
.list-page-theme .pagination-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* 无 pagination-wrap 包裹时，表格区内的分页常见写法 */
.list-page-theme .table-section .el-pagination {
  margin-top: 14px;
}

/* ===================== 列表缩略图 ===================== */
.list-page-theme .media-thumb {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f5f7fa;
  color: #909399;
  font-size: 12px;
  box-sizing: border-box;
}

.list-page-theme .media-thumb--image {
  cursor: pointer;
  object-fit: cover;
}

.list-page-theme .media-thumb--image.is-fallback {
  object-fit: contain;
  padding: 8px;
}

.list-page-theme .media-thumb--empty {
  cursor: default;
}

/* ===================== 响应式 ===================== */
@media (max-width: 768px) {
  .list-page-theme .search-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .list-page-theme .quick-actions {
    flex-wrap: wrap;
  }
  .list-page-theme .search-form {
    flex-direction: column;
  }
}
