:root{
  --zh-primary:#1f6feb;
  --zh-bg:#eef1f6;
  --zh-side:#0f1c2e;
  --zh-side-2:#162536;
  --zh-card:#fff;
  --zh-border:#e2e8f0;
  --zh-text:#243044;
  --zh-muted:#6b7a90;
  --zh-fs:12px;
  --zh-fs-sm:11px;
  --zh-fs-lg:13px;
  --el-font-size-base:12px;
}
*{box-sizing:border-box}
html,body,#app{
  height:100%;margin:0;
  font-family:"Source Han Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:var(--zh-fs);color:var(--zh-text);background:var(--zh-bg);
}
a{color:var(--zh-primary);text-decoration:none}
.zh-login{
  min-height:100%;display:flex;align-items:center;justify-content:center;
  background:
    radial-gradient(1000px 420px at 10% -10%, rgba(31,111,235,.22), transparent 60%),
    linear-gradient(135deg,#0b1524 0%,#143056 45%,#0f2744 100%);
}
.zh-login-card{
  width:380px;background:rgba(255,255,255,.97);border-radius:10px;padding:24px 22px 18px;
  box-shadow:0 16px 40px rgba(0,0,0,.25);
}
.zh-login-brand{font-size:18px;font-weight:700;letter-spacing:.3px;margin-bottom:4px}
.zh-login-sub{color:var(--zh-muted);font-size:var(--zh-fs-sm);margin-bottom:16px}
.zh-shell{display:flex;height:100%}
.zh-side{
  width:188px;background:linear-gradient(180deg,var(--zh-side),var(--zh-side-2));
  color:#d7e3f4;display:flex;flex-direction:column;flex-shrink:0;
}
.zh-logo{padding:12px 12px 10px;border-bottom:1px solid rgba(255,255,255,.08)}
.zh-logo .t{font-size:13px;font-weight:700;color:#fff;line-height:1.3}
.zh-logo .s{font-size:10px;opacity:.6;margin-top:2px}
.zh-menu{flex:1;overflow:auto;padding:6px}
.zh-menu .el-menu{border-right:none;background:transparent;--el-menu-item-height:32px;--el-menu-sub-item-height:30px}
.zh-menu .el-menu-item,
.zh-menu .el-sub-menu__title{
  color:#c7d5ea!important;height:32px!important;line-height:32px!important;
  border-radius:6px;margin:1px 0;font-size:12px!important;padding:0 10px!important;
}
.zh-menu .el-sub-menu .el-menu-item{padding-left:28px!important;min-width:auto;font-size:12px!important}
.zh-menu .el-sub-menu__title{font-weight:600;color:#9eb2cc!important}
.zh-menu .el-menu-item:hover,.zh-menu .el-sub-menu__title:hover{background:rgba(255,255,255,.06)!important}
.zh-menu .el-menu-item.is-active{background:rgba(31,111,235,.3)!important;color:#fff!important}
.zh-menu .el-sub-menu__icon-arrow{margin-top:-5px;font-size:12px}
.zh-main{flex:1;display:flex;flex-direction:column;min-width:0}
.zh-top{
  height:42px;background:#fff;border-bottom:1px solid var(--zh-border);
  display:flex;align-items:center;justify-content:space-between;padding:0 12px;
}
.zh-top .crumb{font-size:var(--zh-fs-lg);font-weight:600}
.zh-body{flex:1;overflow:auto;padding:10px}
.zh-card{
  background:var(--zh-card);border:1px solid var(--zh-border);border-radius:8px;padding:10px;
  box-shadow:0 1px 1px rgba(16,24,40,.02);
}
.zh-toolbar{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
.zh-toolbar .spacer{flex:1}
.zh-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}
.zh-stat{
  background:#fff;border:1px solid var(--zh-border);border-radius:8px;padding:10px 12px;
  position:relative;overflow:hidden;
}
.zh-stat::after{content:"";position:absolute;right:-8px;top:-8px;width:48px;height:48px;border-radius:50%;background:rgba(31,111,235,.07)}
.zh-stat .n{font-size:20px;font-weight:700;line-height:1.1}
.zh-stat .l{font-size:var(--zh-fs-sm);color:var(--zh-muted);margin-top:4px}
.zh-stat.warn .n{color:#d4380d}
.zh-stat.ok .n{color:#08979c}
.zh-stat.info .n{color:#1f6feb}
.zh-table-wrap .el-table{font-size:12px}
.zh-tag-low{color:#cf1322;background:#fff1f0;border-color:#ffa39e}
.zh-preview-mask{
  position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:4000;
  display:flex;align-items:center;justify-content:center;
}
.zh-preview-mask img{max-width:90vw;max-height:86vh;transition:transform .15s;user-select:none;z-index:0}
.zh-preview-actions{
  position:fixed;top:16px;right:16px;z-index:4001;
  display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;
  max-width:min(92vw,560px);padding:8px;border-radius:8px;
  background:rgba(15,23,42,.55);backdrop-filter:blur(4px);
}
.zh-preview-nav{
  position:fixed;top:50%;transform:translateY(-50%);z-index:4001;
  min-width:44px;height:72px;padding:0 10px;border:0;border-radius:10px;
  background:rgba(15,23,42,.62);color:#fff;font-size:13px;font-weight:600;
  cursor:pointer;backdrop-filter:blur(4px);line-height:1.2;
}
.zh-preview-nav:hover{background:rgba(30,41,59,.85)}
.zh-preview-nav-prev{left:16px}
.zh-preview-nav-next{right:16px}
.zh-thumbs{display:flex;gap:6px;flex-wrap:wrap}
.zh-thumbs img{width:48px;height:48px;object-fit:cover;border-radius:4px;border:1px solid var(--zh-border);cursor:pointer}
.zh-paste-hint{font-size:11px;color:var(--zh-muted);margin-top:4px;line-height:1.4}
.pts-license-ocr-zone{
  width:100%;outline:none;border:1px dashed #cbd5e1;border-radius:8px;
  padding:10px;background:#f8fafc;box-sizing:border-box;
}
.pts-license-ocr-zone:focus,.pts-license-ocr-zone:focus-within{
  border-color:#93c5fd;background:#f0f7ff;
}
.el-form--compact .el-form-item{margin-bottom:8px}

/* Element Plus 全局紧凑 */
.zh-body .el-button{--el-button-size:28px;font-size:12px}
.zh-body .el-button--small{--el-button-size:24px;font-size:11px;padding:5px 9px}
.zh-body .el-input,
.zh-body .el-select,
.zh-body .el-cascader,
.zh-body .el-input-number{--el-component-size:28px;font-size:12px}
.zh-body .el-table{--el-table-header-bg-color:#f7f9fc;font-size:12px}
.zh-body .el-table .cell{padding:0 8px;line-height:20px}
.zh-body .el-table th.el-table__cell{padding:6px 0;font-size:12px;font-weight:600;color:#475569}
.zh-body .el-table td.el-table__cell{padding:5px 0}
.zh-body .el-pagination{--el-pagination-font-size:12px;--el-pagination-button-height:26px;font-size:12px}
.zh-body .el-dialog__title{font-size:14px}
.zh-body .el-dialog__body{padding:12px 16px;font-size:12px}
.zh-body .el-form-item__label{font-size:12px!important;height:28px;line-height:28px}
.zh-body .el-form-item{margin-bottom:10px}
.zh-body .el-descriptions{font-size:12px}
.zh-body .el-alert{padding:6px 10px;font-size:12px}
.zh-body .el-tag{height:20px;line-height:18px;font-size:11px;padding:0 6px}
.zh-top .el-button{--el-button-size:26px;font-size:12px}
.zh-top .el-select{--el-component-size:26px}

@media (max-width:960px){
  .zh-side{display:none}
  .zh-stats{grid-template-columns:repeat(2,1fr)}
  .zh-login-card{width:92vw}
}


.zh-empty{padding:28px 12px;text-align:center;color:#94a3b8;font-size:12px}
.zh-empty .t{font-size:13px;color:#64748b;margin-bottom:4px}
.zh-click{cursor:pointer;transition:transform .12s,box-shadow .12s}
.zh-click:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(15,23,42,.08)}
.zh-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.zh-muted{color:var(--zh-muted)}
.zh-status{display:inline-flex;align-items:center;gap:4px}
.zh-dot{width:6px;height:6px;border-radius:50%;display:inline-block}
.zh-dot.ok{background:#10b981}.zh-dot.warn{background:#f59e0b}.zh-dot.danger{background:#ef4444}.zh-dot.info{background:#3b82f6}.zh-dot.muted{background:#94a3b8}
.zh-top-actions{display:flex;gap:8px;align-items:center}
@media (max-width:1100px){.zh-grid-2{grid-template-columns:1fr}}

/* PTS 录入：左对照 / 右表单 */
.pts-submit-layout{
  display:grid;
  grid-template-columns:380px minmax(0,1fr);
  gap:14px;
  align-items:start;
  max-height:74vh;
}
.pts-ref-panel{
  position:sticky; top:0;
  max-height:74vh; overflow:auto;
  background:#f8fafc; border:1px solid var(--zh-border);
  border-radius:8px; padding:12px;
}
.pts-last-empty{
  font-size:12px;color:#9a3412;background:#ffedd5;border:1px dashed #fb923c;
  border-radius:8px;padding:12px;text-align:center;line-height:1.5;
}

/* 复查：顶栏 + 双栏对照（紧凑） */
.pts-submit-dlg.el-dialog{margin-top:4vh !important}
.pts-submit-dlg .el-dialog__body{padding:10px 12px 6px}
.pts-submit-dlg .el-dialog__header{padding:10px 12px 6px}
.pts-submit-dlg .el-dialog__footer{padding:6px 12px 10px}
.pts-recheck-wrap{display:flex;flex-direction:column;gap:6px;max-height:78vh}
.pts-recheck-top{
  display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;
  padding:6px 8px;border-radius:6px;background:#eff6ff;border:1px solid #bfdbfe;
}
.pts-recheck-top-main{display:flex;align-items:center;gap:6px;min-width:0;flex:1;font-size:12px;line-height:1.3;flex-wrap:wrap}
.pts-recheck-top-k{flex-shrink:0;color:#1d4ed8;font-weight:700}
.pts-recheck-top-a{
  color:#1e40af;word-break:break-all;text-decoration:none;flex:1;min-width:120px;
  max-height:2.6em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.pts-recheck-top-a:hover{text-decoration:underline}
.pts-recheck-top-actions{display:flex;gap:4px;flex-shrink:0;align-items:center}
.pts-recheck-top-side{display:flex;align-items:center;gap:6px;flex-shrink:0}
.pts-link-qr-box{text-align:center;padding:8px 4px 4px}
.pts-link-qr-box img{width:200px;height:200px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;padding:6px;box-sizing:border-box}
.pts-recheck-prog{font-size:11px;color:#475569}
.pts-recheck-remind{
  font-size:12px;line-height:1.35;padding:6px 8px;border-radius:6px;font-weight:600;
}
.pts-recheck-remind.warn{background:#fff7ed;border:1px solid #fdba74;color:#9a3412}
.pts-recheck-remind.ok{background:#ecfdf5;border:1px solid #86efac;color:#166534}
.pts-submit-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;width:100%}
.pts-submit-footer-l{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.pts-submit-footer-r{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.pts-submit-footer-tip{font-size:12px;color:#c2410c}
.pts-shelf-switch{display:flex;align-items:center;gap:8px;min-height:28px}
.pts-off-tip{font-size:11px;color:#c2410c;font-weight:600}
.pts-off-banner{
  margin-top:6px;padding:8px 10px;border-radius:6px;font-size:12px;line-height:1.4;font-weight:600;
  background:#fff7ed;border:1px solid #fdba74;color:#9a3412;
}
.pts-recheck-links{border:1px solid #e2e8f0;border-radius:6px;padding:6px;background:#fff}
.pts-recheck-cols{
  display:grid;grid-template-columns:0.95fr 1.2fr;gap:6px;min-height:0;
  flex:1;overflow:auto;align-items:stretch;
}
.pts-recheck-col{
  border-radius:6px;padding:8px;border:1px solid #e2e8f0;background:#fff;
  min-width:0;display:flex;flex-direction:column;gap:6px;
}
.pts-col-ctrl{background:#f8fafc;border-color:#cbd5e1}
.pts-col-last{background:#fff7ed;border-color:#fdba74}
.pts-col-now{background:#f0fdf4;border-color:#86efac}
.pts-col-hd{display:flex;align-items:center;gap:6px;font-size:11px;color:#475569;font-weight:600}
.pts-col-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:30px;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:700;color:#fff;
}
.pts-col-badge.ctrl{background:#475569}
.pts-col-badge.last{background:#ea580c}
.pts-col-badge.now{background:#16a34a}
.pts-ctrl-product{
  display:flex;flex-direction:column;gap:4px;padding:6px 8px;border-radius:6px;
  background:#fff;border:1px solid #e2e8f0;
}
.pts-ctrl-product-meta{min-width:0}
.pts-ctrl-product-name{
  font-size:12px;font-weight:700;color:#0f172a;line-height:1.3;
  word-break:break-word;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.pts-ctrl-product-brand{font-size:11px;color:#64748b}
.pts-ctrl-imgs-row{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}
.pts-ctrl-imgs{display:flex;align-items:center;gap:4px;min-width:0}
.pts-ctrl-imgs-k{flex-shrink:0;font-size:11px;color:#64748b;font-weight:600}
.pts-sku-thumb{
  width:28px;height:28px;object-fit:cover;border-radius:3px;border:1px solid #e2e8f0;display:block;background:#fff;
}
.pts-ctrl-shop{
  display:flex;align-items:center;gap:6px;padding:4px 8px;border-radius:6px;
  background:#fff;border:1px solid #e2e8f0;font-size:11px;line-height:1.3;
}
.pts-ctrl-shop-k{flex-shrink:0;color:#64748b;font-weight:600}
.pts-ctrl-shop-v{color:#0f172a;font-weight:600;word-break:break-all;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pts-ctrl-subhd{font-size:11px;font-weight:600;color:#64748b;margin:4px 0 4px}
.pts-spec-change-tip{
  display:flex;align-items:center;flex-wrap:wrap;gap:2px;
  margin:6px 0 8px;padding:6px 8px;background:#fffbeb;border:1px solid #fde68a;border-radius:6px
}
.pts-cmp-card{
  margin-top:auto;padding:8px;border-radius:6px;background:#fff;border:1px dashed #cbd5e1;
  font-size:12px;line-height:1.45;color:#334155;
}
.pts-cmp-row{display:flex;justify-content:space-between;gap:8px;padding:1px 0}
.pts-cmp-row .pts-hi{color:#0f766e}
.pts-cmp-judge{margin-top:4px;font-weight:600}
.pts-cmp-judge.ok{color:#15803d}
.pts-cmp-judge.bad{color:#b45309}
.pts-metric{
  background:rgba(255,255,255,.85);border:1px solid #fed7aa;border-radius:6px;padding:6px 8px;
}
.pts-metric-k{font-size:11px;color:#9a3412;margin-bottom:2px}
.pts-metric-v{font-size:16px;font-weight:700;color:#9a3412;line-height:1.2;word-break:break-all}
.pts-metric-v.sm{font-size:13px}
.pts-metric-note{font-size:10px;color:#c2410c;line-height:1.3;font-weight:500}
.pts-side-by-side{
  background:#fff;border:1px solid #bbf7d0;border-radius:6px;padding:6px;overflow:hidden;
}
.pts-sbs-head,.pts-sbs-row{
  display:grid;grid-template-columns:44px 1fr 1.15fr;gap:6px;align-items:center;
}
.pts-sbs-head{font-size:10px;color:#64748b;padding:0 0 4px;border-bottom:1px dashed #dcfce7;margin-bottom:4px}
.pts-sbs-row{padding:3px 0}
.pts-sbs-k{font-size:11px;color:#166534;font-weight:600}
.pts-sbs-last{
  font-size:12px;font-weight:600;color:#9a3412;background:#ffedd5;border-radius:4px;
  padding:4px 6px;text-align:center;min-height:24px;box-sizing:border-box;
}
.pts-recheck-form .el-form-item{margin-bottom:4px}
.pts-recheck-form .el-form-item__label{font-size:12px;padding-right:6px !important}
.pts-recheck-form .hint{font-size:11px;color:#64748b;margin-top:2px !important}
.pts-shot-compare{
  display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:4px;
}
.pts-shot-col{
  background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:6px;min-width:0;
}
.pts-shot-hd{
  font-size:11px;font-weight:600;color:#334155;margin-bottom:4px;
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
}
@media (max-width:900px){
  .pts-shot-compare{grid-template-columns:1fr}
}
.pts-ref-title{font-weight:700;font-size:14px;margin-bottom:8px;color:#0f172a}
.pts-ref-meta{
  background:#fff;border:1px solid #e2e8f0;border-radius:8px;
  padding:8px 10px;margin-bottom:10px;
}
.pts-ref-row{
  display:grid;grid-template-columns:64px minmax(0,1fr);gap:6px;
  font-size:12px;line-height:1.55;padding:3px 0;
  border-bottom:1px dashed #f1f5f9;
}
.pts-ref-row:last-child{border-bottom:0}
.pts-ref-k{color:#64748b;flex-shrink:0}
.pts-ref-v{color:#0f172a;word-break:break-word}
.pts-ref-row-kw .pts-ref-v{
  display:flex;align-items:flex-start;gap:6px;min-width:0;
}
.pts-ref-kw-text{flex:1;min-width:0;word-break:break-word}
.pts-ref-kw-copy{flex-shrink:0;padding:2px 8px;height:22px}
.pts-ref-sub{font-size:12px;font-weight:600;color:#334155;margin:8px 0 6px}
.pts-ref-block{margin-bottom:8px}
.pts-ref-judge{
  background:#fff;border:1px dashed #cbd5e1;border-radius:8px;
  padding:10px;font-size:12px;line-height:1.6;color:#334155
}
.pts-form-panel{max-height:74vh;overflow:auto;padding-right:4px}
.pts-sku-active > td{background:#ecfdf5 !important}
.pts-focus-banner{
  margin-bottom:10px;padding:10px 12px;border-radius:8px;
  background:linear-gradient(90deg,#fff7ed,#ffedd5);
  border:1px solid #fdba74;
}
.pts-focus-banner-title{font-weight:700;color:#9a3412;margin-bottom:6px;font-size:12px}
.pts-focus-field{
  background:#fff7ed;border:1px solid #fdba74;border-radius:8px;
  padding:8px 8px 4px;margin-bottom:4px !important;
}
.pts-focus-field .el-form-item__label{color:#9a3412;font-weight:700}
.pts-focus-tip{color:#c2410c;font-size:11px;line-height:1.3;margin-top:2px}
.pts-intake{
  border:1px solid #e2e8f0;border-radius:10px;padding:12px 14px;
  background:#fff;margin-bottom:12px;
}
.pts-intake-hd{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.pts-intake-title{font-weight:700;font-size:13px;color:#0f172a}
.pts-progress{display:flex;flex-wrap:wrap;gap:4px}
.pts-progress .chip{
  font-size:11px;padding:2px 8px;border-radius:999px;
  background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0;
}
.pts-progress .chip.ok{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.pts-essentials{
  border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px 4px;
  background:#f8fafc;margin-bottom:10px;
}
.pts-more-hd{
  display:flex;align-items:center;justify-content:space-between;
  padding:6px 2px;margin:4px 0 8px;cursor:pointer;user-select:none;
}
.pts-more-hd span{font-weight:600;font-size:13px;color:#334155}
.pts-link-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:6px}
.pts-parse-summary{
  flex:1;min-width:0;font-size:12px;line-height:1.45;color:#0f766e;
  background:#f0fdfa;border:1px solid #99f6e4;border-radius:6px;
  padding:4px 8px;max-height:3.2em;overflow:hidden;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;
}
@media (max-width:1200px){
  .pts-submit-layout{grid-template-columns:1fr;max-height:none}
  .pts-ref-panel,.pts-form-panel{position:static;max-height:none}
  .pts-recheck-cols{grid-template-columns:1fr}
}

/* 平台 Logo 标签 */
.zh-plat{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;max-width:100%;line-height:1.2}
.zh-plat-ico{width:16px;height:16px;border-radius:4px;flex-shrink:0;display:block;object-fit:cover;background:#e2e8f0}
.zh-plat-md .zh-plat-ico{width:20px;height:20px;border-radius:5px}
.zh-plat-txt{font-size:12px;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zh-plat-md .zh-plat-txt{font-size:13px}
.zh-plat-ico-only{gap:0}
.pts-dlg-title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;line-height:1.3;padding-right:24px}
.pts-dlg-title .zh-plat-txt{font-size:14px;font-weight:600}
