.main-content {
  margin-top: 30px;
  display: flex;
  margin-bottom: 30px;
}

.brands-top-mobile{
  display: none;
}

.brands-sidebar {
  flex: 0 0 280px;
  background-color: #fff;
  border-radius: 5px;
  margin-right: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 10px;
  height: fit-content;
}

.brands-sidebar h2 {
  font-size: 20px;
  color: #1a3a5f;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f1fd;
}

.brand-list {
  list-style: none;
}

.brand-item {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-item a{
  display: flex;
  text-decoration: none;
  width: 100%;
  align-items: center;
}

.brand-item a span{
  margin-left: 5px;
  color: #1a3a5f;
}

.brand-item:last-child {
  border-bottom: none;
}

.brand-item:hover {
  background-color: #f5f9ff;
}

.brand-item.active {
  background-color: #e8f1fd;
  border-left: 3px solid #2a7de1;
  color: #2a7de1;
  font-weight: 600;
}

.brand-item.active a{
  color: #2a7de1;
}

.brand-logo-small {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-small img {
  max-width: 100%;
  max-height: 100%;
}

.products-section {
  flex: 1;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.products-header h2 {
  font-size: 24px;
  color: #1a3a5f;
}

.current-brand {
  color: #2a7de1;
  font-weight: 600;
}


.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
}


.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}


.product-content {
  padding: 20px;
}

.product-brand {
  color: #2a7de1;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.product-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1a3a5f;
}

.product-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
}

.product-feature {
  background-color: #f5f7fa;
  color: #666;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.pagination-contain{
  width: 100%;
  margin-bottom: 60px;
}

.pagination-contain .pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:hover {
  background-color: #f5f7fa;
}

.page-btn.active {
  background-color: #2a7de1;
  color: #fff;
  border-color: #2a7de1;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-dots {
  padding: 0 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    margin-top: 50px;
  }
  .brands-sidebar{
    display: none;
  }
  .page-header{
    display: none;
  }

  .brands-top-mobile{
    display: block;
    position: fixed;
    top: 95px;
    left: 0;
    width: 100%;
    padding: 10px;
    background: #fff;
    z-index: 999;
  }

  .brands-top-mobile .brands-list-mobile {
    list-style: none;
    display: flex;
    overflow: scroll;
  }


  .brands-top-mobile .brands-list-mobile span{
    white-space: nowrap;
    margin: 0 10px;
  }

  .brands-top-mobile .brands-list-mobile::-webkit-scrollbar {
    display: none;
  }

  .brands-sidebar {
    flex: 1;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}



/* 添加到现有的 manufacturers.css 文件中 */

/* 手机端品牌列表样式 */
.brands-list-mobile a {
  text-decoration: none;
  color: #333;
  padding: 8px 16px;
  border-radius: 20px;
  background: #f5f5f5;
  margin: 0 5px;
  white-space: nowrap;
  display: inline-block;
  transition: all 0.3s;
}

.brands-list-mobile a.active {
  background: #2a7de1;
  color: white;
}

.brands-list-mobile a:hover {
  background: #e8f1fd;
}

/* 手机端品牌侧边栏展开样式 */
.brands-sidebar {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .brands-sidebar {
    position: fixed;
    top: 140px;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 0;
    overflow: hidden;
    background: white;
    z-index: 998;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: max-height 0.3s ease;
  }
  
  .brands-sidebar.expanded {
    max-height: 400px;
    overflow-y: auto;
  }
  
  .brands-toggle {
    display: block;
    width: 100%;
    padding: 15px;
    background: #2a7de1;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  .brands-toggle i {
    transition: transform 0.3s ease;
  }
  
  /* 确保产品区域在手机端有合适的边距 */
  .products-section {
    margin-top: 60px;
  }
}

.pagination a.page-btn {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination a.page-btn:hover {
  text-decoration: none;
}