
/* ====================== 布局容器 ====================== */
.container {
  width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}
.bg-white {
  background: #fff;
}
.blank-middle {
  height: 20px;
  clear: both;
  overflow: hidden;
}

/* ====================== 产品列表顶部导航栏 ====================== */
.nav-tree {
  margin: 0 -15px 20px -15px;
  padding: 0;
  font-size: 0;
  text-align: center;
  position: relative;
  z-index: 9999;
  width: 100%;
  background: #fff;
}
.nav-tree  ul{
  display: none;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.nav-tree > li {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  position: relative;
  line-height: 30px !important; /* 行高=高度，改这个数值 */
  z-index: 99;
}
.nav-tree > li > a {
  display: inline-block;
  padding: 0 25px;
  width:180px;
  height: 68px;
  line-height: 68px;
  font-size: 16px;
  color: #333;
  background: #fff;
}
.nav-tree > li > a.active,
.nav-tree > li > a:hover {
  background: #ff9600;
  color: #fff;
}
/* 二级子菜单（向下展开） */
.nav-tree li > ul {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 0px;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 8px 0;
  z-index: 999999;
  border: 1px solid #eee;
}
.nav-tree > li:hover > ul {
  display: block;
}
.nav-tree ul > li > a {
  display: block;
  width: 200px;
  padding: 10px 20px;
  font-size: 14px;
  color: #666;
}
.nav-tree ul > li > a:hover {
  background: #fff8f0;
  color: #ff9600;
}
.nav-tree .icon-down {
  font-size: 12px;
  margin-left: 5px;
}

/* ====================== 筛选栏样式 ====================== */
.filter-box {
  background: #fff;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}
.filter-box dl {
  margin: 0;
  padding: 8px 0;
}
.filter-box dt {
  float: left;
  width: 80px;
  line-height: 30px;
  font-size: 14px;
  color: #666;
}
.filter-box dd {
  margin: 0;
  overflow: hidden;
}
.filter-nav li {
  display: inline-block;
  vertical-align: middle;
  margin: 0 8px 5px 0;
}
.filter-nav li a {
  display: inline-block;
  padding: 0 15px;
  height: 30px;
  line-height: 30px;
  font-size: 13px;
  color: #666;
  background: #f5f5f5;
  border-radius: 15px;
}
.filter-nav li a.active,
.filter-nav li a:hover {
  background: #ff9600;
  color: #fff;
}

/* ====================== 产品列表栅格 ====================== */
.x4 {
  width: 33.3333%;
  float: left;
  height:100%;
  padding: 0 12px;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ====================== 产品卡片 ====================== */
.media {
  background: #fff;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.media:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.media-y img {
  margin-bottom: 15px;
  max-height: 360px;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* 关键：等比例填充容器，小图自动放大 */
  /* 若想完整显示图片不裁剪，改为 object-fit: contain !important; */
  
}
.media-body h2 {
  font-size: 14px;
  font-weight: normal;
  line-height: 1.5;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/* ====================== 价格与浏览量（含眼睛图标） ====================== */
.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
  line-height: 28px;
}
.price-info .v2-1 {
  color: #ff9600;
  font-size: 16px;
  font-weight: 500;
}
.price-info .v2-2 {
  color: #999;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* 眼睛图标（字体图标实现） */
.iconfont {
  font-family: "iconfont" !important;
  font-size: 12px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-eye::before {
  content: "\e600";
}

/* ====================== 分页样式 ====================== */
.pagination {
  clear: both;
  text-align: center;
  margin: 30px 0;
}
.pagination li {
  display: inline-block;
  margin: 0 5px;
}
.pagination li a {
  display: block;
  padding: 8px 15px;
  font-size: 14px;
  color: #666;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
}
.pagination li a:hover,
.pagination li.active a {
  background: #ff9600;
  color: #fff;
  border-color: #ff9600;
}

/* ====================== 响应式适配 ====================== */
@media (max-width: 1400px) {
  .container {
    width: 100%;
  }
  .x4 {
    width: 50%;
  }
}
@media (max-width: 768px) {
  .x4 {
    width: 100%;
  }
  .nav-tree > li > a {
    padding: 0 15px;
    font-size: 13px;
  }
  .filter-box dt {
    width: 60px;
  }
}
/* 产品卡片内容居中 */
.media-body {
  text-align: center !important;
}
/* 图片居中 */
.flex-center {
  display: flex !important;
  justify-content: center !important;
}
/* 价格访问量同行 */
.price-info {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 10px !important;
}
/* 清除浮动冲突 */
.price-info ul,
.price-info li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}