/**
 * 私域聊单业务后台管理系统 - 样式文件 (科技感主题 v2.0)
 * 设计理念：现代化、科技感、赛博朋克风格
 */

/* 全局样式变量 - 科技感配色方案 */
:root {
  /* 主色调 - 霓虹蓝/紫渐变 */
  --primary-color: #0f172a;
  --primary-dark: #020617;
  --primary-light: #1e293b;
  
  /* 科技感强调色 */
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  
  /* 渐变色 */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-tech: linear-gradient(135deg, #00f5ff 0%, #0066ff 50%, #6600ff 100%);
  
  /* 语义化颜色 */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  
  /* 中性色 */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  
  /* 背景色 */
  --light-bg: #f8fafc;
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
  --sidebar-bg: #0f172a;
  
  /* 阴影效果 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-neon: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 40px rgba(59, 130, 246, 0.2);
  --shadow-glow: 0 0 15px rgba(139, 92, 246, 0.4);
  
  /* 动画参数 */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 边框圆角 */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* 玻璃态效果 */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-backdrop: blur(10px);
}

/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--neutral-800);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 添加页面加载动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: fadeIn 0.5s ease-out;
}

.container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}

/* 侧边栏样式 - 科技感暗色主题 */
.sidebar {
  width: 250px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  height: 100vh;
  position: fixed;
  transition: var(--transition);
  z-index: 100;
  border-right: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 2px 0 20px rgba(6, 182, 212, 0.1);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  position: relative;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.sidebar-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.sidebar-menu {
  padding: 1rem 0;
}

.sidebar-menu-item {
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

.sidebar-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--gradient-cyan);
  transform: scaleY(0);
  transition: var(--transition);
}

.sidebar-menu-item:hover {
  background: rgba(6, 182, 212, 0.1);
  color: #ffffff;
  transform: translateX(4px);
}

.sidebar-menu-item:hover::before {
  transform: scaleY(1);
}

.sidebar-menu-item.active {
  background: rgba(6, 182, 212, 0.2);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.sidebar-menu-item.active::before {
  transform: scaleY(1);
}

.sidebar-menu-item i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
  transition: var(--transition);
}

.sidebar-menu-item:hover i,
.sidebar-menu-item.active i {
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
}

/* 主内容区样式 */
.main-content {
  margin-left: 250px;
  flex: 1;
  padding: 0;
  width: calc(100vw - 250px);
  max-width: calc(100vw - 250px);
  overflow-x: hidden;
  transition: var(--transition);
}

/* 顶部导航栏样式 - 玻璃态效果 */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
  position: fixed;
  top: 0;
  right: 0;
  left: 250px;
  z-index: 99;
  transition: var(--transition);
}

.top-nav:hover {
  box-shadow: 0 4px 30px rgba(6, 182, 212, 0.15);
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-nav-left h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
  background-color: var(--light-bg);
}

.mobile-menu-btn:active {
  background-color: #E5E7EB;
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
  }
}

.top-nav-right {
  display: flex;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  position: relative;
}

.user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.user-info span {
  font-weight: 500;
}

/* 用户下拉菜单样式 */
#user-menu-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

#user-menu-button:hover {
  background-color: #F3F4F6;
}

#user-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 12rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #E5E7EB;
  z-index: 1000;
  animation: dropdown-fade-in 0.2s ease-out;
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#user-dropdown-menu.hidden {
  display: none;
}

#user-dropdown-menu a,
#user-dropdown-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

#user-dropdown-menu a:hover,
#user-dropdown-menu button:hover {
  background-color: #F3F4F6;
}

#user-dropdown-menu button:hover {
  background-color: #FEE2E2;
}

#user-dropdown-menu i {
  margin-right: 0.75rem;
  width: 1rem;
  text-align: center;
}

#logout-button {
  color: #DC2626;
  border-top: 1px solid #E5E7EB;
}

#logout-button:hover {
  background-color: #FEE2E2;
}


/* 内容区域样式 */
.content,
.content-area {
  margin-top: 70px;
  padding: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

/* 卡片样式 - 现代化设计 */
.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.1);
  transition: var(--transition);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cyan);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.card-footer {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
}

/* 数据卡片样式 */
.data-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1280px) {
  .data-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .data-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .data-cards {
    grid-template-columns: 1fr;
  }
}

.data-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.data-card-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.data-card-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.data-card-label {
  color: var(--neutral-color);
  font-size: 0.875rem;
}

/* 汇总项样式（用于投手/销售数据管理的筛选汇总）*/
.summary-item {
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.summary-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.summary-item .text-sm {
  color: var(--neutral-color);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.summary-item .text-xl {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}


/* 表格样式 */
.table-container {
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  box-sizing: border-box;
  table-layout: fixed;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table th {
  font-weight: 600;
  color: var(--neutral-color);
  background-color: #F9FAFB;
  white-space: nowrap;
}

.sort-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.25rem;
  margin-left: 0.25rem;
  color: #9CA3AF;
  font-size: 0.875rem;
  transition: color 0.2s;
  vertical-align: middle;
}

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

.sort-btn.active {
  color: var(--primary-color);
  font-weight: bold;
}

.sort-icon {
  display: inline-block;
  line-height: 1;
}

.table tr:hover {
  background-color: #F3F4F6;
}

.table-actions {
  display: flex;
  gap: 0.25rem;
  justify-content: center; /* 居中对齐 */
  align-items: center;
}

.table-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.25rem;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.table-actions .edit-btn {
  color: var(--primary-color);
}

.table-actions .delete-btn {
  color: var(--danger-color);
}

.table-actions .edit-btn:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.table-actions .delete-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

/* 移动端表格优化 */
@media (max-width: 768px) {
  .table-container {
    overflow-x: auto;
  }
  
  .table {
    table-layout: auto !important;
    min-width: max-content;
  }
  
  .table th,
  .table td {
    padding: 0.5rem 0.375rem;
    font-size: 0.875rem;
  }
  
  .table-actions {
    gap: 0.25rem;
  }
  
  .table-actions button {
    padding: 0.25rem 0.375rem;
    font-size: 0.75rem;
  }
  
  .table-actions .edit-btn i,
  .table-actions .delete-btn i {
    margin-right: 0.25rem;
  }
}

/* 表单样式 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius);
  font-size: 0.938rem;
  transition: var(--transition);
  background: #ffffff;
  color: var(--neutral-800);
}

.form-control:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), 0 0 20px rgba(6, 182, 212, 0.2);
  background: #ffffff;
}

.form-control::placeholder {
  color: var(--neutral-400);
}

/* input-field 样式（form-control 的别名） */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius);
  font-size: 0.938rem;
  transition: var(--transition);
  background: #ffffff;
  color: var(--neutral-800);
}

