
/* 外层容器 */
#tb-taiji-container {
  position: fixed;
  bottom: 50px;
  right: -20px;
  z-index: 99998;
  width: 60px;
  height:60px;
  cursor: pointer;
  user-select: none;
}

/* 可旋转的按钮 */
#tb-taiji-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: url(assets/logo.svg) no-repeat center;
  background-size: 100% auto;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  position: absolute;
}

/* 不旋转的按钮 */
#tb-taiji-btn-2 {
  width: 45px;
  height: 45px;
  background: url(assets/logo.png) no-repeat center;
  background-size: 100% auto;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  position: absolute;
  top: 7px; /* 微调位置 */
  left: 7px; /* 微调位置 */
  z-index: 2;
  /* 确保它不继承任何transform */
  transform: none !important;
  pointer-events: none; /* 如果不希望它接收点击事件 */
}

/* 容器hover效果 */
#tb-taiji-container:hover #tb-taiji-btn {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* 主按钮旋转时，确保第二个按钮不受影响 */
#tb-taiji-container.rotated #tb-taiji-btn {
  transform: rotate(180deg);
}

#tb-taiji-container.rotated:hover #tb-taiji-btn {
  transform: rotate(180deg) scale(1.05);
}


.taiji-button-group {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  padding: 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-set {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


#taiji-popup {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
  position: fixed;
  right: 10px;
  width: 800px;
  height: 700px;
  bottom: 10px;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 99998;
  padding: 10px;
  font-family: Arial, sans-serif;
}

/* 标签导航 */
.tabs {
  display: flex;
  border-bottom: 1px solid #1E90FF;
  /* Picnic 主色调蓝色边框 */
  margin-bottom: 1px;
  gap: 18px;
}

.tab {
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  user-select: none;
  width: 78px;
}

.tab:hover {
  color: #1E90FF;
}

.tab.active {
  color: #1E90FF;
  border-bottom-color: #1E90FF;
}

/* 内容面板 */
.tab-panel {
  overflow-y: auto;
  height: 540px;
  display: none;
}

.tab-panel.active {
  display: block;
}

/* 日志区域 */
#log-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 6px;
  background: #fafafa;
}

#ai-title-btn {
  position: absolute;
  right: 0px;
  bottom: -6px;
  transform: translateY(100%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgb(204, 204, 204);
  border-radius: 4px;
  background: rgb(255, 255, 255);
  cursor: pointer;
  font-size: 12px;
}

#preview-container {
  position: absolute;
  transform: translateY(80px);
  right: 100px;
  bottom: 0;
  /* 不要负值 */
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  max-width: 420px;
  background: #fff;
  /* 可选，增加可视性 */
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

#preview-container-span {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  /* 显示 4 行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
}

#preview-container-btn {
  padding: 2px 8px;
  border: 1px solid rgb(204, 204, 204);
  border-radius: 4px;
  background-color: rgb(44, 62, 80);
  cursor: pointer;
  font-size: 12px;
  color: white;
  line-height: 50px;
  position: relative;
}

.ios-switch {
  position: relative;
  display: inline-block;
  width: 50px !important;
  height: 24px;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.ios-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.ios-switch input:checked+.ios-slider {
  background-color: #1E90FF;
  /* Apple green */
}

.ios-switch input:checked+.ios-slider:before {
  transform: translateX(22px);
}

.toggle-group {
  display: block;
  align-items: center;
  margin: 5px 0px 5px 0px;
  font-size: 16px;
}

.toggle-label {
  margin-right: 5px;
  font-size: 24px;
  color: #000 !important;
}

.log-list {
  height: 100px;
  overflow-y: auto;
}

.log-entry {
  background: #f5f5f5;
  border-left: 4px solid #4a90e2;
  padding: 5px;
  margin-bottom: 5px;
  border-radius: 8px;
  transition: background 0.3s;
}

.log-entry:hover {
  background: #eef6ff;
}

.log-timestamp {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.log-message {
  font-weight: bold;
  color: #333;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.tips-txt {
  font-size: 10px;
}

.tab-panel p {
  font-size: 12px;
  margin-bottom: 5px;
}


.button-group {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 10px;
}

.custom-button {
  font-size: 12px;
  padding: 5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.custom-button.start {
  background-color: #28a745;
  /* 绿色 */
  color: #ffffff;
  width: 50%;
}

.custom-button.pause {
  background-color: #ff9800;
  /* 橙色 */
  color: #ffffff;
  width: 50%;
}

#toast-container {
  position: absolute;
  top: -10px;
  right: 0;
  z-index: 999999;
}

#taiji-top-toast {
  position: fixed;
  top: 60px;
  right: 10px;
  z-index: 999999;
}

.wj-toast {
  margin-top: 10px;
  padding: 10px 20px;
  background: #323232;
  color: white;
  border-radius: 5px;
  opacity: 0.95;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.3s ease;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  /* 更现代的写法，推荐 */
  white-space: normal;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

.progress-container {
  width: 100%;
  background-color: #eee;
  border-radius: 10px;
  height: 16px;
  margin: 2px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: #1E90FF;
  /* 高亮颜色 */
  transition: width 0.3s ease;
  text-align: center;
  color: white;
  line-height: 16px;
  font-weight: bold;
  font-size: 10px;
}

#one_load {
  line-height: 32px;
  display: None;
}

#tow_load {
  line-height: 32px;
  display: none;
}


