/* 产品分类页 */

.product-page {
  padding: 40px 0 60px;
  background: #f5f7fa;
}

.product-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.product-layout-full {
  grid-template-columns: 1fr;
}

.product-index-header {
  padding: 28px 30px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #fafbfd 0%, #fff 100%);
}

.product-index-header h1 {
  font-size: 26px;
  color: #1a3a5c;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-index-header p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
}

.product-index-header .cat-meta span {
  font-size: 13px;
  color: #888;
}

.product-index-header .cat-meta span i {
  color: #0066cc;
  margin-right: 4px;
}

/* ========== 三级分类页（通栏） ========== */

.product-subcategory-page .product-page-full {
  padding: 0 0 48px;
  background: #f0f2f5;
}

.product-subcategory-page .subcat-intro-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 0;
}

.product-subcategory-page .subcat-intro-bar .subcat-intro {
  padding: 28px 0;
  border-bottom: none;
}

.subcat-intro-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.subcat-intro-horizontal .subcat-cover {
  flex-shrink: 0;
  width: 220px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #f5f7fa;
}

.subcat-intro-horizontal .subcat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subcat-intro-horizontal .subcat-info {
  flex: 1;
  min-width: 0;
}

.subcat-intro-horizontal .subcat-info h1 {
  font-size: 26px;
  color: #1a3a5c;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-subcategory-page .product-table-full {
  background: #fff;
  width: 100%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.product-table-toolbar {
  border-bottom: 1px solid #eee;
  background: #fafbfc;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.product-table-toolbar .toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-table-toolbar .toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 280px;
}

.product-table-toolbar .toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-table-toolbar .search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.product-table-toolbar .search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.product-table-toolbar .search-box input {
  width: 100%;
  height: 36px;
  line-height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.product-table-toolbar .search-box input:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.product-table-toolbar .band-select {
  height: 36px;
  min-width: 170px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff;
  cursor: pointer;
}

.product-table-toolbar .result-count {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}

.product-table-toolbar .result-count em {
  color: #0066cc;
  font-style: normal;
  font-weight: 600;
}

.product-table-filter-chips {
  border-bottom: 1px solid #eee;
  background: #fff;
  padding: 8px 0;
}

.product-table-filter-chips .chips-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-table-filter-chips .filter-chips-label {
  flex-shrink: 0;
  font-size: 12px;
  color: #888;
}

.product-table-filter-chips .filter-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.product-table-filter-chips .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 4px 2px 8px;
  border-radius: 999px;
  background: rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.18);
  color: #0b5cad;
  font-size: 12px;
  line-height: 1.4;
}

.product-table-filter-chips .filter-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table-filter-chips .filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #0b5cad;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.product-table-filter-chips .filter-chip-remove:hover {
  background: rgba(0, 102, 204, 0.12);
}

.product-table-filter-chips .filter-chips-clear {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  color: #0066cc;
  font-size: 12px;
  cursor: pointer;
}

.product-table-filter-chips .filter-chips-clear:hover {
  text-decoration: underline;
}

.product-data-table thead th .th-filter-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  vertical-align: middle;
}

.product-data-table thead th .th-filter-btn .layui-icon {
  font-size: 12px;
  line-height: 1;
}

.product-data-table thead th .th-filter-btn:hover,
.product-data-table thead th .th-filter-btn.is-active {
  color: #0066cc;
  background: rgba(0, 102, 204, 0.08);
}

.product-data-table thead th .th-filter-btn.is-active {
  box-shadow: inset 0 0 0 1px rgba(0, 102, 204, 0.25);
}

.col-filter-popover {
  position: fixed;
  z-index: 99990;
  width: 240px;
  padding: 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.col-filter-popover-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.col-filter-popover-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.col-filter-range-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.col-filter-range-row .col-filter-field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.col-filter-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #666;
}

.col-filter-field .layui-input {
  height: 32px;
  line-height: 32px;
  font-size: 12px;
}

.col-filter-field.is-hidden {
  display: none;
}

.col-filter-field .layui-textarea {
  min-height: 72px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.col-filter-hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: #999;
  line-height: 1.4;
}

.col-filter-popover.is-codes {
  width: 280px;
}

.col-filter-popover.is-number {
  width: 280px;
}

.col-filter-popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.product-table-scroll-wrap {
  position: relative;
  width: 100%;
  overflow: auto;
  max-height: calc(100vh - 320px);
  min-height: 200px;
  -webkit-overflow-scrolling: touch;
}

.product-table-x-scroll {
  overflow: visible;
  width: 100%;
}

.product-data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.product-data-table thead th,
.product-data-table tbody td {
  box-sizing: border-box;
}

