/* ============================================================
   ChemB2B - 商品中心页面样式 v3.0
   产品网格/列表视图 | 快速预览 | 高级筛选 | 对比系统
   ============================================================ */

/* ========== 高级筛选面板 ========== */
.advanced-filters {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all .35s ease;
}
.advanced-filters.collapsed { max-height: 0; margin-bottom: 0; opacity: 0; pointer-events: none; }
.advanced-filters .filters-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}
.advanced-filters .filters-title {
  font-size: .95rem; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.advanced-filters .filters-body {
  padding: 20px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.advanced-filters .filter-group { display: flex; flex-direction: column; gap: 6px; }
.advanced-filters .filter-group label {
  font-size: .8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: .5px;
}
.advanced-filters .filter-group input,
.advanced-filters .filter-group select {
  padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; transition: all var(--transition); outline: none; background: var(--white);
}
.advanced-filters .filter-group input:focus,
.advanced-filters .filter-group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(3,105,161,.08);
}
.advanced-filters .filters-footer {
  padding: 0 24px 20px; display: flex; gap: 10px;
}

/* ========== 工具栏 ========== */
.products-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  position: sticky; top: 72px; z-index: 50;
}
.products-toolbar .toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.products-toolbar .toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.products-toolbar .result-summary { font-size: .9rem; color: var(--text-secondary); }
.products-toolbar .result-summary strong { color: var(--primary); font-weight: 800; font-size: 1.05rem; }
.products-toolbar .toolbar-divider { width: 1px; height: 28px; background: var(--border); margin: 0 4px; }

/* 筛选标签 */
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 50px;
  background: var(--primary-bg); color: var(--primary);
  font-size: .82rem; font-weight: 600;
  border: 1px solid rgba(3,105,161,.15);
  animation: scaleIn .2s ease-out;
}
.filter-tag .filter-tag-remove {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,105,161,.15); font-size: .75rem; cursor: pointer;
  transition: all var(--transition); line-height: 1;
}
.filter-tag .filter-tag-remove:hover { background: var(--danger); color: #fff; }
.filter-tag-clear-all {
  padding: 6px 14px; border-radius: 50px; font-size: .82rem; font-weight: 600;
  color: var(--danger); background: var(--danger-bg);
  border: 1px solid rgba(239,68,68,.2); cursor: pointer;
  transition: all var(--transition);
}
.filter-tag-clear-all:hover { background: var(--danger); color: #fff; }

/* 视图切换按钮 */
.view-toggle { display: flex; background: var(--bg); border-radius: var(--radius-sm); padding: 3px; }
.view-toggle button {
  width: 38px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: transparent; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.1rem; transition: all var(--transition);
}
.view-toggle button.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }
.view-toggle button:hover:not(.active) { color: var(--text); }

/* 搜索建议下拉 */
.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-xl);
  border: 1px solid var(--border); z-index: 100; max-height: 320px; overflow-y: auto;
  display: none; margin-top: 4px;
}
.search-suggestions.show { display: block; animation: fadeIn .15s ease-out; }
.search-suggestions .suggest-item {
  padding: 12px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  transition: background var(--transition); border-bottom: 1px solid var(--border-light);
}
.search-suggestions .suggest-item:last-child { border-bottom: none; }
.search-suggestions .suggest-item:hover { background: var(--primary-bg); }
.search-suggestions .suggest-name { font-size: .9rem; font-weight: 600; flex: 1; }
.search-suggestions .suggest-cas { font-size: .78rem; color: var(--text-muted); font-family: "SF Mono", monospace; }
.search-suggestions .suggest-cat { font-size: .76rem; color: var(--text-muted); }

/* 搜索框包裹 */
.search-wrap { position: relative; flex: 1; }

