@charset "UTF-8";
.products-page .page-header {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(59, 130, 246, 0.9) 100%);
  color: white;
  padding: 78px 0 58px;
  height: 261px;
  box-sizing: border-box;
}
.products-page .page-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  height: 100%;
}
@media (min-width: 768px) {
  .products-page .page-header .container {
    padding: 0 1.5rem;
  }
}
.products-page .page-header .page-title {
  flex: 1;
  min-width: 200px;
  margin-top: 40px;
}
.products-page .page-header .page-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.products-page .page-header .page-title p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.6;
  height: 48px; /* 固定高度，确保完全一致 */
  overflow: hidden; /* 隐藏超出部分 */
  text-overflow: ellipsis; /* 超出显示省略号 */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 最多显示2行 */
  -webkit-box-orient: vertical;
}
.products-page .page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.8;
}
.products-page .page-header .breadcrumb a {
  color: white;
  text-decoration: none;
}
.products-page .page-header .breadcrumb a:hover {
  opacity: 1;
}

.products-list-container {
  padding: 4rem 0;
}
.products-list-container .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .products-list-container .container {
    grid-template-columns: 280px 1fr;
  }
}

.filters-sidebar {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.filters-sidebar .filters-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #16368C;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.filters-sidebar .filters-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #16368C 0%, #16368C 100%);
  border-radius: 2px;
}
.filters-sidebar .filter-group {
  border-bottom: 1px solid #16368C;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.filters-sidebar .filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.filters-sidebar .filter-group .filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  margin-bottom: 1rem;
}
.filters-sidebar .filter-group .filter-header .filter-title {
  font-size: 1rem;
  font-weight: 600;
  color: #16368C;
}
.filters-sidebar .filter-group .filter-header .filter-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.filters-sidebar .filter-group .filter-header .filter-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #16368C;
}
.filters-sidebar .filter-group .filter-header .filter-toggle.collapsed {
  transform: rotate(-90deg);
}
.filters-sidebar .filter-group .filter-options {
  display: block;
}
.filters-sidebar .filter-group .filter-options.collapsed {
  display: none;
}
.filters-sidebar .filter-group .filter-options .filter-option {
  margin-bottom: 0.75rem;
}
.filters-sidebar .filter-group .filter-options .filter-option label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #6B7280;
  padding: 0.5rem 0;
}
.filters-sidebar .filter-group .filter-options .filter-option label:hover {
  color: #16368C;
}
.filters-sidebar .filter-group .filter-options .filter-option label input[type=checkbox],
.filters-sidebar .filter-group .filter-options .filter-option label input[type=radio] {
  width: 16px;
  height: 16px;
  accent-color: #1E3A8A;
}
.filters-sidebar .filter-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.filters-sidebar .filter-actions button {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #E5E7EB;
  background: white;
  color: #6B7280;
}
.filters-sidebar .filter-actions button:hover {
  border-color: #1E3A8A;
  color: #1E3A8A;
}
.filters-sidebar .filter-actions button.btn-primary {
  background: #16368C;
  border-color: #16368C;
  color: white;
}
.filters-sidebar .filter-actions button.btn-primary:hover {
  background: #16368C;
  border-color: #16368C;
}

.products-grid-section .products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.products-grid-section .products-toolbar .products-count {
  font-size: 0.875rem;
  color: #6B7280;
}
.products-grid-section .products-toolbar .products-count strong {
  color: #1F2937;
  font-weight: 600;
}
.products-grid-section .products-toolbar .products-sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.products-grid-section .products-toolbar .products-sort label {
  font-size: 0.875rem;
  color: #6B7280;
}
.products-grid-section .products-toolbar .products-sort select {
  padding: 0.75rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1F2937;
  background: white;
  cursor: pointer;
  outline: none;
}
.products-grid-section .products-toolbar .products-sort select:focus {
  border-color: #1E3A8A;
}
.products-grid-section .products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .products-grid-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .products-grid-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .products-grid-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
.products-grid-section .product-card {
  background: white;
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}
.products-grid-section .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}
.products-grid-section .product-card .product-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.products-grid-section .product-card .product-image {
  flex: 0 0 225px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  height: 225px;
  border: 0.5px solid #16368C;
  border-radius: 0.5rem;
}
@media (max-width: 640px) {
  .products-grid-section .product-card .product-image {
    flex: 0 0 auto;
    width: 225px;
    height: 225px;
  }
}
.products-grid-section .product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.3rem;
  image-rendering: optimizeQuality;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.products-grid-section .product-card .product-image .product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.75rem;
  background: #16368C;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
}
.products-grid-section .product-card .product-info {
  flex: 1;
  padding: 0.5rem 0.75rem 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.products-grid-section .product-card .product-info .product-category {
  font-size: 0.65rem;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.products-grid-section .product-card .product-info .product-name {
  font-size: 1rem;
  font-weight: 600;
  color: #16368C;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.products-grid-section .product-card .product-info .product-attrs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.products-grid-section .product-card .product-info .product-attrs .attr-item {
  display: flex;
  font-size: 0.875rem;
  line-height: 1.3;
}
.products-grid-section .product-card .product-info .product-attrs .attr-item .attr-label {
  color: #6B7280;
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.products-grid-section .product-card .product-info .product-attrs .attr-item .attr-value {
  color: #1F2937;
  font-weight: 500;
  font-family: "Courier New", monospace;
  word-break: break-all;
}
.products-grid-section .product-card .product-info .product-attrs .attr-item.formula-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}
.products-grid-section .product-card .product-info .product-attrs .attr-item.formula-item .attr-label {
  margin-right: 0;
}
.products-grid-section .product-card .product-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid #E5E7EB;
  display: flex;
  gap: 0.75rem;
}
.products-grid-section .product-card .product-actions .btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.products-grid-section .product-card .product-actions .btn.btn-primary {
  background: #16368C;
  color: white;
}
.products-grid-section .product-card .product-actions .btn.btn-primary:hover {
  background: #16368C;
}
.products-grid-section .product-card .product-actions .btn.btn-outline {
  background: transparent;
  border: 1px solid #16368C;
  color: #16368C;
}
.products-grid-section .product-card .product-actions .btn.btn-outline:hover {
  background: #16368C;
  color: white;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 4rem;
}
.pagination .page-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  color: #1F2937;
  background: white;
}
.pagination .page-item:hover:not(.active):not(.disabled) {
  border-color: #1E3A8A;
  color: #1E3A8A;
}
.pagination .page-item.active {
  background: #1E3A8A;
  border-color: #1E3A8A;
  color: white;
}
.pagination .page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination .page-item.page-prev, .pagination .page-item.page-next {
  padding: 0;
}

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: white;
  border-radius: 1rem;
}
.empty-state .empty-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.empty-state p {
  color: #6B7280;
  margin-bottom: 2rem;
}

.loading-state {
  text-align: center;
  padding: 4rem;
}
.loading-state .spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border: 3px solid #E5E7EB;
  border-top-color: #1E3A8A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.filter-group:has(.filter-title[data-i18n=product_list_backbone]),
.filter-group:has(.filter-title[data-i18n=product_list_base]) {
  display: none;
}

/*# sourceMappingURL=products.css.map */
