/* ========================================
   产品列表页 - 完整样式
   ======================================== */

/* ==========================================
   1. 页面顶部标题 & 面包屑
   ========================================== */

/* 顶栏偏移量补偿固定导航 */
.pl-hero {
  padding-top: calc(var(--navbar-height) + 28px);
  padding-bottom: 32px;
  background-color: #f4f7fa;
  border-bottom: 1px solid var(--gray-200);
}

.pl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto 20px;
  font-size: 12px;
  color: var(--gray-400);
}

.pl-breadcrumb a {
  color: var(--gray-500);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.pl-breadcrumb a:hover {
  color: var(--blue-500);
}

.pl-bc-sep {
  color: var(--gray-300);
}

.pl-bc-current {
  color: var(--gray-700);
  font-weight: 500;
}

.pl-hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pl-hero-kicker span {
  color: var(--gray-300);
}

.pl-page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 0;
  color: var(--gray-900);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.pl-page-sub {
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.pl-page-desc {
  font-size: 13px;
  color: var(--gray-500);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* --- 扩展描述 --- */
.pl-hero-desc {
  margin-top: 16px;
  margin-bottom: 20px;
}

.pl-hero-desc-text {
  max-width: 720px;
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0;
}

/* --- 分类页头：稳定的媒体与标题比例 --- */
.pl-hero-layout {
  display: grid;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background-color: #ffffff;
}

.pl-hero-layout--noimage {
  grid-template-columns: minmax(0, 1fr);
}

.pl-hero-layout--compact {
  min-height: 300px;
}

.pl-hero-media {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  background: var(--gray-100);
}

.pl-hero-layout--compact .pl-hero-media {
  min-height: 300px;
}

.pl-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, rgba(255, 255, 255, 0.12));
  content: "";
  pointer-events: none;
}

.pl-hero-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pl-hero-body {
  align-self: center;
  min-width: 0;
  padding: clamp(28px, 4vw, 56px);
}

.pl-hero-layout--noimage .pl-hero-body {
  max-width: 920px;
}

@media (max-width: 900px) {
  .pl-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pl-hero-body {
    grid-row: 1;
  }

  .pl-hero-media {
    grid-row: 2;
    min-height: auto;
    aspect-ratio: 1 / 1;
  }

}

@media (max-width: 600px) {
  .pl-hero {
    padding-top: calc(var(--navbar-height) + 18px);
    padding-bottom: 24px;
  }

  .pl-breadcrumb {
    margin-bottom: 14px;
  }

  .pl-hero-layout,
  .pl-hero-layout--compact {
    min-height: 0;
  }

  .pl-hero-body {
    padding: 24px 20px;
  }

  .pl-page-title {
    font-size: 30px;
  }
}

/* --- 特性亮点 --- */
.pl-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.pl-hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  background-color: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  min-width: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pl-hero-feature:hover {
  border-color: var(--blue-300);
  box-shadow: 0 2px 8px rgba(43, 108, 176, 0.08);
}

.pl-hero-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--blue-500);
  flex-shrink: 0;
}

.pl-hero-feature-icon svg {
  width: 16px;
  height: 16px;
}

.pl-hero-feature-label {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pl-hero-feature-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-800);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* --- 应用标签 --- */
.pl-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

.pl-hero-tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 11px;
  color: var(--blue-600);
  background-color: #ebf4ff;
  border-radius: 20px;
  letter-spacing: 0.5px;
  transition: background-color var(--transition-fast);
}

.pl-hero-tag:hover {
  background-color: #d0e3f7;
}


/* ==========================================
   2. 主体布局
   ========================================== */

.pl-main {
  background-color: #ffffff;
  padding: 32px 0 60px;
}

.pl-category-children {
  padding: 56px 0 72px;
  background: #fff;
}

.pl-category-children__heading {
  margin-bottom: 32px;
}

.pl-category-children__heading h2 {
  color: #333;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.pl-category-children__heading p {
  margin-top: 10px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
}

/* 侧边栏占 288px + 32px gap，子类目卡片区收窄为 3 列 */
.pl-category-children__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pl-category-child-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: #fff;
}

.pl-category-child-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-100);
}

.pl-category-child-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pl-category-child-card:hover img {
  transform: scale(1.025);
}

.pl-category-child-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--gray-400);
  font-size: 48px;
  font-weight: 700;
}

.pl-category-child-card__body {
  padding: 24px;
}

.pl-category-child-card h3 {
  color: #333;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.pl-category-child-card__body p {
  margin-top: 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.pl-category-child-card__body a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--blue-500);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pl-category-child-card__body a::after {
  content: "";
  position: absolute;
  inset: 0;
}

@media (max-width: 1024px) {
  .pl-category-children__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pl-category-children {
    padding: 40px 0 52px;
  }

  .pl-category-children__grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================
   3. 顶部筛选栏
   ========================================== */

.pl-filter-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gray-200);
}

