/* ==========================================================================
   云启数据 (YunQi Data) - 跨境选品 SaaS 前端全局样式表
   高保真还原图一设计体系
   ========================================================================== */

:root {
  --primary: #ff5722;
  --primary-hover: #e64a19;
  --primary-light: #fff2e8;
  --primary-border: #ffbb96;
  
  --bg-body: #f4f6fa;
  --bg-card: #ffffff;
  --bg-table-header: #f8fafc;
  
  --text-main: #1e293b;
  --text-regular: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --color-orange: #fa8c16;
  --color-orange-bg: #fff7e6;
  --color-orange-border: #ffd591;
  
  --color-purple: #722ed1;
  --color-purple-bg: #f9f0ff;
  --color-purple-border: #d3adf7;
  
  --color-green: #52c41a;
  --color-green-bg: #f6ffed;
  
  --color-red: #f5222d;
  --color-red-bg: #fff1f0;
  
  --border-color: #e2e8f0;
  --border-input: #d9d9d9;
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button, input, select {
  font-family: inherit;
  font-size: 12px;
}

/* ==========================================================================
   1. 顶部 Header 导航栏
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 54px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo-icon-svg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.32);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(8, 105, 114, 0.25));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) translateY(-1px);
  filter: drop-shadow(0 4px 10px rgba(8, 105, 114, 0.42));
}

.auth-brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(8, 105, 114, 0.3));
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.5px;
}

.brand-slogan {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-top: -2px;
}

/* 平台切换导航 */
.platform-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.platform-nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
}

.platform-nav-item:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.platform-nav-item.active {
  color: #0f172a;
  font-weight: 600;
}

.platform-nav-divider {
  color: #cbd5e1;
  font-size: 12px;
}

.platform-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-temu {
  background: #ff5722;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.badge-tag {
  font-size: 9px;
  line-height: 1.2;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: bold;
  transform: scale(0.9);
}

.badge-hot {
  background: #ff4d4f;
  color: #fff;
}

.badge-new {
  background: #ff7a45;
  color: #fff;
}

.badge-beta {
  background: #fa8c16;
  color: #fff;
}

/* 顶部右侧功能 */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-vip-upgrade {
  background: linear-gradient(135deg, #2b2b2b 0%, #151515 100%);
  color: #ffd591;
  border: 1px solid #59441a;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: opacity 0.2s;
}

.btn-vip-upgrade:hover {
  opacity: 0.92;
}

.header-tool-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s;
}

.header-tool-btn:hover {
  color: var(--primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 4px 8px 4px 12px;
  border-left: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: all 0.2s ease;
}

.user-profile:hover {
  background: #f1f5f9;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s ease;
}

.user-profile:hover .user-avatar {
  border-color: var(--primary);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-phone {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.user-vip-status {
  font-size: 10px;
  color: #94a3b8;
}

.header-guest-wrap {
  display: flex;
  align-items: center;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border-color);
}

.btn-open-auth-modal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 87, 34, 0.25);
}

.btn-open-auth-modal:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.35);
}

/* ==========================================================================
   2. 主体框架与左侧 Sidebar
   ========================================================================== */
.main-wrapper {
  display: flex;
  min-height: calc(100vh - 54px);
  background: var(--bg-body);
}

/* ==========================================================================
   2. 双栏 Tab 风格导航系统 (参考阿里云产品控制台二级联动 Tab)
   ========================================================================== */
.tab-sidebar {
  display: flex;
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
  z-index: 10;
  position: relative;
  transition: all 0.25s ease;
}

/* 第 1 栏: 一级模块/产品 Tab 列表 (左侧) */
.tab-primary-col {
  width: 172px;
  background: #fafbfc;
  border-right: 1px solid #edf2f7;
  padding: 16px 8px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.tab-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
  padding: 2px 4px 6px 4px;
}

.tab-header-title svg {
  stroke: #64748b;
  margin-top: 1px;
}

.tab-search-wrapper {
  position: relative;
  margin: 0 4px 6px 4px;
}

.tab-search-input {
  width: 100%;
  padding: 6px 26px 6px 6px;
  font-size: 12.5px;
  border: none;
  border-bottom: 1.5px solid #e2e8f0;
  background: transparent;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
}

.tab-search-input:focus {
  border-bottom-color: var(--primary);
}

.tab-search-icon {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  stroke: #94a3b8;
  pointer-events: none;
}

.tab-list-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: calc(100vh - 160px);
}

.tab-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.tab-nav-item .tab-arrow {
  stroke: #94a3b8;
  transition: all 0.18s ease;
}

.tab-nav-item:hover {
  background: #edf2f7;
  color: #0f172a;
}

.tab-nav-item:hover .tab-arrow {
  stroke: #64748b;
  transform: translateX(2px);
}

/* 激活的 Tab 项（商品库） */
.tab-nav-item.active {
  background: #fff3eb;
  color: var(--primary);
  font-weight: 600;
}

.tab-nav-item.active .tab-arrow {
  stroke: var(--primary);
  transform: translateX(1px);
}

/* 第 2 栏: 二级子分类与卡片列表面板 (右侧红圈区域，支持平滑折叠与展开) */
.tab-secondary-col {
  width: 250px;
  background: #ffffff;
  padding: 16px 16px 24px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 54px);
  flex-shrink: 0;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.22s ease;
  white-space: normal;
}

/* 边缘悬浮折叠/展开按钮 */
.tab-edge-toggle {
  position: absolute;
  left: 172px;
  top: 18px;
  transform: translateX(-50%);
  z-index: 25;
  width: 22px;
  height: 32px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  outline: none;
}

.tab-edge-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.35);
}

.tab-edge-arrow {
  stroke: currentColor;
  transition: transform 0.28s ease;
}

/* 头部折叠按钮 */
.tab-sub-header {
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tab-sub-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-subpanel-collapse {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.btn-subpanel-collapse:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* 折叠状态（红圈区域折叠收起） */
.tab-sidebar.collapsed-subpanel .tab-secondary-col {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.tab-sidebar.collapsed-subpanel .tab-edge-arrow {
  transform: rotate(180deg);
}

.tab-sidebar.collapsed-subpanel .tab-edge-toggle {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.tab-sidebar.collapsed-subpanel .tab-edge-toggle:hover {
  background: var(--primary);
  color: #ffffff;
}

.tab-sub-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tab-group-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tab-group-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

.tab-sub-card {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  background: #ffffff;
}

.tab-sub-card:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.tab-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tab-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.2s;
}

.tab-card-badge {
  font-size: 10px;
  background: var(--primary);
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 600;
}

.tab-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
  margin-top: 3px;
}

/* 激活的二级卡片（商品搜索 - 当前页面） */
.tab-sub-card.active {
  background: #fff8f4;
  border-color: rgba(255, 87, 34, 0.25);
  border-left: 3.5px solid var(--primary);
}

.tab-sub-card.active .tab-card-name {
  color: var(--primary);
}

.tab-sub-card.active .tab-card-desc {
  color: #78716c;
}

/* 顶部面包屑补充文本 */
.platform-breadcrumb-text {
  font-size: 12px;
  color: #64748b;
}

.platform-breadcrumb-text.current {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   3. 主内容区域
   ========================================================================== */
.content-area {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow-x: hidden;
}

/* 顶部搜索栏卡片 */
.search-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  flex-wrap: nowrap;
}

.search-inputs-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.keyword-mode-switch {
  cursor: pointer;
  color: var(--primary);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  font-size: 14px;
  flex-shrink: 0;
}

.search-input-main {
  flex: 1;
  min-width: 140px;
  height: 34px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input-main:focus {
  border-color: var(--primary);
}

.exclude-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  height: 34px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.exclude-input {
  border: none;
  outline: none;
  padding: 0 10px;
  width: 130px;
  font-size: 12px;
}

.exclude-mode-select {
  border: none;
  border-left: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  padding: 0 8px;
  height: 100%;
  cursor: pointer;
  outline: none;
  font-size: 11px;
}

.search-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 6px rgba(255, 87, 34, 0.25);
}

.btn-outline-primary {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-primary:hover {
  background: var(--primary-light);
}

.btn-ghost-info {
  color: #64748b;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.btn-ghost-info:hover {
  color: var(--primary);
}

.search-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   4. 多维复合筛选面板 (Filter Panel)
   ========================================================================== */
.filter-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s ease;
}

/* 筛选面板折叠/展开常驻条 (默认折叠，带折叠展开动态图标) */
.filter-collapse-header {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: all 0.2s ease;
}

.filter-collapse-header:hover {
  background: #fff8f3;
}

.filter-collapse-header.expanded {
  border-bottom: 1px solid #f1f5f9;
  background: #fffcf9;
}

.filter-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 87, 34, 0.2);
}

.filter-header-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.filter-header-hint {
  font-size: 11px;
  color: #94a3b8;
}

.filter-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.filter-chevron-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
  transition: all 0.25s ease;
}

.filter-chevron-svg {
  stroke: var(--primary);
  transition: transform 0.25s ease;
}

.filter-collapse-header:hover .filter-chevron-box {
  background: var(--primary);
}

.filter-collapse-header:hover .filter-chevron-box .filter-chevron-svg {
  stroke: #ffffff;
}

.filter-collapse-header.expanded .filter-chevron-svg {
  transform: rotate(180deg);
}

/* 底部快速收起栏 (京东式交互) */
.filter-bottom-fold-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 2px 0;
  margin-top: 4px;
  border-top: 1px dashed #f1f5f9;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.filter-bottom-fold-strip svg {
  stroke: #94a3b8;
  transition: stroke 0.2s;
}

.filter-bottom-fold-strip:hover {
  color: var(--primary);
}

.filter-bottom-fold-strip:hover svg {
  stroke: var(--primary);
}

/* 筛选条件全量内容区 */
.filter-content-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInDown 0.22s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

/* 下拉选择框 */
.custom-select {
  height: 28px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  background: #ffffff;
  color: #334155;
  outline: none;
  cursor: pointer;
}

.custom-select:focus {
  border-color: var(--primary);
}

/* 按钮单选切换 */
.radio-button-group {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 2px;
}

.radio-btn {
  border: none;
  background: transparent;
  padding: 3px 10px;
  font-size: 12px;
  color: #64748b;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.radio-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 500;
}

/* 数值区间输入 */
.range-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.range-input {
  width: 58px;
  height: 28px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  text-align: center;
  outline: none;
  font-size: 12px;
}

.range-input:focus {
  border-color: var(--primary);
}

.range-split {
  color: #94a3b8;
  font-size: 12px;
}

/* 日期范围 */
.date-range-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  height: 28px;
  padding: 0 6px;
  background: #fff;
  gap: 4px;
}

.date-input {
  border: none;
  outline: none;
  font-size: 11px;
  color: #64748b;
  width: 80px;
}

