/* 采集工具 · 作用域化样式（源：product-scraper.css v2.4.20 / product-detail.css v2.4.15）
   内嵌到主框架 #section-product-scraper；旧独立页 product-scraper.html 已废弃（只读），不要修改 */
#section-product-scraper .scraper-body{
  --sp-bg:#f4f6f9;
  --sp-card:rgba(255,255,255,.85);
  --sp-card-solid:#fff;
  --sp-line:rgba(103,113,126,.14);
  --sp-text:#1e2329;
  --sp-text2:#5a6470;
  --sp-text3:#9aa3ad;
  --sp-input-bg:#f7f9fb;
  --sp-accent:#3f474f;
  --sp-green:#3f474f;
  --sp-red:#a34c4c;
  --sp-shadow:0 18px 50px rgba(46,56,67,.08),inset 0 1px 0 rgba(255,255,255,.9);
  --sp-ease:cubic-bezier(.22,.61,.36,1);
  background:var(--sp-bg);
  min-height:100vh;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--sp-text);
}#section-product-scraper .sp-hero{
  padding:28px 4px 24px;
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
}#section-product-scraper .sp-kicker{display:block;font-size:10.5px;font-weight:750;color:var(--sp-text3);letter-spacing:.18em;margin-bottom:8px}#section-product-scraper .sp-hero h1{margin:0;font-size:clamp(32px,4vw,46px);font-weight:800;letter-spacing:-.04em;line-height:1.05;color:var(--sp-text)}#section-product-scraper .sp-hero p{margin:8px 0 0;max-width:520px;font-size:13.5px;color:var(--sp-text2);line-height:1.7}#section-product-scraper .sp-hero-tags{display:flex;gap:8px;flex-shrink:0}#section-product-scraper .sp-tag{
  padding:7px 14px;border-radius:999px;font-size:11.5px;font-weight:650;
  border:1px solid var(--sp-line);background:rgba(255,255,255,.7);color:var(--sp-text2);
}#section-product-scraper .sp-tag-green{border-color:rgba(63,71,79,.25);background:rgba(237,247,241,.9);color:var(--sp-green)}#section-product-scraper .sp-main{
  padding:0 4px 32px;
  display:grid;grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:20px;align-items:start;
}#section-product-scraper .sp-left{display:flex;flex-direction:column;gap:14px}#section-product-scraper .sp-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:6px;border-radius:18px;background:rgba(255,255,255,.6);border:1px solid var(--sp-line)}#section-product-scraper .sp-mode-tab{
  display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:13px;
  border:none;background:transparent;cursor:pointer;text-align:left;
  transition:all .22s var(--sp-ease);font-family:inherit;
}#section-product-scraper .sp-mode-tab:hover{background:rgba(255,255,255,.8)}#section-product-scraper .sp-mode-tab.active{background:linear-gradient(145deg,#2a2f37,#171a1f);box-shadow:0 10px 24px rgba(23,26,31,.25)}#section-product-scraper .sp-mode-ico{width:28px;flex:0 0 auto;text-align:center;font-size:20px;line-height:1}#section-product-scraper .sp-mode-copy{display:flex;flex-direction:column;gap:2px;min-width:0}#section-product-scraper .sp-mode-copy b{font-size:13px;font-weight:750;color:var(--sp-text)}#section-product-scraper .sp-mode-copy small{font-size:10px;color:var(--sp-text3);line-height:1.3}#section-product-scraper .sp-mode-tab.active .sp-mode-copy b{color:#fff}#section-product-scraper .sp-mode-tab.active .sp-mode-copy small{color:rgba(255,255,255,.7)}#section-product-scraper .sp-input-card{
  padding:24px 24px 22px;border-radius:22px;background:var(--sp-card);
  border:1px solid var(--sp-line);box-shadow:var(--sp-shadow);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
}#section-product-scraper .sp-step{font-size:10.5px;font-weight:750;color:var(--sp-text3);letter-spacing:.12em;margin-bottom:10px}#section-product-scraper .sp-input-title{margin:0;font-size:19px;font-weight:780;letter-spacing:-.02em;color:var(--sp-text)}#section-product-scraper .sp-input-desc{margin:6px 0 0;font-size:12.5px;color:var(--sp-text2);line-height:1.6}#section-product-scraper .sp-label{display:block;margin:18px 0 7px;font-size:12.5px;font-weight:650;color:var(--sp-text)}#section-product-scraper .sp-textarea{
  width:100%;box-sizing:border-box;padding:14px 16px;min-height:130px;
  border:1.5px solid var(--sp-line);border-radius:14px;background:var(--sp-input-bg);
  font-size:13px;font-family:inherit;color:var(--sp-text);line-height:1.7;
  resize:vertical;outline:none;transition:border-color .18s,box-shadow .18s,background .18s;
}#section-product-scraper .sp-textarea:focus{border-color:var(--sp-accent);background:#fff;box-shadow:0 0 0 3px rgba(63,71,79,.1)}#section-product-scraper .sp-textarea::placeholder{color:var(--sp-text3)}#section-product-scraper .sp-input{
  width:100%;box-sizing:border-box;padding:12px 15px;height:46px;
  border:1.5px solid var(--sp-line);border-radius:12px;background:var(--sp-input-bg);
  font-size:13px;font-family:inherit;color:var(--sp-text);outline:none;
  transition:border-color .18s,box-shadow .18s,background .18s;
}#section-product-scraper .sp-input:focus{border-color:var(--sp-accent);background:#fff;box-shadow:0 0 0 3px rgba(63,71,79,.1)}#section-product-scraper .sp-input::placeholder{color:var(--sp-text3)}#section-product-scraper .sp-input-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;flex-wrap:wrap}#section-product-scraper .sp-count{font-size:11.5px;color:var(--sp-text3);font-weight:600}#section-product-scraper .sp-platform-badge{
  display:inline-flex;align-items:center;gap:5px;padding:4px 11px;border-radius:20px;
  font-size:11px;font-weight:700;background:rgba(63,71,79,.1);color:var(--sp-accent);
}#section-product-scraper .sp-hint{margin:8px 0 0;font-size:11.5px;color:var(--sp-text3);line-height:1.5}#section-product-scraper .sp-input-row{margin-top:16px}#section-product-scraper .sp-limit-group{display:inline-flex;align-items:center;gap:8px;padding:0 12px;height:42px;border:1.5px solid var(--sp-line);border-radius:12px;background:var(--sp-input-bg)}#section-product-scraper .sp-limit-input{width:110px;min-width:110px;border:none;background:transparent;font-size:14px;font-family:inherit;color:var(--sp-text);outline:none;text-align:center;font-weight:700;padding:0 2px;letter-spacing:.02em}#section-product-scraper .sp-limit-input::placeholder{color:var(--sp-text3);font-weight:600;letter-spacing:0}#section-product-scraper .sp-limit-group span{font-size:12px;color:var(--sp-text2)}#section-product-scraper .sp-actions{display:flex;gap:10px;align-items:center;margin-top:18px;flex-wrap:wrap}#section-product-scraper .sp-start-btn{
  flex:1;min-height:50px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:0 24px;border-radius:14px;border:none;cursor:pointer;
  background:linear-gradient(145deg,#2a2f37,#171a1f);color:#fff;
  font-size:14px;font-weight:700;font-family:inherit;letter-spacing:.01em;
  box-shadow:0 12px 28px rgba(23,26,31,.22);transition:all .2s var(--sp-ease);
}#section-product-scraper .sp-start-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 16px 34px rgba(23,26,31,.28)}#section-product-scraper .sp-start-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}#section-product-scraper .sp-clear-btn{
  display:inline-flex;align-items:center;gap:6px;padding:0 16px;height:50px;border-radius:14px;
  border:1px solid var(--sp-line);background:rgba(255,255,255,.7);
  color:var(--sp-text2);font-size:12.5px;font-weight:650;font-family:inherit;cursor:pointer;
  transition:all .2s var(--sp-ease);
}#section-product-scraper .sp-clear-btn:hover{background:#fff;border-color:rgba(163,76,76,.3);color:var(--sp-red)}#section-product-scraper .sp-right{min-width:0}#section-product-scraper .sp-result-card{
  padding:24px 26px;border-radius:22px;background:var(--sp-card);
  border:1px solid var(--sp-line);box-shadow:var(--sp-shadow);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  min-height:520px;display:flex;flex-direction:column;
}#section-product-scraper .sp-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}#section-product-scraper .sp-result-title{margin:0;font-size:19px;font-weight:780;letter-spacing:-.02em;color:var(--sp-text)}#section-product-scraper .sp-result-desc{margin:5px 0 0;font-size:12.5px;color:var(--sp-text2);line-height:1.6}#section-product-scraper .sp-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}#section-product-scraper .sp-status-badge{
  flex-shrink:0;padding:6px 14px;border-radius:20px;font-size:11px;font-weight:700;
  background:rgba(154,163,173,.12);color:var(--sp-text3);
}#section-product-scraper .sp-status-badge.collecting{background:rgba(63,71,79,.1);color:var(--sp-accent)}#section-product-scraper .sp-status-badge.done{background:rgba(63,71,79,.1);color:var(--sp-green)}#section-product-scraper .sp-status-badge.error{background:rgba(163,76,76,.1);color:var(--sp-red)}#section-product-scraper .sp-stats{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(140px,.8fr) minmax(320px,1.4fr);gap:1px;background:var(--sp-line);border-radius:14px;overflow:hidden;margin-bottom:20px}#section-product-scraper .sp-stat{background:var(--sp-card-solid);padding:16px 18px;text-align:left}#section-product-scraper .sp-stat strong{display:block;font-size:26px;font-weight:800;letter-spacing:-.03em;color:var(--sp-text);line-height:1.1}#section-product-scraper .sp-stat>span,#section-product-scraper .sp-progress-copy>span{display:block;margin-top:5px;font-size:11px;color:var(--sp-text3);font-weight:600}#section-product-scraper .sp-stat-progress{padding:13px 16px 11px}#section-product-scraper .sp-progress-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:42px}#section-product-scraper .sp-progress-copy{flex:0 0 auto}#section-product-scraper .sp-progress-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}#section-product-scraper .sp-progress-actions[hidden]{display:none}#section-product-scraper .sp-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 20px}#section-product-scraper .sp-empty-ico{
  width:76px;height:76px;border-radius:24px;display:grid;place-items:center;font-size:38px;
  background:linear-gradient(145deg,#f3f5f7,#e7eaed);border:1px solid rgba(63,71,79,.15);
  box-shadow:0 10px 24px rgba(63,71,79,.08);margin-bottom:18px;position:relative;
}#section-product-scraper .sp-empty-ico::after{
  content:"🔍";position:absolute;right:-6px;bottom:-4px;font-size:18px;
  width:28px;height:28px;border-radius:50%;background:#fff;display:grid;place-items:center;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
}#section-product-scraper .sp-empty h3{margin:0 0 8px;font-size:17px;font-weight:750;color:var(--sp-text)}#section-product-scraper .sp-empty p{margin:0;max-width:380px;font-size:12.5px;color:var(--sp-text3);line-height:1.7}#section-product-scraper .sp-flow{display:flex;align-items:center;gap:0;margin-top:28px}#section-product-scraper .sp-flow-item{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:80px}#section-product-scraper .sp-flow-num{
  width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  font-size:12px;font-weight:750;color:var(--sp-text3);background:rgba(154,163,173,.12);
}#section-product-scraper .sp-flow-item span:last-child{font-size:11px;font-weight:650;color:var(--sp-text3)}#section-product-scraper .sp-flow-line{flex:1;min-width:30px;height:1.5px;background:rgba(154,163,173,.2);margin:0 6px 18px}#section-product-scraper .sp-progress{padding:10px 0 0}#section-product-scraper .sp-progress-bar{height:6px;border-radius:99px;background:rgba(154,163,173,.15);overflow:hidden}#section-product-scraper .sp-progress-fill{height:100%;width:0%;border-radius:99px;background:linear-gradient(90deg,var(--sp-accent),#7c848d);transition:width .3s var(--sp-ease)}#section-product-scraper .sp-progress-text{margin:7px 0 0;font-size:10.5px;color:var(--sp-text3);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#section-product-scraper .sp-error{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border-radius:14px;background:#fff5f5;border:1px solid #fdd;border-left:3px solid var(--sp-red);margin-bottom:16px}#section-product-scraper .sp-error-ico{font-size:18px;flex-shrink:0;margin-top:1px}#section-product-scraper .sp-error h4{margin:0 0 4px;font-size:13.5px;font-weight:700;color:var(--sp-red)}#section-product-scraper .sp-error p{margin:0;font-size:12px;color:#8a5555;line-height:1.6}#section-product-scraper .sp-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}#section-product-scraper .sp-card{
  border-radius:16px;background:var(--sp-card-solid);border:1px solid var(--sp-line);
  overflow:hidden;cursor:pointer;transition:all .22s var(--sp-ease);display:flex;flex-direction:column;
}#section-product-scraper .sp-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(46,56,67,.12);border-color:rgba(63,71,79,.25)}#section-product-scraper .sp-card-img{width:100%;aspect-ratio:1/1;background:#fff;display:grid;place-items:center;overflow:hidden;position:relative;border-bottom:1px solid var(--sp-line)}#section-product-scraper .sp-card-img img{width:100%;height:100%;object-fit:contain;display:block;padding:8px;box-sizing:border-box}#section-product-scraper .sp-card-img .sp-card-ico{font-size:36px;opacity:.4}#section-product-scraper .sp-card-delete{position:absolute;top:9px;right:9px;z-index:2;display:inline-flex;align-items:center;gap:4px;padding:6px 9px;border:1px solid rgba(163,76,76,.18);border-radius:10px;background:rgba(255,255,255,.94);color:var(--sp-red);font-family:inherit;font-size:10.5px;font-weight:650;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(46,56,67,.1);opacity:0;transform:translateY(-3px);transition:opacity .18s ease,transform .18s ease,background .18s ease}#section-product-scraper .sp-card:hover .sp-card-delete,#section-product-scraper .sp-card:focus-within .sp-card-delete,#section-product-scraper .sp-card-delete:focus{opacity:1;transform:none}#section-product-scraper .sp-card-delete:hover{background:#fff2f2}#section-product-scraper .sp-card-delete:disabled{opacity:.5;cursor:wait}@media (hover:none){#section-product-scraper .sp-card-delete{opacity:1;transform:none}}#section-product-scraper .sp-card-body{padding:14px 15px 12px;flex:1;display:flex;flex-direction:column}#section-product-scraper .sp-card-title{font-size:13px;font-weight:700;color:var(--sp-text);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#section-product-scraper .sp-card-price{margin-top:8px;font-size:15px;font-weight:800;color:var(--sp-text)}#section-product-scraper .sp-card-price small{font-size:11px;color:var(--sp-text3);font-weight:500;margin-left:4px}#section-product-scraper .sp-card-meta{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:10px}#section-product-scraper .sp-card-type{font-size:10px;font-weight:650;color:var(--sp-text3);background:var(--sp-input-bg);padding:3px 9px;border-radius:10px}#section-product-scraper .sp-card-variants{font-size:10.5px;color:var(--sp-text3);font-weight:600}#section-product-scraper .sp-card-variant-detail{padding:12px 15px;border-top:1px solid var(--sp-line);background:#fafbfc}#section-product-scraper .sp-card-variant-detail h4{margin:0 0 10px;font-size:12px;font-weight:700;color:var(--sp-text)}#section-product-scraper .sp-variant-list{display:flex;flex-direction:column;gap:6px;max-height:200px;overflow-y:auto}#section-product-scraper .sp-variant-item{padding:8px 10px;border-radius:10px;background:#fff;border:1px solid var(--sp-line);font-size:11px}#section-product-scraper .sp-variant-item .v-name{font-weight:650;color:var(--sp-text);margin-bottom:3px}#section-product-scraper .sp-variant-item .v-sku{color:var(--sp-text3);font-size:10px;margin-top:2px}#section-product-scraper .sp-variant-item .v-price{color:var(--sp-green);font-weight:700;font-size:12px}#section-product-scraper .sp-failures{margin-top:16px;padding:14px 16px;border-radius:14px;background:#f5f6f8;border:1px solid #e7eaed}#section-product-scraper .sp-failures h4{margin:0 0 8px;font-size:12px;color:#4a525b;font-weight:700}#section-product-scraper .sp-failures ul{list-style:none;padding:0;margin:0;max-height:120px;overflow-y:auto}#section-product-scraper .sp-failures li{font-size:11.5px;color:#4a525b;padding:3px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#section-product-scraper .sp-batch-group{display:inline-flex;align-items:center;gap:4px;padding:0 8px;height:34px;border:1.5px solid var(--sp-line);border-radius:10px;background:var(--sp-input-bg);font-size:11px;color:var(--sp-text2);white-space:nowrap}#section-product-scraper .sp-batch-group span{font-size:11px;font-weight:650;color:var(--sp-text2)}#section-product-scraper .sp-export-btn{
  display:inline-flex;align-items:center;gap:6px;padding:0 13px;height:34px;border-radius:10px;
  border:none;cursor:pointer;background:linear-gradient(145deg,var(--sp-green),#31383f);color:#fff;
  font-size:11.5px;font-weight:700;font-family:inherit;box-shadow:0 6px 16px rgba(63,71,79,.22);white-space:nowrap;
  transition:all .2s var(--sp-ease);
}#section-product-scraper .sp-export-btn span{display:inline;margin:0;color:inherit;font-size:inherit;font-weight:inherit}#section-product-scraper .sp-export-btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(63,71,79,.32)}#section-product-scraper .sp-bottom-hint{
  max-width:1400px;margin:0 auto;padding:0 28px 32px;
  font-size:11.5px;color:var(--sp-text3);line-height:1.6;
}#section-product-scraper .sp-toast-stack{position:fixed;right:20px;bottom:20px;z-index:999;display:flex;flex-direction:column;gap:10px;pointer-events:none}#section-product-scraper .sp-toast{
  pointer-events:auto;padding:12px 18px;border-radius:14px;background:rgba(30,35,41,.92);color:#fff;
  font-size:12.5px;font-weight:600;box-shadow:0 14px 34px rgba(25,31,36,.25);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  opacity:0;transform:translateY(10px);transition:opacity .3s var(--sp-ease),transform .3s var(--sp-ease);
}#section-product-scraper .sp-toast.show{opacity:1;transform:translateY(0)}#section-product-scraper .sp-toast.success{background:rgba(63,71,79,.92)}#section-product-scraper .sp-toast.error{background:rgba(163,76,76,.92)}#section-product-scraper .sp-toast.warning{background:rgba(70,78,86,.92)}@media(max-width:960px){#section-product-scraper .sp-main{grid-template-columns:1fr}#section-product-scraper .sp-result-card{min-height:400px}#section-product-scraper .sp-hero{flex-direction:column;align-items:flex-start;gap:16px}#section-product-scraper .sp-stats{grid-template-columns:1fr 1fr}#section-product-scraper .sp-stat-progress{grid-column:1/-1}
}@media(max-width:560px){#section-product-scraper .sp-topbar,#section-product-scraper .sp-hero,#section-product-scraper .sp-main,#section-product-scraper .sp-bottom-hint{padding-left:16px;padding-right:16px}#section-product-scraper .sp-stats{grid-template-columns:1fr 1fr}#section-product-scraper .sp-stat-progress{grid-column:1/-1}#section-product-scraper .sp-result-head{align-items:stretch;flex-direction:column}#section-product-scraper .sp-head-actions{justify-content:space-between}#section-product-scraper .sp-progress-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}#section-product-scraper .sp-mode-tabs{grid-template-columns:1fr}
}#section-product-scraper .sp-environment h2{margin:0 0 14px;font-size:16px}#section-product-scraper .sp-connection{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#758195}#section-product-scraper .sp-connection .sp-clear-btn{flex:0 0 auto;font-size:12px;padding:8px 10px}#section-product-scraper .sp-install{font-size:12px;line-height:1.7;color:#667386;margin-top:14px}#section-product-scraper .sp-install summary{cursor:pointer;color:#303842;font-weight:650}#section-product-scraper .sp-install ol{padding-left:20px;margin:12px 0}#section-product-scraper .sp-install li{margin:8px 0;overflow-wrap:anywhere}#section-product-scraper .sp-install a{color:#454d55}#section-product-scraper .sp-local-controls{margin-top:14px;padding:12px;border:1px solid #d8dce0;border-radius:12px;background:#f5f6f8}#section-product-scraper .sp-local-controls p{font-size:12px;line-height:1.7;margin:0 0 10px;overflow-wrap:anywhere}#section-product-scraper .sp-local-actions{display:flex;flex-wrap:wrap;gap:8px}#section-product-scraper .sp-local-actions button{font:inherit;font-size:12px;padding:8px;border:1px solid #e0e4e9;border-radius:8px;background:#fff;color:#303842;cursor:pointer}#section-product-scraper .sp-local-actions button:disabled{opacity:.45;cursor:default}#section-product-scraper #localRecover{margin-top:12px}#section-product-scraper .sp-environment select{width:100%}#section-product-scraper .sp-local-controls[hidden],#section-product-scraper #localRecover[hidden]{display:none}