/* --- 第一行: 标签筛选 --- */
.pl-filter-tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--gray-100);
}

.pl-filter-block-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* --- 下拉式筛选 --- */
.pl-filter-dropdown {
  position: relative;
  display: inline-block;
}

.pl-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gray-600);
  background-color: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.pl-dropdown-toggle:hover {
  color: var(--blue-500);
  border-color: var(--blue-500);
}

.pl-dropdown-label {
  flex: 1 1 auto;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-dropdown-caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition-fast);
}

.pl-filter-dropdown.is-open .pl-dropdown-caret {
  transform: rotate(180deg);
}

.pl-filter-dropdown.is-open .pl-dropdown-toggle,
.pl-filter-dropdown.has-selection .pl-dropdown-toggle {
  color: var(--blue-500);
  border-color: var(--blue-500);
}

.pl-filter-dropdown.has-selection .pl-dropdown-toggle {
  background-color: #ebf4ff;
  font-weight: 600;
}

.pl-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 100%;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  background-color: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pl-filter-dropdown.is-open .pl-dropdown-panel {
  display: block;
}

.pl-dropdown-panel .pl-cat-tree {
  display: block;
}

.pl-dropdown-panel .pl-cat-tree li {
  margin-bottom: 0;
}

.pl-dropdown-panel .pl-cat-item {
  display: block;
  width: 100%;
  padding: 7px 12px;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  color: var(--gray-600);
  background: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  position: relative;
}

.pl-dropdown-panel .pl-cat-item:hover {
  color: var(--blue-500);
  background-color: var(--gray-50);
}

.pl-dropdown-panel .pl-cat-item.active {
  color: var(--blue-500);
  background-color: #ebf4ff;
  font-weight: 600;
}

.pl-dropdown-panel .pl-cat-item.active::before {
  display: none;
}

/* --- 第二行: 滑块筛选 --- */
.pl-filter-slider-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 12px 0;
}

.pl-filter-slider-row .pl-filter-blocks {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.pl-filter-slider-row .pl-filter-block {
  flex: 1 1 30%;
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  padding-right: 0;
  border-bottom: none;
  border-right: none;
}

.pl-filter-slider-row .pl-slider-group {
  padding-top: 0;
}

.pl-filter-slider-row .pl-slider-values {
  margin-bottom: 6px;
}

.pl-filter-slider-row .pl-slider-input {
  width: 50px;
}

 .pl-filter-slider-row .pl-filter-reset {
   flex-shrink: 0;
   align-self: flex-end;
   width: auto;
   padding: 8px 20px;
   white-space: nowrap;
   display: block;
   font-size: 13px;
   font-weight: 500;
   color: var(--gray-700);
   background-color: var(--gray-100);
   border: 1px solid var(--gray-400);
   border-radius: 12px;
   cursor: pointer;
   transition: all var(--transition-fast);
   text-align: center;
   letter-spacing: 0.5px;
 }
 
 .pl-filter-slider-row .pl-filter-reset:hover {
   color: var(--blue-500);
   border-color: var(--blue-500);
   background-color: #ebf4ff;
 }
 
.pl-filter-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}

.pl-filter-block:last-of-type {
  border-bottom: none;
}

.pl-filter-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.pl-filter-unit {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 12px;
}


/* --- 类目树 --- */

.pl-cat-tree {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pl-cat-tree li {
  margin-bottom: 2px;
}

.pl-cat-item {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gray-600);
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.pl-cat-item:hover {
  color: var(--blue-500);
  background-color: var(--gray-50);
}

.pl-cat-item.active {
  color: var(--blue-500);
  background-color: #ebf4ff;
  font-weight: 600;
}

.pl-cat-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--blue-500);
}


/* --- 双滑块范围选择器 --- */

.pl-slider-group {
  padding-top: 4px;
}

.pl-slider-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.pl-slider-min,
.pl-slider-max {
  font-weight: 600;
  color: var(--blue-500);
}

/* 滑块数值输入框 */
.pl-slider-input {
  width: 62px;
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-500);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  text-align: center;
  outline: none;
  background: #ffffff;
  transition: border-color var(--transition-fast);
  -moz-appearance: textfield;
}

.pl-slider-input::-webkit-inner-spin-button,
.pl-slider-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pl-slider-input:hover,
.pl-slider-input:focus {
  border-color: var(--blue-500);
}

.pl-slider-sep {
  color: var(--gray-300);
  font-size: 12px;
}

/* 滑块轨道 */
.pl-slider-track {
  position: relative;
  height: 4px;
  background-color: var(--gray-200);
  margin: 0 6px;
}

/* 选中范围高亮条 */
.pl-slider-range {
  position: absolute;
  top: 0;
  height: 100%;
  background-color: var(--blue-500);
  z-index: 1;
}

/* 滑块拇指 (隐藏原生样式，用自定义样式) */
.pl-slider-thumb {
  position: absolute;
  top: 0px;
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.pl-slider-thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border: 2px solid var(--blue-500);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transition: box-shadow var(--transition-fast);
}