.product-data-table thead {
  z-index: 10;
}

.product-data-table thead th {
  background: #f5f7fa;
  color: #333;
  font-weight: 600;
  padding: 0;
  border-bottom: 2px solid #e8e8e8;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  user-select: none;
  vertical-align: middle;
}

.product-data-table thead th .th-inner {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding-right: 8px;
  box-sizing: border-box;
}

.product-data-table thead th .th-label {
  flex: 1;
  min-width: 0;
  padding: 11px 4px 11px 10px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  line-height: 1.35;
}

.product-data-table thead th .th-tools {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.product-data-table thead th[style*="text-align: center"] .th-inner {
  justify-content: center;
}

.product-data-table thead th[style*="text-align: center"] .th-label {
  flex: 0 1 auto;
  padding-left: 10px;
  padding-right: 4px;
  text-align: center;
}

.product-data-table thead th[style*="text-align: center"] .th-tools {
  margin-left: 0;
}

.product-data-table thead th .th-label-main {
  display: inline;
}

.product-data-table thead th .th-label-unit {
  display: inline;
  margin-left: 2px;
  color: #666;
  font-size: 0.92em;
  font-weight: 500;
}

.product-data-table thead th .th-drag-handle {
  flex-shrink: 0;
  width: 16px;
  padding: 11px 0 11px 2px;
  cursor: grab;
  color: #bbb;
  font-size: 12px;
  line-height: 1;
  user-select: none;
}

.product-data-table thead th .th-drag-handle:hover {
  color: #0066cc;
}

.product-data-table thead th .th-drag-handle:active {
  cursor: grabbing;
}

.product-data-table thead th .th-drag-handle.is-locked {
  opacity: 0.35;
  cursor: default;
}

.col-drag-ghost {
  opacity: 0.55;
  background: #e8f2ff !important;
}

.product-data-table thead th.sortable {
  cursor: default;
}

.product-data-table thead th.sortable .sort-icon {
  cursor: pointer;
}

.product-data-table thead th.sortable:hover {
  background: #eef3f9;
}

.product-data-table thead th.sort-asc .sort-icon,
.product-data-table thead th.sort-desc .sort-icon {
  opacity: 1;
  color: #0066cc;
}

.product-data-table thead th.sort-asc .sort-icon {
  transform: rotate(180deg);
}

.product-data-table .sort-icon {
  flex-shrink: 0;
  width: 14px;
  margin: 0;
  padding: 3px 0;
  font-size: 11px;
  line-height: 1;
  opacity: 0.45;
  transition: transform 0.2s, opacity 0.2s;
}

.product-data-table thead th.compare-select-col {
  padding: 11px 6px;
  text-align: center;
  white-space: nowrap;
}

.product-data-table thead th .col-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  width: 16px;
  height: 100%;
  max-height: 160px;
  cursor: col-resize;
  z-index: 5;
  touch-action: none;
  user-select: none;
}

body.col-resizing .product-data-table thead th.sortable .sort-icon {
  pointer-events: none;
}

.product-data-table thead th .col-resizer:hover {
  background: rgba(0, 102, 204, 0.2);
}

.product-data-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.product-data-table tbody tr:hover td {
  background: #f8fafc;
}

.product-data-table tbody tr:last-child td {
  border-bottom: none;
}

.product-data-table .cell-name {
  color: #333;
  font-weight: 500;
}

.product-data-table .cell-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #888;
  font-size: 11px;
  line-height: 1.5;
}

.product-data-table .cell-link,
.product-detail-params .param-link {
  color: #0066cc;
  text-decoration: none;
}

.product-data-table .cell-link:hover,
.product-detail-params .param-link:hover {
  text-decoration: underline;
}

.product-data-table .cell-link-model,
.product-detail-params .param-link-model {
  font-weight: 500;
}

.product-data-table .cell-ref-links,
.product-detail-params .param-ref-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 100%;
}

.product-data-table .cell-ref-chip,
.product-detail-params .param-ref-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  word-break: keep-all;
}

.product-data-table a.cell-link-product-ref.cell-ref-chip,
.product-detail-params a.param-link-product-ref.param-ref-chip {
  color: #0b5cad;
  background: rgba(11, 92, 173, 0.08);
  border: 1px solid rgba(11, 92, 173, 0.18);
  text-decoration: none;
}

.product-data-table a.cell-link-product-ref.cell-ref-chip:hover,
.product-detail-params a.param-link-product-ref.param-ref-chip:hover {
  background: rgba(11, 92, 173, 0.14);
  border-color: rgba(11, 92, 173, 0.32);
  text-decoration: none;
}

