/* 前台列表页样式（价格/指标/知识/照片） */

/* 覆盖 admin.css 中 .page-body 的大边距 */
.zjwk-list-page .page-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0;
}

.zjwk-list-page .list-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 12px 14px;
  margin: 0 0 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.zjwk-list-page .list-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  flex: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.zjwk-list-page .list-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 0 !important;
  border: none;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.zjwk-list-page .list-pagination-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 0;
  margin-top: 0;
  border-top: none;
  background: transparent;
}

.zjwk-list-page .pagination-total {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.zjwk-list-page .list-pagination-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.zjwk-list-page .am-pagination {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.zjwk-list-page .am-pagination li {
  margin: 0;
}

/* 尺寸对齐后台 admin.css：32×32、14px */
.zjwk-list-page .am-pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  width: auto;
  height: 32px;
  padding: 0 4px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  box-sizing: border-box;
  background: #fff;
}

.zjwk-list-page .am-pagination .am-pagination-nav a {
  min-width: 32px;
  width: 32px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  color: #64748b;
  letter-spacing: 0;
}

.zjwk-list-page .am-pagination a:hover {
  background-color: #e6f4fb;
  border-color: #0e90d2;
  color: #0e90d2;
}

.zjwk-list-page .am-pagination a:active {
  background-color: #0e90d2;
  border-color: #0e90d2;
  color: #fff;
}

/* 必须高于 admin.css 与下方 .zjwk-page-wrap 通用分页样式 */
.zjwk-page-wrap.zjwk-list-page .am-pagination > .am-active > a,
.zjwk-page-wrap.zjwk-list-page .am-pagination > .am-active > a:hover,
.zjwk-page-wrap.zjwk-list-page .am-pagination > .am-active > a:focus,
.zjwk-page-wrap.zjwk-list-page .am-pagination > .am-active > a:active,
.zjwk-page-wrap.zjwk-list-page .am-pagination .am-active a,
.zjwk-page-wrap.zjwk-list-page .am-pagination .am-active a:hover,
.zjwk-page-wrap.zjwk-list-page .am-pagination .am-active a:focus,
.zjwk-page-wrap.zjwk-list-page .am-pagination .am-active a:active {
  background: #ec4899 !important;
  background-color: #ec4899 !important;
  color: #fff !important;
  border-color: #ec4899 !important;
  box-shadow: none !important;
  font-weight: 500;
}

.zjwk-list-page .am-pagination .am-pagination-nav a:hover {
  background-color: #e6f4fb;
  border-color: #0e90d2;
  color: #0e90d2;
}

.zjwk-list-page .am-pagination .am-pagination-nav a:active {
  background-color: #0e90d2;
  border-color: #0e90d2;
  color: #fff;
}

.zjwk-list-page .am-pagination .am-disabled a {
  color: #c0c9d4;
  pointer-events: none;
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

/* 照片中心列表缩略图 */
.zjwk-list-page .picture-list-cell {
  overflow: visible;
  white-space: normal;
}

.zjwk-list-page .picture-thumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.zjwk-list-page .picture-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
  display: block;
}

.zjwk-list-page .picture-thumb-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

.zjwk-list-page .picture-empty {
  color: #94a3b8;
  font-size: 12px;
}

/* 旧版通用样式（指标/知识/照片暂用） */
.zjwk-page-wrap .page-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eaeef2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zjwk-page-wrap .page-title {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zjwk-page-wrap .page-title i {
  color: #4a90e2;
}

.zjwk-page-wrap .am-form-horizontal {
  background: #fff;
  border-radius: 12px;
  padding: 18px 25px;
  margin-bottom: 25px;
  border: 1px solid #eef2f7;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.zjwk-page-wrap .am-g {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  width: 100%;
}

.zjwk-list-page .am-form-group {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.zjwk-list-page .am-form-label {
  font-weight: 500;
  color: #334155;
  margin-bottom: 0;
  font-size: 14px;
  padding-right: 8px;
}

.zjwk-list-page input[type='text'] {
  width: 190px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  font-size: 14px;
  line-height: 36px;
  background-color: #fff;
  box-sizing: border-box;
}

.zjwk-list-page input[type='text']:focus {
  border-color: #0e90d2;
  outline: none;
  box-shadow: 0 0 0 2px rgba(14, 144, 210, 0.15);
}

.zjwk-list-page .list-search-form .am-btn {
  height: 36px;
  padding: 0 20px;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none;
  box-sizing: border-box;
}

.zjwk-list-page .am-btn-primary {
  background: #0e90d2;
  color: #fff;
  box-shadow: none;
}

.zjwk-list-page .am-btn-primary:hover {
  background: #0c7cb8;
  color: #fff;
}

.zjwk-list-page .am-btn-search {
  background: #ec4899;
  color: #fff;
  box-shadow: none;
}

.zjwk-list-page .am-btn-search:hover {
  background: #db2777;
  color: #fff;
}

.zjwk-list-page .am-btn-reset {
  background: #fff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.zjwk-list-page .am-btn-reset:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #334155;
}

.zjwk-list-page .am-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: fixed;
  box-shadow: none;
  border-radius: 0 !important;
  overflow: visible !important;
}

/* 覆盖 .zjwk-page-wrap .am-table 的圆角裁剪 */
.zjwk-page-wrap.zjwk-list-page .am-table {
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.zjwk-list-page .table-main {
  padding: 0;
  font-size: inherit;
}

.zjwk-list-page .am-table thead {
  background: #0e90d2;
}

.zjwk-list-page .am-table thead tr th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #0e90d2 !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 11px 8px;
  text-align: center;
  vertical-align: middle;
  border: none !important;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.zjwk-list-page .am-table thead tr th:first-child,
.zjwk-list-page .am-table thead tr th:last-child {
  border-radius: 0 !important;
}

.zjwk-list-page .am-table thead tr th::after {
  display: none !important;
  content: none !important;
}

.zjwk-list-page .am-table th {
  padding: 10px 8px;
  font-weight: 600;
  color: #ffffff !important;
  font-size: 13px;
  overflow: visible !important;
}

.zjwk-list-page .am-table td {
  padding: 6px 6px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #4a5568;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zjwk-list-page .am-table tbody tr {
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.zjwk-list-page .am-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.zjwk-list-page .am-table tbody tr:hover {
  background-color: #c8ecff !important;
  box-shadow: inset 4px 0 0 #0e90d2;
}

.zjwk-list-page .am-table-hover > tbody > tr:hover > td,
.zjwk-list-page .am-table-hover > tbody > tr:hover > th {
  background-color: #c8ecff !important;
}

.zjwk-list-page .am-table tbody tr:nth-child(even):hover {
  background-color: #c8ecff !important;
}

.zjwk-list-page .am-table thead tr th.col-center,
.zjwk-list-page .am-table td.col-center {
  text-align: center;
}

.zjwk-list-page .am-table thead tr th.col-left,
.zjwk-list-page .am-table td.col-left {
  text-align: left;
}

.zjwk-list-page .am-table thead tr th.col-right,
.zjwk-list-page .am-table td.col-right {
  text-align: right;
}

.zjwk-list-page .am-table a {
  color: #0e90d2;
  text-decoration: none;
  font-weight: 500;
}

.zjwk-list-page .am-table a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .zjwk-list-page .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .zjwk-list-page .list-search-form {
    justify-content: flex-start;
  }
}

.zjwk-page-wrap .am-form-group {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
}

.zjwk-page-wrap .am-form-label {
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 0;
  font-size: 14px;
  width: auto;
  flex-shrink: 0;
  padding-right: 8px;
}

.zjwk-page-wrap input[type='text'] {
  width: 180px;
  padding: 10px 12px;
  border: 1px solid #d1d9e6;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.zjwk-page-wrap input[type='text']:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
  outline: none;
}

.zjwk-page-wrap .search-buttons {
  display: flex;
  gap: 12px;
  margin-top: 0;
}

.zjwk-page-wrap .am-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.zjwk-page-wrap .am-btn-primary {
  background: linear-gradient(135deg, #4a90e2 0%, #3a7bc8 100%);
  color: white;
}

.zjwk-page-wrap .am-btn-primary:hover {
  background: linear-gradient(135deg, #3a7bc8 0%, #2c6cb0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.zjwk-page-wrap:not(.zjwk-list-page) .am-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  background: #fff;
  table-layout: fixed;
}

.zjwk-page-wrap .am-table thead {
  background: linear-gradient(135deg, #4a90e2 0%, #3a7bc8 100%);
}

.zjwk-page-wrap .am-table th {
  padding: 16px 14px;
  text-align: left;
  font-weight: 600;
  color: white;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zjwk-page-wrap .am-table th:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.zjwk-page-wrap .am-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #4a5568;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zjwk-page-wrap .am-table tbody tr {
  transition: all 0.2s;
}

.zjwk-page-wrap .am-table tbody tr:hover {
  background-color: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.zjwk-page-wrap .am-table tbody tr:nth-child(even) {
  background-color: #f9fafc;
}

.zjwk-page-wrap .am-table tbody tr:nth-child(even):hover {
  background-color: #f1f5f9;
}

.zjwk-page-wrap .am-table a {
  color: #4a90e2;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.zjwk-page-wrap .am-table a:hover {
  color: #3a7bc8;
}

.zjwk-page-wrap .am-cf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding: 18px 0;
  border-top: 1px solid #eaeef2;
}

.zjwk-page-wrap:not(.zjwk-list-page) .am-pagination {
  display: flex;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.zjwk-page-wrap:not(.zjwk-list-page) .am-pagination li {
  margin: 0;
}

.zjwk-page-wrap:not(.zjwk-list-page) .am-pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d1d9e6;
  border-radius: 8px;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
}

.zjwk-page-wrap:not(.zjwk-list-page) .am-pagination a:hover {
  background-color: #f1f5f9;
  border-color: #a0aec0;
  transform: translateY(-1px);
}

.zjwk-page-wrap:not(.zjwk-list-page) .am-pagination .am-active a {
  background: linear-gradient(135deg, #4a90e2 0%, #3a7bc8 100%);
  color: white;
  border-color: #4a90e2;
  box-shadow: 0 2px 5px rgba(74, 144, 226, 0.3);
}

.zjwk-page-wrap .am-pagination .am-disabled a {
  color: #a0aec0;
  pointer-events: none;
  background-color: #f7fafc;
}

.zjwk-page-wrap .record-count {
  font-weight: 500;
  color: #4a5568;
  background: #f1f5f9;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .zjwk-page-wrap .am-g {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .zjwk-page-wrap input[type='text'] {
    width: 140px;
  }
}

/* 列表页：表头与容器四角均为直角 */
.zjwk-page-wrap.zjwk-list-page .list-table-wrap,
.zjwk-page-wrap.zjwk-list-page .am-table,
.zjwk-page-wrap.zjwk-list-page .am-table thead,
.zjwk-page-wrap.zjwk-list-page .am-table thead tr,
.zjwk-page-wrap.zjwk-list-page .am-table thead tr th {
  border-radius: 0 !important;
}

.zjwk-page-wrap.zjwk-list-page .am-table {
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  margin: 0 !important;
}