/* ========== 产品卡片 (网格视图) ========== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.product-card-enhanced {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-light); transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative; cursor: pointer;
}
.product-card-enhanced:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.15);
  border-color: var(--primary);
}
.product-card-enhanced .pc-image {
  position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe, #cffafe);
}
.product-card-enhanced .pc-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
}
.product-card-enhanced:hover .pc-image img { transform: scale(1.06); }
.product-card-enhanced .pc-image .pc-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}
.product-card-enhanced .pc-image .pc-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
}
.product-card-enhanced .pc-image .pc-badge .badge-item {
  padding: 3px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700;
  display: inline-block; width: fit-content;
}
.product-card-enhanced .pc-image .pc-actions {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(8px); transition: all .3s ease;
}
.product-card-enhanced:hover .pc-image .pc-actions { opacity: 1; transform: translateX(0); }
.product-card-enhanced .pc-image .pc-action-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95); border: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-card-enhanced .pc-image .pc-action-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.product-card-enhanced .pc-image .pc-action-btn.fav-active { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.product-card-enhanced .pc-image .pc-action-btn.compare-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.product-card-enhanced .pc-image .pc-image-count {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  padding: 3px 8px; border-radius: 50px; background: rgba(0,0,0,.55); color: #fff;
  font-size: .7rem; font-weight: 600; backdrop-filter: blur(4px);
}
.product-card-enhanced .pc-body {
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px;
}
.product-card-enhanced .pc-supplier {
  display: flex; align-items: center; gap: 6px; margin-bottom: 2px;
}
.product-card-enhanced .pc-supplier .supplier-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700;
}
.product-card-enhanced .pc-supplier .supplier-name {
  font-size: .76rem; color: var(--text-secondary); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-enhanced .pc-supplier .supplier-verified {
  font-size: .7rem; color: var(--success);
}
.product-card-enhanced .pc-supplier .supplier-link {
  display: flex; align-items: center; gap: 4px; text-decoration: none;
  color: var(--text); transition: color var(--transition);
}
.product-card-enhanced .pc-supplier .supplier-link:hover { color: var(--primary); }
.product-card-enhanced .pc-supplier .supplier-link .supplier-name {
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px;
}

/* 认证标识 - 小号 */
.verify-badge-sm {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px 7px; border-radius: 10px;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #fff; font-size: .68rem; font-weight: 700;
  box-shadow: 0 1px 4px rgba(6,182,212,.3);
  white-space: nowrap; flex-shrink: 0;
}
.product-card-enhanced .pc-title {
  font-size: .93rem; font-weight: 700; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; min-height: 2.6em;
}
.product-card-enhanced .pc-specs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.product-card-enhanced .pc-spec {
  padding: 3px 8px; background: var(--bg); border-radius: 4px;
  font-size: .72rem; color: var(--text-secondary); font-weight: 500;
}
.product-card-enhanced .pc-price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
}
.product-card-enhanced .pc-price {
  font-size: 1.15rem; font-weight: 800; color: #dc2626;
}
.product-card-enhanced .pc-price .pc-unit {
  font-size: .7rem; font-weight: 400; color: var(--text-muted);
}
.product-card-enhanced .pc-price-trend {
  display: flex; align-items: center; gap: 3px; font-size: .75rem; font-weight: 700;
}
.product-card-enhanced .pc-price-trend.trend-up { color: #dc2626; }
.product-card-enhanced .pc-price-trend.trend-down { color: #16a34a; }
.product-card-enhanced .pc-price-trend.trend-stable { color: var(--text-muted); }
.product-card-enhanced .pc-meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.product-card-enhanced .pc-stock { display: flex; align-items: center; gap: 4px; font-size: .78rem; }
.product-card-enhanced .pc-stock .stock-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.product-card-enhanced .pc-stock .stock-dot.in-stock { background: var(--success); box-shadow: 0 0 6px rgba(16,185,129,.5); }
.product-card-enhanced .pc-stock .stock-dot.future { background: var(--warning); }
.product-card-enhanced .pc-stock .stock-dot.out { background: var(--text-muted); }
.product-card-enhanced .pc-views { font-size: .72rem; color: var(--text-muted); }
.product-card-enhanced .pc-footer {
  display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border-light);
}
.product-card-enhanced .pc-footer .btn { flex: 1; text-align: center; font-size: .82rem; padding: 8px 12px; }

/* ========== 产品行 (列表视图) ========== */
.product-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.product-row {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-light); transition: all .25s ease;
  display: flex; align-items: stretch; cursor: pointer;
}
.product-row:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.product-row .pr-image {
  width: 220px; min-height: 180px; flex-shrink: 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}