.pl-slider-thumb::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.15);
}

.pl-slider-thumb::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border: 2px solid var(--blue-500);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
}

.pl-thumb-left {
  left: 0;
}

.pl-thumb-right {
  right: 0;
}

/* 重置按钮 */
 .pl-filter-reset {
   display: block;
   width: 100%;
   padding: 10px 0;
   font-size: 13px;
   font-weight: 500;
   color: var(--gray-700);
   background-color: var(--gray-100);
   border: 1px solid var(--gray-400);
   border-radius: 12px;
   cursor: pointer;
   transition: all var(--transition-fast);
   text-align: center;
   letter-spacing: 0.5px;
 }
 
 .pl-filter-reset:hover {
   color: var(--blue-500);
   border-color: var(--blue-500);
   background-color: #ebf4ff;
 }


/* ==========================================
   4. 右侧内容区
   ========================================== */

.pl-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}


/* --- 工具栏 --- */

.pl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--gray-50);
  margin-bottom: 16px;
  border-radius: 12px;
}

.pl-result-count {
  font-size: 13px;
  color: var(--gray-600);
  letter-spacing: 0.3px;
}

.pl-result-count strong {
  color: var(--blue-500);
  font-weight: 700;
}

.pl-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pl-sort-label {
  font-size: 13px;
  color: var(--gray-500);
}

.pl-sort-select {
  padding: 5px 10px;
  font-size: 13px;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  background-color: #ffffff;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.pl-sort-select:hover,
.pl-sort-select:focus {
  border-color: var(--blue-500);
}


/* --- 滚动懒加载 --- */

/* 哨兵进入视口即请求下一批（rootMargin 300px 提前预取）。
   本身不占视觉空间，仅作为观察目标。 */
.pl-lazy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  min-height: 1px;
}

.pl-lazy-sentinel {
  width: 100%;
  height: 1px;
}

.pl-lazy-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
  margin: 0;
  padding: 12px 0 32px;
  font-size: 13px;
  color: var(--gray-500);
}

.pl-lazy-status:empty {
  padding: 0;
  min-height: 0;
}

.pl-lazy-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: pl-lazy-spin 0.7s linear infinite;
}

@keyframes pl-lazy-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pl-lazy-spinner {
    animation-duration: 2s;
  }
}

.pl-lazy-done {
  color: var(--gray-400);
}

.pl-lazy-retry {
  padding: 8px 20px;
  font-size: 13px;
  color: var(--blue-500);
  background-color: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pl-lazy-retry:hover {
  border-color: var(--blue-500);
  background-color: var(--gray-50, #f9fafb);
}


/* ==========================================
   5. 底部对比浮条
   ========================================== */

.pl-compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 2px solid var(--blue-500);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  border-radius: 12px 12px 0 0;
}

.pl-compare-bar.pl-compare-bar-visible {
  transform: translateY(0);
}

.pl-compare-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

.pl-compare-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pl-compare-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--blue-500);
}

.pl-compare-bar-icon svg {
  width: 20px;
  height: 20px;
}

.pl-compare-bar-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  letter-spacing: 0.5px;
}

.pl-compare-bar-count {
  font-size: 13px;
  color: var(--gray-500);
}

.pl-compare-bar-count strong {
  color: var(--blue-500);
  font-weight: 700;
}

.pl-compare-bar-tags {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
}

.pl-compare-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue-500);
  background-color: #ebf4ff;
  border-radius: 12px;
  white-space: nowrap;
}

.pl-compare-tag-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0;
  transition: color var(--transition-fast);
}

.pl-compare-tag-remove:hover {
  color: #c62828;
}

.pl-compare-tag-remove svg {
  width: 10px;
  height: 10px;
}

.pl-compare-tag-thumb {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: var(--gray-100);
}

.pl-compare-tag-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
}

.pl-compare-bar-clear {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pl-compare-bar-clear:hover {
  color: #c62828;
  border-color: #c62828;
  background-color: #fff5f5;
}

.pl-compare-bar-btn {
  flex-shrink: 0;
  padding: 9px 28px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--blue-500);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  letter-spacing: 0.5px;
}

.pl-compare-bar-btn:hover {
  background-color: var(--blue-700);
}

.pl-compare-bar-cart-btn {
  background-color: #f59e0b;
}

.pl-compare-bar-cart-btn:hover {
  background-color: #d97706;
}

.pl-compare-bar-cart-btn.is-loading {
  opacity: 0.6;
  cursor: wait;
}



/* 产品参数对比弹窗 */
.pl-compare-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-compare-popup[hidden] {
  display: none;
}

.pl-compare-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.pl-compare-popup-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1450px, 94vw);
  max-height: 88vh;
  overflow: hidden;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.pl-compare-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.pl-compare-popup-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #333333;
}