#section-product-scraper .pd-open{overflow:hidden}#section-product-scraper .sp-card[role=button]:focus-visible{outline:3px solid #3f474f;outline-offset:4px}#section-product-scraper .sp-card-grid>.sp-failures{grid-column:1/-1}#section-product-scraper .pd-dialog{width:min(1140px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid #e0e5e9;border-radius:24px;background:#fff;color:#252b33;box-shadow:0 32px 110px #131c3640;overflow:hidden}#section-product-scraper .pd-dialog::backdrop{background:#17212d80;backdrop-filter:blur(5px)}#section-product-scraper .pd-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 28px;border-bottom:1px solid #e8ebee;background:#fbfcfd}#section-product-scraper .pd-kicker{font-size:11px;color:#7e8795;font-weight:750;letter-spacing:.08em}#section-product-scraper .pd-header p{margin:6px 0 0;font-size:13px;color:#5b6470}#section-product-scraper .pd-close{width:40px;height:40px;border:1px solid #e1e5e9;background:#fff;border-radius:12px;cursor:pointer;flex-shrink:0;padding:0;display:inline-flex;align-items:center;justify-content:center;color:#3f474f;transition:background .16s ease,border-color .16s ease,transform .16s ease}#section-product-scraper .pd-close svg{display:block;width:20px;height:20px;flex:0 0 auto}#section-product-scraper .pd-close svg path{stroke:currentColor;stroke-width:2;stroke-linecap:round;fill:none}#section-product-scraper .pd-close:hover{background:#f2f4f6;border-color:#cfd6dd}#section-product-scraper .pd-close:active{transform:scale(.94)}#section-product-scraper .pd-scroll{max-height:calc(100dvh - 148px);overflow:auto;padding:28px;overscroll-behavior:contain}#section-product-scraper .pd-product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:start}#section-product-scraper .pd-media,#section-product-scraper .pd-info{min-width:0}#section-product-scraper .pd-image-stage{aspect-ratio:1;background:#f5f7f9;display:grid;place-items:center;border:1px solid #edf0f2;border-radius:18px;overflow:hidden}#section-product-scraper .pd-image-stage img{width:100%;height:100%;object-fit:contain;min-width:0;min-height:0}#section-product-scraper .pd-image-label{margin:12px 0;font-size:12px;color:#7d8590}#section-product-scraper .pd-gallery{display:flex;gap:8px;overflow:auto;padding:2px 2px 10px}#section-product-scraper .pd-thumb{flex:0 0 70px;width:70px;height:70px;border:1px solid #e0e5e9;border-radius:10px;padding:3px;background:#f8f9fa;cursor:pointer}#section-product-scraper .pd-thumb[aria-pressed=true]{border:2px solid #3f474f}#section-product-scraper .pd-thumb img{width:100%;height:100%;object-fit:contain;border-radius:6px}#section-product-scraper .pd-info h2{font-size:24px;line-height:1.4;margin:0 0 14px;overflow-wrap:anywhere}#section-product-scraper .pd-source{font-size:12px;color:#5a6470;text-decoration:none}#section-product-scraper .pd-price{font-size:30px;font-weight:800;color:#3f474f;margin:24px 0 16px}#section-product-scraper .pd-tiers{display:flex;gap:10px;flex-wrap:wrap}#section-product-scraper .pd-tiers>div{border:1px solid #e5e9ed;background:#fafbfc;padding:10px 14px;border-radius:10px;flex:1;min-width:90px}#section-product-scraper .pd-tiers span,#section-product-scraper .pd-tiers strong{display:block;font-size:12px}#section-product-scraper .pd-tiers strong{font-size:15px;margin-top:5px}#section-product-scraper .pd-note{font-size:12px;color:#7c8694;line-height:1.7}#section-product-scraper .pd-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}#section-product-scraper .pd-options label{display:grid;gap:8px;font-size:12px;font-weight:700;color:#535f6c}#section-product-scraper .pd-options select,#section-product-scraper .pd-search-label input{width:100%;min-width:0;box-sizing:border-box;padding:12px;border:1px solid #dce2e7;border-radius:10px;background:#fff;color:#202830;font:inherit}#section-product-scraper .pd-spec-summary{padding:18px;border:1px solid #e3e7eb;border-radius:14px;background:#fafbfc;font-size:14px}#section-product-scraper .pd-spec-summary dl{margin:14px 0 0;display:grid;gap:10px;font-size:12px}#section-product-scraper .pd-spec-summary dl>div{display:flex;justify-content:space-between;gap:12px}#section-product-scraper .pd-spec-summary dt{color:#7d8591}#section-product-scraper .pd-spec-summary dd{margin:0;overflow-wrap:anywhere}#section-product-scraper .pd-section{border-top:1px solid #e5e9ee;padding-top:26px;margin-top:32px}#section-product-scraper .pd-section h3{font-size:18px;margin:0 0 8px}#section-product-scraper .pd-section-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}#section-product-scraper .pd-section-heading span{font-size:12px;color:#7c8590}#section-product-scraper .pd-search-label{font-size:11px;color:#77808d;display:grid;gap:6px;width:260px;max-width:100%}#section-product-scraper .pd-table-wrap{max-height:330px;overflow:auto;border:1px solid #e4e8ed;border-radius:12px}#section-product-scraper .pd-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}#section-product-scraper .pd-table th{position:sticky;top:0;background:#f7f9fb;z-index:1;color:#6b7480;font-weight:650}#section-product-scraper .pd-table th,#section-product-scraper .pd-table td{padding:12px 14px;border-bottom:1px solid #edf0f3}#section-product-scraper .pd-selected td{background:#f2f4f6}#section-product-scraper .pd-row-pick{border:0;background:none;color:#3f474f;cursor:pointer;text-align:left;padding:0;font:inherit;font-weight:600}#section-product-scraper .pd-description{overflow-wrap:anywhere;font-size:14px;line-height:1.8;margin-top:20px}#section-product-scraper .pd-description img{display:block;max-width:100%;height:auto;margin:12px auto}#section-product-scraper .pd-description table{max-width:100%;display:block;overflow:auto}#section-product-scraper .pd-description td,#section-product-scraper .pd-description th{border:1px solid #e5e9ed;padding:8px}#section-product-scraper .pd-description a{color:#3f474f}#section-product-scraper .pd-warning{border:1px solid #d8dce0;background:#f5f6f8;color:#5b636c;padding:12px 16px;border-radius:12px;font-size:13px;margin-bottom:20px}#section-product-scraper .pd-image-error{padding:24px;text-align:center;font-size:13px;color:#77808d}#section-product-scraper .pd-dialog [hidden]{display:none!important}#section-product-scraper .pd-dialog button:focus-visible,#section-product-scraper .pd-dialog input:focus-visible,#section-product-scraper .pd-dialog select:focus-visible{outline:3px solid #3f474f;outline-offset:2px}@media(max-width:720px){#section-product-scraper .pd-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}#section-product-scraper .pd-header{padding:14px 16px}#section-product-scraper .pd-scroll{padding:18px;max-height:calc(100dvh - 100px)}#section-product-scraper .pd-product{grid-template-columns:minmax(0,1fr);gap:22px}#section-product-scraper .pd-info h2{font-size:20px}#section-product-scraper .pd-price{font-size:26px}#section-product-scraper .pd-section-heading{align-items:stretch;flex-direction:column}#section-product-scraper .pd-search-label{width:100%}#section-product-scraper .pd-thumb{width:60px;height:60px;flex-basis:60px}}