.product-row .pr-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-row:hover .pr-image img { transform: scale(1.05); }
.product-row .pr-image .pr-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.product-row .pr-body {
  flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.product-row .pr-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-row .pr-title { font-size: 1.05rem; font-weight: 700; flex: 1; }
.product-row .pr-cas { font-size: .78rem; color: var(--text-muted); font-family: "SF Mono", monospace; white-space: nowrap; }
.product-row .pr-specs { display: flex; gap: 10px; flex-wrap: wrap; }
.product-row .pr-spec {
  padding: 4px 10px; background: var(--bg); border-radius: 6px;
  font-size: .76rem; color: var(--text-secondary);
}
.product-row .pr-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.product-row .pr-price { font-size: 1.2rem; font-weight: 800; color: #dc2626; }
.product-row .pr-price .pr-unit { font-size: .72rem; font-weight: 400; color: var(--text-muted); }
.product-row .pr-supplier { font-size: .82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.product-row .pr-actions { display: flex; gap: 8px; margin-top: auto; }
.product-row .pr-actions .btn { font-size: .84rem; }
.product-row .pr-badges { display: flex; gap: 6px; }

/* ========== 快速查看模态框 ========== */
.quick-view-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.65);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease-out; padding: 20px;
}
.quick-view-modal {
  background: var(--white); border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl);
  width: 100%; max-width: 920px; max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column; animation: scaleIn .3s ease-out;
}
.quick-view-modal .qv-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}
.quick-view-modal .qv-header h3 { font-size: 1.1rem; font-weight: 700; }
.quick-view-modal .qv-close {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-muted);
  transition: all var(--transition);
}
.quick-view-modal .qv-close:hover { background: var(--danger); color: #fff; }
.quick-view-modal .qv-body {
  flex: 1; overflow-y: auto; padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.quick-view-modal .qv-gallery { display: flex; flex-direction: column; gap: 12px; }
.quick-view-modal .qv-main-image {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}
.quick-view-modal .qv-main-image img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-modal .qv-main-image .qv-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.quick-view-modal .qv-thumbs { display: flex; gap: 8px; }
.quick-view-modal .qv-thumb {
  width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; opacity: .5; transition: all var(--transition);
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}
.quick-view-modal .qv-thumb:hover { opacity: .8; }
.quick-view-modal .qv-thumb.active { border-color: var(--primary); opacity: 1; }
.quick-view-modal .qv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-modal .qv-info { display: flex; flex-direction: column; gap: 16px; }
.quick-view-modal .qv-product-name { font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.quick-view-modal .qv-cas-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: var(--bg); border-radius: 50px;
  font-size: .8rem; font-family: "SF Mono", monospace; color: var(--text-secondary);
}
.quick-view-modal .qv-price-area {
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
  border-radius: var(--radius); padding: 18px;
  border: 1px solid #fecaca;
}
.quick-view-modal .qv-price-area .qv-price-big {
  font-size: 1.8rem; font-weight: 900; color: #dc2626;
}
.quick-view-modal .qv-price-area .qv-price-unit {
  font-size: .85rem; font-weight: 500; color: var(--text-muted);
}
.quick-view-modal .qv-price-area .qv-trend {
  display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; margin-top: 6px;
}
.quick-view-modal .qv-specs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.quick-view-modal .qv-spec-item {
  display: flex; justify-content: space-between; padding: 10px 14px;
  background: var(--bg); border-radius: var(--radius-sm); font-size: .84rem;
}
.quick-view-modal .qv-spec-item .spec-label { color: var(--text-muted); }
.quick-view-modal .qv-spec-item .spec-value { font-weight: 600; }
.quick-view-modal .qv-footer {
  display: flex; gap: 12px; padding: 20px 28px;
  border-top: 1px solid var(--border-light); background: var(--bg-alt);
}
.quick-view-modal .qv-footer .btn { flex: 1; text-align: center; }

/* ========== 对比面板 ========== */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 3px solid var(--primary);
  box-shadow: 0 -8px 32px rgba(0,0,0,.12); z-index: 1500;
  padding: 16px 24px;
  display: flex; align-items: center; gap: 20px;
  transform: translateY(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.compare-bar.active { transform: translateY(0); }
.compare-bar .compare-hint { font-size: .88rem; color: var(--text-secondary); font-weight: 600; }
.compare-bar .compare-items { display: flex; gap: 10px; flex: 1; }
.compare-bar .compare-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--primary-bg); border-radius: var(--radius);
  font-size: .84rem; font-weight: 600; color: var(--primary);
  border: 1px solid rgba(3,105,161,.2);
}
.compare-bar .compare-chip .chip-remove {
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(3,105,161,.1); cursor: pointer; font-size: .75rem; transition: all var(--transition);
}
.compare-bar .compare-chip .chip-remove:hover { background: var(--danger); color: #fff; }
.compare-bar .compare-actions { display: flex; gap: 8px; flex-shrink: 0; }
.compare-outlet { height: 0; transition: height .35s ease; }

/* 对比模态 */
.compare-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.compare-table th {
  padding: 14px 18px; text-align: left; background: var(--bg-alt);
  font-weight: 700; color: var(--text-secondary); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 2px solid var(--border);
}
.compare-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border-light); vertical-align: top;
}
.compare-table .compare-img {
  width: 160px; height: 120px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}
