/* 快速发商品 / 快速开店 — 触屏 UI */
:root {
  --qp-primary: #c41e24;
  --qp-primary-dark: #9e181d;
  --qp-accent: #0d6e66;
  --qp-bg: #f5f6f8;
  --qp-card: #fff;
  --qp-text: #1a1a1a;
  --qp-muted: #6b7280;
  --qp-border: #e5e7eb;
  --qp-icon-muted: #9ca3af;
  --qp-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* 商务线条图标（单色 SVG mask） */
.qp-ico {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.15em;
  background-color: currentColor;
  flex-shrink: 0;
  mask: var(--qp-ico) center / contain no-repeat;
  -webkit-mask: var(--qp-ico) center / contain no-repeat;
}
.qp-ico-header { width: 22px; height: 22px; margin-right: 8px; opacity: 0.95; }
.qp-ico-empty { width: 52px; height: 52px; color: var(--qp-icon-muted); margin-bottom: 10px; }
.qp-ico-btn { width: 18px; height: 18px; color: #374151; }
.qp-ico-link { width: 14px; height: 14px; margin-right: 4px; opacity: 0.9; }
.qp-ico-chevron {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--qp-icon-muted);
  border-bottom: 1.5px solid var(--qp-icon-muted);
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform .2s;
  background: none;
  mask: none;
  -webkit-mask: none;
}
.qm-extra-toggle.open .qp-ico-chevron { transform: rotate(-135deg); margin-top: 2px; }

.qp-ico-store {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M4 21V8l8-5 8 5v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3Cpath d='M8 8h8'/%3E%3C/svg%3E");
}
.qp-ico-storefront {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10h20M4 10l2-6h12l2 6'/%3E%3Cpath d='M6 10v10h12V10'/%3E%3Cpath d='M10 14h4'/%3E%3C/svg%3E");
}
.qp-ico-product {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpath d='M3.27 6.96L12 12.01l8.73-5.05M12 22.08V12'/%3E%3C/svg%3E");
}
.qp-ico-camera {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
}
.qp-ico-album {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}
.qp-ico-mobile {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E");
}
.qp-ico-check {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.qp-ico-arrow {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.qp-ico-plus {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.qp-ico-image-empty {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M8 11l3 3 3-3 4 4'/%3E%3C/svg%3E");
}
.qp-ico-home {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E");
}
.qp-ico-grid {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}
.qp-ico-preview {
  --qp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.qp-hub-nav-preview.is-disabled { opacity: 0.45; }

.qp-header-title { display: flex; align-items: center; margin: 0; font-size: 20px; font-weight: 700; }
.qp-header-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  opacity: 0.95;
  text-decoration: none;
  font-size: 13px;
}
.qp-header-link .qp-ico-arrow { width: 12px; height: 12px; opacity: 0.85; }

* { box-sizing: border-box; }
body.qp-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--qp-bg);
  color: var(--qp-text);
  padding-bottom: calc(5.6rem + var(--qp-safe-bottom));
  min-height: 100vh;
}
body.qp-page.qp-has-hub-nav {
  padding-bottom: calc(8.2rem + var(--qp-safe-bottom));
}
body.qp-page.qp-has-hub-nav.qp-has-actions {
  padding-bottom: calc(11.2rem + var(--qp-safe-bottom));
}

/* 顶栏下：页面级栏目切换（首页/发商品/商品） */
.qp-page-nav {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--qp-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: sticky;
  top: 0;
  z-index: 25;
}
.qp-page-nav-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 8px 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--qp-muted);
  text-decoration: none;
  background: #f1f5f9;
  white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.qp-page-nav-item.active {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(13, 148, 136, .28);
}
.qp-page-nav-item:active { opacity: .88; }

.qp-header {
  background: linear-gradient(135deg, #9e181d 0%, #c41e24 55%, #d4383d 100%);
  color: #fff;
  padding: 14px 16px 18px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
.qp-header h1 { margin: 0; font-size: 20px; font-weight: 700; }
.qp-header p { margin: 6px 0 0; font-size: 13px; opacity: 0.92; line-height: 1.5; }
.qp-header .qp-audit-hint {
  display: block;
  margin: 8px 0 0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  opacity: 1;
}
.qp-header .qp-audit-hint.qp-audit-manual {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.qp-condition-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.qp-condition-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--qp-border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.qp-condition-tab input { display: none; }
.qp-condition-tab.active {
  border-color: #0284c7;
  background: #e0f2fe;
  color: #0369a1;
}
.qp-condition-tab.used-active {
  border-color: #d97706;
  background: #fff7ed;
  color: #b45309;
}

.qp-barcode-ref {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.qp-barcode-ref img {
  display: block;
  max-width: 120px;
  max-height: 80px;
  margin-top: 6px;
  border-radius: 6px;
}

.qp-store-banner {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(255,255,255,.12);
}
.qp-store-banner.ok { background: rgba(255,255,255,.15); }
.qp-store-banner.warn {
  background: rgba(254,226,226,.95);
  color: #991b1b;
}
.qp-store-banner a { color: inherit; font-weight: 600; text-decoration: underline; }

.qp-login-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #78350f;
}
.qp-login-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #92400e;
}
.qp-login-card-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #78350f;
}
.qp-login-btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  background: #0f766e;
  color: #fff !important;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.qp-login-card-foot {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
  color: #92400e;
}
.qp-login-card-foot a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: underline;
}