/* 筛选区尾部按钮 */
.filter-btn-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reset {
  background: #ffffff;
  border: 1px solid var(--border-input);
  color: #64748b;
  height: 28px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-reset:hover {
  background: #f8fafc;
}

.btn-filter-search {
  background: var(--primary);
  border: none;
  color: #fff;
  height: 28px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-export {
  background: #ffffff;
  border: 1px solid var(--primary);
  color: var(--primary);
  height: 28px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
}

.btn-export:hover {
  background: var(--primary-light);
}

/* ==========================================================================
   6. 商品数据表格卡片 (Product Table)
   ========================================================================== */
.table-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100% !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
  text-align: left;
}

.data-table th {
  background: var(--bg-table-header);
  color: #475569;
  font-weight: 600;
  font-size: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 9 个表头列自适应百分比科学配比 (总和 100%)，无缝平铺全屏且不截断文字 */
.col-th-product { width: 26%; }
.col-th-cat     { width: 6%; }
.col-th-trend   { width: 5%; }
.col-th-price   { width: 7%; }
.col-th-profit  { width: 11%; }
.col-th-sales   { width: 16%; }
.col-th-time    { width: 10%; }
.col-th-rating  { width: 7%; }
.col-th-reviews { width: 12%; }

.th-sortable {
  cursor: pointer;
  user-select: none;
}

.th-sortable:hover {
  color: var(--primary);
}

.sort-icon {
  font-size: 10px;
  margin-left: 2px;
  color: #94a3b8;
}

.data-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 12px;
}

.data-table tr:hover {
  background: #fafcff;
}

/* 表格列：商品信息 */
.col-product {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.product-thumb-box {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.product-thumb-box:hover .product-thumb-img {
  transform: scale(1.08);
}

.badge-video {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.product-title {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.product-title:hover {
  color: var(--primary);
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.tag-orange {
  background: var(--color-orange-bg);
  color: var(--color-orange);
  border: 1px solid var(--color-orange-border);
  padding: 0 4px;
  border-radius: 2px;
  font-size: 10px;
}

.tag-purple {
  background: var(--color-purple-bg);
  color: var(--color-purple);
  border: 1px solid var(--color-purple-border);
  padding: 0 4px;
  border-radius: 2px;
  font-size: 10px;
}

.tag-blue-outline {
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 0 4px;
  border-radius: 2px;
  font-size: 10px;
}

.tag-purple-badge {
  background: #722ed1;
  color: #ffffff;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 10px;
}

/* 商品行快捷操作按钮栏 (图二红圈样式) */
.product-action-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.action-btn-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.prod-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}

.prod-act-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.prod-act-btn .act-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
}

.prod-act-btn .act-icon-arrow {
  width: 9px;
  height: 9px;
  stroke: #94a3b8;
  margin-left: 1px;
  transition: transform 0.2s;
}

.action-btn-dropdown-wrap:hover .act-icon-arrow {
  transform: rotate(180deg);
}

.prod-act-btn.is-favorited {
  color: #f59e0b;
  border-color: #fde68a;
  background: #fffbeb;
}

.prod-act-btn.is-favorited .star-icon {
  fill: #f59e0b;
  stroke: #f59e0b;
}

/* 下拉菜单 (链接下拉 / 图搜下拉) */
.action-dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 3px;
  left: 0;
  min-width: 126px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  padding: 4px 0;
  z-index: 9999;
  display: none;
}

/* 隐形透明安全桥梁：填补按钮与下拉框之间的缝隙及周边微小移动区域，使鼠标向下滑向“找货源”等子项时绝对不会断触 */
.action-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -8px;
  right: -8px;
  height: 14px;
  background: transparent;
  pointer-events: auto;
}

/* 激活或悬浮时提升整行层级，彻底杜绝下层行内容穿透 */
.data-table tbody tr {
  position: relative;
  z-index: 1;
}

.data-table tbody tr:hover,
.data-table tbody tr:has(.action-btn-dropdown-wrap:hover),
.data-table tbody tr:has(.action-btn-dropdown-wrap.is-open) {
  position: relative;
  z-index: 100;
}

.action-btn-dropdown-wrap:hover .action-dropdown-menu,
.action-btn-dropdown-wrap.is-open .action-dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  color: #334155;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.dropdown-item:hover {
  background: #fff7ed;
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 3px 0;
}

/* 表格列：店铺 */
.col-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 80px;
}

/* 表格列：上架时间 */
.col-list-time {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}

.store-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.store-name {
  font-size: 11px;
  color: #475569;
  font-weight: 500;
  text-align: center;
  word-break: break-all;
}