.product-data-table .cell-ref-plain,
.product-detail-params .param-ref-plain {
  color: #666;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.product-data-table td.is-editable {
  cursor: text;
}

.product-data-table td.is-editable .cell-editable {
  display: block;
  min-height: 20px;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.product-data-table td.is-editable:hover .cell-editable {
  border-bottom-color: #0066cc;
  background: rgba(0, 102, 204, 0.04);
}

.product-data-table td.is-editing {
  padding: 4px 6px;
}

.product-data-table .cell-inline-input {
  height: 26px;
  line-height: 26px;
  padding: 0 6px;
  font-size: 12px;
}

.product-table-toolbar .table-edit-tip {
  font-size: 12px;
  color: #0066cc;
  margin-right: 8px;
}

.product-table-toolbar .table-compare-tip {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.product-data-table .compare-select-col {
  width: 52px;
  min-width: 52px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

.product-data-table .js-compare-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
  vertical-align: middle;
}

.product-data-table .js-compare-check:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.product-compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 990;
  background: #fff;
  border-top: 1px solid #dbe4ef;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.product-compare-bar .compare-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.product-compare-bar .compare-bar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.product-compare-bar .compare-bar-title {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

.product-compare-bar .compare-bar-title em {
  color: #0066cc;
  font-style: normal;
  font-weight: 700;
}

.product-compare-bar .compare-bar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.product-compare-bar .compare-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: #eef5fc;
  border: 1px solid #cfe0f5;
  color: #1a3a5c;
  font-size: 13px;
}

.product-compare-bar .compare-tag-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-compare-bar .compare-tag-remove {
  border: none;
  background: transparent;
  color: #888;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.product-compare-bar .compare-tag-remove:hover {
  color: #e74c3c;
}

.product-compare-bar .compare-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.has-compare-bar {
  padding-bottom: 72px;
}

.compare-table-wrap {
  padding: 0;
  overflow: auto;
  max-height: calc(78vh - 110px);
}

.product-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.product-compare-table th,
.product-compare-table td {
  border: 1px solid #e8edf3;
  padding: 10px 12px;
  vertical-align: top;
  line-height: 1.6;
}

.product-compare-table thead th {
  background: #f5f8fc;
  color: #1a3a5c;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.product-compare-table .compare-param-col {
  min-width: 120px;
  width: 160px;
  background: #fafbfc;
  color: #555;
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 2;
}

.product-compare-table thead .compare-param-col {
  z-index: 3;
}

.product-compare-table .compare-product-col {
  min-width: 140px;
  text-align: center;
}

.product-compare-table .compare-product-link {
  color: #0066cc;
  text-decoration: none;
}

.product-compare-table .compare-product-link:hover {
  text-decoration: underline;
}

.product-compare-table .compare-value-col {
  text-align: center;
  color: #333;
}

.product-compare-table .compare-value-col.compare-diff {
  background: #fff8e6;
  color: #b36b00;
  font-weight: 600;
}

.product-data-table.is-empty {
  display: none;
}

.table-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
}

.product-table-footer {
  border-top: 1px solid #eee;
  padding: 16px 0;
  background: #fafbfc;
}

.product-table-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-table-footer .page-size-select {
  font-size: 13px;
  color: #666;
}

.product-table-footer .page-size-select select {
  height: 30px;
  margin: 0 4px;
  padding: 0 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

body.col-resizing,
body.col-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

body.col-resizing #productTableHead {
  pointer-events: none;
}

body.col-resizing .product-data-table thead th .col-resizer,
body.col-resizing .product-data-table thead th .col-resizer:hover {
  display: none !important;
  background: none !important;
}

.product-table-scroll-wrap .col-resize-guide {
  pointer-events: none;
}

/* 指示条样式由 JS paintGuide 内联写入，此处仅保留占位 */
.col-resize-guide {
  pointer-events: none;
}

.col-resize-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  cursor: col-resize !important;
  background: transparent;
  touch-action: none;
  user-select: none;
}

.col-setting-wrap {
  padding: 0;
}

.col-setting-tip {
  margin: 0;
  padding: 12px 16px;
  font-size: 12px;
  color: #999;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.col-setting-list {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  max-height: 340px;
  overflow-y: auto;
}

.col-setting-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #eee;
}

.col-setting-item .col-drag-handle {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  cursor: grab;
  color: #999;
  font-size: 16px;
  user-select: none;
}

.col-setting-item .col-drag-handle:active {
  cursor: grabbing;
}

.col-setting-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  margin: 0;
}

.col-setting-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #0066cc;
}

