@charset "UTF-8";

/* ============================================
   昇磁霍尔商城 - 分类/列表页专属样式
   适用范围: list.html / search.html（商品列表表格复用）
   设计参考: trae-v3/list.html
   品牌色: #16587E / 橙色: #EA580C / 边框: #E5E7EB
   ============================================ */

/* 容器与面包屑间距 */
#content-container { padding-top: 0; }
.list-breadcrumb { margin-bottom: 0; }

/* 当前分类标题（设计稿：left:361px, top:258px, w:85px, h:20px, color:rgba(51,51,51,1), font-size:14px, font-family:Roboto-bold, text-align:left） */
.list-cat-title {
    font-size: 14px;
    font-weight: 700;          /* Roboto-bold */
    color: #333;
    line-height: 20px;
    height: 20px;
    padding: 0;
    margin: 0 0 10px;
    font-family: "Roboto", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

/* 分类标题行：标题左 / 与设计稿一致 */
.list-cat-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 0 10px;
}
.list-cat-title-row .list-cat-title { padding: 0; }

/* ============================================
   筛选面板头部（标题 + 布局切换按钮）
   ============================================ */
.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 0;
}
.filter-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
}
.filter-layout-toggle {
    display: flex;
    gap: 2px;
    background: #F1F5F9;
    border-radius: 4px;
    padding: 2px;
}
.layout-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 12px;
    color: #64748B;
    background: transparent;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.15s;
    line-height: 1.4;
}
.layout-btn i { font-size: 11px; }
.layout-btn:hover { color: #334155; }
.layout-btn.is-active {
    background: #fff;
    color: #16587E;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ============================================
   筛选面板滚动模式（单行横向滑动 + 左右箭头）
   ============================================ */
.filter-cols-scroll-area {
    position: relative;
}
.filter-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.15s;
    color: #64748B;
    font-size: 12px;
    user-select: none;
    text-decoration: none !important;
}
.filter-scroll-arrow:hover {
    color: #16587E;
    border-color: #16587E;
    box-shadow: 0 2px 6px rgba(22,88,126,0.2);
}
.filter-scroll-left { left: 4px; }
.filter-scroll-right { right: 4px; }
/* 仅滚动模式下显示箭头 */
.filter-cols.is-scroll ~ .filter-scroll-arrow { display: flex; }

.filter-cols.is-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 8px 20px 12px;
    gap: 8px;
}
.filter-cols.is-scroll::-webkit-scrollbar { height: 4px; }
.filter-cols.is-scroll::-webkit-scrollbar-track { background: transparent; }
.filter-cols.is-scroll::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 2px; }
.filter-cols.is-scroll::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }
.filter-cols.is-scroll .filter-col {
    flex: 0 0 240px;
    min-width: 240px;
    height: 280px;
}

/* ============================================
   筛选面板多列布局
   ============================================ */
.filter-panel {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: none;
}
/* 多列 facet：固定宽属性框，一行最多五列，超出换行，框间距 8px */
.filter-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid #E5E7EB;
}
.filter-col {
    flex: 0 0 calc((100% - 32px) / 5);  /* 5 列：(5列 + 4*8px 间距) 恰好铺满 */
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    height: 250px;               /* 固定列高 70%（老大指示），比设计稿更紧凑 */
    display: flex;
    flex-direction: column;
}
.filter-col-title {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 8px;
}