/* 快速发布独立登录弹窗 */
.qp-login-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.qp-login-modal-card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 360px;
  padding: 20px 18px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.qp-login-modal-title {
  margin: 0 0 6px;
  font-size: 18px;
  color: #111;
}
.qp-login-modal-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.qp-login-field {
  margin-bottom: 10px;
}
.qp-login-field label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.qp-login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
}
.qp-login-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.qp-login-modal-actions button {
  flex: 1;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.qp-login-modal-cancel {
  background: #f3f4f6;
  color: #374151;
}
.qp-login-modal-submit {
  background: #0f766e;
  color: #fff;
}
.qp-login-modal-foot {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
  color: #666;
}
.qp-login-modal-foot a {
  color: #0f766e;
  font-weight: 600;
}
.qp-login-modal-err {
  margin: 0 0 8px;
  font-size: 13px;
  color: #b91c1c;
  display: none;
}
.qp-store-banner .qp-logout-link {
  margin-left: 8px;
  font-size: 12px;
  color: inherit;
  opacity: 0.85;
  text-decoration: underline;
}

.qp-upload-btn-barcode {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border: none;
}

.qp-barcode-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #e0f2fe;
  color: #0369a1;
}

/* 条码扫描 overlay */
body.vt-barcode-open { overflow: hidden; }
.vt-barcode-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.vt-barcode-panel {
  width: 100%;
  max-width: 420px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
}
.vt-barcode-header {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.vt-barcode-title { flex: 1; text-align: center; font-size: 15px; font-weight: 600; }
.vt-barcode-cancel {
  background: transparent;
  border: none;
  color: #93c5fd;
  font-size: 14px;
  padding: 4px 8px;
}
.vt-barcode-spacer { width: 48px; }
.vt-barcode-stage {
  min-height: 240px;
  background: #000;
}
.vt-barcode-stage #vtBarcodeReader video {
  width: 100% !important;
  border: none !important;
}
.vt-barcode-hint {
  margin: 0;
  padding: 10px 14px 0;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  text-align: center;
}
.vt-barcode-manual {
  display: flex;
  gap: 8px;
  padding: 12px 14px 16px;
}
.vt-barcode-input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
.vt-barcode-manual-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  background: #0284c7;
  color: #fff;
  font-size: 14px;
}
.qp-back {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.95;
}