@media (max-width: 768px), ((hover: none) and (pointer: coarse) and (max-device-width: 1024px)) {
  .product-subcategory-page .subcat-intro-bar .subcat-intro {
    padding: 20px 0;
  }

  .product-table-toolbar .toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .product-table-toolbar .toolbar-left,
  .product-table-toolbar .toolbar-right {
    width: 100%;
    min-width: 0;
  }

  .product-table-toolbar .search-box {
    max-width: none;
  }

  .product-table-toolbar .band-select {
    width: 100%;
  }

  .product-table-toolbar .toolbar-right {
    justify-content: flex-start;
  }

  .product-table-toolbar {
    top: var(--product-subcat-header-h, 0px);
  }

  .product-table-scroll-wrap {
    max-height: none;
    overflow: visible;
    min-height: 0;
  }

  .product-table-x-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  /* 移动端改由 JS 固定表头，关闭 CSS sticky 避免 iOS 失效 */
  .product-data-table thead th {
    position: relative;
    top: auto;
  }

  /* 移动端压缩字号/内边距，一屏尽量显示 5～6 列数据 */
  .product-data-table {
    font-size: 10px;
    width: auto;
  }

  .product-data-table thead th .col-resizer {
    display: none;
  }

  .product-data-table .compare-select-col {
    padding-left: 2px;
    padding-right: 2px;
  }

  .product-data-table thead th .th-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 2px;
  }

  .product-data-table thead th .th-label {
    flex: 0 1 auto;
    width: 100%;
    padding: 4px 1px 2px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }

  .product-data-table thead th .th-label-main,
  .product-data-table thead th .th-label-unit {
    display: block;
    width: 100%;
    line-height: 1.25;
  }

  .product-data-table thead th .th-label-unit {
    margin-left: 0;
    color: #888;
    font-size: 9px;
    font-weight: 500;
  }

  .product-data-table .sort-icon {
    width: 12px;
    margin: 0 0 1px;
    font-size: 9px;
  }

  .product-data-table thead th .th-drag-handle {
    display: none;
  }

  .product-data-table thead th.compare-select-col {
    padding: 8px 2px;
  }

  .product-data-table tbody td {
    padding: 5px 2px;
    line-height: 1.3;
  }

  .product-data-table thead th.compare-select-col,
  .product-data-table tbody td.compare-select-col {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
  }

  .product-data-table .cell-ref-chip {
    padding: 0 3px;
    font-size: 9px;
  }

  .product-table-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-compare-bar .compare-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .product-compare-bar .compare-bar-actions {
    justify-content: flex-end;
  }

  body.has-compare-bar {
    padding-bottom: 120px;
  }
}

/* JS 触屏检测兜底：Safari「请求桌面网站」等场景 viewport 偏宽 */
.product-subcategory-page.is-mobile-table .product-table-toolbar {
  top: var(--product-subcat-header-h, 0px);
}

.product-subcategory-page.is-mobile-table .product-table-scroll-wrap {
  max-height: none;
  overflow: visible;
}

.product-subcategory-page.is-mobile-table .product-table-x-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.product-subcategory-page.is-mobile-table .product-data-table thead th {
  position: relative;
  top: auto;
}

.product-subcategory-page.is-mobile-table .product-data-table {
  font-size: 10px;
  width: auto;
}

.product-subcategory-page.is-mobile-table .product-data-table thead th .col-resizer {
  display: none;
}

.product-subcategory-page.is-mobile-table .product-data-table .compare-select-col {
  padding-left: 2px;
  padding-right: 2px;
}

.product-subcategory-page.is-mobile-table .product-data-table thead th .th-inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 2px;
}

