/* =========================================================
   产品中心 · 无图版（A+C 组合）
   A 紧凑表格列表 + C 左右分栏详情
   复用 style.css 全局 token，新增版式专用 token
   ========================================================= */

/* ---------- 版式 token（只追加，不覆盖） ---------- */
:root {
  --shop-td-h:        72px;
  --shop-th-h:        44px;
  --shop-row-gap:     1px;
  --shop-hairline:    rgba(0,229,255,.07);
  --shop-hairline-2:  rgba(0,229,255,.12);
  --shop-val:         #D6E1F0;
  --shop-muted2:      #8695AD;
  --shop-group-h:     52px;
  --shop-pill-gap:    8px;
  --shop-kpi-bg:      rgba(0,229,255,.05);
  --shop-kpi-bd:      rgba(0,229,255,.12);
  --font-mono:        "SF Mono","Cascadia Code","Consolas","Courier New",monospace;
}

/* ---------- Hero ---------- */
.shop-hero { padding: 64px 0 32px; position: relative; }
.shop-hero h1 { font-size: var(--fs-3xl); color: var(--t-primary); margin-bottom: 10px; }
.shop-hero .accent { color: var(--c-primary); }
.shop-hero p { color: var(--t-tertiary); font-size: var(--fs-lg); max-width: 720px; }
.shop-hero-stats { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.shop-hero-stats .ss .num { font-size: var(--fs-2xl); font-weight: 700; color: var(--t-primary); }
.shop-hero-stats .ss .num b { color: var(--c-primary); }
.shop-hero-stats .ss .lbl { font-size: var(--fs-xs); color: var(--t-muted); letter-spacing: 1px; }

/* ---------- 顶部分类条 ---------- */
.shop-cat-bar { margin-bottom: 20px; }
.shop-cat-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;
}
.shop-cat-tabs .tab {
  padding: 9px 22px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--t-tertiary);
  border: 1px solid var(--border-soft); background: var(--bg-card);
  transition: all var(--t-fast); cursor: pointer;
}
.shop-cat-tabs .tab:hover { color: var(--t-primary); border-color: var(--border-medium); }
.shop-cat-tabs .tab.is-on {
  color: var(--c-primary); border-color: var(--border-strong);
  background: linear-gradient(135deg, rgba(0,229,255,.12), rgba(59,130,246,.06));
  box-shadow: 0 0 12px rgba(0,229,255,.1);
}
.shop-cat-tabs .tab .cnt { font-size: var(--fs-xs); color: var(--t-muted); margin-left: 6px; font-weight: 400; }

.shop-cat-subs {
  display: flex; gap: var(--shop-pill-gap); flex-wrap: wrap; padding-left: 6px;
}
.shop-cat-subs .pill {
  font-size: var(--fs-xs); color: var(--t-muted);
  padding: 5px 14px; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: all var(--t-fast); cursor: pointer;
}
.shop-cat-subs .pill:hover { color: var(--c-primary-soft); }
.shop-cat-subs .pill.is-on { color: var(--c-primary); background: rgba(0,229,255,.08); border-color: var(--border-soft); }
.shop-cat-subs .pill .c { color: var(--t-muted); margin-left: 3px; }

/* ---------- 工具条 ---------- */
.shop-toolbar { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.shop-search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border-medium); border-radius: var(--r-pill);
  padding: 9px 18px; transition: all var(--t-fast);
}
.shop-search:focus-within { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(0,229,255,.12); }
.shop-search svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .6; }
.shop-search input { flex: 1; background: none; border: none; outline: none; color: var(--t-primary); font-size: var(--fs-sm); }
.shop-search input::placeholder { color: var(--t-muted); }
.shop-brand-sel {
  background: var(--bg-card); border: 1px solid var(--border-medium); border-radius: var(--r-pill);
  padding: 8px 16px; color: var(--t-secondary); font-size: var(--fs-sm); outline: none; cursor: pointer;
}
.shop-brand-sel option { background: var(--bg-elevated); color: var(--t-primary); }
.shop-result-info { font-size: var(--fs-xs); color: var(--t-muted); margin-bottom: 12px; }
.shop-result-info b { color: var(--c-primary); }

