/* ============================================================
   n14-view.css — v14 草稿「产品主区三视图」接入正式页（2026-11-11）
   复刻 展示方案样稿_v14.html 的 Gallery / Squares / Images 视觉参数。
   生产 #catalog 保留为选择 / 价格 / 数量 / 导出的唯一状态源，仅视觉隐藏。
   所有选择器限定 #n14Main，不污染生产 CSS。
   ============================================================ */

/* 生产表格：保留 DOM 与全部事件，只隐藏视觉 */
#catalog.n14-src { display:none !important; }

#n14Main { min-height:200px; }
.n14-loading { padding:40px; text-align:center; color:#8892a4; font-size:13px; }
.n14-viewhead { display:flex; align-items:center; gap:10px; margin:0 0 10px; flex-wrap:wrap; }
.n14-viewhead b { font-size:15px; color:#00185A; letter-spacing:.02em; }
.n14-viewhead span { font-size:11.5px; color:#667085; }

/* ---------- Gallery：4 列板块级大卡（草稿 .grid / .card） ---------- */
.n14-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.n14-card {
  background:#fff; border:1px solid #e3e7ee; border-radius:8px; overflow:hidden;
  position:relative; transition:border-color .15s;
}
.n14-card:hover { border-color:#185FA5; }
.n14-card.sel { border:2px solid #00185A; }
.n14-card.sel::after {
  content:"SELECTED"; position:absolute; top:6px; right:6px; background:#00185A; color:#fff;
  font-size:9px; padding:2px 5px; border-radius:3px; z-index:2; letter-spacing:.04em;
}
.n14-imgbox {
  height:116px; background:#fafbfc; display:flex; align-items:center; justify-content:center;
  padding:6px; position:relative; cursor:zoom-in;
}
.n14-imgbox img { max-width:100%; max-height:100%; object-fit:contain; }
.n14-imgnum {
  position:absolute; right:6px; bottom:6px; background:rgba(0,24,90,.86); color:#fff;
  font-size:9px; padding:2px 6px; border-radius:9px; pointer-events:none; letter-spacing:.03em;
}
.n14-thumbs {
  display:flex; gap:3px; padding:4px 6px; overflow-x:auto; background:#fafbfc;
  border-top:1px solid #eef1f6; scrollbar-width:thin;
}
.n14-thumb {
  width:34px; height:34px; flex:none; border:1px solid #d5dce7; border-radius:4px;
  background:#fff; cursor:pointer; padding:2px; display:block;
}
.n14-thumb.on { border-color:#00185A; box-shadow:0 0 0 1px #00185A; }
.n14-thumb img { width:100%; height:100%; object-fit:contain; }
.n14-capline { font-size:9.5px; color:#667085; height:27px; line-height:1.35; overflow:hidden; padding:4px 9px 0; }
.n14-cbody { padding:7px 9px 10px; }
.n14-ctitle { font-size:11.5px; line-height:1.35; height:32px; overflow:hidden; color:#16233b; font-weight:600; }
.n14-ctag {
  margin-top:4px; font-size:9.5px; color:#fff; background:#00185A; display:inline-block;
  padding:1px 5px; border-radius:3px; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
.n14-ctag.none { background:#aab3c2; }
.n14-keyattr { margin-top:5px; height:17px; display:flex; gap:4px; align-items:center; flex-wrap:wrap; overflow:hidden; }
.n14-ka { font-size:9.5px; padding:1px 5px; border-radius:3px; background:#e6f4ea; color:#0f6e56; font-weight:600; white-space:nowrap; }
.n14-ka.v { background:#fce8e6; color:#A32D2D; }
.n14-ka.p { background:#fff3cd; color:#854F0B; }
.n14-cprice { margin-top:6px; color:#C00000; font-size:14px; font-weight:700; }
.n14-b2b { margin-top:5px; border-top:1px dashed #e8ebf1; padding-top:5px; font-size:9.5px; color:#667085; line-height:1.4; min-height:32px; }
.n14-b2b b { color:#33405a; font-weight:600; }
.n14-b2b .l1, .n14-b2b .l2 { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.n14-b2b .l2 { font-size:9px; color:#8892a4; }
.n14-expand {
  margin-top:7px; width:100%; border:1px solid #cfd9e7; background:#f4f7fb; color:#00185A;
  border-radius:5px; padding:6px 8px; font-size:10px; font-weight:700; letter-spacing:.03em; cursor:pointer;
}
.n14-expand:hover { background:#e7eef8; border-color:#185FA5; }
.n14-expand b { color:#C00000; }
.n14-expandbody { border-top:1px solid #e8ebf1; background:#f7f9fc; padding:8px; }

/* ---------- 单规格套装卡：一步直选条（2026-11-11 v20261111e） ----------
   不出现 SELECT / HIDE SPECIFICATIONS，勾选框与 QTY 同排、不压主图。 */
.n14-inline { margin-top:7px; border-top:1px dashed #e8ebf1; padding-top:7px; }
.n14-inline .n14-sqrow { margin-top:0; }
.n14-inline .n14-pick { width:17px; height:17px; }
.n14-inline .n14-qty { width:64px; }

/* ---------- Squares：1:1 规格行方卡（草稿 .sqcard，保持行级选择） ---------- */
.n14-blk { margin-bottom:12px; border:1px solid #e3e7ee; border-radius:8px; overflow:clip; background:#fff; }
.n14-blkh {
  background:#f7f9fc; padding:7px 10px; font-size:12px; font-weight:700; color:#16233b;
  display:flex; justify-content:space-between; gap:8px; align-items:center; flex-wrap:wrap;
  position:sticky; top:var(--fbarH, 217px); z-index:9; box-shadow:0 1px 3px rgba(16,32,64,.06);
}
.n14-blkh .cnt { font-weight:400; color:#8892a4; font-size:11px; }
.n14-sqgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(128px,1fr)); gap:9px; padding:10px; }
.n14-expandbody .n14-sqgrid { grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); padding:4px; }
.n14-sqcard { border:1px solid #e3e7ee; border-radius:8px; background:#fff; overflow:hidden; position:relative; transition:border-color .15s; }
.n14-sqcard:hover { border-color:#185FA5; }
.n14-sqcard.sel { border:2px solid #00185A; }
.n14-sqbox {
  aspect-ratio:1/1; background:#fafbfc; border-bottom:1px solid #eef1f6; display:flex;
  align-items:center; justify-content:center; padding:5px; cursor:zoom-in; position:relative;
}
.n14-sqbox img { width:100%; height:100%; object-fit:contain; }
.n14-noimg { color:#aab3c2; font-size:10px; }
.n14-sqidx { position:absolute; top:4px; left:5px; background:rgba(0,24,90,.75); color:#fff; font-size:9px; padding:1px 5px; border-radius:8px; }
.n14-sqnum { position:absolute; bottom:5px; right:6px; background:rgba(0,24,90,.86); color:#fff; font-size:9px; padding:1px 6px; border-radius:9px; pointer-events:none; }
/* 勾选框：与 QTY 同排（不再绝对定位压在图片右上角） */
.n14-pick { width:16px; height:16px; flex:none; margin:0; cursor:pointer; accent-color:#00185A; }
.n14-sqbody { padding:6px 7px 8px; }
.n14-sqparam { font-size:11px; font-weight:800; color:#16233b; line-height:1.3; height:29px; overflow:hidden; }
.n14-sqmeta { font-size:9px; color:#0f6e56; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; min-height:13px; }
.n14-sqmodel { font-size:9px; color:#98a2b3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.n14-sqprice { color:#C00000; font-size:13px; font-weight:700; margin-top:4px; }
.n14-sqrow { display:flex; align-items:center; flex-wrap:nowrap; gap:5px; margin-top:5px; min-width:0; }
.n14-sqrow label { font-size:9px; font-weight:700; color:#8b98a8; }
.n14-qty { width:58px; background:#FFF2CC; border:1px solid #e0c98a; border-radius:4px; padding:2px 4px; font-size:11px; }

/* ---------- Images：全库图集，按款式分组（草稿 .grp / .galgrid） ---------- */
.n14-grp { margin-bottom:16px; border:1px solid #e3e7ee; border-radius:9px; background:#fff; overflow:hidden; }
.n14-grph {
  background:#f7f9fc; padding:8px 12px; display:flex; justify-content:space-between; gap:10px;
  align-items:center; flex-wrap:wrap; border-bottom:1px solid #e8ebf1;
}
.n14-grph span:first-child { font-size:12.5px; font-weight:700; color:#16233b; }
.n14-grph span:last-child { font-size:10.5px; color:#667085; }
.n14-galgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:9px; padding:10px; }
.n14-ph { border:1px solid #e3e7ee; border-radius:7px; overflow:hidden; background:#fff; position:relative; }
.n14-ph:hover { border-color:#185FA5; }
.n14-pi { height:128px; background:#fafbfc; display:flex; align-items:center; justify-content:center; padding:6px; cursor:zoom-in; }
.n14-pi img { max-width:100%; max-height:100%; object-fit:contain; }
.n14-idx { position:absolute; top:5px; left:6px; background:rgba(0,24,90,.75); color:#fff; font-size:9px; padding:1px 5px; border-radius:8px; }
.n14-pc { font-size:9.5px; color:#5a6577; padding:5px 7px 7px; line-height:1.35; height:39px; overflow:hidden; }

/* ---------- 响应式 ---------- */
@media (max-width:1250px) { .n14-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:960px)  { .n14-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .n14-blkh { position:static; } }
@media (max-width:620px) {
  .n14-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .n14-sqgrid, .n14-galgrid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:6px; }
  .n14-imgbox, .n14-pi { height:98px; }
}