.pl-compare-popup-heading .section-divider {
  width: 40px;
  height: 3px;
  margin-top: 8px;
  background-color: var(--blue-500);
  border-radius: 2px;
}

.pl-compare-popup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


.pl-compare-popup-close {
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--gray-500);
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.pl-compare-popup-close:hover {
  color: var(--gray-700);
  background: var(--gray-100);
}

.pl-compare-popup-body {
  min-height: 0;
  padding: 20px;
  overflow: auto;
}

html.pl-compare-popup-open,
html.pl-compare-popup-open body {
  overflow: hidden;
}
/* ==========================================
   6. 产品对比表格区域
   ========================================== */

.pl-compare-section {
  background-color: var(--gray-50);
  padding: 60px 0;
}

.pl-compare-section[hidden] {
  display: none;
}

.pl-compare-table-wrap {
  background-color: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow-x: auto;
}

.pl-compare-empty {
  padding: 60px 20px;
  text-align: center;
}

.pl-compare-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background-color: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: 50%;
  color: var(--gray-400);
}

.pl-compare-empty-icon svg {
  width: 32px;
  height: 32px;
}

.pl-compare-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.pl-compare-empty-desc {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

.pl-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 800px;
}

.pl-compare-table thead th {
  background-color: #ebf4ff;
  color: var(--gray-800);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: center;
  border-bottom: 2px solid var(--blue-500);
}

.pl-compare-table thead th:first-child {
  text-align: center;
  background-color: #dbe8f5;
  min-width: 100px;
}

.pl-compare-table thead th .pl-compare-thumb {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  margin: 0 auto 6px;
  background-color: var(--gray-100);
}

.pl-compare-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  color: var(--gray-700);
}

.pl-compare-table tbody td:first-child {
  text-align: center;
  font-weight: 600;
  color: var(--gray-800);
  background-color: var(--gray-50);
}

.pl-compare-table tbody tr:nth-child(even) td {
  background-color: #fafafa;
}

.pl-compare-table tbody tr:nth-child(even) td:first-child {
  background-color: #f5f5f5;
}

.pl-compare-table .pl-cmp-check {
  color: var(--blue-500);
  font-weight: 700;
  font-size: 15px;
}

.pl-compare-table .pl-cmp-cross {
  color: var(--gray-400);
}

.pl-compare-table .pl-cmp-diff {
  color: #e65100;
  font-weight: 600;
}

.pl-compare-table tbody td:not(:first-child) {
  border-left: 1px solid var(--gray-100);
}

.pl-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.pl-compare-table thead th,
.pl-compare-table tbody td {
  vertical-align: middle;
}

/* 参数列吸顶：横向滚动时始终可见 */
.pl-compare-table thead th:first-child,
.pl-compare-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06);
}

.pl-compare-table thead th:first-child {
  z-index: 3;
}

/* --- 对比区头部：标题（左）+ 仅显示差异开关（右）--- */
.pl-compare-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pl-compare-header .pl-compare-heading h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.5px;
}

.pl-compare-header .section-divider {
  width: 48px;
  height: 3px;
  margin-top: 12px;
  background-color: var(--blue-500);
  border-radius: 2px;
}

.pl-compare-header .pl-difference-toggle {
  margin-top: 0;
  margin-bottom: 4px;
}


/* 宽区容器：突破 container 165px 内边距，让图表/表格用更宽空间 */
.pl-section-wide-wrap {
  padding: 0 40px;
  max-width: 1600px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .pl-section-wide-wrap {
    padding: 0 20px;
  }
}

/* ==========================================
   8. 产品表格现有样式
   ========================================== */

/* -------- 表格容器 -------- */
.pl-table-wrap {
  background-color: #ffffff;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  position: relative;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 769px) {
  .pl-table-wrap {
    overflow: visible;
  }
}

.pl-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 1490px;
}

/* -------- 表头 -------- */
.pl-table thead th {
  background-color: #f8f9fa;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 14px 6px;
  border-bottom: 2px solid #2b6cb0;
  white-space: nowrap;
}
 
 .pl-table thead {
   position: sticky;
   top: var(--navbar-height, 64px);
   z-index: 20;
 }
 
 .pl-table thead th {
   position: sticky;
   top: var(--navbar-height, 64px);
   z-index: 21;
   background-color: #f8f9fa;
 }

/* -------- 列宽分配 -------- */
.pl-table .pl-col-param {
  font-size: 12px;
  color: #555;
  min-width: 100px;
}

.pl-col-thumb { width: 70px; }
.pl-col-sn     { width: 110px; }
.pl-col-spec   { width: 180px; }
.pl-col-tran   { width: 100px; }
.pl-col-temp   { width: 120px; }
.pl-col-dim    { width: 80px; }
.pl-col-thk    { width: 70px; }
.pl-col-coat   { width: 140px; }
.pl-col-mat    { width: 120px; }
.pl-col-del    { width: 60px; }
.pl-col-cmp    { width: 60px; }
.pl-col-price  { width: 90px; }
.pl-col-supply { width: 80px; }
.pl-col-buy    { width: 190px; }