.qp-section {
  background: var(--qp-card);
  margin: 10px 12px;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.qp-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qp-section-title small { font-weight: 400; color: var(--qp-muted); font-size: 12px; }

.qp-upload-actions { display: flex; gap: 10px; margin-bottom: 12px; }
.qp-upload-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--qp-border);
  border-radius: 8px;
  background: #fafbfc;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.qp-upload-btn input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 5;
  font-size: 0;
}
.qp-upload-btn:active { background: #f0f0f0; }

/* 电脑端拖拽上传区 */
.qp-drop-zone {
  position: relative;
  border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.vision-touch-desktop .qp-drop-zone {
  border: 2px dashed #d1d5db;
  padding: 10px;
  min-height: 100px;
}
.vision-touch-desktop .qp-drop-zone .qp-empty-img {
  border: none;
  background: transparent;
}
.qp-drop-zone.qp-drop-active {
  border-color: #0d6e66 !important;
  background: #f0faf9;
}
.qp-drop-overlay {
  display: none;
  position: absolute;
  inset: 8px;
  z-index: 20;
  border-radius: 10px;
  background: rgba(13, 110, 102, 0.12);
  border: 2px dashed #0d6e66;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #0d6e66;
  pointer-events: none;
}
.qp-drop-zone.qp-drop-active .qp-drop-overlay {
  display: flex;
}
.qp-empty-text-desktop { display: none; }
.vision-touch-desktop .qp-empty-text-mobile { display: none; }
.vision-touch-desktop .qp-empty-text-desktop { display: inline; }

.qp-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qp-img-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}
.qp-img-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qp-img-item .qp-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
}
.qp-img-add {
  aspect-ratio: 1;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #fafafa;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.qp-img-add:active { background: #f0f0f0; }
.qp-img-add-plus { font-size: 28px; line-height: 1; font-weight: 300; color: #9ca3af; }
.qp-img-add-text { font-size: 11px; line-height: 1.2; }

/* vision status badges */
.vision-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 4px;
  font-size: 10px;
  text-align: center;
  color: #fff;
  line-height: 1.2;
}
.vision-badge-pending { background: rgba(245, 158, 11, .92); }
.vision-badge-auto_filled { background: rgba(16, 185, 129, .92); }
.vision-badge-local { background: rgba(100, 116, 139, .92); }
.vision-badge-fail { background: rgba(239, 68, 68, .92); }
.vision-badge-photo { background: rgba(59, 130, 246, .92); }
.vision-badge-none { display: none; }

.qp-field { margin-bottom: 12px; }
.qp-field label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}
.qp-field label em { color: var(--qp-primary); font-style: normal; }
.qp-field-voice {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.qp-field-voice input,
.qp-field-voice select,
.qp-field-voice textarea {
  flex: 1;
  min-width: 0;
}
.qp-field-voice .qp-voice-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fafafa;
  color: #666;
  font-size: 0;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.qp-field-voice .qp-voice-btn .vt-search-icon {
  background-color: #666;
}
.qp-field-voice .qp-voice-btn:active,
.qp-field-voice .qp-voice-btn.is-recording {
  background: #0d6e66;
  border-color: #0d6e66;
}
.qp-field-voice .qp-voice-btn.is-busy {
  opacity: .65;
  pointer-events: none;
}
.qp-field input,
.qp-field select,
.qp-field textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  -webkit-appearance: none;
}
.qp-field textarea { min-height: 88px; resize: vertical; }

/* 商品详情：图文预览 / 富文本 */
.qp-field-detail-rich { margin-bottom: 16px; }
.qp-label-sub { font-weight: 400; color: var(--qp-muted); font-size: 12px; margin-left: 6px; }
.qp-detail-tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 10px;
}
.qp-detail-tab {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--qp-border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: var(--qp-muted);
  cursor: pointer;
}
.qp-detail-tab.active {
  border-color: var(--qp-accent);
  color: var(--qp-accent);
  background: #f0faf9;
  font-weight: 600;
}
.qp-body-preview-wrap {
  border: 1px solid var(--qp-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.qp-body-preview {
  padding: 12px 14px;
  min-height: 120px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.75;
  color: var(--qp-text);
  -webkit-overflow-scrolling: touch;
}
.qp-body-preview h3 {
  font-size: 15px;
  margin: 14px 0 8px;
  font-weight: 600;
  color: var(--qp-text);
}
.qp-body-preview p { margin: 8px 0; }
.qp-body-preview img {
  width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}
.qp-body-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 8px 0;
}
.qp-body-preview td {
  padding: 8px 10px;
  border: 1px solid var(--qp-border);
}
.qp-body-preview ul { padding-left: 20px; margin: 8px 0; }
.qp-detail-no-img { padding: 0 14px 12px; margin: 0; }
.qp-body-edit-wrap .qp-field-voice textarea { min-height: 100px; }

/* 豆包详情组图 */
.qp-detail-ai-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 8px 0 10px;
}
.qp-detail-ai-bar .qp-detail-ai-hint {
  margin: 0;
  flex: 1 1 160px;
}
.qp-btn-sm {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 8px;
  line-height: 1.3;
  white-space: nowrap;
}
.qp-detail-ai-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #f0faf9;
  border: 1px solid #b2e0db;
  border-radius: 8px;
  font-size: 13px;
  color: var(--qp-accent, #0d9488);
}