/* ===== 采集工具 · 主框架内嵌适配 =====
   只做尺寸 / 留白 / 布局 / 配色中性化，不改工具自身结构 */
#section-product-scraper{
  --sp-accent:#3f474f;
  padding:0;
  min-height:calc(100vh - 130px);
  animation:none;
}
#section-product-scraper .scraper-body{
  --sp-accent:#3f474f;
  --sp-green:#3f474f;
  --sp-bg:transparent;
  min-height:0;
  padding:16px 16px 108px;
  display:flex;
  flex-direction:column;
  gap:14px;
  background:transparent;
}

/* 顶部标题条：沿用主框架磨砂玻璃卡片 */
#section-product-scraper .sp-hero{
  margin:0;
  padding:15px 18px;
  border:1px solid rgba(255,255,255,.92);
  border-radius:20px;
  background:rgba(255,255,255,.72);
  box-shadow:0 16px 40px rgba(38,46,54,.07);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
#section-product-scraper .sp-hero-left{min-width:0}
#section-product-scraper .sp-kicker{margin:0;font-size:10px;letter-spacing:.18em}
#section-product-scraper .sp-hero h1{margin:6px 0 5px;font-size:26px;line-height:1.15}
#section-product-scraper .sp-hero p{margin:0;font-size:12.5px;color:#75808b}
#section-product-scraper .sp-hero-tags{display:none}
/* 模式 Tab 只留文字，去掉彩色 emoji 图标 */
#section-product-scraper .sp-mode-ico{display:none}
/* 空态三步流程与 dock 重叠，且信息已在左侧与 dock 上重复，内嵌版不显示 */
#section-product-scraper .sp-flow{display:none}
#section-product-scraper .sp-empty{padding:26px 16px 30px}
#section-product-scraper .sp-empty-ico{font-size:0;background:#f2f4f6;border-color:rgba(57,66,75,.14);box-shadow:0 10px 24px rgba(37,45,53,.06)}
#section-product-scraper .sp-empty-ico::after{content:"◇";position:static;right:auto;bottom:auto;width:auto;height:auto;background:none;box-shadow:none;font-size:30px;line-height:1;color:#4c555f;display:block}