/* ---------- A 紧凑表格 ---------- */
.shop-table { width: 100%; border-collapse: collapse; }
.shop-table-wrap { }
.shop-table thead th {
  position: sticky; top: 88px; z-index: 5;
  height: var(--shop-th-h);
  font-size: var(--fs-xs); font-weight: 600; color: var(--shop-muted2);
  text-align: left; padding: 0 12px;
  border-bottom: 1px solid var(--shop-hairline-2);
  background: var(--bg-deep); letter-spacing: .5px;
  white-space: nowrap;
}
.shop-table thead th:first-child { border-radius: var(--r-md) 0 0 0; padding-left: 16px; }
.shop-table thead th:last-child { border-radius: 0 var(--r-md) 0 0; text-align: center; }
.shop-table tbody td {
  height: var(--shop-td-h);
  padding: 0 12px; font-size: var(--fs-sm);
  border-bottom: 1px solid var(--shop-hairline);
  vertical-align: middle; color: var(--t-secondary);
}
.shop-table tbody tr { cursor: pointer; transition: background var(--t-fast); }
.shop-table tbody tr:hover { background: rgba(0,229,255,.04); }
.shop-table tbody tr:hover .t-model { color: var(--c-primary); }

/* 型号列 */
.t-model { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-sm); color: var(--t-primary); letter-spacing: .2px; }
.t-name { font-size: var(--fs-xs); color: var(--t-tertiary); line-height: 1.35; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
/* 品牌列 */
.t-brand { font-size: var(--fs-xs); color: var(--c-primary-soft); white-space: nowrap; }
/* 分类列 */
.t-cat { font-size: var(--fs-xs); color: var(--t-muted); white-space: nowrap; }
/* 关键参数列 */
.t-params { font-size: var(--fs-xs); color: var(--shop-val); line-height: 1.5; }
.t-params .pk { color: var(--shop-muted2); margin-right: 4px; }
.t-params .pv { color: var(--shop-val); }
.t-params .more { color: var(--c-primary); font-size: var(--fs-xs); cursor: pointer; margin-left: 6px; }
.t-params .more:hover { text-decoration: underline; }

/* ---------- 详情抽屉关闭态（shop.html 里 DETAIL_DRAWER = false）----------
   行不再表现为“可点击”，避免点了没反应的误导；恢复详情时这些规则自动失效 */
.no-detail .shop-table tbody tr { cursor: default; }
.no-detail .shop-table tbody tr:hover { background: transparent; }
.no-detail .shop-table tbody tr:hover .t-model { color: var(--t-primary); }
.no-detail .shop-drawer,
.no-detail .shop-drawer-mask { display: none !important; }
/* 询价列 */
.t-cta { text-align: center; white-space: nowrap; }
.t-cta .btn-inq {
  display: inline-block; padding: 7px 20px; border-radius: var(--r-pill);
  background: var(--grad-brand); color: #001022; font-weight: 600; font-size: var(--fs-xs);
  transition: all var(--t-fast); box-shadow: 0 0 8px rgba(0,229,255,.15);
}
.t-cta .btn-inq:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }
/* 无参数提示 */
.t-no-param { color: var(--t-muted); font-size: var(--fs-xs); font-style: italic; }

/* ---------- 分页 ---------- */
.shop-pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.shop-pager button {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--r-sm);
  border: 1px solid var(--border-soft); color: var(--t-muted); font-size: var(--fs-sm);
  transition: all var(--t-fast); background: transparent;
}
.shop-pager button:hover:not(:disabled) { color: var(--c-primary); border-color: var(--border-medium); }
.shop-pager button.is-on { background: var(--grad-brand); color: #001022; font-weight: 600; border: none; }
.shop-pager button:disabled { opacity: .3; }

/* ---------- C 左右分栏详情抽屉 ---------- */
.shop-drawer-mask { position: fixed; inset: 0; background: rgba(5,11,26,.75); backdrop-filter: blur(5px); z-index: 100; opacity: 0; pointer-events: none; transition: opacity var(--t-med); }
.shop-drawer-mask.is-on { opacity: 1; pointer-events: auto; }

.shop-drawer {
  position: fixed; top: 0; right: 0; width: 820px; max-width: 96vw; height: 100vh; z-index: 101;
  background: var(--bg-elevated); border-left: 1px solid var(--border-medium);
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
  transform: translateX(101%); visibility: hidden;
  transition: transform var(--t-med), visibility var(--t-med);
  display: flex; flex-direction: column;
}
.shop-drawer.is-on { transform: translateX(0); visibility: visible; }
.shop-drawer-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-soft); color: var(--t-muted);
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast); background: rgba(15,36,68,.8); backdrop-filter: blur(4px);
}
.shop-drawer-close:hover { color: var(--t-primary); border-color: var(--border-strong); }

