/* 模具信息列表页面样式 - 工业简约风格 */

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #f5f7fa;
}

.zh_list_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 面包屑导航 */
.zh_breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 15px 0;
  margin-bottom: 30px;
}

.zh_breadcrumb_nav {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.zh_breadcrumb_nav a {
  color: #6c757d;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}

.zh_breadcrumb_nav a:hover {
  color: #004cbe;
}

.zh_separator {
  margin: 0 10px;
  color: #adb5bd;
}

.zh_current {
  color: #333333;
  font-weight: 500;
}

/* 主要内容区域 */
.zh_main_content {
  padding: 0 0 50px;
}

.zh_content_wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

/* 页面标题和工具栏 */
.zh_page_header {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-left: 4px solid #004cbe;
}

.zh_title_section {
  margin-bottom: 25px;
}

.zh_page_title {
  font-size: 28px;
  color: #333333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.zh_page_title i {
  color: #004cbe;
}

.zh_page_desc {
  color: #6c757d;
  font-size: 15px;
  line-height: 1.6;
}

/* 排序工具栏 */
.zh_sort_toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.zh_sort_options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.zh_sort_label {
  color: #495057;
  font-weight: 500;
  font-size: 14px;
}

.zh_sort_btn {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.zh_sort_btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.zh_sort_btn.active {
  background: #004cbe;
  border-color: #004cbe;
  color: white;
}

.zh_view_toggle {
  display: flex;
  gap: 5px;
}

.zh_view_btn {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 8px 12px;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s;
}

.zh_view_btn:hover {
  background: #e9ecef;
}

.zh_view_btn.active {
  background: #333333;
  border-color: #333333;
  color: white;
}

/* 信息列表容器 */
.zh_info_list {
  display: none;
}

.zh_info_list.active {
  display: block;
}

.zh_list_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  transition: all 0.3s;
}

.zh_list_grid.zh_list_view {
  grid-template-columns: 1fr;
}

.zh_list_grid.zh_list_view .zh_info_card {
  display: flex;
  flex-direction: row;
}

.zh_list_grid.zh_list_view .zh_card_image {
  width: 200px;
  flex-shrink: 0;
}

.zh_list_grid.zh_list_view .zh_card_content {
  flex: 1;
  padding: 20px;
}

/* 信息卡片 */
.zh_info_card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
  position: relative;
  border: 1px solid #e5e5e5;
}

.zh_info_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #004cbe;
}

.zh_card_image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh_card_image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.zh_info_card:hover .zh_card_image img {
  transform: scale(1.05);
}

.zh_card_overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 76, 190, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.zh_info_card:hover .zh_card_overlay {
  opacity: 1;
}

.zh_view_btn_overlay {
  background: #0093ff;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.zh_view_btn_overlay:hover {
  background: #004cbe;
  transform: scale(1.05);
}