.qp-field.ai-filled input,
.qp-field.ai-filled textarea,
.qp-field.ai-filled select {
  background: #f0fdf4;
  border-color: #86efac;
}

.qp-hint {
  font-size: 12px;
  color: var(--qp-muted);
  line-height: 1.5;
  margin: 0 0 10px;
}
.qp-recognizing {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 12px;
}
.qp-recognizing.show { display: flex; }
.qp-spin {
  width: 16px;
  height: 16px;
  border: 2px solid #fbbf24;
  border-top-color: transparent;
  border-radius: 50%;
  animation: qp-spin .7s linear infinite;
}
@keyframes qp-spin { to { transform: rotate(360deg); } }

.qp-multi-list { margin-top: 10px; }
.qp-multi-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.qp-multi-row:last-child { border-bottom: 0; }
.qp-multi-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}
.qp-multi-meta { flex: 1; min-width: 0; }
.qp-multi-meta input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
}
.qp-multi-status { font-size: 11px; margin-top: 4px; }
.qp-multi-status.pending { color: #d97706; }
.qp-multi-status.done { color: #059669; }
.qp-multi-status.local { color: #64748b; font-weight: 500; }
.qp-multi-status.fail { color: #dc2626; }

.qp-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  padding-bottom: calc(10px + var(--qp-safe-bottom));
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  z-index: 100;
}
.qp-footer-stacked {
  display: flex;
  flex-direction: column;
  padding: 0;
  padding-bottom: calc(var(--qp-safe-bottom));
}
.qp-footer-stacked .qp-dual-btns,
.qp-footer-stacked .qp-footer-actions,
.qp-footer-stacked .ms-footer-actions {
  order: 1;
  padding: 8px 12px 10px;
  background: #fff;
  border-bottom: 1px solid var(--qp-border);
}
.qp-footer-stacked .qp-hub-nav {
  order: 2;
}
.qp-footer-nav-only {
  padding: 0;
  padding-bottom: calc(var(--qp-safe-bottom));
}
.qp-dual-btns { display: flex; gap: 10px; }
.qp-btn {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.qp-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.qp-btn-outline {
  background: #fff;
  color: var(--qp-primary);
  border: 2px solid var(--qp-primary);
}
.qp-btn-primary {
  background: var(--qp-primary);
  color: #fff;
}
.qp-btn-primary:active { background: var(--qp-primary-dark); }

.qp-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  max-width: 80%;
  text-align: center;
  z-index: 9999;
  display: none;
  line-height: 1.5;
}
.qp-toast.show { display: block; }

.qp-empty-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 28px 12px;
  color: var(--qp-icon-muted);
  font-size: 13px;
  border: 1px dashed var(--qp-border);
  border-radius: 8px;
  background: #fafbfc;
}

/* ========== Day2 快速开店（与发商品共用组件） ========== */
.qm-header .qp-header h1 { font-size: 19px; }

.qm-storefront {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  max-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid var(--qp-border);
  margin-bottom: 12px;
}
.qm-storefront img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qm-storefront .vision-badge { font-size: 12px; padding: 6px 8px; }
.qm-storefront-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 160px;
  color: var(--qp-muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}
.qm-storefront-empty-text { max-width: 220px; line-height: 1.5; }

.qm-extra-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.qm-extra-toggle .arrow { display: none; }
.qm-extra-panel { display: none; padding-top: 8px; }
.qm-extra-panel.show { display: block; }
.qm-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qm-extra-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #eee;
}
.qm-extra-item img { width: 100%; height: 100%; object-fit: cover; }
.qm-extra-add {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--qp-border);
  background: #fafbfc;
  color: var(--qp-icon-muted);
  cursor: pointer;
  position: relative;
}
.qm-extra-add .qp-ico-plus { width: 22px; height: 22px; }
.qm-extra-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; width: 100%; height: 100%; }