.shop-drawer-body { display: flex; flex: 1; overflow: hidden; }

/* 左栏 sticky */
.d-left {
  width: 280px; min-width: 280px; padding: 28px 20px 28px 28px;
  overflow-y: auto; border-right: 1px solid var(--shop-hairline-2);
  background: rgba(10,21,48,.5);
}
.d-left .crumb { font-size: var(--fs-xs); color: var(--t-muted); margin-bottom: 12px; line-height: 1.5; }
.d-left h3 { font-size: var(--fs-lg); color: var(--t-primary); line-height: 1.35; margin-bottom: 10px; font-weight: 700; }
.d-model-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; color: var(--c-primary);
  background: rgba(0,229,255,.08); border: 1px solid var(--border-medium);
  padding: 6px 16px; border-radius: var(--r-pill); letter-spacing: .3px;
}
.d-model-badge::before { content: '◈'; font-size: 10px; }
.d-brand-tag { font-size: var(--fs-xs); color: var(--c-primary-soft); margin-bottom: 6px; }
.d-cat-path { font-size: var(--fs-xs); color: var(--t-muted); margin-bottom: 18px; line-height: 1.5; }
.d-kpi { display: grid; gap: 8px; margin-bottom: 20px; }
.d-kpi .kpi-item {
  background: var(--shop-kpi-bg); border: 1px solid var(--shop-kpi-bd);
  border-radius: var(--r-md); padding: 10px 14px;
}
.d-kpi .kpi-item .k { font-size: 11px; color: var(--shop-muted2); margin-bottom: 2px; }
.d-kpi .kpi-item .v { font-size: var(--fs-sm); color: var(--t-primary); font-weight: 600; line-height: 1.4; }
.d-price-box { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 16px; }
.d-price-box .lbl { font-size: var(--fs-xs); color: var(--t-tertiary); display: block; margin-bottom: 2px; }
.d-price-box .val { font-size: var(--fs-base); font-weight: 700; color: var(--c-primary); }
.d-btns { display: flex; flex-direction: column; gap: 8px; }
.d-btn-main {
  background: var(--grad-brand); color: #001022; font-weight: 700;
  font-size: var(--fs-sm); padding: 11px 0; text-align: center;
  border-radius: var(--r-pill); box-shadow: var(--shadow-glow); transition: all var(--t-fast);
}
.d-btn-main:hover { box-shadow: 0 0 20px rgba(0,229,255,.35); transform: translateY(-1px); }
.d-btn-ghost {
  border: 1px solid var(--border-strong); color: var(--c-primary-soft);
  font-size: var(--fs-sm); padding: 10px 0; text-align: center; border-radius: var(--r-pill); transition: all var(--t-fast);
}
.d-btn-ghost:hover { background: rgba(0,229,255,.06); }
.d-src-link { margin-top: 14px; text-align: center; font-size: var(--fs-xs); }
.d-src-link a { color: var(--t-muted); border-bottom: 1px dashed var(--border-medium); transition: color var(--t-fast); }
.d-src-link a:hover { color: var(--c-primary); }

/* 右栏全参数 */
.d-right { flex: 1; overflow-y: auto; padding: 28px 28px 40px; }
.d-right-title { font-size: var(--fs-base); font-weight: 700; color: var(--t-primary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.d-right-title::before { content: ''; width: 3px; height: 16px; background: var(--grad-brand); border-radius: 2px; }

/* 锚点导航 */
.d-anchor-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; position: sticky; top: 0; z-index: 3; background: var(--bg-elevated); padding: 8px 0; }
.d-anchor-bar .a-pill {
  font-size: 11px; color: var(--t-muted); padding: 4px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--border-soft); cursor: pointer; transition: all var(--t-fast);
}
.d-anchor-bar .a-pill:hover, .d-anchor-bar .a-pill.is-on { color: var(--c-primary); border-color: var(--border-medium); background: rgba(0,229,255,.06); }