/* 两栏：左输入 / 右结果 */
#section-product-scraper .sp-main{
  padding:0;
  display:grid;
  grid-template-columns:minmax(300px,352px) minmax(0,1fr);
  gap:16px;
  align-items:start;
}
#section-product-scraper .sp-input-card{padding:20px 20px 18px;border-radius:20px}
/* 结果卡固定在视口内，商品卡在卡内滚动，避免长出来的结果压到 dock 底下 */
#section-product-scraper .sp-result-card{padding:22px;border-radius:20px;height:calc(100vh - 448px);min-height:420px;max-height:660px}
/* 固定高度下只让商品网格收缩，其余块保持原样（否则统计标题被压没） */
#section-product-scraper .sp-result-card > *:not(.sp-card-grid){flex-shrink:0}
#section-product-scraper .sp-card-grid{flex:1 1 auto;min-height:0;overflow-y:auto;align-content:start;padding-right:2px}
#section-product-scraper .sp-card-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
#section-product-scraper .sp-bottom-hint{padding:0 4px}

/* 已进 dock 的入口：只留隐藏触发点给工具脚本绑定 */
#section-product-scraper .ps-proxies{display:none}

/* toast 让开 dock */
#section-product-scraper .sp-toast-stack{bottom:86px;right:22px;align-items:flex-end}
#section-product-scraper .sp-toast{max-width:min(420px,calc(100vw - 44px))}

 /* 商品详情弹窗铺满视口（dialog 在 top layer，不受面板裁切） */