/* 表格列：分类 */
.col-category {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.cat-pill-green {
  background: #f6ffed;
  color: #389e0d;
  border: 1px solid #b7eb8f;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.cat-pill-blue {
  background: #e6f4ff;
  color: #0958d9;
  border: 1px solid #91caff;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* 表格列：日均趋势 (Sparkline) */
.col-trend {
  width: 90px;
  height: 36px;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
}

/* 表格列：价格 */
.col-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-current {
  color: #ff4d4f;
  font-size: 14px;
  font-weight: 700;
}

.price-original {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 11px;
}

.price-euro {
  color: #1e293b;
  font-weight: 600;
  font-size: 12px;
}

.price-euro-orig {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 10px;
}

/* 表格列：销量 */
.sales-metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sales-val {
  font-weight: 600;
  color: #1e293b;
}

.rate-up {
  color: #ff4d4f;
  font-size: 10px;
}

.rate-down {
  color: #52c41a;
  font-size: 10px;
}

/* 表格列：评分与评论 */
.rating-cell, .review-cell {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.rating-row, .review-row {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.review-total-bold {
  font-weight: 700;
  color: #1e293b;
}

/* 表格列：操作 */
.col-operations {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.op-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.op-link {
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 2px;
}

.op-link:hover {
  text-decoration: underline;
}

.tag-new-red {
  background: #ff4d4f;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 0 3px;
  border-radius: 2px;
  margin-left: 2px;
}

/* 缺失字段占位符与单项指标展示 */
.cell-empty-placeholder {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  user-select: none;
}

.rating-simple-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-icon-gold {
  color: #fa8c16;
  font-size: 13px;
}

.rating-score-bold {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.reviews-simple-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.reviews-num-bold {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.reviews-unit {
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   7. 底部分页卡片 (Pagination)
   ========================================================================== */
.pagination-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.pagination-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-btn {
  height: 28px;
  min-width: 28px;
  padding: 0 6px;
  border: 1px solid var(--border-input);
  background: #fff;
  border-radius: var(--radius-sm);
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

.page-size-select {
  height: 28px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 0 6px;
  color: #64748b;
  cursor: pointer;
}

.jump-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 12px;
}

.jump-input {
  width: 36px;
  height: 26px;
  text-align: center;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
}

.pagination-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   8. 弹窗与抽屉 (Modal & Drawer)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 12px;
  width: 900px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.modal-close-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 图集展示器 */
.gallery-viewer {
  display: flex;
  gap: 16px;
}

.gallery-main-display {
  flex: 1;
  height: 380px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
}

.gallery-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumbnails-list {
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.gallery-thumb-item {
  width: 100%;
  height: 76px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb-item.active {
  border-color: var(--primary);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* AI 诊断抽屉 */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: none;
  justify-content: flex-end;
}

.drawer-overlay.show {
  display: flex;
}

.drawer-content {
  width: 500px;
  background: #ffffff;
  height: 100%;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-card {
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 16px;
}

.ai-card-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Toast 提示 */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 3000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   新增: 任务批次选择器、收藏夹切换与采集弹窗样式
   ========================================================================== */

/* 批次下拉选择框 */
.task-batch-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0 10px;
  height: 34px;
  gap: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.task-batch-wrap:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.task-batch-prefix {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.task-batch-select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  outline: none;
  max-width: 160px;
  white-space: nowrap;
}

/* 收藏过滤按钮 */
.btn-outline-fav {
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-outline-fav:hover {
  background: #fffdf5;
  border-color: #fcd34d;
  color: #d97706;
}

.btn-outline-fav.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
  font-weight: 600;
}

.btn-outline-fav.active .fav-icon {
  fill: #f59e0b;
  stroke: #d97706;
}

/* 采集触发按钮 */
.btn-crawl-trigger {
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
  background: linear-gradient(135deg, #ff5722 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.25);
  transition: all 0.2s ease;
}

.btn-crawl-trigger:hover {
  background: linear-gradient(135deg, #f4511e 0%, #c2410c 100%);
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.35);
}

/* 导出 Excel 按钮 (优雅质感白底翠绿边框设计) */
.btn-export-excel {
  background: #ffffff;
  color: #047857;
  border: 1px solid #a7f3d0;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-export-excel:hover {
  background: #ecfdf5;
  border-color: #34d399;
  color: #065f46;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
}

/* 新建采集任务弹窗 */
.crawl-modal-content {
  width: 560px;
  max-width: 92vw;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: #ffffff;
}

.crawl-modal-content .modal-header {
  padding: 16px 24px;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crawl-modal-body {
  padding: 20px 24px;
}

.crawl-form-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 18px;
}

.crawl-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crawl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.crawl-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crawl-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.required-star {
  color: #ef4444;
}

.crawl-input {
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.crawl-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.crawl-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
}

/* 进度条 */
.crawl-progress-wrap {
  margin-top: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.progress-bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5722 0%, #2563eb 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-detail-log {
  margin-top: 8px;
  font-size: 11px;
  color: #64748b;
  font-family: monospace;
}

/* 弹窗底部操作栏 */
.modal-footer {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.modal-footer .btn-cancel,
.btn-cancel {
  height: 36px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-footer .btn-cancel:hover,
.btn-cancel:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}

.modal-footer .btn-primary {
  height: 36px;
  padding: 0 20px;
  background: #ea580c;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
  transition: all 0.15s ease;
}

.modal-footer .btn-primary:hover {
  background: #c2410c;
  box-shadow: 0 4px 8px rgba(234, 88, 12, 0.3);
  transform: translateY(-1px);
}

/* 独立毛利测算(1688)列样式 - 顶级现代 SaaS 极简无边框设计 */
.col-profit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.profit-val-line {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.profit-num {
  font-size: 13.5px;
  font-weight: 700;
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
}

.profit-sym {
  font-size: 11px;
  font-weight: 600;
  margin-right: 1px;
}

.profit-pos {
  color: #059669;
}

.profit-neg {
  color: #dc2626;
}

.profit-rate-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 9999px;
  line-height: 1.3;
}

.profit-rate-badge.badge-pos {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.profit-rate-badge.badge-neg {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.profit-cost-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1.2;
}

.profit-cost-sub .cost-lbl {
  color: #94a3b8;
}

.profit-cost-sub .cost-val {
  color: #64748b;
  font-weight: 600;
}

.btn-act-fav.is-favorited {
  color: #d97706;
  border-color: #f59e0b;
  background: #fef3c7;
}

.btn-act-fav.is-favorited .star-icon {
  fill: #f59e0b;
  stroke: #d97706;
}

/* ==========================================================================
   5. 以图搜款与图搜货源看板样式 (对齐图二视觉设计)
   ========================================================================== */
.view-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* 顶部搜图原图与操作卡片 */
.sourcing-top-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.sourcing-target-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sourcing-thumb-wrap {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sourcing-target-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sourcing-target-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sourcing-action {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sourcing-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-back-products {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-products:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

/* 货源平台 Tab 栏 (图二 10 平台无缝横滑) */
.sourcing-platforms-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sourcing-api-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  color: #c2410c;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sourcing-api-status-badge.is-live {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.sourcing-api-status-badge .api-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
  display: inline-block;
}

.sourcing-api-status-badge.is-live .api-status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.platform-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.platform-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.platform-tab {
  padding: 13px 2px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s ease;
}

.platform-tab:hover {
  color: var(--primary);
}

.platform-tab.active {
  color: var(--primary);
  font-weight: 700;
}

.platform-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* 筛选与排序工具栏 */
.sourcing-filter-toolbar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
}

.sourcing-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.toolbar-field {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.toolbar-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.toolbar-select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #334155;
  background: #ffffff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.toolbar-select:hover, .toolbar-select:focus {
  border-color: var(--primary);
}

.toolbar-search-input-wrap {
  display: flex;
  align-items: center;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  padding: 0 8px;
  transition: border-color 0.2s;
}

.toolbar-search-input-wrap:focus-within {
  border-color: var(--primary);
}

.toolbar-kw-input {
  border: none;
  outline: none;
  font-size: 12px;
  width: 140px;
}

.toolbar-inner-search-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.btn-sourcing-search-submit {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sourcing-search-submit:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
}

/* 结果列表区工具与状态条 */
.sourcing-results-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sourcing-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  min-height: 46px;
  box-sizing: border-box;
  gap: 12px;
}

.sourcing-results-meta {
  font-size: 13px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sourcing-results-count-text {
  font-weight: 500;
  color: #1e293b;
}

.sourcing-calc-tip {
  font-size: 11px;
  color: #64748b;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sourcing-batch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sbt-single-badge {
  font-size: 12px;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
}

.sbt-single-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.sbt-count-pill {
  color: #0284c7;
  font-weight: 600;
}

.sourcing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* 1688 货源单个卡片 */
.sourcing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sourcing-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.sourcing-card.card-selected {
  border-color: #f97316 !important;
  background-color: #fffaf5;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25), 0 8px 20px rgba(249, 115, 22, 0.12) !important;
}

.sc-img-wrap {
  position: relative;
  height: 190px;
  background: #f8fafc;
  overflow: hidden;
}

.sc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sourcing-card:hover .sc-img {
  transform: scale(1.05);
}

.sc-platform-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 87, 34, 0.9);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.sc-selected-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #059669;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.sc-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sc-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sc-price-main {
  font-size: 18px;
  font-weight: 800;
  color: #e11d48;
  font-feature-settings: "tnum";
}

.sc-currency {
  font-size: 12px;
  margin-right: 1px;
}

.sc-moq-tag {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.sc-drop-tag {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

.sc-profit-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.sc-profit-label {
  color: #166534;
}

.sc-profit-val.pos {
  font-weight: 700;
  color: #059669;
}

.sc-profit-val.neg {
  font-weight: 700;
  color: #dc2626;
}

.sc-margin-pill.pos {
  background: #059669;
  color: #ffffff;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 10px;
}

.sc-margin-pill.neg {
  background: #dc2626;
  color: #ffffff;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 10px;
}

.sc-title {
  font-size: 12.5px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
  height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.sc-title:hover {
  color: var(--primary);
}

.sc-factory-info {
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
}

.sc-factory-name {
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-factory-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 10px;
}

.sc-tag-loc {
  color: #64748b;
}

.sc-tag-years {
  background: #eff6ff;
  color: #2563eb;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}

.sc-tag-verified {
  background: #fef3c7;
  color: #b45309;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.sc-metrics-row {
  display: flex;
  justify-content: space-between;
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 10.5px;
}

.sc-metric-item .m-lbl {
  color: #94a3b8;
  display: block;
}

.sc-metric-item .m-val {
  color: #334155;
  font-weight: 600;
  display: block;
  margin-top: 1px;
}

.sc-metric-item .m-val.highlight {
  color: #d97706;
}

.sc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.btn-sc-bind {
  height: 30px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 4px;
  transition: all 0.2s ease;
}

.btn-sc-bind:hover {
  background: #fff8f3;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sc-bind.is-bound {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.btn-sc-link {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-sc-link:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
}

.sourcing-loading,
.sourcing-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 13px;
  gap: 12px;
}

.sourcing-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   7. 顶部个人中心浮层弹窗 (User Profile Popover)
   ========================================================================== */
.user-profile-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  padding: 12px;
  z-index: 1200;
  cursor: default;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.upp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 10px;
}

.upp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffedd5;
}

.upp-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.upp-phone {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.upp-badge-wrap {
  display: flex;
}

.upp-vip-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  padding: 1px 6px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.upp-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

.upp-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upp-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.upp-menu-item:hover {
  background: #f8fafc;
  color: var(--primary);
}

.upp-footer {
  padding-top: 4px;
}

.btn-upp-logout {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #fee2e2;
  background: #fff5f5;
  color: #dc2626;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upp-logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* ==========================================================================
   8. 登录 / 注册统一模态框 (Auth Modal)
   ========================================================================== */
.auth-modal-card {
  width: 420px;
  max-width: 90vw;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-modal-header {
  padding: 22px 24px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 8px rgba(255, 87, 34, 0.3);
}

.auth-brand-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.auth-brand-text p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #64748b;
}

.auth-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
}

.auth-modal-close:hover {
  color: #0f172a;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: var(--primary);
}

.auth-tab.active {
  color: var(--primary);
  font-weight: 700;
  background: #ffffff;
  border-bottom-color: var(--primary);
}

.auth-modal-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-intercept-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #c2410c;
  line-height: 1.4;
  animation: fadeIn 0.2s ease-in-out;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s;
}

.auth-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.12);
}

.auth-prefix {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  height: 38px;
  display: flex;
  align-items: center;
}

.auth-input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: none;
  font-size: 13px;
  color: #1e293b;
  outline: none;
}

.btn-send-code {
  padding: 0 12px;
  height: 38px;
  border: none;
  border-left: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-send-code:hover:not(:disabled) {
  background: #fff8f3;
}

.btn-send-code:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  background: #f1f5f9;
}

.auth-helper-tip {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.auth-agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.auth-agreement-row input {
  margin-top: 2px;
  cursor: pointer;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
}

.btn-auth-submit {
  height: 40px;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.28);
}

.btn-auth-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.38);
}

.auth-quick-login-wrap {
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
}

.btn-quick-demo-login {
  width: 100%;
  height: 34px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-quick-demo-login:hover {
  border-color: var(--primary);
  background: #fff8f3;
  color: var(--primary);
}

/* ==========================================================================
   企业多租户与共享配额 (B2B SaaS) 视觉系统
   ========================================================================== */

/* 顶部企业主体胶囊 */
.header-tenant-block {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #334155;
  margin-left: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-tenant-block:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.tenant-icon {
  font-size: 14px;
}

.tenant-name {
  font-weight: 600;
  color: #0f172a;
}

.tenant-tier-tag {
  background: #ffefe6;
  color: var(--primary);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(255, 87, 34, 0.2);
}

/* 顶部企业共享额度胶囊 */
.header-quota-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
  border: 1px solid #fed7aa;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.08);
}

.header-quota-badge:hover {
  border-color: #f97316;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.16);
}

.quota-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #ea580c;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
}

.quota-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quota-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.quota-label {
  color: #7c2d12;
  font-weight: 500;
}

.quota-value {
  color: #c2410c;
  font-weight: 700;
}

.quota-mini-progress {
  width: 80px;
  height: 4px;
  background: #ffedd5;
  border-radius: 2px;
  overflow: hidden;
}

.quota-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* 个人浮层企业信息与角色切换 */
.upp-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.upp-username {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.upp-role-tag {
  font-size: 10px;
  background: #ffefe6;
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.upp-company-row {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* 超管专属视界代入模拟器 */
.upp-impersonate-box {
  margin: 10px 12px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.uib-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.uib-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.uib-title svg {
  color: var(--primary);
}

.uib-hint {
  font-size: 10px;
  color: #94a3b8;
}

.uib-segmented-control {
  display: flex;
  background: #e2e8f0;
  padding: 2px;
  border-radius: 6px;
  gap: 2px;
}

.uib-seg-item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.uib-seg-item:hover {
  color: #1e293b;
}

.uib-seg-item.active {
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.uib-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.2s;
}

.uib-seg-item.active .uib-dot {
  background: var(--primary);
}

/* 成员名册角色修改下拉选择框 */
.member-role-select {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.member-role-select:hover, .member-role-select:focus {
  border-color: var(--primary);
}

/* 选品采集弹窗中的额度警告条 */
.crawl-quota-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.cqn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ea580c;
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

.cqn-content {
  flex: 1;
}

.cqn-title {
  font-size: 13px;
  color: #7c2d12;
}

.cqn-subtitle {
  font-size: 12px;
  color: #9a3412;
  margin-top: 2px;
}

.highlight-quota {
  font-size: 14px;
  font-weight: 700;
  color: #c2410c;
}

.cqn-tag {
  background: #ffedd5;
  color: #c2410c;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #fdba74;
}

/* 企业额度与成员管理模态框 */
.tenant-modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 820px;
  max-width: 95vw;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  animation: authFadeIn 0.25s ease forwards;
}

.tenant-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.tm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-icon {
  font-size: 28px;
}

.tm-info h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.tm-info p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #64748b;
}

.tm-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-tier-badge {
  background: #ffefe6;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 87, 34, 0.2);
}

.tenant-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.tenant-modal-close:hover {
  color: #0f172a;
}

.tenant-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.tenant-tab {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.tenant-tab.active {
  background: #ffffff;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.tenant-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

/* 额度卡片三列排版 */
.quota-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.quota-stat-card {
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.quota-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.card-crawl {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border-color: #ffedd5;
}

.card-img {
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
  border-color: #ede9fe;
}

.card-export {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #dcfce7;
}

.qsc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.qsc-title {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.qsc-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #e2e8f0;
  color: #475569;
}

.card-crawl .qsc-tag {
  background: #ffedd5;
  color: #c2410c;
}

.card-img .qsc-tag {
  background: #ede9fe;
  color: #6d28d9;
}

.card-export .qsc-tag {
  background: #dcfce7;
  color: #15803d;
}

.qsc-num-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.qsc-remain {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.card-crawl .qsc-remain {
  color: #ea580c;
}

.card-img .qsc-remain {
  color: #7c3aed;
}

.card-export .qsc-remain {
  color: #16a34a;
}

.qsc-total {
  font-size: 13px;
  color: #94a3b8;
}

.qsc-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.qsc-bar {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 3px;
}

.bar-purple {
  background: linear-gradient(90deg, #a855f7, #7c3aed);
}

.bar-green {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.qsc-footer-tip {
  font-size: 11px;
  color: #64748b;
}

/* 审计流水表格 */
.quota-logs-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.ql-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ql-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.ql-desc {
  font-size: 11px;
  color: #64748b;
}

.ql-table-wrap {
  overflow-x: auto;
}

.ql-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ql-table th {
  background: #e2e8f0;
  color: #475569;
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
}

.ql-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.ql-delta-neg {
  color: #ea580c;
  font-weight: 700;
}

.ql-delta-pos {
  color: #16a34a;
  font-weight: 700;
}

/* 成员管理 */
.member-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mta-desc {
  font-size: 13px;
  color: #475569;
}

.btn-create-invite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-create-invite:hover {
  background: var(--primary-hover);
}

.invite-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 12px;
}

.iib-title {
  color: #1d4ed8;
  font-weight: 600;
}

.iib-code {
  background: #ffffff;
  padding: 2px 8px;
  border: 1px dashed #93c5fd;
  border-radius: 4px;
  font-family: monospace;
  color: #1e3a8a;
}

.btn-copy-invite {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}

.members-table-wrap {
  overflow-x: auto;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.members-table th {
  background: #f1f5f9;
  color: #475569;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.members-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.role-badge-orange {
  background: #ffefe6;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.role-badge-purple {
  background: #f3e8ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.role-badge-slate {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* =========================================================
   企业 RBAC 权限管控中心 & 员工权限配置模态窗
   ========================================================= */
.member-rbac-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.mrb-icon {
  font-size: 20px;
  line-height: 1.2;
}

.mrb-title {
  font-size: 13px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 3px;
}

.mrb-desc {
  font-size: 12px;
  color: #c2410c;
  line-height: 1.5;
}

.mrb-desc strong {
  color: #7c2d12;
}

.perm-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.perm-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  line-height: 1.2;
}

.perm-chip-active {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.perm-chip-disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px dashed #cbd5e1;
  text-decoration: line-through;
}

.perm-chip-limit {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 600;
}

.perm-chip-owner {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  font-weight: 600;
}

.btn-config-perm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #ea580c;
  border: 1px solid #ea580c;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.08);
}

.btn-config-perm:hover {
  background: #ea580c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.25);
}

.owner-perm-fixed {
  font-size: 11.5px;
  color: #ea580c;
  font-weight: 600;
  background: #fff7ed;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #ffedd5;
  display: inline-block;
}

/* 员工操作权限配置模态窗 */
.member-perm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.member-perm-modal {
  background: #ffffff;
  width: 680px;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.mpm-header {
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mpm-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mpm-icon {
  font-size: 22px;
}

.mpm-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.mpm-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.mpm-subtitle b {
  color: #0f172a;
}

.mpm-subtitle code {
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}

.mpm-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.mpm-close:hover {
  color: #0f172a;
}

.mpm-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mpm-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mpm-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mpm-sec-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.mpm-sec-hint {
  font-size: 11px;
  color: #10b981;
  font-weight: 500;
}

.mpm-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mpm-role-pill {
  display: block;
  cursor: pointer;
}

.mpm-role-pill input {
  display: none;
}

.mrp-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.18s ease;
}

.mpm-role-pill input:checked + .mrp-box {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 0 0 1px #ea580c;
}

.mrp-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.badge-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

.badge-slate {
  background: #f1f5f9;
  color: #475569;
}

.mrp-note {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.mpm-perm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mpm-perm-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mpm-perm-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.mpm-perm-card input:checked ~ .mpc-content .mpc-title {
  color: #ea580c;
}

.mpm-perm-card.mpc-security {
  background: #fcfdfe;
  border-color: #fed7aa;
}

.mpm-perm-card.mpc-security:hover {
  background: #fffbf7;
}

.mpm-perm-chk {
  margin-top: 2px;
  cursor: pointer;
  accent-color: #ea580c;
  width: 15px;
  height: 15px;
}

.mpc-content {
  flex: 1;
}

.mpc-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.mpc-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.mpc-badge-sec {
  font-size: 9.5px;
  padding: 1px 4px;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 3px;
  font-weight: 600;
  margin-left: 4px;
}

.mpm-limit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.mpm-inp-number {
  width: 80px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  outline: none;
}

.mpm-inp-number:focus {
  border-color: #ea580c;
}

.mpm-unit {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.mpm-hint {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.mpm-footer {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-mpm-cancel {
  padding: 7px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
  color: #475569;
  cursor: pointer;
  font-weight: 500;
}

.btn-mpm-cancel:hover {
  background: #f1f5f9;
}

.btn-mpm-save {
  padding: 7px 20px;
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
  transition: all 0.15s ease;
}

.btn-mpm-save:hover {
  background: #c2410c;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(234, 88, 12, 0.3);
}

/* =========================================================
   批量刊登与 1688 商品详情同步工作台样式
   ========================================================= */
.batch-listing-view {
  padding: 16px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 顶部同步面板 */
.listing-sync-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.sync-panel-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sync-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sync-header-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

.sync-header-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.sync-header-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}

.sync-exchange-badge {
  display: inline-block;
  font-size: 11.5px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.sync-panel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sync-textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sync-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.sync-label-tip {
  font-size: 11.5px;
  font-weight: 400;
  color: #94a3b8;
}

.sync-textarea {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-family: inherit;
  color: #1e293b;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.sync-textarea:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.sync-config-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.sync-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 160px;
}

.sync-sublabel {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.sync-select {
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12.5px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
}

.sync-select:focus {
  border-color: #ea580c;
}

.sync-input-prefix-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  height: 36px;
}

.sync-affix {
  background: #f1f5f9;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-right: 1px solid #cbd5e1;
  line-height: 36px;
}

.sync-number-input {
  border: none;
  outline: none;
  height: 100%;
  width: 70px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.sync-action-group {
  margin-left: auto;
}

.btn-sync-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 20px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
  transition: all 0.15s ease;
}

.btn-sync-submit:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.4);
}

.sync-formula-hint {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  padding-left: 4px;
}

/* 工具栏与状态筛选 */
.listing-toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 2px;
}

.listing-tab-pill {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  margin-bottom: -2px;
  transition: all 0.15s ease;
}

.listing-tab-pill:hover {
  color: #1e293b;
}

.listing-tab-pill.active {
  color: #ea580c;
  border-bottom-color: #ea580c;
}

.listing-tab-pill span {
  font-weight: 700;
}

.listing-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.listing-filter-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-filter-select {
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  background: #ffffff;
  color: #334155;
}

.listing-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  height: 34px;
}

.listing-search-box input {
  border: none;
  outline: none;
  padding: 0 10px;
  font-size: 12px;
  width: 220px;
}

.btn-listing-search {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0 8px;
  cursor: pointer;
}

.listing-batch-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-batch-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-batch-pub {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.25);
}
.btn-batch-pub:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-batch-off {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.25);
}
.btn-batch-off:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-batch-del {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.25);
}
.btn-batch-del:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* 表格区域 */
.listing-table-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
}

.listing-table-wrap {
  overflow-x: auto;
}

.listing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.listing-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.listing-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.listing-table tr:hover td {
  background: #fafafa;
}

.listing-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #ea580c;
}

/* 表格内原品卡片 */
.lt-origin-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lt-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.lt-origin-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.lt-offer-tag {
  font-size: 11px;
  color: #ea580c;
  font-weight: 700;
  font-family: monospace;
}

.lt-jump-link {
  font-size: 11px;
  color: #2563eb;
  text-decoration: none;
}
.lt-jump-link:hover {
  text-decoration: underline;
}

/* 刊登标题与类目 */
.lt-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lt-title-en {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.lt-title-zh {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
}

.lt-cat-badge {
  font-size: 10.5px;
  background: #f1f5f9;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
}

/* 规格标签 */
.lt-sku-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lt-sku-pill:hover {
  background: #dbeafe;
}

/* 价格对比 */
.lt-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lt-cost-cny {
  font-size: 11px;
  color: #64748b;
}

.lt-listing-usd {
  font-size: 13.5px;
  font-weight: 700;
  color: #10b981;
}

/* 店铺徽章 */
.lt-store-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
}

/* 状态徽章 */
.lt-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-draft {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.status-draft .status-dot {
  background: #f59e0b;
}

.status-online {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.status-online .status-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-offline {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.status-offline .status-dot {
  background: #94a3b8;
}

/* 表格操作按钮 */
.lt-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.btn-lt-op {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-lt-sku {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.btn-lt-sku:hover {
  background: #2563eb;
  color: #ffffff;
}

.btn-lt-pub {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.btn-lt-pub:hover {
  background: #10b981;
  color: #ffffff;
}

.btn-lt-off {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
.btn-lt-off:hover {
  background: #ea580c;
  color: #ffffff;
}

.btn-lt-del {
  background: transparent;
  color: #94a3b8;
  border: none;
}
.btn-lt-del:hover {
  color: #ef4444;
}

/* 分页条 */
.listing-pagination-bar {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.listing-page-info {
  font-size: 12px;
  color: #64748b;
}

.listing-page-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.listing-current-page {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  padding: 2px 8px;
}

/* =========================================================
   SKU 矩阵管理模态窗样式
   ========================================================= */
.sku-modal-content {
  width: 860px;
  max-width: 95vw;
  max-height: 88vh;
}

.sku-modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.sku-prod-summary {
  display: flex;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  align-items: center;
}

.sku-prod-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.sku-prod-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sku-prod-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sku-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.sku-prod-title-input {
  flex: 1;
  height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 0 8px;
  font-size: 12.5px;
  color: #0f172a;
  outline: none;
}
.sku-prod-title-input:focus {
  border-color: #ea580c;
}

.sku-prod-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sku-meta-tag {
  font-size: 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #475569;
}

.sku-source-link {
  font-size: 11px;
  color: #2563eb;
  text-decoration: none;
}
.sku-source-link:hover {
  text-decoration: underline;
}

.sku-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.sku-table th {
  background: #f1f5f9;
  color: #475569;
  padding: 8px 10px;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.sku-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.sku-spec-img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.sku-inp-edit {
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}
.sku-inp-edit:focus {
  border-color: #ea580c;
}

.sku-modal-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sku-footer-tip {
  font-size: 11.5px;
  color: #64748b;
}

.sku-footer-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sku-cancel {
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
}

.btn-sku-save {
  padding: 6px 16px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-sku-publish {
  padding: 6px 16px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   P1.2 批量快速改价、改库存、改标题前后缀工具箱样式
   ========================================================= */
.btn-batch-edit {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.btn-batch-edit:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.batch-edit-modal-content {
  width: 800px;
  max-width: 95vw;
  max-height: 88vh;
}

.batch-selected-badge {
  background: #ede9fe;
  color: #6d28d9;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #ddd6fe;
}

.batch-edit-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
}

.batch-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.batch-edit-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-edit-card-wide {
  grid-column: span 2;
}

.batch-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.batch-card-header h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.batch-card-icon {
  font-size: 15px;
}

.batch-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #334155;
}

.batch-form-row label {
  width: 70px;
  font-weight: 500;
  flex-shrink: 0;
}

.batch-select {
  flex: 1;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}
.batch-select:focus {
  border-color: #7c3aed;
}

.batch-input-with-unit {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}
.batch-input-with-unit:focus-within {
  border-color: #7c3aed;
}

.batch-input {
  flex: 1;
  height: 32px;
  border: none;
  outline: none;
  padding: 0 10px;
  font-size: 12px;
  color: #0f172a;
  background: transparent;
}

.batch-input-with-border {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
}

.batch-unit-label {
  padding: 0 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  height: 32px;
  display: flex;
  align-items: center;
  border-left: 1px solid #cbd5e1;
  font-weight: 500;
}

.batch-checkbox-row {
  margin-top: 2px;
}

.batch-chk-label {
  width: auto !important;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.batch-title-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.batch-form-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.batch-form-col label {
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
}

.batch-form-col .batch-input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
}
.batch-form-col .batch-input:focus {
  border-color: #7c3aed;
}

.batch-edit-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.batch-footer-tip {
  font-size: 11.5px;
  color: #64748b;
}

/* =========================================================
   P2 & P3 货源巡检、AI 智能润色与 Temu 卖家中心对接样式
   ========================================================= */
.btn-batch-inspect {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.btn-batch-inspect:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.sku-ai-panel {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sku-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sku-ai-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #581c87;
}

.ai-sparkle-icon {
  font-size: 16px;
}

.ai-powered-tag {
  background: #f3e8ff;
  color: #7e22ce;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  border: 1px solid #e9d5ff;
}

.btn-ai-generate {
  padding: 5px 12px;
  background: #7c3aed;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.btn-ai-generate:hover {
  background: #6d28d9;
}

.sku-ai-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ai-field-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-field-header label {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.btn-ai-apply {
  padding: 2px 8px;
  font-size: 11px;
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  border-radius: 4px;
  cursor: pointer;
}
.btn-ai-apply:hover {
  background: #ddd6fe;
}

.ai-field-box {
  background: #ffffff;
  border: 1px solid #d8b4fe;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #1e293b;
  min-height: 48px;
  line-height: 1.4;
  word-break: break-word;
}

.ai-bullets-section, .ai-tags-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-subhead {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.ai-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 140px;
  overflow-y: auto;
}

.ai-bullet-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #7c3aed;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px;
  color: #334155;
  line-height: 1.35;
}

.ai-bullet-empty {
  font-size: 11.5px;
  color: #94a3b8;
  font-style: italic;
  padding: 6px;
}

.ai-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-tag-pill {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
}

.btn-sku-temu-push {
  padding: 6px 16px;
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-sku-temu-push:hover {
  background: #c2410c;
}

/* 列表表格中的 AI & Temu 操作按钮 */
.btn-lt-ai {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.btn-lt-ai:hover {
  background: #ede9fe;
  color: #6d28d9;
}

.btn-lt-temu {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}
.btn-lt-temu:hover {
  background: #ffedd5;
  color: #c2410c;
}

/* 货源风险状态标 */
.badge-risk-warning {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fde68a;
  margin-top: 4px;
}

.badge-risk-danger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fecaca;
  margin-top: 4px;
}

.badge-risk-safe {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
  margin-top: 4px;
}

.badge-temu-approved {
  display: inline-block;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 3px;
}

/* ==========================================================================
   8. 1688 货源 AI 采购谈判与客服质询工作台样式 (AI Inquire Sourcing Modal)
   ========================================================================== */
.btn-sc-inquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 30px;
  padding: 0 6px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-sc-inquire:hover {
  background: #ffedd5;
  border-color: #f97316;
  color: #ea580c;
}

.btn-sc-studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 30px;
  padding: 0 6px;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-sc-studio:hover {
  background: #ede9fe;
  border-color: #8b5cf6;
  color: #5b21b6;
}


.sourcing-inquiry-modal-content {
  width: 1120px;
  max-width: 95vw;
  height: 85vh;
  max-height: 820px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 0;
}

.inquiry-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.inquiry-header-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffedd5;
}

.inquiry-header-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  display: block;
}

.inquiry-product-summary-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.inquiry-target-thumb-wrap {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  flex-shrink: 0;
}

.inquiry-target-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inquiry-target-meta {
  flex: 1;
  min-width: 0;
}

.inquiry-target-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inquiry-target-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
}

.inquiry-status-pill {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  background: #e2e8f0;
  color: #475569;
}

.inquiry-status-pill.status-replied {
  background: #dbeafe;
  color: #1d4ed8;
}

.inquiry-status-pill.status-extracted {
  background: #fef3c7;
  color: #b45309;
}

.inquiry-status-pill.status-applied {
  background: #dcfce7;
  color: #15803d;
}

.inquiry-modal-body {
  flex: 1;
  padding: 16px 20px;
  overflow: hidden;
  display: flex;
}

.inquiry-three-cols-grid {
  display: grid;
  grid-template-columns: 290px 1fr 310px;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.inquiry-col {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.inquiry-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.inquiry-col-options {
  padding: 14px;
  gap: 12px;
  overflow-y: auto;
}

.inquiry-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inquiry-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.inquiry-select {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #1e293b;
  outline: none;
}

.inquiry-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inquiry-chk-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #334155;
  cursor: pointer;
  line-height: 1.4;
}

.inquiry-chk-item input {
  margin-top: 2px;
  accent-color: var(--primary);
}

.btn-inquiry-generate-pitch {
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-inquiry-generate-pitch:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.inquiry-hint-card {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.45;
  margin-top: auto;
}

/* 中间会话窗口顶部条与商品链接 */
.inquiry-chat-top-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.inquiry-product-link-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
}

.inquiry-link-badge {
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.inquiry-product-url-anchor {
  color: #2563eb;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.inquiry-product-url-anchor:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.inquiry-link-icon {
  font-size: 12px;
  color: #3b82f6;
  font-weight: bold;
  flex-shrink: 0;
}
  border-radius: 4px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-inquiry-tool-primary {
  background: linear-gradient(135deg, #ea580c, #f97316) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.btn-inquiry-tool-primary:hover {
  background: linear-gradient(135deg, #c2410c, #ea580c) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
}

.btn-inquiry-open-wangwang {
  width: 100%;
  padding: 9px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transition: all 0.2s;
  margin-top: 6px;
}

.btn-inquiry-open-wangwang:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.btn-inquiry-tool:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.inquiry-chat-stream {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.chat-bubble-wrap.buyer {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble-wrap.seller {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble-sender {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 3px;
}

.chat-bubble-body {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble-wrap.buyer .chat-bubble-body {
  background: #ea580c;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-bubble-wrap.seller .chat-bubble-body {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.chat-spec-image-card {
  margin-top: 8px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #0284c7;
  text-decoration: none;
}

.chat-spec-image-thumb {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.inquiry-chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.inquiry-chat-input {
  flex: 1;
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
}

.inquiry-chat-input:focus {
  border-color: #ea580c;
}

.btn-inquiry-send {
  padding: 7px 16px;
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* 右侧事实提炼与决策看板 */
.inquiry-facts-content {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}

.fact-card-price {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 12px;
}

.fact-card-label {
  font-size: 11px;
  color: #065f46;
  font-weight: 600;
}

.fact-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.fact-price-new {
  font-size: 22px;
  font-weight: 800;
  color: #059669;
}

.fact-price-old {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
}

.fact-saving-tag {
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.fact-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fact-metric-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fmb-lbl {
  font-size: 10.5px;
  color: #64748b;
}

.fmb-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.fact-profit-comparison-card {
  background: #fdf4ff;
  border: 1px solid #f5d0fe;
  border-radius: 8px;
  padding: 10px 12px;
}

.fpc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #86198f;
  margin-bottom: 6px;
}

.fpc-badge {
  background: #fae8ff;
  color: #a21caf;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #f0abfc;
}

.fpc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: #4b5563;
}

.fpc-row {
  display: flex;
  justify-content: space-between;
}

.fpc-row.highlight {
  font-weight: 700;
  color: #111827;
  padding: 2px 0;
  border-top: 1px dashed #e9d5ff;
  border-bottom: 1px dashed #e9d5ff;
  margin: 2px 0;
}

.inquiry-facts-footer {
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.btn-inquiry-apply {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: all 0.2s;
}

.btn-inquiry-apply:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ==========================================================================
   Temu 官方活动批量配置导入与店群矩阵申报工作台样式
   ========================================================================== */

.activity-center-view {
  padding: 16px 24px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

/* 1. Hero 概览面板 */
.act-hero-panel {
  background: linear-gradient(135deg, #ffffff 0%, #fdf4f0 100%);
  border: 1px solid #ffd8c7;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.05);
  margin-bottom: 20px;
}

.act-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.act-hero-left {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.act-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5722, #f97316);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.25);
}

.act-hero-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.act-hero-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
  max-width: 860px;
}

.act-hero-desc b {
  color: #ff5722;
}

/* 4 项 KPI 统计指标卡片 */
.act-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.act-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
}

.act-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.act-kpi-card.highlight-card {
  border-color: #fbcfe8;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
}

.act-kpi-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.act-kpi-val {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.act-kpi-card.highlight-card .act-kpi-val {
  color: #e11d48;
}

.act-kpi-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* 2. 二级子功能导航栏 */
.act-nav-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}

.act-nav-tabs-left {
  display: flex;
  gap: 8px;
}

.act-sub-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
}

.act-sub-nav-btn:hover {
  color: #ff5722;
}

.act-sub-nav-btn.active {
  color: #ff5722;
  border-bottom-color: #ff5722;
}

.act-badge-pulse {
  background: #fee2e2;
  color: #ef4444;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  animation: actPulse 2s infinite;
}

@keyframes actPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 3. 子视图 1: 官方大促活动大厅 */
.act-panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.act-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.act-filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.act-filter-chip:hover {
  border-color: #ff5722;
  color: #ff5722;
}

.act-filter-chip.active {
  background: #ff5722;
  color: #ffffff;
  border-color: #ff5722;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.25);
}

.act-search-input {
  width: 260px;
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s;
}

.act-search-input:focus {
  border-color: #ff5722;
}

.act-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.act-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.act-card:hover {
  border-color: #ffbb96;
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.1);
  transform: translateY(-2px);
}

.act-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.act-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.act-card-badge.mega {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.act-card-badge.clearance {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.act-card-badge.flash {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.act-card-id {
  font-family: monospace;
  font-size: 11px;
  color: #94a3b8;
}

.act-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
}

.act-card-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.act-cat-chip {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}

.act-card-meta-list {
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 14px;
}

.act-card-meta-row {
  display: flex;
  justify-content: space-between;
}

.act-card-meta-row b {
  color: #0f172a;
}

.act-card-rule-box {
  border-left: 3px solid #ff5722;
  background: #fff7ed;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #c2410c;
  border-radius: 0 4px 4px 0;
  margin-bottom: 14px;
}

.act-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.act-card-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #16a34a;
}

.act-card-status-tag::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.act-card-btn {
  padding: 6px 14px;
  background: #ff5722;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.act-card-btn:hover {
  background: #e64a19;
  transform: translateY(-1px);
}

/* 4. 子视图 2: 批量配置导入与策略申报工作台 */
.act-mode-selector-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.act-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.act-mode-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.act-mode-tab-btn:hover {
  border-color: #ffd8c7;
  background: #ffffff;
}

.act-mode-tab-btn.active {
  border-color: #ff5722;
  background: #fffbf9;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.08);
}

.amt-icon {
  font-size: 22px;
}

.amt-text b {
  display: block;
  font-size: 13.5px;
  color: #1e293b;
  margin-bottom: 2px;
}

.amt-text small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
}

/* 策略模式配置表单网格 */
.act-strategy-config-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.act-config-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.act-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
}

.act-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.act-store-actions {
  display: flex;
  gap: 6px;
}

.act-store-actions .btn-xs {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
}

.act-store-actions .btn-xs:hover {
  background: #e2e8f0;
}

.act-store-cat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.asct-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.asct-tag:hover {
  background: #e2e8f0;
}

.asct-tag.active {
  background: #ff5722;
  color: #ffffff;
}

.act-store-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.act-store-chk-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.act-store-chk-card:hover {
  border-color: #ffbb96;
  background: #fffcfb;
}

.act-store-chk-card.selected {
  border-color: #ff5722;
  background: #fff7ed;
}

.ascc-checkbox {
  margin-top: 3px;
  cursor: pointer;
}

.ascc-info {
  flex: 1;
}

.ascc-name {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.ascc-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
}

.ascc-cat-tag {
  background: #e2e8f0;
  color: #334155;
  padding: 1px 5px;
  border-radius: 3px;
}

.ascc-count {
  color: #94a3b8;
}

.act-form-group {
  margin-bottom: 12px;
}

.act-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.act-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.act-label-guard {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guard-tag-tip {
  font-size: 10.5px;
  color: #e11d48;
  font-weight: 700;
}

.act-select, .act-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
  outline: none;
}

.act-select:focus, .act-input:focus {
  border-color: #ff5722;
}

.guard-input {
  border-color: #fda4af;
  background: #fff1f2;
  font-weight: 700;
  color: #be123c;
}

.act-btn-run {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
}

/* Excel 导入面板 */
.act-excel-import-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

.act-excel-step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.act-excel-step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
}

.aesc-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff5722;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.aesc-info {
  flex: 1;
}

.aesc-info h4 {
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 2px;
}

.aesc-info p {
  font-size: 11px;
  color: #64748b;
}

.aesc-btn {
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.aesc-guard-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.guard-label {
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.guard-input-sm {
  width: 70px;
  padding: 4px 8px;
  font-weight: 700;
  color: #be123c;
  background: #fff1f2;
  border-color: #fda4af;
}

.guard-unit {
  font-size: 12px;
  font-weight: 700;
  color: #be123c;
}

/* 拖拽区域 */
.act-dropzone {
  border: 2px dashed #93c5fd;
  border-radius: 10px;
  background: #f0f7ff;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.act-dropzone:hover, .act-dropzone.dragover {
  border-color: #2563eb;
  background: #e0f2fe;
}

.act-dz-icon {
  margin-bottom: 10px;
}

.act-dz-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 4px;
}

.act-dz-desc {
  font-size: 12px;
  color: #64748b;
}

.act-dz-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
}

.act-dz-remove {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* 5. 方案预览与核验结果卡片 */
.act-plan-preview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  margin-top: 20px;
}

.act-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.act-preview-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.act-preview-badge {
  font-size: 11px;
  font-weight: 600;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
}

.act-preview-activity-name {
  font-size: 12px;
  color: #64748b;
}

.act-preview-stats {
  display: flex;
  gap: 12px;
}

.aps-stat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  text-align: center;
}

.aps-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}

.aps-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.aps-stat-item.stat-passed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.aps-stat-item.stat-passed .aps-val { color: #16a34a; }

.aps-stat-item.stat-warning {
  background: #fff1f2;
  border-color: #fecdd3;
}
.aps-stat-item.stat-warning .aps-val { color: #e11d48; }

.aps-stat-item.stat-mismatch {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.aps-stat-item.stat-mismatch .aps-val { color: #64748b; }

.act-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.act-filter-pills {
  display: flex;
  gap: 6px;
}

.act-fpill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.act-fpill:hover {
  background: #f8fafc;
}

.act-fpill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.act-preview-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.act-safe-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.btn-act-submit {
  padding: 9px 20px;
  background: linear-gradient(135deg, #ff5722, #ea580c);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: all 0.2s;
}

.btn-act-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

.btn-act-submit:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
}

/* 明细表格 */
.act-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.act-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.act-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.act-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.act-table tr:hover td {
  background: #fbfcfe;
}

.margin-pill-safe {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 11.5px;
}

.margin-pill-danger {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 11.5px;
  animation: actPulse 1.8s infinite;
}

.status-badge-passed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 600;
}

.status-badge-warn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  font-size: 11px;
  font-weight: 600;
}

.status-badge-fail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  font-size: 11px;
  font-weight: 600;
}

/* 6. 批次与对账记录子视图 */
.act-history-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}

.act-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.act-card-subdesc {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.act-batch-modal-content {
  max-width: 1050px;
  width: 92%;
}

.act-modal-summary-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 14px;
}

/* ==========================================================================
   1688 批量 AI 智能询价与议价战报中心 (Batch Sourcing Inquiry Center)
   ========================================================================== */

/* 1. 图搜结果区顶部批量操作栏 */
.sourcing-batch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sbt-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  user-select: none;
  background: #f8fafc;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.sbt-select-all-label:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sbt-select-all-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.btn-sourcing-batch-inquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sourcing-batch-inquire:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.btn-sourcing-batch-inquire:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #94a3b8;
}

/* 货源卡片复选框 */
.sc-card-chk-wrap {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 3px 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
}

.sc-card-chk {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* 2. 批量询价弹窗容器与排版 */
.batch-inquiry-modal-content {
  max-width: 1100px;
  width: 94%;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  background: #ffffff;
}

.batch-inq-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.batch-inq-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
}

/* 3. 四大战报 KPI 卡片 */
.batch-inq-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.batch-inq-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bik-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 8px;
}

.bik-info {
  flex: 1;
}

.bik-label {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 2px;
}

.bik-val {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.bik-val.highlight {
  color: #0284c7;
}

.bik-val.safe {
  color: #16a34a;
}

.bik-val.boost {
  color: #d97706;
}

/* 4. 批量配置与状态横条 */
.batch-inq-config-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.bic-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bic-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.batch-inq-select {
  padding: 5px 10px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

.bic-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.bic-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

/* 5. 战报表格 */
.batch-inq-table-wrap {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
  padding: 0 24px;
}

.batch-inq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 8px;
}

.batch-inq-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-align: left;
  padding: 10px 10px;
  border-bottom: 2px solid #e2e8f0;
  z-index: 2;
}

.batch-inq-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.batch-inq-table tbody tr:hover {
  background: #f8fafc;
}

.inq-item-prod {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inq-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.inq-item-meta {
  flex: 1;
  min-width: 0;
}

.inq-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.inq-item-company {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.inq-price-old {
  font-weight: 600;
  color: #64748b;
}

.inq-price-new {
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.inq-saved-pill {
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.inq-boost-pill {
  font-weight: 700;
  color: #ea580c;
  background: #ffedd5;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.inq-spec-txt {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.4;
}

/* 状态徽章 */
.inq-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
}

.inq-badge-queueing {
  background: #f1f5f9;
  color: #64748b;
}

.inq-badge-running {
  background: #e0f2fe;
  color: #0284c7;
  animation: pulse 1.5s infinite;
}

.inq-badge-quoted {
  background: #dcfce7;
  color: #16a34a;
}

.inq-badge-applied {
  background: #fef3c7;
  color: #b45309;
}

/* 6. 底部操作栏 */
.batch-inq-footer {
  padding: 14px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.btn-batch-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-batch-export:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.bif-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-batch-execute {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-batch-execute:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
}

.btn-batch-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-batch-apply:hover:not(:disabled) {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-1px);
}

.btn-batch-execute:disabled,
.btn-batch-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Phase P2: 跨境商品主图优化与去中文牛皮癣工具箱 (Listing Image Studio)
   ========================================================================== */

.btn-batch-studio {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(109, 40, 217, 0.25);
}

.btn-batch-studio:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.35);
}

.btn-lt-img {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
  font-weight: 600;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-lt-img:hover {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #c4b5fd;
  transform: translateY(-1px);
}

.image-studio-modal-content {
  width: 1120px;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.image-studio-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.image-studio-badge-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #7c3aed;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(124, 58, 237, 0.15);
}

.image-studio-body {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  background: #f1f5f9;
}

/* 左侧配置栏 */
.image-studio-sidebar {
  width: 370px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.studio-section-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.studio-target-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.studio-target-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.studio-target-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.studio-target-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

/* 现代切换开关 */
.studio-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-toggle-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.15s;
}

.studio-toggle-item:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.studio-toggle-item input[type="checkbox"] {
  display: none;
}

.toggle-track {
  width: 32px;
  height: 18px;
  background: #cbd5e1;
  border-radius: 12px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.studio-toggle-item input[type="checkbox"]:checked + .toggle-track {
  background: #10b981;
}

.studio-toggle-item input[type="checkbox"]:checked + .toggle-track::after {
  transform: translateX(14px);
}

.toggle-desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-main-label {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.toggle-sub-label {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

/* 规格画幅网格选择 */
.studio-grid-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.studio-chip-btn {
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.studio-chip-btn:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.studio-chip-btn.active {
  background: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.scb-top {
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
}

.studio-chip-btn.active .scb-top {
  color: #1d4ed8;
}

.scb-sub {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}

/* 营销角标标签网格 */
.studio-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 2px;
}

.studio-badge-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.15s;
}

.studio-badge-chip:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.studio-badge-chip.active {
  background: #f5f3ff;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 1px #8b5cf6;
}

.sbc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sbc-dot.hot-sale { background: #eb3b35; }
.sbc-dot.top-rated { background: #d4af37; }
.sbc-dot.shipping { background: #109566; }
.sbc-dot.premium { background: #0f4c81; }
.sbc-dot.new-arrival { background: #7c3aed; }
.sbc-dot.eco { background: #15803d; }
.sbc-dot.none { background: #cbd5e1; }

.sbc-name {
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sbc-tag {
  font-size: 9.5px;
  color: #94a3b8;
  margin-left: auto;
}

.studio-badge-chip.active .sbc-name {
  color: #6d28d9;
}

/* 方位选择 */
.studio-position-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.spr-label {
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
}

.spr-radios {
  display: flex;
  gap: 8px;
}

.spr-radio {
  font-size: 11px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.spr-radio input {
  margin: 0;
  cursor: pointer;
}

.btn-studio-render {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease;
}

.btn-studio-render:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* 右侧预览区 */
.image-studio-preview-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.studio-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sph-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.sph-badge {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.sph-tool-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
}

.sph-tool-btn.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  font-weight: 600;
}

/* 双图对照容器 */
.studio-compare-container {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex: 1;
  min-height: 380px;
}

.studio-card-preview {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.scp-header {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
}

.scp-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.tag-before {
  background: #fee2e2;
  color: #dc2626;
}

.tag-after {
  background: #dcfce7;
  color: #16a34a;
}

.scp-desc {
  font-size: 11px;
  color: #64748b;
}

.scp-img-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  min-height: 320px;
  overflow: hidden;
  padding: 16px;
}

.after-card .scp-img-wrap {
  background: #ffffff; /* 必须呈现 100% 纯白合规底 */
  background-image: 
    linear-gradient(45deg, #f1f5f9 25%, transparent 25%), 
    linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #f1f5f9 75%), 
    linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.scp-img-wrap img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.scp-watermark-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.scp-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.scp-footer {
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scf-info {
  font-size: 11px;
  color: #64748b;
}

.scf-status {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
}

/* 分割指示器 */
.studio-compare-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.scd-arrow {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6366f1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.scd-label {
  font-size: 10px;
  color: #6366f1;
  font-weight: 700;
  writing-mode: vertical-lr;
  letter-spacing: 2px;
}

/* 5 大优化指标成效指示条 */
.studio-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 16px;
}

.smb-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.smb-label {
  font-size: 10.5px;
  color: #64748b;
}

.smb-val {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.smb-val.success {
  color: #16a34a;
}

.smb-val.highlight {
  color: #7c3aed;
}

/* 底部操作 */
.image-studio-footer {
  padding: 14px 24px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-studio-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-studio-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.sif-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-studio-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-studio-download:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-studio-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  transition: all 0.15s;
}

.btn-studio-apply:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.btn-studio-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Phase P3: 全自动常驻货源定时巡检与 Webhook 告警 Modal 样式
   ========================================================================== */
.inspection-modal-card {
  width: 980px;
  max-width: 95vw;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inspection-modal-header {
  padding: 16px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.imh-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.imh-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.imh-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.imh-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: #64748b;
}

.imh-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scheduler-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.inspection-tab-bar {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  gap: 8px;
}

.insp-tab-btn {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.insp-tab-btn:hover {
  color: #0f172a;
}

.insp-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: rgba(37, 99, 235, 0.04);
}

.inspection-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
}

.insp-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insp-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.isc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.isc-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.isc-desc {
  margin: 4px 0 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.isc-meta-row {
  display: flex;
  gap: 24px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
  color: #475569;
}

.insp-period-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.insp-period-chip {
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.insp-period-chip:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.insp-period-chip.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.threshold-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.insp-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #cbd5e1;
  outline: none;
  cursor: pointer;
  accent-color: #f59e0b;
}

.threshold-val-box {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  background: #ffffff;
}

.insp-num-input {
  width: 55px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  outline: none;
}

.threshold-val-box .unit {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-left: 4px;
}

.notify-toggles-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.notify-chk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

/* Webhook Cards */
.webhook-channel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wcc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wcc-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wcc-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.feishu-logo { background: linear-gradient(135deg, #00d6b9 0%, #0088ff 100%); }
.wecom-logo { background: linear-gradient(135deg, #2b82ff 0%, #1e59cf 100%); }
.dingtalk-logo { background: linear-gradient(135deg, #007fff 0%, #005bb5 100%); }

.wcc-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.wcc-format-tag {
  font-size: 11px;
  color: #64748b;
}

.input-field-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.wcc-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #1e293b;
  outline: none;
  transition: all 0.15s;
}

.wcc-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.btn-wcc-test {
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-wcc-test:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.webhook-tips-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.6;
}

.wtb-title {
  font-weight: 700;
  margin-bottom: 4px;
}

/* KPI 看板 */
.insp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.insp-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ikc-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.ikc-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.insp-kpi-card.success .ikc-val { color: #059669; }
.insp-kpi-card.warning .ikc-val { color: #d97706; }
.insp-kpi-card.danger .ikc-val { color: #dc2626; }

/* Logs Toolbar & Table */
.insp-logs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.ilt-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.ilt-desc {
  font-size: 11px;
  color: #64748b;
  margin-left: 8px;
}

.ilt-right {
  display: flex;
  gap: 8px;
}

.btn-refresh-logs {
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.btn-run-inspection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f59e0b;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.25);
  transition: all 0.15s;
}

.btn-run-inspection:hover {
  background: #d97706;
}

.insp-logs-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.insp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.insp-table th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.insp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.insp-table tr:hover td {
  background: #f8fafc;
}

.insp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.insp-badge.warning { background: #fef3c7; color: #b45309; }
.insp-badge.danger { background: #fee2e2; color: #b91c1c; }
.insp-badge.success { background: #ecfdf5; color: #047857; }
.insp-badge.info { background: #eff6ff; color: #1d4ed8; }

.inspection-modal-footer {
  padding: 14px 24px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-insp-run {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-insp-run:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-insp-save {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

.btn-insp-save:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
}

/* ==========================================================================
   1688 原生 AI 询盘侧边工作台 (Sourcing Agent Drawer - 100% 像素级对齐)
   ========================================================================== */

/* 背景半透明遮罩 */
.sourcing-agent-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sourcing-agent-backdrop.active {
  opacity: 1;
}

/* 侧边滑出工作台抽屉 */
.sourcing-agent-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 95vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
  overflow: hidden;
}

.sourcing-agent-drawer.open {
  transform: translateX(0);
}

/* 1. 顶部 Tab 栏 */
.sad-header {
  height: 48px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.sad-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.sad-tab-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
}

.sad-tab-item:hover {
  color: #ff5000;
}

.sad-tab-item.active {
  font-weight: 700;
  color: #ff4d4f;
}

.sad-tab-item.active .sad-tab-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2.5px;
  background: linear-gradient(90deg, #ff4d4f 0%, #ff7a45 100%);
  border-radius: 2px;
}

.sad-close-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}

.sad-close-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* Tab 主体区域 */
.sad-tab-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* 2. 状态与折叠工具栏 (subbar) */
.sad-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.sad-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  border: 1px solid #ddd6fe;
  padding: 3px 10px;
  border-radius: 20px;
}

.sad-ai-badge .ai-logo-icon {
  font-size: 13px;
}

.sad-ai-badge .ai-badge-text {
  font-size: 12px;
  font-weight: 600;
  color: #6d28d9;
}

.sad-subbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sad-toggle-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}

.sad-toggle-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

.sad-toggle-btn.collapsed span {
  display: inline-block;
  transform: rotate(180deg);
}

.sad-history-link {
  font-size: 12px;
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.sad-history-link:hover {
  text-decoration: underline;
  color: #4f46e5;
}

/* 3. 候选商品清单面板 */
.sad-items-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  transition: max-height 0.25s ease;
}

.sad-items-panel.collapsed {
  display: none;
}

.sad-items-title-row {
  padding: 10px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #f3f4f6;
  flex-shrink: 0;
}

.sad-select-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.sad-select-all-label input[type="checkbox"] {
  accent-color: #6366f1;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.sad-select-all-label b {
  color: #6366f1;
}

.sad-items-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sad-quick-action-btn {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 500;
  color: #6366f1;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.sad-quick-action-btn:hover {
  background: #eef2ff;
  color: #4f46e5;
}

.sad-quick-action-btn.text-danger {
  color: #ef4444;
}

.sad-quick-action-btn.text-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.sad-quick-action-btn.text-muted {
  color: #94a3b8;
}

.sad-quick-action-btn.text-muted:hover {
  background: #f1f5f9;
  color: #64748b;
}

.sad-action-sep {
  color: #e2e8f0;
  font-size: 11px;
}

/* 商品滚动列表 */
.sad-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sad-items-list::-webkit-scrollbar {
  width: 4px;
}
.sad-items-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

/* 单个商品卡片 (高仿 1688 原生样式) */
.sad-item-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  transition: all 0.15s ease;
  position: relative;
}

.sad-item-card:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.sad-item-card.selected {
  background: #fbfbfe;
  border-color: #e0e7ff;
}

.sad-item-check {
  margin-top: 16px;
  accent-color: #6366f1;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.sad-item-thumb-wrap {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #f3f4f6;
}

.sad-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sad-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sad-item-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sad-item-supplier {
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sad-item-supplier .tag-1688-icon {
  display: inline-block;
  background: #ff5000;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
  flex-shrink: 0;
  line-height: 1.1;
}

.sad-item-price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sad-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.sad-item-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  opacity: 0.5;
}

.sad-item-card:hover .sad-item-remove-btn {
  opacity: 1;
}

.sad-item-remove-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: scale(1.1);
}

.sad-empty-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #e2e8f0;
  margin: 16px 8px;
}

.sad-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.sad-empty-text {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.sad-empty-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.sad-btn-restore-samples {
  font-size: 11.5px;
  font-weight: 500;
  color: #6366f1;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sad-btn-restore-samples:hover {
  background: #eef2ff;
  border-color: #818cf8;
}

.sad-item-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sad-tag {
  font-size: 10.5px;
  line-height: 1.2;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 500;
}

.sad-tag.free-ship {
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  font-weight: 600;
}

.sad-tag.sales-vol {
  color: #4b5563;
  background: #f3f4f6;
}

.sad-tag.repurchase {
  color: #ea580c;
  background: #fff7ed;
}

.sad-tag.feature {
  color: #6b7280;
  background: #f9fafb;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4. 对话执行流与实时战报面板 */
.sad-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f9fafb;
}

.sad-agent-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sad-agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}

.sad-bubble-body {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  border-top-left-radius: 2px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #374151;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sad-agent-card-stat {
  margin-top: 8px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sad-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}

.sad-stat-row .label { color: #6b7280; }
.sad-stat-row .val { font-weight: 600; color: #6d28d9; }

/* 5. 底部输入与操作区 */
.sad-footer-box {
  padding: 12px 14px 14px;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sad-input-card {
  border: 1.5px solid #d8b4fe;
  border-radius: 12px;
  background: #fdfcff;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sad-input-card:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.sad-input-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #6b7280;
}

.sad-img-icon-btn {
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.sad-img-icon-btn:hover {
  color: #6d28d9;
}

.sad-input-desc {
  flex: 1;
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.sad-edit-badge {
  background: #f3e8ff;
  color: #7c3aed;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}

.sad-link-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}

.sad-var-badge {
  background: #ecfdf5;
  color: #059669;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}

.sad-quick-pitch-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 3px 8px;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sad-quick-pitch-btn:hover {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #c4b5fd;
  transform: translateY(-0.5px);
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.1);
}

.sad-quick-pitch-btn:active {
  transform: translateY(0);
  background: #ede9fe;
}

.sad-input-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sad-input-card:focus-within {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.18) !important;
}

.sad-pitch-textarea {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  resize: vertical;
  min-height: 105px;
  max-height: 220px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #1f2937;
  font-weight: 500;
  font-family: inherit;
  padding: 4px 0;
  cursor: text;
}

.sad-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 原文发送 Toggle 开关 */
.sad-raw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.sad-tip-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 10px;
}

.sad-raw-toggle input[type="checkbox"] {
  display: none;
}

.sad-toggle-switch {
  width: 32px;
  height: 18px;
  background: #e5e7eb;
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
}

.sad-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.sad-raw-toggle input[type="checkbox"]:checked + .sad-toggle-switch {
  background: #10b981;
}

.sad-raw-toggle input[type="checkbox"]:checked + .sad-toggle-switch::after {
  transform: translateX(14px);
}

/* 标志性紫色主按钮 [帮我批量询盘] */
.btn-agent-batch-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-agent-batch-start:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.btn-agent-batch-start:active {
  transform: translateY(0);
}

.btn-agent-batch-start:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* 档案 / 商品 / 订单 占位提示 */
.sad-placeholder-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #94a3b8;
  text-align: center;
}

.sad-placeholder-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.sad-placeholder-text {
  font-size: 13px;
}

/* 6. 旺旺风格小巧圆形悬浮 Agent 助手 (支持全局自由拖拽与吸附) */
.floating-agent-bubble.wangwang-style {
  position: fixed;
  bottom: 36px;
  right: 32px;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.42), 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 9995;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.floating-agent-bubble.wangwang-style:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.55);
}

.floating-agent-bubble.wangwang-style.is-dragging {
  cursor: grabbing !important;
  transform: scale(1.1) !important;
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.65) !important;
  transition: none !important;
  opacity: 0.95;
}

.fab-circle-body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-circle-icon {
  font-size: 24px;
  line-height: 1;
  pointer-events: none;
}

/* 旺旺风格未读红点角标 */
.fab-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  line-height: 14px;
  padding: 0 4px;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
  pointer-events: none;
  box-sizing: border-box;
}

/* 扩散微光脉冲 */
.fab-circle-pulse {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1.5px solid #a78bfa;
  animation: fabPulseAnim 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes fabPulseAnim {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* 悬停微浮提示条 */
.fab-hover-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fab-hover-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  border-width: 4px 0 4px 4px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(15, 23, 42, 0.88);
}

.floating-agent-bubble.wangwang-style:hover .fab-hover-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   选品批量加入 AI 询盘底部悬浮操作条 (Floating Action Bar)
   ========================================================================== */
.product-floating-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-floating-bar.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.pfb-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 18px 10px 22px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.pfb-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.pfb-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 1; }
}

.pfb-text strong {
  color: #fb923c;
  font-size: 15px;
  font-weight: 700;
  margin: 0 2px;
}

.pfb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pfb-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pfb-btn-primary:hover {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.6);
}

.pfb-btn-primary:active {
  transform: translateY(0);
}

.pfb-btn-secondary {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pfb-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.pfb-btn-ghost {
  padding: 6px 12px;
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.pfb-btn-ghost:hover {
  color: #f87171;
}

/* 表格复选框列与高亮选中行 */
.col-th-checkbox, .col-td-checkbox {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  text-align: center;
  padding: 10px 4px !important;
}

.product-row-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #ea580c;
  transition: transform 0.12s ease;
}

.product-row-checkbox:hover {
  transform: scale(1.15);
}

tr.product-row-selected {
  background-color: rgba(254, 243, 199, 0.35) !important;
}

/* 行操作快捷询盘小按钮 */
.btn-act-quick-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
  font-weight: 600 !important;
}

.btn-act-quick-inquiry:hover {
  background: #ea580c !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
}

.btn-act-quick-inquiry.is-added {
  background: #f0fdf4 !important;
  color: #16a34a !important;
  border-color: #bbf7d0 !important;
}

/* 抽屉内 1688 卡片关联的 Temu 原款标注 */
.sad-origin-temu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 4px 8px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px dashed #cbd5e1;
  font-size: 11px;
  color: #64748b;
}

.sad-origin-tag {
  display: inline-block;
  padding: 1px 4px;
  background: #ff7700;
  color: #ffffff;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}

/* ==========================================================================
   1688 批量询盘任务生命周期管理与商家应答汇总比价大盘
   ========================================================================== */
#backdropInquiryTasksReport {
  z-index: 10050 !important;
}

.modal-inquiry-report {
  width: 92%;
  max-width: 1160px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  animation: modalScaleIn 0.22s ease-out;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-export-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-export-report:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.12);
}

.inquiry-report-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  flex: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 任务生命周期元数据卡片 */
.inquiry-task-meta-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.task-selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 12px;
}

.task-selector-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.select-task-batch {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.task-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.task-status-pill.status-completed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.task-status-pill.status-inquiring {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.task-selector-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.meta-subtext {
  font-size: 11.5px;
  color: #64748b;
}

.meta-subtext b {
  color: #1e293b;
}

/* 4 步生命周期步骤条 */
.task-lifecycle-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
}

.lifecycle-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lifecycle-step.done .step-dot {
  background: #10b981;
  color: #ffffff;
}

.lifecycle-step.active .step-dot {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.step-text {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.step-desc {
  font-size: 10.5px;
  color: #94a3b8;
}

.lifecycle-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 12px;
}

.lifecycle-line.done {
  background: #10b981;
}

/* 表格工具筛选条 */
.inquiry-table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
}

.filter-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-stat-text {
  font-size: 12px;
  color: #475569;
}

.filter-tabs {
  display: flex;
  gap: 6px;
}

.filter-tab-btn {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab-btn.active {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.filter-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sec-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-sec-refresh:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-pri-batch-apply {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #7c3aed;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-pri-batch-apply:hover {
  background: #6d28d9;
}

/* 汇总表格容器 */
.inquiry-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.inquiry-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.inquiry-report-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 10px 10px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.inquiry-report-table tbody td {
  padding: 10px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.inquiry-report-table tbody tr:hover {
  background: #fdfefe;
}

.inquiry-report-table tbody tr.row-recommended {
  background: #fefce8;
}

.sup-col-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sup-col-thumb {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.sup-col-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sup-col-name {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.sup-col-loc {
  font-size: 10.5px;
  color: #64748b;
}

.temu-col-tag {
  font-size: 11px;
  color: #ea580c;
  font-weight: 600;
}

.temu-col-title {
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.price-original {
  font-size: 11.5px;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-bargain {
  display: flex;
  flex-direction: column;
}

.price-bargain-val {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
}

.price-bargain-diff {
  font-size: 10px;
  color: #16a34a;
  font-weight: 600;
}

.badge-dropship-yes {
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
}

.badge-dropship-no {
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
}

.pill-margin-pos {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

.badge-tier-top {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}

.badge-tier-backup {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
}

.report-action-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-rpt-apply {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.btn-rpt-apply:hover {
  background: #059669;
}

.btn-rpt-chat {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.btn-rpt-chat:hover {
  background: #dbeafe;
}

/* ==========================================
   多商家询盘分栏工作台 & 结构化对比矩阵 (解决杂乱混淆)
   ========================================== */
.sad-multisup-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
}

/* 1. 顶部商家快速切换水平胶囊栏 */
.sad-suppliers-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  border-bottom: 1px solid #e5e7eb;
  scrollbar-width: thin;
}

.sad-suppliers-nav::-webkit-scrollbar {
  height: 4px;
}
.sad-suppliers-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sad-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.sad-nav-tab:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sad-nav-tab.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}

.sad-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.sad-tab-dot.dot-replied {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.sad-tab-dot.dot-waiting {
  background: #f59e0b;
}

.sad-nav-tab.active .sad-tab-dot {
  background: #ffffff;
}

/* 2. 全景对比视图 - 结构化卡片列表 */
.sad-overview-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}

.sad-overview-header-card {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.soh-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #6d28d9;
}

.soh-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

/* 商家结构化比价卡片 */
.sad-sup-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}

.sad-sup-card:hover {
  border-color: #c084fc;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.sad-sup-card.card-replied {
  border-left: 3.5px solid #10b981;
}

.sad-sup-card.card-waiting {
  border-left: 3.5px solid #f59e0b;
}

.ssc-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ssc-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.ssc-info {
  flex: 1;
  overflow: hidden;
}

.ssc-company-name {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssc-product-title {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.ssc-status-tag {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.ssc-status-tag.tag-replied {
  background: #d1fae5;
  color: #065f46;
}

.ssc-status-tag.tag-waiting {
  background: #fef3c7;
  color: #92400e;
}

.ssc-reply-quote-box {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #334155;
  border: 1px solid #f1f5f9;
  line-height: 1.5;
}

.ssc-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.sqg-item .sqg-label {
  font-size: 10.5px;
  color: #64748b;
  display: block;
}

.sqg-item .sqg-val {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

.sqg-item .sqg-val.text-green {
  color: #059669;
}

.ssc-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #f1f5f9;
  padding-top: 6px;
  font-size: 11px;
}

.ssc-link-btn {
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
}

.ssc-view-dialog-btn {
  color: #7c3aed;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* 3. 独立单商家会话视图 */
.sad-single-sup-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}

.ssv-product-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.ssv-banner-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.ssv-banner-details {
  flex: 1;
  overflow: hidden;
}

.ssv-banner-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssv-banner-link {
  font-size: 11px;
  color: #2563eb;
  word-break: break-all;
  display: inline-block;
  margin-top: 2px;
  text-decoration: underline;
}

.ssv-dialog-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