.creator-section {
  margin-bottom: 10px;
  font-size: 14px;
}

.creator-section label {
  display: inline-block;
  width: 72px;
  font-weight: 500;
  vertical-align: middle;
}

.creator-input-inline {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.creator-input-inline label {
  width: auto;
  flex: 1;
}

.creator-input-inline input {
  width: 60px;
  padding: 2px 4px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.creator-section input[type="number"] {
  width: 70px;
  padding: 2px 4px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.creator-radio-group {
  display: flex;
  gap: 10px;
  font-weight: 500;
  padding-left: 2px;
}

.creator-title {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.reator-section span {
  font-size: 12px;
}

.button-default {
  border: solid 1px;
  border-radius: 10px;
  font-size: 12px;
  padding: 3px;
  margin: 3px;
}

.login-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  padding: 10px;
  width: 100%;
  max-width: 400px;
  height: 400px;
  box-sizing: border-box;
  display: grid;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login-box h2 {
  margin: 0;
  font-size: 18px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 12px;
}

.checkbox input {
  margin-right: 6px;
}

.login-btn {
  width: 100%;
  padding: 10px;
  background-color: #1677ff;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
}

.login-box .register {
  text-align: right;
  margin-top: 8px;
  font-size: 12px;
}

.register a {
  color: #1677ff;
  text-decoration: none;
}

#taiji-content {
  display: none;
}

.taiji-profile-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 20px;
  position: relative;
}

.taiji-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.taiji-info {
  text-align: left;
}

.taiji-info p {
  margin: 5px 0;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.taiji-label {
  font-weight: bold;
}

.taiji-upgrade-btn {
  padding: 4px 10px;
  font-size: 12px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  margin-left: 0px;
}

.taiji-bt-width {
  width: 70px;
}

.taiji-upgrade-btn:hover {
  background-color: red;
}

.taiji-logout-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.taiji-logout-btn:hover {
  background-color: #d32f2f;
}

.version-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  background-color: #ff4757;
  color: white;
  padding: 0px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

#creator-tips {
  color: rgb(244, 67, 54);
  font-weight: bold;
  line-height: 32px;
}

.taiji-label-nice {
  display: inline-block;
  background-color: #a6c48a;
  /* 新主色 */
  color: #fff;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  position: relative;
  line-height: 1;
  transition: all 0.2s ease;
}

.taiji-label-nice::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background-color: #ffc64b;
  /* 右侧竖条颜色保持不变 */
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  transition: all 0.2s ease;
}

.taiji-label-nice:hover::after {
  width: 6px;
  background-color: #ffb000;
}

.taiji-hidden {
  display: none !important;
}

.taiji-label-nice {
  display: inline-block;
  background-color: #a6c48a;
  /* 新主色 */
  color: #fff;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  position: relative;
  line-height: 1;
  transition: all 0.2s ease;
}

.taiji-label-nice::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background-color: #ffc64b;
  /* 右侧竖条颜色保持不变 */
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  transition: all 0.2s ease;
}

.taiji-label-nice:hover::after {
  width: 6px;
  background-color: #ffb000;
}

.taiji-form-group {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  gap: 20px;
  position: relative;
}