#section-product-scraper .pd-dialog{max-height:calc(100dvh - 32px)}
#section-product-scraper .pd-close{color:#3f474f}

@media(max-width:1180px){
  #section-product-scraper .sp-main{grid-template-columns:1fr}
  #section-product-scraper .sp-result-card{min-height:420px}
}
@media(max-width:760px){
  #section-product-scraper .scraper-body{padding:10px 10px 22px}
  #section-product-scraper .sp-hero{padding:12px 14px;border-radius:16px}
  #section-product-scraper .sp-hero h1{font-size:22px}
  #section-product-scraper .sp-input-card,#section-product-scraper .sp-result-card{padding:16px;border-radius:16px}
}

/* 空态收紧：结果卡固定高度内完整可见，不再掉到 dock 底下 */
#section-product-scraper .sp-empty{padding:10px 14px;overflow-y:auto;min-height:0}
#section-product-scraper .sp-empty-ico{width:58px;height:58px;border-radius:18px;margin-bottom:10px}
#section-product-scraper .sp-empty-ico::after{font-size:24px}
#section-product-scraper .sp-empty h3{font-size:16px;margin-bottom:6px}
#section-product-scraper .sp-empty p{font-size:12px;line-height:1.6}#section-product-scraper .pd-close:focus-visible{outline:2px solid rgba(63,71,79,.28);outline-offset:2px}#section-product-scraper .pd-dialog .pd-close:focus-visible{outline:2px solid rgba(63,71,79,.22);outline-offset:2px}#section-product-scraper, #section-product-scraper .pd-scroll, #section-product-scraper .sp-card-grid, #section-product-scraper .sp-variant-list{scrollbar-width:thin;scrollbar-color:#c7ced5 transparent}/* 商品卡在固定高度里不被压扁：行高按内容，图片不参与收缩 */
#section-product-scraper .sp-card-grid{align-items:start;grid-auto-rows:max-content}
#section-product-scraper .sp-card-img{flex:0 0 auto}
#section-product-scraper .sp-card{height:max-content}
#section-product-scraper .sp-result-card{height:calc(100vh - 398px)}/* 首屏容纳完整商品卡：缩图比例 + 压缩标题条，卡片高度贴到 dock 上方 */
#section-product-scraper .sp-hero{padding:14px 22px}
#section-product-scraper .sp-hero h1{font-size:24px;margin:2px 0 4px}
#section-product-scraper .sp-result-card{height:calc(100vh - 372px)}
#section-product-scraper .sp-card-img{aspect-ratio:16/10}
#section-product-scraper .sp-card-body{padding:11px 13px 10px}
#section-product-scraper .sp-card-price{margin-top:6px;font-size:14px}#section-product-scraper .sp-result-card{height:calc(100vh - 274px)}

