/**
 * 劳模风采列表页样式
 * 文件位置: /public/templates/pc/css/labormodellist.css
 * 依赖: common.css (CSS变量、breadcrumb、pagination、header、footer)
 */

/* ========== 主容器 ========== */
.lml-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  background: #EEF5FB;
  min-height: 600px;
}

/* ========== 分类 Tab 标签 ========== */
.lml-cate-bar {
  width: 100%;
  background: linear-gradient(90deg, #1a6fdb 0%, #3493f5 60%, #6bbeff 100%);
  border-radius: 6px 6px 0 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  min-height: 46px;
  flex-wrap: wrap;
  gap: 0;
}

.lml-cate-item {
  display: inline-block;
  padding: 8px 22px;
  margin: 5px 4px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: none;
}

.lml-cate-item:hover,
.lml-cate-item.active {
  background: #fff;
  color: #1a6fdb;
}

/* ========== 卡片网格 ========== */
.lml-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

/* ========== 单个卡片 ========== */
.lml-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dde8f8;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 14px 14px 12px;
  gap: 14px;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.lml-card:hover {
  box-shadow: 0 4px 18px rgba(0, 92, 213, 0.15);
  border-color: #6aadff;
}

/* 头像 */
.lml-card-avatar {
  width: 90px;
  height: 126px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 5px;
  background: #d0e4f7;
}

/* 右侧信息 */
.lml-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 姓名行 */
.lml-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.lml-card-name .name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

/* 认证徽章 */
.lml-badge-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f0a500;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 专家标签 */
.lml-badge-expert {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  background: linear-gradient(90deg, #3a8bef, #005cd5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* 擅长技术方向 */
.lml-card-skill {
  font-size: 13px;
  color: #444;
  margin-bottom: 7px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 过往案例区 */
.lml-card-cases {
  font-size: 12px;
  color: #555;
}

.lml-cases-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  font-size: 12px;
}

.lml-cases-item {
  display: flex;
  align-items: center;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
}

.lml-cases-item .year-text {
  flex-shrink: 0;
}

.lml-cases-item .dots {
  flex: 1;
  border-bottom: 1px dotted #aaa;
  margin: 0 4px;
  min-width: 10px;
  max-width: 80px;
}

.lml-cases-item .cate-text {
  flex-shrink: 0;
}

/* ========== 空状态 ========== */
.lml-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #999;
  font-size: 16px;
}

/* ========== 分页 ========== */
.lml-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

/* layui laypage 覆盖样式 */
.lml-pagination .layui-laypage {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lml-pagination .layui-laypage a,
.lml-pagination .layui-laypage span {
  padding: 6px 13px;
  border: 1px solid #dde;
  border-radius: 4px;
  color: #555;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.lml-pagination .layui-laypage .layui-laypage-curr em {
  background: #1e88e5;
  color: #fff;
  border-color: #1e88e5;
  border-radius: 4px;
  display: inline-block;
}
.lml-pagination .layui-laypage .layui-laypage-em{
  display: none !important;
}
.pagination a, .layui-laypage-curr {
  margin: 0;
  background: #1e88e5 !important;
}
.lml-pagination .layui-laypage a:hover {
  border-color: #1e88e5;
  color: #1e88e5;
}

.lml-pagination .layui-laypage-spr {
  border: none !important;
  background: none !important;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 900px) {
  .lml-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  .lml-main {
    padding: 10px;
  }

  .lml-card-avatar {
    width: 70px;
    height: 98px;
  }
}