/* 列内搜索框 — 极简风格对齐设计稿 */
.filter-col-search {
    position: relative;
    margin-bottom: 8px;
}
.filter-col-search-input {
    width: 100%;
    height: 28px;
    border: 1px solid #E5E7EB;
    padding: 0 24px 0 8px;
    font-size: 12px;
    border-radius: 3px;
    background: #FAFBFC;
    color: #475569;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}
.filter-col-search-input::placeholder { color: #CBD5E1; }
.filter-col-search-input:focus { border-color: #16587E; background: #fff; }
.filter-col-search .fa-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 11px;
    pointer-events: none;
}

/* 可滚动的选项列表 — 更紧凑 + 细滚动条；flex 填满固定列高剩余空间 */
.filter-col-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.filter-col-list::-webkit-scrollbar { width: 4px; }
.filter-col-list::-webkit-scrollbar-track { background: transparent; }
.filter-col-list::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 2px; }
.filter-col-list::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* 单个选项项 — 紧凑对齐 */
.filter-col-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: normal;
    color: #475569;
    cursor: pointer;
    line-height: 1.4;
    border-radius: 3px;
    transition: color 0.12s, background 0.12s;
}
.filter-col-item:hover { color: #16587E; background: #F1F5F9; }   /* 悬浮：品牌蓝字 + 极浅灰底，与设计稿一致 */
.filter-col-item input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #16587E;     /* 选中态：品牌蓝填充（设计稿一致） */
    flex-shrink: 0;
}
.filter-col-item-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.filter-col-item-count {
    color: #94A3B8;
    font-size: 11px;
    flex-shrink: 0;
    font-feature-settings: "tnum";
    min-width: 28px;
    text-align: right;
}
.filter-col-item input[type="checkbox"]:checked ~ .filter-col-item-count { color: #16587E; font-weight: 600; }
/* 选中态：仅 checkbox 变品牌蓝，整行不加底色，与设计稿一致（极简选择语言） */
.filter-col-item.is-hidden { display: none; }
/* count=0 选项：灰化禁用，hover 不亮 */
.filter-col-item.is-disabled { opacity: 0.35; cursor: not-allowed; }
.filter-col-item.is-disabled:hover { color: inherit; background: transparent; }
.filter-col-item input[type="checkbox"]:disabled { pointer-events: none; }

/* 已选标签 + 操作区：同一行（设计稿），flex-wrap 自动换行
   顺序：[应用筛选] [重置全部] [chips...] ......... [筛选结果：N条] */
.filter-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
}
.filter-tag-row,
#filterTagList {
    display: contents;          /* chips 容器穿透，子元素直接作为 .filter-tags 的 flex item 参与单行布局 */
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: #EFF6FF;          /* 浅色 chip：极浅蓝底（设计稿） */
    border: 1px solid #DBEAFE;    /* 浅蓝边框（设计稿） */
    color: #16587E;               /* 品牌蓝字（设计稿） */
    font-size: 12px;
    border-radius: 2px;
    text-decoration: none !important;
    line-height: 1.4;
}
.filter-tag .fa-close { font-size: 11px; opacity: 0.7; cursor: pointer; }
.filter-tag:hover { background: #DBEAFE; }
.filter-tag:hover .fa-close { opacity: 1; }

.filter-actions {
    display: contents;          /* actions 容器穿透：子元素（应用筛选/重置全部）直接作为 .filter-tags 的 flex item 参与单行布局 */
}

.filter-apply {
    background: #16587E !important;
    border-color: #16587E !important;
    color: #fff !important;
    /* 圆角与列表「加入购物车」(.btn-add-cart) 对齐：方角 0，覆盖 .btn 基类 6px */
    border-radius: 0 !important;
}
.filter-apply:hover { background: #114A6A !important; border-color: #114A6A !important; }
/* 重置全部：加深（之前 #94A3B8 太浅易被误认为不可点） */
.filter-reset {
    background: transparent !important;
    border: none !important;
    color: #475569 !important;        /* 加深到灰，字重 500 */
    text-decoration: none !important;
    padding: 4px 8px !important;
    font-size: 12px;
    font-weight: 500;
}
.filter-reset:hover { color: #1E293B !important; text-decoration: underline !important; }
.filter-result-count {
    font-size: 13px;
    color: #475569;
    margin-left: auto;          /* 推最右（设计稿：筛选结果始终在行末） */
    white-space: nowrap;
    flex: 0 0 auto;
}
.filter-result-count .count { color: #16587E; font-weight: 600; }

/* 筛选加载遮罩（阻止操作） */
.filter-panel { position: relative; }
.filter-loading-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    z-index: 20;
    cursor: progress;
}
.filter-panel.is-loading .filter-loading-overlay { display: flex; }
.filter-loading-overlay .spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #16587E;
    border-top-color: transparent;
    border-radius: 50%;
    animation: filter-spin 0.7s linear infinite;
}
@keyframes filter-spin { to { transform: rotate(360deg); } }

/* 搜索页 sort-toolbar 局部 AJAX：仅商品区(三区)加载态
   切换排序/货源时不整页刷新、不重绘 facet 与国产替代区，遮罩只覆盖 #searchGoodsArea */
#searchGoodsArea { position: relative; }
#searchGoodsArea.is-loading { pointer-events: none; }
#searchGoodsArea.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 5;
}
#searchGoodsArea.is-loading::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border: 2px solid #16587E;
    border-top-color: transparent;
    border-radius: 50%;
    animation: filter-spin 0.7s linear infinite;
    z-index: 6;
}