.product-subcategory-page.is-mobile-table .product-data-table thead th .th-label {
  flex: 0 1 auto;
  width: 100%;
  padding: 4px 1px 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.product-subcategory-page.is-mobile-table .product-data-table thead th .th-label-main,
.product-subcategory-page.is-mobile-table .product-data-table thead th .th-label-unit {
  display: block;
  width: 100%;
  line-height: 1.25;
}

.product-subcategory-page.is-mobile-table .product-data-table thead th .th-label-unit {
  margin-left: 0;
  color: #888;
  font-size: 9px;
  font-weight: 500;
}

.product-subcategory-page.is-mobile-table .product-data-table .sort-icon {
  width: 12px;
  margin: 0 0 1px;
  font-size: 9px;
}

.product-subcategory-page.is-mobile-table .product-data-table thead th .th-drag-handle {
  display: none;
}

.product-subcategory-page.is-mobile-table .product-data-table tbody td {
  padding: 5px 2px;
  line-height: 1.3;
}

.product-subcategory-page.is-mobile-table .product-data-table thead th.compare-select-col,
.product-subcategory-page.is-mobile-table .product-data-table tbody td.compare-select-col {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
}

.product-subcategory-page.is-mobile-table .product-data-table .cell-ref-chip {
  padding: 0 3px;
  font-size: 9px;
}

/* 左侧分类栏 */
.product-sidebar {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: sticky;
  top: 130px;
}

.sidebar-title {
  background: linear-gradient(135deg, #1a3a5c, #0066cc);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 20px;
}

.sidebar-title i {
  margin-right: 8px;
}

.product-sidebar .layui-nav-tree {
  width: 100%;
  background: #fff;
  padding: 8px 0 12px;
}

.product-sidebar .layui-nav-tree .layui-nav-item a {
  height: 44px;
  line-height: 44px;
  color: #555;
  font-size: 14px;
  padding-left: 24px;
}

.product-sidebar .layui-nav-tree .layui-nav-item a:hover {
  background: #f0f7ff;
  color: #0066cc;
}

.product-sidebar .layui-nav-tree .layui-nav-itemed > a,
.product-sidebar .layui-nav-tree .layui-this > a {
  background: #f0f7ff !important;
  color: #0066cc !important;
  font-weight: 600;
}

.product-sidebar .layui-nav-tree .layui-nav-child dd a {
  padding-left: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 13px;
}

.product-sidebar .layui-nav-tree .layui-nav-bar {
  background-color: #0066cc;
}

.sidebar-contact {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #888;
  line-height: 1.8;
}

.sidebar-contact strong {
  display: block;
  color: #0066cc;
  font-size: 18px;
  margin-top: 4px;
}

/* 右侧主内容 */
.product-main {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.product-main-header {
  display: flex;
  gap: 24px;
  padding: 28px 30px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #fafbfd 0%, #fff 100%);
}

.product-main-header .cat-cover {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-main-header .cat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-main-header .cat-info {
  flex: 1;
  min-width: 0;
}

.product-main-header .cat-info h1 {
  font-size: 26px;
  color: #1a3a5c;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-main-header .cat-info .cat-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
  text-align: justify;
}

.product-main-header .cat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.product-main-header .cat-meta span {
  font-size: 13px;
  color: #888;
}

.product-main-header .cat-meta span i {
  color: #0066cc;
  margin-right: 4px;
}

/* 子分类卡片网格（分类页仅展示子级） */
.child-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.child-cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  color: inherit;
  text-decoration: none;
}

.child-cat-card:hover {
  border-color: #0066cc;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.12);
  transform: translateY(-2px);
}

.child-cat-cover {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f7fa;
}

.child-cat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.child-cat-body {
  flex: 1;
  min-width: 0;
}

.child-cat-body h3 {
  font-size: 15px;
  color: #1a3a5c;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-cat-meta {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.child-cat-arrow {
  flex-shrink: 0;
  color: #bbb;
  font-size: 14px;
}

.child-cat-card:hover .child-cat-arrow {
  color: #0066cc;
}

/* 末级分类 - 通用参数横向排列 */
.common-params-block {
  margin-top: 18px;
}

.common-params-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.common-params-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 2px;
  overflow: hidden;
}

.common-param-item {
  display: flex;
  align-items: stretch;
  flex: 1 1 160px;
  min-width: 0;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.5;
}

.common-param-item:last-child {
  border-right: none;
}

.common-params-row .common-param-item:nth-last-child(-n+1) {
  border-right: none;
}

.param-label {
  flex-shrink: 0;
  padding: 8px 12px;
  background: #f5f5f5;
  color: #333;
  white-space: nowrap;
}

.param-value {
  flex: 1;
  padding: 8px 12px;
  color: #333;
  background: #fff;
  word-break: break-word;
}

.subcat-desc-tail {
  margin-top: 12px;
}

/* 末级分类 Hook 选项卡 */
.product-hook-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eef2f7;
}

.hook-section-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
}

.hook-nav-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hook-nav-btn {
  flex-shrink: 0;
  border: 1px solid #dce6f2;
  background: #f8fafc;
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.hook-nav-btn:hover {
  border-color: #0066cc;
  color: #0066cc;
}

.hook-nav-btn.active {
  border-color: #0066cc;
  background: #0066cc;
  color: #fff;
  font-weight: 600;
}

.hook-panels {
  margin-top: 16px;
}

.hook-panel {
  display: none;
}

.hook-panel.active {
  display: block;
}

.hook-rich-content {
  padding: 4px 0 8px;
  font-size: 14px;
  color: #444;
  line-height: 1.9;
}

.hook-rich-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
}