.input-field:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), 0 0 20px rgba(6, 182, 212, 0.2);
  background: #ffffff;
}

.input-field::placeholder {
  color: var(--neutral-400);
}

/* 按钮样式 - 科技感设计 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.938rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn i {
  margin-right: 0.5rem;
  transition: var(--transition);
}

.btn:hover i {
  transform: scale(1.1);
}

.btn-primary {
  background: var(--gradient-cyan);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 6px 25px rgba(100, 116, 139, 0.5);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  position: relative;
}

.btn-outline::before {
  background: var(--gradient-cyan);
  opacity: 0;
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.btn-outline:hover::before {
  opacity: 1;
}

/* 图标按钮样式 */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  margin: 0 1px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 1;
  font-size: 0.875rem;
}

.btn-icon:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: scale(1.05);
}

.btn-icon.text-danger {
  color: var(--danger-color);
}

.btn-icon.text-danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

/* 带文字的按钮样式 - 确保图标和文字在同一行 */
.btn-icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: none;
  background: transparent;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  margin: 0 4px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-icon-text:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-1px);
}

.btn-icon-text.text-danger {
  color: var(--danger-color);
}

.btn-icon-text.text-danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.btn-icon-text i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* 按钮大小变体 */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* 登录页面样式 - 科技感优化版 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

/* 添加动态背景效果 */
.login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: backgroundShift 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10%, -10%) rotate(5deg); }
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 
              0 0 50px rgba(6, 182, 212, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 450px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  position: relative;
  z-index: 1;
  animation: slideInUp 0.6s ease-out;
}

.login-card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-card-header h2 {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.login-card-header p {
  color: var(--neutral-600);
  font-size: 0.938rem;
  font-weight: 500;
}

.login-form-group {
  margin-bottom: 1.75rem;
}

.login-form-group label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  font-size: 0.938rem;
  color: var(--neutral-800);
  letter-spacing: 0.01em;
}

.login-form-control {
  width: 100%;
  padding: 0.938rem 1rem;
  padding-left: 3rem;
  border: 2px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  background: #ffffff;
  color: var(--neutral-900);
}

.login-form-control::placeholder {
  color: var(--neutral-400);
  font-weight: 400;
}

.login-form-control:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.login-form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15), 
              0 0 20px rgba(6, 182, 212, 0.25);
  background: #ffffff;
}

/* 图标样式增强 */
.login-form-group .relative span {
  color: var(--neutral-500);
  transition: var(--transition);
  z-index: 1;
}

.login-form-group .relative:focus-within span {
  color: var(--accent-cyan);
}

.login-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.063rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: var(--gradient-cyan);
  color: #ffffff;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.login-btn:hover::before {
  width: 300px;
  height: 300px;
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn i {
  font-size: 1.125rem;
}

.error-message {
  color: #dc2626;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 2px solid rgba(239, 68, 68, 0.3);
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  display: none;
  font-weight: 600;
  font-size: 0.938rem;
}