/* -------- 表格主体行 -------- */
.pl-row-main {
  transition: background-color 0.15s ease;
}

.pl-row-main:hover {
  background-color: #f0f4ff;
}

.pl-table tbody td {
  padding: 12px 6px;
  font-size: 13px;
  color: #333;
  text-align: center;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

/* 缩略图列 */
.pl-col-thumb .pl-thumb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pl-col-thumb .pl-thumb-wrap img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  background-color: #f0f0f0;
}

 
 .pl-product-sku {
   display: block;
   max-width: 100%;
   overflow-wrap: anywhere;
   color: #333;
   font-size: 12px;
   font-weight: 600;
   line-height: 1.4;
 }
.pl-expand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #999;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

/* -------- 峰值透过率 -------- */
.pl-col-tran {
  font-weight: 600;
  color: #2e7d32 !important;
  font-size: 13px !important;
}

/* -------- 工作温度 -------- */
.pl-col-temp {
  font-size: 11px !important;
  color: #666 !important;
}

.pl-expand-icon svg {
  width: 12px;
  height: 12px;
}

.pl-expandable {
  cursor: pointer;
}

.pl-expandable.pl-expanded .pl-expand-icon {
  transform: rotate(90deg);
  color: #2b6cb0;
}

/* 可展开高亮 */
.pl-expandable.pl-expanded {
  background-color: #e8f0fe;
}

/* -------- 规格参数(左对齐) -------- */
.pl-col-spec {
  text-align: left !important;
  font-size: 12px;
  line-height: 1.6;
}

/* -------- 产品编号 -------- */
.pl-col-sn {
  font-weight: 600;
  color: #2b6cb0 !important;
  font-size: 12px !important;
}

/* -------- 价格 -------- */
.pl-col-price {
  font-weight: 700;
  color: #c62828 !important;
  font-size: 14px !important;
}

/* -------- 货期 -------- */
.pl-col-del {
  color: #2e7d32 !important;
  font-weight: 500;
}

/* -------- 对比复选框 -------- */
.pl-cmp-chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.pl-cmp-chk input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pl-cmp-mrk {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  transition: all 0.15s ease;
}

.pl-cmp-chk input:checked + .pl-cmp-mrk {
  background-color: #2b6cb0;
  border-color: #2b6cb0;
}

/* 勾号默认隐藏，选中时显示 */
.pl-cmp-mrk svg {
  visibility: hidden;
  width: 10px;
  height: 10px;
  display: block;
  margin: auto;
  color: #ffffff;
}

.pl-cmp-chk input:checked + .pl-cmp-mrk svg {
  visibility: visible;
}

/* -------- 购买按钮 -------- */
.pl-buy-btn {
  display: inline-block;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background-color: #2b6cb0;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.pl-buy-btn:hover {
  background-color: #1a4f8a;
}

/* -------- 供期状态徽标 -------- */
.pl-col-supply {
  text-align: center;
}

.pl-supply-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 10px;
  white-space: nowrap;
}

.pl-supply-in-stock {
  color: #2e7d32;
  background-color: #e8f5e9;
}

.pl-supply-consult {
  color: #b26a00;
  background-color: #fff3e0;
}

/* -------- 行内数量选择 + 加入购物车 -------- */
.pl-buy-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.pl-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5dbe3;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  flex: 0 0 auto;
}

.pl-qty-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: #f1f4f8;
  color: #33475b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.pl-qty-btn:hover {
  background: #e2e8f0;
}

.pl-qty-input {
  width: 34px;
  height: 22px;
  padding: 0;
  border: 0;
  border-left: 1px solid #e6eaf0;
  border-right: 1px solid #e6eaf0;
  text-align: center;
  font-size: 12px;
  -moz-appearance: textfield;
}

.pl-qty-input::-webkit-outer-spin-button,
.pl-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pl-add-cart-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 96px;
  min-height: 28px;
  padding: 5px 12px;
  border: 0;
  border-radius: 12px;
  background-color: #2b6cb0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pl-add-cart-btn:hover {
  background-color: #1a4f8a;
}

.pl-add-cart-btn.is-loading {
  opacity: 0.6;
  cursor: wait;
}

/* 请咨询按钮（中性灰色，区别于主按钮） */
.pl-buy-consult {
  background-color: #8a94a6;
}

.pl-buy-consult:hover {
  background-color: #6f7a8e;
}

/* Add-to-cart toast（与产品详情页一致） */
.pd-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 420px);
  padding: 13px 20px;
  border-radius: 6px;
  background: #2b6cb0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.pd-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.pd-toast__link {
  margin-left: auto;
  flex: none;
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

.pd-toast__link:hover {
  text-decoration: none;
}


/* ==========================================
   9. 展开详情行
   ========================================== */

.pl-detail-row {
  display: none;
}