/* 留言反馈 */
.product-feedback-panel {
  padding: 4px 0 8px;
}

.product-detail-tabs {
  margin-top: 24px;
  padding: 20px 24px 8px;
  border-top: 1px solid #eef2f7;
}

.feedback-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feedback-count {
  font-size: 13px;
  color: #888;
}

.feedback-count em {
  color: #0066cc;
  font-style: normal;
  font-weight: 600;
}

.feedback-list {
  margin-bottom: 20px;
}

.feedback-loading,
.feedback-empty {
  text-align: center;
  padding: 28px 16px;
  color: #999;
  font-size: 14px;
  background: #f8fafc;
  border: 1px dashed #e3ebf3;
  border-radius: 8px;
}

.feedback-thread {
  margin-bottom: 16px;
}

.feedback-thread .feedback-root {
  margin-bottom: 0;
}

.feedback-replies {
  margin-top: 8px;
  padding-left: 16px;
  border-left: 2px solid #e8edf3;
}

.feedback-item {
  padding: 14px 16px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
}

.feedback-item.is-reply {
  background: #f8fafc;
}

.feedback-reply-to {
  font-size: 12px;
  color: #0066cc;
}

.feedback-reply-to::before {
  content: '·';
  margin: 0 4px;
  color: #ccc;
}

.feedback-item.is-admin {
  border-color: #cfe0f5;
  background: #eef5fc;
}

.feedback-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.feedback-author {
  font-size: 14px;
  font-weight: 600;
  color: #1a3a5c;
}

.feedback-time {
  font-size: 12px;
  color: #999;
}

.feedback-item-content {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  word-break: break-word;
}

.feedback-item-actions {
  margin-top: 10px;
}

.feedback-reply-btn {
  border: none;
  background: transparent;
  color: #0066cc;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.feedback-reply-btn:hover {
  text-decoration: underline;
}

.feedback-reply-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e3ebf3;
}

.feedback-compose {
  border-top: 1px solid #eef2f7;
  padding-top: 16px;
}

.feedback-compose-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.feedback-compose-head strong {
  font-size: 15px;
  color: #1a3a5c;
}

.feedback-login-tip {
  font-size: 12px;
  color: #999;
}

.feedback-compose-body.is-disabled .layui-textarea {
  background: #f5f7fa;
  cursor: not-allowed;
}

.feedback-compose-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.subcat-intro .subcat-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
}

.subcat-intro .subcat-desc p {
  margin: 0 0 10px;
}

/* 产品详情页 */
.product-detail-page .product-page-full {
  padding: 0 0 48px;
  background: #f0f2f5;
}

.product-detail-page .product-detail-main {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.product-detail-main {
  padding: 0;
}

.product-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 30px;
  border-bottom: 1px solid #f0f0f0;
}

.product-detail-gallery {
  flex-shrink: 0;
  width: 280px;
  max-width: 100%;
  height: 220px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.product-detail-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-detail-info {
  flex: 1;
  min-width: 0;
}

.product-detail-info h1 {
  font-size: 28px;
  color: #1a3a5c;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-detail-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.product-detail-meta li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
}

.product-detail-meta .label {
  flex-shrink: 0;
  width: 88px;
  color: #999;
}

.product-detail-meta .value {
  color: #333;
  word-break: break-all;
}

.product-detail-meta .value a {
  color: #0066cc;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.product-detail-actions .layui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  text-decoration: none;
  vertical-align: middle;
}

/* 覆盖 layui：相邻按钮默认 margin-left，竖排时会错位 */
.product-detail-actions .layui-btn + .layui-btn {
  margin-left: 0;
}

.product-detail-docs .docs-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.product-detail-docs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-detail-docs li {
  margin-bottom: 6px;
}

.product-detail-docs a {
  color: #0066cc;
  font-size: 14px;
}

.product-detail-desc {
  padding: 28px 30px 40px;
}

.product-detail-desc h3 {
  font-size: 18px;
  color: #1a3a5c;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066cc;
  display: inline-block;
}

.detail-rich-content {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
}

.detail-rich-content img {
  max-width: 100%;
  height: auto;
}

.product-detail-params {
  padding: 28px 30px;
  border-top: 1px solid #f0f0f0;
}

.product-detail-params h3 {
  font-size: 18px;
  color: #1a3a5c;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066cc;
  display: inline-block;
}

.product-params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #eef2f7;
  border-radius: 6px;
  overflow: hidden;
}

.product-param-item {
  display: flex;
  min-height: 48px;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #eef2f7;
  font-size: 14px;
}

