/* ============================================
   健康顾问工作台 - 顾问端专属样式
   响应式设计：移动优先，PC端侧边栏布局
   ============================================ */

/* ===== 布局基础 ===== */
.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 移动端底部Tab导航 ===== */
.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  transition: color var(--transition-fast);
  padding: 6px 0;
}

.tabbar-item-icon {
  font-size: 22px;
  line-height: 1;
}

.tabbar-item-label {
  font-size: 11px;
}

.tabbar-item.active {
  color: var(--primary-600);
}

.tabbar-item.active .tabbar-item-icon {
  transform: scale(1.1);
}

/* 主内容区 - 移动端 */
.main-content {
  flex: 1;
  padding-bottom: 70px; /* 给底部Tab留空间 */
  min-height: 100vh;
}

/* ===== PC端侧边栏布局 (>=900px) ===== */
@media (min-width: 900px) {
  .app-layout {
    flex-direction: row;
  }

  .mobile-tabbar {
    display: none;
  }

  .sidebar {
    width: 240px;
    min-height: 100vh;
    background: white;
    border-right: 1px solid var(--border-light);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
  }

  .sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
  }

  .sidebar-logo-text {
    font-size: var(--font-size-lg);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
  }

  .sidebar-menu-section {
    margin-bottom: 20px;
  }

  .sidebar-menu-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    margin-bottom: 4px;
  }

  .sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: 2px;
  }

  .sidebar-menu-item:hover {
    background: var(--primary-50);
    color: var(--primary-700);
  }

  .sidebar-menu-item.active {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
  }

  .sidebar-menu-item-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
  }

  .sidebar-menu-item-badge {
    margin-left: auto;
    background: var(--warm-400);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
  }

  .sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-light);
  }

  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
  }

  .sidebar-user:hover {
    background: var(--gray-50);
  }

  .sidebar-user-info {
    flex: 1;
    min-width: 0;
  }

  .sidebar-user-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-user-role {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
  }

  /* PC端主内容区 */
  .main-content {
    margin-left: 240px;
    padding-bottom: 0;
    padding: 0;
    min-height: 100vh;
  }

  .page-container {
    padding: 32px 40px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .page-header {
    margin-bottom: 28px;
  }

  .page-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
  }

  .page-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
  }
}

/* ===== 移动端页面头部 ===== */
@media (max-width: 899px) {
  .sidebar {
    display: none;
  }

  .page-container {
    padding: 16px;
    padding-top: 20px;
  }

  .page-header {
    margin-bottom: 20px;
  }

  .page-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
  }

  .page-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: 4px;
  }

  /* 表单双列在手机上改为单列，避免输入框被挤窄、文字换行溢出 */
  .product-form-grid {
    grid-template-columns: 1fr;
  }

  /* 头部/底部 flex 行允许换行，避免标签与操作按钮互相挤压 */
  .content-section-title,
  .stats-chart-header,
  .welcome-actions,
  .order-card-footer,
  .wizard-steps,
  .share-link-row {
    flex-wrap: wrap;
  }
  .welcome-actions .btn,
  .order-card-footer .btn {
    flex: 1 1 auto;
  }

  /* 智能体名称区允许收缩，长名字不挤压右侧状态 */
  .agent-name {
    min-width: 0;
  }

  /* 正文/描述/元信息长串断词，避免撑破卡片 */
  .agent-desc,
  .kb-card-meta,
  .search-result-snippet,
  .order-product-spec,
  .product-category,
  .upload-item-size {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 32px;
  position: relative;
  z-index: 10;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: var(--shadow-glow);
}

.login-logo-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-logo-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: 4px;
}

.login-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.login-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-input {
  padding: 12px 16px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: var(--font-size-sm);
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-secondary);
}

.forgot-password {
  color: var(--primary-600);
  cursor: pointer;
}

.forgot-password:hover {
  color: var(--primary-700);
}

.login-btn {
  padding: 14px;
  font-size: var(--font-size-base);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.login-footer a {
  color: var(--primary-600);
  font-weight: 500;
}

/* ===== 首页/工作台 ===== */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--radius-xl);
  padding: 28px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  right: 40px;
  bottom: -60px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.welcome-text {
  position: relative;
  z-index: 1;
}