.error-message i {
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

.success-message {
  color: #059669;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid rgba(16, 185, 129, 0.3);
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  display: block;
  font-weight: 600;
  font-size: 0.938rem;
}

.success-message i {
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

/* 响应式优化 */
@media (max-width: 640px) {
  .login-card {
    padding: 2rem 1.5rem;
  }
  
  .login-card-header h2 {
    font-size: 1.75rem;
  }
  
  .login-btn {
    padding: 0.875rem;
    font-size: 1rem;
  }
}

/* 筛选器样式 */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #F9FAFB;
  border-radius: 0.5rem;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.filter-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  background-color: var(--white);
  color: #374151;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-btn:hover {
  background-color: #F3F4F6;
}

.pagination-btn.active {
  background-color: #3b82f6;
  color: var(--white);
  border-color: #3b82f6;
  font-weight: 600;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

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

.modal {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 1001;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border-radius: 0.5rem 0.5rem 0 0;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ef4444;
}

.modal-body {
  padding: 1.5rem;
  background-color: #ffffff;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  background-color: #ffffff;
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Dialog 样式（modal 的别名） */
.dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.dialog-box {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  z-index: 1001;
}

.dialog-header {
  padding: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border-radius: 0.5rem 0.5rem 0 0;
}

.dialog-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.dialog-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6B7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.dialog-close:hover {
  color: #ef4444;
}

.dialog-body {
  padding: 1.5rem;
  background-color: #ffffff;
}

.dialog-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  background-color: #ffffff;
  border-radius: 0 0 0.5rem 0.5rem;
}

/* 图表容器样式 */
.chart-container {
  width: 100%;
  max-width: 100%;
  height: 300px;
  margin-bottom: 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .sidebar {
    width: 0;
    overflow: hidden;
  }
  
  .main-content {
    margin-left: 0;
    width: 100vw;
    max-width: 100vw;
  }
  
  .top-nav {
    left: 0;
    width: 100vw;
  }
  
  .data-cards {
    grid-template-columns: 1fr;
  }
}

/* 中等屏及以下：支持可展开的移动侧边栏和遮罩层 */
@media (max-width: 1024px) {
  .sidebar {
    left: -250px;
    transition: left 0.3s ease;
    width: 250px;
  }

  .sidebar.mobile-open {
    left: 0;
  }

  /* 顶部导航与主内容不再保留侧边栏左侧偏移 */
  .main-content {
    margin-left: 0;
    width: 100vw;
    max-width: 100vw;
  }

  .top-nav {
    left: 0;
    width: 100vw;
  }

  .content {
    width: 100%;
    max-width: 100%;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 95;
  }

  .sidebar-overlay.show {
    display: block;
  }
}

/* 移动端进一步压缩间距 */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .card-header h3 {
    font-size: 1rem;
  }
  
  /* 表格容器底部留白，防止滚动时重叠 */
  .table-container {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .data-card-value {
    font-size: 1.25rem;
  }

  .data-card {
    padding: 0.75rem;
  }

  .table th, .table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .chart-container {
    height: 220px;
  }

  .modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .top-nav {
    padding: 0.5rem 1rem;
  }
}

/* 状态提示样式 */
.status {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

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

.status-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.status-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* 面包屑导航样式 */
.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb-item {
  color: var(--neutral-color);
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: #D1D5DB;
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* 通知提示样式 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #ffffff !important;
  box-shadow: var(--shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  opacity: 1 !important;
}

.notification.show {
  transform: translateX(0);
  opacity: 1 !important;
  background-color: #ffffff !important;
}

.notification-success {
  border-left: 4px solid var(--success-color);
}

.notification-error {
  border-left: 4px solid var(--danger-color);
}

.notification-warning {
  border-left: 4px solid var(--warning-color);
}

.notification-info {
  border-left: 4px solid var(--primary-color);
}

.notification-icon {
  font-size: 1.25rem;
}

.notification-success .notification-icon {
  color: var(--success-color);
}

.notification-error .notification-icon {
  color: var(--danger-color);
}

.notification-warning .notification-icon {
  color: var(--warning-color);
}

.notification-info .notification-icon {
  color: var(--primary-color);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.notification-message {
  font-size: 0.875rem;
  color: var(--neutral-color);
}

.notification-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neutral-color);
}

/* 加载动画样式 */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

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

/* 数据为空样式 */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--neutral-color);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #D1D5DB;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* 卡片统计样式 */
.stat-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.stat-card-icon-primary {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.stat-card-icon-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.stat-card-icon-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.stat-card-icon-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.stat-card-content {
  flex: 1;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--neutral-color);
}

/* 简化版统计卡片样式（用于产品管理等页面） */
.stat-label {
  font-size: 0.875rem;
  color: var(--neutral-color);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* 文本颜色辅助类 */
.text-primary {
  color: var(--primary-color) !important;
}

.text-success {
  color: var(--success-color) !important;
}

.text-warning {
  color: var(--warning-color) !important;
}

.text-danger {
  color: var(--danger-color) !important;
}

.text-neutral {
  color: var(--neutral-color) !important;
}

.text-muted {
  color: #6B7280 !important;
}

/* 标签样式 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* 进度条样式 */
.progress {
  height: 8px;
  background-color: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.progress-bar-primary {
  background-color: var(--primary-color);
}

.progress-bar-success {
  background-color: var(--success-color);
}

.progress-bar-warning {
  background-color: var(--warning-color);
}

.progress-bar-danger {
  background-color: var(--danger-color);
}

/* 标签页样式 */
.tabs {
  display: flex;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

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

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

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

/* 开关样式 */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D1D5DB;
  transition: var(--transition);
  border-radius: 24px;
}

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

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* 提示工具样式 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: #374151;
  color: var(--white);
  text-align: center;
  border-radius: 0.375rem;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.75rem;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* 卡片网格样式 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  /* 移动端优化 */
  body {
    font-size: 14px;
  }
  
  .content {
    padding: 0.75rem;
    width: 100vw;
    max-width: 100vw;
  }
  
  /* 表单网格优化 */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  
  /* 卡片间距 */
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  /* 按钮组优化 */
  .flex {
    flex-wrap: wrap;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
  
  /* 表格响应式 */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    font-size: 0.8rem;
    min-width: max-content;
    width: auto;
  }
  
  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
  }
  
  /* 数据卡片 */
  .data-card {
    min-height: auto;
  }
  
  .data-card-value {
    font-size: 1.25rem;
  }
  
  .data-card-label {
    font-size: 0.75rem;
  }
  
  /* 面包屑导航 */
  .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  
  /* 表单控件 */
  .form-control,
  .form-select {
    font-size: 14px;
    padding: 0.5rem;
  }
  
  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }
  
  /* 模态框 */
  .modal {
    width: 95vw;
    max-width: 95vw;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-header {
    padding: 0.75rem 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 0.75rem 1rem;
  }
  
  /* 分页 */
  .pagination {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .pagination button {
    padding: 0.25rem 0.5rem;
    min-width: 32px;
  }
  
  /* 顶部导航 */
  .top-nav {
    padding: 0.5rem 0.75rem;
  }
  
  .top-nav h2 {
    font-size: 1.1rem;
  }
  
  /* 汇总项 */
  .summary-item {
    padding: 0.75rem;
  }
  
  .summary-item .text-xl {
    font-size: 1.25rem;
  }
  
  /* 图表容器 */
  .chart-container {
    height: 250px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .content {
    padding: 0.5rem;
  }
  
  /* 移动端表格字体和间距优化 */
  .table th, .table td {
    padding: 0.4rem 0.3rem;
    font-size: 0.8rem;
  }

  .card {
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
  }
  
  .card-header {
    padding: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .card-header .flex {
    width: 100%;
    justify-content: flex-start;
  }
  
  .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  .table {
    font-size: 0.75rem;
  }
  
  .table th,
  .table td {
    padding: 0.4rem 0.2rem;
  }
  
  .form-group {
    margin-bottom: 0.75rem;
  }
  
  .breadcrumb-item {
    font-size: 0.75rem;
  }
  
  .modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  
  .top-nav h2 {
    font-size: 1rem;
  }
  
  .data-card-value {
    font-size: 1.1rem;
  }
  
  .summary-item .text-xl {
    font-size: 1.1rem;
  }
}

/* 横屏优化 */
@media (max-height: 600px) and (orientation: landscape) {
  .sidebar {
    height: 100vh;
    overflow-y: auto;
  }
  
  .modal {
    max-height: 95vh;
    overflow-y: auto;
  }
}

/* 订单状态徽章 */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pending {
  background-color: #FEF3C7;
  color: #92400E;
}

.status-shipped {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.status-in-transit {
  background-color: #D1FAE5;
  color: #065F46;
}

.status-delivered {
  background-color: #E0E7FF;
  color: #3730A3;
}

/* 快递单号样式 */
.tracking-number {
  font-family: monospace;
  font-weight: 500;
  color: #059669;
}

/* 工具类 - Grid布局 */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* 工具类 - Flexbox */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

/* 工具类 - 间距 */
.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

/* 工具类 - 边距 */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }

/* 工具类 - 内边距 */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* 工具类 - 文本 */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

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

/* 工具类 - 宽度 */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* 工具类 - 高度 */
.h-full { height: 100%; }
.h-auto { height: auto; }

/* 工具类 - 显示 */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* 响应式Grid布局 */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Position utilities */
.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-y-0 {
  top: 0;
  bottom: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

/* Padding left utilities */
.pl-3 {
  padding-left: 0.75rem;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pr-3 {
  padding-right: 0.75rem;
}

/* Pointer events */
.pointer-events-none {
  pointer-events: none;
}

/* Z-index */
.z-10 {
  z-index: 10;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Gradient utilities */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-primary\/5 {
  --tw-gradient-from: rgba(59, 130, 246, 0.05);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.from-primary {
  --tw-gradient-from: #3b82f6;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.to-blue-600 {
  --tw-gradient-to: #2563eb;
}

.to-blue-500\/5 {
  --tw-gradient-to: rgba(59, 130, 246, 0.05);
}

/* Button size utilities */
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Transform utilities */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:text-primary {
  color: #3b82f6;
}

/* Transition utilities */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

/* Truncate text */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Min width */
.min-w-0 {
  min-width: 0;
}

/* Border radius */
.rounded-xl {
  border-radius: 0.75rem;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Font weight */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.font-semibold {
  font-weight: 600;
}

/* Responsive padding */
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

/* List style */
.list-disc {
  list-style-type: disc;
}

/* Margin left for lists */
.ml-5 {
  margin-left: 1.25rem;
}

.ml-6 {
  margin-left: 1.5rem;
}

/* Max width utilities */
.max-w-3xl {
  max-width: 48rem;
}

/* ========================================
   用户信息区域样式
   ======================================== */

/* 清除缓存按钮 */
.cache-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  white-space: nowrap;
}

.cache-clear-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.cache-clear-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.cache-icon {
  width: 16px;
  height: 16px;
  animation: none;
}

.cache-clear-btn:hover .cache-icon {
  animation: rotate-360 0.6s ease-in-out;
}

@keyframes rotate-360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 用户菜单按钮 */
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-menu-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-info-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

.user-role {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.25;
}

.user-menu-arrow {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.user-menu-btn:hover .user-menu-arrow {
  color: #6b7280;
}

/* 响应式：小屏幕隐藏清除缓存文字 */
@media (max-width: 640px) {
  .cache-clear-btn span {
    display: none;
  }
  
  .cache-clear-btn {
    padding: 0.5rem;
  }
}

/* ========================================
   个人信息页面新布局样式
   ======================================== */

/* 顶部横幅区域 */
.profile-banner {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.profile-banner-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.profile-banner-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* 头像容器 */
.profile-avatar-container {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 用户基本信息 */
.profile-header {
  padding: 80px 2rem 1.5rem;
  text-align: center;
  background: #fff;
}

.profile-name-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.profile-name {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

/* 详细信息区域 */
.profile-details {
  padding: 0 2rem 2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 信息分组 */
.profile-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
}

.profile-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.profile-section-header i {
  font-size: 1.25rem;
  color: #667eea;
}

.profile-section-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

/* 信息网格 */
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: #e5e7eb;
}

.profile-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
}

.profile-info-item-full {
  grid-column: 1 / -1;
}

.profile-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-info-icon i {
  font-size: 1.125rem;
  color: #667eea;
}

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

.profile-info-content label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.profile-info-content p {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  word-break: break-word;
}

/* 响应式 */
@media (max-width: 768px) {
  .profile-banner {
    height: 150px;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  .profile-avatar-container {
    bottom: -50px;
  }
  
  .profile-header {
    padding: 70px 1rem 1rem;
  }
  
  .profile-name {
    font-size: 1.5rem;
  }
  
  .profile-details {
    padding: 0 1rem 1rem;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   修改密码页面样式
   ======================================== */

/* 顶部横幅 */
.password-banner {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.password-banner-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.password-banner-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* 密码图标 */
.password-icon-container {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.password-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 标题区域 */
.password-header {
  padding: 60px 2rem 1.5rem;
  text-align: center;
  background: #fff;
}

.password-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.password-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* 表单容器 */
.password-form-container {
  padding: 0 2rem 2rem;
  background: #fff;
}

.password-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 表单分组 */
.password-form-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
}

.password-form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 输入框包装器 */
.password-input-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.password-input-wrapper:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 输入框图标 */
.password-input-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.password-input-icon i {
  font-size: 1.125rem;
  color: #667eea;
}

/* 输入框内容 */
.password-input-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.password-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.password-input {
  width: 100%;
  padding: 0.625rem 0;
  font-size: 1rem;
  color: #111827;
  background: transparent;
  border: none;
  border-bottom: 2px solid #e5e7eb;
  outline: none;
  transition: border-color 0.2s ease;
}

.password-input:focus {
  border-bottom-color: #667eea;
}

.password-input::placeholder {
  color: #9ca3af;
}

.password-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.password-hint i {
  font-size: 0.875rem;
}

/* 密码要求提示 */
.password-requirements {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
}

.password-requirements-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 0.75rem;
}

.password-requirements-header i {
  font-size: 1rem;
}

.password-requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.password-requirements-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.813rem;
  color: #374151;
  line-height: 1.5;
}

.password-requirements-list li i {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  color: #10b981;
  flex-shrink: 0;
}

.password-example {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(102, 126, 234, 0.15);
}

.password-example i {
  color: #f59e0b !important;
}

.password-example code {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-radius: 0.375rem;
  font-family: 'Courier New', monospace;
  font-size: 0.813rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

/* 提交按钮 */
.password-form-actions {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.password-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.password-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.password-submit-btn:active {
  transform: translateY(0);
}

.password-submit-btn i {
  font-size: 1.125rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .password-banner {
    height: 120px;
  }
  
  .password-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  .password-icon-container {
    bottom: -35px;
  }
  
  .password-header {
    padding: 50px 1rem 1rem;
  }
  
  .password-title {
    font-size: 1.5rem;
  }
  
  .password-form-container {
    padding: 0 1rem 1.5rem;
  }
  
  .password-form-section {
    padding: 1rem;
  }
  
  .password-input-wrapper {
    padding: 1rem;
  }
  
  .password-submit-btn {
    width: 100%;
    justify-content: center;
  }
}



/* ========================================
   科技感增强样式 v2.0
   ======================================== */

/* 霓虹光效动画 */
@keyframes neonPulse {
  0%, 100% { 
    box-shadow: 0 0 5px rgba(6, 182, 212, 0.4), 
                0 0 10px rgba(6, 182, 212, 0.3), 
                0 0 15px rgba(6, 182, 212, 0.2); 
  }
  50% { 
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6), 
                0 0 20px rgba(6, 182, 212, 0.4), 
                0 0 30px rgba(6, 182, 212, 0.3); 
  }
}

/* 渐入动画 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* 旋转动画 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 数据卡片增强 */
.data-card {
  animation: slideInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.data-card:nth-child(1) { animation-delay: 0.1s; }
.data-card:nth-child(2) { animation-delay: 0.2s; }
.data-card:nth-child(3) { animation-delay: 0.3s; }
.data-card:nth-child(4) { animation-delay: 0.4s; }

.data-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-cyan);
  border-radius: var(--radius-lg);
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.data-card:hover::before {
  opacity: 0.2;
}

/* 表格增强 */
.table {
  animation: slideInUp 0.6s ease-out;
}

table thead tr {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

table tbody tr {
  transition: var(--transition);
}

table tbody tr:hover {
  background: rgba(6, 182, 212, 0.05);
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

/* 徽章增强 */
.badge {
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.badge:hover::before {
  left: 100%;
}

/* 加载动画 */
.loading-spinner {
  animation: spin 1s linear infinite;
}

/* 用户头像增强 */
.user-avatar,
.profile-avatar {
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
              var(--gradient-cyan) border-box;
  transition: var(--transition);
}

.user-avatar:hover,
.profile-avatar:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

/* 输入框聚焦增强 */
input:focus,
select:focus,
textarea:focus {
  animation: neonPulse 2s ease-in-out infinite;
}

/* Tooltip 增强 */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  color: white;
  font-size: 0.875rem;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(6, 182, 212, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-cyan);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-purple);
}

/* 选中文本样式 */
::selection {
  background: rgba(6, 182, 212, 0.3);
  color: var(--neutral-900);
}

::-moz-selection {
  background: rgba(6, 182, 212, 0.3);
  color: var(--neutral-900);
}

/* 链接增强 */
a {
  position: relative;
  transition: var(--transition);
}

a:not(.btn):not(.sidebar-menu-item)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-cyan);
  transition: var(--transition);
}

a:not(.btn):not(.sidebar-menu-item):hover::after {
  width: 100%;
}

/* 模态框增强 */
.modal {
  animation: slideInUp 0.3s ease-out;
}

.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 响应式增强 - 保持科技感 */
@media (max-width: 768px) {
  :root {
    --shadow-neon: 0 0 10px rgba(6, 182, 212, 0.3);
  }
  
  .card:hover {
    transform: translateY(-1px);
  }
  
  .btn:hover {
    transform: translateY(-1px);
  }
}

/* 打印样式优化 */
@media print {
  body {
    background: white;
  }
  
  .sidebar,
  .top-nav,
  .btn,
  [data-tooltip]::after {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}

/* 可访问性增强 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 暗色模式支持（预留） */
@media (prefers-color-scheme: dark) {
  /* 未来可以在这里添加暗色模式样式 */
}

/* 表格基础样式优化 - 防止内容重叠 */
table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

/* 表格单元格默认样式 - 允许内容换行 */
table td,
table th {
  padding: 0.75rem;
  vertical-align: top;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 表格头部 */
table th {
  white-space: nowrap;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.5);
}

/* 不同列的宽度优化 */
table th:nth-child(1),  /* 日期 */
table td:nth-child(1) {
  width: 95px;
  white-space: nowrap;
}

table th:nth-child(2),  /* 销售/投手 */
table td:nth-child(2) {
  width: 80px;
  white-space: nowrap;
}

table th:nth-child(3),  /* 主页 - 给更多空间 */
table td:nth-child(3) {
  width: auto;
  min-width: 150px;
  max-width: 250px;
}

table th:nth-child(4),  /* 国家 */
table td:nth-child(4) {
  width: 60px;
  white-space: nowrap;
  text-align: center;
}

table th:nth-child(5),  /* 订单数/渠道 */
table td:nth-child(5) {
  width: 80px;
  white-space: nowrap;
  text-align: center;
}

table th:nth-child(6),  /* 销售金额/消费金额 */
table td:nth-child(6) {
  width: 100px;
  white-space: nowrap;
  text-align: right;
}

table th:nth-child(7),  /* 订单类型/加粉数 */
table td:nth-child(7) {
  width: 90px;
  white-space: nowrap;
  text-align: center;
}

table th:nth-child(8),  /* 录入时间/成本 */
table td:nth-child(8) {
  width: 135px;
  white-space: nowrap;
}

table th:nth-child(9),  /* 操作/录入时间 */
table td:nth-child(9) {
  width: 135px;
  white-space: nowrap;
}

/* 操作列特殊处理 - 不换行 */
table td:last-child,
table th:last-child {
  white-space: nowrap;
  width: 120px;
  text-align: center;
}

/* 表格操作按钮容器 - 防止换行 */
.table-actions,
td .btn-icon,
td .btn-icon-text,
.action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

/* 操作按钮样式 */
table .btn-icon,
table .btn-icon-text {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 1px;
  font-size: 0.875rem;
  width: 28px;
  height: 28px;
}

/* 长文本列允许换行（如有需要） */
table td.allow-wrap,
table th.allow-wrap {
  white-space: normal;
  max-width: 300px;
}

/* ===== 产品管理表格特殊样式 ===== */
#products-tbody ~ thead th:nth-child(1),
#products-tbody td:nth-child(1) {
  width: 50px !important;
  text-align: center;
}

#products-tbody ~ thead th:nth-child(2),
#products-tbody td:nth-child(2) {
  width: 120px !important;
  white-space: nowrap;
}

#products-tbody ~ thead th:nth-child(3),
#products-tbody td:nth-child(3) {
  width: 120px !important;
  white-space: nowrap;
}

#products-tbody ~ thead th:nth-child(4),
#products-tbody td:nth-child(4) {
  width: auto !important;
  min-width: 200px;
  max-width: 350px;
}

#products-tbody ~ thead th:nth-child(5),
#products-tbody td:nth-child(5) {
  width: 90px !important;
  text-align: center;
  white-space: nowrap;
}

#products-tbody ~ thead th:nth-child(6),
#products-tbody td:nth-child(6) {
  width: 145px !important;
  white-space: nowrap;
}

#products-tbody ~ thead th:nth-child(7),
#products-tbody td:nth-child(7) {
  width: 145px !important;
  white-space: nowrap;
}

#products-tbody ~ thead th:nth-child(8),
#products-tbody td:nth-child(8) {
  width: 80px !important;
  text-align: center;
}

/* 产品管理表格列宽 - 使用百分比以适应不同屏幕 */
table:has(#products-tbody) thead th:nth-child(1) { width: 4% !important; text-align: center; }  /* ID */
table:has(#products-tbody) thead th:nth-child(2) { width: 16% !important; white-space: nowrap; }  /* 英文品名 */
table:has(#products-tbody) thead th:nth-child(3) { width: 12% !important; white-space: nowrap; }  /* 中文品名 */
table:has(#products-tbody) thead th:nth-child(4) { width: 7% !important; text-align: center; white-space: nowrap; }  /* 国家 */
table:has(#products-tbody) thead th:nth-child(5) { width: 16% !important; white-space: nowrap; }  /* 配货信息 */
table:has(#products-tbody) thead th:nth-child(6) { width: 8% !important; text-align: center; white-space: nowrap; }  /* 库存数量 */
table:has(#products-tbody) thead th:nth-child(7) { width: 14% !important; white-space: nowrap; }  /* 创建时间 */
table:has(#products-tbody) thead th:nth-child(8) { width: 14% !important; white-space: nowrap; }  /* 更新时间 */
table:has(#products-tbody) thead th:nth-child(9) { width: 9% !important; text-align: center; }  /* 操作 */

/* 移动端产品表格 - 不换行，紧凑显示，允许横向滚动 */
@media (max-width: 768px) {
  /* 覆盖所有带内联 style 的 th 和 tbody 的 td */
  table:has(#products-tbody) thead th[style],
  table:has(#products-tbody) thead th,
  table:has(#products-tbody) tbody td {
    width: auto !important;
    padding: 0.4rem 0.3rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }

  /* 表格在移动端自动布局，宽度由内容决定 */
  table:has(#products-tbody) {
    table-layout: auto !important;
    width: auto !important;
  }

  /* 允许横向滚动查看完整内容 */
  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== 主页管理表格特殊样式 ===== */
table:has(#page-data-table) thead th:nth-child(1) { width: 180px !important; white-space: nowrap; }
table:has(#page-data-table) thead th:nth-child(2) { width: auto !important; min-width: 250px; max-width: 450px; word-break: break-all; }
table:has(#page-data-table) thead th:nth-child(3) { width: 60px !important; text-align: center; white-space: nowrap; }
table:has(#page-data-table) thead th:nth-child(4) { width: 90px !important; white-space: nowrap; }
table:has(#page-data-table) thead th:nth-child(5) { width: 110px !important; white-space: nowrap; }
table:has(#page-data-table) thead th:nth-child(6) { width: 120px !important; text-align: center; }

#page-data-table td:nth-child(1) { width: 180px !important; white-space: nowrap; }
#page-data-table td:nth-child(2) { width: auto !important; min-width: 250px; max-width: 450px; word-break: break-all; }
#page-data-table td:nth-child(3) { width: 60px !important; text-align: center; white-space: nowrap; }
#page-data-table td:nth-child(4) { width: 90px !important; white-space: nowrap; }
#page-data-table td:nth-child(5) { width: 110px !important; white-space: nowrap; }
#page-data-table td:nth-child(6) { width: 120px !important; text-align: center; }

/* ===== 订单管理表格特殊样式 ===== */
table:has(#order-table-body) thead th:nth-child(1) { width: 95px !important; white-space: nowrap; }
table:has(#order-table-body) thead th:nth-child(2) { width: 140px !important; white-space: nowrap; }
table:has(#order-table-body) thead th:nth-child(3) { width: 60px !important; text-align: center; white-space: nowrap; }
table:has(#order-table-body) thead th:nth-child(4) { width: auto !important; min-width: 150px; max-width: 220px; }
table:has(#order-table-body) thead th:nth-child(5) { width: 90px !important; white-space: nowrap; text-align: center; }
table:has(#order-table-body) thead th:nth-child(6) { width: 90px !important; white-space: nowrap; text-align: center; }
table:has(#order-table-body) thead th:nth-child(7) { width: 130px !important; white-space: nowrap; text-align: center; }
table:has(#order-table-body) thead th:nth-child(8) { width: 120px !important; text-align: center; }
table:has(#order-table-body) thead th:nth-child(9) { width: 140px !important; text-align: center; }

/* 订单表格td基础样式 */
#order-table-body td:nth-child(1) { width: 95px !important; white-space: nowrap; }
#order-table-body td:nth-child(3) { width: 60px !important; text-align: center; white-space: nowrap; }
#order-table-body td:nth-child(4) { width: auto !important; min-width: 150px; max-width: 220px; }
#order-table-body td:nth-child(5) { width: 90px !important; white-space: nowrap; text-align: center; }
#order-table-body td:nth-child(6) { width: 90px !important; white-space: nowrap; text-align: center; }
#order-table-body td:nth-child(8) { width: 120px !important; text-align: center; }
#order-table-body td:nth-child(9) { width: 140px !important; text-align: center; }

/* 客户名称列 - 使用省略号 */
#order-table-body td:nth-child(2) { 
  width: 140px !important; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* 快递单号列 - 特殊处理，支持显示和编辑 */
#order-table-body td:nth-child(7) { 
  width: 130px !important; 
  text-align: center;
  position: relative;
  padding: 0.5rem 0.25rem !important;
}

/* 快递单号文本显示 - 使用省略号 */
#order-table-body td:nth-child(7) span {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* 快递单号编辑按钮容器 */
#order-table-body td:nth-child(7) .tracking-number-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.25rem;
}

/* 快递单号显示区域 */
#order-table-body td:nth-child(7) .tracking-number-display {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  padding-right: 0.25rem;
}

/* 快递单号编辑按钮 - 固定在右侧 */
#order-table-body td:nth-child(7) .btn-icon {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  min-width: auto;
}

/* ===== 仪表盘主页开单数统计表格特殊样式 ===== */
table:has(#page-orders-table) {
  table-layout: fixed;
  width: 100%;
}

/* 主页开单数统计表格 - thead */
table:has(#page-orders-table) thead th:nth-child(1) { width: 140px !important; white-space: nowrap; overflow: visible; }  /* 主页名称 */
table:has(#page-orders-table) thead th:nth-child(2) { width: 85px !important; white-space: nowrap; text-align: center; overflow: visible; }  /* 归属人员 */
table:has(#page-orders-table) thead th:nth-child(3) { width: 75px !important; white-space: nowrap; text-align: center; overflow: visible; }  /* 新单数 */
table:has(#page-orders-table) thead th:nth-child(4) { width: 75px !important; white-space: nowrap; text-align: center; overflow: visible; }  /* 复购数 */
table:has(#page-orders-table) thead th:nth-child(5) { width: 90px !important; white-space: nowrap; text-align: center; overflow: visible; }  /* 总订单数 */
table:has(#page-orders-table) thead th:nth-child(6) { width: 110px !important; white-space: nowrap; text-align: right; overflow: visible; }  /* 主页消费 */
table:has(#page-orders-table) thead th:nth-child(7) { width: 110px !important; white-space: nowrap; text-align: right; overflow: visible; }  /* 新单销售额 */
table:has(#page-orders-table) thead th:nth-child(8) { width: 110px !important; white-space: nowrap; text-align: right; overflow: visible; }  /* 复购销售额 */
table:has(#page-orders-table) thead th:nth-child(9) { width: 110px !important; white-space: nowrap; text-align: right; overflow: visible; }  /* 总销售额 */
table:has(#page-orders-table) thead th:nth-child(10) { width: 85px !important; white-space: nowrap; text-align: center; overflow: visible; }  /* 新单ROI */

/* 主页开单数统计表格 - tbody */
#page-orders-table td:nth-child(1) { 
  width: 140px !important; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  max-width: 140px;
}

#page-orders-table td:nth-child(2) { 
  width: 85px !important; 
  white-space: nowrap; 
  text-align: center;
  overflow: hidden; 
  text-overflow: ellipsis;
}

#page-orders-table td:nth-child(3) { width: 75px !important; white-space: nowrap; text-align: center; }
#page-orders-table td:nth-child(4) { width: 75px !important; white-space: nowrap; text-align: center; }
#page-orders-table td:nth-child(5) { width: 90px !important; white-space: nowrap; text-align: center; font-weight: 600; }
#page-orders-table td:nth-child(6) { width: 110px !important; white-space: nowrap; text-align: right; }
#page-orders-table td:nth-child(7) { width: 110px !important; white-space: nowrap; text-align: right; }
#page-orders-table td:nth-child(8) { width: 110px !important; white-space: nowrap; text-align: right; }
#page-orders-table td:nth-child(9) { width: 110px !important; white-space: nowrap; text-align: right; font-weight: 600; }
#page-orders-table td:nth-child(10) { width: 85px !important; white-space: nowrap; text-align: center; font-weight: 600; color: #10b981; }

/* 主页开单数统计表格 - tfoot汇总行 */
table:has(#page-orders-table) tfoot td {
  white-space: nowrap;
  font-weight: 600;
  background-color: #f8fafc;
  border-top: 2px solid #e2e8f0;
}

table:has(#page-orders-table) tfoot td:nth-child(1) { text-align: left; }
table:has(#page-orders-table) tfoot td:nth-child(2) { text-align: center; }
table:has(#page-orders-table) tfoot td:nth-child(3) { text-align: center; }
table:has(#page-orders-table) tfoot td:nth-child(4) { text-align: center; }
table:has(#page-orders-table) tfoot td:nth-child(5) { text-align: center; color: #0f172a; }
table:has(#page-orders-table) tfoot td:nth-child(6) { text-align: right; }
table:has(#page-orders-table) tfoot td:nth-child(7) { text-align: right; }
table:has(#page-orders-table) tfoot td:nth-child(8) { text-align: right; }
table:has(#page-orders-table) tfoot td:nth-child(9) { text-align: right; color: #0f172a; }
table:has(#page-orders-table) tfoot td:nth-child(10) { text-align: center; color: #10b981; }

/* ===== 人员管理页面标签页优化样式 ===== */
/* 标签页导航容器 */
.border-b.border-gray-200 {
  border-bottom: 2px solid rgba(6, 182, 212, 0.1) !important;
  background: linear-gradient(to right, rgba(6, 182, 212, 0.05), transparent);
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0 1rem;
}

/* 标签页按钮基础样式 */
#tab-users,
#tab-roles {
  position: relative;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  outline: none;
}

/* 标签页图标 */
#tab-users i,
#tab-roles i {
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* 非激活状态悬停效果 */
#tab-users.border-transparent:hover,
#tab-roles.border-transparent:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 0.5rem 0.5rem 0 0;
}

#tab-users.border-transparent:hover i,
#tab-roles.border-transparent:hover i {
  transform: scale(1.1);
}

/* 激活状态样式 */
#tab-users.border-primary,
#tab-roles.border-primary {
  color: #0f172a;
  border-bottom-color: #06b6d4;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.05));
  border-radius: 0.5rem 0.5rem 0 0;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
  position: relative;
}

/* 激活状态的发光效果 */
#tab-users.border-primary::after,
#tab-roles.border-primary::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* 激活状态图标动画 */
#tab-users.border-primary i,
#tab-roles.border-primary i {
  color: #06b6d4;
  transform: scale(1.05);
}

/* 响应式优化 */
@media (max-width: 768px) {
  #tab-users,
  #tab-roles {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  #tab-users i,
  #tab-roles i {
    font-size: 0.875rem;
  }
}

/* ===== 人员管理 - 人员列表表格特殊样式 ===== */
table:has(#user-data-table) {
  table-layout: fixed;
  width: 100%;
}

/* 人员列表表格 - thead */
table:has(#user-data-table) thead th:nth-child(1) { width: 120px !important; white-space: nowrap; }  /* 用户名 */
table:has(#user-data-table) thead th:nth-child(2) { width: 100px !important; white-space: nowrap; text-align: center; }  /* 姓名 */
table:has(#user-data-table) thead th:nth-child(3) { width: 100px !important; white-space: nowrap; text-align: center; }  /* 角色 */
table:has(#user-data-table) thead th:nth-child(4) { width: 100px !important; white-space: nowrap; text-align: center; }  /* 所属组长 */
table:has(#user-data-table) thead th:nth-child(5) { width: 140px !important; white-space: nowrap; text-align: center; }  /* 创建时间 */
table:has(#user-data-table) thead th:nth-child(6) { width: 140px !important; white-space: nowrap; text-align: center; }  /* 操作 */

/* 人员列表表格 - tbody */
#user-data-table td:nth-child(1) { 
  width: 120px !important; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
  font-weight: 600;
  color: #1e293b;
}

#user-data-table td:nth-child(2) { 
  width: 100px !important; 
  white-space: nowrap; 
  text-align: center;
  overflow: hidden; 
  text-overflow: ellipsis;
}

#user-data-table td:nth-child(3) { 
  width: 100px !important; 
  white-space: nowrap; 
  text-align: center;
}

#user-data-table td:nth-child(4) { 
  width: 100px !important; 
  white-space: nowrap; 
  text-align: center;
  overflow: hidden; 
  text-overflow: ellipsis;
}

#user-data-table td:nth-child(5) { 
  width: 140px !important; 
  white-space: nowrap; 
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

#user-data-table td:nth-child(6) { 
  width: 140px !important; 
  white-space: nowrap; 
  text-align: center;
}

/* ===== 人员管理 - 角色列表表格特殊样式 ===== */
table:has(#role-data-table) {
  table-layout: fixed;
  width: 100%;
}

/* 角色列表表格 - thead */
table:has(#role-data-table) thead th:nth-child(1) { width: 140px !important; white-space: nowrap; }  /* 角色名称 */
table:has(#role-data-table) thead th:nth-child(2) { width: 120px !important; white-space: nowrap; text-align: center; }  /* 角色标识 */
table:has(#role-data-table) thead th:nth-child(3) { width: 120px !important; white-space: nowrap; text-align: center; }  /* 权限数量 */
table:has(#role-data-table) thead th:nth-child(4) { width: 180px !important; white-space: nowrap; text-align: center; }  /* 创建时间 */
table:has(#role-data-table) thead th:nth-child(5) { width: 140px !important; white-space: nowrap; text-align: center; }  /* 操作 */

/* 角色列表表格 - tbody */
#role-data-table td:nth-child(1) { 
  width: 140px !important; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
  font-weight: 600;
  color: #1e293b;
}

#role-data-table td:nth-child(2) { 
  width: 120px !important; 
  white-space: nowrap; 
  text-align: center;
  font-family: 'Courier New', monospace;
  color: #64748b;
  background-color: #f8fafc;
  padding: 0.5rem;
  border-radius: 0.25rem;
}

#role-data-table td:nth-child(3) { 
  width: 120px !important; 
  white-space: nowrap; 
  text-align: center;
  font-weight: 600;
  color: #3b82f6;
}

#role-data-table td:nth-child(4) { 
  width: 180px !important; 
  white-space: nowrap; 
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

#role-data-table td:nth-child(5) { 
  width: 140px !important; 
  white-space: nowrap; 
  text-align: center;
}

/* 角色徽章样式优化 */
#user-data-table .badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   报表页面表格专属样式
   ======================================== */

/* 投手ROI数据表格 - 5列 */
.pitcher-roi-table {
  table-layout: fixed !important;
  width: 100%;
}

.pitcher-roi-table th,
.pitcher-roi-table td { 
  width: 20% !important; /* 默认平均 */
}

/* 投手列较窄 */
.pitcher-roi-table th:nth-child(1),
.pitcher-roi-table td:nth-child(1) {
  width: 15% !important;
}

/* 总消费和总销售额列加宽 */
.pitcher-roi-table th:nth-child(2),
.pitcher-roi-table td:nth-child(2),
.pitcher-roi-table th:nth-child(3),
.pitcher-roi-table td:nth-child(3) {
  width: 25% !important;
}

/* ROI和新单ROI列 */
.pitcher-roi-table th:nth-child(4),
.pitcher-roi-table td:nth-child(4),
.pitcher-roi-table th:nth-child(5),
.pitcher-roi-table td:nth-child(5) {
  width: 17.5% !important;
  text-align: center;
}

.pitcher-roi-table td:nth-child(1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitcher-roi-table td:nth-child(2),
.pitcher-roi-table td:nth-child(3) {
  white-space: nowrap;
}

/* 组长ROI数据表格 - 6列 */
.leader-roi-table {
  table-layout: fixed !important;
  width: 100%;
}

.leader-roi-table th,
.leader-roi-table td { 
  width: 16.66% !important; /* 默认平均 */
}

/* 组长列较窄 */
.leader-roi-table th:nth-child(1),
.leader-roi-table td:nth-child(1) {
  width: 12% !important;
}

/* 下属投手数列 */
.leader-roi-table th:nth-child(2),
.leader-roi-table td:nth-child(2) {
  width: 12% !important;
  text-align: center;
}

/* 总消费和总销售额列加宽 */
.leader-roi-table th:nth-child(3),
.leader-roi-table td:nth-child(3),
.leader-roi-table th:nth-child(4),
.leader-roi-table td:nth-child(4) {
  width: 26% !important;
}

/* ROI和新单ROI列 */
.leader-roi-table th:nth-child(5),
.leader-roi-table td:nth-child(5),
.leader-roi-table th:nth-child(6),
.leader-roi-table td:nth-child(6) {
  width: 12% !important;
  text-align: center;
}

.leader-roi-table td:nth-child(1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-roi-table td:nth-child(3),
.leader-roi-table td:nth-child(4) {
  white-space: nowrap;
}

/* 国家ROI数据表格 - 7列 */
.country-roi-table {
  table-layout: fixed !important;
  width: 100%;
}

.country-roi-table th,
.country-roi-table td { 
  width: 14.28% !important; /* 默认平均 */
}

/* 国家列较窄 */
.country-roi-table th:nth-child(1),
.country-roi-table td:nth-child(1) {
  width: 10% !important;
  text-align: center;
}

/* 总消费和总销售额列加宽 */
.country-roi-table th:nth-child(2),
.country-roi-table td:nth-child(2),
.country-roi-table th:nth-child(3),
.country-roi-table td:nth-child(3) {
  width: 23% !important;
}

/* ROI、新单ROI、新单数、复购数列 */
.country-roi-table th:nth-child(4),
.country-roi-table td:nth-child(4),
.country-roi-table th:nth-child(5),
.country-roi-table td:nth-child(5),
.country-roi-table th:nth-child(6),
.country-roi-table td:nth-child(6),
.country-roi-table th:nth-child(7),
.country-roi-table td:nth-child(7) {
  width: 11% !important;
  text-align: center;
}

.country-roi-table td:nth-child(2),
.country-roi-table td:nth-child(3) {
  white-space: nowrap;
}

/* 按销售人员销售明细表格 - 5列 */
.sales-table {
  table-layout: fixed !important;
  width: 100%;
}

.sales-table th,
.sales-table td { 
  width: 20% !important; /* 平均分配 */
}

.sales-table th:nth-child(2),
.sales-table td:nth-child(2),
.sales-table th:nth-child(4),
.sales-table td:nth-child(4),
.sales-table th:nth-child(5),
.sales-table td:nth-child(5) { 
  text-align: center;
}

.sales-table td:nth-child(1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-table td:nth-child(3) {
  white-space: nowrap;
}

/* 报表页面表格通用样式优化 */
#pitcher-roi-table td,
#leader-roi-table td,
#country-roi-table td,
#sales-table td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
}

/* 确保详情按钮不换行 */
#pitcher-roi-table .btn-icon,
#leader-roi-table .btn-icon,
#country-roi-table .btn-icon,
#sales-table .btn-icon {
  white-space: nowrap !important;
}

/* ========================================
   搜索下拉框和背景工具类
   ======================================== */

/* 背景颜色工具类 - 确保完全不透明 */
.bg-white {
  background-color: #ffffff !important;
  opacity: 1 !important;
}

.bg-blue-50 {
  background-color: #eff6ff !important;
  opacity: 1 !important;
}

.bg-blue-100 {
  background-color: #dbeafe !important;
  opacity: 1 !important;
}

/* 搜索下拉框样式 */
.absolute-dropdown {
  background-color: #ffffff !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}

.absolute-dropdown > div {
  background-color: transparent;
}

.absolute-dropdown > div:hover {
  background-color: #eff6ff !important;
}

/* 下拉框选项激活状态 */
.absolute-dropdown .bg-blue-100 {
  background-color: #dbeafe !important;
}