/* 徽章样式 */
.zh_new_badge, .zh_hot_badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.zh_new_badge {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.zh_hot_badge {
  background: linear-gradient(135deg, #0093ff, #004cbe);
}

/* 卡片内容 */
.zh_card_content {
  padding: 25px;
}

.zh_card_title {
  margin-bottom: 12px;
}

.zh_card_title a {
  color: #333333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.zh_card_title a:hover {
  color: #004cbe;
}

.zh_card_meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.zh_meta_item {
  color: #6c757d;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.zh_meta_item i {
  color: #0093ff;
}

.zh_card_desc {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zh_card_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f1f3f4;
}

.zh_price_info {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.zh_price {
  color: #004cbe;
  font-size: 18px;
  font-weight: 600;
}

.zh_unit {
  color: #6c757d;
  font-size: 12px;
}

.zh_card_contact_info {
  color: #495057;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.zh_card_contact_info i {
  color: #0093ff;
}

/* 分页样式 */
.zh_pagination {
  margin-top: 40px;
  text-align: center;
}

.zh_pagination .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}

.zh_pagination .pagination a {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #495057;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.zh_pagination .pagination a:hover {
  color: #004cbe;
  border-color: #004cbe;
  background: #f0f6ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 76, 190, 0.2);
}

.zh_pagination .pagination a.cur {
  color: #fff;
  background: linear-gradient(135deg, #004cbe, #0093ff);
  border-color: #004cbe;
  box-shadow: 0 2px 8px rgba(0, 76, 190, 0.3);
  cursor: default;
}

.zh_pagination .pagination a.cur:hover {
  transform: none;
  background: linear-gradient(135deg, #004cbe, #0093ff);
}

/* 上一页/下一页特殊样式 */
.zh_pagination .pagination a:first-child,
.zh_pagination .pagination a:last-child {
  min-width: auto;
  padding: 0 16px;
  font-weight: 500;
}

.zh_pagination .pagination a:first-child {
  margin-right: 10px;
}

.zh_pagination .pagination a:last-child {
  margin-left: 10px;
}

/* 禁用状态的分页链接 */
.zh_pagination .pagination a[href=""],
.zh_pagination .pagination a:not([href]) {
  color: #adb5bd;
  background: #f8f9fa;
  border-color: #e5e5e5;
  cursor: not-allowed;
  pointer-events: none;
}

.zh_pagination .pagination a[href=""]:hover,
.zh_pagination .pagination a:not([href]):hover {
  transform: none;
  box-shadow: none;
  background: #f8f9fa;
  border-color: #e5e5e5;
}

/* 侧边栏 */
.zh_sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.zh_sidebar_widget {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #e5e5e5;
}

.zh_widget_title {
  background: linear-gradient(135deg, #333333, #4a4a4a);
  color: white;
  padding: 18px 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zh_widget_title i {
  color: #0093ff;
}

.zh_widget_content {
  padding: 20px;
}

/* 平台优势列表 */
.zh_advantage_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zh_advantage_item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #495057;
  font-size: 14px;
}

.zh_advantage_item i {
  color: #4CAF50;
  font-size: 16px;
}

/* 分类列表 */
.zh_category_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zh_category_item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  color: #495057;
  text-decoration: none;
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.3s;
}

.zh_category_item:last-child {
  border-bottom: none;
}

.zh_category_item:hover {
  color: #004cbe;
  padding-left: 5px;
}

.zh_category_item i {
  color: #0093ff;
  width: 20px;
  margin-right: 10px;
}

.zh_category_item span {
  flex: 1;
}

.zh_count {
  background: #f5f7fa;
  color: #6c757d;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 10px;
}

/* 联系卡片 */
.zh_sidebar_contact_card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.zh_sidebar_contact_item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #495057;
  font-size: 14px;
}

.zh_sidebar_contact_item i {
  color: #0093ff;
  width: 16px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .zh_content_wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .zh_sidebar {
    order: -1;
  }
  
  .zh_list_grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .zh_list_container {
    padding: 0 15px;
  }
  
  .zh_page_header {
    padding: 20px;
  }
  
  .zh_page_title {
    font-size: 24px;
  }
  
  .zh_sort_toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .zh_sort_options {
    flex-wrap: wrap;
  }
  
  .zh_list_grid {
    grid-template-columns: 1fr;
  }
  
  .zh_card_content {
    padding: 20px;
  }
  
  .zh_card_footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .zh_page_header {
    padding: 15px;
  }
  
  .zh_card_content {
    padding: 15px;
  }
  
  .zh_breadcrumb_nav {
    font-size: 13px;
  }
  
  .zh_breadcrumb_nav a,
  .zh_separator {
    margin: 0 5px;
  }
  
  .zh_widget_content {
    padding: 15px;
  }
  
  /* 分页响应式 */
  .zh_pagination .pagination {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .zh_pagination .pagination a {
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    font-size: 13px;
  }
  
  .zh_pagination .pagination a:first-child,
  .zh_pagination .pagination a:last-child {
    padding: 0 12px;
  }
}

/* 动画增强 */
.zh_info_card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 加载状态 */
.zh_loading {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.zh_loading i {
  font-size: 24px;
  color: #004cbe;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 空状态 */
.zh_empty_state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.zh_empty_state i {
  font-size: 48px;
  color: #e5e5e5;
  margin-bottom: 15px;
  display: block;
}

.zh_empty_state h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #495057;
}

.zh_empty_state p {
  font-size: 14px;
  line-height: 1.6;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