/* 参数分组 */
.d-group { margin-bottom: 0; border: 1px solid var(--shop-hairline-2); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.d-group-head {
  display: flex; align-items: center; gap: 8px;
  height: var(--shop-group-h); padding: 0 18px;
  background: rgba(0,229,255,.04); cursor: pointer; transition: background var(--t-fast);
  user-select: none;
}
.d-group-head:hover { background: rgba(0,229,255,.07); }
.d-group-head::before { content: ''; width: 3px; height: 16px; background: var(--grad-brand); border-radius: 2px; flex-shrink: 0; }
.d-group-head .g-title { font-size: var(--fs-sm); font-weight: 600; color: var(--t-primary); flex: 1; }
.d-group-head .g-count { font-size: var(--fs-xs); color: var(--t-muted); margin-right: 8px; }
.d-group-head .g-caret { font-size: 10px; color: var(--t-muted); transition: transform var(--t-fast); }
.d-group.is-open .d-group-head .g-caret { transform: rotate(180deg); }
.d-group-body { display: none; }
.d-group.is-open .d-group-body { display: block; }

/* 组内行 */
.d-spec-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 0;
  border-bottom: 1px solid var(--shop-hairline); transition: background var(--t-fast);
}
.d-spec-row:last-child { border-bottom: none; }
.d-spec-row:hover { background: rgba(0,229,255,.03); }
.d-spec-row .sk { padding: 9px 18px; font-size: var(--fs-xs); color: var(--shop-muted2); display: flex; align-items: flex-start; line-height: 1.5; word-break: break-all; }
.d-spec-row .sv { padding: 9px 18px 9px 0; font-size: var(--fs-xs); color: var(--shop-val); line-height: 1.5; word-break: break-all; font-variant-numeric: tabular-nums; }

/* 平铺两列（≤8 项时） */
.d-flat { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--shop-hairline-2); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.d-flat .d-spec-row { border-bottom: 1px solid var(--shop-hairline); }
.d-flat .d-spec-row:nth-last-child(-n+2) { border-bottom: none; }

/* 无参数空状态 */
.d-no-params {
  text-align: center; padding: 48px 24px; color: var(--t-muted);
  background: var(--bg-card); border: 1px dashed var(--border-medium); border-radius: var(--r-lg);
}
.d-no-params .ico { font-size: 36px; opacity: .4; margin-bottom: 10px; }
.d-no-params p { font-size: var(--fs-sm); margin-bottom: 14px; line-height: 1.6; }
.d-no-params .btn-inq-sm {
  display: inline-block; padding: 8px 24px; border-radius: var(--r-pill);
  background: var(--grad-brand); color: #001022; font-weight: 600; font-size: var(--fs-sm);
}

/* 空搜索状态 */
.shop-empty { text-align: center; padding: 80px 0; color: var(--t-muted); }
.shop-empty .ico { font-size: 48px; opacity: .4; margin-bottom: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .d-left { width: 240px; min-width: 240px; }
}
@media (max-width: 880px) {
  .shop-table thead th:nth-child(3), .shop-table tbody td:nth-child(3) { display: none; }
  .shop-drawer { width: 100%; max-width: 100vw; }
  .shop-drawer-body { flex-direction: column; overflow-y: auto; }
  .d-left { width: 100%; min-width: 100%; border-right: none; border-bottom: 1px solid var(--shop-hairline-2); overflow-y: visible; }
  .d-right { overflow-y: visible; padding: 20px 20px 40px; }
}
@media (max-width: 700px) {
  .shop-table thead { display: none; }
  .shop-table tbody tr {
    display: block; padding: 14px 16px; margin-bottom: 10px;
    border: 1px solid var(--shop-hairline-2); border-radius: var(--r-lg);
    background: var(--bg-card); cursor: pointer;
  }
  .shop-table tbody td { display: block; height: auto; padding: 2px 0; border: none; }
  .shop-table tbody td:nth-child(3) { display: none; }
  .shop-hero-stats { gap: 18px; }
  .shop-cat-tabs .tab { padding: 7px 16px; font-size: var(--fs-xs); }
  .d-left { padding: 20px 18px; }
  .d-flat { grid-template-columns: 1fr; }
  .d-flat .d-spec-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--shop-hairline); }
  .d-flat .d-spec-row:last-child { border-bottom: none; }
}