.qm-success-page {
  text-align: center;
  padding: 40px 20px 24px;
}
.qm-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #047857;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qm-success-icon .qp-ico-check { width: 32px; height: 32px; }
.qm-success-page h2 { margin: 0 0 10px; font-size: 20px; }
.qm-success-page p { color: #666; font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.qm-success-card {
  background: #fff;
  margin: 16px 12px;
  padding: 16px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.qm-success-card dt { color: #888; font-size: 12px; margin-bottom: 4px; }
.qm-success-card dd { margin: 0 0 12px; font-size: 15px; }
.qm-success-actions { padding: 16px 12px; }
.qm-success-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 10px;
}
.qm-cred-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.qm-cred-modal-card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 360px;
  padding: 20px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.qm-cred-modal-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #111;
}
.qm-cred-modal-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.qm-cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 8px;
}
.qm-cred-label {
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
}
.qm-cred-val {
  font-size: 16px;
  color: #0f766e;
  word-break: break-all;
  text-align: right;
}
.qm-cred-copy-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.qm-cred-copy-btn {
  flex: 1;
  min-width: 90px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.qm-cred-confirm {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.qm-cred-copy-inline {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  vertical-align: middle;
}
.qm-cred-copy-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qp-success-link .qp-ico-link { color: #fff; }
.qm-link-primary { background: var(--qp-primary); color: #fff; }
.qm-link-outline { background: #fff; color: var(--qp-primary); border: 2px solid var(--qp-primary); }

.qm-enter-banner {
  margin: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0d6e66, #12897f);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(13,110,102,.2);
}
.qm-enter-banner .qp-ico { width: 20px; height: 20px; margin-top: 2px; opacity: 0.95; flex-shrink: 0; }
.qm-enter-banner-body { flex: 1; min-width: 0; }
.qm-enter-banner strong { display: block; font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.qm-enter-banner span { font-size: 13px; opacity: .92; line-height: 1.45; }
.qm-enter-banner.product {
  background: linear-gradient(135deg, #9e181d, #c41e24);
  box-shadow: 0 2px 8px rgba(196,30,36,.2);
}

/* ========== PC 端提示条（独立命名空间，避免被全站 CSS 干扰） ========== */
.vt-pc-hint {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: 40px 1fr 36px;
  align-items: center;
  gap: 0 10px;
  padding: 10px 12px 10px 14px;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.vt-pc-hint-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vt-pc-hint-icon .qp-ico-mobile {
  width: 18px;
  height: 18px;
  color: #64748b;
}
.vt-pc-hint-body {
  min-width: 0;
  overflow: hidden;
}
.vt-pc-hint-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 2px;
  white-space: normal;
  writing-mode: horizontal-tb;
}
.vt-pc-hint-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  white-space: normal;
  writing-mode: horizontal-tb;
}
.vt-pc-hint-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: start;
  margin-top: 2px;
}
.vt-pc-hint-close:hover {
  background: #f1f5f9;
  color: #475569;
}
.vt-pc-hint-hidden {
  display: none !important;
}

/* 旧版兼容选择器（可删） */
.vision-touch-desktop .vt-pc-hint {
  /* 样式已迁移至 .vt-pc-hint 本体 */
}
.vision-touch-desktop .vt-pc-hint-hidden {
  display: none !important;
}
.vision-touch-mobile .qp-upload-btn,
.vision-touch-mobile .qp-btn,
.vision-touch-mobile .qm-storefront-btn {
  min-height: 48px;
}

/* ========== Day5 骨架屏 / 错误态 / 加载态 ========== */
.qp-error-banner {
  margin: 0;
  padding: 10px 14px;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.4;
}
.qp-skeleton {
  margin: 10px 12px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.qp-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: qp-shimmer 1.2s infinite;
  margin-bottom: 10px;
}
.qp-skeleton-line.short { width: 60%; }
.qp-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.qp-skeleton-grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: qp-shimmer 1.2s infinite;
}
@keyframes qp-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.qp-multi-title {
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: #333;
}
.qp-btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
  position: relative;
}
.qp-btn.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: qp-spin .7s linear infinite;
}
.qm-extra-grid-9 {
  grid-template-columns: repeat(3, 1fr);
}
.qm-extra-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  padding: 0;
  cursor: pointer;
}
.qp-footer .qp-btn {
  min-height: 48px;
  font-size: 15px;
}

/* ========== 图片裁剪（门头/商品识别前） ========== */
body.vt-crop-open { overflow: hidden; }
.vt-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: #111;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.vt-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top, 0));
  background: rgba(0,0,0,.85);
  flex-shrink: 0;
}
.vt-crop-header button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  padding: 8px 10px;
  cursor: pointer;
}
.vt-crop-confirm { color: #5eead4; font-weight: 600; }
.vt-crop-title { font-size: 15px; font-weight: 600; }
.vt-crop-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.vt-crop-img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  pointer-events: none;
}
.vt-crop-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.62);
  border-radius: 4px;
  pointer-events: none;
}
.vt-crop-frame-free {
  transform: none;
  pointer-events: auto;
  touch-action: none;
}
.vt-crop-frame-move {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.vt-crop-handle {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 2px solid #0d9488;
  border-radius: 50%;
  pointer-events: auto;
  z-index: 3;
  touch-action: none;
}
.vt-crop-handle-nw { left: -12px; top: -12px; }
.vt-crop-handle-ne { right: -12px; top: -12px; }
.vt-crop-handle-sw { left: -12px; bottom: -12px; }
.vt-crop-handle-se { right: -12px; bottom: -12px; }
.vt-crop-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  background: rgba(0,0,0,.85);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.vt-crop-fit-width,
.vt-crop-fit-all {
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.vt-crop-fit-width:active,
.vt-crop-fit-all:active {
  background: rgba(13,148,136,.35);
  border-color: #5eead4;
}
.vt-crop-footer button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.vt-crop-zoom {
  flex: 1;
  accent-color: #0d9488;
}
.vt-crop-hint {
  margin: 0;
  padding: 0 16px 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  background: rgba(0,0,0,.85);
}

/* 门头照重新裁剪 / 重拍 */
.qm-retake-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
}
.qm-retake-btn {
  border: 0;
  background: none;
  color: #0d6e66;
  font-size: 14px;
  padding: 8px 10px;
  cursor: pointer;
}
.qm-retake-sep {
  color: #ccc;
  font-size: 12px;
  user-select: none;
}

/* 快速发布中心 hub */
.qs-hub-section { padding-top: 0; }
.qs-hub-banners { display: flex; flex-direction: column; gap: 12px; }
.qs-hub-manage {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  border: 0 !important;
}
.qs-hub-foot {
  text-align: center;
  padding: 16px 20px 100px;
  padding-bottom: calc(100px + var(--qp-safe-bottom));
  font-size: 13px;
  color: var(--qp-muted);
}
.qs-hub-foot a { color: #0d9488; text-decoration: none; }
.qs-hub-foot-sep { color: #ccc; }
.qs-hub-legacy { color: var(--qp-muted) !important; font-size: 12px; }

/* 独立商品列表（manage-shop qp-page） */
/* 手机端提示条 */
.qp-mobile-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  font-size: 12px;
  color: #92400e;
  line-height: 1.4;
}
.qp-mobile-tip-close {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #b45309;
  cursor: pointer;
  padding: 0 4px;
}
.ms-page {
  background: var(--qp-bg);
  padding-bottom: calc(11.2rem + var(--qp-safe-bottom));
}
.ms-page .qp-page-nav + .ms-tabs {
  top: 46px;
}
.ms-header { margin-bottom: 0; }
.ms-header-hint {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: .88;
  line-height: 1.4;
}
.ms-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--qp-border);
  margin: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ms-tabs ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ms-tabs li {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  color: var(--qp-muted);
}
.ms-tabs li.curr {
  color: #0d9488;
  border-bottom-color: #0d9488;
  font-weight: 600;
}
.ms-tabs li a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.ms-tab-badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  line-height: 18px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  background: #e2e8f0;
  color: #64748b;
}
.ms-tabs li.curr .ms-tab-badge {
  background: rgba(13, 148, 136, .15);
  color: #0d9488;
}
.ms-toolbar {
  padding: 10px 12px 0;
  background: var(--qp-bg);
}
.ms-search-wrap {
  position: relative;
  margin-bottom: 8px;
}
.ms-search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--qp-border);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  outline: none;
}
.ms-search:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, .12);
}
.ms-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #e2e8f0;
  color: #64748b;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.ms-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  font-size: 12px;
  color: var(--qp-muted);
}
.ms-count { font-weight: 500; }
.ms-refresh-btn {
  border: 1px solid var(--qp-border);
  background: #fff;
  color: #0d9488;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.si-file-btn {
  display: block;
  text-align: center;
  cursor: pointer;
}
.ms-refresh-btn.loading { opacity: .6; pointer-events: none; }
.ms-list { padding: 4px 12px 0; min-height: 120px; }
.ms-list .item {
  display: flex;
  gap: 12px;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--qp-border);
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ms-list .item-img { flex-shrink: 0; }
.ms-list .item-img a {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}
.ms-list .item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ms-list .item-txt { flex: 1; min-width: 0; }
.ms-list .item-tit {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #1e293b;
  max-height: 2.8em;
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 6px;
  word-break: break-word;
}
.ms-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.ms-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
}
.ms-status-on { background: #d1fae5; color: #047857; }
.ms-status-pending { background: #fef3c7; color: #b45309; }
.ms-status-off { background: #f1f5f9; color: #64748b; }
.ms-item-date { font-size: 11px; color: #94a3b8; }
.ms-view-link {
  color: var(--qp-muted) !important;
  border-color: var(--qp-border) !important;
}
.ms-edit-link {
  color: #fff !important;
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  font-weight: 600;
}
.ms-item-actions {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.ms-end-tip { color: #94a3b8; font-size: 12px; padding: 16px !important; text-align: center; }
.ms-list-loading {
  color: #94a3b8;
  font-size: 12px;
  padding: 16px !important;
  text-align: center;
}
.ms-list-footer { margin: 0; }
.ms-retry-wrap { padding: 32px 16px !important; }
.ms-retry-btn {
  margin-left: 8px;
  border: 1px solid #0d9488;
  background: #fff;
  color: #0d9488;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.ms-list .price {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--qp-primary);
}
.ms-list .price em { font-style: normal; font-weight: 700; font-size: 16px; }
.ms-list .operate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--qp-muted);
}
.ms-list .operate span { margin-right: 4px; }
.ms-list .operate a {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  color: #0d9488;
  border: 1px solid #0d9488;
  background: #fff;
}
.ms-list .operate a.load { opacity: .6; pointer-events: none; }
.ms-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  font-size: 12px;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 8px;
}
.ms-list .loading {
  text-align: center;
  padding: 24px;
  color: var(--qp-muted);
  font-size: 14px;
}
.ms-empty {
  text-align: center;
  padding: 40px 24px 24px;
  color: var(--qp-muted);
}
.ms-empty p { margin: 12px 0 16px; font-size: 14px; }
.ms-empty-btn { display: inline-block; max-width: 200px; }
.ms-footer { flex-direction: column; gap: 0; padding-top: 0; }
.ms-footer-actions { padding: 8px 16px 12px; width: 100%; box-sizing: border-box; }
.ms-footer .qp-dual-btns { justify-content: center; }
.ms-footer .qp-btn-primary { max-width: 100%; flex: 1; }
.qp-hub-nav {
  display: flex;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--qp-border);
}
.qp-hub-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px) * 0);
  min-height: 54px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.qp-hub-nav-ico {
  width: 22px;
  height: 22px;
  color: inherit;
  opacity: .85;
}
.qp-hub-nav-item.active {
  color: #0d9488;
  font-weight: 600;
}
.qp-hub-nav-item.active .qp-hub-nav-ico { opacity: 1; }
.qp-hub-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  background: #0d9488;
  border-radius: 0 0 2px 2px;
}
.qp-hub-nav-label { display: block; line-height: 1.2; }