.taiji-form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  /* 边框高度 */
  background: linear-gradient(to right, #3b82f6, #10b981);
  /* 蓝到绿：从左到右 */
  /* 或从蓝到绿到蓝：background: linear-gradient(to right, #3b82f6, #10b981, #3b82f6); */
}

/* Label styling */
/* .taiji-form-group label {
  padding: 5px;
  width: 150px;
  margin-right: 10px;
  font-weight: bold;
  font-size: 12px;
} */

.taiji-login-btn {
  width: 100%;
  padding: 10px;
  background-color: #1677ff;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

#taiji-tongji span {
  margin-right: 20px;
  font-weight: bold;
}

.taiji-match-num {
  color: #4CAF50;
}

.taiji-pv-num {
  color: #2196F3;
}

.taiji-sales-num {
  color: #FF5722;
}

.taiji-my_container input[type="text"],
.taiji-my_container input[type="tel"],
.taiji-my_container input[type="date"],
.taiji-my_container textarea,
.taiji-my_container select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}


.taiji-log-inner {
  position: relative;
  height: 1000px;
}


.taiji-log-entry {
  border-left: 4px solid #4a90e2;
  margin-bottom: 5px;
  border-radius: 6px;
}

/* */


.taiji-log-body {
  background: #f8f8f8;
  /* padding: 6px; */
  border-radius: 6px;
}

.taiji-log-message {
  font-weight: bold;
  font-size: 12px;
  color: #333;
  word-wrap: break-word;
  white-space: normal;
  margin-left: 10px;
}

.taiji-log-timestamp {
  margin-left: 10px;
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}


:root {
  /* Primary Colors */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-primary-dark: #1e40af;

  /* Secondary Colors */
  --color-secondary: #059669;
  --color-secondary-hover: #047857;
  --color-secondary-light: #d1fae5;

  /* Neutral Colors */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;

  --font-size-xs: 0.93rem;
  /* 12px */
  --font-size-sm: 0.95rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing Scale */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-base: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-base: all 0.2s ease;
  --transition-slow: all 0.3s ease;
  --taiji-batch-primary-color: #1a73e8;
  --taiji-batch-secondary-color: #34a853;
  --taiji-batch-danger-color: #ea4335;
  --taiji-batch-bg-color: #ffffff;
  --taiji-batch-card-bg: #f8f9fa;
  --taiji-batch-text-color: #202124;
  --taiji-batch-border-color: #dadce0;
  --taiji-batch-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.taiji-batch-container {
  width: 350px;
  background-color: var(--taiji-batch-card-bg);
  border-radius: 8px;
  box-shadow: var(--taiji-batch-shadow);
  overflow: hidden;
  margin: 0 auto;
  z-index: 99999;
  position: absolute;
  background: #fff;
  right: 100px;
  top: 60px;
}

.taiji-batch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--taiji-batch-border-color);
}

.taiji-batch-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.taiji-batch-close-btn {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.taiji-batch-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.taiji-batch-filter-section {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.taiji-batch-filter-group {
  margin-bottom: 24px;
}

.taiji-batch-filter-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #000;
}

.taiji-batch-filter-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.taiji-batch-filter-label {
  width: 120px;
  font-size: 14px;
  color: #000;
}

.taiji-batch-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--taiji-batch-bg-color);
  border: 1px solid var(--taiji-batch-border-color);
  border-radius: 4px;
  padding: 0 12px;
  height: 36px;
  flex: 1;
}

.taiji-batch-input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: var(--taiji-batch-text-color);
}

.taiji-batch-threshold-section {
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--taiji-batch-border-color);
}

.taiji-batch-threshold-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.taiji-batch-radio-group {
  display: flex;
  gap: 15px;
}

.taiji-batch-radio-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 13px;
}

.taiji-batch-radio-label input {
  margin: 0;
}

.taiji-batch-actions {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--taiji-batch-card-bg);
  border-top: 1px solid var(--taiji-batch-border-color);
}

.taiji-batch-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

#taiji-batch-btn-clear {
  background-color: var(--taiji-batch-secondary-color);
  color: white;
}

#taiji-batch-btn-clear:hover {
  background-color: #2d9247;
}

.taiji-batch-btn-cancel {
  background-color: transparent;
  color: #9aa0a6;
  border: 1px solid var(--taiji-batch-border-color);
}

.taiji-batch-btn-cancel:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.taiji-batch-btn-confirm {
  background-color: var(--taiji-batch-primary-color);
  color: white;
  margin-left: 10px;
}