.welcome-greeting {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 6px;
}

.welcome-desc {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  margin-bottom: 16px;
}

.welcome-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.welcome-actions .btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-actions .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 统计网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* 快捷入口 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
}

.quick-action-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.quick-action-icon.green { background: linear-gradient(135deg, var(--primary-100), var(--primary-200)); }
.quick-action-icon.teal { background: linear-gradient(135deg, var(--secondary-100), var(--secondary-200)); }
.quick-action-icon.gold { background: linear-gradient(135deg, var(--warm-100), var(--warm-200)); }
.quick-action-icon.blue { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }

.quick-action-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

/* 移动端内容Tab页 */
.content-section {
  margin-bottom: 24px;
}

.content-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.content-section-title h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.content-section-title .more-link {
  font-size: var(--font-size-sm);
  color: var(--primary-600);
  cursor: pointer;
}

/* 入口卡片 */
.entry-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.entry-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.entry-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.entry-card-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.entry-card-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.entry-card-count {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-600);
}

/* ===== 知识库页面 ===== */
.kb-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box .form-input {
  padding-left: 40px;
}

.search-box-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

/* 知识库卡片列表 */
.kb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kb-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  cursor: pointer;
}

.kb-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

.kb-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.kb-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kb-card-icon.health { background: linear-gradient(135deg, var(--primary-100), var(--primary-200)); }
.kb-card-icon.product { background: linear-gradient(135deg, var(--warm-100), var(--warm-200)); }

.kb-card-info {
  flex: 1;
  min-width: 0;
}

.kb-card-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kb-card-meta {
  display: flex;
  gap: 12px;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.kb-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.kb-card-actions .btn {
  flex: 1;
}

/* 上传区域 */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--gray-50);
  margin-bottom: 20px;
}

.upload-area:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
}

.upload-area-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.upload-area-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.upload-area-hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* 上传进度列表 */
.upload-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.upload-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-light);
}

.upload-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.upload-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.upload-item-info {
  flex: 1;
  min-width: 0;
}

.upload-item-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-item-size {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.upload-item-status {
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.upload-item-status.uploading { color: var(--primary-600); }
.upload-item-status.success { color: var(--success); }
.upload-item-status.failed { color: var(--error); }

/* 检索测试区 */
.search-test-area {
  background: var(--secondary-50);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--secondary-100);
}

.search-test-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--secondary-800);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-test-input {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-test-result {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 100px;
}

.search-result-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.search-result-score {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.search-result-snippet {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== 产品库页面 ===== */
.product-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-chip {
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
}

.filter-chip.active {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: white;
}

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  background: var(--warm-400);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.product-status {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.product-status.offline {
  background: var(--gray-400);
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-category {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.product-price {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--warm-600);
}

.product-price-unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.product-sales {
  font-size: 11px;
  color: var(--text-muted);
}

.product-card-actions {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
}

.product-card-actions .btn {
  flex: 1;
  padding: 6px 0;
  font-size: 11px;
}

/* 产品表单模态框 */
.product-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-form-grid .form-group.full-width {
  grid-column: 1 / -1;
}

/* ===== 智能体管理 ===== */
.agent-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  margin-bottom: 12px;
}

.agent-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.agent-info {
  flex: 1;
  min-width: 0;
}

.agent-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

.agent-stats {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.agent-stat {
  text-align: center;
}

.agent-stat-value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-600);
}

.agent-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.agent-actions {
  display: flex;
  gap: 8px;
}

.agent-actions .btn {
  flex: 1;
}

/* 新建向导 */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.wizard-step.active .wizard-step-num {
  background: var(--primary-500);
  color: white;
}

.wizard-step.completed .wizard-step-num {
  background: var(--success);
  color: white;
}

.wizard-step-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.wizard-step.active .wizard-step-label {
  color: var(--primary-600);
}

.wizard-step-line {
  width: 40px;
  height: 2px;
  background: var(--gray-200);
}

.wizard-step-line.completed {
  background: var(--success);
}

/* 沙盒试聊 */
.chat-sandbox {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sandbox-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
}

.chat-sandbox-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  max-width: 80%;
  display: flex;
  gap: 8px;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.chat-msg.bot .chat-msg-avatar {
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  color: white;
}

.chat-msg.user .chat-msg-avatar {
  background: var(--warm-200);
  color: var(--warm-700);
}

.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.chat-msg.bot .chat-msg-bubble {
  background: var(--gray-50);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-msg-bubble {
  background: var(--primary-500);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-sandbox-input {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
}

.chat-sandbox-input .form-input {
  flex: 1;
}

/* ===== 分享渠道 ===== */
.share-qr-section {
  text-align: center;
  margin-bottom: 28px;
}

.qr-code-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.qr-code-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-conic-gradient(var(--gray-800) 0% 25%, white 0% 50%) 50% / 16px 16px;
  border-radius: var(--radius-sm);
  position: relative;
}

.qr-code-placeholder::after {
  content: '码';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-600);
}

.qr-code-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.qr-code-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.share-link-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.share-link-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.share-link-input {
  flex: 1;
  background: var(--gray-50);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--border-color);
}

.share-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.share-channel-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
}

.share-channel-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-channel-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.share-channel-icon.wechat { background: #07C160; color: white; }
.share-channel-icon.moments { background: #576B95; color: white; }
.share-channel-icon.qq { background: #12B7F5; color: white; }
.share-channel-icon.link { background: var(--primary-100); color: var(--primary-600); }

.share-channel-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* 分享数据统计 */
.share-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.share-stat-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-light);
}

.share-stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-600);
}