.pl-detail-row.pl-detail-open {
  display: table-row;
}

.pl-detail-inner {
  display: flex;
  gap: 40px;
  padding: 24px 20px;
  background-color: #fafbff;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 12px;
  align-items: center;
}

/* 左侧: 产品图片 300px */
.pl-detail-img {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f0f0f0;
  border-radius: 12px;
}

.pl-lightbox-trigger {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.pl-lightbox-trigger:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: -3px;
}

.pl-detail-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 悬浮切换：曲线图等比完整显示在产品图框内（不拉伸） */
.pl-detail-img .pl-detail-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

@media (hover: hover) {
  .pl-detail-img .pl-lightbox-trigger:hover .pl-detail-curve {
    opacity: 1;
  }
}

html.pl-lightbox-open {
  overflow: hidden;
}

.pl-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pl-image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pl-image-lightbox-figure {
  position: relative;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  margin: 0;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.pl-image-lightbox.is-open .pl-image-lightbox-figure {
  transform: scale(1);
}

.pl-image-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 72px);
  max-height: calc(100vh - 72px);
  object-fit: contain;
}

.pl-image-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.88);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pl-image-lightbox-close:hover,
.pl-image-lightbox-close:focus-visible {
  background: #111827;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .pl-image-lightbox,
  .pl-image-lightbox-figure {
    transition: none;
  }
}

/* 右侧: 详细参数 */
.pl-detail-specs {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pl-detail-specs h4 {
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2b6cb0;
}

.pl-detail-table {
  width: 100%;
  border-collapse: collapse;
}

/* 多列布局：2列 */
.pl-detail-table tbody {
  display: block;
  column-count: 2;
  column-gap: 24px;
}

.pl-detail-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-bottom: 1px solid #eee;
  break-inside: avoid;
}

.pl-detail-table tbody tr:last-child {
  border-bottom: none;
}

.pl-detail-table tbody td {
  padding: 9px 10px;
  font-size: 13px;
  vertical-align: middle;
}

.pl-dt-label {
  width: 100px;
  font-weight: 600;
  color: #555;
  background-color: #f5f7fa;
}

.pl-dt-value {
  color: #1a1a2e;
}

/* 展开行文件下载 */
.pl-detail-downloads {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e6e9f0;
}

.pl-detail-downloads h4 {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #2b6cb0;
}

/* 展开行文件下载按钮 */
.pl-detail-dl-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pl-detail-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--blue-500);
  border: 1px solid var(--blue-500);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.pl-detail-dl-btn:hover {
  background-color: #1e40af;
  border-color: #1e40af;
}

.pl-detail-dl-btn.is-disabled {
  color: #9aa1ac;
  background-color: #eceef1;
  border-color: #d8dce2;
  cursor: not-allowed;
}

/* 展开行文件下载弹窗（多文件选择） */
.pl-dl-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-dl-popup[hidden] {
  display: none;
}

.pl-dl-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.pl-dl-popup-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(420px, 92vw);
  max-height: 80vh;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.pl-dl-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.pl-dl-popup-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #333333;
}