/* 平台招商 · 快速开店（管理员专用，与商家 hub 分离） */
.qm-admin-badge {
  display: inline-block;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.qm-admin-header .qp-header-title { margin-top: 4px; }
.qm-admin-foot-note {
  margin: 10px 16px 0;
  font-size: 12px;
  color: var(--qp-muted);
  text-align: center;
  line-height: 1.5;
}
.qm-admin-denied-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
}
.qm-admin-denied-card {
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 32px rgba(15, 118, 110, .12);
  border: 1px solid #ccfbf1;
  text-align: center;
}
.qm-admin-denied-card h1 {
  font-size: 20px;
  margin: 12px 0 8px;
  color: #0f766e;
}
.qm-admin-denied-card p { color: #64748b; font-size: 14px; line-height: 1.6; }
.qm-admin-denied-list {
  text-align: left;
  margin: 16px 0;
  padding-left: 20px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}
.qm-admin-denied-btn { display: inline-block; margin-top: 8px; text-decoration: none; }
.qm-admin-login-card .qm-admin-badge {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.qm-admin-login-card { text-align: left; }
.qm-admin-login-card h1 { text-align: center; }
.qm-admin-login-card > p:first-of-type { text-align: center; }
.qs-hub-note { color: var(--qp-muted); font-size: 13px; }

/* 我开通的商户（手机招商） */
.qmm-toolbar { display: flex; gap: 8px; padding: 0 12px 12px; align-items: center; }
.qmm-toolbar .ms-search { flex: 1; }
.qmm-list { padding: 0 12px 16px; }
.qmm-card {
  background: #fff;
  border: 1px solid var(--qp-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.qmm-card-title { font-size: 16px; font-weight: 600; color: #0f766e; margin-bottom: 6px; }
.qmm-card-meta { font-size: 13px; color: var(--qp-muted); line-height: 1.5; }
.qmm-empty { text-align: center; padding: 40px 16px; color: var(--qp-muted); }
.qmm-pager { text-align: center; font-size: 12px; color: var(--qp-muted); padding-bottom: 24px; }
.qmm-loading { text-align: center; padding: 24px; color: var(--qp-muted); }

/* 独立手机端店铺管理 /u/shop*.html */
.sm-page { padding-bottom: 80px; }
.sm-header-hint { font-size: 13px; color: var(--qp-muted); margin: 4px 0 0; }
.sm-form { padding: 12px 16px 24px; }
.sm-field { margin-bottom: 14px; }
.sm-field label { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 500; }
.sm-field label em { color: #ef4444; font-style: normal; }
.sm-field input,
.sm-field select,
.sm-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--qp-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  -webkit-appearance: none;
  background: #fff;
}
.sm-field textarea { resize: vertical; min-height: 72px; }
.sm-field-hint { margin: 6px 0 0; font-size: 12px; color: var(--qp-muted); line-height: 1.5; }
.sm-field-hint a { color: var(--qp-primary, #2563eb); }
.sm-field-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sm-field-inline label { width: 100%; }
.sm-field-inline input { flex: 1; min-width: 60px; max-width: 100px; }
.sm-field-unit { font-size: 13px; color: var(--qp-muted); }
.sm-form-actions { margin-top: 20px; }
.sm-form-actions .qp-btn { width: 100%; }
.sm-toolbar { padding: 0 12px 12px; }
.sm-add-btn { width: 100%; }
.sm-empty { text-align: center; padding: 40px 16px; color: var(--qp-muted); font-size: 14px; }
.sm-loading { text-align: center; padding: 16px; color: var(--qp-muted); }
.sm-footer-fixed {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--qp-border);
  z-index: 50;
}
.sm-footer-fixed .qp-btn { width: 100%; }
.sm-cat-list { padding: 0 12px 100px; }
.sm-cat-group {
  background: #fff;
  border: 1px solid var(--qp-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.sm-cat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sm-cat-child { padding-left: 16px; }
.sm-cat-input {
  flex: 1;
  border: 1px solid var(--qp-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}
.sm-cat-del, .sm-cat-del-sub {
  width: 32px; height: 32px;
  border: none; background: #fee2e2; color: #dc2626;
  border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer;
}
.sm-cat-add-sub {
  border: none; background: none; color: #0d9488;
  font-size: 13px; padding: 4px 0; cursor: pointer;
}
.sm-log-list { padding: 0 12px 24px; }
.sm-log-card {
  background: #fff;
  border: 1px solid var(--qp-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.sm-log-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sm-log-card-head strong { font-size: 15px; color: #0f766e; }
.sm-log-card-actions { display: flex; gap: 8px; }
.sm-log-card-actions button {
  border: 1px solid var(--qp-border);
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #475569;
}
.sm-log-detail { margin-top: 8px; font-size: 13px; color: var(--qp-muted); line-height: 1.5; }
.sm-radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-radio-group-3 .sm-radio-btn { flex: 1; min-width: 0; }
.sm-radio-btn {
  border: 1px solid var(--qp-border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}
.sm-radio-btn.curr { background: #ccfbf1; border-color: #0d9488; color: #0f766e; font-weight: 600; }
.sm-order-list { padding: 4px 12px 24px; }
.sm-order-card {
  background: #fff;
  border: 1px solid var(--qp-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.sm-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sm-order-num { font-size: 13px; color: #64748b; }
.sm-order-buyer { font-size: 13px; color: #475569; margin-bottom: 8px; }
.sm-order-prod { display: flex; gap: 10px; margin-bottom: 8px; }
.sm-order-img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sm-order-prod-info { flex: 1; min-width: 0; }
.sm-order-prod-title { font-size: 14px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sm-order-prod-meta { font-size: 12px; color: var(--qp-muted); margin-top: 4px; }
.sm-order-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.sm-order-date { font-size: 12px; color: #94a3b8; }
.sm-order-total { font-size: 14px; font-weight: 600; color: #0f766e; }