.compare-table .compare-img img { width: 100%; height: 100%; object-fit: cover; }
.compare-table .compare-img .compare-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

/* ========== 骨架屏加载 ========== */
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; }
.skeleton-card { height: 420px; border-radius: var(--radius-lg); }

/* ========== 回到顶部 ========== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 1000;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary-gradient); color: #fff; border: none; cursor: pointer;
  box-shadow: var(--shadow-lg); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .advanced-filters .filters-body { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-view-modal .qv-body { grid-template-columns: 1fr; }
  .product-row .pr-image { width: 160px; min-height: 140px; }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-row { flex-direction: column; }
  .product-row .pr-image { width: 100%; height: 180px; }
  .advanced-filters .filters-body { grid-template-columns: 1fr; }
  .products-toolbar { position: static; }
  .compare-bar { flex-wrap: wrap; padding: 12px 16px; }
  .compare-bar .compare-items { order: -1; width: 100%; overflow-x: auto; }
  .quick-view-modal { max-width: 98vw; max-height: 95vh; }
  .quick-view-modal .qv-body { padding: 18px; gap: 18px; }
  .product-card-enhanced .pc-footer .btn { font-size: .76rem; padding: 7px 10px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card-enhanced .pc-image { height: 150px; }
  .product-card-enhanced .pc-body { padding: 12px 14px; }
  .product-card-enhanced .pc-title { font-size: .84rem; }
  .product-card-enhanced .pc-price { font-size: 1rem; }
  .products-toolbar { padding: 12px 14px; gap: 10px; }
  .products-toolbar .toolbar-left, .products-toolbar .toolbar-right { width: 100%; justify-content: space-between; }
}

/* ========== 热门搜索 ========== */
.hot-search-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.hot-search-tag {
  padding: 4px 12px; border-radius: 50px; background: var(--primary-bg);
  font-size: .78rem; font-weight: 500; color: var(--primary);
  transition: all var(--transition); white-space: nowrap;
}
.hot-search-tag:hover { background: var(--primary); color: #fff; }

/* ========== 详情页 ========== */
.detail-title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.detail-title-en { font-size: .9rem; color: var(--text-muted); margin-top: 4px; }
.detail-gallery { display: flex; flex-direction: column; }
.gallery-main {
  aspect-ratio: 16/10; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe, #cffafe);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-fallback { font-size: 5rem; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; background: var(--bg-alt); }
.gallery-thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
  border: 2px solid transparent; cursor: pointer; opacity: .5; transition: all var(--transition);
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}
.gallery-thumb:hover { opacity: .8; }
.gallery-thumb.active { border-color: var(--primary); opacity: 1; box-shadow: 0 0 0 3px rgba(3,105,161,.12); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-specs-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.spec-chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 16px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); min-width: 100px;
}
.spec-chip span { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: .3px; }
.spec-chip strong { font-size: .88rem; color: var(--text); }

.specs-table { display: flex; flex-direction: column; }
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  font-size: .88rem; transition: background var(--transition);
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--bg-alt); }
.spec-row .spec-label { color: var(--text-muted); font-weight: 500; }
.spec-row .spec-value { font-weight: 600; color: var(--text); text-align: right; max-width: 60%; }
.spec-row .monospace { font-family: "SF Mono", "Consolas", monospace; }

.price-trend-chart {
  height: 200px; background: linear-gradient(180deg, rgba(3,105,161,.03) 0%, rgba(6,182,212,.02) 100%);
  border-radius: var(--radius); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.price-trend-chart::after {
  content: '📈 价格走势图'; font-size: .9rem; color: var(--text-muted);
  opacity: .5;
}
.price-trend-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

.ai-predict-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.predict-card {
  text-align: center; padding: 20px 16px; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.predict-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.predict-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.predict-price { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.predict-trend { font-size: .84rem; font-weight: 700; }
.predict-trend.up { color: #dc2626; }
.predict-trend.down { color: #16a34a; }
.predict-trend.stable { color: var(--text-muted); }
.predict-confidence { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }

.supplier-info .supplier-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.supplier-info .ss-item {
  text-align: center; padding: 10px; background: var(--bg);
  border-radius: var(--radius-sm);
}
.supplier-info .ss-item strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.supplier-info .ss-item span { font-size: .72rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .ai-predict-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .spec-row .spec-value { text-align: left; max-width: 100%; }
}

/* 动画 */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