.product-param-item:nth-child(3n) {
  border-right: none;
}

.product-param-item .param-label {
  flex-shrink: 0;
  width: 38%;
  padding: 12px 16px;
  background: #f8fafc;
  color: #666;
  border-right: 1px solid #eef2f7;
}

.product-param-item .param-value {
  flex: 1;
  padding: 12px 16px;
  color: #333;
  word-break: break-all;
}

.product-param-item .param-value a {
  color: #0066cc;
}

.product-related {
  padding: 28px 30px 36px;
  border-top: 1px solid #f0f0f0;
  background: #fafbfd;
}

.product-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.product-related h3 {
  font-size: 18px;
  color: #1a3a5c;
  margin: 0;
}

.product-related .view-all-link {
  font-size: 14px;
  color: #0066cc;
  text-decoration: none;
}

.product-related .view-all-link:hover {
  text-decoration: underline;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.related-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  transition: all 0.25s;
}

.related-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.12);
  border-color: #cce0f5;
}

.related-product-cover {
  height: 140px;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related-product-body {
  padding: 14px 16px 16px;
}

.related-product-body h4 {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-product-body .related-model {
  font-size: 12px;
  color: #999;
  margin: 0;
}

@media (max-width: 992px) {
  .product-params-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-param-item:nth-child(3n) {
    border-right: 1px solid #eef2f7;
  }

  .product-param-item:nth-child(2n) {
    border-right: none;
  }

  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-detail-page .container.product-layout-full {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-detail-page .product-detail-main {
    border-radius: 10px;
  }

  .product-detail-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
  }

  .product-detail-gallery {
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0 auto;
    align-self: center;
  }

  .product-detail-gallery img {
    height: 100%;
    object-fit: cover;
  }

  .product-detail-info {
    width: 100%;
  }

  .product-detail-info h1 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .subcat-intro-horizontal {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .subcat-intro-horizontal .subcat-cover {
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0 auto;
  }

  .subcat-intro-horizontal .subcat-info {
    width: 100%;
  }

  .subcat-intro-horizontal .subcat-info h1 {
    font-size: 22px;
  }

  .product-subcategory-page .subcat-intro-bar .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .common-param-item {
    flex: 1 1 100%;
    border-right: none;
  }

  .product-params-grid {
    grid-template-columns: 1fr;
  }

  .product-param-item,
  .product-param-item:nth-child(2n),
  .product-param-item:nth-child(3n) {
    border-right: none;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .product-related-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  .product-detail-actions .layui-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    height: 44px;
    line-height: 1;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .product-detail-actions a.layui-btn {
    width: 100%;
  }

  .product-detail-desc,
  .product-detail-params {
    padding: 20px 16px;
  }

  .product-detail-page .product-hook-section {
    padding: 20px 16px 0;
  }

  .product-related {
    padding: 20px 16px 28px;
  }
}

/* 子分类标签 */
.subcat-bar {
  padding: 20px 30px;
  border-bottom: 1px solid #f0f0f0;
}

.subcat-bar .bar-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
}

.subcat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subcat-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #dce6f0;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  background: #fff;
  transition: all 0.25s;
  cursor: pointer;
}

.subcat-tag:hover,
.subcat-tag.active {
  border-color: #0066cc;
  background: #0066cc;
  color: #fff;
}

/* 工具栏 */
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 30px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafbfc;
}

.product-toolbar .result-count {
  font-size: 13px;
  color: #888;
}

.product-toolbar .result-count em {
  color: #0066cc;
  font-style: normal;
  font-weight: 600;
}

.product-toolbar .sort-options a {
  font-size: 13px;
  color: #666;
  margin-left: 16px;
  padding: 4px 0;
}

.product-toolbar .sort-options a.active,
.product-toolbar .sort-options a:hover {
  color: #0066cc;
}

/* 产品列表 */
.product-list {
  padding: 24px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-list-item {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  background: #fff;
}

.product-list-item:hover {
  border-color: #0066cc;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
  transform: translateY(-4px);
}

.product-list-item .item-pic {
  height: 160px;
  overflow: hidden;
  background: #f5f7fa;
}

.product-list-item .item-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-list-item:hover .item-pic img {
  transform: scale(1.06);
}

.product-list-item .item-body {
  padding: 16px;
}

.product-list-item .item-body h3 {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-item .item-body p {
  font-size: 12px;
  color: #999;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-list-item .item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #f5f5f5;
  font-size: 12px;
}

.product-list-item .item-tag {
  color: #0066cc;
  background: #f0f7ff;
  padding: 2px 8px;
  border-radius: 4px;
}

.product-list-item .item-link {
  color: #0066cc;
}

.product-list-item .item-link i {
  font-size: 12px;
}

/* 分页 */
.product-pagination {
  padding: 24px 30px 32px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

/* 分类介绍扩展区 */
.cat-features {
  padding: 30px;
  border-top: 1px solid #f0f0f0;
  background: #fafbfd;
}

.cat-features h3 {
  font-size: 18px;
  color: #1a3a5c;
  margin-bottom: 20px;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
  transition: all 0.3s;
}

.feature-item:hover {
  border-color: #0066cc;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.08);
}

.feature-item i {
  font-size: 32px;
  color: #0066cc;
  margin-bottom: 10px;
}

.feature-item h4 {
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 12px;
  color: #999;
  line-height: 1.7;
}

/* 响应式 */
@media (max-width: 992px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    position: static;
  }

  .product-main-header {
    flex-direction: column;
  }

  .product-main-header .cat-cover {
    width: 100%;
    height: 180px;
  }

  .product-list {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .product-list {
    grid-template-columns: 1fr;
  }

  .subcat-bar,
  .product-toolbar,
  .product-main-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ========== 三级分类页 ========== */

/* 三级侧边栏树 */
.sidebar-cat-tree {
  list-style: none;
  margin: 0;
  padding: 8px 0 12px;
}

.sidebar-cat-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-cat-tree > li > a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}

.sidebar-cat-tree .cat-l2 > li > a {
  display: block;
  padding: 10px 20px 10px 28px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #f8f8f8;
}

.sidebar-cat-tree .cat-l2 > li > a:hover,
.sidebar-cat-tree .cat-l3 a:hover {
  color: #0066cc;
  background: #f8fafc;
}

.sidebar-cat-tree .cat-l3 a {
  display: block;
  padding: 9px 20px 9px 44px;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #fafafa;
  position: relative;
}

.sidebar-cat-tree .cat-l3 a::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #ccc;
  border-radius: 50%;
  transform: translateY(-50%);
}

.sidebar-cat-tree .cat-l3 a.active {
  color: #0066cc;
  background: #f0f7ff;
  font-weight: 600;
}

.sidebar-cat-tree .cat-l3 a.active::before {
  background: #0066cc;
}

.sidebar-cat-tree .cat-l2 > li > a.active {
  color: #0066cc;
  background: #f0f7ff;
}

/* 同级分类导航 */
.sibling-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 30px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafbfc;
  overflow-x: auto;
}

.sibling-nav a {
  display: inline-block;
  padding: 14px 18px;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
  margin-bottom: -1px;
}

.sibling-nav a:hover {
  color: #0066cc;
}

.sibling-nav a.active {
  color: #0066cc;
  font-weight: 600;
  border-bottom-color: #0066cc;
  background: #fff;
}

/* 三级分类简介（紧凑） */
.subcat-intro {
  padding: 24px 30px;
  border-bottom: 1px solid #f0f0f0;
}

.subcat-intro h1 {
  font-size: 22px;
  color: #1a3a5c;
  font-weight: 700;
  margin-bottom: 12px;
}

.subcat-intro p {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
  text-align: justify;
}

/* 三级产品列表（列表模式） */
.product-list-mode {
  padding: 0;
  display: block;
}

.product-list-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.25s;
  cursor: pointer;
}

.product-list-row:last-child {
  border-bottom: none;
}

.product-list-row:hover {
  background: #f8fafc;
}

.product-list-row .row-pic {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f7fa;
  border: 1px solid #eee;
}

.product-list-row .row-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list-row .row-info {
  flex: 1;
  min-width: 0;
}

.product-list-row .row-info h3 {
  font-size: 16px;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color 0.25s;
}

.product-list-row:hover .row-info h3 {
  color: #0066cc;
}

.product-list-row .row-info p {
  font-size: 13px;
  color: #999;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-list-row .row-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.product-list-row .row-specs span {
  font-size: 12px;
  color: #888;
  background: #f5f7fa;
  padding: 2px 8px;
  border-radius: 4px;
}

.product-list-row .row-action {
  flex-shrink: 0;
}

.product-list-row .row-action .layui-btn {
  border-radius: 20px;
}

@media (max-width: 768px) {
  .sibling-nav {
    padding: 0 16px;
  }

  .subcat-intro {
    padding: 20px 16px;
  }

  .product-list-row {
    flex-wrap: wrap;
    padding: 16px;
  }

  .product-list-row .row-pic {
    width: 100%;
    height: 140px;
  }

  .product-list-row .row-action {
    width: 100%;
  }

  .product-list-row .row-action .layui-btn {
    width: 100%;
  }
}
