/* ============================================================
 *  托特包规格手册 · 内容区样式（套全站壳，配色复用 site.css 变量）
 *  只保留 series / table / print-card / swatch / lightbox / seg 切换
 * ============================================================ */

/* ---------- 双语显示控制 ---------- */
body.lang-zh .en,
body.lang-en .zh{ display:none; }
body.lang-both .zh + .en::before{
  content:' / '; color:var(--ink-3); font-weight:400;
}
.b-zh, .b-en{ display:block; }
.b-en{ color:var(--ink-3); font-size:.88em; font-weight:400; }
body.lang-zh .b-en,
body.lang-en .b-zh{ display:none; }
h2 .b-en{ font-size:.55em; line-height:1.4; margin-top:6px; font-weight:500; }
h3 .b-en{ font-size:.62em; line-height:1.45; margin-top:4px; font-weight:500; }

/* ---------- 语言/单位工具条 ---------- */
.tote-tools{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  padding:14px 0 4px;
}
.tote-tools-label{ font-size:12px; color:var(--ink-3); font-weight:600; }
.seg{
  display:inline-flex; background:var(--brand-050);
  border:1px solid var(--line); border-radius:999px; padding:3px; gap:2px;
}
.seg button{
  border:0; background:transparent; cursor:pointer;
  font:inherit; font-size:13px; font-weight:600;
  color:var(--ink-3); padding:5px 14px; border-radius:999px;
  transition:background .16s, color .16s;
}
.seg button:hover{ color:var(--ink); }
.seg button[aria-pressed="true"]{
  background:var(--brand); color:#fff;
}

/* ---------- 系列区 ---------- */
.series{ padding:48px 0 8px; }
.series-head{ margin-bottom:28px; max-width:760px; }
.series-no{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.14em;
  color:var(--brand); margin-bottom:10px;
}
.series-head h2{
  margin:0 0 10px; font-size:clamp(22px,3vw,28px);
  letter-spacing:-.01em; font-weight:700; line-height:1.25; color:var(--ink);
}
.series-head p{ margin:0; color:var(--ink-2); font-size:15px; line-height:1.7; }

/* 型号卡片 */
.model-grid{
  display:grid; gap:16px; margin-bottom:28px;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}
.model-card{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--r); overflow:hidden;
  transition:border-color .18s, transform .18s, box-shadow .18s;
}
.model-card:hover{
  border-color:var(--brand); transform:translateY(-2px); box-shadow:var(--sh-2);
}
.model-shot{ position:relative; aspect-ratio:1/1; background:var(--brand-050); overflow:hidden; }
.model-shot img{ width:100%; height:100%; object-fit:cover; }