.pl-dl-popup-close {
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.pl-dl-popup-close:hover {
  color: var(--gray-700);
  background: var(--gray-100);
}

.pl-dl-popup-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.pl-dl-popup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pl-dl-popup-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  color: #333333;
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pl-dl-popup-item:hover {
  color: var(--blue-500);
  border-color: var(--blue-500);
  background-color: #ebf4ff;
}

.pl-dl-popup-name {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

html.pl-dl-popup-open,
html.pl-dl-popup-open body {
  overflow: hidden;
}


/* Dynamic product comparison */
.pl-table {
  table-layout: auto;
  width: 100%;
  min-width: 0;
}

.pl-table th,
.pl-table td {
  min-width: 0;
}

.pl-table .pl-col-thumb,
.pl-table .pl-col-compare {
  min-width: 72px;
}

.pl-table .pl-col-buy {
  min-width: 190px;
}

.pl-compare-message {
  margin: 0;
  color: #c4473a;
  font-size: 12px;
  white-space: nowrap;
}

.pl-compare-bar-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pl-compare-tag button,
.pl-compare-remove {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

.pl-compare-table thead th {
  position: relative;
  min-width: 150px;
}

.pl-compare-table thead th:first-child {
  min-width: 120px;
}

.pl-compare-table thead a {
  color: inherit;
  text-decoration: none;
}

.pl-compare-remove {
  position: absolute;
  right: 6px;
  top: 6px;
  color: var(--gray-500);
}

.pl-difference-toggle {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  gap: 7px;
  padding: 8px 16px;
  color: var(--gray-600);
  background-color: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  white-space: nowrap;
  user-select: none;
  transition: all var(--transition-fast);
}

.pl-difference-toggle:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.pl-difference-toggle[aria-pressed="true"] {
  color: #ffffff;
  background-color: var(--blue-500);
  border-color: var(--blue-500);
}

/* 参数对比弹窗内的「曲线对比」入口，与「仅看差异」同一按钮语汇。 */
.pl-compare-curve-btn {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  gap: 7px;
  padding: 8px 16px;
  color: var(--blue-500);
  background-color: #ffffff;
  border: 1px solid var(--blue-500);
  border-radius: 20px;
  white-space: nowrap;
  user-select: none;
  transition: all var(--transition-fast);
}

.pl-compare-curve-btn:hover {
  color: #ffffff;
  background-color: var(--blue-500);
}

/* --- 光谱曲线对比面板 --- */
.pl-curve-panel {
  margin-bottom: 28px;
  padding: 20px 22px 14px;
  background-color: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
}

.pl-curve-panel[hidden] {
  display: none;
}

.pl-curve-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pl-curve-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #333333;
}

.pl-curve-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 曲线类型切换（%T / OD）：分段控件外观，与「数据序列」胶囊按钮组视觉区分，
   避免两组切换按钮被误认成同一维度。 */
.pl-curve-types {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background-color: var(--gray-100, #f3f4f6);
  border-radius: 22px;
}

.pl-curve-types:empty {
  display: none;
}

.pl-curve-type-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  color: var(--gray-600);
  background-color: transparent;
  border: 0;
  border-radius: 20px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.pl-curve-type-btn:hover:not(:disabled):not(.is-active) {
  color: var(--blue-500);
  background-color: #ffffff;
}

.pl-curve-type-btn.is-active {
  color: #ffffff;
  background-color: var(--blue-500);
}

/* 该类型下所选产品无任何曲线 → 置灰不可点。 */
.pl-curve-type-btn:disabled {
  cursor: not-allowed;
  color: var(--gray-400, #9ca3af);
  background-color: transparent;
}

.pl-curve-series {
  display: inline-flex;
  gap: 6px;
}

.pl-curve-series-btn,
.pl-curve-reset,
.pl-curve-export {
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  color: var(--gray-600);
  background-color: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.pl-curve-series-btn:hover,
.pl-curve-reset:hover,
.pl-curve-export:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.pl-curve-series-btn.is-active {
  color: #ffffff;
  background-color: var(--blue-500);
  border-color: var(--blue-500);
}

.pl-curve-reset[hidden],
.pl-curve-export[hidden] {
}

.pl-curve-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--gray-500);
}

.pl-curve-chart {
  margin-top: 12px;
  min-height: 380px;
}

.pl-curve-chart .uplot,
.pl-curve-chart .u-wrap {
  max-width: 100%;
}
.pl-curve-image {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 12px auto 0;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
}

.pl-curve-image[hidden] {
  display: none;
}

.pl-curve-chart .u-legend {
  font-size: 12px;
  margin-top: 6px;
}

.pl-curve-status {
  margin: 8px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: var(--gray-500);
}

/* --- 产品曲线列 --- */
.pl-col-curve {
  width: 90px;
  text-align: center;
  vertical-align: middle;
}

.pl-curve-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  color: var(--gray-600);
  background-color: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.pl-curve-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

/* --- 产品曲线弹窗 --- */
.pl-curve-popup {
  position: fixed;
  inset: 0;
  /* 高于参数对比弹窗（1000）：曲线对比可从对比弹窗内嵌套打开。
     仍低于下载弹窗（1100）与图片灯箱（99999）。 */
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-curve-popup[hidden] {
  display: none;
}

.pl-curve-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.pl-curve-popup-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1450px, 94vw);
  max-height: 88vh;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.pl-curve-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.pl-curve-popup-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #333333;
}

.pl-curve-popup-close {
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.pl-curve-popup-close:hover {
  color: var(--gray-700);
  background: var(--gray-100);
}

.pl-curve-popup-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.pl-curve-popup-list {
  width: 280px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 10px;
  border-right: 1px solid var(--gray-200);
}

.pl-curve-popup-item {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  color: #333333;
  background-color: var(--gray-50);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.pl-curve-popup-item:hover:not(:disabled):not(.is-active) {
  color: var(--blue-500);
  border-color: var(--blue-500);
  background-color: #ebf4ff;
}

/* 选中态：品牌底色 + 白字，与 .pl-page-btn.active / .pl-curve-series-btn.is-active 一致 */
.pl-curve-popup-item.is-active {
  color: #ffffff;
  font-weight: 600;
  background-color: var(--blue-500);
  border-color: var(--blue-500);
}

.pl-curve-popup-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pl-curve-popup-name {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.pl-curve-popup-chart-panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 20px 22px 14px;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

html.pl-curve-popup-open,
html.pl-curve-popup-open body {
  overflow: hidden;
}

/* --- 缩略图悬浮曲线浮层 --- */
.pl-curve-hover {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 900;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.pl-curve-hover.is-show {
  opacity: 1;
  visibility: visible;
}

.pl-curve-hover-img {
  display: block;
  width: 420px;
  height: auto;
  background-color: #ffffff;
}


@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .pl-section-wide-wrap {
    max-width: 100%;
    padding: 0 20px;
  }

  .pl-content {
    contain: layout paint;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }

  .pl-main,
  .pl-table-wrap {
    contain: inline-size;
  }

  .dropdown-menu,
  .dropdown-container,
  .support-dropdown-content {
    max-width: calc(100vw - 40px);
  }

  /* 移动端不提供对比或曲线对比功能。 */
  .pl-compare-bar,
  .pl-compare-popup,
  .pl-compare-section {
    display: none !important;
  }

  .nh-floatbar__item[href*="/product-compare/"] {
    display: none;
  }

  .pl-table .pl-col-compare,
  .pl-table .pl-col-curve {
    display: none;
  }

  /* 移动端只保留下拉筛选：隐藏滑杆/区间筛选行 */
  .pl-filter-slider-row {
    display: none;
  }

  /* 移动端列表去掉产品属性列（thead: pl-col-pa_*，tbody: pl-col-param） */
  .pl-table th[class*="pl-col-pa_"],
  .pl-table .pl-col-param {
    display: none;
  }

  /* 移动端展开只显示参数表：隐藏左侧产品图片 */
  .pl-detail-img {
    display: none;
  }

  .pl-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .pl-curve-popup-body {
    flex-direction: column;
  }

  .pl-curve-popup-list {
    width: 100%;
    max-height: 30vh;
    border-right: 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .pl-curve-hover {
    display: none;
  }
}
/* 移动端主表只保留产品编号、产品名称、价格和购物车操作。 */
@media (max-width: 767px) {
  .pl-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .pl-toolbar-right {
    max-width: 100%;
  }

  .pl-sort-select {
    max-width: min(62vw, 230px);
  }

  .pl-table-wrap {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: auto;
  }

  .pl-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .pl-table .pl-col-param,
  .pl-table .pl-col-compare,
  .pl-table .pl-col-curve,
  .pl-table .pl-col-supply {
    display: none;
  }

  .pl-table .pl-col-thumb {
    width: 29%;
    min-width: 0;
  }

  .pl-table .pl-col-name {
    width: 35%;
    min-width: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .pl-table .pl-col-price {
    width: 16%;
    min-width: 0;
  }

  .pl-table .pl-col-buy {
    width: 20%;
    min-width: 0;
  }

  .pl-table thead th {
    padding: 11px 6px;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }

  .pl-table tbody td {
    padding: 11px 6px;
    font-size: 12px;
    line-height: 1.45;
  }

  .pl-table .pl-buy-wrap {
    display: block;
  }

  .pl-table .pl-qty {
    display: none;
  }

  .pl-table .pl-add-cart-btn,
  .pl-table .pl-buy-btn {
    display: inline-flex;
    width: 100%;
    min-height: 30px;
    padding: 5px 4px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  /* 展开详情在当前表格宽度内使用两列属性网格。 */
  .pl-detail-inner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 10px;
  }

  .pl-detail-specs {
    width: 100%;
  }

  .pl-detail-specs h4 {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .pl-detail-table {
    width: 100%;
    table-layout: fixed;
  }

  .pl-detail-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
  }

  .pl-detail-table tbody tr {
    display: table;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .pl-detail-table tbody td {
    padding: 7px 5px;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .pl-detail-table .pl-dt-label {
    width: 42%;
  }
  .pl-table thead .pl-col-name {
    font-size: 0;
  }

  .pl-table thead .pl-col-name::after {
    content: '产品名称';
    font-size: 12px;
  }
  /* 移动端表头参与正常文档流，避免吸顶后覆盖首条产品。 */
  .pl-table thead,
  .pl-table thead th {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }
}

/* 产品名称文本筛选 */
.pl-product-name-filter {
  display: flex;
  align-items: center;
  flex: 1 1 360px;
  min-width: 320px;
  max-width: 520px;
  gap: 12px;
  margin-left: auto;
  margin-bottom: 0;
}

.pl-product-name-filter .pl-filter-title {
  flex: 0 0 auto;
  margin-bottom: 0;
  white-space: nowrap;
}

.pl-product-name-filter__controls {
  display: flex;
  min-width: 0;
  gap: 8px;
  flex: 1;
}

.pl-product-name-filter__input {
  min-width: 0;
  flex: 1;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: #fff;
}

.pl-product-name-filter__input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.12);
}

.pl-product-name-filter__submit {
  height: 32px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--blue-500);
  cursor: pointer;
}

@media (max-width: 600px) {
  .pl-product-name-filter {
    display: block;
    flex-basis: 100%;
    min-width: 100%;
    max-width: none;
    margin-left: 0;
  }
  .pl-product-name-filter .pl-filter-title {
    display: block;
    margin-bottom: 8px;
  }
  .pl-product-name-filter__controls {
    width: 100%;
    max-width: none;
  }
}