/* 满屏固定：去掉顶部标题条后，左右两栏直接铺满内容区，禁止外层纵向滚动 */
#section-product-scraper{height:100%;min-height:0;box-sizing:border-box}
#section-product-scraper .scraper-body{height:100%;min-height:0;padding:16px 16px 92px;box-sizing:border-box}
#section-product-scraper .sp-main{flex:1 1 auto;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch}
#section-product-scraper .sp-left{min-height:0;overflow:hidden}
#section-product-scraper .sp-right{display:flex;flex-direction:column;min-height:0}
#section-product-scraper .sp-result-card{height:auto;min-height:0;max-height:none;flex:1 1 auto}
#section-product-scraper .sp-empty{overflow:hidden}

/* 空态图标：商品卡片 + 添加，替换缺失字体的 emoji */
#section-product-scraper .sp-empty-ico{font-size:0}
#section-product-scraper .sp-empty-ico::after{content:none;display:none}
#section-product-scraper .sp-empty-ico svg{width:42px;height:42px;display:block;color:#303841}
#section-product-scraper .sp-empty h3{margin-bottom:0}

/* ===== 继续采集：把新链接追加进已有采集结果 ===== */
#section-product-scraper [hidden]{display:none!important}
#section-product-scraper .sp-left{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c7ced5 transparent}
#section-product-scraper .sp-left > .sp-input-card{flex:0 0 auto}
#section-product-scraper .sp-continue-card{
  border:1.5px dashed rgba(63,71,79,.22);
  background:rgba(255,255,255,.8);
}
#section-product-scraper .sp-continue-card[hidden]{display:none}
#section-product-scraper .sp-continue-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#section-product-scraper .sp-continue-chip{
  flex:0 0 auto;padding:4px 10px;border-radius:99px;border:1px solid var(--sp-line);
  background:var(--sp-input-bg);font-size:10.5px;font-weight:700;color:var(--sp-text2);white-space:nowrap;
}
#section-product-scraper .sp-continue-card .sp-textarea{margin-top:0;min-height:92px}
#section-product-scraper .sp-continue-btn{
  width:100%;height:44px;margin-top:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1.5px solid rgba(63,71,79,.28);border-radius:12px;background:#fff;color:var(--sp-text);
  font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s var(--sp-ease);
}
#section-product-scraper .sp-continue-btn:hover:not(:disabled){background:linear-gradient(145deg,#2a2f37,#171a1f);border-color:#171a1f;color:#fff;box-shadow:0 10px 24px rgba(23,26,31,.22)}
#section-product-scraper .sp-continue-btn:disabled{opacity:.45;cursor:not-allowed}

/* ===== 采集代理：SOCKS5 反爬出口 ===== */
#section-product-scraper .sp-proxy-card{background:rgba(255,255,255,.66)}
#section-product-scraper .sp-proxy-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#section-product-scraper .sp-proxy-card .sp-input-title{margin-bottom:0}
#section-product-scraper .sp-proxy-toggle{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--sp-text2);cursor:pointer;user-select:none}
#section-product-scraper .sp-proxy-toggle input{width:16px;height:16px;accent-color:#171a1f;cursor:pointer}
#section-product-scraper .sp-proxy-toggle:has(input:disabled){opacity:.45;cursor:not-allowed}
#section-product-scraper .sp-proxy-card .sp-input{margin-top:0}