/* 尺寸标注 overlay */
.dim-overlay{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.dim-line{ stroke:#333; stroke-width:1.2; fill:none; }
.dim-arc{ stroke:#333; stroke-width:1.2; fill:none; }
.dim-arrow{ stroke:#333; stroke-width:1.2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.dim-main{ font-size:12px; font-weight:700; fill:#222; font-family:var(--font); }
.dim-sub{ font-size:9px; fill:#888; font-family:var(--font); }

/* 图片占位 */
.ph{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:8px; text-align:center; padding:18px;
  color:var(--ink-3);
  background:repeating-linear-gradient(45deg,transparent,transparent 9px,rgba(18,121,196,.03) 9px,rgba(18,121,196,.03) 18px);
}
.ph-frame{ position:absolute; inset:14px; border:1.5px dashed var(--line); border-radius:8px; }
.ph-ico{ width:26px; height:26px; opacity:.5; position:relative; z-index:1; }
.ph-txt{ font-size:12.5px; font-weight:600; position:relative; z-index:1; }
.ph-sub{ font-size:10.5px; opacity:.75; position:relative; z-index:1; }
.ph-file{
  margin-top:2px; font-size:10px; font-family:ui-monospace,Menlo,Consolas,monospace;
  background:rgba(0,0,0,.05); padding:2px 7px; border-radius:4px; position:relative; z-index:1;
}

.model-meta{
  position:absolute; top:10px; left:10px; z-index:5;
  background:rgba(255,255,255,.92); backdrop-filter:blur(4px);
  border-radius:8px; padding:6px 10px;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
}
.model-code{ font-size:16px; font-weight:700; letter-spacing:-.01em; color:var(--ink); line-height:1.2; }
.model-size{ font-size:11px; color:var(--ink-3); margin-top:2px; font-variant-numeric:tabular-nums; }

/* ---------- 尺码表 ---------- */
.table-shell{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--r); overflow:hidden; box-shadow:var(--sh-1);
}
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
table.spec{ width:100%; border-collapse:collapse; min-width:660px; }
table.spec th, table.spec td{
  padding:12px 16px; text-align:left; vertical-align:middle;
  border-bottom:1px solid var(--line); font-size:14px;
}
table.spec thead th{
  background:var(--brand-050); font-weight:700; font-size:13px;
  border-bottom:1px solid var(--line); white-space:nowrap;
  position:sticky; top:0; z-index:2; color:var(--ink);
}
table.spec thead th:first-child{ left:0; z-index:3; min-width:200px; }
table.spec tbody th{
  font-weight:600; color:var(--ink-2); background:var(--card);
  position:sticky; left:0; z-index:1; min-width:200px;
  border-right:1px solid var(--line);
}
table.spec tbody tr:hover td{ background:var(--brand-050); }
table.spec tbody tr:last-child th,
table.spec tbody tr:last-child td{ border-bottom:0; }

.cell-main{ font-weight:600; font-variant-numeric:tabular-nums; color:var(--ink); }
.cell-sub{ display:block; font-size:12px; color:var(--ink-3); font-weight:400; margin-top:1px; }
.muted{ color:var(--ink-3); }
.tbd{
  color:var(--accent); font-size:12px; font-weight:700;
  background:var(--accent-050); padding:2px 8px; border-radius:5px; display:inline-block;
}

/* 手提带色板 */
.swatch-row{ display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; }
.swatch{ display:inline-flex; align-items:center; gap:7px; }
.swatch img{
  width:46px; height:46px; object-fit:cover; border-radius:8px;
  border:1px solid var(--line); background:var(--card); flex:none;
}
.swatch-name{ font-size:13px; color:var(--ink-2); white-space:nowrap; }

/* 表格内小图 */
.cell-shot{
  width:74px; height:74px; border-radius:8px; overflow:hidden;
  background:var(--brand-050); border:1px solid var(--line); position:relative;
}
.cell-shot img{ width:100%; height:100%; object-fit:cover; }
.cell-shot .ph-frame{ inset:6px; }
.cell-shot .ph-ico{ width:16px; height:16px; }
.cell-shot .ph-txt{ font-size:9.5px; }
.cell-shot .ph-sub, .cell-shot .ph-file{ display:none; }

/* 内部行 */
.row-internal th, .row-internal td{ background:var(--accent-050); }
.badge-internal{
  font-size:10px; font-weight:700; letter-spacing:.06em;
  color:var(--accent); background:#fff;
  padding:1px 6px; border-radius:4px; margin-left:6px; vertical-align:middle;
}

/* ---------- Lightbox ---------- */
.swatch img[data-zoom],
.model-shot img[data-zoom],
.cell-shot img[data-zoom],
.print-shot img[data-zoom]{ cursor:zoom-in; transition:transform .18s ease; }
.model-shot img[data-zoom]:hover,
.cell-shot img[data-zoom]:hover,
.print-shot img[data-zoom]:hover{ transform:scale(1.04); }
body.lb-lock{ overflow:hidden; }
.lb{ display:none; position:fixed; inset:0; z-index:999; align-items:center; justify-content:center; padding:24px; }
.lb.is-open{ display:flex; }
.lb-bg{ position:absolute; inset:0; background:rgba(22,32,46,.85); backdrop-filter:blur(2px); }
.lb-box{
  position:relative; z-index:1; margin:0; max-width:min(92vw,900px);
  display:flex; flex-direction:column; align-items:center; gap:14px;
}
.lb-img{ max-width:100%; max-height:76vh; object-fit:contain; border-radius:12px; background:#fff; box-shadow:0 18px 50px rgba(0,0,0,.35); }
.lb-cap{ color:#fff; font-size:15px; text-align:center; line-height:1.5; }
.lb-cap .b-en{ display:block; color:rgba(255,255,255,.7); font-size:13px; }
.lb-x{
  position:absolute; top:-14px; right:-14px; width:36px; height:36px; border-radius:50%;
  border:0; background:#fff; color:var(--ink); font-size:22px; cursor:pointer; box-shadow:var(--sh-2);
}
.lb-x:hover{ background:var(--brand); color:#fff; }
@media (max-width:640px){ .lb{ padding:14px; } .lb-img{ max-height:66vh; } .lb-x{ top:4px; right:4px; } }

/* ---------- 印刷工艺卡片 ---------- */
.print-grid{ display:grid; gap:20px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.print-card{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--r); overflow:hidden; box-shadow:var(--sh-1);
  transition:border-color .18s, box-shadow .18s;
}
.print-card:hover{ border-color:var(--brand); box-shadow:var(--sh-2); }
.print-card h3{ margin:18px 22px 8px; font-size:18px; color:var(--ink); }
.print-card p{ margin:0 22px 14px; color:var(--ink-2); font-size:14px; line-height:1.7; }
.print-card .chip{ margin:0 22px 22px; }
.print-shot{
  position:relative; aspect-ratio:4/3;
  background:var(--brand-050); border-bottom:1px solid var(--line); overflow:hidden;
}
.print-shot img{ width:100%; height:100%; object-fit:cover; display:block; cursor:zoom-in; }
.print-shot .ph{ position:absolute; inset:0; border:0; border-radius:0; background:var(--brand-050); }
.chip{
  display:inline-block; font-size:12px; font-weight:600;
  color:var(--ok); background:rgba(22,163,74,.1);
  padding:4px 12px; border-radius:999px;
}

/* ---------- 联系方式 ---------- */
.contact-list{ display:grid; gap:14px; }
.contact-row{ display:flex; align-items:center; gap:12px; font-size:14px; }
.contact-ico{
  width:36px; height:36px; border-radius:10px; flex:none;
  background:var(--brand-050); display:grid; place-items:center;
}
.contact-ico svg{ width:17px; height:17px; stroke:var(--brand); fill:none; stroke-width:1.7; }
.contact-k{ display:block; color:var(--ink-3); font-size:12px; }
.contact-v{ display:block; font-weight:600; color:var(--ink); }

/* ---------- 响应式 ---------- */
@media (max-width:640px){
  table.spec th, table.spec td{ padding:10px 12px; font-size:13px; }
  .model-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
}

/* ---------- 打印 ---------- */
@media print{
  .lb, .tote-tools, .btn, .seg{ display:none !important; }
  body{ background:#fff; }
  .series{ padding:16pt 0; break-inside:avoid; }
  table.spec{ min-width:0; }
  table.spec tbody th, table.spec thead th{ position:static; }
  .hd, .biznav, .ft{ display:none !important; }
}