.taiji-batch-btn-confirm:hover {
  background-color: #1669d6;
}


.taiji-product-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  font-family: var(--font-family-base);
  min-width: 0;
}

.taiji-product-th,
.taiji-product-td {

  border-bottom: 1px solid var(--color-gray-200);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.taiji-product-th {
  text-align: left;
  background: var(--color-gray-50);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-800);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-gray-200);
}

.taiji-product-table tbody tr {
  transition: var(--transition-fast);
}

.taiji-product-table tbody tr:nth-child(even) {
  background: var(--color-gray-50);
}

.taiji-product-table tbody tr:hover {
  background: var(--color-primary-light);
}

.taiji-product-table tbody tr:last-child .taiji-product-td {
  border-bottom: none;
}

.taiji-product-checkbox {
  width: 30px !important;
  margin: 0;
  text-align: center;
}

.taiji-product-thead-checkbox {
  width: 30px !important;
  margin: 0;
  text-align: center;
  padding: 0;
}

.taiji-product-th-w {
  width: 60px;
}

.taiji-product-thead {
  position: sticky;
  top: 30px;
  background-color: #fff;
  z-index: 1;
}

#taiji-product-select {
  position: fixed;
  top: 60px;
  right: 100px;
  max-height: 700px;
  overflow-y: auto;
  width: min(350px, calc(100vw - 30px));
  max-width: 350px;
  z-index: 99999;
  padding: 6px;
  background-color: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  box-sizing: border-box;
}

#taiji-product-select-2 {
  position: fixed;
  top: 60px;
  right: 100px;
  max-height: 700px;
  overflow-y: auto;
  width: min(350px, calc(100vw - 30px));
  max-width: 350px;
  z-index: 99999;
  padding: 6px;
  background-color: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  box-sizing: border-box;
}

.taiji-product-price {
  width: 150px !important;
  font-size: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.taiji-select-qty {
  position: absolute;
  z-index: 99;
  font-size: 12px !important;
  padding: 0px 5px 0px 5px !important;
}

.taiji-product-btn-container {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 10px;
  background: #fff;
  display: flex;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--color-gray-200);
  margin-top: auto;
}

.taiji-product-btn-container button {
  flex: 1;
  /* = 宽度自动平均分，即 50% */
  /* 其它按钮样式示例 */
  padding: 5px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.taiji-product-thead-checkbox {
  width: 30px !important;
  margin: 0;
  text-align: center;
  padding: 0;
}

.taiji-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  border: 1px solid transparent;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: var(--transition-base);
  user-select: none;
  white-space: nowrap;
  background: var(--color-secondary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.taiji-product-btn:hover {
  background: var(--color-secondary-hover);
  box-shadow: var(--shadow-base);
  transform: translateY(-1px);
}

.taiji-product-btn.cancel {
  background: var(--color-error);
}

.taiji-product-btn.cancel:hover {
  background: #dc2626;
  box-shadow: var(--shadow-base);
  transform: translateY(-1px);
}

.taiji-product-btn:disabled {
  background: var(--color-gray-300);
  color: var(--color-gray-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.5;
}

.taiji-product-state {
  width: 60px;
  text-align: center;
}

/* Professional Status Indicators */
.taiji-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  border-radius: var(--radius-full);
  border: 1px solid;
  position: relative;
}

.taiji-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.taiji-status-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  border: 1px solid;
}

.taiji-status-available {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-color: var(--color-success);
}

/* 针对特定列设置 */
.taiji-product-table th:nth-child(3) {
  /* __MSG_html_72__ 是第三列 */
  display: flex;
  align-items: center;
  /* 垂直居中 */
  justify-content: center;
  /* 水平居中 */
  min-height: 40px;
  /* 设置最小高度 */
  padding: 4px 8px;
  text-align: center;
}

/* 保持多行文本截断 */
.taiji-product-title {
  width: 400px;
  font-size: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

.taiji-select-product-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

/* 按钮容器 */
.taiji-tips-button-container {
  display: inline-block;
  position: relative;
  overflow: visible;
  /* 确保 tooltip 显示 */
}

/* 小按钮风格 */
.taiji-tips-use-btn {
  padding: 4px 30px 4px 10px;
  /* 小内边距 */
  font-size: 13px;
  /* 小字体 */
  background-color: var(--color-success);
  color: white;
  border: none;
  border-radius: 6px;
  /* 小圆角 */
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-left: 10px;
  position: relative;
  overflow: hidden;
}

/* 悬停效果 */
.taiji-tips-use-btn:hover {
  /* 可稍微亮一点 */
  transform: translateY(-1px);
}

/* 按下效果 */
.taiji-tips-use-btn:active {
  transform: translateY(1px);
}

/* 问号 */
.taiji-tips-question-mark {
  position: absolute;
  top: 50%;
  right: 6px;
  /* 紧贴按钮右边 */
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 1.5px solid white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.taiji-tips-question-mark:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* Tooltip */
.taiji-tips-tooltip {
  position: fixed;
  background-color: rgba(30, 30, 40, 0.95);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 350px;
  width: max-content;
  font-size: 12px;
  line-height: 1.3;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 9999999;
}


/* Tooltip 小箭头 */
/* .taiji-tips-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 6px;
  border-width: 6px 4px 0 4px;
  border-style: solid;
  border-color: rgba(30, 30, 40, 0.95) transparent transparent transparent;
} */

/* 显示 tooltip */
.taiji-tips-button-container:hover .taiji-tips-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-160%);
}

#taiji-bundle-set {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 300px;
  text-align: left;
  z-index: 99999;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#taiji-bundle-set h3 {
  font-size: 24px;
  color: #fff;
}