.share-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 用户管理 ===== */
.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
}

.user-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-200);
}

.user-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-300), var(--secondary-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.user-item-info {
  flex: 1;
  min-width: 0;
}

.user-item-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-item-meta {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.user-item-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

/* 用户详情 */
.user-detail-header {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--radius-xl);
  padding: 24px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.user-detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  margin: 0 auto 12px;
}

.user-detail-name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 4px;
}

.user-detail-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.user-detail-tag {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 11px;
}

.user-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.user-detail-stat {
  background: white;
  padding: 16px;
  text-align: center;
}

.user-detail-stat-value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-600);
}

.user-detail-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-profile-section {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  overflow: hidden;
}

.user-profile-section-title {
  padding: 14px 18px;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-profile-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border-light);
}

.user-profile-item:last-child {
  border-bottom: none;
}

.user-profile-item-label {
  color: var(--text-muted);
}

.user-profile-item-value {
  color: var(--text-primary);
  font-weight: 500;
}

.health-records-list {
  padding: 0 18px 18px;
}

.health-record-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.health-record-item:last-child {
  border-bottom: none;
}

.health-record-date {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.health-record-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.health-record-content {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== 订单管理 ===== */
.order-tabs {
  display: flex;
  gap: 0;
  background: white;
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  overflow-x: auto;
}

.order-tab {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-weight: 500;
}

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

.order-tab.active {
  background: var(--primary-500);
  color: white;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.order-card {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--gray-50);
}

.order-no {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.order-status-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.order-status-badge.pending { background: #FEF3C7; color: #92400E; }
.order-status-badge.paid { background: #DBEAFE; color: #1E40AF; }
.order-status-badge.shipped { background: #CCFBF1; color: #134E4A; }
.order-status-badge.completed { background: #D1FAE5; color: #065F46; }
.order-status-badge.cancelled { background: var(--gray-100); color: var(--gray-600); }
.order-status-badge.refunded { background: #FEE2E2; color: #991B1B; }

.order-card-body {
  padding: 14px 16px;
}

.order-product {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-product-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.order-product-info {
  flex: 1;
  min-width: 0;
}

.order-product-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-product-spec {
  font-size: 11px;
  color: var(--text-muted);
}

.order-product-qty {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.order-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.order-total-amount {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--warm-600);
  margin-left: 4px;
}

.order-actions {
  display: flex;
  gap: 8px;
}

.order-actions .btn {
  padding: 6px 14px;
  font-size: var(--font-size-xs);
}

/* 订单详情 */
.order-detail-section {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  overflow: hidden;
}

.order-detail-title {
  padding: 14px 18px;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.order-detail-content {
  padding: 16px 18px;
}

.order-timeline {
  padding: 8px 18px 16px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
  border: 3px solid white;
  box-shadow: 0 0 0 1px var(--border-color);
}

.timeline-item.done .timeline-dot {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.timeline-item.current .timeline-dot {
  background: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-time {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.timeline-desc {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== 销售统计 ===== */
.stats-chart-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.stats-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.stats-chart-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
}

.chart-container {
  position: relative;
  height: 220px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 180px;
  gap: 6px;
  padding-top: 20px;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.chart-bar {
  width: 100%;
  max-width: 32px;
  background: linear-gradient(180deg, var(--primary-400), var(--primary-500));
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: all var(--transition-base);
  cursor: pointer;
  min-height: 4px;
}

.chart-bar:hover {
  background: linear-gradient(180deg, var(--primary-500), var(--primary-600));
}

.chart-bar.secondary {
  background: linear-gradient(180deg, var(--warm-300), var(--warm-400));
}

.chart-bar.secondary:hover {
  background: linear-gradient(180deg, var(--warm-400), var(--warm-500));
}

.chart-bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.chart-bar:hover .chart-bar-value {
  opacity: 1;
}

.chart-bar-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* 饼图模拟 */
.pie-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.pie-chart {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
}

.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.pie-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.pie-legend-value {
  margin-left: auto;
  font-weight: 600;
  color: var(--text-primary);
}

/* 排行榜 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num { background: linear-gradient(135deg, #FCD34D, #F59E0B); color: white; }
.rank-item:nth-child(2) .rank-num { background: linear-gradient(135deg, #D1D5DB, #9CA3AF); color: white; }
.rank-item:nth-child(3) .rank-num { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; }

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-bar-bg {
  height: 6px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  margin-top: 4px;
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-400), var(--secondary-400));
  border-radius: var(--radius-full);
}

.rank-amount {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--warm-600);
  flex-shrink: 0;
}

/* ===== 我的/个人中心 ===== */
.profile-header {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  color: white;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.profile-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.profile-name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-role {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-role-badge {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 11px;
}

.profile-setting-icon {
  font-size: 22px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.profile-menu-list {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 16px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  background: var(--gray-50);
}

.profile-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.profile-menu-icon.green { background: var(--primary-100); color: var(--primary-600); }
.profile-menu-icon.teal { background: var(--secondary-100); color: var(--secondary-600); }
.profile-menu-icon.gold { background: var(--warm-100); color: var(--warm-600); }
.profile-menu-icon.blue { background: #DBEAFE; color: #2563EB; }
.profile-menu-icon.gray { background: var(--gray-100); color: var(--gray-600); }
.profile-menu-icon.red { background: #FEE2E2; color: var(--error); }

.profile-menu-text {
  flex: 1;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  font-weight: 500;
}

.profile-menu-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

.profile-menu-value {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* 账号信息表单 */
.info-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  overflow: hidden;
}

.info-card-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-card-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card-body {
  padding: 18px;
}

.info-avatar-upload {
  text-align: center;
  margin-bottom: 20px;
}

.info-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: white;
  position: relative;
  cursor: pointer;
}

.info-avatar:hover::after {
  content: '更换';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
}

.info-avatar-text {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ===== 通用工具类 ===== */
.section-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-icon {
  font-size: 20px;
}

.text-primary { color: var(--primary-600); }
.text-secondary-color { color: var(--secondary-600); }
.text-warm { color: var(--warm-600); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }

/* 加载中动画 */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* 悬浮按钮 (移动端FAB) */
.fab-btn {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
  cursor: pointer;
  z-index: 90;
  transition: all var(--transition-base);
}

.fab-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

@media (min-width: 900px) {
  .fab-btn {
    right: 40px;
    bottom: 40px;
  }
}

/* PC端表格视图 */
@media (min-width: 900px) {
  .table-view {
    display: block;
  }

  .card-view {
    display: none;
  }
}

@media (max-width: 899px) {
  .table-view {
    display: none;
  }

  .card-view {
    display: block;
  }
}
