#tool-body {
  --pi-card-bg: #ffffff;
  --pi-text: #333;
  --pi-sub: #8a8f99;
  --pi-border: #e6e8eb;
  --pi-hover: #f5f8ff;
  --pi-primary: #3a7bfd;
  --pi-ok: #16b779;
  --pi-warn: #f5a623;
  --pi-err: #e5484d;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 16px;
  padding-bottom: 40px;
  color: var(--pi-text);
}
.theme-dark-mode #tool-body {
  --pi-card-bg: #2d2d2d;
  --pi-text: #e8e8e8;
  --pi-sub: #9a9a9a;
  --pi-border: #3a3a3a;
  --pi-hover: #383838;
}
#tool-body .pi-card {
  background: var(--pi-card-bg);
  border: 1px solid var(--pi-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.theme-dark-mode #tool-body .pi-card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
#tool-body .pi-tips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--pi-sub);
  margin-bottom: 14px;
  line-height: 1.6;
}
#tool-body .pi-tips .fa { margin-right: 5px; color: var(--pi-ok); }
#tool-body .pi-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
#tool-body .pi-section-title .fa { margin-right: 6px; color: var(--pi-primary); }
#tool-body .pi-upload {
  border: 2px dashed var(--pi-border);
  border-radius: 10px;
  background: var(--pi-card-bg);
  padding: 30px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 14px;
}
#tool-body .pi-upload:hover,
#tool-body .pi-upload.pi-dragover {
  border-color: var(--pi-primary);
  background: var(--pi-hover);
}
#tool-body .pi-upload .fa {
  font-size: 34px;
  color: var(--pi-primary);
  margin-bottom: 8px;
}
#tool-body .pi-upload p { margin: 0; font-size: 14px; color: var(--pi-sub); }
#tool-body .pi-file {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#tool-body .pi-file .pi-ficon { color: var(--pi-err); font-size: 22px; flex-shrink: 0; }
#tool-body .pi-file .pi-finfo { flex: 1; min-width: 160px; }
#tool-body .pi-file .pi-fname { font-size: 14px; word-break: break-all; }
#tool-body .pi-file .pi-fsize { font-size: 12px; color: var(--pi-sub); margin-top: 2px; }
#tool-body .pi-file .pi-fops { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
#tool-body .pi-file .pi-fops .layui-btn { margin: 0; }
#tool-body .pi-hidden { display: none !important; }
#tool-body .pi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
  margin-bottom: 12px;
}
#tool-body .pi-row .layui-form-radio {
  margin: 0;
  padding-right: 0;
}
#tool-body .pi-label {
  font-size: 13px;
  color: var(--pi-sub);
  margin-bottom: 8px;
  font-weight: 500;
}
#tool-body .pi-hint {
  font-size: 12px;
  color: var(--pi-sub);
  line-height: 1.6;
  margin: 6px 0 0;
}
#tool-body .pi-slider-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  margin-bottom: 4px;
}
#tool-body .pi-slider-item .pi-slider-label {
  width: 90px;
  font-size: 13px;
  color: var(--pi-sub);
  flex-shrink: 0;
}
#tool-body .pi-slider-item .pi-slider-box { flex: 1; min-width: 120px; }
#tool-body .pi-slider-item .pi-slider-val {
  width: 48px;
  text-align: right;
  font-size: 13px;
  color: var(--pi-text);
  flex-shrink: 0;
}
#tool-body .pi-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}
#tool-body .pi-progress { font-size: 13px; color: var(--pi-sub); }
#tool-body .pi-result { display: none; }
#tool-body .pi-result.pi-show { display: block; }
#tool-body .pi-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
#tool-body .pi-result-head .pi-section-title { margin-bottom: 0; }
#tool-body .pi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
#tool-body .pi-item {
  border: 1px solid var(--pi-border);
  border-radius: 8px;
  padding: 8px;
  background: var(--pi-card-bg);
  text-align: center;
}
#tool-body .pi-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #fff;
  cursor: zoom-in;
  max-height: 180px;
  object-fit: contain;
}
#tool-body .pi-item .pi-meta {
  font-size: 12px;
  color: var(--pi-sub);
  margin: 6px 0;
  line-height: 1.4;
}
#tool-body .pi-item .layui-btn { margin: 0; }
@media screen and (max-width: 640px) {
  #tool-body .pi-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  #tool-body .pi-slider-item {
    flex-wrap: wrap;
  }
  #tool-body .pi-slider-item .pi-slider-label { width: 100%; }
  #tool-body .pi-slider-item .pi-slider-box { width: 100%; }
}

'
+ '#' + carId + ' { background:' + PV.bg + '; }'
+ '#' + carId + ' [carousel-item] > * { background:' + PV.bg + '; }'
+ '#' + carId + ' img { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }'
+ '