/* 甬标标准件 · 客户中心（客户端网站）2026-11-03 */
:root {
  --ink: #0f172a; --sub: #5b6779; --faint: #94a3b8;
  --pri: #1f4e79; --pri-2: #2f6f9e; --acc: #0ea5e9;
  --bg: #f5f7fb; --card: #fff; --line: #e3e8ef;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.6 -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--pri-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.hidden { display: none !important; }

/* ---------------- 顶栏 ---------------- */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1440px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--pri); white-space: nowrap; }
.brand i { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #1f4e79, #2f8fd0); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-size: 15px; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 8px; color: #334155; white-space: nowrap; font-size: 14px; }
.nav a:hover { background: #eef4fb; text-decoration: none; }
.nav a.on { background: var(--pri); color: #fff; font-weight: 600; }
.hdr-user { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.who { font-size: 13px; color: var(--sub); }
.who b { color: var(--ink); }

/* ---------------- 通用 ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: #1f2937; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn-pri:hover { background: var(--pri-2); border-color: var(--pri-2); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.inp, .sel { height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; outline: none; }
.inp:focus, .sel:focus { border-color: #93b4d8; box-shadow: 0 0 0 3px rgba(31,78,121,.10); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--sub); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, Consolas, "Courier New", monospace; }
.tc { text-align: center; } .tr { text-align: right; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 22px 20px 60px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; line-height: 20px; border: 1px solid transparent; white-space: nowrap; }
.b-green { background: #ecfdf3; color: #15803d; border-color: #bbf7d0; }
.b-orange { background: #fff7ed; color: #b45309; border-color: #fed7aa; }
.b-gray { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.b-red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.b-blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ---------------- 首页 ---------------- */
.hero { position: relative; overflow: hidden; border-radius: 16px; color: #fff;
  background: radial-gradient(1200px 400px at 80% -10%, #2f8fd0 0%, transparent 60%), linear-gradient(120deg, #12395c, #1f4e79 55%, #2f6f9e);
  padding: 34px 32px; margin-bottom: 18px; }
.hero h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: .5px; }
.hero p { margin: 0; color: #cfe3f5; font-size: 14px; }
.hero .search { margin-top: 18px; display: flex; gap: 8px; max-width: 620px; }
.hero .search .inp { flex: 1; height: 42px; border: 0; border-radius: 10px; padding: 0 14px; font-size: 14px; }
.hero .search .btn { height: 42px; background: #0ea5e9; border-color: #0ea5e9; color: #fff; padding: 0 20px; }
.hero .stats { margin-top: 18px; display: flex; gap: 26px; color: #dbeafe; font-size: 13px; flex-wrap: wrap; }
.hero .stats b { color: #fff; font-size: 18px; margin-right: 4px; }

.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.cats button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; cursor: pointer; color: #334155; }
.cats button.on { background: var(--pri); color: #fff; border-color: var(--pri); }

.grid-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: .16s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c7d2df; }
.pcard .thumb { height: 150px; background: #f8fafc; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #eef2f7; }
.pcard .thumb img { max-width: 88%; max-height: 120px; object-fit: contain; }
.pcard .body { padding: 10px 12px 12px; }
.pcard .code { font-size: 12px; color: var(--faint); font-family: ui-monospace, Consolas, monospace; }
.pcard .name { font-weight: 600; font-size: 14px; margin: 2px 0 4px; line-height: 1.4; }
.pcard .meta { font-size: 12px; color: var(--sub); display: flex; gap: 8px; flex-wrap: wrap; }
.pcard .meta span { background: #f1f5f9; border-radius: 6px; padding: 0 6px; }

.pager { display: flex; gap: 6px; justify-content: center; margin: 22px 0 0; flex-wrap: wrap; }
.pager button { min-width: 34px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.pager button.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 详情 ---------------- */
.detail { display: grid; grid-template-columns: 420px 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .detail { grid-template-columns: 1fr; } }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.gallery .big { height: 320px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 10px; }
.gallery .big img { max-width: 94%; max-height: 300px; object-fit: contain; }
.gallery .ths { display: flex; gap: 8px; margin-top: 10px; }
.gallery .ths button { flex: 1; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.gallery .ths button.on { background: var(--pri); color: #fff; border-color: var(--pri); }
.pinfo h2 { margin: 0 0 4px; font-size: 22px; }
.pinfo .std { color: var(--sub); font-family: ui-monospace, Consolas, monospace; }
.kvlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; }
.kvlist .kv { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.kvlist .kv span { display: block; font-size: 12px; color: var(--faint); }
.kvlist .kv b { font-weight: 600; }

/* 规格矩阵 */
.spec-wrap { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-wrap h3 { margin: 0; padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.spec-scroll { overflow: auto; max-height: 560px; }
table.spec { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
table.spec th, table.spec td { border-bottom: 1px solid #eef2f7; border-right: 1px solid #eef2f7; padding: 6px 10px; white-space: nowrap; }
table.spec thead th { position: sticky; top: 0; background: #f1f5f9; z-index: 2; text-align: left; }
table.spec tbody th { position: sticky; left: 0; background: #f8fafc; z-index: 1; text-align: left; font-weight: 600; }
table.spec tbody tr:nth-child(even) td { background: #fbfdff; }

/* ---------------- 数据页 ---------------- */
.page-hd { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-hd h1 { margin: 0; font-size: 20px; }
.page-hd .desc { color: var(--sub); font-size: 13px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th, table.tb td { padding: 9px 12px; border-bottom: 1px solid #eef2f7; text-align: left; white-space: nowrap; }
table.tb th { background: #f8fafc; color: #475569; font-weight: 600; position: sticky; top: 0; z-index: 1; }
table.tb tbody tr:hover { background: #f8fbff; }
table.tb tr.linkrow { cursor: pointer; }
.empty { padding: 46px 20px; text-align: center; color: var(--faint); background: #fff; border: 1px dashed var(--line); border-radius: 12px; }
.totals { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 2px; color: var(--sub); font-size: 13px; }
.totals b { color: var(--ink); }

/* ---------------- 弹窗 / 抽屉 ---------------- */
.mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dlg { background: #fff; border-radius: 14px; width: 420px; max-width: 96vw; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(15,23,42,.28); }
.dlg-hd { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dlg-hd h3 { margin: 0; font-size: 16px; flex: 1; }
.dlg-hd .x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--faint); cursor: pointer; }
.dlg-bd { padding: 16px 18px; overflow: auto; }
.dlg-ft { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 4px; }
.field .inp { width: 100%; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 900px; max-width: 96vw; background: #fff; z-index: 101; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(15,23,42,.18); }
.drawer.dlg { border-radius: 0; }

/* ---------------- 时间线 ---------------- */
.timeline { position: relative; margin: 8px 0 0 6px; padding-left: 22px; border-left: 2px solid #e2e8f0; }
.timeline .ev { position: relative; padding: 7px 0; }
.timeline .ev::before { content: ""; position: absolute; left: -29px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 0 3px #fff; }
.timeline .ev.on::before { background: var(--acc); }
.timeline .ev .t { font-size: 12px; color: var(--faint); font-family: ui-monospace, Consolas, monospace; }
.timeline .ev .ti { font-weight: 600; }
.timeline .ev .d { font-size: 12.5px; color: var(--sub); }

/* ---------------- 导入 ---------------- */
.drop { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 30px; text-align: center; color: var(--sub); background: #fbfdff; cursor: pointer; }
.drop:hover { border-color: var(--acc); background: #f0f9ff; }
.drop b { color: var(--pri); }
.preview-hd { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 8px; color: var(--sub); }
.preview-hd b { color: var(--ink); }

/* ---------------- 登录 ---------------- */
.login-hd { text-align: center; padding: 8px 0 14px; }
.login-hd .logo { font-size: 20px; font-weight: 700; color: var(--pri); }
.login-hd p { margin: 4px 0 0; color: var(--faint); font-size: 13px; }

/* ---------------- toast ---------------- */
.toast { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast div { background: #0f172a; color: #fff; padding: 9px 14px; border-radius: 9px; font-size: 13px; box-shadow: var(--shadow); animation: tin .18s ease-out; }
.toast div.err { background: #b91c1c; }
.toast div.ok { background: #15803d; }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.footer { text-align: center; color: var(--faint); font-size: 12px; padding: 22px 0 8px; }
@media (max-width: 760px) {
  .hdr-in { height: auto; padding: 8px 12px; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; }
  .wrap { padding: 14px 12px 40px; }
}

/* 二级分类（点了一级分类才出现）2026-11-03 */
.cats.sub { margin-top: -6px; padding: 7px 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; align-items: center; }
.cats.sub .sub-label { font-size: 12.5px; color: var(--faint); margin-right: 4px; }
.cats.sub button { padding: 3px 11px; font-size: 13px; border-radius: 8px; }

/* ===== 产品中心：小工具 + 三级筛选（2026-11-03，参考 nbybls 的排布） ===== */
.shop { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 960px) {
  .shop { grid-template-columns: 1fr; }
  .tools { display: none; }
}
.tools { position: sticky; top: 74px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.tools-hd { font-size: 12px; color: var(--faint); padding: 4px 8px 8px; }
.tools button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0;
  background: transparent; padding: 8px; border-radius: 8px; cursor: pointer; color: #334155; font-size: 13px; }
.tools button:hover { background: #eef4fb; color: var(--pri); }
.tools button i { font-style: normal; width: 18px; text-align: center; font-size: 14px; }
.hero .search .syssel { height: 42px; border: 0; border-radius: 10px; padding: 0 10px; font-size: 13px; color: #334155; background: #fff; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin-bottom: 12px; }
.flt-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #eef2f7; align-items: flex-start; }
.flt-row:last-of-type { border-bottom: 0; }
.flt-label { flex: none; width: 46px; font-size: 12.5px; color: var(--faint); padding-top: 5px; }
.flt-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.flt-chips button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 10px;
  font-size: 13px; cursor: pointer; color: #334155; display: inline-flex; align-items: center; gap: 6px; }
.flt-chips button:hover { border-color: #93b4d8; }
.flt-chips button.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.flt-chips button.on .faint { color: #cfe3f5; }
.flt-num { font-size: 11px; opacity: .55; font-family: ui-monospace, Consolas, monospace; }
.flt-clear { padding: 8px 0 4px; text-align: right; }
.result-line { margin: 0 2px 10px; }
.tool-res { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.tool-res .kv2 { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed #eef2f7; font-size: 13px; }
.tool-res .kv2 span { color: var(--sub); }
.tool-res .kv2 b { color: var(--ink); }

/* 规格下拉 + 参数面板（2026-11-03，照原站商品详情） */
.spec-pick { padding: 14px 16px; margin-top: 14px; }
.sp-lb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); }
.sp-lb select { min-width: 170px; height: 34px; }
.param-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; margin-top: 12px; }
.param-grid .pv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 11px;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 9px; font-size: 13px; }
.param-grid .pv span { color: var(--sub); }
.param-grid .pv b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* 独立登录页（2026-11-03 用户口径：未登录不再挡导航，点进去跳这里） */
.login-page { display: flex; justify-content: center; padding: 48px 16px 70px; }
.login-page .login-box { width: 404px; max-width: 94vw; padding: 26px 26px 22px; }
.login-page .login-hd { padding: 4px 0 18px; }
.login-page .login-hd .logo { font-size: 22px; }
.login-page .field { margin-bottom: 12px; }
.login-page .field .inp { width: 100%; height: 38px; }

/* ===== 商品详情（2026-11-03 按原站风格重排） ===== */
.p-hero { display: flex; gap: 22px; padding: 20px; margin-bottom: 14px; }
.p-hero-img { width: 190px; height: 190px; flex: none; border: 1px solid var(--line); border-radius: 12px;
  background: #f8fafc; display: flex; align-items: center; justify-content: center; }
.p-hero-img img { max-width: 86%; max-height: 170px; object-fit: contain; }
.p-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.p-hero-top { display: flex; gap: 16px; align-items: flex-start; }
.p-hero-title { flex: 1; min-width: 0; }
.p-code { margin: 0; font-size: 26px; letter-spacing: .2px; }
.p-name { font-size: 16px; font-weight: 600; margin-top: 4px; }
.p-en { color: var(--faint); font-size: 13px; margin-top: 2px; }
.p-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 340px; }
.p-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
  padding-top: 12px; border-top: 1px dashed #eef2f7; }
.p-meta span { display: block; font-size: 12px; color: var(--faint); }
.p-meta b { font-weight: 600; font-size: 13.5px; }
.p-note { font-size: 12.5px; color: var(--faint); }
.viewer { padding: 0; overflow: hidden; margin-bottom: 14px; }
.viewer-hd { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #eef2f7; }
.viewer-tabs { display: flex; gap: 6px; }
.viewer-tabs button { border: 1px solid transparent; background: transparent; padding: 6px 14px;
  border-radius: 8px; cursor: pointer; color: #475569; font-size: 13px; }
.viewer-tabs button.on { background: #eef4fb; color: var(--pri); font-weight: 600; border-color: #dbe7f5; }
.viewer-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 10px 14px;
  background: #fbfdff; border-bottom: 1px solid #eef2f7; }
.viewer-bar .sp-lb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); }
.viewer-bar select { min-width: 150px; height: 34px; }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 900px) { .viewer-body { grid-template-columns: 1fr; } .param-panel { border-left: 0; border-top: 1px solid #eef2f7; } }
.viewer-canvas { min-height: 420px; display: flex; align-items: center; justify-content: center; padding: 22px; background: #fff; }
.viewer-canvas img { max-width: 100%; max-height: 520px; object-fit: contain; }
.param-panel { border-left: 1px solid #eef2f7; background: #fbfdff; padding: 14px; max-height: 620px; overflow: auto; }
.param-panel h3 { margin: 0 0 10px; font-size: 15px; }
.param-panel .pv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px;
  border-bottom: 1px dashed #eef2f7; font-size: 13px; }
.param-panel .pv:last-child { border-bottom: 0; }
.param-panel .pv span { color: var(--sub); }
.param-panel .pv b { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .p-hero { flex-direction: column; }
  .p-hero-img { width: 100%; height: 200px; }
  .p-badges { justify-content: flex-start; }
}

/* 商品详情窗口（2026-11-03：点卡片弹窗，列表留在后面） */
#pdRoot .p-win { padding: 0; }
#pdRoot .p-hero { margin-bottom: 12px; }
#pdRoot .viewer { margin-bottom: 0; }
#pdRoot .viewer-canvas { min-height: 380px; }

/* ===== 详情窗口：整窗定高、压缩排版、不出纵向滚动条（2026-11-03 用户口径） ===== */
.dlg.dlg-product { height: 92vh; max-height: 92vh; display: flex; flex-direction: column; }
.dlg.dlg-product .dlg-hd { padding: 8px 14px; flex: none; }
.dlg.dlg-product .dlg-bd { flex: 1; min-height: 0; overflow: hidden; padding: 10px 14px 12px; display: flex; }
.dlg.dlg-product #pdRoot { flex: 1; min-height: 0; display: flex; }
.dlg.dlg-product #pdRoot .p-win { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.dlg.dlg-product #pdRoot .p-hero { flex: none; display: flex; gap: 16px; padding: 12px 14px; margin: 0; }
.dlg.dlg-product #pdRoot .p-hero-img { width: 104px; height: 104px; border-radius: 10px; }
.dlg.dlg-product #pdRoot .p-hero-img img { max-height: 92px; }
.dlg.dlg-product #pdRoot .p-hero-main { gap: 8px; }
.dlg.dlg-product #pdRoot .p-code { font-size: 20px; }
.dlg.dlg-product #pdRoot .p-name { font-size: 14px; margin-top: 2px; }
.dlg.dlg-product #pdRoot .p-en { font-size: 12px; }
.dlg.dlg-product #pdRoot .p-badges { gap: 5px; }
.dlg.dlg-product #pdRoot .p-meta { padding-top: 7px; gap: 8px; }
.dlg.dlg-product #pdRoot .p-meta span { font-size: 11px; }
.dlg.dlg-product #pdRoot .p-meta b { font-size: 12.5px; }
.dlg.dlg-product #pdRoot .p-note { font-size: 11.5px; }
.dlg.dlg-product #pdRoot .viewer { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; }
.dlg.dlg-product #pdRoot .viewer-hd { flex: none; padding: 5px 12px; }
.dlg.dlg-product #pdRoot .viewer-bar { flex: none; padding: 5px 12px; }
.dlg.dlg-product #pdRoot .viewer-bar select { height: 30px; }
.dlg.dlg-product #pdRoot .viewer-body { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) 300px; }
.dlg.dlg-product #pdRoot .viewer-canvas { min-height: 0; height: 100%; padding: 8px; }
.dlg.dlg-product #pdRoot .viewer-canvas img { max-height: 100%; }
.dlg.dlg-product #pdRoot .param-panel { max-height: none; overflow: auto; padding: 10px 12px; }
.dlg.dlg-product #pdRoot .param-panel h3 { margin: 0 0 6px; font-size: 14px; }
.dlg.dlg-product #pdRoot .param-panel .pv { padding: 6px 8px; font-size: 12.5px; }

/* ===== 首页 Banner：紧固件元素背景 + 服务/品质标语（2026-11-03 用户口径） ===== */
.hero { padding: 34px 32px 30px; }
.hero-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-deco .hexg { position: absolute; inset: -30px; opacity: .10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='130' viewBox='0 0 150 130'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Cpath d='M36 2 66 19v34L36 70 6 53V19z'/%3E%3Cpath d='M106 54 136 71v34l-30 17-30-17V71z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px 130px; }
.hero-deco .hd { position: absolute; opacity: .17; filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); }
.hero-deco .hd1 { right: 5%; top: -10%; width: 235px; transform: rotate(-14deg); }
.hero-deco .hd2 { right: 25%; bottom: -30%; width: 185px; transform: rotate(16deg); opacity: .13; }
.hero-deco .hd3 { right: -4%; bottom: -22%; width: 205px; transform: rotate(-5deg); opacity: .11; }
.hero-in { position: relative; z-index: 1; }
.hero .slogan { font-size: 30px; font-weight: 700; letter-spacing: 2px; line-height: 1.25; }
.hero .slogan-sub { margin-top: 9px; color: #cfe3f5; font-size: 14px; letter-spacing: .4px; }
.hero .slogan-sub .dot { margin: 0 10px; opacity: .45; }
@media (max-width: 760px) {
  .hero { padding: 24px 18px 22px; }
  .hero .slogan { font-size: 22px; letter-spacing: 1px; }
  .hero .slogan-sub { font-size: 12.5px; }
  .hero-deco .hd1 { width: 150px; right: -6%; opacity: .12; }
  .hero-deco .hd2, .hero-deco .hd3 { display: none; }
}

/* ===== 材料查询（照 MES 材料查询页，2026-11-03 用户口径） ===== */
.mat-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mat-kpi > div { background: #fbfdff; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; }
.mat-kpi .k-lb { font-size: 12px; color: var(--sub); }
.mat-kpi .k-v { font-size: 24px; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.mat-kpi .k-v-sm { font-size: 15px; line-height: 1.6; }
.mat-kpi .k-sub { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.mat-wrap { max-height: 56vh; overflow: auto; border: 1px solid #eef2f7; border-radius: 10px; }
.mat-tb thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; }
.mat-tb thead tr:nth-child(2) th { top: 38px; }
.mat-tb td { vertical-align: top; }
.mat-tb .tc { text-align: center; }
.mat-tb .tr { text-align: right; }
.mat-tb tbody tr:hover { background: #f8fbff; }
@media (max-width: 900px) { .mat-kpi { grid-template-columns: repeat(2, 1fr); } }

/* ===== 材料查询表格：定宽 + 自动换行，避免横向滚动（2026-11-03 用户口径） =====
   ★必须写 `table.tb.mat-tb`：基础样式 `table.tb th, table.tb td` 带 nowrap，
     特异性比 `.mat-tb td` 高，不盖住就会一直横着撑 */
.mat-kpi > div { padding: 8px 10px; }
.mat-kpi .k-v { font-size: 20px; }
.mat-kpi .k-v-sm { font-size: 13px; }
.mat-kpi .k-lb { font-size: 11.5px; }
.mat-kpi .k-sub { font-size: 11px; }
table.tb.mat-tb { table-layout: fixed; width: 100%; font-size: 12px; }
table.tb.mat-tb th, table.tb.mat-tb td {
  padding: 5px 7px; white-space: normal; word-break: break-word; line-height: 1.45; vertical-align: top;
}
table.tb.mat-tb thead th { font-size: 11.5px; background: #f8fafc; position: sticky; top: 0; z-index: 2; }
table.tb.mat-tb thead tr:nth-child(2) th { top: 31px; }
table.tb.mat-tb .msep { border-left: 1px solid #eef2f7; }
table.tb.mat-tb .tc { text-align: center; }
table.tb.mat-tb .tr { text-align: right; }
table.tb.mat-tb .badge { font-size: 11px; padding: 0 6px; white-space: normal; line-height: 18px; }
table.tb.mat-tb td .small, table.tb.mat-tb td.small { font-size: 11.5px; }
table.tb.mat-tb tbody tr:hover { background: #f8fbff; }
.mat-wrap { max-height: 50vh; overflow: auto; }

/* ===== 全站登录页（2026-11-03 用户口径：打开网站先登录；版式自定义，不照抄参考站） ===== */
body.is-login { background: #f4f7fb; }
body.is-login .hdr, body.is-login .footer { display: none; }
body.is-login main.wrap { max-width: none; margin: 0; padding: 0; }

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.12fr 1fr; }
.login-left { position: relative; overflow: hidden; color: #fff; padding: 54px 60px 46px; display: flex; flex-direction: column;
  background: radial-gradient(900px 420px at 88% -6%, #2f8fd0 0%, transparent 62%), linear-gradient(135deg, #0f3355, #1f4e79 55%, #2a6a9a); }
.lg-hex { position: absolute; inset: -40px; opacity: .10; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='130' viewBox='0 0 150 130'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Cpath d='M36 2 66 19v34L36 70 6 53V19z'/%3E%3Cpath d='M106 54 136 71v34l-30 17-30-17V71z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px 130px; }
.lg-brand { position: relative; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.lg-brand i { width: 34px; height: 34px; border-radius: 9px; background: #fff; color: #1f4e79;
  display: grid; place-items: center; font-style: normal; font-weight: 700; }
.lg-brand small { font-weight: 400; opacity: .75; font-size: 13px; }
.lg-slogan { position: relative; margin-top: auto; font-size: 40px; font-weight: 800; letter-spacing: 3px; line-height: 1.2; }
.lg-sub { position: relative; margin-top: 12px; font-size: 15px; color: #cfe3f5; letter-spacing: 1px; }
.lg-feat { position: relative; margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column;
  gap: 8px; color: #dbeafe; font-size: 13.5px; }
.lg-feat li::before { content: '·'; margin-right: 8px; color: #7dd3fc; }
.lg-feat b { color: #fff; font-size: 15px; }
.lg-foot { position: relative; margin-top: auto; padding-top: 26px; font-size: 12px; color: #9fc3e0; }

.login-right { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #f6f9fc; }
.login-card { width: 384px; max-width: 100%; background: #fff; border: 1px solid #e8eef6; border-radius: 16px;
  padding: 28px 26px 22px; box-shadow: 0 18px 40px rgba(15, 51, 85, .08); }
.lg-hd h2 { margin: 0; font-size: 22px; }
.lg-hd p { margin: 6px 0 20px; color: var(--sub); font-size: 13px; }
.lg-fld { display: block; margin-bottom: 14px; }
.lg-fld span { display: block; font-size: 12.5px; color: var(--sub); margin-bottom: 6px; }
.lg-fld .inp { width: 100%; height: 40px; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; margin-bottom: 14px; }
.lg-chk { font-size: 12.5px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.login-card #lgGo { width: 100%; height: 42px; font-size: 15px; letter-spacing: 4px; }
.lg-tip { margin-top: 14px; font-size: 12px; color: var(--faint); text-align: center; line-height: 1.6; }
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-left { padding: 30px 22px; min-height: 250px; }
  .lg-slogan { font-size: 26px; margin-top: 24px; letter-spacing: 2px; }
  .lg-sub { font-size: 13px; }
  .lg-feat { margin-top: 16px; }
  .lg-foot { padding-top: 16px; }
  .login-right { padding: 26px 18px 40px; }
}

/* ===== 首页全宽 + 小工具移到 Banner 右侧（2026-11-03 用户口径） ===== */
.wrap { max-width: 1760px; }
.shop-main { margin-top: 14px; }
.hero { display: flex; gap: 26px; align-items: flex-start; }
.hero .hero-in { flex: 1 1 auto; min-width: 0; max-width: 660px; }
.hero-tools { position: relative; z-index: 1; flex: 0 0 auto; width: min(46%, 700px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-self: center; }
.hero-tools button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; color: #eaf4ff; font-size: 12px; cursor: pointer; transition: .15s; line-height: 1.2; }
.hero-tools button:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .38); transform: translateY(-1px); }
.hero-tools button i { font-style: normal; font-size: 18px; line-height: 1; }
.hero-tools button span { white-space: nowrap; }
@media (max-width: 1180px) {
  .hero { flex-direction: column; }
  .hero .hero-in { max-width: 100%; width: 100%; }
  .hero-tools { width: 100%; grid-template-columns: repeat(5, minmax(0, 1fr)); align-self: stretch; }
}
@media (max-width: 760px) {
  .hero-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-tools button { font-size: 11.5px; padding: 8px 4px; }
}

/* ===== Banner 重排：统计突出放左上，标语 / 搜索下移（2026-11-03 用户口径） ===== */
.hero .hero-in { display: flex; flex-direction: column; }
.hero .stats { order: 0; margin: 0 0 16px; gap: 30px; align-items: baseline; }
.hero .stats span { font-size: 13px; color: #cfe3f5; display: inline-flex; align-items: baseline; gap: 6px; }
.hero .stats b { font-size: 32px; font-weight: 800; letter-spacing: .5px; color: #fff; margin: 0; line-height: 1; }
.hero .slogan { order: 1; font-size: 26px; letter-spacing: 1.5px; }
.hero .slogan-sub { order: 2; margin-top: 8px; }
.hero .search { order: 3; margin-top: 16px; }
@media (max-width: 760px) {
  .hero .stats { margin-bottom: 12px; gap: 20px; }
  .hero .stats b { font-size: 24px; }
  .hero .slogan { font-size: 20px; }
}

/* ===== 详情窗：左上实物图放大 + 大图区固定图纸（2026-11-03 用户口径） ===== */
.dlg.dlg-product #pdRoot .p-hero-img { width: 200px; height: 200px; }
.dlg.dlg-product #pdRoot .p-hero-img img { max-width: 92%; max-height: 186px; }
.viewer-tabs .vtab { display: inline-block; padding: 6px 14px; border-radius: 8px;
  background: #eef4fb; color: var(--pri); font-weight: 600; font-size: 13px; border: 1px solid #dbe7f5; }
@media (max-width: 1100px) {
  .dlg.dlg-product #pdRoot .p-hero-img { width: 150px; height: 150px; }
  .dlg.dlg-product #pdRoot .p-hero-img img { max-height: 138px; }
}

/* ===== 宣传标语「甬立潮头 · 紧固未来」：渐变字 + 光晕 + 扫光（2026-11-03 用户口径） ===== */
.hero .slogan {
  order: 1; color: #fff; font-size: 42px; font-weight: 900; letter-spacing: 6px; line-height: 1.15;
  filter: drop-shadow(0 6px 22px rgba(246, 201, 69, .42));
  -webkit-text-stroke: .6px rgba(255, 240, 190, .35);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .slogan {
    color: transparent;
    background-image: linear-gradient(100deg, #fffbe8 0%, #ffe9a8 22%, #f6c945 44%, #fff6d0 58%, #e0a92e 78%, #ffe9a8 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text; background-clip: text;
    animation: sloganShine 8s ease-in-out infinite;
  }
}
@keyframes sloganShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .slogan { animation: none; }
}
@media (max-width: 1180px) {
  .hero .slogan { font-size: 34px; letter-spacing: 4px; }
}
@media (max-width: 760px) {
  .hero .slogan { font-size: 26px; letter-spacing: 2px; }
}

/* 登录页标语同步做渐变渲染（与首页一致） */
.login-left .lg-slogan {
  color: #fff; font-weight: 900; letter-spacing: 4px;
  filter: drop-shadow(0 6px 22px rgba(246, 201, 69, .42));
  -webkit-text-stroke: .6px rgba(255, 240, 190, .35);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .login-left .lg-slogan {
    color: transparent;
    background-image: linear-gradient(100deg, #fffbe8 0%, #ffe9a8 22%, #f6c945 44%, #fff6d0 58%, #e0a92e 78%, #ffe9a8 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text; background-clip: text;
    animation: sloganShine 8s ease-in-out infinite;
  }
}

/* ===== 品牌 Logo（2026-11-03 用户口径：用客户的 YD 标志图） ===== */
.brand-logo { height: 36px; width: auto; display: block; }
.lg-brand .lg-logo { height: 34px; width: auto; display: block; background: #fff;
  border-radius: 8px; padding: 4px 8px; box-sizing: content-box; }
@media (max-width: 760px) { .brand-logo { height: 30px; } }

/* ===== 标语换字体（2026-11-03 用户口径）：思源黑体 / Noto Sans SC 900，比合成粗体更硬朗 ===== */
.hero .slogan, .login-left .lg-slogan {
  font-family: "Noto Sans SC", "Source Han Sans SC", "思源黑体 CN", "思源黑体", "微软雅黑", sans-serif;
  font-weight: 900;
  font-synthesis: none;              /* 不再让浏览器"假装加粗"，用字体自带的 Black 字重 */
  letter-spacing: 4px;
}
@media (max-width: 1180px) { .hero .slogan { letter-spacing: 3px; } }
@media (max-width: 760px) { .hero .slogan { letter-spacing: 2px; } }

/* ===== Banner 背景重做（2026-11-03）：深海军蓝 + 斜向光束 + 六角纹理 + 红色品牌线 ===== */
.hero {
  background:
    radial-gradient(1200px 520px at 88% -14%, rgba(56, 189, 248, .50) 0%, rgba(56, 189, 248, 0) 62%),
    radial-gradient(900px 460px at -10% 115%, rgba(37, 99, 235, .45) 0%, rgba(37, 99, 235, 0) 60%),
    linear-gradient(118deg, #082742 0%, #103a5f 36%, #1a5583 68%, #2a76b0 100%);
  box-shadow: 0 20px 48px -20px rgba(6, 34, 60, .65), inset 0 1px 0 rgba(255, 255, 255, .10);
}
.hero::before {                       /* 两道斜向光束，增加纵深 */
  content: ''; position: absolute; inset: -20% -10%; pointer-events: none;
  background:
    linear-gradient(114deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.10) 48%, rgba(255,255,255,0) 56%),
    linear-gradient(114deg, rgba(255,255,255,0) 62%, rgba(255,255,255,.055) 68%, rgba(255,255,255,0) 74%);
}
.hero::after {                        /* 底部品牌红条（与 Logo 红色呼应） */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #b81f27 0%, #e63946 16%, rgba(230, 57, 70, 0) 52%);
}
.hero-deco .hexg { opacity: .07; inset: -20px; }
/* 右上角一张放大的实物图做底纹（半透明、被 Banner 裁切），工具按钮浮在它上面 */
.hero-deco .hd { position: absolute; opacity: .11; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .35)); }
.hero-deco .hd1 { right: 1%; top: -24%; width: 320px; transform: rotate(-12deg); }
@media (max-width: 1180px) {
  .hero-deco .hd1 { width: 200px; top: -16%; opacity: .09; }
}

/* 导航选中态：整块品牌蓝 + 微微上浮（用户口径：点哪个哪个蓝底） */
.nav a.on {
  background: linear-gradient(180deg, #2a6da3, #1b4f7a);
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(27, 79, 122, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.nav a.on:hover { background: linear-gradient(180deg, #2f78b2, #1f588a); }

/* ===== Banner 背景：多种紧固件线稿元素（2026-11-03） ===== */
.hero-deco .fx {
  position: absolute; fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2.2;
  stroke-linejoin: round; stroke-linecap: round; opacity: .12; pointer-events: none;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .22));
}
.hero-deco .fx-nut    { right: 47%; top: 2%;      width: 118px; opacity: .10; transform: rotate(12deg); }
.hero-deco .fx-bolt   { right: 0;   bottom: -18%; width: 320px; opacity: .13; transform: rotate(-10deg); }
.hero-deco .fx-screw  { right: 13%; top: -26%;    width: 92px;  opacity: .10; transform: rotate(16deg); }
.hero-deco .fx-washer { right: 60%; bottom: -26%; width: 140px; opacity: .09; transform: rotate(-6deg); }
.hero-deco .fx-spring { left: 41%;  top: -22%;    width: 112px; opacity: .08; transform: rotate(8deg); }
.hero-deco .fx-rivet  { right: 31%; bottom: -34%; width: 82px;  opacity: .09; transform: rotate(-18deg); }
@media (max-width: 1180px) {
  .hero-deco .fx-screw, .hero-deco .fx-spring, .hero-deco .fx-rivet { display: none; }
  .hero-deco .fx-bolt { width: 220px; bottom: -26%; opacity: .10; }
  .hero-deco .fx-nut { right: auto; left: 4%; top: 4%; width: 84px; opacity: .07; }
  .hero-deco .fx-washer { right: 2%; bottom: -18%; width: 96px; opacity: .07; }
}

/* ===== 头部：VIP 等级徽章 + 账号图标菜单（2026-11-03 用户口径） ===== */
.vip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px; cursor: default; white-space: nowrap;
  color: #7c4a03; background: linear-gradient(135deg, #fde68a, #fbbf24); border: 1px solid #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, .28); }
.vip-1 { color: #475569; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border-color: #cbd5e1; box-shadow: none; }
.vip-2 { color: #475569; background: linear-gradient(135deg, #f8fafc, #cbd5e1); border-color: #94a3b8; }
.vip-3 { color: #7c4a03; background: linear-gradient(135deg, #fde68a, #fbbf24); border-color: #f59e0b; }
.vip-4 { color: #334155; background: linear-gradient(135deg, #f1f5f9, #94a3b8); border-color: #64748b; }
.vip-5 { color: #075985; background: linear-gradient(135deg, #e0f2fe, #7dd3fc); border-color: #38bdf8;
  box-shadow: 0 2px 10px rgba(56, 189, 248, .35); }
.usr-wrap { position: relative; }
.usr-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.usr-btn:hover { background: #eef4fb; border-color: #c7d2df; }
.usr-menu { position: absolute; right: 0; top: 40px; min-width: 132px; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  display: none; z-index: 60; }
.usr-menu.on { display: block; }
.usr-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px;
  border-radius: 8px; cursor: pointer; font-size: 13px; color: #334155; }
.usr-menu button:hover { background: #eef4fb; color: var(--pri); }
@media (max-width: 760px) { .who { display: none; } .vip { height: 22px; font-size: 11px; padding: 0 8px; } }

/* ===== VIP 悬停提示（2026-11-03 用户口径：两行；第二行用下一级徽章 + 还需积分） ===== */
.vip { position: relative; }
.vip-tip { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 9px 12px;
  border-radius: 10px; background: #0f172a; color: #cbd5e1; font-weight: 400; font-size: 12px; line-height: 1.9;
  text-align: left; white-space: nowrap; box-shadow: 0 14px 30px rgba(15, 23, 42, .28);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; z-index: 80; cursor: default; }
.vip-tip::before { content: ''; position: absolute; top: -5px; right: 16px; width: 10px; height: 10px;
  background: #0f172a; transform: rotate(45deg); border-radius: 2px; }
.vip:hover .vip-tip { opacity: 1; visibility: visible; transform: translateY(0); }
.vip-tip .vt-row { display: flex; align-items: center; gap: 6px; }
.vip-tip b { color: #fff; font-size: 13.5px; font-weight: 700; }
.vip-chip { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 8px;
  border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid transparent; }
.vip-chip.vip-1 { color: #475569; background: #e2e8f0; border-color: #cbd5e1; }
.vip-chip.vip-2 { color: #475569; background: #e2e8f0; border-color: #94a3b8; }
.vip-chip.vip-3 { color: #7c4a03; background: linear-gradient(135deg, #fde68a, #fbbf24); border-color: #f59e0b; }
.vip-chip.vip-4 { color: #334155; background: linear-gradient(135deg, #f1f5f9, #94a3b8); border-color: #64748b; }
.vip-chip.vip-5 { color: #075985; background: linear-gradient(135deg, #e0f2fe, #7dd3fc); border-color: #38bdf8; }

/* ===== 登录页改版（2026-11-03 用户口径）：全屏背景 + 居中卡片 ===== */
body.is-login { background: #05203a; }
.lg-screen { position: relative; min-height: 100vh; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 560px at 84% -8%, rgba(56, 189, 248, .45) 0%, rgba(56, 189, 248, 0) 62%),
    radial-gradient(820px 620px at -10% 112%, rgba(37, 99, 235, .42) 0%, rgba(37, 99, 235, 0) 60%),
    linear-gradient(158deg, #04203a 0%, #0a3355 36%, #124a73 68%, #1a5b8c 100%); }
.lg-screen::before {                      /* 斜向细纹，替代原来的六角平铺 */
  content: ''; position: absolute; inset: -30%; pointer-events: none; opacity: .45;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .055) 0 2px, rgba(255, 255, 255, 0) 2px 30px);
  transform: rotate(-4deg); }
.lg-screen::after {                       /* 顶部柔光 */
  content: ''; position: absolute; left: 0; right: 0; top: -30%; height: 70%; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(148, 210, 255, .18) 0%, rgba(148, 210, 255, 0) 70%); }
.lg-bg { position: absolute; inset: 0; pointer-events: none; }
.lg-deco { position: absolute; opacity: .13; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }
.lg-deco.d1 { right: -5%; top: -10%; width: 540px; transform: rotate(-14deg); }
.lg-deco.d2 { left: -7%; bottom: -16%; width: 430px; transform: rotate(12deg); opacity: .10; }
.lg-deco.d3 { right: 16%; bottom: -26%; width: 300px; transform: rotate(-6deg); opacity: .08; }
.lg-brandbar { position: absolute; left: 42px; top: 30px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.lg-brandbar .lg-logo { height: 40px; width: auto; background: #fff; border-radius: 10px; padding: 5px 9px; box-sizing: content-box; }
.lg-brandbar span { font-size: 17px; font-weight: 700; letter-spacing: .4px; }
.lg-brandbar small { font-weight: 400; opacity: .78; font-size: 12.5px; }
.lg-center { position: relative; z-index: 2; min-height: 100vh; padding: 92px 20px 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.lg-center .lg-slogan { font-size: 42px; letter-spacing: 6px; }
.lg-center .lg-sub { color: #cfe3f5; font-size: 14px; letter-spacing: .5px; }
.lg-center .login-card { width: 396px; max-width: 100%; margin-top: 8px; text-align: left;
  background: #fff; color: #0f172a; border-radius: 16px; padding: 26px 26px 20px;
  border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 30px 70px rgba(2, 20, 38, .45); }
.lg-center .lg-foot { margin-top: 12px; font-size: 12px; color: rgba(207, 227, 245, .6); }
@media (max-width: 900px) {
  .lg-brandbar { left: 20px; top: 20px; }
  .lg-brandbar .lg-logo { height: 32px; }
  .lg-brandbar span { font-size: 15px; }
  .lg-center { padding-top: 78px; }
  .lg-center .lg-slogan { font-size: 26px; letter-spacing: 3px; }
  .lg-center .lg-sub { font-size: 12.5px; }
  .lg-deco.d1 { width: 260px; right: -14%; opacity: .10; }
  .lg-deco.d2 { display: none; }
  .lg-deco.d3 { display: none; }
}

/* 登录页品牌条：只留 PNG Logo（2026-11-03 用户口径：去掉「甬标标准件 · 客户中心」文字） */
.lg-brandbar { left: 34px; top: 26px; }
.lg-brandbar .lg-logo { height: 46px; padding: 7px 12px; border-radius: 12px;
  box-shadow: 0 10px 26px rgba(2, 20, 38, .35); }
@media (max-width: 900px) {
  .lg-brandbar { left: 18px; top: 16px; }
  .lg-brandbar .lg-logo { height: 36px; padding: 5px 9px; }
}

/* 登录页 Logo 去白底（2026-11-03 用户口径：不要白色背景），底部同步说明也去掉 */
.lg-brandbar .lg-logo { background: none; padding: 0; border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 6px 18px rgba(2, 20, 38, .45)); }
.lg-center .lg-foot { display: none; }

/* ===== 登录页改浅色背景（2026-11-03 用户口径：深底上 LOGO 渲染不好，换背景颜色） ===== */
body.is-login { background: #eef4fb; }
.lg-screen {
  color: #0f172a;
  background:
    radial-gradient(1100px 620px at 84% -10%, rgba(56, 189, 248, .28) 0%, rgba(56, 189, 248, 0) 62%),
    radial-gradient(900px 640px at -8% 112%, rgba(37, 99, 235, .16) 0%, rgba(37, 99, 235, 0) 60%),
    linear-gradient(158deg, #fbfdff 0%, #eef5fc 34%, #dfeaf6 66%, #cfdff0 100%);
}
.lg-screen::before {
  background: repeating-linear-gradient(115deg, rgba(31, 78, 121, .055) 0 2px, rgba(31, 78, 121, 0) 2px 30px);
  opacity: .7;
}
.lg-screen::after { background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 70%); }
.lg-deco { opacity: .10; filter: none; }
.lg-deco.d2 { opacity: .08; }
.lg-deco.d3 { opacity: .07; }
.lg-brandbar .lg-logo { filter: drop-shadow(0 4px 12px rgba(15, 51, 85, .18)); }
.lg-center { padding: 24px 20px; }
.lg-center .lg-slogan {
  color: #0f3355;
  filter: drop-shadow(0 6px 16px rgba(31, 78, 121, .18));
  -webkit-text-stroke: 0;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .lg-center .lg-slogan {
    color: transparent;
    background-image: linear-gradient(100deg, #12395c 0%, #1f6fa8 30%, #4aa3d8 48%, #1f6fa8 68%, #12395c 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    animation: sloganShine 8s ease-in-out infinite;
  }
}
.lg-center .lg-sub { color: #47617a; }
.lg-center .login-card { border: 1px solid #dbe7f5; box-shadow: 0 26px 60px rgba(15, 51, 85, .18); }

/* 登录页：清掉旧分栏时 `.lg-slogan` 的 margin-top:auto（否则整组被推到底部，看着没居中） */
.lg-center .lg-slogan { margin-top: 0; }

/* ===== 登录页背景改「图纸风」：网格 + 尺寸线 + 图纸线稿（2026-11-03 用户口径） ===== */
.lg-screen {
  color: #0f172a;
  background-color: #f7fafd;
  background-image:
    linear-gradient(rgba(31, 78, 121, .11) 1px, rgba(31, 78, 121, 0) 1px),
    linear-gradient(90deg, rgba(31, 78, 121, .11) 1px, rgba(31, 78, 121, 0) 1px),
    linear-gradient(rgba(31, 78, 121, .045) 1px, rgba(31, 78, 121, 0) 1px),
    linear-gradient(90deg, rgba(31, 78, 121, .045) 1px, rgba(31, 78, 121, 0) 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.lg-screen::before {                       /* 细纹去掉，改成一圈极淡的纸边阴影 */
  inset: 0; opacity: 1; transform: none;
  background: radial-gradient(120% 90% at 50% 45%, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .55) 42%, rgba(240, 245, 251, 0) 78%);
}
.lg-screen::after { display: none; }
.lg-bg { z-index: 1; }
.lg-deco { opacity: .17; filter: none; mix-blend-mode: multiply; }
.lg-deco.d1 { right: -4%; top: -8%; width: 620px; transform: rotate(-6deg); opacity: .16; }
.lg-deco.d2 { left: -8%; bottom: -14%; width: 500px; transform: rotate(8deg); opacity: .13; }
.lg-deco.d3 { right: 14%; bottom: -26%; width: 360px; transform: rotate(-3deg); opacity: .10; }
.lg-dims { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lg-dims .dim { position: absolute; background: rgba(31, 78, 121, .22); }
.lg-dims .dim::before, .lg-dims .dim::after {   /* 尺寸线两端的界线 */
  content: ''; position: absolute; background: rgba(31, 78, 121, .32); }
.dim-x { left: 5%; right: 5%; top: 104px; height: 1px; }
.dim-x::before, .dim-x::after { top: -6px; width: 1px; height: 13px; }
.dim-x::before { left: 0; } .dim-x::after { right: 0; }
.dim-x2 { left: 8%; right: 22%; bottom: 78px; height: 1px; opacity: .7; }
.dim-x2::before, .dim-x2::after { top: -5px; width: 1px; height: 11px; }
.dim-x2::before { left: 0; } .dim-x2::after { right: 0; }
.dim-y { top: 9%; bottom: 9%; left: 64px; width: 1px; }
.dim-y::before, .dim-y::after { left: -6px; width: 13px; height: 1px; }
.dim-y::before { top: 0; } .dim-y::after { bottom: 0; }
.dim-y2 { top: 18%; bottom: 26%; right: 58px; width: 1px; opacity: .7; }
.dim-y2::before, .dim-y2::after { left: -5px; width: 11px; height: 1px; }
.dim-y2::before { top: 0; } .dim-y2::after { bottom: 0; }
.lg-circ { position: absolute; border: 1px dashed rgba(31, 78, 121, .18); border-radius: 50%; }
.lg-circ.c1 { width: 420px; height: 420px; left: -140px; top: 42%; }
.lg-circ.c2 { width: 260px; height: 260px; right: -70px; top: 12%; border-style: dashed; opacity: .8; }
.lg-center { z-index: 3; }
.lg-center .lg-slogan { color: #12395c; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .9)); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .lg-center .lg-slogan {
    color: transparent;
    background-image: linear-gradient(100deg, #0f3355 0%, #1b5c8d 32%, #2f86c0 48%, #1b5c8d 66%, #0f3355 100%);
  }
}
.lg-center .lg-sub { color: #4a6478; }
.lg-center .login-card { border: 1px solid #cfdded; box-shadow: 0 18px 44px rgba(15, 51, 85, .16), 0 1px 0 #fff inset; }
.lg-brandbar { z-index: 4; }
.lg-brandbar .lg-logo { filter: none; }
@media (max-width: 900px) {
  .lg-dims .dim-x2, .lg-dims .dim-y2, .lg-circ.c2 { display: none; }
  .lg-deco.d1 { width: 300px; opacity: .12; }
}

/* 登录页左上角：Logo + 公司名称（2026-11-03 用户口径） */
.lg-brandbar { gap: 14px; align-items: center; }
.lg-brandbar .lg-co { position: relative; padding-left: 15px; font-size: 16.5px; font-weight: 600;
  letter-spacing: 1.2px; color: #12395c; white-space: nowrap; }
.lg-brandbar .lg-co::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px; background: linear-gradient(180deg, rgba(31, 78, 121, 0), rgba(31, 78, 121, .38), rgba(31, 78, 121, 0)); }
@media (max-width: 900px) {
  .lg-brandbar { gap: 9px; }
  .lg-brandbar .lg-co { font-size: 13px; letter-spacing: .4px; padding-left: 10px; }
  .lg-brandbar .lg-co::before { height: 16px; }
}
@media (max-width: 520px) { .lg-brandbar .lg-co { font-size: 11.5px; } }


/* ============================================================== 五工位冷镦成型动画（登录页背景，2026-11-04） */
.lg-mach {
  position: absolute;
  left: 0; right: 0; bottom: 1vh;
  display: flex; justify-content: center;
  z-index: 1; pointer-events: none; opacity: .82;
}
.lg-mach svg { width: min(1220px, 96vw); height: auto; display: block; }

/* 冲头：每次下压到工件上再回位 */
.lg-mach .punch { transform-box: fill-box; animation: lgPunch 2.6s cubic-bezier(.4, 0, .5, 1) infinite; }
.lg-mach .part  { transform-box: fill-box; animation: lgPart 2.6s ease-in-out infinite; }
.lg-mach .die   { animation: lgDie 2.6s ease-in-out infinite; }
.lg-mach .spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: lgSpark 2.6s ease-out infinite; }
.lg-mach .wire  { stroke-dasharray: 12 8; animation: lgWire .7s linear infinite; }
.lg-mach .flywheel { transform-box: fill-box; transform-origin: center; animation: lgSpin 5.2s linear infinite; }
.lg-mach .mover { animation: lgMove 5.2s ease-in-out infinite; }

/* 五个工位错开 0.52s（2.6s / 5） */
.lg-mach .s1 .punch, .lg-mach .s1 .part, .lg-mach .s1 .die, .lg-mach .s1 .spark { animation-delay: 0s; }
.lg-mach .s2 .punch, .lg-mach .s2 .part, .lg-mach .s2 .die, .lg-mach .s2 .spark { animation-delay: .43s; }
.lg-mach .s3 .punch, .lg-mach .s3 .part, .lg-mach .s3 .die, .lg-mach .s3 .spark { animation-delay: .87s; }
.lg-mach .s4 .punch, .lg-mach .s4 .part, .lg-mach .s4 .die, .lg-mach .s4 .spark { animation-delay: 1.3s; }
.lg-mach .s5 .punch, .lg-mach .s5 .part, .lg-mach .s5 .die, .lg-mach .s5 .spark { animation-delay: 1.73s; }
.lg-mach .s6 .punch, .lg-mach .s6 .part, .lg-mach .s6 .die, .lg-mach .s6 .spark { animation-delay: 2.17s; }

@keyframes lgPunch {
  0%, 100% { transform: translateY(-34px); }
  34%, 56% { transform: translateY(46px); }
}
@keyframes lgPart {
  0%, 24% { opacity: .62; }
  34%, 58% { opacity: 1; }
  100% { opacity: .62; }
}
@keyframes lgDie {
  0%, 100% { fill: rgba(125,211,252,.10); stroke: rgba(190,230,255,.6); }
  34%, 56% { fill: rgba(255,236,180,.28); stroke: rgba(255,236,180,.95); }
}
@keyframes lgSpark {
  0%, 30% { opacity: 0; transform: scale(.4); }
  36% { opacity: 1; transform: scale(1.05); }
  52% { opacity: 0; transform: scale(1.35); }
  100% { opacity: 0; }
}
@keyframes lgWire { to { stroke-dashoffset: -40; } }
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgMove {
  0%, 10% { transform: translateX(176px); }
  17%, 27% { transform: translateX(336px); }
  34%, 44% { transform: translateX(496px); }
  50%, 60% { transform: translateX(656px); }
  67%, 77% { transform: translateX(816px); }
  84%, 94% { transform: translateX(976px); }
  100% { transform: translateX(176px); }
}
@media (max-width: 900px) {
  .lg-mach { opacity: .5; bottom: 0; }
  .lg-mach svg { width: 150vw; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-mach .punch, .lg-mach .part, .lg-mach .die, .lg-mach .spark,
  .lg-mach .wire, .lg-mach .flywheel, .lg-mach .mover { animation: none; }
}


/* ============================================================== 登录卡片缩小、上移（2026-11-04）：不要压住底部成型动画 */
.lg-center {
  justify-content: flex-start;
  padding: 9vh 20px 26vh;
  gap: 10px;
}
.lg-center .lg-slogan { font-size: 30px; letter-spacing: 4px; }
.lg-center .lg-sub { font-size: 12.5px; }
.lg-center .login-card {
  width: 330px;
  padding: 18px 18px 14px;
  margin-top: 4px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(4, 20, 40, .28);
}
.login-card .lg-hd h2 { font-size: 18px; }
.login-card .lg-hd p { margin: 4px 0 12px; font-size: 12px; }
.login-card .lg-fld { margin-bottom: 10px; }
.login-card .lg-fld span { font-size: 12px; margin-bottom: 4px; }
.login-card .lg-fld .inp { height: 34px; font-size: 13px; }
.login-card .lg-row { margin-bottom: 10px; min-height: 20px; }
.login-card .lg-chk, .login-card .small { font-size: 12px; }
.login-card #lgGo { height: 36px; font-size: 14px; letter-spacing: 3px; }
.login-card .lg-tip { margin-top: 9px; font-size: 11px; }
@media (max-height: 760px) {
  .lg-center { padding-top: 6vh; padding-bottom: 22vh; }
  .lg-center .lg-slogan { font-size: 26px; }
}


/* ============================================================== 标语移到右上角（2026-11-04） */
.lg-center { position: relative; }
.lg-center .lg-slogan {
  position: absolute;
  right: 44px;
  top: 26px;
  margin: 0;
  text-align: right;
  font-size: 26px;
  letter-spacing: 3px;
}
.lg-center .lg-sub {
  position: absolute;
  right: 44px;
  top: 70px;
  margin: 0;
  text-align: right;
  font-size: 12.5px;
  letter-spacing: .5px;
}
@media (max-width: 900px) {
  .lg-center .lg-slogan { right: 20px; top: 18px; font-size: 18px; letter-spacing: 2px; }
  .lg-center .lg-sub { right: 20px; top: 50px; font-size: 11px; }
}


/* ============================================================== 登录卡片下移到页面中部偏下（2026-11-04） */
.lg-center {
  padding: 24vh 20px 26vh;
}
@media (max-height: 820px) {
  .lg-center { padding-top: 18vh; padding-bottom: 24vh; }
}
@media (max-height: 700px) {
  .lg-center { padding-top: 14vh; padding-bottom: 22vh; }
}


/* ============================================================== 首页 Banner 成型动画（2026-11-04，和登录页不同） */
.hero-anim {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; opacity: .72;
  overflow: hidden;
}
.hero-anim svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.hero .hero-in, .hero .hero-tools { position: relative; z-index: 2; }
.hero-anim .hram { transform-box: fill-box; animation: hRam 2.2s cubic-bezier(.4,0,.5,1) infinite; }
.hero-anim .hwheel { transform-box: fill-box; transform-origin: center; animation: hSpin 4.4s linear infinite; }
.hero-anim .hcoil { transform-box: fill-box; transform-origin: center; animation: hCoil 9s linear infinite; }
.hero-anim .hbelt { stroke-dasharray: 14 10; animation: hBelt .8s linear infinite; }
.hero-anim .hmove { animation: hMove 7s cubic-bezier(.45,.05,.55,.95) infinite; }
.hero-anim .hp { opacity: .55; animation: hGlow 2.2s ease-in-out infinite; }
@keyframes hRam {
  0%, 100% { transform: translateY(-22px); }
  40%, 58% { transform: translateY(30px); }
}
@keyframes hSpin { to { transform: rotate(-360deg); } }
@keyframes hCoil { to { transform: rotate(360deg); } }
@keyframes hBelt { to { stroke-dashoffset: -48; } }
@keyframes hMove {
  0% { transform: translate(470px, 0); opacity: 0; }
  10% { opacity: 1; }
  26%, 36% { transform: translate(640px, 0); }
  52%, 62% { transform: translate(810px, 0); }
  80%, 90% { transform: translate(980px, 0); }
  100% { transform: translate(1080px, 0); opacity: 0; }
}
/* 四工位错开（2.4s / 4） */
.hero-anim .h1 .hram, .hero-anim .h1 .hpart, .hero-anim .h1 .hspark, .hero-anim .h1 .hdie { animation-delay: 0s; }
.hero-anim .h2 .hram, .hero-anim .h2 .hpart, .hero-anim .h2 .hspark, .hero-anim .h2 .hdie { animation-delay: .6s; }
.hero-anim .h3 .hram, .hero-anim .h3 .hpart, .hero-anim .h3 .hspark, .hero-anim .h3 .hdie { animation-delay: 1.2s; }
.hero-anim .h4 .hram, .hero-anim .h4 .hpart, .hero-anim .h4 .hspark, .hero-anim .h4 .hdie { animation-delay: 1.8s; }
.hero-anim .hcrank { transform-box: fill-box; transform-origin: center; animation: hSpin 3.6s linear infinite; }
.hero-anim .hrod { animation: hRod 2.4s ease-in-out infinite; }
.hero-anim .hwire { animation: hBelt .7s linear infinite; }
.hero-anim .hpart { animation: hGlow 2.4s ease-in-out infinite; }
.hero-anim .hdie { animation: hDieGlow 2.4s ease-in-out infinite; }
.hero-anim .hspark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hSpark 2.4s ease-out infinite; }
@keyframes hRod {
  0%, 100% { transform: translateX(-8px); }
  40%, 58% { transform: translateX(10px); }
}
@keyframes hDieGlow {
  0%, 100% { fill: rgba(160,220,255,.12); stroke: rgba(210,240,255,.6); }
  36%, 56% { fill: rgba(255,236,180,.25); stroke: rgba(255,236,180,.95); }
}
@keyframes hSpark {
  0%, 30% { opacity: 0; transform: scale(.4); }
  36% { opacity: 1; transform: scale(1.05); }
  52% { opacity: 0; transform: scale(1.3); }
  100% { opacity: 0; }
}
@keyframes hGlow { 0%,100% { opacity:.5; } 45%,60% { opacity:.95; } }
@media (max-width: 900px) {
  .hero-anim { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim .hram, .hero-anim .hwheel, .hero-anim .hcoil,
  .hero-anim .hbelt, .hero-anim .hmove, .hero-anim .hp { animation: none; }
}


/* ============================================================== Banner 动画尺寸修正（2026-11-04）：只占右侧、不超出横幅 */
.hero-anim {
  left: auto; right: 0;
  width: min(1120px, 64%);
  height: 100%;
  opacity: .8;
}
.hero-anim svg { width: 100%; height: 100%; }
.hero-anim .hwire { animation: none; }
@keyframes hMove {
  0% { transform: translate(500px, 0); opacity: 0; }
  10% { opacity: 1; }
  26%, 36% { transform: translate(660px, 0); }
  52%, 62% { transform: translate(820px, 0); }
  80%, 90% { transform: translate(980px, 0); }
  100% { transform: translate(1060px, 0); opacity: 0; }
}
@media (max-width: 900px) {
  .hero-anim { width: 100%; opacity: .55; }
}


/* ============================================================== Banner 动画移到左侧、缩小（2026-11-04）：不与右侧功能按钮重叠 */
.hero-anim {
  left: 0; right: auto;
  width: min(760px, 46%);
  height: 100%;
  opacity: .42;
}
.hero-anim svg { width: 100%; height: 100%; }
@media (max-width: 1100px) {
  .hero-anim { width: 60%; opacity: .3; }
}


/* ============================================================== 搜索栏放到右侧底部、图标上移（2026-11-04） */
.hero { position: relative; min-height: 268px; }
.hero-tools { align-self: flex-start; margin-top: -6px; }
.hero .search {
  position: absolute;
  right: 32px;
  bottom: 18px;
  width: min(46%, 700px);
  max-width: none;
  margin: 0;
  z-index: 2;
}
.hero .search .inp { height: 40px; }
@media (max-width: 1180px) {
  .hero .search { position: static; width: auto; margin-top: 14px; }
  .hero { min-height: 0; }
  .hero-tools { margin-top: 0; }
}


/* ============================================================== 让搜索栏以 banner 为定位基准（2026-11-04）
   .hero-in 原来是 position:relative，导致 absolute 的搜索框被约束在左侧 660px 里 */
.hero .hero-in { position: static; z-index: auto; }
.hero { position: relative; }
.hero .search {
  position: absolute;
  right: 32px;
  bottom: 18px;
  width: min(46%, 700px);
  max-width: none;
  margin: 0;
  z-index: 3;
}
@media (max-width: 1180px) {
  .hero .search { position: static; width: auto; margin-top: 14px; }
  .hero .hero-in { position: relative; }
}


/* ============================================================== 搜索框加宽左移（2026-11-04） */
.hero .search { width: min(52%, 780px); }


/* ============================================================== 搜索框缩回与图标区同宽（2026-11-04） */
.hero .search { width: min(46%, 700px); }


/* 备案信息（2026-11-04） */
.footer .icp { margin-top: 6px; font-size: 12px; opacity: .85; }
.footer .icp a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.footer .icp a:hover { color: var(--pri); }

/* ===== 图纸尺寸标注（2026-11-04）：选规格/长度后把数值标到图纸上 ===== */
.viewer-canvas { position: relative; }
.dim-layer { position: absolute; inset: 0; pointer-events: none; font-size: 12.5px; }
.dim-layer .dim {
  position: absolute; padding: 2px 8px; border-radius: 6px;
  background: rgba(255,255,255,.92); color: #1d4ed8; border: 1px solid #bfdbfe;
  font-weight: 600; box-shadow: 0 2px 6px rgba(30,64,175,.08); white-space: nowrap;
}
.dim-layer .dim-l { left: 50%; bottom: 8%; transform: translateX(-50%); }
.dim-layer .dim-d { right: 6%; top: 46%; color: #b91c1c; border-color: #fecaca; background: rgba(255,255,255,.95); }
.dim-layer .dim-p { left: 46%; top: 14%; color: #7c3aed; border-color: #ddd6fe; }
.dim-layer .dim-rest {
  position: absolute; right: 3%; top: 4%; max-width: 42%;
  font-size: 11.5px; color: #64748b; text-align: right; line-height: 1.7;
}
@media (max-width: 820px) { .dim-layer { font-size: 11px; } }
/* 图纸 + 标注层同一个坐标系 */
.viewer-canvas .dim-wrap { position: relative; display: inline-block; max-width: 100%; }
.viewer-canvas .dim-wrap > img { display: block; max-width: 100%; height: auto; }
.viewer-canvas .dim-layer { position: absolute; inset: 0; }
.dim-layer .dim-pt { transform: translate(-50%, 0); font-size: 12px; padding: 1px 6px; }
.viewer-canvas .dim-layer { pointer-events: none; } /* 标注层不拦点击，保证下拉可选 */

/* 图纸 canvas（标注直接画在图上） */
.viewer-canvas canvas#galCanvas { max-width: 100%; max-height: 520px; display: block; }
.dlg.dlg-product #pdRoot .viewer-canvas canvas#galCanvas { max-height: 100%; }