#taiji-bundle-set .toggle-label {
  width: 80px !important;
  display: inline-block;
  font-size: 14px;
  color: #fff !important;
}

.taiji-bundle-btn-container {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 5px;
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  height: 40px;
}

.taiji-p-start {
  background-color: #e6f7ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* #taiji-priceTableBody .taiji-product-title {
  width: 500px;
  font-size: 10px;
  display: -webkit-box;
  height: 50px;
} */


.taiji-campaign-title {
  width: 400px !important;
  font-size: 12px;
  white-space: normal;
  /* 允许换行（可加可不加，一般默认就是 normal） */
  word-break: break-word;
  /* 避免长单词/长链接撑破 */
}



.taiji-campaign-btn {
  padding: 4px 10px;
  font-size: 12px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  margin-left: 0px;
}

.taiji-campaign-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  font-family: var(--font-family-base);
  min-width: 0;
}

#taiji-campaign-remove-btn {
  background-color: var(--color-error);
  ;
}

.taiji-campaign-day {
  font-size: 10px;
  text-align: center;
}

/* #taiji-submitTableBody .taiji-product-title {
  width: 400px;
  font-size: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  height: 50px;
} */

#taiji-titleTableBody .taiji-product-title {
  width: 200px;
  font-size: 10px;
  display: table-cell;
  height: 50px;
}

.taiji-my {
  background: #fff;
  position: absolute;
  top: 52px;
  width: 100%;
}

/* #taiji-cardTableBody .taiji-product-title {
  width: 400px;
  font-size: 10px;
  display: -webkit-box;
  height: 50px;
} */

.taiji-product-td-img {
  display: flex;
  /* 使用flex布局 */
  align-items: center;
  /* 垂直居中 */
  gap: 8px;
  /* 图片间距 */
  padding: 8px;
  /* 内边距 */
}

/* 图片统一样式 */
.taiji-product-td-img img {
  width: 40px;
  /* 图片宽度 */
  height: 40px;
  /* 图片高度 */
  border-radius: 8px;
  /* 圆角 */
  object-fit: cover;
  /* 填充模式 */
  border: 1px solid #f0f0f0;
  /* 边框（可选） */
}

.taiji-product-action{
  text-align: center;
}

.taiji-product-td {
  padding: 4px;
  vertical-align: middle;  /* 从顶部开始排 */
}

.taiji-import-panel {
  position: absolute;
  bottom: 150px;
  right: 200px;
  max-height: 80vh;
  overflow-y: auto;
  width: 330px;
  font-family: system-ui, sans-serif;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  z-index: 99999;
}

.taiji-import-btn-container {
  position: relative;
  z-index: 1;
  padding: 10px;
  background: #fff;
  display: flex;
  gap: 10px;
  width: 100%;
}
.taiji-import-btn-container textarea{
  width: 100% !important;
}
.taiji-import-btn-container button {
  flex: 1;
  /* = 宽度自动平均分，即 50% */
  /* 其它按钮样式示例 */
  padding: 5px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