/* 分类/列表页 in_stock 局部 AJAX：仅商品区(.list-table-wrap)加载态，不整页刷新 */
.list-table-wrap { position: relative; }
.list-table-wrap.is-loading { pointer-events: none; }
.list-table-wrap.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 5;
}
.list-table-wrap.is-loading::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border: 2px solid #16587E;
    border-top-color: transparent;
    border-radius: 50%;
    animation: filter-spin 0.7s linear infinite;
    z-index: 6;
}

/* ============================================
   排序工具栏 + 商品类型（设计稿：同一行）
   左 = 3 个排序 tab；右 = 3 个商品类型复选框
   ============================================ */
.sort-toolbar {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 0;
    display: flex;
    align-items: stretch;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: none;
}
.sort-btns { display: flex; }
.sort-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 22px;
    font-size: 13px;
    color: #475569;
    background: #EDF4F9;
    border: none;
    border-right: 1px solid #E5E7EB;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    text-decoration: none !important;
    line-height: 1;
}
.sort-btn:last-of-type { border-right: none; }
.sort-btn:hover { color: #16587E; }
.sort-btn.active { color: #fff; font-weight: 600; background: #16587E; }
.sort-btn .arrow { margin-left: 4px; font-size: 10px; color: #94A3B8; }
.sort-btn.active .arrow { color: #fff; }
/* FA 排序图标字形偏上/偏下，单独微调使其与文字垂直居中（升序箭头偏上→下移，降序箭头偏下→上移） */
.sort-btn .arrow.fa-sort-up { position: relative; top: 1px; }
.sort-btn .arrow.fa-sort-down { position: relative; top: -1px; }

/* 商品类型复选框区：右半边，浅边框分隔 */
.origin-checks {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
    border-left: 1px solid #E5E7EB;
}
/* 搜索页暂不显示「商品类型(in_stock)」筛选：仅作用于 search 页(list_sort 专属)，列表/分类页不受影响。恢复显示删此规则即可 */
.origin-checks--hidden { display: none !important; }
.origin-check {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    font-weight: normal;
    line-height: 1;
    user-select: none;
}
.origin-check input[type="checkbox"] {
    margin: 0 6px 0 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #16587E;       /* 勾选色：品牌蓝 */
    flex-shrink: 0;
}
.origin-check:hover { color: #16587E; }
.origin-check:has(input[type="checkbox"]:checked) { color: #16587E; font-weight: 500; }

/* 简洁模式：隐藏参数描述列（view-mode 已删除，但兼容旧 view-compact body class） */
body.view-compact .list-table .td-params,
body.view-compact .list-table thead th.td-params {
    display: none;
}
body.view-compact .list-table .td-product { width: 38%; }
body.view-compact .list-table .td-price { width: 14%; }
body.view-compact .list-table .td-stock-delivery { width: 19%; }
body.view-compact .list-table .td-qty { width: 15%; }
body.view-compact .list-table .td-action { width: 14%; }

/* ============================================
   商品列表表格 — 卡片化 + 蓝色表头对齐设计稿
   ============================================ */
.list-table-wrap {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: none;
}
.list-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.list-table thead th {
    background: #F5F7FA;
    padding: 12px 18px;
    font-size: 13px;
    color: #333333;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}
.list-table tbody td {
    padding: 15px 15px;
    border-bottom: 1px solid #F0F0F0;
    vertical-align: top;
}
.list-table tbody tr {
    transition: background .15s, box-shadow .15s;
    position: relative;
}
.list-table tbody tr:hover {
    background: #F5F9FF;
    box-shadow: inset 0 0 0 1px #D6E4F0;
}
.list-table tbody tr:last-child td { border-bottom: none; }

/* 设计稿真实列宽像素比例（商品信息30/参数描述18/阶梯价11/库存交期16/数量12/操作13） */
.list-table .td-product         { width: 30.5%; }
.list-table .td-params          { width: 17.8%; }
.list-table .td-price           { width: 11.4%; }
.list-table .td-stock-delivery  { width: 15.8%; }
.list-table .td-qty             { width: 12.4%; }
.list-table .td-action          { width: 12.1%; }

.list-prod { display: flex; gap: 14px; align-items: flex-start; }
.list-prod-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E9EDF2;
    background: #fff;
    overflow: hidden;
    border-radius: 2px;
}
.list-prod-img img { max-width: 60px; max-height: 60px; display: block; }
.list-prod-img-link { display: inline-flex; }
.list-prod-info { flex: 1; min-width: 0; padding-top: 0; }
.list-prod-title {
    font-size: 12px;
    color: #333333;
    margin: 0 0 6px 0;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-prod-title a { color: #333333; }
.list-prod-title a:hover { text-decoration: underline; }
.list-prod-meta {
    font-size: 12px;
    color: #666666;
    line-height: 1.55;
}
.list-prod-meta span {
    display: block;
    margin-right: 0;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-prod-links { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 商品标签：业务标签 + 营销标签（来自品牌类型配置） */
.list-prod-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 4px;
    transition: all .15s;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}
.list-prod-btn i { margin-right: 4px; font-size: 12px; }
.list-prod-btn-ds {
    color: #16587E;
    background: #F5F9FB;
    border-color: #E1ECF3;
}
.list-prod-btn-ds:hover {
    color: #114A6A;
    background: #E1ECF3;
    text-decoration: none;
}
.list-prod-btn-svc {
    color: #333333;
    background: #F5EFE1;
    border-color: #ECE3CC;
}
.list-prod-btn-svc:hover {
    color: #16587E;
    background: #ECE3CC;
    text-decoration: none;
}

.list-stock { font-size: 13px; color: #475569; }
.list-stock .stock-num { color: #16A34A; font-weight: 600; font-size: 18px; line-height: 1.2; }
.list-stock .stock-moq { color: #94A3B8; font-size: 12px; margin: 2px 0 0; }

/* 参数描述列 — 文字 #666666（按用户规范） */
.list-params { font-size: 12px; line-height: 1.85; padding-top: 0; }
.list-params .param-row {
    margin: 0 0 2px;
    color: #666666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
}
/* 首行字顶精确对齐缩略图顶（y=760）：负 margin 补偿 line-box 半行 */
.list-params .param-row:first-child { margin-top: -5px; }
.list-price .price-row:first-child { margin-top: -3px; }

.list-params .param-name { color: #999999; font-weight: normal; }
.list-params .param-val  { color: #666666; font-weight: normal; }

/* 阶梯价列 — 数量/价格两列网格（左对齐），价格不加粗，颜色 #333333
   5 档完全等大、紧凑、无分隔线（对齐设计稿） */
.list-price {
    font-size: 13px;
    padding: 0 10px;
    line-height: 1.4;
    color: #333333;
}
.list-price .price-row {
    margin: 0 0 2px;
    color: #333333;
    line-height: 1.4;
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 14px;
    align-items: baseline;
    justify-content: start;
}
.list-price .price-row.first {
    /* 与其他档等大等距，无下边框 */
    margin-bottom: 2px;
    padding-bottom: 0;
    border-bottom: none;
}
.list-price .price-row .qty {
    color: #94A3B8;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    text-align: left;
}
.list-price .price-row.first .qty { font-size: 12px; }  /* 首档 qty 与其他档一致 */
.list-price .price-row .price {
    color: #333333;
    font-weight: 400;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}
.list-price .price-row.first .price {
    /* 首档与其他档同号同色，无视觉差异 */
    font-size: 13px;
    color: #333333;
    font-weight: 400;
    line-height: inherit;
}
.list-price .price-row .price .currency {
    color: #B0B0B0;
    font-size: 12px;
    font-weight: 400;
    margin: 0 2px;
}
.list-price .price-row.first .price .currency { font-size: 12px; }
.list-price .price-row .price .num {
    color: #333333;
    font-weight: 400;
    font-size: 13px;  /* 覆盖 common.css 的 16px; 设计稿字符实际高 12px */
}

/* 询价空状态：阶梯价/合计 都没有价格时显示，避免 ¥0.00 误导 */
.list-price .price-row.price-inquiry {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.list-price .price-row.price-inquiry .inquiry-label {
    font-size: 14px;
    font-weight: 600;
    color: #16587E;
}
.list-price .price-row.price-inquiry .inquiry-hint {
    font-size: 12px;
    color: #94A3B8;
}
.list-qty .qty-total .price.price-na {
    color: #94A3B8;
    font-weight: 500;
    font-size: 14px;
}

/* 库存+交期合并列 — 文字 #666666（按用户规范，含状态badge/库存数/起订量/增量） */
.list-stock-delivery {
    font-size: 13px;
    color: #666666;
    padding-left: 10px;
    padding-top: 0;
    line-height: 1.4;
}
/* 状态badge：现货浅蓝、采购中浅红 */
.list-stock-delivery .status-badge {
    display: inline-block;
    background: #EDF4F9;
    color: #16587E;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 12px;
    border-radius: 12px;
    margin: -7px 0 8px;
    line-height: 1.4;
    max-width: 100%;
    overflow: visible;
    position: relative;
}
.list-stock-delivery.status-off .status-badge {
    background: #FEF3F2;
    color: #B42318;
}
/* 三行label + value（库存/起订量/增量），不再用大字号stock-num */
.list-stock-delivery .stock-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 60%;
}
.list-stock-delivery .stock-line .label {
    color: #94A3B8;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.85;
}
.list-stock-delivery .stock-line .value {
    color: #333333;
    font-size: 12px;  /* 设计稿字符高 11-12px; 与阶梯价保持同号同重 */
    font-weight: 400;
    font-feature-settings: "tnum";
    line-height: 1.85;
    text-align: right;
    margin-left: auto;
}

.list-delivery { font-size: 13px; color: #666666; }
.list-delivery .status { color: #666666; font-weight: 400; }
.list-delivery .time { color: #666666; font-size: 12px; margin: 2px 0 0; }

/* 数量加减器（列表行作用域） */
.list-qty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 0; }
.list-qty .quantity-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}
.list-qty .quantity-box button {
    width: 32px;
    height: 32px;
    background: #F5F7FA;
    border: none;
    font-size: 16px;
    color: #4A5568;
    cursor: pointer;
    transition: background .15s;
    line-height: 1;
}
.list-qty .quantity-box button:hover { background: #E2E8F0; }
.list-qty .quantity-box input {
    width: 64px;
    height: 32px;
    border: none;
    border-left: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
    text-align: center;
    font-size: 14px;
    color: #1A202C;
}

/* 合计金额（数量框下方） */
.list-qty .qty-total {
    margin: 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.2;
}
.list-qty .qty-total .price { font-weight: 600; }
.list-qty .qty-total .price .num { color: #EA580C; font-size: 16px; }

/* 操作按钮组 — 加入购物车(实心蓝) + 直接购买(描边蓝)，对齐墨刀设计稿 */
.list-action { display: flex; flex-direction: column; gap: 6px; padding-top: 0; }
.list-action button,
.list-action a.btn-buy-now {
    width: 90px;
    align-self: flex-start;
    height: 30px;
    min-height: 30px;
    padding: 0 15px;
    white-space: nowrap;
    font-size: 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    transition: all .15s;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.list-action button i,
.list-action a.btn-buy-now i { margin-left: 5px; font-size: 11px; }
.list-action .btn-add-cart {
    background: #16587E;
    color: #fff;
    border: 1px solid #16587E;
}
.list-action .btn-add-cart i, .list-action a.btn-buy-now i { display: none; }
.list-action .btn-add-cart:hover { background: #114A6A; border-color: #114A6A; }
.list-action .btn-buy-now {
    background: #fff;
    color: #16587E;
    border: 1px solid #16587E;
}
.list-action .btn-buy-now:hover { background: #EBF3FC; }

/* 应用筛选按钮：高度对齐操作按钮组（30px），覆盖 .btn-small 默认的 25px */
.btn.filter-apply { height: 30px !important; min-height: 30px !important; line-height: 28px !important; padding: 0 15px !important; }

/* 操作列按钮组 hover 微交互 — 行级悬停时按钮微微上浮 */
.list-table tbody tr:hover .list-action button,
.list-table tbody tr:hover .list-action a.btn-buy-now {
    transform: translateY(-1px);
    transition: transform .15s, background .15s, border-color .15s;
}

/* 移除已不再使用的旧咨询客服按钮样式（保留注释，量 < 100 字节） */
// .list-action-consult 已废弃 — 设计稿采用「加入购物车 + 直接购买」双按钮

/* 分页 */
.pager { text-align: center; }
.pager .pagination { margin: 0; }

/* 操作列 — 咨询客服按钮（设计稿风格：实心蓝、舒展） */
.list-action-consult {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: #FFFFFF;
    background: #16587E;
    border: 1px solid #16587E;
    border-radius: 4px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.list-action-consult i { margin-right: 6px; font-size: 12px; }
.list-action-consult:hover { background: #114A6A; border-color: #114A6A; }
/* .list-action-consult 已废弃 — 设计稿采用「加入购物车 + 直接购买」双按钮（CSS 保留备用） */

/* 搜索三区（自营/国产/进口） */
/* ============================================
   搜索结果区域标题栏（对齐设计稿 search.css）
   彩色背景 + 白字 + badge 计数
   ============================================ */
.search-zone {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}
.search-zone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 0;
}
.search-zone-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-zone-title {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
}
.search-zone-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 10px;
    background: #FFF1EB;
    font-size: 11px;
    border-radius: 10px;
    font-weight: 400;
    border: 1px solid #FBCFA8;
    color: #D4380D;
}
/* 营销标签三色循环（zone-badge-0/1/2，三区与国产化替代区共用） */
.zone-badge-0 { color:#D4380D; background:#FFF1EB; border-color:#FBCFA8; }
.zone-badge-1 { color:#16587E; background:#EBF3FC; border-color:#BFE0F3; }
.zone-badge-2 { color:#0D9488; background:#E6F7F6; border-color:#B7E3E0; }
.search-zone-count {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

/* 三区标题：纯白底 */
.search-zone.zone-self     .search-zone-header { }
.search-zone.zone-domestic .search-zone-header { }
.search-zone.zone-imported .search-zone-header { }

.search-zone .list-table-wrap {
    border: none;
    border-radius: 0;
    border-top: 1px solid #E5E7EB;
}
.search-zone .zone-empty {
    border: none;
    border-radius: 0;
}
.search-zone .list-table thead th {
    /* 保持表头蓝色，略微降低以区分分区 */
}

/* 空组占位 */
.zone-empty {
    padding: 22px 16px;
    margin: 0;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 4px 4px;
    color: #94A3B8;
    font-size: 13px;
    text-align: center;
}

/* 国产化替代区：橙色主题（对齐设计稿） */
.search-alt-zone {
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
.search-alt-zone .search-zone-header {
    background: #FFF4E2;
    border-radius: 0;
    padding: 10px 16px;
}
.search-alt-zone .search-zone-title {
    color: #EA580C;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline-block;
}
.search-alt-zone .search-zone-count {
    color: #999;
}
.search-alt-zone .list-table-wrap {
    border: none;
    border-radius: 0;
}
.search-alt-zone .zone-empty {
    border: none;
    border-top: 1px solid #E5E7EB;
    border-radius: 0;
    background: #F8FAFC;
}

/* 响应式适配（仅真窄屏 mobile ≤ 767px 才切纵向） */
@media (max-width: 1024px) {
    .filter-col { flex: 0 0 calc((100% - 16px) / 3); }  /* 平板三列 */
}
@media (max-width: 767px) {
    .filter-col { flex: 0 0 calc((100% - 8px) / 2); }   /* 手机两列 */
    .filter-col-list { max-height: 120px; }
    .list-table-wrap { overflow-x: auto; border-radius: 0; box-shadow: none; border-left: none; border-right: none; }
    .list-table { min-width: 920px; }
    .sort-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; border-radius: 0; box-shadow: none; border-left: none; border-right: none; }
    .filter-tags { flex-direction: column; align-items: flex-start; }
    .filter-result-count { margin-left: 0; }
    .origin-checks { gap: 10px; padding: 0 12px; }
    .sort-btn { padding: 10px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
    .filter-col { flex: 0 0 100%; }  /* 超窄屏单列 */
}

/* 平板 768-1024px：适度收紧 */
@media (max-width: 1024px) {
    .filter-col { padding: 10px 8px; }
    .filter-col-title { font-size: 13px; }
    .list-table thead th { padding: 10px 12px; font-size: 12px; }
    .list-table tbody td { padding: 10px 8px; }
    .list-prod-img { width: 52px; height: 52px; }
    .list-prod-img img { max-width: 48px; max-height: 48px; }
}

/* ============================================
   搜索页行式 facet（对齐墨刀设计稿纵向单列）
   仅供 search.html 使用；list.html 仍走 .filter-cols/.filter-col 多列卡片
   ============================================ */
.search-facet-panel {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: none;
    position: relative;
}
.search-facet-list { padding: 0; }

/* 单行 facet：行高 38px（设计稿紧凑风格） */
.search-facet-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
    padding: 0;
    transition: background 0.12s;
}
.search-facet-row:last-of-type { border-bottom: none; }
.search-facet-row.is-open { background: #FAFBFC; }
.search-facet-row.is-open .search-facet-options-search-input { display: block; }

.search-facet-head {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 16px;
    gap: 12px;
}
.search-facet-label {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    width: 80px;
}
.search-facet-current {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.search-facet-none {
    font-size: 13px;
    color: #94A3B8;
    font-weight: 400;
}
.search-facet-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    color: #16587E;
    font-size: 12px;
    border-radius: 2px;
    text-decoration: none !important;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.12s;
}
.search-facet-chip:hover { background: #DBEAFE; }
.search-facet-chip .fa-times {
    font-size: 11px;
    opacity: 0.6;
    margin-left: 2px;
}
.search-facet-chip:hover .fa-times { opacity: 1; }
.search-facet-expand {
    flex: 0 0 auto;
    font-size: 12px;
    color: #475569;
    text-decoration: none !important;
    padding: 4px 10px;
    border-radius: 3px;
    transition: color 0.12s, background 0.12s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.search-facet-expand:hover { color: #16587E; background: #F1F5F9; }
.search-facet-expand .fa-angle-down {
    transition: transform 0.2s;
    font-size: 11px;
}
.search-facet-row.is-open .search-facet-expand .fa-angle-down { transform: rotate(180deg); }

/* 展开后的选项列表：默认折叠，.is-open 时显示 */
.search-facet-options {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #FAFBFC;
    border-top: 1px solid #E5E7EB;
}
.search-facet-row.is-open .search-facet-options { max-height: 600px; }

/* 行内搜索框（展开后出现） */
.search-facet-options-search {
    position: relative;
    padding: 10px 16px 6px;
    display: none;
}
.search-facet-row.is-open .search-facet-options-search { display: block; }
.search-facet-options-search-input {
    width: 100%;
    height: 28px;
    border: 1px solid #E5E7EB;
    padding: 0 24px 0 8px;
    font-size: 12px;
    border-radius: 3px;
    background: #fff;
    color: #475569;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.search-facet-options-search-input:focus { border-color: #16587E; }
.search-facet-options-search-input::placeholder { color: #CBD5E1; }
.search-facet-options-search .fa-search {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 11px;
    pointer-events: none;
}

/* 选项列表：多列 checkbox 网格 */
.search-facet-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 4px 16px 12px;
}
.search-facet-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    border-radius: 3px;
    transition: color 0.12s, background 0.12s;
    line-height: 1.4;
}
.search-facet-option:hover { color: #16587E; background: #F1F5F9; }
.search-facet-option input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #16587E;
    flex-shrink: 0;
}
.search-facet-option-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}
.search-facet-option-count {
    color: #94A3B8;
    font-size: 11px;
    flex-shrink: 0;
    font-feature-settings: "tnum";
}
.search-facet-option input[type="checkbox"]:checked ~ .search-facet-option-count { color: #16587E; font-weight: 600; }
.search-facet-option.is-hidden { display: none; }
.search-facet-option:has(input[type="checkbox"]:checked) { color: #16587E; font-weight: 500; }

/* 底部操作区（应用筛选 / 重置 / 结果） */
.search-facet-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #E5E7EB;
}
.search-facet-actions .filter-apply {
    background: #16587E !important;
    border-color: #16587E !important;
    color: #fff !important;
    /* 圆角与列表「加入购物车」(.btn-add-cart) 对齐：方角 0，覆盖 .btn 基类 6px */
    border-radius: 0 !important;
}
.search-facet-actions .filter-apply:hover { background: #114A6A !important; border-color: #114A6A !important; }
.search-facet-actions .filter-reset {
    background: transparent !important;
    border: none !important;
    color: #475569 !important;
    text-decoration: none !important;
    padding: 0 15px !important;
    height: 30px;
    line-height: 28px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
}
.search-facet-actions .filter-reset:hover { color: #1E293B !important; text-decoration: underline !important; }
.search-facet-actions .filter-result-count {
    font-size: 13px;
    color: #475569;
    margin-left: auto;
    white-space: nowrap;
    flex: 0 0 auto;
}
.search-facet-actions .filter-result-count .count { color: #16587E; font-weight: 600; }

/* 响应式：窄屏标签自适应 */
@media (max-width: 767px) {
    .search-facet-head { padding: 6px 10px; gap: 8px; }
    .search-facet-label { width: auto; min-width: 60px; }
    .search-facet-options-list { gap: 4px 10px; padding: 4px 10px 10px; }
    .search-facet-option { padding: 3px 6px; font-size: 11px; }
    .search-facet-option-title { max-width: 120px; }
    .search-facet-actions { padding: 10px; flex-wrap: wrap; }
}

/* ============================================
   搜索页 filter-quick 快捷筛选栏（对齐设计稿）
   ============================================ */
.filter-quick {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.filter-quick-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #EDEEF1;
}
.filter-quick-row:last-child {
    border-bottom: none;
}
.filter-quick-label {
    width: 60px;
    font-size: 13px;
    color: #94A3B8;
    flex-shrink: 0;
}
.filter-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.filter-quick-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #475569;
    text-decoration: none !important;
    transition: all .12s;
    line-height: 1.4;
    box-sizing: border-box;
}
.filter-quick-btn:hover {
    border-color: #16587e;
    color: #16587e;
    background: #EBF3FC;
}
.filter-quick-btn.active {
    border-color: #16587e;
    color: #16587e;
    background: #EBF3FC;
}
.filter-quick-btn .check {
    display: none;
}
/* 选中态：右下角蓝色直角三角形角标 + 白色对号（纯 CSS clip-path 绘制，不依赖图标字体） */
.filter-quick-btn.active .check {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    overflow: hidden;
    pointer-events: none;
}
.filter-quick-btn.active .check::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    background: #16587e;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.filter-quick-btn.active .check::after {
    content: '\2713';
    position: absolute;
    right: 3px;
    bottom: -2px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}
.filter-quick-count {
    margin-left: 4px;
    padding: 0 4px;
    font-size: 11px;
    color: #94A3B8;
    background: #F1F5F9;
    border-radius: 8px;
    line-height: 14px;
    min-width: 14px;
    text-align: center;
}
.filter-quick-btn.active .filter-quick-count {
    color: #16587e;
    background: #fff;
}

@media (max-width: 767px) {
    .filter-quick { padding: 10px 14px; }
    .filter-quick-label { width: 50px; font-size: 12px; }
    .filter-quick-btn { padding: 3px 8px; font-size: 11px; }
}

/* ============================================
   分区分页器（搜索页三区各自独立）
   ============================================ */
.zone-pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.zone-pager .pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.zone-pager .pagination li {
    display: inline-block;
}
.zone-pager .pagination a,
.zone-pager .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    border: 1px solid #E5E7EB;
    border-radius: 3px;
    background: #fff;
}
.zone-pager .pagination a:hover {
    border-color: #16587e;
    color: #16587e;
}
.zone-pager .pagination li.active span,
.zone-pager .pagination li.active a {
    background: #fff;
    border-color: #16587e;
    color: #16587e;
    font-weight: 500;
}
.zone-pager .pagination li.disabled span {
    color: #CBD5E1;
    background: #F8FAFC;
    border-color: #E5E7EB;
}

/* ============================================
   默认模板筛选属性（顶部快捷筛选标签）
   ============================================ */
/* 货源标签：自营绿色标识 */
.source-tag-line {
    padding-left: 10px;
    display: block;
    overflow: visible;
    white-space: normal;
}
/* 来源标签：覆盖 .list-stock-delivery .stock-line 的 flex/nowrap/overflow/width 裁切 */
.list-stock-delivery .stock-line.source-tag-line {
    display: block;
    width: 100%;
    padding-left: 10px;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    justify-content: flex-start;
}
.source-tag {
    color: #28a745;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.85;
}
