/* 设备激活弹窗样式 */
.device-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.device-dialog {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.device-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.device-dialog-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.device-dialog-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: #1f2937;
  background: #f9fafb;
}

.tab-btn.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  background: white;
}

.device-dialog-content {
  padding: 24px;
  max-height: calc(90vh - 160px);
  overflow-y: auto;
}

/* 激活标签页 */
.activate-tab {
  text-align: center;
}

.dialog-tip {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 16px;
}

.device-code-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  text-align: center;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  transition: all 0.2s;
  letter-spacing: 2px;
}

.device-code-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.device-code-input:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

.activate-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.activate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.activate-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.dialog-info {
  margin-top: 24px;
  padding: 16px;
  background: #f0f9ff;
  border-radius: 8px;
  text-align: left;
}

.dialog-info p {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #0369a1;
}

.dialog-info ul {
  margin: 0;
  padding-left: 20px;
  color: #075985;
}

.dialog-info li {
  margin: 4px 0;
  font-size: 14px;
}

/* 状态标签页 */
.status-tab {
  text-align: left;
}

.no-device {
  text-align: center;
  padding: 32px 16px;
}

.no-device p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 16px;
}

.switch-tab-btn {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.switch-tab-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.devices-section, .quota-section {
  margin-bottom: 24px;
}

.devices-section h3, .quota-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.device-card {
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.device-code .label {
  color: #6b7280;
  font-size: 13px;
  margin-right: 8px;
}

.device-code .value {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.quota-device {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.quota-device-code {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px 0;
  font-family: 'Courier New', monospace;
}

.quota-item {
  margin-bottom: 16px;
}

.quota-item:last-child {
  margin-bottom: 0;
}

.quota-name {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.quota-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  transition: width 0.3s ease;
}

.quota-text {
  font-size: 13px;
  color: #6b7280;
}

.quota-remaining {
  color: #10b981;
  font-weight: 500;
}

.quota-exceeded {
  color: #ef4444;
  font-weight: 500;
}

.quota-reset-info {
  padding: 12px;
  background: #fef3c7;
  border-radius: 6px;
  font-size: 13px;
  color: #92400e;
  text-align: center;
}
/* 导入背景修复样式 */
/* 背景割裂修复样式 - 统一所有页面的背景处理 */
/* 确保html和body有统一的背景 */
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary, linear-gradient(135deg, #ffffff 0%, #e3f2fd 30%, #4285f4 100%)) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent !important; /* 使用html的背景 */
  min-height: 100vh;
}
/* 强制覆盖所有可能的背景设置 */
* {
  background-attachment: inherit !important;
}
/* 应用容器背景修复 */
.app-container {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}
/* 主内容区域背景修复 */
.main-content {
  background: transparent;
  width: 100%;
}
.content-area {
  background: transparent;
}
/* 管理员页面背景修复 - 使用!important确保优先级 */
.admin-page-container {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
}
.admin-container {
  background: transparent !important;
  width: 100%;
}
/* 管理员页面特定背景修复 */
.admin-page-container::before {
  display: none !important;
}
.admin-page-container::after {
  display: none !important;
}
/* 用户详情页面背景修复 */
.user-detail-page {
  background: transparent !important;
}
/* 所有可能的管理员页面容器背景修复 */
.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings {
  background: transparent !important;
}
/* 社区页面背景修复 - 使用!important确保优先级 */
.community-page {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
.community-header {
  background: var(--bg-card, rgba(255, 255, 255, 0.95)) !important;
  backdrop-filter: blur(10px);
  margin: 0;
  width: 100%;
}
.community-content {
  background: transparent !important;
}
/* 社区页面特定背景修复 */
.community-page::before {
  display: none !important;
}
.community-page::after {
  display: none !important;
}
/* 系统设置页面背景修复 */
.settings-page {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}
/* 确保所有卡片和容器使用正确的背景 */
.admin-stat-card,
.admin-data-table,
.settings-section,
.project-card,
.user-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
}
/* 全局背景修复 - 确保所有页面容器都使用透明背景 */
.admin-page-container,
.community-page,
.user-detail-page,
.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings,
.settings-page,
.app-container,
.main-content,
.content-area,
.page-container,
.project-page,
.project-detail,
.user-profile,
.system-settings {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}
/* 确保卡片背景与主背景融合 */
.card,
.admin-card,
.project-card,
.user-card,
.settings-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
/* 模态框和弹窗背景修复 */
.modal,
.dialog,
.popup,
.dropdown-menu {
  background: var(--bg-card) !important;
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
}
/* 响应式背景修复 */
@media (max-width: 768px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }
}
@media (max-width: 480px) {
  .admin-page-container {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }
}
/* 导入Tailwind CSS备用样式 */
/* Tailwind CSS 备用样式 - 在CDN加载失败时使用 */
/* 基础重置 */
.min-h-screen { min-height: 100vh; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-white { background-color: #ffffff; }
.text-gray-900 { color: #111827; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-green-500 { color: #10b981; }
.text-red-500 { color: #ef4444; }
.text-yellow-600 { color: #d97706; }
.text-orange-700 { color: #c2410c; }
/* 背景色 */
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-green-100 { background-color: #dcfce7; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-orange-50 { background-color: #fff7ed; }
/* Flexbox */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
/* 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-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Spacing */
.gap-6 { gap: 1.5rem; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }
.gap-2 { gap: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
/* Padding */
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.p-2 { padding: 0.5rem; }
.p-1 { padding: 0.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-4 { padding-right: 1rem; }
/* Margin */
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-10 { margin-left: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
/* Width & Height */
.w-full { width: 100%; }
.w-12 { width: 3rem; }
.w-8 { width: 2rem; }
.w-5 { width: 1.25rem; }
.w-4 { width: 1rem; }
.w-48 { width: 12rem; }
.h-16 { height: 4rem; }
.h-12 { height: 3rem; }
.h-8 { height: 2rem; }
.h-6 { width: 1.5rem; }
.h-5 { height: 1.25rem; }
.h-4 { height: 1rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-xs { max-width: 20rem; }
.min-w-full { min-width: 100%; }
/* Border */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-600 { border-color: #2563eb; }
.border-orange-200 { border-color: #fed7aa; }
/* Border Radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }
/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
/* Typography */
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0px; }
.bottom-8 { bottom: 2rem; }
.right-8 { right: 2rem; }
.right-0 { right: 0px; }
.left-3 { left: 0.75rem; }
.z-50 { z-index: 50; }
/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.table { display: table; }
/* Overflow */
.overflow-hidden { overflow: hidden; }
/* Transform */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.-translate-y-1\/2 { --tw-translate-y: -50%; }
/* Transition */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
/* Focus */
.focus\\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\\:ring-blue-500:focus { --tw-ring-color: #3b82f6; }
.focus\\:border-transparent:focus { border-color: transparent; }
/* Hover */
.hover\\:text-gray-700:hover { color: #374151; }
.hover\\:text-blue-700:hover { color: #1d4ed8; }
.hover\\:text-gray-600:hover { color: #4b5563; }
.hover\\:text-red-600:hover { color: #dc2626; }
.hover\\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\\:bg-orange-100:hover { background-color: #ffedd5; }
/* Disabled */
.disabled\\:opacity-50:disabled { opacity: 0.5; }
.disabled\\:cursor-not-allowed:disabled { cursor: not-allowed; }
/* Responsive */
@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:flex { display: flex; }
  .md\\:block { display: block; }
  .md\\:ml-10 { margin-left: 2.5rem; }
  .md\\:space-x-8 > * + * { margin-left: 2rem; }
}
@media (min-width: 1024px) {
  .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\\:flex-row { flex-direction: row; }
  .lg\\:items-center { align-items: center; }
  .lg\\:justify-between { justify-content: space-between; }
  .lg\\:space-y-0 > * + * { margin-top: 0px; }
  .lg\\:space-x-6 > * + * { margin-left: 1.5rem; }
  .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 640px) {
  .sm\\:flex-row { flex-direction: row; }
  .sm\\:space-y-0 > * + * { margin-top: 0px; }
  .sm\\:space-x-4 > * + * { margin-left: 1rem; }
  .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
/* Table styles */
.divide-y { border-top-width: 1px; }
.divide-gray-200 > * + * { border-top-color: #e5e7eb; }
.whitespace-nowrap { white-space: nowrap; }
.tracking-wider { letter-spacing: 0.05em; }
/* 字体显示优化 - 防止字体加载阻塞渲染 */
@font-face {
  font-family: 'Fallback';
  src: local('Arial'), local('Helvetica'), local('PingFang SC'), local('Microsoft YaHei');
  font-display: block;
}
/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* 防止扩展字体加载导致的白屏 */
body {
  font-family: 
    -apple-system, 
    BlinkMacSystemFont, 
    'Segoe UI', 
    'PingFang SC', 
    'Hiragino Sans GB', 
    'Microsoft YaHei', 
    'Helvetica Neue', 
    Helvetica, 
    Arial, 
    sans-serif;
  font-display: swap;
}
:root {
  --primary-color: #7b1fa2;
  --primary-light: #9c27b0;
  --primary-dark: #4a0072;
  --secondary-color: #03a9f4;
  --text-light: #ffffff;
  --text-dark: #212121;
  --background-light: #f5f5f5;
  --background-dark: #303030;
  --error-color: #f44336;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --border-color: #e0e0e0;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  /* 响应式断点 */
  --breakpoint-xs: 480px;
  --breakpoint-sm: 768px;
  --breakpoint-md: 1024px;
  --breakpoint-lg: 1200px;
  --breakpoint-xl: 1440px;

  /* 响应式间距系统 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* 响应式字体大小 */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* 容器最大宽度 - 优化大屏幕体验 */
  --container-xs: 100%;
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 1200px;
  --container-xl: 1600px;
  --container-xxl: 1920px;
}
/* 浅色主题 */
.light-theme {
  --bg-primary: linear-gradient(135deg, #ffffff 0%, #e3f2fd 30%, #4285f4 100%);
  --bg-card: rgba(255, 255, 255, 0.95);
  --text-primary: #212121;
  --text-secondary: #546e7a;
  --text-accent: #1565c0;
  --border-light: rgba(66, 133, 244, 0.1);
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
}
/* 深色主题 */
.dark-theme {
  --bg-primary: linear-gradient(135deg, #1a1a1a 0%, #2d3748 30%, #1e3a8a 100%);
  --bg-card: rgba(45, 55, 72, 0.95);
  --text-primary: #f7fafc;
  --text-secondary: #a0aec0;
  --text-accent: #63b3ed;
  --border-light: rgba(99, 179, 237, 0.2);
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
}
html {
  background: var(--bg-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary, linear-gradient(135deg, #ffffff 0%, #e3f2fd 30%, #4285f4 100%));
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}
body {
  margin: 0;
  padding: 0; /* 确保没有内边距 */
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: transparent; /* 使用html的背景 */
  min-height: 100vh; /* 确保最小高度为视口高度 */
  color: var(--text-primary);
  transition: color 0.3s ease;
}
code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}
a {
  color: var(--primary-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}
button {
  cursor: pointer;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}
input, textarea, select {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
}
/* 布局样式 */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  margin: 0; /* 移除外边距 */
  padding: 0; /* 移除内边距 */
  background: transparent; /* 使用html的背景 */
}
.main-content {
  flex-grow: 1;
  display: flex;
  padding: 0;
  width: 100%;
  background: transparent;
}
/* 侧边栏已移除，导航功能已移至顶部Header */
/* 应用头部 */
.app-header {
  height: 50px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  color: #1565c0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(66, 133, 244, 0.1);
}
.header-logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--text-accent);
  font-weight: 600;
  transition: color 0.3s ease;
}
.header-logo a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
.header-nav ul {
  display: flex;
  list-style: none;
}
.header-nav li {
  margin-left: 20px;
}
.header-nav a {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.header-nav a:hover {
  color: var(--text-primary);
}
.header-user {
  display: flex;
  align-items: center;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1001;
}
.user-name {
  color: var(--text-accent);
  font-weight: 500;
  font-size: 14px;
  margin-right: 0;
}
.logout-button {
  background: rgba(66, 133, 244, 0.1);
  color: var(--text-accent) !important;
  border: 2px solid rgba(66, 133, 244, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logout-button:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
}
/* 侧边栏样式已移除，导航功能已移至顶部Header */
/* 项目列表页面样式 - 支持主题切换 */
.project-list-page {
  min-height: 100vh;
  background: var(--bg-primary);
  background-attachment: fixed; /* 背景固定，避免滚动时出现空白 */
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  transition: background 0.3s ease;
  margin: 0; /* 移除外边距 */
}
/* 通用页面容器样式 - 确保背景延伸 */
.page-container {
  min-height: 100vh;
  background: var(--bg-primary);
  background-attachment: fixed;
  padding: 2rem;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* 确保所有主要页面容器都有正确的背景 */
.main-content,
.page-wrapper,
.content-wrapper {
  min-height: 100vh;
  background: transparent; /* 透明背景，显示底层渐变 */
  margin: 0;
  padding: 0;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-controls .search-bar {
  min-width: 300px;
}
.header-controls .filter-options {
  min-width: 150px;
}
/* 现有组件的响应式设计 */
@media (max-width: 767px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
  }

  .page-header h1 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
  }

  .header-controls {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: var(--spacing-xs);
    align-items: center;
  }

  .header-controls .search-bar {
    min-width: auto;
    grid-column: 1;
  }

  .header-controls .search-bar input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
  }

  .header-controls .filter-options {
    min-width: auto;
    grid-column: 2;
  }

  .header-controls .filter-options select {
    padding: 8px 6px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: white;
    min-width: 70px;
  }

  .header-controls .refresh-button {
    grid-column: 3;
    padding: 8px 10px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    min-width: 60px;
    white-space: nowrap;
  }

  .header-controls .create-button {
    grid-column: 4;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 6px;
    min-width: 60px;
    white-space: nowrap;
    text-decoration: none;
  }

  /* 侧边栏已移除，导航功能已移至顶部Header */

  /* 移动端页面容器 */
  .page-container,
  .project-list-page {
    padding: var(--spacing-md);
  }

  /* 头部导航响应式 */
  .app-header {
    padding: 0 var(--spacing-md);
  }

  .header-nav ul {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .header-nav li {
    margin-left: 0;
  }

  /* 项目网格响应式 */
  .project-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .project-card {
    padding: var(--spacing-md);
  }
}
/* 超小屏幕优化 (≤479px) */
@media (max-width: 479px) {
  .page-header {
    padding: var(--spacing-sm);
  }

  .page-header h1 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
  }

  .header-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    align-items: center;
  }

  .header-controls .search-bar {
    flex: 1;
    min-width: 120px;
  }

  .header-controls .search-bar input {
    padding: 6px 8px;
    font-size: 13px;
    width: 100%;
  }

  .header-controls .filter-options select {
    padding: 6px 4px;
    font-size: 11px;
    min-width: 60px;
  }

  .header-controls .refresh-button {
    padding: 6px 8px !important;
    font-size: 11px !important;
    min-width: 45px;
    flex-shrink: 0;
  }

  .header-controls .create-button {
    padding: 6px 8px;
    font-size: 11px;
    min-width: 45px;
    flex-shrink: 0;
  }
}
/* 平板响应式设计 */
@media (min-width: 768px) and (max-width: 1023px) {
  /* 侧边栏已移除，导航功能已移至顶部Header */

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .header-controls .search-bar {
    min-width: 250px;
  }
}
/* 桌面响应式设计 */
@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
  }

  .header-controls .search-bar {
    min-width: 300px;
  }
}
/* 大屏幕优化 */
@media (min-width: 1200px) {
  .container {
    max-width: none; /* 🔧 移除最大宽度限制，充分利用屏幕宽度 */
    padding: 0 var(--spacing-lg); /* 🔧 减少左右内边距 */
    margin: 0 auto;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 🔧 减少卡片最小宽度 */
    gap: var(--spacing-md); /* 🔧 减少卡片间距 */
    max-width: none; /* 🔧 移除最大宽度限制 */
    margin: 0;
  }

  /* 大屏幕下导航栏优化 */
  .app-header {
    height: 60px;
    padding: 0 var(--spacing-xl);
  }

  .header-logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
  }

  .header-nav a {
    font-size: 1rem;
    padding: 10px 20px;
    font-weight: 500;
  }

  .user-name {
    font-size: 1rem;
    font-weight: 500;
  }

  /* 大屏幕下内容优化 */
  .page-header {
    max-width: 1400px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-xl);
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-content {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* 表单元素大屏幕优化 */
  .form-group label {
    font-size: 1rem;
  }

  .form-control {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .btn {
    font-size: 1rem;
    padding: 12px 24px;
  }

  /* 个人资料页面大屏幕优化 */
  .profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
  }

  .profile-card {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
  }

  .avatar-section {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--spacing-xl);
  }

  .avatar-container {
    flex-shrink: 0;
  }

  .profile-form {
    max-width: 600px;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
}
/* 超大屏幕优化 */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding: 0 var(--spacing-xl);
    margin: 0 auto;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
  }

  /* 超大屏幕字体优化 - 更紧凑 */
  .header-logo h1 {
    font-size: 1.8rem;
  }

  .header-nav a {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .page-header {
    max-width: 1400px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-xl);
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-content {
    font-size: 1rem;
    line-height: 1.5;
  }

  .form-control {
    font-size: 1rem;
    padding: 14px 18px;
  }

  .btn {
    font-size: 1rem;
    padding: 14px 28px;
  }

  /* 个人资料页面超大屏幕优化 */
  .profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
  }

  .profile-card {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
  }

  .avatar-section {
    padding: var(--spacing-xl);
  }

  .avatar-image {
    width: 120px;
    height: 120px;
  }

  .security-section {
    padding: var(--spacing-lg);
  }

  .thirdparty-item {
    padding: var(--spacing-lg);
  }
}
/* 超宽屏幕优化 */
@media (min-width: 1920px) {
  .container {
    max-width: var(--container-xxl);
    padding: 0 calc(var(--spacing-xxl) * 1.2);
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: calc(var(--spacing-xxl) * 1.2);
  }
}
.page-header h1 {
  color: var(--text-accent);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(21, 101, 192, 0.2);
}
.create-button {
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
  transition: all 0.3s ease;
}
.create-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
  color: white;
  text-decoration: none;
}
.filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  gap: 1rem;
}
.search-bar {
  flex: 1;
}
.search-bar input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}
.search-bar input:focus {
  outline: none;
  border-color: #4285f4;
  background: white;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}
.filter-options select {
  padding: 10px 14px;
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  min-width: 150px;
  transition: all 0.3s ease;
}
.filter-options select:focus {
  outline: none;
  border-color: #4285f4;
  background: white;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(66, 133, 244, 0.3);
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.project-header h3 {
  margin: 0;
  color: var(--text-accent);
  font-size: 1.25rem;
  font-weight: 600;
}
.project-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.status-badge.trained {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  color: white;
}
.status-badge.untrained {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
}
.status-icon {
  font-size: 1rem;
}
.project-description {
  color: #546e7a;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
}
.project-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #546e7a;
}
.project-metadata span {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(21, 101, 192, 0.1) 100%);
  color: #1565c0;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid rgba(66, 133, 244, 0.2);
}
.project-actions {
  display: flex;
  gap: 0.75rem;
}
.view-button, .workflow-button {
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.view-button {
  background: rgba(255, 255, 255, 0.8);
  color: #1565c0;
  flex: 1;
  border: 2px solid rgba(66, 133, 244, 0.2);
}
.view-button:hover {
  background: white;
  color: #1565c0;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(66, 133, 244, 0.4);
}
.workflow-button {
  flex: 2;
}
/* 添加预览按钮和训练按钮的特定样式 */
.preview-button {
  background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
  color: white;
}
.preview-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
  color: white;
  text-decoration: none;
}
.train-button {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  color: white;
}
.train-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  color: white;
  text-decoration: none;
}
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
}
.empty-state p {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: #546e7a;
  font-weight: 500;
}
.loading {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  font-size: 1.25rem;
  color: #1565c0;
  font-weight: 500;
}
/* 认证页面样式 */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f5f5;
}
.auth-content {
  display: flex;
  width: 900px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.1);
  overflow: hidden;
}
.auth-form-container {
  flex: 1;
  padding: 40px;
}
.auth-banner {
  flex: 1;
  background-color: var(--primary-color);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.auth-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.auth-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.1);
}
.auth-form h2 {
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
}
.error-message {
  background-color: #ffebee;
  color: var(--error-color);
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}
.auth-form .form-group {
  margin-bottom: 15px;
}
.auth-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #424242;
}
.auth-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}
.auth-form input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(123, 31, 162, 0.1);
}
.auth-button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}
.auth-button:hover {
  background-color: var(--primary-dark);
}
.auth-button:disabled {
  background-color: #bdbdbd;
  cursor: not-allowed;
}
.demo-account-info {
  margin-top: 20px;
  padding: 15px;
  background-color: #e3f2fd;
  border-radius: 4px;
  font-size: 14px;
}
.demo-account-info p {
  margin-bottom: 8px;
  font-weight: 500;
  color: #0277bd;
}
.demo-account-info ul {
  margin: 0;
  padding-left: 20px;
}
.demo-account-info li {
  margin-bottom: 5px;
}
.auth-links {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}
.auth-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
/* AI工作流页面相关样式 */
.ai-workflow-page {
  padding: 20px;
}
.ai-workflow-page .page-header {
  margin-bottom: 20px;
}
.ai-workflow-page .page-header h1 {
  font-size: 24px;
  margin-bottom: 16px;
}
.workflow-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.workflow-tabs button {
  padding: 8px 16px;
  border: none;
  background-color: #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.workflow-tabs button.active {
  background-color: #7b1fa2;
  color: white;
}
.workflow-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.workflow-container.all {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.workflow-block {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  margin-bottom: 20px;
}
.block-header {
  background-color: #f5f5f5;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
}
.block-header h2 {
  margin: 0;
  font-size: 18px;
}
.block-content {
  padding: 20px;
}
/* 行列布局 */
.row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.col {
  flex: 1;
  min-width: 300px;
}
/* 数据采集样式 */
.category-list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.category-list select {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.category-list button {
  background-color: #7b1fa2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.webcam-section {
  margin-bottom: 20px;
}
#webcam-container,
#inference-webcam-container {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}
.webcam-controls {
  display: flex;
  gap: 8px;
}
.webcam-controls button,
.model-loading button,
.model-export button {
  padding: 8px 16px;
  background-color: #7b1fa2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.webcam-controls button:hover,
.model-loading button:hover,
.model-export button:hover {
  background-color: #6a1b9a;
}
.webcam-controls button:disabled,
.model-loading button:disabled,
.model-export button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}
.upload-section {
  margin-bottom: 20px;
}
.upload-section input[type="file"] {
  padding: 8px;
  border: 1px dashed #ddd;
  border-radius: 4px;
  width: 100%;
  background-color: #f9f9f9;
}
.samples-preview {
  margin-top: 16px;
}
.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
.sample-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.sample-item img {
  width: 100%;
  height: auto;
  display: block;
}
/* 模型训练样式 */
.training-options {
  margin-bottom: 20px;
}
.option-item {
  margin-bottom: 12px;
}
.option-item label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.option-item input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.dataset-summary {
  margin-bottom: 20px;
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
}
.dataset-summary p {
  margin-bottom: 6px;
}
.dataset-summary ul {
  margin-left: 20px;
}
.progress-bar {
  height: 16px;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0;
}
.progress-fill {
  height: 100%;
  background-color: #7b1fa2;
  transition: width 0.3s ease;
}
.evaluation-results table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}
.evaluation-results th, 
.evaluation-results td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.evaluation-results th {
  background-color: #f5f5f5;
  font-weight: 500;
}
/* 模型推理样式 */
.prediction-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.prediction-label {
  width: 100px;
  font-weight: 500;
}
.prediction-bar-container {
  flex: 1;
  height: 16px;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 10px;
}
.prediction-bar {
  height: 100%;
  background-color: #7b1fa2;
  transition: width 0.3s ease;
}
.prediction-probability {
  width: 60px;
  text-align: right;
  font-weight: 500;
}
/* Loading, Error and Not Found states */
.loading, .error, .not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  text-align: center;
}
.loading {
  color: var(--primary-color);
  font-size: 1.2rem;
}
.error {
  color: var(--error-color);
  font-size: 1.1rem;
}
.not-found {
  color: #777;
  font-size: 1.2rem;
}
/* 创建项目页面样式 */
.create-project-page {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.create-project-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.1);
  padding: 30px;
  margin-top: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-help {
  font-size: 0.8rem;
  color: #777;
  margin-top: 5px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}
.cancel-button, .delete-button {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
}
.cancel-button {
  background-color: #f1f1f1;
  color: #333;
}
.cancel-button:hover {
  background-color: #e0e0e0;
}
.delete-button {
  background-color: #f44336;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}
.delete-button:hover {
  background-color: #d32f2f;
  text-decoration: none;
}
/* 添加项目设置和用户页面的样式 */
/* 卡片通用样式 */
.settings-card,
.profile-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
/* 项目设置页面 */
.project-settings h2,
.profile-page h2,
.settings-page h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}
.project-settings h3,
.profile-card h3,
.settings-card h3 {
  margin-bottom: 16px;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 500;
}
.danger-zone {
  border-left: 4px solid var(--error-color);
}
.danger-actions {
  margin-top: 16px;
}
/* 表单组件 */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}
.form-group textarea {
  resize: vertical;
}
/* 个人资料页面 */
.profile-page {
  padding: 20px;
}
.profile-page h2 {
  margin-bottom: 20px;
  color: var(--primary-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.profile-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}
.profile-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f1f1;
}
.profile-form {
  max-width: 600px;
}
.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
}
.avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--background-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}
.form-text {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
  display: block;
}
.security-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.security-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
}
.option-info h4 {
  margin: 0 0 5px;
  color: var(--text-dark);
}
.option-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
}
/* 系统设置页面 */
.settings-group {
  margin-bottom: 16px;
}
.settings-item {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.settings-item label {
  margin-right: 12px;
}
.settings-item select {
  width: 200px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.settings-item.checkbox {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.settings-item.checkbox input {
  margin-right: 10px;
}
.settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
/* 加载状态 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  font-size: 16px;
  color: var(--primary-color);
}
/* 按钮样式 */
.btn {
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background-color: var(--primary-color);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
}
.btn-danger {
  background-color: var(--error-color);
  color: white;
}
.btn-danger:hover {
  background-color: #d32f2f;
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}
.btn-outline:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}
.btn-small {
  padding: 5px 10px;
  font-size: 12px;
}
/* 项目详情页面样式 */
.train-results {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
}
.train-results h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.2rem;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}
.result-item {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f9f9f9;
}
.result-label {
  font-size: 0.9rem;
  color: #757575;
  margin-bottom: 5px;
}
.result-value {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
}
/* 项目详情页样式 */
.project-detail-page {
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
}
.project-detail-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.project-detail-page .actions {
  display: flex;
  gap: 10px;
}
.edit-button {
  background-color: #2196f3;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  transition: background-color 0.3s;
}
.edit-button:hover {
  background-color: #1976d2;
  text-decoration: none;
}
.save-button {
  background-color: var(--success-color);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}
.save-button:hover {
  background-color: #388e3c;
  text-decoration: none;
}
/* 项目信息区域样式 */
.project-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-section {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border-left: 4px solid var(--primary-color);
}
.info-section h2 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}
.description {
  line-height: 1.6;
  color: #555;
}
.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}
.stat-item {
  flex: 1;
  min-width: 150px;
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.stat-label {
  font-size: 0.85rem;
  color: #757575;
  margin-bottom: 5px;
}
.stat-value {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
}
.status-badge {
  padding: 6px 12px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-badge.trained {
  background-color: #4caf50;
}
.status-badge.untrained {
  background-color: #ff9800;
}
.status-icon {
  font-weight: bold;
  font-size: 14px;
}
.dataset-info {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
}
/* 设置页面样式 */
.settings-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}
.settings-page h2 {
  color: var(--text-accent);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
}
.settings-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.settings-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.settings-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.settings-item label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.settings-select {
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.settings-select:focus {
  outline: none;
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}
.settings-select option {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 8px 12px;
}
/* 深色主题下的下拉框选项样式 */
.dark-theme .settings-select option {
  background: #2d3748;
  color: #f7fafc;
}
.dark-theme .settings-select {
  background: rgba(45, 55, 72, 0.95);
  color: #f7fafc;
}
/* 通用的深色主题下拉框样式 */
.dark-theme select {
  background: rgba(45, 55, 72, 0.95) !important;
  color: #f7fafc !important;
  border-color: rgba(99, 179, 237, 0.2) !important;
}
.dark-theme select option {
  background: #2d3748 !important;
  color: #f7fafc !important;
}
/* 深色主题下的输入框样式 */
.dark-theme input[type="text"],
.dark-theme input[type="email"],
.dark-theme input[type="password"],
.dark-theme textarea {
  background: rgba(45, 55, 72, 0.95) !important;
  color: #f7fafc !important;
  border-color: rgba(99, 179, 237, 0.2) !important;
}
.dark-theme input[type="text"]::-moz-placeholder, .dark-theme input[type="email"]::-moz-placeholder, .dark-theme input[type="password"]::-moz-placeholder, .dark-theme textarea::-moz-placeholder {
  color: #a0aec0 !important;
}
.dark-theme input[type="text"]::placeholder,
.dark-theme input[type="email"]::placeholder,
.dark-theme input[type="password"]::placeholder,
.dark-theme textarea::placeholder {
  color: #a0aec0 !important;
}
.settings-help {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}
.settings-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.success-message {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(76, 175, 80, 0.2);
  font-size: 0.95rem;
}
.dataset-info h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.2rem;
}
.dataset-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}
.categories-list {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}
.categories-list h4 {
  margin-bottom: 10px;
  color: #555;
}
.categories-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding-left: 0;
}
.categories-list li {
  padding: 4px 10px;
  background-color: #e3f2fd;
  color: #1565c0;
  border-radius: 4px;
  font-size: 0.9rem;
}
/* 编辑表单样式 */
.edit-form {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-top: 10px;
}
.edit-form .form-group {
  margin-bottom: 15px;
}
.edit-form .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
/* 添加重置密码页面样式 */
.reset-password-form {
  max-width: 500px;
}
/* 步骤指示器样式 */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 20px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.step.active {
  opacity: 1;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}
.step.active .step-number {
  background-color: #2196f3;
  color: white;
}
.step-title {
  font-size: 19px;
  color: #666;
  white-space: nowrap;
}
.step.active .step-title {
  color: #2196f3;
  font-weight: bold;
}
.step-connector {
  flex-grow: 1;
  height: 2px;
  background-color: #e0e0e0;
  margin: 0 10px;
  position: relative;
  top: -15px;
}
/* 表单提示信息样式 */
.form-tip {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}
/* ========================================
   全局响应式设计系统
   ======================================== */
/* 容器系统 - 优化大屏幕体验 */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}
/* 响应式容器宽度 */
.container-xs { max-width: var(--container-xs); }
.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }
.container-xxl { max-width: var(--container-xxl); }
/* 全宽容器 - 用于需要充分利用屏幕空间的页面 */
.container-fluid {
  width: 100%;
  max-width: none;
  padding: 0 var(--spacing-lg);
}
/* 大屏幕下的容器优化 */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--spacing-xl);
  }

  .container-fluid {
    padding: 0 var(--spacing-xxl);
  }
}
@media (min-width: 1440px) {
  .container {
    padding: 0 var(--spacing-xxl);
  }

  .container-fluid {
    padding: 0 calc(var(--spacing-xxl) * 1.5);
  }
}
/* 网格系统 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--spacing-md) / 2);
}
.col {
  flex: 1;
  padding: 0 calc(var(--spacing-md) / 2);
}
/* 响应式列宽 */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
/* 显示/隐藏工具类 */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
/* 文本对齐 */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
/* 间距工具类 */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--spacing-xs) !important; }
.m-2 { margin: var(--spacing-sm) !important; }
.m-3 { margin: var(--spacing-md) !important; }
.m-4 { margin: var(--spacing-lg) !important; }
.m-5 { margin: var(--spacing-xl) !important; }
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-xs) !important; }
.p-2 { padding: var(--spacing-sm) !important; }
.p-3 { padding: var(--spacing-md) !important; }
.p-4 { padding: var(--spacing-lg) !important; }
.p-5 { padding: var(--spacing-xl) !important; }
/* 移动端优先响应式断点 */
/* 超小屏幕 (手机, 小于480px) */
@media (max-width: 479px) {
  .container { padding: 0 var(--spacing-sm); }

  /* 移动端隐藏/显示 */
  .d-xs-none { display: none !important; }
  .d-xs-block { display: block !important; }
  .d-xs-flex { display: flex !important; }

  /* 移动端列宽 */
  .col-xs-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-xs-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xs-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xs-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xs-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xs-12 { flex: 0 0 100%; max-width: 100%; }

  /* 移动端文本对齐 */
  .text-xs-left { text-align: left !important; }
  .text-xs-center { text-align: center !important; }
  .text-xs-right { text-align: right !important; }
}
/* 小屏幕 (平板竖屏, 480px 到 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  /* 小屏幕隐藏/显示 */
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }

  /* 小屏幕列宽 */
  .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }

  /* 小屏幕文本对齐 */
  .text-sm-left { text-align: left !important; }
  .text-sm-center { text-align: center !important; }
  .text-sm-right { text-align: right !important; }
}
/* 中等屏幕 (平板横屏, 768px 到 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* 中等屏幕隐藏/显示 */
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }

  /* 中等屏幕列宽 */
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }

  /* 中等屏幕文本对齐 */
  .text-md-left { text-align: left !important; }
  .text-md-center { text-align: center !important; }
  .text-md-right { text-align: right !important; }
}
/* 大屏幕 (桌面, 1024px 到 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  /* 大屏幕隐藏/显示 */
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }

  /* 大屏幕列宽 */
  .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }

  /* 大屏幕文本对齐 */
  .text-lg-left { text-align: left !important; }
  .text-lg-center { text-align: center !important; }
  .text-lg-right { text-align: right !important; }
}
/* 超大屏幕 (大桌面, 1200px 及以上) */
@media (min-width: 1200px) {
  /* 超大屏幕隐藏/显示 */
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: flex !important; }

  /* 超大屏幕列宽 */
  .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .col-xl-12 { flex: 0 0 100%; max-width: 100%; }

  /* 超大屏幕文本对齐 */
  .text-xl-left { text-align: left !important; }
  .text-xl-center { text-align: center !important; }
  .text-xl-right { text-align: right !important; }
}
/* ========================================
   全局响应式优化
   ======================================== */
/* 确保图片响应式 */
img {
  max-width: 100%;
  height: auto;
}
/* 确保表格响应式 */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 767px) {
  .table-responsive {
    border: 1px solid var(--border-light);
    border-radius: 8px;
  }

  .table-responsive table {
    margin-bottom: 0;
    font-size: var(--font-size-sm);
  }

  .table-responsive th,
  .table-responsive td {
    white-space: nowrap;
    padding: var(--spacing-sm);
  }
}
/* 响应式视频 */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* 响应式卡片布局 */
.card-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* 响应式按钮组 */
.btn-group {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .btn-group {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .btn-group .btn {
    width: 100%;
  }
}
/* 响应式导航 */
.nav-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}
@media (max-width: 767px) {
  .nav-responsive {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}
/* 响应式表单 */
.form-responsive .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}
@media (max-width: 767px) {
  .form-responsive .form-row {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}
/* 响应式间距调整 */
@media (max-width: 479px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  /* 减少超小屏幕的间距 */
  .p-3 { padding: var(--spacing-sm) !important; }
  .m-3 { margin: var(--spacing-sm) !important; }
  .p-4 { padding: var(--spacing-md) !important; }
  .m-4 { margin: var(--spacing-md) !important; }
  .p-5 { padding: var(--spacing-lg) !important; }
  .m-5 { margin: var(--spacing-lg) !important; }
}
/* 成功消息样式 */
.success-message {
  background-color: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}
/* 表单操作区域样式 */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
/* 次要按钮样式 */
.secondary-button {
  padding: 10px 20px;
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}
.secondary-button:hover {
  background-color: #e0e0e0;
} *, ::before, ::after {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x:  ;
    --tw-pan-y:  ;
    --tw-pinch-zoom:  ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position:  ;
    --tw-gradient-via-position:  ;
    --tw-gradient-to-position:  ;
    --tw-ordinal:  ;
    --tw-slashed-zero:  ;
    --tw-numeric-figure:  ;
    --tw-numeric-spacing:  ;
    --tw-numeric-fraction:  ;
    --tw-ring-inset:  ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur:  ;
    --tw-brightness:  ;
    --tw-contrast:  ;
    --tw-grayscale:  ;
    --tw-hue-rotate:  ;
    --tw-invert:  ;
    --tw-saturate:  ;
    --tw-sepia:  ;
    --tw-drop-shadow:  ;
    --tw-backdrop-blur:  ;
    --tw-backdrop-brightness:  ;
    --tw-backdrop-contrast:  ;
    --tw-backdrop-grayscale:  ;
    --tw-backdrop-hue-rotate:  ;
    --tw-backdrop-invert:  ;
    --tw-backdrop-opacity:  ;
    --tw-backdrop-saturate:  ;
    --tw-backdrop-sepia:  ;
    --tw-contain-size:  ;
    --tw-contain-layout:  ;
    --tw-contain-paint:  ;
    --tw-contain-style:  
}
::backdrop {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x:  ;
    --tw-pan-y:  ;
    --tw-pinch-zoom:  ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position:  ;
    --tw-gradient-via-position:  ;
    --tw-gradient-to-position:  ;
    --tw-ordinal:  ;
    --tw-slashed-zero:  ;
    --tw-numeric-figure:  ;
    --tw-numeric-spacing:  ;
    --tw-numeric-fraction:  ;
    --tw-ring-inset:  ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur:  ;
    --tw-brightness:  ;
    --tw-contrast:  ;
    --tw-grayscale:  ;
    --tw-hue-rotate:  ;
    --tw-invert:  ;
    --tw-saturate:  ;
    --tw-sepia:  ;
    --tw-drop-shadow:  ;
    --tw-backdrop-blur:  ;
    --tw-backdrop-brightness:  ;
    --tw-backdrop-contrast:  ;
    --tw-backdrop-grayscale:  ;
    --tw-backdrop-hue-rotate:  ;
    --tw-backdrop-invert:  ;
    --tw-backdrop-opacity:  ;
    --tw-backdrop-saturate:  ;
    --tw-backdrop-sepia:  ;
    --tw-contain-size:  ;
    --tw-contain-layout:  ;
    --tw-contain-paint:  ;
    --tw-contain-style:  
}
.\!container {
    width: 100% !important
}
.container {
    width: 100%
}
@media (min-width: 640px) {
    .\!container {
        max-width: 640px !important
    }
    .container {
        max-width: 640px
    }
}
@media (min-width: 768px) {
    .\!container {
        max-width: 768px !important
    }
    .container {
        max-width: 768px
    }
}
@media (min-width: 1024px) {
    .\!container {
        max-width: 1024px !important
    }
    .container {
        max-width: 1024px
    }
}
@media (min-width: 1280px) {
    .\!container {
        max-width: 1280px !important
    }
    .container {
        max-width: 1280px
    }
}
@media (min-width: 1536px) {
    .\!container {
        max-width: 1536px !important
    }
    .container {
        max-width: 1536px
    }
}
.pointer-events-none {
    pointer-events: none
}
.visible {
    visibility: visible
}
.collapse {
    visibility: collapse
}
.static {
    position: static
}
.fixed {
    position: fixed
}
.absolute {
    position: absolute
}
.relative {
    position: relative
}
.sticky {
    position: sticky
}
.inset-0 {
    inset: 0px
}
.inset-y-0 {
    top: 0px;
    bottom: 0px
}
.-bottom-1 {
    bottom: -0.25rem
}
.-right-1 {
    right: -0.25rem
}
.-top-1 {
    top: -0.25rem
}
.bottom-8 {
    bottom: 2rem
}
.left-0 {
    left: 0px
}
.left-1\/2 {
    left: 50%
}
.right-0 {
    right: 0px
}
.right-2 {
    right: 0.5rem
}
.right-4 {
    right: 1rem
}
.right-8 {
    right: 2rem
}
.top-0 {
    top: 0px
}
.top-1\/2 {
    top: 50%
}
.top-2 {
    top: 0.5rem
}
.top-4 {
    top: 1rem
}
.top-full {
    top: 100%
}
.z-0 {
    z-index: 0
}
.z-10 {
    z-index: 10
}
.z-20 {
    z-index: 20
}
.z-40 {
    z-index: 40
}
.z-50 {
    z-index: 50
}
.col-span-2 {
    grid-column: span 2 / span 2
}
.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem
}
.mx-auto {
    margin-left: auto;
    margin-right: auto
}
.my-1 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem
}
.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem
}
.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem
}
.mb-1 {
    margin-bottom: 0.25rem
}
.mb-1\.5 {
    margin-bottom: 0.375rem
}
.mb-2 {
    margin-bottom: 0.5rem
}
.mb-3 {
    margin-bottom: 0.75rem
}
.mb-4 {
    margin-bottom: 1rem
}
.mb-6 {
    margin-bottom: 1.5rem
}
.mb-8 {
    margin-bottom: 2rem
}
.ml-1 {
    margin-left: 0.25rem
}
.ml-2 {
    margin-left: 0.5rem
}
.ml-3 {
    margin-left: 0.75rem
}
.ml-5 {
    margin-left: 1.25rem
}
.ml-auto {
    margin-left: auto
}
.mr-1 {
    margin-right: 0.25rem
}
.mr-2 {
    margin-right: 0.5rem
}
.mr-3 {
    margin-right: 0.75rem
}
.mt-0\.5 {
    margin-top: 0.125rem
}
.mt-1 {
    margin-top: 0.25rem
}
.mt-2 {
    margin-top: 0.5rem
}
.mt-3 {
    margin-top: 0.75rem
}
.mt-4 {
    margin-top: 1rem
}
.mt-6 {
    margin-top: 1.5rem
}
.mt-8 {
    margin-top: 2rem
}
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1
}
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}
.block {
    display: block
}
.inline-block {
    display: inline-block
}
.inline {
    display: inline
}
.flex {
    display: flex
}
.inline-flex {
    display: inline-flex
}
.table {
    display: table
}
.grid {
    display: grid
}
.contents {
    display: contents
}
.hidden {
    display: none
}
.h-0\.5 {
    height: 0.125rem
}
.h-10 {
    height: 2.5rem
}
.h-12 {
    height: 3rem
}
.h-16 {
    height: 4rem
}
.h-2 {
    height: 0.5rem
}
.h-20 {
    height: 5rem
}
.h-24 {
    height: 6rem
}
.h-3 {
    height: 0.75rem
}
.h-4 {
    height: 1rem
}
.h-5 {
    height: 1.25rem
}
.h-6 {
    height: 1.5rem
}
.h-8 {
    height: 2rem
}
.h-9 {
    height: 2.25rem
}
.h-full {
    height: 100%
}
.h-screen {
    height: 100vh
}
.max-h-60 {
    max-height: 15rem
}
.max-h-96 {
    max-height: 24rem
}
.max-h-full {
    max-height: 100%
}
.min-h-\[200px\] {
    min-height: 200px
}
.min-h-\[40px\] {
    min-height: 40px
}
.min-h-full {
    min-height: 100%
}
.min-h-screen {
    min-height: 100vh
}
.w-10 {
    width: 2.5rem
}
.w-12 {
    width: 3rem
}
.w-16 {
    width: 4rem
}
.w-2 {
    width: 0.5rem
}
.w-20 {
    width: 5rem
}
.w-24 {
    width: 6rem
}
.w-3 {
    width: 0.75rem
}
.w-4 {
    width: 1rem
}
.w-48 {
    width: 12rem
}
.w-5 {
    width: 1.25rem
}
.w-56 {
    width: 14rem
}
.w-6 {
    width: 1.5rem
}
.w-64 {
    width: 16rem
}
.w-8 {
    width: 2rem
}
.w-full {
    width: 100%
}
.min-w-0 {
    min-width: 0px
}
.min-w-\[120px\] {
    min-width: 120px
}
.min-w-max {
    min-width: -moz-max-content;
    min-width: max-content
}
.max-w-2xl {
    max-width: 42rem
}
.max-w-3xl {
    max-width: 48rem
}
.max-w-4xl {
    max-width: 56rem
}
.max-w-7xl {
    max-width: 80rem
}
.max-w-full {
    max-width: 100%
}
.max-w-lg {
    max-width: 32rem
}
.max-w-md {
    max-width: 28rem
}
.max-w-sm {
    max-width: 24rem
}
.max-w-xl {
    max-width: 36rem
}
.flex-1 {
    flex: 1 1 0%
}
.flex-shrink {
    flex-shrink: 1
}
.flex-shrink-0 {
    flex-shrink: 0
}
.-translate-x-1\/2 {
    --tw-translate-x: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.-translate-y-1\.5 {
    --tw-translate-y: -0.375rem;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.-translate-y-1\/2 {
    --tw-translate-y: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.translate-y-1\.5 {
    --tw-translate-y: 0.375rem;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.-rotate-45 {
    --tw-rotate: -45deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.rotate-180 {
    --tw-rotate: 180deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.rotate-45 {
    --tw-rotate: 45deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.scale-100 {
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.scale-95 {
    --tw-scale-x: .95;
    --tw-scale-y: .95;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.animate-\[shimmer_2s_infinite\] {
    animation: shimmer 2s infinite
}
@keyframes pulse {
    50% {
        opacity: .5
    }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite
}
@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}
.animate-spin {
    animation: spin 1s linear infinite
}
.cursor-default {
    cursor: default
}
.cursor-not-allowed {
    cursor: not-allowed
}
.cursor-pointer {
    cursor: pointer
}
.select-none {
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none
}
.resize-none {
    resize: none
}
.resize {
    resize: both
}
.list-inside {
    list-style-position: inside
}
.list-disc {
    list-style-type: disc
}
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr))
}
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}
.flex-col {
    flex-direction: column
}
.flex-col-reverse {
    flex-direction: column-reverse
}
.flex-wrap {
    flex-wrap: wrap
}
.items-start {
    align-items: flex-start
}
.items-center {
    align-items: center
}
.justify-start {
    justify-content: flex-start
}
.justify-end {
    justify-content: flex-end
}
.justify-center {
    justify-content: center
}
.justify-between {
    justify-content: space-between
}
.gap-1 {
    gap: 0.25rem
}
.gap-1\.5 {
    gap: 0.375rem
}
.gap-10 {
    gap: 2.5rem
}
.gap-2 {
    gap: 0.5rem
}
.gap-3 {
    gap: 0.75rem
}
.gap-4 {
    gap: 1rem
}
.gap-6 {
    gap: 1.5rem
}
.space-x-1 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.25rem * var(--tw-space-x-reverse));
    margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))
}
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))
}
.space-x-3 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.75rem * var(--tw-space-x-reverse));
    margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)))
}
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)))
}
.space-x-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1.5rem * var(--tw-space-x-reverse));
    margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))
}
.space-x-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(2rem * var(--tw-space-x-reverse));
    margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)))
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.25rem * var(--tw-space-y-reverse))
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.375rem * var(--tw-space-y-reverse))
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse))
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.75rem * var(--tw-space-y-reverse))
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse))
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.5rem * var(--tw-space-y-reverse))
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(2rem * var(--tw-space-y-reverse))
}
.overflow-auto {
    overflow: auto
}
.overflow-hidden {
    overflow: hidden
}
.overflow-y-auto {
    overflow-y: auto
}
.overflow-x-hidden {
    overflow-x: hidden
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}
.whitespace-nowrap {
    white-space: nowrap
}
.whitespace-pre-line {
    white-space: pre-line
}
.whitespace-pre-wrap {
    white-space: pre-wrap
}
.rounded {
    border-radius: 0.25rem
}
.rounded-2xl {
    border-radius: 1rem
}
.rounded-full {
    border-radius: 9999px
}
.rounded-lg {
    border-radius: var(--radius)
}
.rounded-md {
    border-radius: calc(var(--radius) - 2px)
}
.rounded-xl {
    border-radius: 0.75rem
}
.border {
    border-width: 1px
}
.border-0 {
    border-width: 0px
}
.border-2 {
    border-width: 2px
}
.border-4 {
    border-width: 4px
}
.border-b {
    border-bottom-width: 1px
}
.border-b-2 {
    border-bottom-width: 2px
}
.border-l {
    border-left-width: 1px
}
.border-t {
    border-top-width: 1px
}
.border-none {
    border-style: none
}
.border-blue-200 {
    --tw-border-opacity: 1;
    border-color: rgb(191 219 254 / var(--tw-border-opacity, 1))
}
.border-blue-300 {
    --tw-border-opacity: 1;
    border-color: rgb(147 197 253 / var(--tw-border-opacity, 1))
}
.border-blue-600 {
    --tw-border-opacity: 1;
    border-color: rgb(37 99 235 / var(--tw-border-opacity, 1))
}
.border-border {
    border-color: hsl(var(--border))
}
.border-destructive {
    border-color: hsl(var(--destructive))
}
.border-gray-200 {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1))
}
.border-gray-300 {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1))
}
.border-green-200 {
    --tw-border-opacity: 1;
    border-color: rgb(187 247 208 / var(--tw-border-opacity, 1))
}
.border-green-500 {
    --tw-border-opacity: 1;
    border-color: rgb(34 197 94 / var(--tw-border-opacity, 1))
}
.border-indigo-200 {
    --tw-border-opacity: 1;
    border-color: rgb(199 210 254 / var(--tw-border-opacity, 1))
}
.border-input {
    border-color: hsl(var(--input))
}
.border-primary {
    border-color: hsl(var(--primary))
}
.border-purple-200 {
    --tw-border-opacity: 1;
    border-color: rgb(233 213 255 / var(--tw-border-opacity, 1))
}
.border-red-200 {
    --tw-border-opacity: 1;
    border-color: rgb(254 202 202 / var(--tw-border-opacity, 1))
}
.border-red-500 {
    --tw-border-opacity: 1;
    border-color: rgb(239 68 68 / var(--tw-border-opacity, 1))
}
.border-white {
    --tw-border-opacity: 1;
    border-color: rgb(255 255 255 / var(--tw-border-opacity, 1))
}
.border-yellow-200 {
    --tw-border-opacity: 1;
    border-color: rgb(254 240 138 / var(--tw-border-opacity, 1))
}
.bg-accent {
    background-color: hsl(var(--accent))
}
.bg-amber-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1))
}
.bg-background {
    background-color: hsl(var(--background))
}
.bg-black {
    --tw-bg-opacity: 1;
    background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1))
}
.bg-black\/50 {
    background-color: rgb(0 0 0 / 0.5)
}
.bg-blue-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1))
}
.bg-blue-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1))
}
.bg-blue-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1))
}
.bg-blue-600 {
    --tw-bg-opacity: 1;
    background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1))
}
.bg-current {
    background-color: currentColor
}
.bg-destructive {
    background-color: hsl(var(--destructive))
}
.bg-gray-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1))
}
.bg-gray-100\/50 {
    background-color: rgb(243 244 246 / 0.5)
}
.bg-gray-200 {
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1))
}
.bg-gray-200\/50 {
    background-color: rgb(229 231 235 / 0.5)
}
.bg-gray-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1))
}
.bg-gray-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1))
}
.bg-gray-600 {
    --tw-bg-opacity: 1;
    background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1))
}
.bg-gray-700 {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1))
}
.bg-gray-900 {
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1))
}
.bg-green-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1))
}
.bg-green-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1))
}
.bg-green-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1))
}
.bg-green-600 {
    --tw-bg-opacity: 1;
    background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1))
}
.bg-indigo-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(238 242 255 / var(--tw-bg-opacity, 1))
}
.bg-indigo-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(99 102 241 / var(--tw-bg-opacity, 1))
}
.bg-muted {
    background-color: hsl(var(--muted))
}
.bg-orange-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1))
}
.bg-orange-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1))
}
.bg-primary {
    background-color: hsl(var(--primary))
}
.bg-purple-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1))
}
.bg-purple-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(250 245 255 / var(--tw-bg-opacity, 1))
}
.bg-purple-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(168 85 247 / var(--tw-bg-opacity, 1))
}
.bg-red-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1))
}
.bg-red-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1))
}
.bg-red-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1))
}
.bg-red-600 {
    --tw-bg-opacity: 1;
    background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1))
}
.bg-secondary {
    background-color: hsl(var(--secondary))
}
.bg-white {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))
}
.bg-white\/70 {
    background-color: rgb(255 255 255 / 0.7)
}
.bg-yellow-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1))
}
.bg-yellow-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1))
}
.bg-yellow-600 {
    --tw-bg-opacity: 1;
    background-color: rgb(202 138 4 / var(--tw-bg-opacity, 1))
}
.bg-opacity-50 {
    --tw-bg-opacity: 0.5
}
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops))
}
.from-transparent {
    --tw-gradient-from: transparent var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}
.via-white\/20 {
    --tw-gradient-to: rgb(255 255 255 / 0)  var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / 0.2) var(--tw-gradient-via-position), var(--tw-gradient-to)
}
.to-transparent {
    --tw-gradient-to: transparent var(--tw-gradient-to-position)
}
.object-contain {
    -o-object-fit: contain;
       object-fit: contain
}
.object-cover {
    -o-object-fit: cover;
       object-fit: cover
}
.p-0 {
    padding: 0px
}
.p-1 {
    padding: 0.25rem
}
.p-1\.5 {
    padding: 0.375rem
}
.p-2 {
    padding: 0.5rem
}
.p-3 {
    padding: 0.75rem
}
.p-4 {
    padding: 1rem
}
.p-6 {
    padding: 1.5rem
}
.p-8 {
    padding: 2rem
}
.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem
}
.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem
}
.px-2\.5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem
}
.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem
}
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem
}
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem
}
.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem
}
.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem
}
.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem
}
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem
}
.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
}
.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem
}
.pb-1 {
    padding-bottom: 0.25rem
}
.pl-10 {
    padding-left: 2.5rem
}
.pl-3 {
    padding-left: 0.75rem
}
.pr-10 {
    padding-right: 2.5rem
}
.pr-2 {
    padding-right: 0.5rem
}
.pr-4 {
    padding-right: 1rem
}
.pt-0 {
    padding-top: 0px
}
.pt-1 {
    padding-top: 0.25rem
}
.pt-4 {
    padding-top: 1rem
}
.text-left {
    text-align: left
}
.text-center {
    text-align: center
}
.align-middle {
    vertical-align: middle
}
.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem
}
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem
}
.text-\[10px\] {
    font-size: 10px
}
.text-base {
    font-size: 1rem;
    line-height: 1.5rem
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem
}
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem
}
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem
}
.font-bold {
    font-weight: 700
}
.font-medium {
    font-weight: 500
}
.font-normal {
    font-weight: 400
}
.font-semibold {
    font-weight: 600
}
.uppercase {
    text-transform: uppercase
}
.capitalize {
    text-transform: capitalize
}
.italic {
    font-style: italic
}
.leading-none {
    line-height: 1
}
.tracking-tight {
    letter-spacing: -0.025em
}
.text-accent-foreground {
    color: hsl(var(--accent-foreground))
}
.text-amber-500 {
    --tw-text-opacity: 1;
    color: rgb(245 158 11 / var(--tw-text-opacity, 1))
}
.text-amber-600 {
    --tw-text-opacity: 1;
    color: rgb(217 119 6 / var(--tw-text-opacity, 1))
}
.text-blue-100 {
    --tw-text-opacity: 1;
    color: rgb(219 234 254 / var(--tw-text-opacity, 1))
}
.text-blue-500 {
    --tw-text-opacity: 1;
    color: rgb(59 130 246 / var(--tw-text-opacity, 1))
}
.text-blue-600 {
    --tw-text-opacity: 1;
    color: rgb(37 99 235 / var(--tw-text-opacity, 1))
}
.text-blue-700 {
    --tw-text-opacity: 1;
    color: rgb(29 78 216 / var(--tw-text-opacity, 1))
}
.text-blue-800 {
    --tw-text-opacity: 1;
    color: rgb(30 64 175 / var(--tw-text-opacity, 1))
}
.text-blue-900 {
    --tw-text-opacity: 1;
    color: rgb(30 58 138 / var(--tw-text-opacity, 1))
}
.text-current {
    color: currentColor
}
.text-cyan-600 {
    --tw-text-opacity: 1;
    color: rgb(8 145 178 / var(--tw-text-opacity, 1))
}
.text-destructive {
    color: hsl(var(--destructive))
}
.text-destructive-foreground {
    color: hsl(var(--destructive-foreground))
}
.text-foreground {
    color: hsl(var(--foreground))
}
.text-gray-300 {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1))
}
.text-gray-400 {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1))
}
.text-gray-500 {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1))
}
.text-gray-600 {
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1))
}
.text-gray-700 {
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1))
}
.text-gray-800 {
    --tw-text-opacity: 1;
    color: rgb(31 41 55 / var(--tw-text-opacity, 1))
}
.text-gray-900 {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1))
}
.text-green-500 {
    --tw-text-opacity: 1;
    color: rgb(34 197 94 / var(--tw-text-opacity, 1))
}
.text-green-600 {
    --tw-text-opacity: 1;
    color: rgb(22 163 74 / var(--tw-text-opacity, 1))
}
.text-green-700 {
    --tw-text-opacity: 1;
    color: rgb(21 128 61 / var(--tw-text-opacity, 1))
}
.text-green-800 {
    --tw-text-opacity: 1;
    color: rgb(22 101 52 / var(--tw-text-opacity, 1))
}
.text-green-900 {
    --tw-text-opacity: 1;
    color: rgb(20 83 45 / var(--tw-text-opacity, 1))
}
.text-indigo-500 {
    --tw-text-opacity: 1;
    color: rgb(99 102 241 / var(--tw-text-opacity, 1))
}
.text-indigo-600 {
    --tw-text-opacity: 1;
    color: rgb(79 70 229 / var(--tw-text-opacity, 1))
}
.text-indigo-900 {
    --tw-text-opacity: 1;
    color: rgb(49 46 129 / var(--tw-text-opacity, 1))
}
.text-muted-foreground {
    color: hsl(var(--muted-foreground))
}
.text-orange-500 {
    --tw-text-opacity: 1;
    color: rgb(249 115 22 / var(--tw-text-opacity, 1))
}
.text-orange-600 {
    --tw-text-opacity: 1;
    color: rgb(234 88 12 / var(--tw-text-opacity, 1))
}
.text-primary {
    color: hsl(var(--primary))
}
.text-primary-foreground {
    color: hsl(var(--primary-foreground))
}
.text-purple-500 {
    --tw-text-opacity: 1;
    color: rgb(168 85 247 / var(--tw-text-opacity, 1))
}
.text-purple-600 {
    --tw-text-opacity: 1;
    color: rgb(147 51 234 / var(--tw-text-opacity, 1))
}
.text-purple-700 {
    --tw-text-opacity: 1;
    color: rgb(126 34 206 / var(--tw-text-opacity, 1))
}
.text-purple-900 {
    --tw-text-opacity: 1;
    color: rgb(88 28 135 / var(--tw-text-opacity, 1))
}
.text-red-100 {
    --tw-text-opacity: 1;
    color: rgb(254 226 226 / var(--tw-text-opacity, 1))
}
.text-red-500 {
    --tw-text-opacity: 1;
    color: rgb(239 68 68 / var(--tw-text-opacity, 1))
}
.text-red-600 {
    --tw-text-opacity: 1;
    color: rgb(220 38 38 / var(--tw-text-opacity, 1))
}
.text-red-700 {
    --tw-text-opacity: 1;
    color: rgb(185 28 28 / var(--tw-text-opacity, 1))
}
.text-red-800 {
    --tw-text-opacity: 1;
    color: rgb(153 27 27 / var(--tw-text-opacity, 1))
}
.text-red-900 {
    --tw-text-opacity: 1;
    color: rgb(127 29 29 / var(--tw-text-opacity, 1))
}
.text-secondary-foreground {
    color: hsl(var(--secondary-foreground))
}
.text-white {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1))
}
.text-yellow-500 {
    --tw-text-opacity: 1;
    color: rgb(234 179 8 / var(--tw-text-opacity, 1))
}
.text-yellow-600 {
    --tw-text-opacity: 1;
    color: rgb(202 138 4 / var(--tw-text-opacity, 1))
}
.text-yellow-700 {
    --tw-text-opacity: 1;
    color: rgb(161 98 7 / var(--tw-text-opacity, 1))
}
.text-yellow-900 {
    --tw-text-opacity: 1;
    color: rgb(113 63 18 / var(--tw-text-opacity, 1))
}
.underline {
    text-decoration-line: underline
}
.opacity-0 {
    opacity: 0
}
.opacity-100 {
    opacity: 1
}
.opacity-25 {
    opacity: 0.25
}
.opacity-50 {
    opacity: 0.5
}
.opacity-70 {
    opacity: 0.7
}
.opacity-75 {
    opacity: 0.75
}
.shadow {
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}
.shadow-lg {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}
.shadow-md {
    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}
.shadow-none {
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}
.shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}
.shadow-xl {
    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}
.outline {
    outline-style: solid
}
.ring-1 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)
}
.ring-inset {
    --tw-ring-inset: inset
}
.ring-black\/5 {
    --tw-ring-color: rgb(0 0 0 / 0.05)
}
.ring-blue-600\/20 {
    --tw-ring-color: rgb(37 99 235 / 0.2)
}
.ring-gray-600\/20 {
    --tw-ring-color: rgb(75 85 99 / 0.2)
}
.ring-green-600\/20 {
    --tw-ring-color: rgb(22 163 74 / 0.2)
}
.ring-red-600\/20 {
    --tw-ring-color: rgb(220 38 38 / 0.2)
}
.ring-yellow-600\/20 {
    --tw-ring-color: rgb(202 138 4 / 0.2)
}
.ring-offset-background {
    --tw-ring-offset-color: hsl(var(--background))
}
.blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}
.grayscale {
    --tw-grayscale: grayscale(100%);
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}
.invert {
    --tw-invert: invert(100%);
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}
.sepia {
    --tw-sepia: sepia(100%);
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}
.filter {
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}
.backdrop-blur-\[0\.5px\] {
    --tw-backdrop-blur: blur(0.5px);
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)
}
.backdrop-filter {
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)
}
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms
}
.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, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms
}
.transition-opacity {
    transition-property: opacity;
    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-100 {
    transition-duration: 100ms
}
.duration-200 {
    transition-duration: 200ms
}
.duration-300 {
    transition-duration: 300ms
}
.duration-500 {
    transition-duration: 500ms
}
.duration-75 {
    transition-duration: 75ms
}
.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1)
}
.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
}
.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1)
}
@keyframes enter {
    from {
        opacity: var(--tw-enter-opacity, 1);
        transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))
    }
}
@keyframes exit {
    to {
        opacity: var(--tw-exit-opacity, 1);
        transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))
    }
}
.animate-in {
    animation-name: enter;
    animation-duration: 150ms;
    --tw-enter-opacity: initial;
    --tw-enter-scale: initial;
    --tw-enter-rotate: initial;
    --tw-enter-translate-x: initial;
    --tw-enter-translate-y: initial
}
.fade-in-0 {
    --tw-enter-opacity: 0
}
.zoom-in-95 {
    --tw-enter-scale: .95
}
.duration-100 {
    animation-duration: 100ms
}
.duration-200 {
    animation-duration: 200ms
}
.duration-300 {
    animation-duration: 300ms
}
.duration-500 {
    animation-duration: 500ms
}
.duration-75 {
    animation-duration: 75ms
}
.ease-in {
    animation-timing-function: cubic-bezier(0.4, 0, 1, 1)
}
.ease-in-out {
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
}
.ease-out {
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1)
}
.running {
    animation-play-state: running
}
.paused {
    animation-play-state: paused
}
.file\:border-0::file-selector-button {
    border-width: 0px
}
.file\:bg-transparent::file-selector-button {
    background-color: transparent
}
.file\:text-sm::file-selector-button {
    font-size: 0.875rem;
    line-height: 1.25rem
}
.file\:font-medium::file-selector-button {
    font-weight: 500
}
.placeholder\:text-muted-foreground::-moz-placeholder {
    color: hsl(var(--muted-foreground))
}
.placeholder\:text-muted-foreground::placeholder {
    color: hsl(var(--muted-foreground))
}
.hover\:scale-105:hover {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.hover\:border-blue-400:hover {
    --tw-border-opacity: 1;
    border-color: rgb(96 165 250 / var(--tw-border-opacity, 1))
}
.hover\:bg-accent:hover {
    background-color: hsl(var(--accent))
}
.hover\:bg-blue-200:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(191 219 254 / var(--tw-bg-opacity, 1))
}
.hover\:bg-blue-50:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1))
}
.hover\:bg-blue-600:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1))
}
.hover\:bg-blue-700:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1))
}
.hover\:bg-destructive\/90:hover {
    background-color: hsl(var(--destructive) / 0.9)
}
.hover\:bg-gray-100:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1))
}
.hover\:bg-gray-300:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1))
}
.hover\:bg-gray-50:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1))
}
.hover\:bg-gray-600:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1))
}
.hover\:bg-gray-800:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1))
}
.hover\:bg-green-600:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1))
}
.hover\:bg-indigo-100:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(224 231 255 / var(--tw-bg-opacity, 1))
}
.hover\:bg-indigo-600:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(79 70 229 / var(--tw-bg-opacity, 1))
}
.hover\:bg-muted:hover {
    background-color: hsl(var(--muted))
}
.hover\:bg-muted\/80:hover {
    background-color: hsl(var(--muted) / 0.8)
}
.hover\:bg-orange-600:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(234 88 12 / var(--tw-bg-opacity, 1))
}
.hover\:bg-primary\/90:hover {
    background-color: hsl(var(--primary) / 0.9)
}
.hover\:bg-purple-600:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1))
}
.hover\:bg-red-50:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1))
}
.hover\:bg-red-600:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1))
}
.hover\:bg-red-700:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1))
}
.hover\:bg-secondary\/90:hover {
    background-color: hsl(var(--secondary) / 0.9)
}
.hover\:text-accent-foreground:hover {
    color: hsl(var(--accent-foreground))
}
.hover\:text-blue-500:hover {
    --tw-text-opacity: 1;
    color: rgb(59 130 246 / var(--tw-text-opacity, 1))
}
.hover\:text-blue-600:hover {
    --tw-text-opacity: 1;
    color: rgb(37 99 235 / var(--tw-text-opacity, 1))
}
.hover\:text-blue-700:hover {
    --tw-text-opacity: 1;
    color: rgb(29 78 216 / var(--tw-text-opacity, 1))
}
.hover\:text-blue-900:hover {
    --tw-text-opacity: 1;
    color: rgb(30 58 138 / var(--tw-text-opacity, 1))
}
.hover\:text-foreground:hover {
    color: hsl(var(--foreground))
}
.hover\:text-gray-600:hover {
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1))
}
.hover\:text-green-700:hover {
    --tw-text-opacity: 1;
    color: rgb(21 128 61 / var(--tw-text-opacity, 1))
}
.hover\:text-green-900:hover {
    --tw-text-opacity: 1;
    color: rgb(20 83 45 / var(--tw-text-opacity, 1))
}
.hover\:text-purple-700:hover {
    --tw-text-opacity: 1;
    color: rgb(126 34 206 / var(--tw-text-opacity, 1))
}
.hover\:text-purple-900:hover {
    --tw-text-opacity: 1;
    color: rgb(88 28 135 / var(--tw-text-opacity, 1))
}
.hover\:text-red-700:hover {
    --tw-text-opacity: 1;
    color: rgb(185 28 28 / var(--tw-text-opacity, 1))
}
.hover\:text-red-900:hover {
    --tw-text-opacity: 1;
    color: rgb(127 29 29 / var(--tw-text-opacity, 1))
}
.hover\:underline:hover {
    text-decoration-line: underline
}
.hover\:opacity-100:hover {
    opacity: 1
}
.hover\:shadow-lg:hover {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}
.focus\:border-blue-400:focus {
    --tw-border-opacity: 1;
    border-color: rgb(96 165 250 / var(--tw-border-opacity, 1))
}
.focus\:border-blue-500:focus {
    --tw-border-opacity: 1;
    border-color: rgb(59 130 246 / var(--tw-border-opacity, 1))
}
.focus\:bg-blue-50:focus {
    --tw-bg-opacity: 1;
    background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1))
}
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px
}
.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)
}
.focus\:ring-blue-500:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))
}
.focus\:ring-gray-950:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(3 7 18 / var(--tw-ring-opacity, 1))
}
.focus\:ring-red-600:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))
}
.focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px
}
.focus-visible\:outline-none:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px
}
.focus-visible\:ring:focus-visible {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)
}
.focus-visible\:ring-2:focus-visible {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)
}
.focus-visible\:ring-destructive:focus-visible {
    --tw-ring-color: hsl(var(--destructive))
}
.focus-visible\:ring-gray-500:focus-visible {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))
}
.focus-visible\:ring-ring:focus-visible {
    --tw-ring-color: hsl(var(--ring))
}
.focus-visible\:ring-opacity-75:focus-visible {
    --tw-ring-opacity: 0.75
}
.focus-visible\:ring-offset-2:focus-visible {
    --tw-ring-offset-width: 2px
}
.disabled\:pointer-events-none:disabled {
    pointer-events: none
}
.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed
}
.disabled\:opacity-50:disabled {
    opacity: 0.5
}
@media (min-width: 640px) {
    .sm\:mt-0 {
        margin-top: 0px
    }
    .sm\:w-auto {
        width: auto
    }
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
    .sm\:flex-row {
        flex-direction: row
    }
    .sm\:items-center {
        align-items: center
    }
    .sm\:justify-end {
        justify-content: flex-end
    }
    .sm\:justify-between {
        justify-content: space-between
    }
    .sm\:gap-4 {
        gap: 1rem
    }
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }
    .sm\:text-left {
        text-align: left
    }
    .sm\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem
    }
}
@media (min-width: 768px) {
    .md\:col-span-4 {
        grid-column: span 4 / span 4
    }
    .md\:col-span-8 {
        grid-column: span 8 / span 8
    }
    .md\:m-20 {
        margin: 5rem
    }
    .md\:mb-10 {
        margin-bottom: 2.5rem
    }
    .md\:mb-16 {
        margin-bottom: 4rem
    }
    .md\:mb-20 {
        margin-bottom: 5rem
    }
    .md\:mb-4 {
        margin-bottom: 1rem
    }
    .md\:block {
        display: block
    }
    .md\:flex {
        display: flex
    }
    .md\:hidden {
        display: none
    }
    .md\:h-14 {
        height: 3.5rem
    }
    .md\:w-14 {
        width: 3.5rem
    }
    .md\:min-w-96 {
        min-width: 24rem
    }
    .md\:max-w-2xl {
        max-width: 42rem
    }
    .md\:max-w-\[320px\] {
        max-width: 320px
    }
    .md\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr))
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
    .md\:flex-row {
        flex-direction: row
    }
    .md\:items-center {
        align-items: center
    }
    .md\:justify-between {
        justify-content: space-between
    }
    .md\:gap-12 {
        gap: 3rem
    }
    .md\:gap-3 {
        gap: 0.75rem
    }
    .md\:rounded-xl {
        border-radius: 0.75rem
    }
    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem
    }
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem
    }
    .md\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem
    }
    .md\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem
    }
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem
    }
}
@media (min-width: 1024px) {
    .lg\:col-span-2 {
        grid-column: span 2 / span 2
    }
    .lg\:mb-6 {
        margin-bottom: 1.5rem
    }
    .lg\:flex {
        display: flex
    }
    .lg\:\!hidden {
        display: none !important
    }
    .lg\:hidden {
        display: none
    }
    .lg\:h-16 {
        height: 4rem
    }
    .lg\:w-16 {
        width: 4rem
    }
    .lg\:max-w-\[360px\] {
        max-width: 360px
    }
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .lg\:items-center {
        align-items: center
    }
    .lg\:justify-between {
        justify-content: space-between
    }
    .lg\:gap-6 {
        gap: 1.5rem
    }
    .lg\:p-6 {
        padding: 1.5rem
    }
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem
    }
    .lg\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem
    }
    .lg\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem
    }
    .lg\:text-base {
        font-size: 1rem;
        line-height: 1.5rem
    }
    .lg\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem
    }
    .lg\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem
    }
}
/* 响应式布局优化 - 管理员界面专用 */

/* 触摸友好的交互元素尺寸 */
@media (pointer: coarse) {
  .admin-btn-primary,
  .admin-btn-secondary,
  .admin-btn-danger {
    min-height: 44px;
    min-width: 44px;
    padding: var(--spacing-md, 1rem) var(--spacing-lg, 1.5rem);
  }

  .admin-btn-small {
    min-height: 36px;
    min-width: 36px;
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  }

  .admin-checkbox {
    width: 24px;
    height: 24px;
  }

  .admin-status-badge {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
  }
}

/* 移动端优化 (320px - 767px) */
@media (max-width: 767px) {
  /* 容器优化 */
  .admin-page-container {
    padding: var(--spacing-sm, 0.5rem);
    min-height: 100vh;
  }

  /* 头部优化 */
  .admin-page-header {
    padding: var(--spacing-md, 1rem);
    margin-bottom: var(--spacing-lg, 1.5rem);
  }

  .admin-page-header .header-content {
    flex-direction: column;
    gap: var(--spacing-sm, 0.5rem);
    text-align: center;
  }

  .admin-page-title {
    font-size: var(--font-size-xl, 1.25rem);
    line-height: 1.3;
  }

  /* 卡片优化 */
  .admin-card {
    margin-bottom: var(--spacing-md, 1rem);
  }

  .admin-card-header {
    padding: var(--spacing-md, 1rem);
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm, 0.5rem);
  }

  .admin-card-content {
    padding: var(--spacing-md, 1rem);
  }

  /* 表格优化 */
  .admin-data-table {
    margin-bottom: var(--spacing-lg, 1.5rem);
  }

  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-container table {
    min-width: 600px;
    font-size: var(--font-size-xs, 0.75rem);
  }

  .table-container th,
  .table-container td {
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
    white-space: nowrap;
  }

  /* 确保操作列在移动端有足够空间 */
  .table-container th:last-child,
  .table-container td:last-child {
    min-width: 120px;
    width: 120px;
    position: sticky;
    right: 0;
    background: inherit;
    z-index: 1;
    white-space: normal;
  }

  /* 按钮组优化 */
  .action-buttons {
    flex-direction: column;
    gap: var(--spacing-xs, 0.25rem);
    width: 100%;
  }

  .action-buttons .admin-btn-secondary,
  .action-buttons .admin-btn-danger {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  }

  /* 分页优化 */
  .admin-pagination {
    flex-direction: column;
    gap: var(--spacing-md, 1rem);
    padding: var(--spacing-md, 1rem);
  }

  .pagination-info {
    order: -1;
    font-size: var(--font-size-sm, 0.875rem);
  }

  /* 表单优化 */
  .admin-form-group {
    margin-bottom: var(--spacing-md, 1rem);
  }

  .admin-input,
  .admin-textarea {
    font-size: var(--font-size-base, 1rem); /* 防止iOS缩放 */
  }

  /* 状态消息优化 */
  .admin-error-message,
  .admin-success-message {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
    border-radius: 8px;
  }
}

/* 超小屏幕优化 (320px - 479px) */
@media (max-width: 479px) {
  .admin-page-container {
    padding: var(--spacing-xs, 0.25rem);
  }

  .admin-page-header {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  }

  .admin-page-title {
    font-size: var(--font-size-lg, 1.125rem);
  }

  /* 极简表格 */
  .table-container table {
    min-width: 400px;
    font-size: 11px;
  }

  .table-container th,
  .table-container td {
    padding: var(--spacing-xs, 0.25rem);
  }

  /* 超小屏幕操作列优化 */
  .table-container th:last-child,
  .table-container td:last-child {
    min-width: 100px;
    width: 100px;
    padding: var(--spacing-xs, 0.25rem);
  }

  /* 隐藏非关键列 */
  .table-container .hide-mobile {
    display: none;
  }

  /* 紧凑按钮 */
  .admin-btn-small {
    padding: var(--spacing-xs, 0.25rem);
    font-size: 10px;
    min-height: 32px;
  }

  .action-buttons .admin-btn-secondary,
  .action-buttons .admin-btn-danger {
    min-height: 28px;
    font-size: 10px;
  }

  /* 状态徽章紧凑 */
  .admin-status-badge {
    font-size: 10px;
    padding: 2px var(--spacing-xs, 0.25rem);
  }
}

/* 平板端优化 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
  }

  /* 网格布局优化 */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg, 1.5rem);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 表格优化 */
  .table-container {
    font-size: var(--font-size-sm, 0.875rem);
  }

  /* 卡片间距优化 */
  .admin-card {
    margin-bottom: var(--spacing-lg, 1.5rem);
  }
}

/* 桌面端优化 (1024px+) */
@media (min-width: 1024px) {
  .admin-page-container {
    max-width: 1600px; /* 增加到1600px，与AdminStyles.css保持一致 */
    margin: 0 auto;
    padding: var(--spacing-xl, 2rem);
  }

  /* 网格布局优化 */
  .admin-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl, 2rem);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl, 2rem);
  }

  .admin-info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl, 2rem);
  }

  /* 字体大小优化 */
  .admin-page-title {
    font-size: var(--font-size-3xl, 1.875rem);
  }

  .admin-card-title {
    font-size: var(--font-size-xl, 1.25rem);
  }

  .admin-card-content {
    font-size: var(--font-size-lg, 1.125rem);
    line-height: 1.6;
  }

  .table-container {
    font-size: var(--font-size-base, 1rem);
  }

  .table-container th,
  .table-container td {
    padding: var(--spacing-md, 1rem);
  }

  /* 增强交互效果 */
  .admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  }

  .admin-btn-primary:hover,
  .admin-btn-secondary:hover,
  .admin-btn-danger:hover {
    transform: translateY(-2px);
  }

  /* 表格悬停效果 */
  .table-container tbody tr:hover {
    background: rgba(66, 133, 244, 0.03);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
}

/* 大屏幕优化 (1440px+) */
@media (min-width: 1440px) {
  .admin-page-container {
    max-width: 1600px;
    padding: var(--spacing-xxl, 3rem);
  }

  .admin-stats-grid {
    gap: var(--spacing-xxl, 3rem);
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-actions-grid {
    gap: var(--spacing-xxl, 3rem);
    grid-template-columns: repeat(4, 1fr);
  }

  .admin-info-grid {
    gap: var(--spacing-xxl, 3rem);
    grid-template-columns: repeat(4, 1fr);
  }

  /* 超大屏幕字体优化 */
  .admin-page-title {
    font-size: var(--font-size-4xl, 2.25rem);
  }

  .admin-card-title {
    font-size: var(--font-size-2xl, 1.5rem);
  }

  .admin-card-content {
    font-size: var(--font-size-xl, 1.25rem);
    line-height: 1.7;
  }

  .table-container {
    font-size: var(--font-size-lg, 1.125rem);
  }

  .table-container th,
  .table-container td {
    padding: var(--spacing-lg, 1.5rem);
  }

  /* 按钮大小优化 */
  .admin-btn-primary,
  .admin-btn-secondary,
  .admin-btn-danger {
    font-size: var(--font-size-lg, 1.125rem);
    padding: var(--spacing-lg, 1.5rem) var(--spacing-xl, 2rem);
  }
}

/* 超大屏幕优化 (1920px+) */
@media (min-width: 1920px) {
  .admin-page-container {
    max-width: 1800px;
    padding: calc(var(--spacing-xxl, 3rem) * 1.5);
  }

  .admin-stats-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: calc(var(--spacing-xxl, 3rem) * 1.2);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: calc(var(--spacing-xxl, 3rem) * 1.2);
  }

  .admin-info-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: calc(var(--spacing-xxl, 3rem) * 1.2);
  }
}

/* 横屏优化 */
@media (orientation: landscape) and (max-height: 600px) {
  .admin-page-header {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  }

  .admin-page-title {
    font-size: var(--font-size-lg, 1.125rem);
  }

  .admin-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md, 1rem);
  }

  .admin-stat-card {
    padding: var(--spacing-md, 1rem);
  }

  .stat-icon {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: var(--font-size-lg, 1.125rem);
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .admin-card,
  .admin-data-table,
  .admin-page-header {
    border: 2px solid #000;
  }

  .admin-btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
  }

  .admin-btn-secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }

  .admin-status-badge {
    border: 2px solid currentColor;
  }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
  .admin-card,
  .admin-btn-primary,
  .admin-btn-secondary,
  .admin-btn-danger,
  .admin-status-badge,
  .table-container tbody tr {
    transition: none;
    animation: none;
  }

  .admin-card:hover,
  .admin-btn-primary:hover,
  .admin-btn-secondary:hover,
  .admin-btn-danger:hover {
    transform: none;
  }
}

/* 打印样式 */
@media print {
  .admin-page-container {
    background: white;
    padding: 0;
    box-shadow: none;
  }

  .admin-card,
  .admin-data-table,
  .admin-page-header {
    background: white;
    box-shadow: none;
    border: 1px solid #000;
  }

  .admin-btn-primary,
  .admin-btn-secondary,
  .admin-btn-danger {
    display: none;
  }

  .action-buttons {
    display: none;
  }

  .admin-pagination {
    display: none;
  }
}/* 背景割裂修复样式 - 统一所有页面的背景处理 */

/* 确保html和body有统一的背景 */
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary, linear-gradient(135deg, #ffffff 0%, #e3f2fd 30%, #4285f4 100%)) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent !important; /* 使用html的背景 */
  min-height: 100vh;
}

/* 强制覆盖所有可能的背景设置 */
* {
  background-attachment: inherit !important;
}

/* 应用容器背景修复 */
.app-container {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 主内容区域背景修复 */
.main-content {
  background: transparent;
  width: 100%;
}

.content-area {
  background: transparent;
}

/* 管理员页面背景修复 - 使用!important确保优先级 */
.admin-page-container {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
}

.admin-container {
  background: transparent !important;
  width: 100%;
}

/* 管理员页面特定背景修复 */
.admin-page-container::before {
  display: none !important;
}

.admin-page-container::after {
  display: none !important;
}

/* 用户详情页面背景修复 */
.user-detail-page {
  background: transparent !important;
}

/* 所有可能的管理员页面容器背景修复 */
.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings {
  background: transparent !important;
}

/* 社区页面背景修复 - 使用!important确保优先级 */
.community-page {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.community-header {
  background: var(--bg-card, rgba(255, 255, 255, 0.95)) !important;
  backdrop-filter: blur(10px);
  margin: 0;
  width: 100%;
}

.community-content {
  background: transparent !important;
}

/* 社区页面特定背景修复 */
.community-page::before {
  display: none !important;
}

.community-page::after {
  display: none !important;
}

/* 系统设置页面背景修复 */
.settings-page {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 确保所有卡片和容器使用正确的背景 */
.admin-stat-card,
.admin-data-table,
.settings-section,
.project-card,
.user-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
}

/* 全局背景修复 - 确保所有页面容器都使用透明背景 */
.admin-page-container,
.community-page,
.user-detail-page,
.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings,
.settings-page,
.app-container,
.main-content,
.content-area,
.page-container,
.project-page,
.project-detail,
.user-profile,
.system-settings {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* 确保卡片背景与主背景融合 */
.card,
.admin-card,
.project-card,
.user-card,
.settings-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 模态框和弹窗背景修复 */
.modal,
.dialog,
.popup,
.dropdown-menu {
  background: var(--bg-card) !important;
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
}

/* 响应式背景修复 */
@media (max-width: 768px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }
}

@media (max-width: 480px) {
  .admin-page-container {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }
}
/* 大屏幕优化样式 - 专门解决大屏幕下的显示问题 */

/* 基础大屏幕优化 (1200px+) */
@media (min-width: 1200px) {
  /* 全局字体缩放 */
  html {
    font-size: 18px; /* 从16px增加到18px */
  }

  /* 页面标题优化 */
  .page-title,
  .page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
  }

  /* 卡片内容优化 */
  .card {
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
  }

  .card-title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-lg);
  }

  .card-content,
  .card-body {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  /* 表单元素优化 */
  .form-group {
    margin-bottom: var(--spacing-xl);
  }

  .form-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
  }

  .form-control {
    font-size: 1.1rem;
    padding: 14px 18px;
    border-radius: 8px;
  }

  .form-control:focus {
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
  }

  /* 按钮优化 */
  .btn {
    font-size: 1.1rem;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
  }

  .btn-lg {
    font-size: 1.2rem;
    padding: 18px 36px;
  }

  /* 导航优化 */
  .nav-link {
    font-size: 1.1rem;
    padding: 12px 24px;
  }

  /* 表格优化 */
  .table {
    font-size: 1rem;
  }

  .table th,
  .table td {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .table th {
    font-size: 1.1rem;
    font-weight: 600;
  }

  /* 列表优化 */
  .list-group-item {
    font-size: 1.1rem;
    padding: var(--spacing-lg);
  }

  /* 徽章和标签优化 */
  .badge {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  /* 警告和提示优化 */
  .alert {
    font-size: 1.1rem;
    padding: var(--spacing-lg);
  }
}

/* 超大屏幕优化 (1440px+) */
@media (min-width: 1440px) {
  /* 进一步增大字体 */
  html {
    font-size: 20px;
  }

  .page-title,
  .page-header h1 {
    font-size: 2.8rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-content,
  .card-body {
    font-size: 1.2rem;
    line-height: 1.7;
  }

  .form-label {
    font-size: 1.2rem;
  }

  .form-control {
    font-size: 1.2rem;
    padding: 16px 20px;
  }

  .btn {
    font-size: 1.2rem;
    padding: 16px 32px;
  }

  .btn-lg {
    font-size: 1.3rem;
    padding: 20px 40px;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 14px 28px;
  }

  .table {
    font-size: 1.1rem;
  }

  .table th {
    font-size: 1.2rem;
  }

  .list-group-item {
    font-size: 1.2rem;
    padding: var(--spacing-xl);
  }

  .alert {
    font-size: 1.2rem;
    padding: var(--spacing-xl);
  }
}

/* 4K屏幕优化 (1920px+) */
@media (min-width: 1920px) {
  html {
    font-size: 22px;
  }

  .page-title,
  .page-header h1 {
    font-size: 3.2rem;
  }

  .card {
    padding: calc(var(--spacing-xl) * 1.5);
  }

  .card-title {
    font-size: 1.6rem;
  }

  .card-content,
  .card-body {
    font-size: 1.3rem;
    line-height: 1.8;
  }

  .form-control {
    font-size: 1.3rem;
    padding: 18px 24px;
  }

  .btn {
    font-size: 1.3rem;
    padding: 18px 36px;
  }

  .btn-lg {
    font-size: 1.4rem;
    padding: 22px 44px;
  }
}

/* 项目网格大屏幕优化 */
@media (min-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: var(--spacing-xl);
  }
}

@media (min-width: 1440px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: var(--spacing-xxl);
  }
}

@media (min-width: 1920px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(550px, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: calc(var(--spacing-xxl) * 1.5);
  }
}

/* 统计卡片大屏幕优化 */
@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
  }
}

@media (min-width: 1440px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xxl);
  }
}

/* 内容区域最大宽度限制，避免过度拉伸 */
@media (min-width: 2560px) {
  .page-container {
    max-width: 2400px;
    margin: 0 auto;
  }
}
/* AI工作流样式 - 白蓝色主题 */

/* 一体化视图样式 */
.workflow-container.all .workflow-block {
  margin-bottom: 2rem;
}

/* 模块标题样式 */
.workflow-block h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #1565c0;
}

/* 图片上传按钮样式 */
.workflow-block input[type="file"] {
  display: block;
  width: 100%;
  padding: 12px;
  border: 2px dashed rgba(66, 133, 244, 0.3);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.workflow-block input[type="file"]:hover {
  border-color: rgba(66, 133, 244, 0.5);
  background: white;
}

/* 添加类别按钮 */
button.add-category {
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

button.add-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

/* 样本预览区域 */
.samples-preview {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(66, 133, 244, 0.1);
  min-height: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* 模型训练按钮 */
button.train-button {
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

button.train-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

button.train-button:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 训练进度区域 */
.training-progress {
  padding: 1.5rem;
  border: 1px solid rgba(66, 133, 244, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.training-complete {
  padding: 1.5rem;
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(56, 142, 60, 0.1) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

/* 推理结果区域 */
.inference-results {
  padding: 1.5rem;
  border: 1px solid rgba(66, 133, 244, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  min-height: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* 导出说明 */
.export-note {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

/* 标签页按钮样式改进 */
.workflow-tabs button {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.workflow-tabs button.active {
  box-shadow: 0 2px 5px rgba(123, 31, 162, 0.3);
  border-color: #7b1fa2;
}

/* 数据集信息卡片 */
.dataset-info-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: white;
}

.dataset-info-title {
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* 界面按钮样式 */
.primary-button {
  background-color: #7b1fa2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.primary-button:hover {
  background-color: #6a1b9a;
}

.primary-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* AI工作流页面样式 */
.ai-workflow-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
}

/* 工作流进度条样式 */
.workflow-progress {
  position: relative;
}

/* 进度条动画 */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.loading-animation {
  animation: pulse 2s infinite;
}

/* 工作流阶段样式 */
.workflow-stage {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stage-header {
  margin-bottom: 1rem;
  text-align: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(66, 133, 244, 0.3);
  backdrop-filter: blur(10px);
}

.stage-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stage-header p {
  margin: 0.5rem 0 0 0;
  opacity: 0.95;
  font-size: 0.9rem;
  font-weight: 400;
}

/* 数据采集阶段样式 */
.data-collection-stage .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.data-collection-stage .col-left,
.data-collection-stage .col-right {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  transition: all 0.3s ease;
}

.data-collection-stage .col-left:hover,
.data-collection-stage .col-right:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.category-management h3,
.webcam-capture h3,
.file-upload h3 {
  color: #1565c0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 2px solid rgba(66, 133, 244, 0.2);
  padding-bottom: 0.75rem;
}

/* 按钮样式 */
.primary-button {
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.primary-button:hover {
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.primary-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.next-stage-btn {
  background: linear-gradient(135deg, #4caf50, #45a049);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.next-stage-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* 样本预览网格 */
.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
}

.sample-item img {
  transition: transform 0.2s ease;
}

.sample-item img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 训练阶段样式 */
.training-stage .sample-summary {
  margin-bottom: 30px;
}

.category-summary {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-summary:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.training-instruction {
  border-left: 4px solid #2196f3;
}

.training-instruction ol {
  padding-left: 25px;
}

.training-instruction li {
  margin-bottom: 8px;
  font-size: 15px;
}

.external-training {
  position: relative;
  overflow: hidden;
}

.external-training::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff9800, #f57c00);
  border-radius: 10px;
  z-index: -1;
}

/* 预览阶段样式 */
.preview-stage .model-loader {
  border-left: 4px solid #2196f3;
}

.mode-tabs {
  background: white;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-tabs button {
  flex: 1;
  transition: all 0.3s ease;
}

.mode-tabs button.active {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* 预测结果样式 */
.prediction-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prediction-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.prediction-bar {
  position: relative;
  overflow: hidden;
}

.prediction-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 工作流完成样式 */
.workflow-completion {
  background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
  border: 2px solid #4caf50;
  position: relative;
  overflow: hidden;
}

.workflow-completion::before {
  content: '🎉';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 100px;
  opacity: 0.1;
  transform: rotate(15deg);
}

/* 帮助区域样式 */
.workflow-help {
  border-left: 4px solid #2196f3;
}

.workflow-help ul {
  padding-left: 25px;
}

.workflow-help li {
  margin-bottom: 8px;
  position: relative;
}

.workflow-help li::before {
  content: '✓';
  position: absolute;
  left: -20px;
  color: #4caf50;
  font-weight: bold;
}

/* 大屏幕响应式优化 (1200px+) */
@media (min-width: 1200px) {
  /* 压缩整体布局间距 */
  .workflow-header-section {
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .project-info-section h2 {
    font-size: 1.5rem !important;
  }

  .current-step-container h3 {
    font-size: 1.1rem !important;
  }

  .current-step-container p {
    font-size: 0.8rem !important;
  }

  /* 样本预览图优化 */
  .category-images-scroll {
    max-height: 240px !important;
  }

  .category-images-scroll > div {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
    min-height: 120px !important;
  }

  .category-images-scroll > div > div {
    height: 120px !important;
  }

  .category-images-scroll img {
    height: 120px !important;
  }

  /* 按钮大小优化 */
  .action-buttons-container button {
    padding: 16px 32px !important;
    font-size: 18px !important;
    min-width: 200px !important;
  }

  /* 摄像头控制按钮优化 */
  .camera-section button {
    padding: 16px 24px !important;
    font-size: 16px !important;
  }

  /* 上传图片按钮优化 */
  .camera-section label {
    padding: 16px 24px !important;
    font-size: 16px !important;
  }

  /* 类别卡片字体优化 */
  .category-card .category-name {
    font-size: 18px !important;
  }

  .category-card .sample-count {
    font-size: 16px !important;
  }

  .category-card .sample-status {
    font-size: 20px !important;
  }

  /* 类别删除按钮优化 */
  .category-card .delete-category-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 16px !important;
  }

  /* 样本删除按钮优化 */
  .category-images-scroll .delete-sample-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 14px !important;
  }

  /* 采集进度标题优化 */
  .progress-section h3 {
    font-size: 22px !important;
  }

  /* 采集进度统计卡片优化 */
  .progress-section .stats-card {
    padding: 18px !important;
  }

  .progress-section .stats-number {
    font-size: 32px !important;
  }

  .progress-section .stats-label {
    font-size: 16px !important;
  }

  /* 采集进度条优化 - 移除高度限制 */
  .progress-scroll-area {
    max-height: none !important;
    overflow: visible !important;
  }

  .progress-scroll-area .progress-item-name {
    font-size: 16px !important;
  }

  .progress-scroll-area .progress-item-count {
    font-size: 16px !important;
  }

  /* 状态提示文字优化 */
  .collection-status-text {
    font-size: 16px !important;
  }

  /* 添加新样本按钮文字优化 */
  .add-sample-text {
    font-size: 16px !important;
  }
}

@media (min-width: 1440px) {
  /* 超大屏幕优化 */
  .project-info-section h2 {
    font-size: 1.6rem !important;
  }

  .current-step-container h3 {
    font-size: 1.2rem !important;
  }

  .current-step-container p {
    font-size: 0.9rem !important;
  }

  .category-images-scroll {
    max-height: 280px !important;
  }

  .category-images-scroll > div {
    grid-template-columns: repeat(7, 1fr) !important;
    min-height: 140px !important;
  }

  .category-images-scroll > div > div {
    height: 140px !important;
  }

  .category-images-scroll img {
    height: 140px !important;
  }

  .action-buttons-container button {
    padding: 20px 40px !important;
    font-size: 20px !important;
    min-width: 240px !important;
  }

  .camera-section button {
    padding: 18px 28px !important;
    font-size: 18px !important;
  }

  .camera-section label {
    padding: 18px 28px !important;
    font-size: 18px !important;
  }

  .category-card .category-name {
    font-size: 20px !important;
  }

  .category-card .sample-count {
    font-size: 18px !important;
  }

  .category-card .sample-status {
    font-size: 22px !important;
  }

  .category-card .delete-category-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 18px !important;
  }

  .category-images-scroll .delete-sample-btn {
    width: 22px !important;
    height: 22px !important;
    font-size: 16px !important;
  }

  .progress-section h3 {
    font-size: 24px !important;
  }

  .progress-section .stats-card {
    padding: 22px !important;
  }

  .progress-section .stats-number {
    font-size: 36px !important;
  }

  .progress-section .stats-label {
    font-size: 18px !important;
  }

  /* 采集进度条优化 - 移除高度限制 */
  .progress-scroll-area {
    max-height: none !important;
    overflow: visible !important;
  }

  .progress-scroll-area .progress-item-name {
    font-size: 18px !important;
  }

  .progress-scroll-area .progress-item-count {
    font-size: 18px !important;
  }

  /* 状态提示文字优化 */
  .collection-status-text {
    font-size: 18px !important;
  }

  /* 添加新样本按钮文字优化 */
  .add-sample-text {
    font-size: 18px !important;
  }
}

@media (min-width: 1920px) {
  /* 4K屏幕优化 */
  .project-info-section h2 {
    font-size: 1.8rem !important;
  }

  .current-step-container h3 {
    font-size: 1.3rem !important;
  }

  .current-step-container p {
    font-size: 1rem !important;
  }

  .category-images-scroll {
    max-height: 350px !important;
  }

  .category-images-scroll > div {
    grid-template-columns: repeat(8, 1fr) !important;
    min-height: 180px !important;
    gap: 16px !important;
  }

  .category-images-scroll > div > div {
    height: 180px !important;
  }

  .category-images-scroll img {
    height: 180px !important;
  }

  .action-buttons-container button {
    padding: 24px 48px !important;
    font-size: 24px !important;
    min-width: 280px !important;
  }

  .camera-section button {
    padding: 20px 32px !important;
    font-size: 20px !important;
  }

  .camera-section label {
    padding: 20px 32px !important;
    font-size: 20px !important;
  }

  .category-card .category-name {
    font-size: 22px !important;
  }

  .category-card .sample-count {
    font-size: 20px !important;
  }

  .category-card .sample-status {
    font-size: 26px !important;
  }

  .category-card .delete-category-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 20px !important;
  }

  .category-images-scroll .delete-sample-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 18px !important;
  }

  .progress-section h3 {
    font-size: 28px !important;
  }

  .progress-section .stats-card {
    padding: 26px !important;
  }

  .progress-section .stats-number {
    font-size: 42px !important;
  }

  .progress-section .stats-label {
    font-size: 20px !important;
  }

  /* 采集进度条优化 - 移除高度限制 */
  .progress-scroll-area {
    max-height: none !important;
    overflow: visible !important;
  }

  .progress-scroll-area .progress-item-name {
    font-size: 20px !important;
  }

  .progress-scroll-area .progress-item-count {
    font-size: 20px !important;
  }

  /* 状态提示文字优化 */
  .collection-status-text {
    font-size: 20px !important;
  }

  /* 添加新样本按钮文字优化 */
  .add-sample-text {
    font-size: 20px !important;
  }
}

/* 响应式设计 - 使用新的断点系统 */
@media (max-width: 767px) {
  .ai-workflow-page {
    padding: var(--spacing-md);
  }

  .stage-navigation {
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }

  .stage-navigation button {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-sm);
  }

  .data-collection-stage .row {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .workflow-progress {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .sample-summary {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .samples-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: var(--spacing-sm);
  }

  .workflow-content {
    padding: var(--spacing-lg) !important;
    margin: var(--spacing-md) 0;
  }

  .stage-header {
    padding: var(--spacing-lg);
    text-align: center;
  }

  .stage-header h2 {
    font-size: var(--font-size-xl);
  }

  .stage-header p {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 479px) {
  .ai-workflow-page {
    padding: var(--spacing-sm);
  }

  .page-header h1 {
    font-size: var(--font-size-xl);
  }

  .stage-header {
    padding: var(--spacing-md);
  }

  .stage-header h2 {
    font-size: var(--font-size-lg);
  }

  .stage-header p {
    font-size: var(--font-size-xs);
  }

  .col-left, .col-right {
    padding: var(--spacing-md);
  }

  .primary-button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }

  .workflow-content {
    padding: var(--spacing-md) !important;
  }

  .stage-navigation button {
    padding: var(--spacing-sm);
    font-size: var(--font-size-xs);
  }

  .samples-grid {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: var(--spacing-xs);
  }
}

/* 平板响应式设计 */
@media (min-width: 768px) and (max-width: 1023px) {
  .ai-workflow-page {
    padding: var(--spacing-lg);
  }

  .data-collection-stage .row {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .workflow-content {
    padding: var(--spacing-xl) !important;
  }

  .stage-navigation {
    gap: var(--spacing-md);
  }

  .stage-navigation button {
    padding: var(--spacing-md) var(--spacing-lg);
  }
}

/* 大屏幕优化 */
@media (min-width: 1024px) {
  .ai-workflow-page {
    padding: var(--spacing-xl);
  }

  .workflow-content {
    padding: var(--spacing-xxl) !important;
  }

  .data-collection-stage .row {
    gap: var(--spacing-xxl);
  }

  .stage-navigation {
    gap: var(--spacing-lg);
  }
}

/* 加载和错误状态样式 */
.loading, .error, .not-found {
  text-align: center;
  color: #666;
}

.loading div, .error div, .not-found div {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* 输入框和选择框样式 */
input[type="text"], input[type="file"], select {
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

input[type="text"]:focus, select:focus {
  outline: none;
  border-color: #4285f4;
  background: white;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
  transform: translateY(-1px);
}

/* 摄像头容器样式 */
#collection-webcam-container, #preview-webcam-container {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(66, 133, 244, 0.05));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  transition: all 0.3s ease;
}

#collection-webcam-container:hover, #preview-webcam-container:hover {
  border-color: #4285f4;
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.2);
  transform: translateY(-2px);
}

/* 为确认对话框添加淡入动画 */
@keyframes dialog-fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 确保对话框按钮有悬停效果 */
.confirm-dialog-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* 模型预览阶段样式 */
.preview-stage {
  margin-bottom: 2rem;
}

.preview-stage .stage-content {
  display: flex;
  gap: 2rem;
  max-height: calc(100vh - 250px);
  overflow: auto;
}

.left-panel {
  flex: 0 0 40%;
}

.right-panel {
  flex: 1;
}

.data-summary, .training-summary {
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.data-summary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(66, 133, 244, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.data-summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.training-summary {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(56, 142, 60, 0.1) 100%);
  border: 1px solid rgba(76, 175, 80, 0.3);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.training-summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.realtime-validation {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(66, 133, 244, 0.2);
  height: auto;
  max-height: calc(100vh - 280px);
  overflow: auto;
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .data-collection-stage .row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .preview-stage .stage-content {
    flex-direction: column;
    gap: 1rem;
  }

  .left-panel {
    flex: none;
  }

  .stage-navigation {
    flex-direction: column;
    gap: 0.5rem;
  }

  .stage-navigation button {
    min-width: auto;
    width: 100%;
  }

  .stage-header {
    padding: 1.5rem;
  }

  .stage-header h2 {
    font-size: 1.25rem;
  }
}

/* 工作流页面整体样式 */
.ai-workflow-page {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

.ai-workflow-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 30%, #4285f4 100%);
  z-index: -1;
}

/* 压缩标题区域空间 */
.workflow-header-section {
  padding: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

.project-info-section {
  min-height: 40px !important;
}

.project-info-section h2 {
  font-size: 1.4rem !important;
}

.current-step-container {
  padding: 0.5rem 0.75rem !important;
  min-height: 40px !important;
}

.current-step-container h3 {
  font-size: 1rem !important;
  margin: 0 !important;
}

.current-step-container p {
  font-size: 0.75rem !important;
  margin: 0.25rem 0 0 0 !important;
}

/* 压缩按钮区域空间 */
.workflow-buttons-section {
  padding: 0.75rem !important;
}

.workflow-stage-button {
  padding: 0.75rem 1.5rem !important;
  min-height: 50px !important;
  font-size: 1rem !important;
}

/* 防止组件截断的通用规则 */
.workflow-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.workflow-content {
  flex: 1;
  overflow: visible;
}

/* 确保卡片可以向下扩展 */
.collection-layout {
  min-height: 500px !important;
  height: auto !important;
}

/* 类别区域自适应高度 */
.categories-section {
  min-height: 350px;
  height: auto !important;
}

/* 摄像头区域自适应高度 */
.camera-section {
  min-height: 250px;
  height: auto !important;
}

/* 进度区域自适应高度 */
.progress-section {
  min-height: 250px;
  height: auto !important;
}

/* 响应式网格布局改进 */
@media (max-width: 1200px) {
  .collection-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 16px !important;
    height: auto !important;
  }

  .categories-section {
    grid-row: auto !important;
  }
}

/* 大屏幕下的文字大小改进 */
.collection-status-text,
.add-sample-text,
.progress-status-text {
  font-size: 14px;
  transition: font-size 0.3s ease;
}

/* 确保进度区域在大屏幕下显示完整 */
.progress-scroll-area {
  max-height: 250px !important;
  overflow-y: auto !important;
}

/* 合并卡片的响应式设计 */
.workflow-header-section {
  transition: all 0.3s ease;
}

/* 按钮区域响应式 */
.workflow-buttons-section {
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  /* 移动端优化 */
  .workflow-header-section > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .workflow-buttons-section {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .workflow-stage-button {
    width: 100% !important;
    min-width: auto !important;
    flex: none !important;
  }

  .project-info-section h2 {
    font-size: 1.3rem !important;
  }

  .current-step-container {
    padding: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  /* 小屏幕进一步优化 */
  .workflow-header-section {
    padding: 0.75rem !important;
  }

  .workflow-stage-button {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    min-height: 40px !important;
  }
}

/* 数据采集和预览阶段的滚动条优化 */
.category-cards-scroll {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.progress-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}


.category-card {
  /* 类别卡片固定大小，确保缩略图正常显示 */
  min-width: 520px !important;
  max-width: 520px !important;
  height: 200px !important;
  flex-shrink: 0 !important; /* 防止卡片被压缩 */
}

/* 类别卡片滚动容器优化 */
.category-cards-scroll {
  /* 确保滚动条样式美观 */
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.category-cards-scroll::-webkit-scrollbar {
  width: 6px;
}

.category-cards-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.category-cards-scroll::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.category-cards-scroll::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
  .collection-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
  }

  .category-card {
    min-width: 300px !important;
    max-width: 300px !important;
    height: 180px !important;
  }

  .categories-section {
    grid-row: 1 !important;
  }

  .category-cards-scroll {
    max-height: 400px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .category-card {
    min-width: 450px !important;
    max-width: 450px !important;
    height: 190px !important;
  }

  .category-cards-scroll {
    max-height: 420px !important;
  }
}

/* 大屏幕下的置信度显示优化 */
@media (min-width: 1200px) {
  .confidence-display-panel {
    min-height: 450px !important;
    /* 移除max-height限制，允许向下延展 */
  }

  .progress-scroll-area {
    max-height: 350px !important;
  }

  .category-cards-scroll {
    max-height: 700px !important;
  }
}

@media (min-width: 1440px) {
  .confidence-display-panel {
    min-height: 500px !important;
    /* 移除max-height限制，允许向下延展 */
  }

  .progress-scroll-area {
    max-height: 400px !important;
  }

  .category-cards-scroll {
    max-height: 800px !important;
  }
}

@media (min-width: 1920px) {
  .confidence-display-panel {
    min-height: 600px !important;
    /* 移除max-height限制，允许向下延展 */
  }

  .progress-scroll-area {
    max-height: 450px !important;
  }

  .category-cards-scroll {
    max-height: 900px !important;
  }
}

/* 超大屏幕优化 (1950px+) - 针对用户反馈的响应式问题 */
@media (min-width: 1950px) {
  /* AI工作流页面整体优化 */
  .ai-workflow-page {
    padding: calc(var(--spacing-xl) * 1.5) !important;
    max-width: 2400px;
    margin: 0 auto;
  }

  /* 主容器优化 */
  .workflow-main-container {
    max-width: 2200px !important;
    padding: calc(var(--spacing-xl) * 1.2) !important;
  }

  /* 工作流内容区域优化 */
  .workflow-content {
    padding: calc(var(--spacing-xxl) * 1.5) !important;
    min-height: 800px !important;
  }

  /* 数据采集阶段优化 */
  .data-collection-stage .row {
    gap: calc(var(--spacing-xxl) * 1.5) !important;
    min-height: 700px !important;
  }

  .data-collection-stage .responsive-collection-grid {
    min-height: 650px !important;
    gap: calc(var(--spacing-xl) * 1.2) !important;
  }

  /* 各个面板的最小高度优化 */
  .categories-section,
  .camera-section,
  .progress-section {
    min-height: 500px !important;
  }

  /* 摄像头容器优化 */
  .webcam-container {
    min-height: 450px !important;
  }

  /* 模型训练阶段优化 */
  .category-cards-grid {
    gap: calc(var(--spacing-xl) * 1.2) !important;
    min-height: 600px !important;
  }

  .training-ready,
  .training-progress {
    min-height: 500px !important;
    padding: calc(var(--spacing-xl) * 1.2) !important;
  }

  /* 模型预览阶段优化 */
  .preview-stage .stage-content {
    min-height: 700px !important;
    gap: calc(var(--spacing-xl) * 1.2) !important;
  }

  .webcam-panel,
  .confidence-display-panel,
  .training-summary,
  .data-stats-panel {
    min-height: 500px !important;
    padding: calc(var(--spacing-xl) * 1.2) !important;
  }

  /* 置信度显示面板特别优化 */
  .confidence-display-panel {
    min-height: 700px !important;
  }

  .category-cards-scroll {
    max-height: 1000px !important;
  }

  .progress-scroll-area {
    max-height: 500px !important;
  }

  /* 按钮和导航优化 */
  .stage-navigation {
    gap: calc(var(--spacing-lg) * 1.5) !important;
  }

  .stage-navigation button {
    padding: calc(var(--spacing-md) * 1.2) calc(var(--spacing-lg) * 1.5) !important;
    font-size: 1.1rem !important;
  }

  /* 字体大小优化 */
  .stage-header h2 {
    font-size: 1.8rem !important;
  }

  .card-title,
  .panel-title {
    font-size: 1.4rem !important;
  }

  .card-content,
  .panel-content {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
  }
}/* Home页面样式 - 基于设计草稿重构 */

.home-container {
  min-height: 100vh;
  background: #f8fafc;
  color: #333;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 侧边栏样式 */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
  z-index: 40;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.sidebar-hidden {
  transform: translateX(-100%);
}

.sidebar-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.sidebar-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo-icon .lucide-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #3b82f6;
}

.sidebar-logo-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #bfdbfe;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-item-active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.nav-item .lucide-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.sidebar-user {
  margin-top: auto;
}

.user-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info {
  color: white;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.user-role {
  font-size: 0.75rem;
  color: #bfdbfe;
  margin: 0;
}

/* 遮罩层 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 30;
}

.overlay.hidden {
  display: none;
}

/* 主要内容区域 */
.content-area {
  margin-left: 0;
  transition: all 0.3s ease;
}

.content-shifted {
  margin-left: 280px;
}

/* 顶部导航栏 */
.top-nav {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
  height: 4rem;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1rem;
}

.menu-toggle {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: #f3f4f6;
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
  filter: invert(40%) sepia(10%) saturate(847%) hue-rotate(196deg) brightness(95%) contrast(90%);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.language-switch {
  display: flex;
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.lang-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: white;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.notification-btn {
  position: relative;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-btn:hover {
  background: #f3f4f6;
}

.notification-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
}

.notification-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  background: #ef4444;
  border-radius: 50%;
}

.login-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #2563eb;
}

.login-btn.logout {
  background: #ef4444;
}

.login-btn.logout:hover {
  background: #dc2626;
}

/* Hero 区域 */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: auto;
  display: flex;
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

/* Hero 区域布局 */
.hero-content-area {
  flex: 1.2;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}

.hero-components-area {
  flex: 1.8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

/* 组件轮播样式 */
.components-carousel {
  width: calc(100% - 50px);
  height: 650px;
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
  margin: 0 auto;
}

.components-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.component-slide {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  padding: 0 0.5rem;
  opacity: 0.7;
  transform: scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.component-slide:nth-child(1) {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.component-slide:nth-child(2) {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.visual-programming-widget,
.training-widget {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.8s ease-out;
}

.visual-programming-widget:hover,
.training-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

/* 组件内容淡入动画 */
.widget-header {
  animation: slideInDown 0.6s ease-out 0.2s both;
}

.programming-layout,
.training-layout {
  animation: slideInUp 0.6s ease-out 0.4s both;
}

.component-indicators {
  animation: slideInUp 0.6s ease-out 0.6s both;
}

/* 组件头部样式 */
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.widget-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

.compile-status,
.train-status {
  font-size: 0.875rem;
  color: #059669;
  font-weight: 500;
}

.programming-layout {
  display: flex;
  gap: 1rem;
  flex: 1;
}

.programming-blocks-area {
  flex: 1;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 0.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.programming-stats-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blockly-workspace {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 0.5rem;
  width: 100%;
  flex: 1;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
  box-sizing: border-box;
}

/* Webkit 浏览器滚动条样式 */
.blockly-workspace::-webkit-scrollbar {
  width: 6px;
}

.blockly-workspace::-webkit-scrollbar-track {
  background: transparent;
}

.blockly-workspace::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.5);
  border-radius: 3px;
}

.blockly-workspace::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.7);
}

.blockly-block {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 200px;
}

.blockly-block:hover {
  transform: translateX(2px);
}

/* 开始块 - 帽子形状 */
.start-block .block-hat {
  width: 100%;
  height: 8px;
  background: #4ade80;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.start-block .block-hat::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 15px;
  width: 20px;
  height: 8px;
  background: #4ade80;
  border-radius: 0 0 4px 4px;
}

.start-block .block-body {
  background: #4ade80;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0 4px 4px;
  margin-top: -1px;
}

/* 普通块 - 拼图形状 */
.blockly-block:not(.start-block) .block-notch {
  width: 100%;
  height: 8px;
  position: relative;
  background: inherit;
}

.blockly-block:not(.start-block) .block-notch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 20px;
  height: 8px;
  background: inherit;
  border-radius: 4px 4px 0 0;
}

.input-block .block-notch,
.input-block .block-body,
.input-block .block-connector {
  background: #60a5fa;
}

.process-block .block-notch,
.process-block .block-body,
.process-block .block-connector {
  background: #a78bfa;
}

.output-block .block-notch,
.output-block .block-body,
.output-block .block-connector {
  background: #fbbf24;
}

.end-block .block-notch,
.end-block .block-body {
  background: #ef4444;
}

.block-body {
  padding: 0.4rem 0.6rem;
  position: relative;
}

.block-text {
  font-size: 0.65rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-connector {
  width: 100%;
  height: 8px;
  position: relative;
  border-radius: 0 0 4px 4px;
}

.block-connector::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 15px;
  width: 20px;
  height: 8px;
  background: inherit;
  border-radius: 0 0 4px 4px;
}

/* 训练推理布局样式 */
.training-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.training-area,
.inference-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  max-height: -moz-fit-content;
  max-height: fit-content;
  min-width: 0;
}

.training-section,
.inference-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-height: 100%;
  overflow: hidden;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #e5e7eb;
}

/* 图像容器样式 */
.training-image-container,
.inference-image-container {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: #f3f4f6;
  flex-shrink: 0;
}

.training-image,
.inference-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  transition: all 0.3s ease;
  display: block;
  min-height: 100%;
  max-height: 100%;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  padding: 0.5rem;
  color: white;
  font-size: 0.75rem;
}

/* 进度条和指标样式 */
.training-progress,
.compile-progress {
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
}

.training-progress .training-metrics {
  margin-top: 0.5rem;
  gap: 0.25rem;
}

.training-progress .metric-item {
  padding: 0.2rem 0.375rem;
  font-size: 0.7rem;
  background: transparent;
  border: none;
}

.training-progress .metric-label,
.training-progress .metric-value {
  font-size: 0.7rem;
}

.progress-header,
.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.progress-label,
.metric-label,
.result-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.progress-value,
.metric-value,
.confidence-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
}

.progress-bar,
.confidence-bar {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill,
.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* 统计信息样式 */
.training-metrics,
.compile-stats {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex-shrink: 0;
}

.metric-item,
.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.inference-results {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.125rem;
}

.result-item .result-label {
  font-size: 0.75rem;
  text-align: left;
  font-weight: 500;
}

.result-item .confidence-value {
  font-size: 0.75rem;
  text-align: right;
  font-weight: 600;
}

/* 组件指示器样式 */
.component-indicators {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.component-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.component-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.component-indicator.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
  color: #1d4ed8;
}

.component-indicator .indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  transition: background 0.3s ease;
}

.component-indicator.active .indicator-dot {
  background: #3b82f6;
}

.indicator-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.component-indicator.active .indicator-label {
  color: #1d4ed8;
}

/* 动画效果 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.training-inference-layout {
  display: flex;
  gap: 1rem;
  flex: 1;
}

.training-module,
.inference-module {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.training-module .space-y-3 > *:not(:last-child),
.inference-module .space-y-3 > *:not(:last-child) {
  margin-bottom: 0.75rem;
}

.training-image-section,
.inference-image-section {
  position: relative;
  margin-bottom: 0.75rem;
}

/* 训练界面防重叠遮罩 */
.training-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50px;
  width: 50px;
  height: 100%;
  background: linear-gradient(to right, rgba(248, 250, 252, 0.8) 0%, rgba(248, 250, 252, 0.4) 50%, rgba(248, 250, 252, 0) 100%);
  border-radius: 1rem 0 0 1rem;
  z-index: -1;
}

.training-widget:hover {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.training-widget:hover::before {
  width: 80px;
  left: -80px;
}

/* 图片轮播样式 */
.training-image-section {
  margin-bottom: 1rem;
}

.image-carousel {
  position: relative;
}

.image-container {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f3f4f6;
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.training-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  transition: all 0.5s ease;
  background: white;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
}

.image-label {
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  animation: pulse 2s infinite;
}

.image-indicators {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(156, 163, 175, 0.5);
  transition: all 0.3s ease;
}

.indicator.active {
  background: #3b82f6;
  transform: scale(1.2);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 66.67%; /* 左侧2/3空间 */
  position: relative;
  z-index: 3;
}

.hero-content {
  text-align: center;
  margin-bottom: 1rem;
}

.hero-logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.logo-img {
  height: 120px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.title-section {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin: 0;
  animation: pulse 2s infinite;
}

.title-highlight {
  color: #3b82f6;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin: 1rem auto 0 auto;
  text-align: center;
  max-width: -moz-fit-content;
  max-width: fit-content;
}

.hero-description {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.6;
  max-width: 600px;
  margin: 2rem auto 3rem auto;
  text-align: center;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  border-color: #3b82f6;
  color: #3b82f6;
  background: white;
}

.btn-primary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  border-color: #3b82f6;
  color: #3b82f6;
  background: white;
}

.btn-secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

.action-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: currentColor;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 2rem;
  height: 2rem;
  background: rgba(30, 64, 175, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
}

.stat-icon-img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
  color: #1e40af;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
}

.stat-number {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.stat-card-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.stat-card-blue:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.stat-card-green {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #1e40af;
  border: 1px solid #bfdbfe;
  animation-delay: 1s;
}

.stat-card-green:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.stat-card-purple {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #1e40af;
  border: 1px solid #bfdbfe;
  animation-delay: 2s;
}

.stat-card-purple:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.stat-card-orange {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #1e40af;
  border: 1px solid #bfdbfe;
  animation-delay: 3s;
}

.stat-card-orange:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}


.stat-icon {
  width: 2rem;
  height: 2rem;
  background: rgba(30, 64, 175, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
}

.stat-icon-img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
  color: #1e40af;
}


.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
}

.stat-number {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

/* 平台特色区域 */
.features-section {
  padding: 5rem 0;
  background: white;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
}

.features-description {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 32rem;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
}

.feature-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.feature-card-blue:hover {
  border-color: #3b82f6;
}

.feature-card-green:hover {
  border-color: #10b981;
}

.feature-card-purple:hover {
  border-color: #8b5cf6;
}

.feature-card-orange:hover {
  border-color: #f59e0b;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  transition: all 0.3s ease;
}

.feature-card-blue .feature-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.feature-card-green .feature-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.feature-card-purple .feature-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.feature-card-orange .feature-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon-img {
  width: 2rem;
  height: 2rem;
  filter: brightness(0) invert(1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
}

.feature-description {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* 底部 */
.footer {
  background: #111827;
  color: white;
  padding: 3rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 2rem;
  height: 2rem;
  -o-object-fit: contain;
     object-fit: contain;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-subtitle {
  color: #9ca3af;
  margin: 0;
}

.footer-links-title,
.footer-contact-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.footer-contact-info {
  color: #9ca3af;
}

.footer-contact-info p {
  margin: 0.5rem 0;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: #9ca3af;
  margin: 0;
}

.footer-meta {
  display: flex;
  gap: 1.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* 动画 */
@keyframes slideInLeft {
  0% {
    transform: translateX(-100%) translateY(-50%);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(-50%);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-10px); 
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale3d(1, 1, 1);
  }
  50% {
    transform: scale3d(1.05, 1.05, 1.05);
  }
}

/* 响应式设计 */
@media (max-width: 1023px) {
  .content-shifted {
    margin-left: 0;
  }
  
  .overlay {
    display: block;
  }
}

/* 中等屏幕优化 */
@media (max-width: 1200px) and (min-width: 768px) {
  .hero-content-area {
    flex: 1.5;
    padding: 1.5rem;
  }
  
  .hero-components-area {
    flex: 1.5;
    padding: 1.5rem;
  }
  
  .components-carousel {
    height: 520px;
  }
  
  .hero-container {
    max-width: 500px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .training-image-container,
  .inference-image-container {
    height: 160px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding: 0.5rem 0;
  }
  
  .hero-content-area {
    flex: none;
    padding: 1rem;
    order: 1;
  }
  
  .hero-components-area {
    flex: none;
    padding: 1rem;
    order: 2;
  }
  
  .hero-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }
  
  .components-carousel {
    height: 600px;
  }
  
  .visual-programming-widget,
  .training-widget {
    padding: 1rem;
  }
  
  .programming-layout {
    flex-direction: column;
    gap: 1rem;
  }
  
  .training-layout {
    flex-direction: row;
    gap: 0.75rem;
  }
  
  .programming-blocks-area {
    height: 200px;
    max-height: 200px;
    display: block;
  }
  
  .blockly-workspace {
    height: calc(200px - 1.5rem);
    max-height: calc(200px - 1.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    flex: none;
  }
  
  .training-image-container,
  .inference-image-container {
    height: 140px;
    min-height: 140px;
    max-height: 140px;
    flex-shrink: 0;
  }
  
  .component-indicators {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .component-indicator {
    padding: 0.375rem 0.75rem;
  }
  
  .logo-img {
    height: 80px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .action-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .features-title {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .hero-content-area {
    padding: 1.5rem 0.75rem;
  }
  
  .hero-components-area {
    padding: 0.75rem;
  }
  
  .components-carousel {
    height: 400px;
  }
  
  .visual-programming-widget,
  .training-widget {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  
  .training-image-container,
  .inference-image-container {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    flex-shrink: 0;
  }
  
  .blockly-workspace {
    height: calc(150px - 1.5rem);
    max-height: calc(150px - 1.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    flex: none;
  }
  
  .programming-blocks-area {
    height: 150px;
    max-height: 150px;
    display: block;
  }
  
  .component-indicator {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .logo-img {
    height: 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-right {
    gap: 0.5rem;
  }
  
  .lang-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .login-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Lucide图标通用样式 */
.lucide-icon {
  display: inline-block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}/* 分页组件样式 */
.pagination-wrapper {
  width: 100%;
  margin-top: 24px;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(66, 133, 244, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  gap: 20px;
  flex-wrap: wrap;
  min-height: 80px;
}

/* 分页信息 */
.pagination-info {
  flex-shrink: 0;
  min-width: 0; /* 允许收缩 */
}

.pagination-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.pagination-text strong {
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

/* 分页控件 */
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* 页面大小选择器 */
.page-size-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.page-size-label,
.page-size-unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary, #64748b);
  white-space: nowrap;
}

.page-size-select {
  padding: 8px 32px 8px 14px;
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(10px);
  color: var(--text-primary, #1e293b);
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%234285f4' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  transition: all 0.3s ease;
  min-width: 70px;
}

.page-size-select:hover {
  border-color: rgba(66, 133, 244, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.page-size-select:focus {
  outline: none;
  border-color: var(--text-accent, #4285f4);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* 分页按钮组 */
.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 页码按钮容器 */
.page-numbers {
  display: flex;
  gap: 4px;
  margin: 0 8px;
}

/* 通用按钮样式 */
.pagination-btn {
  padding: 10px 16px;
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  color: var(--text-primary, #1e293b);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pagination-btn:hover:not(.disabled):not(.ellipsis) {
  border-color: rgba(66, 133, 244, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.15);
}

.pagination-btn:active:not(.disabled):not(.ellipsis) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

/* 页码按钮 */
.page-btn {
  min-width: 44px;
  padding: 10px 12px;
}

/* 当前页按钮 */
.pagination-btn.active {
  background: linear-gradient(135deg, var(--text-accent, #4285f4) 0%, #1976d2 100%);
  color: white;
  border-color: var(--text-accent, #4285f4);
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
  font-weight: 600;
}

.pagination-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

/* 禁用状态 */
.pagination-btn.disabled {
  background: rgba(248, 250, 252, 0.6);
  color: var(--text-muted, #94a3b8);
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.2);
}

.pagination-btn.disabled:hover {
  transform: none;
  box-shadow: none;
  background: rgba(248, 250, 252, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
}

/* 省略号按钮 */
.pagination-btn.ellipsis {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted, #94a3b8);
  cursor: default;
  font-weight: 400;
}

.pagination-btn.ellipsis:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  border-color: transparent;
}

/* 响应式设计 */

/* 大屏幕 (1200px+) */
@media (min-width: 1200px) {
  .pagination-container {
    padding: 28px 40px;
  }
  
  .pagination-text {
    font-size: 16px;
  }
  
  .page-size-label,
  .page-size-unit,
  .page-size-select,
  .pagination-btn {
    font-size: 16px;
  }
  
  .pagination-btn {
    padding: 12px 18px;
  }
  
  .page-btn {
    min-width: 48px;
    padding: 12px 14px;
  }
}

/* 中等屏幕 (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .pagination-container {
    padding: 20px 24px;
    gap: 16px;
  }
  
  .pagination-controls {
    gap: 20px;
  }
  
  .pagination-text {
    font-size: 14px;
  }
  
  .page-size-label,
  .page-size-unit {
    font-size: 14px;
  }
  
  .page-size-select {
    font-size: 14px;
    padding: 7px 28px 7px 12px;
    min-width: 65px;
  }
  
  .pagination-btn {
    font-size: 14px;
    padding: 9px 14px;
  }
  
  .page-btn {
    min-width: 40px;
    padding: 9px 10px;
  }
}

/* 小屏幕 (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
  .pagination-container {
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px;
    align-items: stretch;
  }
  
  .pagination-info {
    text-align: center;
    order: 2;
  }
  
  .pagination-controls {
    order: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .page-size-selector {
    order: 3;
    justify-content: center;
    margin-top: 8px;
  }
  
  .pagination-text {
    font-size: 13px;
  }
  
  .page-size-label,
  .page-size-unit {
    font-size: 13px;
  }
  
  .page-size-select {
    font-size: 13px;
    padding: 6px 26px 6px 10px;
    min-width: 60px;
  }
  
  .pagination-btn {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .page-btn {
    min-width: 36px;
    padding: 8px 8px;
  }
  
  .pagination-buttons {
    gap: 6px;
  }
  
  .page-numbers {
    gap: 3px;
    margin: 0 6px;
  }
}

/* 超小屏幕 (≤480px) */
@media (max-width: 480px) {
  .pagination-container {
    flex-direction: column;
    gap: 16px;
    padding: 16px 12px;
    align-items: stretch;
  }
  
  .pagination-info {
    text-align: center;
    order: 2;
  }
  
  .pagination-controls {
    order: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .page-size-selector {
    order: 3;
    justify-content: center;
    margin-top: 6px;
    gap: 6px;
  }
  
  .pagination-text {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .page-size-label,
  .page-size-unit {
    font-size: 12px;
  }
  
  .page-size-select {
    font-size: 12px;
    padding: 5px 24px 5px 8px;
    min-width: 55px;
  }
  
  .pagination-btn {
    font-size: 12px;
    padding: 7px 10px;
  }
  
  .page-btn {
    min-width: 32px;
    padding: 7px 6px;
  }
  
  .pagination-buttons {
    gap: 4px;
  }
  
  .page-numbers {
    gap: 2px;
    margin: 0 4px;
  }
  
  /* 在超小屏幕上隐藏部分页码，只显示关键页码 */
  .page-numbers .page-btn:not(.active):not(:first-child):not(:last-child):not(.ellipsis) {
    display: none;
  }
  
  .page-numbers .page-btn:nth-child(-n+2),
  .page-numbers .page-btn:nth-last-child(-n+2),
  .page-numbers .page-btn.active,
  .page-numbers .page-btn.ellipsis {
    display: flex;
  }
}

/* 超超小屏幕 (≤360px) */
@media (max-width: 360px) {
  .pagination-container {
    padding: 12px 8px;
    gap: 12px;
  }
  
  .pagination-text {
    font-size: 11px;
  }
  
  .page-size-label,
  .page-size-unit,
  .page-size-select,
  .pagination-btn {
    font-size: 11px;
  }
  
  .pagination-btn {
    padding: 6px 8px;
  }
  
  .page-btn {
    min-width: 28px;
    padding: 6px 4px;
  }
  
  .page-size-select {
    padding: 4px 20px 4px 6px;
    min-width: 50px;
  }
}

/* 高对比度和无障碍支持 */
@media (prefers-contrast: high) {
  .pagination-btn {
    border-width: 3px;
  }
  
  .pagination-btn.active {
    border-color: #000;
    background: #000;
  }
  
  .pagination-text strong {
    font-weight: 700;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .pagination-btn,
  .page-size-select {
    transition: none;
  }
  
  .pagination-btn:hover:not(.disabled):not(.ellipsis) {
    transform: none;
  }
}

/* 页面跳转器 */
.page-jumper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  flex-shrink: 0;
}

.jumper-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary, #64748b);
  white-space: nowrap;
}

.jumper-input {
  width: 60px;
  padding: 8px 10px;
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(10px);
  color: var(--text-primary, #1e293b);
  transition: all 0.3s ease;
}

.jumper-input:hover {
  border-color: rgba(66, 133, 244, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

.jumper-input:focus {
  outline: none;
  border-color: var(--text-accent, #4285f4);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.jumper-btn {
  padding: 8px 16px;
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  color: var(--text-primary, #1e293b);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.jumper-btn:hover {
  border-color: rgba(66, 133, 244, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

/* 首页和末页按钮样式 */
.first-btn,
.last-btn {
  padding: 10px 14px;
  font-size: 14px;
}

/* 响应式：页面跳转器 */
@media (max-width: 1199px) and (min-width: 768px) {
  .jumper-label {
    font-size: 14px;
  }
  
  .jumper-input,
  .jumper-btn {
    font-size: 14px;
    padding: 7px 10px;
  }
  
  .jumper-input {
    width: 55px;
  }
  
  .first-btn,
  .last-btn {
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (max-width: 767px) and (min-width: 481px) {
  .page-jumper {
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
    order: 4;
  }
  
  .jumper-label {
    font-size: 13px;
  }
  
  .jumper-input,
  .jumper-btn {
    font-size: 13px;
    padding: 6px 8px;
  }
  
  .jumper-input {
    width: 50px;
  }
  
  .first-btn,
  .last-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page-jumper {
    margin-left: 0;
    margin-top: 6px;
    justify-content: center;
    order: 4;
    gap: 6px;
  }
  
  .jumper-label {
    font-size: 12px;
  }
  
  .jumper-input,
  .jumper-btn {
    font-size: 12px;
    padding: 5px 6px;
  }
  
  .jumper-input {
    width: 45px;
  }
  
  .first-btn,
  .last-btn {
    padding: 7px 8px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .jumper-label {
    font-size: 11px;
  }
  
  .jumper-input,
  .jumper-btn {
    font-size: 11px;
    padding: 4px 5px;
  }
  
  .jumper-input {
    width: 40px;
  }
  
  .first-btn,
  .last-btn {
    padding: 6px 6px;
    font-size: 10px;
  }
}

/* 响应式设计 - 防止超出卡片布局 */
@media (max-width: 1024px) {
  .pagination-container {
    padding: 20px 24px;
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  
  .pagination-info {
    text-align: center;
    margin-bottom: 8px;
  }
  
  .pagination-controls {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .page-size-selector {
    order: 1;
    justify-content: center;
  }
  
  .pagination-buttons {
    order: 2;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .page-jumper {
    order: 3;
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .pagination-container {
    padding: 16px 20px;
    gap: 12px;
  }
  
  .pagination-text {
    font-size: 14px;
  }
  
  .pagination-buttons {
    gap: 6px;
  }
  
  .pagination-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .page-btn {
    min-width: 36px;
    height: 36px;
  }
  
  .page-size-select {
    font-size: 13px;
    padding: 6px 8px;
  }
  
  .page-size-label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pagination-container {
    padding: 12px 16px;
    gap: 10px;
  }
  
  .pagination-text {
    font-size: 13px;
  }
  
  .pagination-buttons {
    gap: 4px;
  }
  
  .pagination-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .page-btn {
    min-width: 32px;
    height: 32px;
  }
  
  .prev-btn, .next-btn {
    padding: 6px 8px;
  }
  
  .first-btn, .last-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .page-size-select {
    font-size: 12px;
    padding: 5px 6px;
  }
  
  .page-size-label {
    font-size: 12px;
  }
  
  .jumper-input {
    width: 45px;
    font-size: 12px;
    padding: 5px 6px;
  }
  
  .jumper-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  
  .jumper-label {
    font-size: 11px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
  .pagination-container {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .pagination-text {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .pagination-buttons {
    gap: 3px;
  }
  
  .pagination-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  
  .page-btn {
    min-width: 28px;
    height: 28px;
  }
  
  .prev-btn, .next-btn {
    padding: 5px 6px;
  }
  
  .first-btn, .last-btn {
    padding: 5px 6px;
    font-size: 10px;
  }
  
  .page-size-select {
    font-size: 11px;
    padding: 4px 5px;
  }
  
  .page-size-label {
    font-size: 11px;
  }
  
  .jumper-input {
    width: 40px;
    font-size: 11px;
    padding: 4px 5px;
  }
  
  .jumper-btn {
    padding: 4px 6px;
    font-size: 10px;
  }
  
  .jumper-label {
    font-size: 10px;
  }
  
  /* 在极小屏幕上隐藏页面跳转器，为分页按钮留出更多空间 */
  .page-jumper {
    display: none;
  }
}

/* 保持浅色主题，移除深色模式 *//* 项目列表页面样式 - 基于 Tailwind CSS */

/* 中文字体优化 */
.chinese-text {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.chinese-heading {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
}

/* 响应式布局修复 */
@media (max-width: 1023px) {
  [data-mobile-layout="true"] {
    display: flex !important;
  }
  [data-desktop-layout="true"] {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  [data-mobile-layout="true"] {
    display: none !important;
  }
  [data-desktop-layout="true"] {
    display: flex !important;
  }
}

/* 悬浮动画 */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-5px); 
  }
}

/* 统计卡片样式 */
.stat-card {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 项目卡片样式 */
.project-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

/* 项目网格布局 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* 项目卡片视图样式 */
.project-card-view {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.project-card-view:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}


/* 状态徽章样式 */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-running {
  background-color: #dcfce7;
  color: #166534;
}

.status-completed {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-untrained {
  background-color: #fef3c7;
  color: #92400e;
}

.status-paused {
  background-color: #fef3c7;
  color: #92400e;
}

.status-error {
  background-color: #fee2e2;
  color: #dc2626;
}

/* 下拉菜单动画 */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 按钮悬停效果 */
.hover-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hover-button:hover {
  transform: translateY(-2px);
}

.hover-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100%;
  transition: width 0.3s ease, height 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.hover-button:hover::before {
  width: 300px;
  height: 300px;
}

/* 文本截断 */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 加载动画 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 弹跳动画 */
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8,0,1,1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* 响应式表格 */
@media (max-width: 640px) {
  .table-responsive {
    font-size: 0.75rem;
  }
  
  .table-responsive th,
  .table-responsive td {
    padding: 0.5rem 0.75rem;
  }
}/* 摄像头画质优化样式 */

/* 高清摄像头容器 */
.webcam-hd-container {
  /* 启用硬件加速 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  
  /* 优化渲染性能 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  
  /* 防止模糊 - 使用smooth渲染 */
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
  
  /* 高DPI支持 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 高清Canvas样式 */
.webcam-hd-canvas {
  /* 基础样式 */
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;

  /* 画质优化 - 移除pixelated，使用smooth */
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;

  /* 硬件加速 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;

  /* 防止模糊 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  /* 高DPI优化 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* 轻微锐化，避免过度处理 */
  filter: contrast(1.05) brightness(1.02) saturate(1.02);
  -webkit-filter: contrast(1.05) brightness(1.02) saturate(1.02);
}

/* 响应式优化 */
@media (min-resolution: 2dppx) {
  .webcam-hd-canvas {
    /* 高DPI屏幕优化 */
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.15) brightness(1.1) saturate(1.05);
    -webkit-filter: contrast(1.15) brightness(1.1) saturate(1.05);
  }
}

@media (min-resolution: 3dppx) {
  .webcam-hd-canvas {
    /* 超高DPI屏幕优化 */
    filter: contrast(1.2) brightness(1.15) saturate(1.1);
    -webkit-filter: contrast(1.2) brightness(1.15) saturate(1.1);
  }
}

/* 移动端优化 */
@media (max-width: 768px) {
  .webcam-hd-canvas {
    /* 移动端性能优化 */
    filter: contrast(1.05) brightness(1.02);
    -webkit-filter: contrast(1.05) brightness(1.02);
  }
}

/* 加载状态优化 */
.webcam-loading {
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
              linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
              linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
              linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  animation: webcam-loading-animation 1s linear infinite;
}

@keyframes webcam-loading-animation {
  0% {
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  }
  100% {
    background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
  }
}

/* 错误状态样式 */
.webcam-error {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
  border: 2px dashed #e57373;
}

/* 成功状态样式 */
.webcam-ready {
  border: 2px solid #4caf50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* 超高清优化 */
.webcam-hd-canvas {
  /* 强制使用最高质量渲染 */
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: optimize-contrast !important;

  /* 防止浏览器缩放导致的模糊 */
  transform-origin: 0 0;

  /* 确保像素完美显示 */
  image-rendering: crisp-edges;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;

  /* 高质量缩放 */
  image-rendering: high-quality;
  image-rendering: -webkit-high-quality;
}
/* 一体化工作流样式 */

/* 基础布局 */
.unified-workflow-container {
  width: 100%;
  box-sizing: border-box;
}

.workflow-columns {
  width: 100%;
  box-sizing: border-box;
}

.workflow-column {
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* 列激活状态 */
.workflow-column.active {
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.15);
}

.workflow-column.collection-column.active {
  border-color: #4285f4;
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.15);
}

.workflow-column.training-column.active {
  border-color: #ff9800;
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.15);
}

.workflow-column.preview-column.active {
  border-color: #4caf50;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
}

/* 列头部样式 */
.column-header {
  border-bottom: 1px solid #f0f0f0;
  background: rgba(248, 249, 250, 0.5);
}

.column-header h3 {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 进度圆环样式 */
.column-progress {
  position: relative;
}

.column-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: white;
  z-index: 0;
}

/* 列内容区域 */
.column-content {
  flex: 1;
  overflow-y: auto;
}

/* 一体化模式下的组件样式调整 */
.workflow-stage.unified-mode {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.workflow-stage.unified-mode .stage-content {
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* 数据采集组件在一体化模式下的样式 */
.collection-stage.unified-mode .category-card-compact {
  transition: all 0.2s ease;
}

.collection-stage.unified-mode .category-card-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 训练组件在一体化模式下的样式 */
.training-stage.unified-mode .training-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.training-stage.unified-mode .category-preview-item {
  transition: background-color 0.2s ease;
}

.training-stage.unified-mode .category-preview-item:hover {
  background-color: #f0f0f0;
}

/* 预览组件在一体化模式下的样式 */
.preview-stage.unified-mode .prediction-item {
  transition: all 0.3s ease;
}

.preview-stage.unified-mode .prediction-item .confidence-fill {
  transition: width 0.5s ease;
}

/* 紧凑模式下的按钮样式 */
.unified-mode button {
  transition: all 0.2s ease;
}

.unified-mode button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unified-mode button:active:not(:disabled) {
  transform: translateY(0);
}

/* 滚动条优化 */
.unified-mode *::-webkit-scrollbar {
  width: 4px;
}

.unified-mode *::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.unified-mode *::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.unified-mode *::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 数据采集组件在一体化模式下的样式 */
.collection-stage.unified-mode .collection-layout {
  grid-template-columns: 1fr;
  gap: 15px;
  min-height: auto;
}

.collection-stage.unified-mode .categories-section {
  padding: 12px;
}

.collection-stage.unified-mode .category-card {
  height: 150px;
  margin-bottom: 12px;
}

.collection-stage.unified-mode .category-images-scroll {
  height: 80px;
}

.collection-stage.unified-mode .webcam-container {
  width: 200px;
  height: 200px;
}

/* 训练组件在一体化模式下的样式 */
.training-stage.unified-mode .training-controls {
  margin-bottom: 15px;
}

.training-stage.unified-mode .category-summary {
  padding: 10px;
  margin-bottom: 10px;
}

/* 预览组件在一体化模式下的样式 */
.preview-stage.unified-mode .data-stats-panel {
  margin-bottom: 15px;
}

.preview-stage.unified-mode .webcam-preview-container {
  width: 200px;
  height: 200px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .workflow-columns {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .workflow-column {
    min-height: 400px !important;
  }
}

@media (max-width: 768px) {
  .unified-workflow-container {
    padding: 0.5rem !important;
  }
  
  .column-content {
    padding: 1rem !important;
  }
  
  .column-header {
    padding: 1rem !important;
  }
  
  .column-header h3 {
    font-size: 1rem !important;
  }
}

/* 超大屏幕优化 */
@media (min-width: 1400px) {
  .unified-workflow-container {
    max-width: 1600px;
  }
}

@media (min-width: 1600px) {
  .unified-workflow-container {
    max-width: 1800px;
  }
}

@media (min-width: 1800px) {
  .unified-workflow-container {
    max-width: 2000px;
  }
}

@media (min-width: 1950px) {
  .unified-workflow-container {
    max-width: 2200px;
    padding: 1.5rem;
  }

  .workflow-columns {
    gap: 2rem;
    min-height: 1000px;
  }

  .column-content {
    padding: 2rem;
  }

  .column-header {
    padding: 1.5rem 2rem;
  }

  .column-header h3 {
    font-size: 1.3rem;
  }
}

/* 滚动条样式 */
.column-content::-webkit-scrollbar {
  width: 6px;
}

.column-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.column-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.column-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* 新
的一体化组件样式 */
.unified-data-collection,
.unified-training,
.unified-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 统计卡片样式 */
.unified-data-collection .stats-card,
.unified-training .stats-card,
.unified-preview .stats-card {
  transition: all 0.2s ease;
}

.unified-data-collection .stats-card:hover,
.unified-training .stats-card:hover,
.unified-preview .stats-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 类别卡片样式 */
.unified-data-collection .category-card {
  transition: all 0.2s ease;
}

.unified-data-collection .category-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.unified-data-collection button,
.unified-training button,
.unified-preview button {
  transition: all 0.2s ease;
}

.unified-data-collection button:hover:not(:disabled),
.unified-training button:hover:not(:disabled),
.unified-preview button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 进度条样式 */
.unified-training .progress-bar,
.unified-preview .confidence-bar {
  transition: all 0.3s ease;
}

/* 摄像头预览区域 */
.unified-preview #unified-preview-webcam {
  transition: all 0.2s ease;
}

.unified-preview #unified-preview-webcam:hover {
  border-color: #4caf50;
}

/* 滚动条样式 */
.unified-data-collection::-webkit-scrollbar,
.unified-training::-webkit-scrollbar,
.unified-preview::-webkit-scrollbar {
  width: 4px;
}

.unified-data-collection::-webkit-scrollbar-track,
.unified-training::-webkit-scrollbar-track,
.unified-preview::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.unified-data-collection::-webkit-scrollbar-thumb,
.unified-training::-webkit-scrollbar-thumb,
.unified-preview::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.unified-data-collection::-webkit-scrollbar-thumb:hover,
.unified-training::-webkit-scrollbar-thumb:hover,
.unified-preview::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}/* Blockly组件样式 */

.blockly-component {
  width: 100%;
  height: 100%;
  position: relative;
}

.blockly-div {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.blockly-toolbox {
  display: none;
}

/* 工作区样式 */
.blockly-div .blocklyToolboxDiv {
  background: #f9f9f9;
  border-right: 1px solid #e0e0e0;
  z-index: 5 !important;
}

/* 确保所有Blockly相关元素层级都低于导航栏 */
.blockly-div .blocklyFlyout {
  z-index: 8 !important;
}

.blockly-div .blocklyTreeRow {
  z-index: 5 !important;
  padding: 8px 12px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.blockly-div .blocklyTreeRow:hover {
  background: #e8f4f8;
}

.blockly-div .blocklyTreeSelected {
  background: #2196f3 !important;
  color: white !important;
}

.blockly-div .blocklyTreeIcon {
  margin-right: 8px;
}

/* 积木样式 */
.blockly-div .blocklyDraggable {
  cursor: grab;
}

.blockly-div .blocklyDragging {
  cursor: grabbing;
  opacity: 0.8;
}

/* 滚动条样式 */
.blockly-div .blocklyScrollbarVertical,
.blockly-div .blocklyScrollbarHorizontal {
  background: rgba(0, 0, 0, 0.1);
}

.blockly-div .blocklyScrollbarHandle {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.blockly-div .blocklyScrollbarHandle:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* 垃圾箱样式 */
.blockly-div .blocklyTrash {
  opacity: 0.8;
}

/* 隐藏飞出面板滚动条，保留鼠标滚轮滚动 */
.blockly-div .blocklyFlyout .blocklyScrollbarHorizontal,
.blockly-div .blocklyFlyout .blocklyScrollbarVertical {
  display: none !important;
}
/* 可视化编程页面样式 */

/* 设置Blockly组件的z-index，确保低于两个导航栏（主导航z-50，专用导航z-30） */
.visual-programming-layout .blocklyToolboxDiv {
  z-index: 5 !important;
}

.visual-programming-layout .blocklyFlyout {
  z-index: 8 !important;
}

/* Blockly主工作区保持最低层级 */
.visual-programming-layout .blocklyMainWorkspaceArea {
  z-index: 1 !important;
}

/* 确保整个Blockly容器不会覆盖导航栏 */
.visual-programming-layout .blocklyDiv {
  z-index: 1 !important;
}

/* 修复开发版选择框层级，使下拉面板不被Blockly遮挡 */
.visual-programming-layout .blockly-div {
  z-index: 1 !important; /* 明确降低工作区层级，避免覆盖导航 */
}

/* 选择框在导航栏中需要更高层级以显示下拉内容 */
/* 导航区域中的选择框层级：与“开发版”文本span一致，略高于Blockly */
.visual-programming-layout header { position: relative; z-index: 30; }
.visual-programming-layout header .select-container { position: relative; z-index: 30; pointer-events: auto; }
.visual-programming-layout header .select-trigger { position: relative; z-index: 30; pointer-events: auto; }
.visual-programming-layout header .select-content { z-index: 35; pointer-events: auto; }

/* 特别处理工具箱的类别选项卡 */
.visual-programming-layout .blocklyTreeRow {
  z-index: 5 !important;
}

/* 确保blocklyDiv有相对定位但层级较低 */

.visual-programming-layout {
  height: calc(100vh - 80px); /* 减去80px高度：主导航栏高度 + 上下边距 */
  width: calc(100vw - 30px); /* 减去30px宽度，使界面更宽 */
  margin: 20px auto 30px auto; /* 上边距70px缩短距离，左右居中，下边距10px */
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 8px; /* 添加圆角 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* 添加阴影 */
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 主要内容区域 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  background: #f8fafc;
}

/* Blockly 工作区容器 */
.blockly-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
  overflow: hidden; /* 防止容器出现滚动条 */
  position: relative;
}


/* 代码预览面板 */
.code-preview-container {
  width: 400px;
  min-width: 300px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  position: relative;
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 调整大小手柄 */
.resize-handle {
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  cursor: col-resize;
  z-index: 10;
}

.resize-handle:hover {
  background: #3b82f6;
}

/* 代码预览头部 */
.code-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  min-height: 48px;
}

/* 代码预览内容 */
.code-preview-content {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background: #ffffff;
  font-family: ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-outline:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #2563eb;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #059669;
}

.btn-warning {
  background: #f59e0b;
  color: white;
}

.btn-warning:hover:not(:disabled) {
  background: #d97706;
}

/* 状态栏 */
.status-bar {
  height: 32px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 12px;
  color: #64748b;
  gap: 16px;
}

/* 状态指示器 */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-ready .lucide {
  color: #10b981;
}

.status-compiling .lucide {
  color: #f59e0b;
  animation: pulse 1.5s infinite;
}

.status-error .lucide {
  color: #ef4444;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 阶段卡片容器 */
.stages-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 阶段卡片样式 */
.stage-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 140px;
  min-height: 40px;
  position: relative;
  overflow: hidden;
}

/* 阶段卡片文字标签 */
.stage-card-label {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

/* 阶段卡片状态样式 */
.stage-card.pending {
  background: rgba(156, 163, 175, 0.2);
  border-color: #e5e7eb;
}

.stage-card.pending .stage-card-label {
  color: #6b7280;
  background: rgba(255, 255, 255, 0.9);
}

.stage-card.active {
  border-color: #3b82f6;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transform: scale(1.05);
}

.stage-card.active .stage-card-label {
  color: #2563eb;
  background: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.stage-card.completed {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}

.stage-card.completed .stage-card-label {
  color: #059669;
  background: rgba(255, 255, 255, 0.9);
}

.stage-card.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  animation: stageCardShake 0.6s ease-in-out;
}

.stage-card.error .stage-card-label {
  color: #dc2626;
  background: rgba(255, 255, 255, 0.9);
}

/* 阶段卡片跳动效果 */
@keyframes stageCardBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-3px) scale(1.02);
  }
  60% {
    transform: translateY(-1.5px) scale(1.01);
  }
}

/* 阶段卡片错误震动效果 */
@keyframes stageCardShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* 阶段图标样式 */
.stage-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-icon.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 齿轮旋转动画 */
@keyframes gearRotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 齿轮容器样式 */
.gear-container {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-image {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  transition: all 0.3s ease;
}

/* 静态图标（用于gif） */
.gear-image-static {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

/* 不同状态的齿轮样式 */
.stage-card.pending .gear-image {
  filter: grayscale(1) brightness(0.8);
  opacity: 0.7;
}

.stage-card.active .gear-image {
  filter: hue-rotate(200deg) saturate(1.5) brightness(1.2);
  animation: gearRotation 2s linear infinite;
}

.stage-card.completed .gear-image {
  filter: hue-rotate(120deg) saturate(1.3) brightness(1.1);
}

.stage-card.error .gear-image {
  filter: hue-rotate(0deg) saturate(1.5) brightness(1.2);
}

/* 静态图标不需要滤镜和动画 */
.stage-card.pending .gear-image-static,
.stage-card.active .gear-image-static,
.stage-card.completed .gear-image-static,
.stage-card.error .gear-image-static {
  filter: none;
  animation: none;
  opacity: 1;
}

/* 进度容器 */
.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* HTML模板进度条样式 */
.progress-bar {
  width: 100%;
  height: 16px;
  background: linear-gradient(45deg, #f3f4f6 25%, transparent 25%), 
             linear-gradient(-45deg, #f3f4f6 25%, transparent 25%), 
             linear-gradient(45deg, transparent 75%, #f3f4f6 75%), 
             linear-gradient(-45deg, transparent 75%, #f3f4f6 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: backgroundSlide 2s infinite linear;
}

.progress-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* 云编译进度 - 霓虹效果 */
.progress-compile {
  background: linear-gradient(90deg, #00ffff 0%, #ff00ff 50%, #00ffff 100%);
  background-size: 200% 100%;
  animation: neonGlow 2s ease-in-out infinite alternate, gradientShift 3s linear infinite;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(255, 0, 255, 0.5);
}

/* 烧录进度 - 火焰效果 */
.progress-upload {
  background: linear-gradient(90deg, #ff4500 0%, #ff6347 25%, #ff8c00 50%, #ffa500 75%, #ff4500 100%);
  background-size: 200% 100%;
  animation: fire 1s ease-in-out infinite, gradientShift 2s linear infinite;
  box-shadow: 0 2px 20px rgba(255, 69, 0, 0.8);
}

/* 错误进度条 */
.progress-error {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 50%, #ef4444 100%);
  background-size: 200% 200%;
  box-shadow: 0 1px 6px rgba(239, 68, 68, 0.6);
  animation: errorPulse 0.8s infinite alternate, gradientShift 2s ease-in-out infinite;
}

.progress-error::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  animation: errorFlash 0.5s infinite;
}

/* 进度条动画 */
@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes neonGlow {
  0% { 
      box-shadow: 0 0 4px rgba(0, 255, 255, 0.4), 0 0 8px rgba(255, 0, 255, 0.2);
      filter: brightness(1);
  }
  100% { 
      box-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(255, 0, 255, 0.5);
      filter: brightness(1.2);
  }
}

@keyframes fire {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  25% { filter: hue-rotate(10deg) brightness(1.1); }
  50% { filter: hue-rotate(-5deg) brightness(0.9); }
  75% { filter: hue-rotate(15deg) brightness(1.2); }
}

@keyframes backgroundSlide {
  0% { background-position: 0 0, 0 4px, 4px -4px, -4px 0px; }
  100% { background-position: 8px 0, 8px 4px, 12px -4px, 4px 0px; }
}

@keyframes errorPulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.01); }
}

@keyframes errorFlash {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* 控制面板悬浮层 */
.control-panel-overlay {
  position: fixed;
  top: 80px;
  right: 16px;
  bottom: 48px;
  width: 400px;
  pointer-events: none; /* overlay 本身不吃点击 */
  z-index: 10;
}

/* 确保选择下拉框不会被其他元素遮挡 */
.select-container {
  position: relative !important;
  z-index: 30 !important;
}

.select-container .select-content {
  z-index: 35 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: white !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* 专用导航栏内的select容器需要特殊处理 */
header .select-container { isolation: isolate !important; }
header .select-content { pointer-events: auto !important; }

.control-panel-container {
  background: white;
  border-radius: 8px;
  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 #e2e8f0;
  height: 100%;
  overflow: auto;
  pointer-events: auto;
}

/* 控制面板包装器样式 */
.control-panel-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.control-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.control-panel-content {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

/* 覆盖Material-UI样式以适应新布局 */
.control-panel-content .MuiBox-root {
  padding: 0 !important;
}

.control-panel-content .MuiAccordion-root {
  box-shadow: none !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.control-panel-content .MuiAccordion-root:before {
  display: none !important;
}

.control-panel-content .MuiAccordionSummary-root {
  padding: 12px 16px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.control-panel-content .MuiAccordionDetails-root {
  padding: 16px !important;
}

.control-panel-content .MuiButton-root {
  text-transform: none !important;
  font-size: 0.875rem !important;
}

.control-panel-content .MuiTextField-root {
  margin-bottom: 8px !important;
}

.control-panel-content .MuiLinearProgress-root {
  border-radius: 4px !important;
}

/* 自定义滚动条 */
.control-panel-content::-webkit-scrollbar {
  width: 6px;
}

.control-panel-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.control-panel-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.control-panel-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .control-panel-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 16px;
  }

  .control-panel-container {
    height: auto;
    max-height: calc(100vh - 32px);
  }

  .code-preview-container {
    width: 350px;
  }
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .code-preview-container {
    width: 100%;
    height: 300px;
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }

  .resize-handle {
    left: 0;
    right: 0;
    top: -2px;
    bottom: auto;
    height: 4px;
    width: auto;
    cursor: row-resize;
  }

  .control-panel-overlay {
    top: 70px;
    right: 8px;
    bottom: 8px;
    width: calc(100% - 16px);
  }
}

/* Flexbox 工具类 */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.ml-auto {
  margin-left: auto;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-500 {
  color: #6b7280;
}

.w-3 {
  width: 0.75rem;
}

.h-3 {
  height: 0.75rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.p-1 {
  padding: 0.25rem;
}

/* 淡入动画 */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 代码高亮样式 */
.code-keyword {
  color: #7c3aed;
  font-weight: 600;
}

.code-string {
  color: #059669;
}

.code-comment {
  color: #6b7280;
  font-style: italic;
}

.code-number {
  color: #dc2626;
}
/* 管理员仪表盘样式 - 与主页保持一致的设计风格 */

/* 导入背景修复样式 */

/* 背景割裂修复样式 - 统一所有页面的背景处理 */

/* 确保html和body有统一的背景 */

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary, linear-gradient(135deg, #ffffff 0%, #e3f2fd 30%, #4285f4 100%)) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent !important; /* 使用html的背景 */
  min-height: 100vh;
}

/* 强制覆盖所有可能的背景设置 */

* {
  background-attachment: inherit !important;
}

/* 应用容器背景修复 */

.app-container {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 主内容区域背景修复 */

.main-content {
  background: transparent;
  width: 100%;
}

.content-area {
  background: transparent;
}

/* 管理员页面背景修复 - 使用!important确保优先级 */

.admin-page-container {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
}

.admin-container {
  background: transparent !important;
  width: 100%;
}

/* 管理员页面特定背景修复 */

.admin-page-container::before {
  display: none !important;
}

.admin-page-container::after {
  display: none !important;
}

/* 用户详情页面背景修复 */

.user-detail-page {
  background: transparent !important;
}

/* 所有可能的管理员页面容器背景修复 */

.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings {
  background: transparent !important;
}

/* 社区页面背景修复 - 使用!important确保优先级 */

.community-page {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.community-header {
  background: var(--bg-card, rgba(255, 255, 255, 0.95)) !important;
  backdrop-filter: blur(10px);
  margin: 0;
  width: 100%;
}

.community-content {
  background: transparent !important;
}

/* 社区页面特定背景修复 */

.community-page::before {
  display: none !important;
}

.community-page::after {
  display: none !important;
}

/* 系统设置页面背景修复 */

.settings-page {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 确保所有卡片和容器使用正确的背景 */

.admin-stat-card,
.admin-data-table,
.settings-section,
.project-card,
.user-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
}

/* 全局背景修复 - 确保所有页面容器都使用透明背景 */

.admin-page-container,
.community-page,
.user-detail-page,
.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings,
.settings-page,
.app-container,
.main-content,
.content-area,
.page-container,
.project-page,
.project-detail,
.user-profile,
.system-settings {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* 确保卡片背景与主背景融合 */

.card,
.admin-card,
.project-card,
.user-card,
.settings-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 模态框和弹窗背景修复 */

.modal,
.dialog,
.popup,
.dropdown-menu {
  background: var(--bg-card) !important;
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
}

/* 响应式背景修复 */

@media (max-width: 768px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }
}

@media (max-width: 480px) {
  .admin-page-container {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }
}

/* 页面容器 - 移除背景设置，使用全局背景 */

.admin-page-container {
  min-height: 100vh;
  width: 100%;
  background: transparent !important;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
  /* 使用全局字体定义，保持一致性 */
  color: #333;
  position: relative;
}

/* 页面头部 */

.admin-page-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem) var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  margin-bottom: var(--spacing-xl, 1.5rem);
  text-align: center;
}

.admin-page-title {
  color: #1565c0;
  font-size: var(--font-size-3xl, 1.875rem);
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
  text-shadow: 0 2px 4px rgba(21, 101, 192, 0.2);
}

.welcome-text {
  color: #546e7a;
  font-size: var(--font-size-lg, 2rem);
  font-weight: 500;
  margin: 0;
}

/* 统计卡片网格 */

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl, 2rem);
  margin-bottom: var(--spacing-xxl, 3rem);
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg, 1.5rem);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
}

.admin-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(66, 133, 244, 0.3);
}

.stat-icon {
  font-size: 3rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.stat-content {
  flex: 1;
}

.stat-label {
  margin: 0 0 var(--spacing-sm, 0.5rem) 0;
  color: #546e7a;
  font-size: 1rem !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 1.5rem !important;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* 快速操作区域 */

.admin-quick-actions {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  padding: var(--spacing-xl, 2rem);
}

.quick-actions-header {
  text-align: center;
  margin-bottom: var(--spacing-xl, 2rem);
}

.quick-actions-header h2 {
  color: #1565c0;
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
  margin: 0;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl, 2rem);
}

.quick-action-card {
  background: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xl, 2rem);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(66, 133, 244, 0.1);
}

.quick-action-card:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.action-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-md, 1rem);
  opacity: 0.8;
}

.quick-action-card h3 {
  color: #1565c0;
  font-size: 1.4rem !important;
  font-weight: 600;
  margin: 0 0 var(--spacing-sm, 0.5rem) 0;
}

.quick-action-card p {
  color: #546e7a;
  font-size: 1rem !important;
  margin: 0 0 var(--spacing-lg, 1.5rem) 0;
  line-height: 1.5;
}

/* 响应式快速操作卡片字体大小 */

@media (min-width: 1200px) {
  .quick-action-card h3 {
    font-size: 1.6rem !important;
  }

  .quick-action-card p {
    font-size: 1.1rem !important;
  }
}

@media (min-width: 1440px) {
  .quick-action-card h3 {
    font-size: 1.8rem !important;
  }

  .quick-action-card p {
    font-size: 1.2rem !important;
  }
}

@media (min-width: 1920px) {
  .quick-action-card h3 {
    font-size: 2rem !important;
  }

  .quick-action-card p {
    font-size: 1.3rem !important;
  }
}

/* 按钮样式 */

.admin-btn-primary {
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  color: white;
  border: none;
  padding: var(--spacing-md, 1rem) var(--spacing-xl, 2rem);
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--font-size-base, 1rem);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.admin-btn-secondary {
  background: rgba(66, 133, 244, 0.1);
  color: #1565c0;
  border: 2px solid rgba(66, 133, 244, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-btn-secondary:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
}

/* 加载状态 */

.admin-loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.loading-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(66, 133, 244, 0.2);
  border-top: 4px solid #4285f4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-lg, 1.5rem) auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #546e7a;
  font-size: var(--font-size-base, 1rem);
  margin: 0;
}

/* 错误状态 */

.admin-error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.error-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  border-left: 4px solid #f44336;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg, 1.5rem);
}

.admin-error-message {
  color: #f44336;
  font-weight: 500;
  margin: var(--spacing-md, 1rem) 0 var(--spacing-lg, 1.5rem) 0;
  font-size: var(--font-size-base, 1rem);
}

/* 响应式设计 */

@media (max-width: 767px) {
  .admin-page-container {
    padding: var(--spacing-md, 1rem);
  }

  .admin-page-header {
    padding: var(--spacing-lg, 1.25rem);
  }

  .admin-page-title {
    font-size: var(--font-size-2xl, 1.5rem);
  }

  .welcome-text {
    font-size: var(--font-size-base, 1.5rem);
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 1.5rem);
  }

  .admin-stat-card {
    padding: var(--spacing-lg, 1.5rem);
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md, 1rem);
  }

  .stat-icon {
    font-size: 2.5rem;
  }

  .stat-number {
    font-size: 1.375rem !important;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 1.5rem);
  }

  .quick-action-card {
    padding: var(--spacing-lg, 1.5rem);
  }

  .admin-btn-primary,
  .admin-btn-secondary {
    width: 100%;
    padding: var(--spacing-md, 1rem);
  }

  .loading-content,
  .error-content {
    padding: var(--spacing-xl, 2rem);
  }
}

@media (max-width: 479px) {
  .admin-page-container {
    padding: var(--spacing-sm, 0.5rem);
  }

  .admin-page-header {
    padding: var(--spacing-md, 1rem);
  }

  .admin-page-title {
    font-size: var(--font-size-xl, 1.25rem);
  }

  .admin-stat-card {
    padding: var(--spacing-md, 1rem);
  }

  .stat-icon {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 1.1rem !important;
  }

  .quick-action-card {
    padding: var(--spacing-md, 1rem);
  }

  .action-icon {
    font-size: 1.5rem;
  }

  .admin-btn-primary,
  .admin-btn-secondary {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
  }
}

/* 平板响应式 */

@media (min-width: 768px) and (max-width: 1023px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 大屏幕优化 */

@media (min-width: 1024px) {
  .admin-page-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}/* 用户管理页面样式 - 与管理员仪表盘保持一致的设计风格 */

/* 导入背景修复样式 */

/* 背景割裂修复样式 - 统一所有页面的背景处理 */

/* 确保html和body有统一的背景 */

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary, linear-gradient(135deg, #ffffff 0%, #e3f2fd 30%, #4285f4 100%)) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent !important; /* 使用html的背景 */
  min-height: 100vh;
}

/* 强制覆盖所有可能的背景设置 */

* {
  background-attachment: inherit !important;
}

/* 应用容器背景修复 */

.app-container {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 主内容区域背景修复 */

.main-content {
  background: transparent;
  width: 100%;
}

.content-area {
  background: transparent;
}

/* 管理员页面背景修复 - 使用!important确保优先级 */

.admin-page-container {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
}

.admin-container {
  background: transparent !important;
  width: 100%;
}

/* 管理员页面特定背景修复 */

.admin-page-container::before {
  display: none !important;
}

.admin-page-container::after {
  display: none !important;
}

/* 用户详情页面背景修复 */

.user-detail-page {
  background: transparent !important;
}

/* 所有可能的管理员页面容器背景修复 */

.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings {
  background: transparent !important;
}

/* 社区页面背景修复 - 使用!important确保优先级 */

.community-page {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.community-header {
  background: var(--bg-card, rgba(255, 255, 255, 0.95)) !important;
  backdrop-filter: blur(10px);
  margin: 0;
  width: 100%;
}

.community-content {
  background: transparent !important;
}

/* 社区页面特定背景修复 */

.community-page::before {
  display: none !important;
}

.community-page::after {
  display: none !important;
}

/* 系统设置页面背景修复 */

.settings-page {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 确保所有卡片和容器使用正确的背景 */

.admin-stat-card,
.admin-data-table,
.settings-section,
.project-card,
.user-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
}

/* 全局背景修复 - 确保所有页面容器都使用透明背景 */

.admin-page-container,
.community-page,
.user-detail-page,
.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings,
.settings-page,
.app-container,
.main-content,
.content-area,
.page-container,
.project-page,
.project-detail,
.user-profile,
.system-settings {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* 确保卡片背景与主背景融合 */

.card,
.admin-card,
.project-card,
.user-card,
.settings-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 模态框和弹窗背景修复 */

.modal,
.dialog,
.popup,
.dropdown-menu {
  background: var(--bg-card) !important;
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
}

/* 响应式背景修复 */

@media (max-width: 768px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }
}

@media (max-width: 480px) {
  .admin-page-container {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }
}

/* 继承管理员页面的基础样式 */

/* 管理员界面通用样式 - 统一设计系统 */

/* 导入背景修复样式 */

/* CSS变量定义 - 与colors.js保持一致 */

:root {
  /* 管理员界面专用颜色变量 */
  --admin-primary: #4285f4;
  --admin-primary-dark: #1565c0;
  --admin-secondary: #546e7a;
  --admin-accent: #1565c0;
  
  /* 背景色 - 修改为透明，使用全局背景 */
  --admin-bg-primary: transparent;
  --admin-bg-card: rgba(255, 255, 255, 0.95);
  --admin-bg-overlay: rgba(255, 255, 255, 0.9);
  
  /* 边框和阴影 */
  --admin-border-light: rgba(66, 133, 244, 0.1);
  --admin-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --admin-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  
  /* 状态颜色 */
  --admin-success: #4caf50;
  --admin-error: #f44336;
  --admin-warning: #ff9800;
  --admin-info: #2196f3;
}

/* 深色主题支持 */

[data-theme="dark"] {
  --admin-bg-primary: transparent;
  --admin-bg-card: rgba(45, 55, 72, 0.95);
  --admin-bg-overlay: rgba(45, 55, 72, 0.9);
  --admin-border-light: rgba(99, 179, 237, 0.2);
  --admin-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 管理员页面容器基础样式 - 优化字体大小和响应式设计 */

.admin-page-container {
  min-height: 100vh;
  width: 100%;
  background: transparent !important;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
  /* 使用全局字体定义，保持一致性 */
  color: #333;
  position: relative;
  font-size: var(--font-size-base, 1rem);
  line-height: 1.6;
}

/* 响应式字体大小 - 基于屏幕尺寸动态调整 */

@media (min-width: 1200px) {
  .admin-page-container {
    font-size: var(--font-size-lg, 1.125rem);
  }
}

@media (min-width: 1440px) {
  .admin-page-container {
    font-size: var(--font-size-xl, 1.25rem);
  }
}

@media (min-width: 1920px) {
  .admin-page-container {
    font-size: var(--font-size-2xl, 1.5rem);
  }
}

/* 管理员容器 - 移除重复背景设置，增加最大宽度以适应表格 */

.admin-container {
  width: 100%;
  max-width: 2000px; /* 从1600px进一步增加到2000px，给表格更多空间 */
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
  /* 使用全局字体定义，保持一致性 */
  color: #333;
}

/* 统一的加载、错误和空状态容器 */

.admin-loading-container,
.admin-error-container,
.admin-empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.loading-content,
.error-content {
  text-align: center;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
}

.error-content {
  border-left: 4px solid var(--admin-error);
}

/* 页面头部 - 统一样式 */

.admin-page-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem) var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  text-align: center;
}

.admin-page-title {
  color: var(--admin-accent);
  font-size: 2rem !important;
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
  text-shadow: 0 2px 4px rgba(21, 101, 192, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md, 0.5rem);
}

/* 响应式页面标题字体大小 */

@media (min-width: 1200px) {
  .admin-page-title {
    font-size: 2rem !important;
  }
}

@media (min-width: 1440px) {
  .admin-page-title {
    font-size: 2.2rem !important;
  }
}

@media (min-width: 1920px) {
  .admin-page-title {
    font-size: 2.5rem !important;
  }
}

.welcome-text {
  color: var(--admin-secondary);
  font-size: 1.8rem !important;
  font-weight: 500;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
  align-items: center;
}

/* 统一按钮样式 */

.admin-btn-primary {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
  color: white;
  border: none;
  padding: var(--spacing-md, 1rem) var(--spacing-xl, 2rem);
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--font-size-base, 1rem);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.admin-btn-secondary {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
  border: 2px solid rgba(66, 133, 244, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-btn-secondary:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
}

/* 用户详情页面样式 - 更新为统一设计 */

.user-detail-page {
  background: transparent !important;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  /* 保持居中布局，继承 admin-container 的居中设置 */
  width: 100%;
  max-width: 2000px; /* 与admin-container保持一致 */
  margin: 0 auto;
}

/* 修复页面头部样式 */

.user-detail-page .page-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-detail-page .page-header h1 {
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
  margin: 0;
}

.user-detail-page .header-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
}

.back-button {
  background: var(--admin-btn-secondary);
  color: var(--admin-accent);
  border: 2px solid rgba(66, 133, 244, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.back-button:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--admin-accent);
}

.user-profile-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  display: flex;
  align-items: center;
  gap: var(--spacing-xl, 2rem);
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: bold;
}

.user-info {
  flex: 1;
}

.user-info h2 {
  margin: 0 0 var(--spacing-md, 1rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
}

.user-meta {
  display: flex;
  gap: var(--spacing-lg, 1.5rem);
  align-items: center;
  flex-wrap: wrap;
}

.user-id {
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  font-family: 'Courier New', monospace;
  background: rgba(66, 133, 244, 0.1);
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 4px;
}

.project-count {
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
}

.user-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
}

.delete-button {
  background: linear-gradient(135deg, var(--admin-error) 0%, #d32f2f 100%);
  color: white;
  border: none;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.delete-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.delete-button:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.admin-protection-notice {
  text-align: center;
  padding: var(--spacing-xl, 2rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  box-shadow: var(--admin-shadow-light);
}

.admin-badge {
  display: inline-block;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
  border: 1px solid #ffcc02;
  border-radius: 20px;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 600;
  margin-bottom: var(--spacing-md, 1rem);
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.2);
}

.admin-notice {
  margin: var(--spacing-sm, 0.5rem) 0 0 0;
  color: var(--admin-secondary);
  font-size: var(--font-size-xs, 0.75rem);
  font-style: italic;
}

/* 标签页样式 - 更新为统一设计 */

.admin-tabs {
  display: flex;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  overflow: hidden;
}

.admin-tab {
  flex: 1;
  padding: var(--spacing-lg, 1.5rem) var(--spacing-xl, 2rem);
  background: rgba(66, 133, 244, 0.05);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base, 1rem);
  color: var(--admin-secondary);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  font-weight: 500;
}

.admin-tab:hover {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
}

.admin-tab.active {
  background: var(--admin-bg-card);
  color: var(--admin-accent);
  border-bottom-color: var(--admin-primary);
  font-weight: 600;
}

.admin-tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 标签页内容区域 */

.tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 个人资料标签页 */

.profile-tab {
  padding: var(--spacing-xxl, 3rem);
}

/* 项目标签页 */

.projects-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 活动标签页 */

.activity-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 占位文本样式 */

.placeholder-text {
  color: var(--admin-secondary);
  font-size: var(--font-size-lg, 1.125rem);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* 标签页内容区域 */

.tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 个人资料标签页 */

.profile-tab {
  padding: var(--spacing-xxl, 3rem);
}

/* 项目标签页 */

.projects-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 活动标签页 */

.activity-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 占位文本样式 */

.placeholder-text {
  color: var(--admin-secondary);
  font-size: var(--font-size-lg, 1.125rem);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* 信息区块样式 - 更新为统一设计 */

.admin-info-section,
.info-section {
  padding: var(--spacing-xxl, 3rem);
  border-bottom: 1px solid var(--admin-border-light);
}

.admin-info-section:last-child,
.info-section:last-child {
  border-bottom: none;
}

.admin-info-section h3,
.info-section h3 {
  margin: 0 0 var(--spacing-xl, 2rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-lg, 1.125rem);
  font-weight: 600;
}

.admin-info-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl, 2rem);
}

.admin-info-item,
.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, 0.5rem);
  font-size:1.5rem !important
}

.admin-info-item label,
.info-item label {
  font-weight: 600;
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-info-item div,
.info-item div {
  color: var(--admin-accent);
  font-size: var(--font-size-base, 1rem);
  font-weight: 500;
}

/* 第三方绑定列表样式 */

.bindings-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
}

.binding-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md, 1rem);
  background: rgba(66, 133, 244, 0.05);
  border-radius: 8px;
  border: 1px solid var(--admin-border-light);
}

.binding-type {
  font-weight: 500;
  color: var(--admin-accent);
}

.binding-status {
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
}

.binding-status.bound {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.binding-status.unbound {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
  border: 1px solid rgba(158, 158, 158, 0.2);
}

/* 用户头像样式 */

.user-profile-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xxl, 3rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
}

.user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--admin-border-light);
  box-shadow: var(--admin-shadow-light);
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--admin-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
}

.user-info {
  flex-grow: 1;
}

.user-info h2 {
  margin: 0 0 var(--spacing-md, 1rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
}

.user-meta {
  display: flex;
  gap: var(--spacing-lg, 1.5rem);
  flex-wrap: wrap;
  align-items: center;
}

.user-meta span {
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
}

.user-id {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
  border: 1px solid rgba(66, 133, 244, 0.2);
}

.project-count {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.user-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
  align-items: flex-end;
}

.delete-button {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 2px solid rgba(244, 67, 54, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-button:hover:not(:disabled) {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.4);
  transform: translateY(-1px);
}

.delete-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-protection-notice {
  text-align: right;
}

.admin-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.2);
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  margin-bottom: var(--spacing-xs, 0.25rem);
}

.admin-notice {
  margin: 0;
  color: var(--admin-secondary);
  font-size: var(--font-size-xs, 0.75rem);
  font-style: italic;
}

/* 加载和错误状态样式 */

.admin-container.loading,
.admin-container.error,
.admin-container.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  text-align: center;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin: var(--spacing-xl, 2rem);
  padding: var(--spacing-xxl, 3rem);
}

.admin-container.loading {
  color: var(--admin-accent);
  font-size: var(--font-size-lg, 1.125rem);
}

.admin-container.error h2,
.admin-container.not-found h2 {
  color: #f44336;
  margin-bottom: var(--spacing-lg, 1.5rem);
  font-size: var(--font-size-xl, 1.25rem);
}

.admin-container.error p,
.admin-container.not-found p {
  color: var(--admin-secondary);
  margin-bottom: var(--spacing-xl, 2rem);
  font-size: var(--font-size-base, 1rem);
}

.admin-container.error button,
.admin-container.not-found button {
  background: var(--admin-accent);
  color: white;
  border: none;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-container.error button:hover,
.admin-container.not-found button:hover {
  background: rgba(66, 133, 244, 0.8);
  transform: translateY(-1px);
}

/* 统一动画和过渡效果 */

.admin-fade-in {
  animation: adminFadeIn 0.4s ease-out;
}

@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-slide-up {
  animation: adminSlideUp 0.3s ease-out;
}

@keyframes adminSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 空状态样式 */

.admin-empty-state {
  text-align: center;
  padding: var(--spacing-xxl, 3rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
}

.admin-empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg, 1.5rem);
  opacity: 0.6;
}

.admin-empty-state h3 {
  color: var(--admin-accent);
  font-size: var(--font-size-xl, 1.25rem);
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
}

.admin-empty-state p {
  color: var(--admin-secondary);
  font-size: var(--font-size-base, 1rem);
  margin: 0;
  line-height: 1.5;
}

/* 响应式设计 */

@media (max-width: 767px) {
  .admin-page-container,
  .admin-container {
    padding: var(--spacing-md, 1rem);
  }

  .user-detail-page {
    padding: var(--spacing-md, 1rem);
    /* 在移动设备上也保持居中 */
    margin: 0 auto;
    max-width: 100%;
  }

  .user-profile-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg, 1.5rem);
  }

  .user-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .admin-info-grid,
  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 1.5rem);
  }

  .admin-tabs {
    flex-direction: column;
  }

  .admin-tab {
    border-radius: 0;
    border-bottom: 1px solid var(--admin-border-light);
  }

  .admin-tab:last-child {
    border-bottom: none;
  }
  
  .admin-page-header {
    padding: var(--spacing-lg, 1.5rem);
    text-align: center;
  }
  
  .admin-page-title {
    font-size: 2rem !important;
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--spacing-md, 0.5rem);
    text-align: center;
  }
  
  .welcome-text {
    font-size: var(--font-size-base, 1rem);
  }
  
  .user-profile-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg, 1.5rem);
    padding: var(--spacing-lg, 1.5rem);
  }
  
  .user-meta {
    justify-content: center;
    gap: var(--spacing-md, 1rem);
  }
  
  .admin-info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 1.5rem);
  }
  
  .admin-tabs {
    flex-direction: column;
    border-radius: 16px;
  }
  
  .admin-tab {
    border-bottom: 1px solid var(--admin-border-light);
    border-radius: 0;
    padding: var(--spacing-md, 1rem);
  }
  
  .admin-tab:last-child {
    border-bottom: none;
  }
  
  .admin-tab.active {
    border-bottom-color: var(--admin-primary);
  }
  
  .admin-tab-content {
    border-radius: 16px;
    border: 1px solid var(--admin-border-light);
  }
  
  .admin-btn-primary,
  .admin-btn-secondary {
    width: 100%;
    padding: var(--spacing-md, 1rem);
    text-align: center;
  }
  
  .loading-content,
  .error-content {
    padding: var(--spacing-xl, 2rem);
  }
}

@media (max-width: 479px) {
  .admin-page-container {
    padding: var(--spacing-sm, 0.5rem);
  }
  
  .admin-page-header {
    padding: var(--spacing-md, 1rem);
  }
  
  .admin-page-title {
    font-size: 1.6rem !important;
  }
  
  .welcome-text {
    font-size: var(--font-size-sm, 0.875rem);
  }
  
  .user-profile-header {
    padding: var(--spacing-md, 1rem);
  }
  
  .user-avatar {
    width: 60px;
    height: 60px;
  }
  
  .avatar-placeholder {
    font-size: 24px;
  }
  
  .user-info h2 {
    font-size: var(--font-size-lg, 1.125rem);
  }
  
  .admin-btn-primary,
  .admin-btn-secondary {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
  }
  
  .loading-content,
  .error-content {
    padding: var(--spacing-lg, 1.5rem);
  }
}

/* 平板响应式 */

@media (min-width: 768px) and (max-width: 1023px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
  }
  
  .admin-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 大屏幕优化 */

@media (min-width: 1024px) {
  .admin-page-container {
    max-width: 1600px; /* 增加页面容器最大宽度 */
    margin: 0 auto;
  }
  
  .admin-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* 增强交互效果 */
  .admin-page-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-hover);
  }

  .user-profile-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-hover);
  }
}

/* 表格样式 */

.admin-data-table {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: var(--spacing-xl, 2rem);
}

.admin-data-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 固定表格布局，严格按照设定的列宽分配 */
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-data-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

/* 表格内容字体大小优化 */

.admin-data-table .user-id {
  font-size: 16px !important;
  font-weight: 500;
  color: #2563eb;
}

.admin-data-table .user-email {
  font-size: 16px !important;
  color: #374151;
  font-weight: 500;
}

.admin-data-table .project-count-badge {
  font-size: 16px !important;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

.admin-data-table .date-text {
  font-size: 16px !important;
  color: #6b7280;
  font-weight: 500;
}

.admin-data-table .username {
  font-size: 16px !important;
  font-weight: 600;
  color: #111827;
}

.admin-data-table .project-name {
  font-size: 16px !important;
  font-weight: 600;
  color: #111827;
}

.admin-data-table .project-type-badge {
  font-size: 16px !important;
  font-weight: 500;
  color: #667eea;
}

.admin-data-table .admin-status-badge {
  font-size: 14px !important;
  font-weight: 600;
}

/* 用户管理表格列宽优化 */

.admin-data-table table th:nth-child(1), /* 用户ID */
.admin-data-table table td:nth-child(1) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.admin-data-table table th:nth-child(2), /* 用户名 */
.admin-data-table table td:nth-child(2) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.admin-data-table table th:nth-child(3), /* 邮箱 */
.admin-data-table table td:nth-child(3) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

.admin-data-table table th:nth-child(4), /* 角色 */
.admin-data-table table td:nth-child(4) {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}

.admin-data-table table th:nth-child(5), /* 项目数量 */
.admin-data-table table td:nth-child(5) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  text-align: center;
}

.admin-data-table table th:nth-child(6), /* 注册时间 */
.admin-data-table table td:nth-child(6) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.admin-data-table table th:nth-child(7), /* 状态 */
.admin-data-table table td:nth-child(7) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.admin-data-table table th:nth-child(8), /* 操作 */
.admin-data-table table td:nth-child(8) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

/* 用户管理表格内容溢出处理 */

.admin-data-table table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 12px 8px;
}

/* 邮箱列特殊处理 */

.admin-data-table table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 响应式设计 - 移动端优化 */

@media (max-width: 768px) {
  /* 移动端取消固定布局，恢复自适应 */
  .admin-data-table table {
    table-layout: auto !important;
    min-width: 800px; /* 设置最小宽度，启用横向滚动 */
  }

  /* 移动端列宽调整 */
  .admin-data-table table th,
  .admin-data-table table td {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    padding: 8px 4px;
    font-size: 14px;
  }

  /* 移动端关键列最小宽度 */
  .admin-data-table table th:nth-child(1),
  .admin-data-table table td:nth-child(1) { min-width: 60px; } /* ID */

  .admin-data-table table th:nth-child(2),
  .admin-data-table table td:nth-child(2) { min-width: 100px; } /* 用户名 */

  .admin-data-table table th:nth-child(3),
  .admin-data-table table td:nth-child(3) { min-width: 150px; } /* 邮箱 */

  .admin-data-table table th:nth-child(4),
  .admin-data-table table td:nth-child(4) { min-width: 80px; } /* 角色 */

  .admin-data-table table th:nth-child(5),
  .admin-data-table table td:nth-child(5) { min-width: 60px; } /* 项目数 */

  .admin-data-table table th:nth-child(6),
  .admin-data-table table td:nth-child(6) { min-width: 100px; } /* 注册时间 */

  .admin-data-table table th:nth-child(7),
  .admin-data-table table td:nth-child(7) { min-width: 70px; } /* 状态 */

  .admin-data-table table th:nth-child(8),
  .admin-data-table table td:nth-child(8) { min-width: 120px; } /* 操作 */
}

/* 中等屏幕优化 - 1200px以下开始自适应 */

@media (max-width: 1200px) {
  .admin-data-table table {
    table-layout: auto !important;
  }

  .admin-data-table table th,
  .admin-data-table table td {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
  }

  /* 中等屏幕最小宽度设置 */
  .admin-data-table table th:nth-child(1),
  .admin-data-table table td:nth-child(1) { min-width: 60px; } /* ID */

  .admin-data-table table th:nth-child(2),
  .admin-data-table table td:nth-child(2) { min-width: 100px; } /* 用户名 */

  .admin-data-table table th:nth-child(3),
  .admin-data-table table td:nth-child(3) { min-width: 120px; } /* 邮箱 */

  .admin-data-table table th:nth-child(4),
  .admin-data-table table td:nth-child(4) { min-width: 80px; } /* 角色 */

  .admin-data-table table th:nth-child(5),
  .admin-data-table table td:nth-child(5) { min-width: 60px; } /* 项目数 */

  .admin-data-table table th:nth-child(6),
  .admin-data-table table td:nth-child(6) { min-width: 100px; } /* 注册时间 */

  .admin-data-table table th:nth-child(7),
  .admin-data-table table td:nth-child(7) { min-width: 70px; } /* 状态 */

  .admin-data-table table th:nth-child(8),
  .admin-data-table table td:nth-child(8) { min-width: 100px; } /* 操作 */
}

/* 平板设备优化 */

@media (min-width: 769px) and (max-width: 1024px) {
  .admin-data-table table th,
  .admin-data-table table td {
    padding: 10px 6px;
    font-size: 15px;
  }
}

/* 表格字体响应式优化 - 760px以下 */

@media (max-width: 760px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 14px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 14px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 14px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 12px !important;
    padding: 3px 6px;
  }
}

/* 表格字体响应式优化 - 680px以下 */

@media (max-width: 680px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 13px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 13px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 13px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 11px !important;
    padding: 2px 5px;
  }
}

/* 表格字体响应式优化 - 480px以下 */

@media (max-width: 480px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 12px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 12px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 12px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 10px !important;
    padding: 2px 4px;
  }
}

/* 表格字体响应式优化 - 大屏幕设备 */

/* 1200px以上 - 大屏幕优化 */

@media (min-width: 1200px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 18px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 17px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 17px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 15px !important;
    padding: 5px 10px;
  }
}

/* 1440px以上 - 超大屏幕优化 */

@media (min-width: 1440px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 20px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 19px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 19px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 16px !important;
    padding: 6px 12px;
  }
}

/* 1920px以上 - 4K屏幕优化 */

@media (min-width: 1920px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 22px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 21px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 21px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 18px !important;
    padding: 7px 14px;
  }
}

/* 管理员状态徽章样式 - 用于用户详情页面 */

.admin-status-badge {
  display: inline-block;
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  text-align: center;
  border: 1px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-status-badge.active {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-color: #4caf50;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.admin-status-badge.inactive {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe082 100%);
  color: #f57c00;
  border-color: #ffc107;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.admin-status-badge.banned {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #d32f2f;
  border-color: #f44336;
  box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.admin-status-badge.admin {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
  border-color: #ffcc02;
  box-shadow: 0 2px 4px rgba(245, 124, 0, 0.2);
}

.admin-status-badge.user {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
  border-color: #2196f3;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

/* 确保用户管理页面容器背景透明 */

.admin-page-container {
  background: transparent !important;
}

/* 用户统计信息 */

.user-stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg, 1.5rem);
}

.total-count {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(21, 101, 192, 0.05) 100%);
  color: #1565c0;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 20px;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 600;
  border: 1px solid rgba(66, 133, 244, 0.2);
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
}

/* 搜索容器样式 */

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: var(--spacing-md, 1rem);
}

/* 页面头部搜索容器样式 */

.admin-page-header .search-container {
  margin-top: var(--spacing-md, 1rem);
}

.admin-search-input {
  width: 100%;
  max-width: 400px;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-radius: 25px;
  font-size: var(--font-size-sm, 0.875rem);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  outline: none;
}

.admin-search-input:focus {
  border-color: rgba(66, 133, 244, 0.5);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
  background: rgba(255, 255, 255, 1);
}

.admin-search-input::-moz-placeholder {
  color: #999;
  font-style: italic;
}

.admin-search-input::placeholder {
  color: #999;
  font-style: italic;
}

/* 数据表格样式 */

.admin-data-table {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  margin-bottom: var(--spacing-xl, 2rem);
}

.table-header {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(21, 101, 192, 0.05) 100%);
  padding: var(--spacing-lg, 1.5rem);
  border-bottom: 1px solid rgba(66, 133, 244, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
}

.table-header h3 {
  color: #1565c0;
  font-size: 1.8rem !important;
  font-weight: 600;
  margin: 0;
  flex-shrink: 0;
}

/* 表格头部搜索框样式 */

.table-header .search-and-actions {
  width: 100%;
}

.table-header .search-container {
  margin-top: 0;
}

.table-header .admin-search-input {
  max-width: 100%;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  background: white;
  border-radius: 0 0 16px 16px;
}

/* 用户管理表格列显示设置 - 只显示用户名、角色、状态 3列 */

.table-container table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: var(--font-size-base, 1rem);
  table-layout: fixed;
}

.table-container th:nth-child(1),
.table-container td:nth-child(1) {
  width: 40%;
  /* 用户名 */
}

.table-container th:nth-child(2),
.table-container td:nth-child(2) {
  width: 30%;
  /* 角色 */
}

.table-container th:nth-child(3),
.table-container td:nth-child(3) {
  width: 30%;
  /* 状态 */
}

/* 搜索和操作按钮容器 */

.search-and-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md, 1rem);
  flex-wrap: wrap;
}

.search-container {
  flex: 1;
  min-width: 250px;
}

.action-buttons-container {
  display: flex;
  gap: var(--spacing-sm, 0.5rem);
  flex-shrink: 0;
}

/* 可选择行样式 */

.selectable-row {
  cursor: pointer;
  transition: all 0.2s ease;
}

.selectable-row:hover {
  background: rgba(66, 133, 244, 0.05) !important;
}

.selectable-row.selected {
  background: rgba(66, 133, 244, 0.1) !important;
  border-left: 4px solid #4285f4;
}

.selectable-row.selected td {
  border-color: rgba(66, 133, 244, 0.3);
}

/* 操作按钮样式 */

.action-buttons-container .admin-btn-secondary,
.action-buttons-container .admin-btn-danger {
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  font-size: var(--font-size-sm, 0.875rem);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
  min-width: 80px;
}

.action-buttons-container .admin-btn-secondary {
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.action-buttons-container .admin-btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.action-buttons-container .admin-btn-danger {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.action-buttons-container .admin-btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.action-buttons-container .admin-btn-secondary:disabled,
.action-buttons-container .admin-btn-danger:disabled {
  background: #e0e0e0;
  color: #9e9e9e;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.action-buttons-container .admin-btn-secondary:disabled:hover,
.action-buttons-container .admin-btn-danger:disabled:hover {
  background: #e0e0e0;
  transform: none;
  box-shadow: none;
}

.table-container th,
.table-container td {
  padding: var(--spacing-md, 1rem);
  text-align: left;
  border-bottom: 1px solid rgba(66, 133, 244, 0.1);
  vertical-align: middle;
}

.table-container th {
  background: rgba(66, 133, 244, 0.05);
  color: #546e7a;
  font-weight: 600;
  font-size: var(--font-size-base, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-container tbody tr {
  transition: all 0.2s ease;
}

.table-container tbody tr:hover {
  background: rgba(66, 133, 244, 0.02);
}

/* 用户信息样式 */

.user-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 0.25rem);
  text-align: left;
  align-items: flex-start; /* 确保内容左对齐，覆盖全局样式 */
  justify-content: flex-start; /* 确保内容左对齐 */
}

.username {
  color: #1565c0;
  font-weight: 500;
  text-align: left;
  align-self: flex-start; /* 确保用户名左对齐 */
}

/* 表格中的用户信息样式 - 覆盖全局样式 */

.table-container .user-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 0.25rem);
  text-align: left !important;
  align-items: flex-start !important; /* 强制左对齐，覆盖全局样式 */
  justify-content: flex-start !important;
}

.table-container .username {
  color: #1565c0;
  font-weight: 500;
  text-align: left !important;
  align-self: flex-start !important; /* 强制用户名左对齐 */
}

/* 状态徽章样式 */

.admin-status-badge {
  display: inline-block;
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  text-align: center;
  border: 1px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-status-badge.admin {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
  border-color: #ffcc02;
  box-shadow: 0 2px 4px rgba(245, 124, 0, 0.2);
}

.admin-status-badge.user {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
  border-color: #2196f3;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.admin-status-badge.active {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-color: #4caf50;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.admin-status-badge.inactive {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe082 100%);
  color: #f57c00;
  border-color: #ffc107;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.admin-status-badge.banned {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #d32f2f;
  border-color: #f44336;
  box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

/* 操作按钮样式 */

.action-buttons {
  display: flex;
  gap: var(--spacing-sm, 0.5rem);
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
}

.admin-btn-secondary.small {
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  font-size: var(--font-size-sm, 0.875rem);
  border-radius: 6px;
  white-space: nowrap;
  min-width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-btn-danger {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  border: none;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-btn-danger:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.admin-btn-danger.small {
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  font-size: var(--font-size-sm, 0.875rem);
  border-radius: 6px;
  min-width: auto;
}

.admin-protection-label {
  color: #546e7a;
  font-size: var(--font-size-sm, 0.875rem);
  font-style: italic;
  font-weight: 500;
  background: rgba(66, 133, 244, 0.05);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  border-radius: 6px;
  border: 1px solid rgba(66, 133, 244, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  white-space: nowrap;
}

/* 分页样式 */

.admin-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg, 1.5rem);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-lg, 1.5rem);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
}

.pagination-info {
  color: #546e7a;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
}

.admin-pagination .admin-btn-secondary:disabled {
  background: rgba(66, 133, 244, 0.05);
  color: #bdbdbd;
  border-color: rgba(66, 133, 244, 0.1);
  cursor: not-allowed;
  transform: none;
}

.admin-pagination .admin-btn-secondary:disabled:hover {
  background: rgba(66, 133, 244, 0.05);
  transform: none;
}

/* 空状态样式 */

.admin-empty-state {
  text-align: center;
  padding: var(--spacing-xxl, 3rem);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg, 1.5rem);
  opacity: 0.6;
}

.admin-empty-state h3 {
  color: #1565c0;
  font-size: var(--font-size-xl, 1.25rem);
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
}

.admin-empty-state p {
  color: #546e7a;
  font-size: var(--font-size-base, 1rem);
  margin: 0;
  line-height: 1.5;
}

/* 响应式设计 */

/* 平板设备优化 - 760px以下 */

@media (max-width: 760px) {
  .admin-page-header {
    padding: var(--spacing-lg, 1.5rem);
  }

  .admin-page-title {
    font-size: 1.8rem !important;
  }

  .table-header {
    padding: var(--spacing-md, 1rem);
  }

  .table-header h3 {
    font-size: 1.5rem !important;
  }

  .search-and-actions {
    flex-direction: column;
    gap: var(--spacing-md, 1rem);
  }

  .search-container {
    min-width: auto;
    width: 100%;
  }

  .action-buttons-container {
    justify-content: center;
    width: 100%;
  }

  /* 修复表格布局问题 - 改为自适应布局 */
  .table-container table {
    table-layout: auto !important;
    min-width: 450px; /* 增加最小宽度，确保有足够空间 */
  }

  .table-container th:nth-child(1),
  .table-container td:nth-child(1) {
    width: auto !important;
    min-width: 120px; /* 用户名最小宽度 */
  }

  .table-container th:nth-child(2),
  .table-container td:nth-child(2) {
    width: auto !important;
    min-width: 90px; /* 角色最小宽度 */
  }

  .table-container th:nth-child(3),
  .table-container td:nth-child(3) {
    width: auto !important;
    min-width: 80px; /* 状态最小宽度 */
  }

  .table-container th,
  .table-container td {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-xs, 0.25rem);
    font-size: var(--font-size-sm, 0.875rem);
  }

  .admin-status-badge {
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  }
}

/* 手机设备优化 - 767px以下 */

@media (max-width: 767px) {
  .admin-page-header .header-content {
    flex-direction: column;
    gap: var(--spacing-md, 1rem);
    text-align: center;
  }

  .user-stats {
    justify-content: center;
  }

  .table-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-md, 1rem);
  }

  .table-header h3 {
    text-align: center;
    font-size: var(--font-size-lg, 1.125rem);
  }

  .table-header .search-container {
    max-width: 100%;
    min-width: auto;
  }

  .table-container {
    font-size: var(--font-size-xs, 1.2rem);
  }

  /* 进一步优化表格布局 */
  .table-container table {
    table-layout: auto !important;
    min-width: 400px;
  }

  .table-container th:nth-child(1),
  .table-container td:nth-child(1) {
    min-width: 110px; /* 用户名 */
  }

  .table-container th:nth-child(2),
  .table-container td:nth-child(2) {
    min-width: 80px; /* 角色 */
  }

  .table-container th:nth-child(3),
  .table-container td:nth-child(3) {
    min-width: 70px; /* 状态 */
  }

  .table-container th,
  .table-container td {
    padding: var(--spacing-sm, 0.5rem);
  }

  .action-buttons {
    flex-direction: column;
    gap: var(--spacing-xs, 0.25rem);
    width: 100%;
    justify-content: center;
  }

  .admin-btn-secondary.small,
  .admin-btn-danger.small {
    width: 100%;
    text-align: center;
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
    white-space: nowrap;
  }

  .admin-protection-label {
    width: 100%;
    text-align: center;
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
    white-space: nowrap;
  }

  .admin-pagination {
    flex-direction: column;
    gap: var(--spacing-md, 1rem);
  }

  .admin-pagination .admin-btn-secondary {
    width: 120px;
  }

  .pagination-info {
    order: -1;
    font-size: var(--font-size-sm, 0.875rem);
  }
}

/* 小屏手机设备优化 - 680px以下 */

@media (max-width: 680px) {
  .admin-page-container {
    padding: var(--spacing-sm, 0.5rem);
  }

  .admin-page-header {
    padding: var(--spacing-md, 1rem);
  }

  .admin-page-title {
    font-size: 1.5rem !important;
  }

  .table-header {
    padding: var(--spacing-sm, 0.5rem);
  }

  .table-header h3 {
    font-size: 1.2rem !important;
  }

  .admin-search-input {
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  }

  .table-container {
    font-size: var(--font-size-xs, 0.75rem);
  }

  .table-container th,
  .table-container td {
    padding: var(--spacing-xs, 0.25rem);
    font-size: var(--font-size-xs, 0.75rem);
  }

  .table-container table {
    min-width: 400px; /* 确保表格有最小宽度，启用横向滚动 */
  }

  .username {
    font-size: var(--font-size-xs, 0.75rem) !important;
  }

  .admin-status-badge {
    font-size: 10px;
    padding: 2px 4px;
  }

  .action-buttons-container .admin-btn-secondary,
  .action-buttons-container .admin-btn-danger {
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
    min-width: 60px;
  }

  .total-count {
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  }

  .admin-pagination {
    padding: var(--spacing-md, 1rem);
  }

  .admin-pagination .admin-btn-secondary {
    width: 100px;
    font-size: var(--font-size-xs, 0.75rem);
  }

  .pagination-info {
    font-size: var(--font-size-xs, 0.75rem);
  }
}/* 管理员界面通用样式 - 统一设计系统 */

/* 导入背景修复样式 */

/* 背景割裂修复样式 - 统一所有页面的背景处理 */

/* 确保html和body有统一的背景 */

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary, linear-gradient(135deg, #ffffff 0%, #e3f2fd 30%, #4285f4 100%)) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent !important; /* 使用html的背景 */
  min-height: 100vh;
}

/* 强制覆盖所有可能的背景设置 */

* {
  background-attachment: inherit !important;
}

/* 应用容器背景修复 */

.app-container {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 主内容区域背景修复 */

.main-content {
  background: transparent;
  width: 100%;
}

.content-area {
  background: transparent;
}

/* 管理员页面背景修复 - 使用!important确保优先级 */

.admin-page-container {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
}

.admin-container {
  background: transparent !important;
  width: 100%;
}

/* 管理员页面特定背景修复 */

.admin-page-container::before {
  display: none !important;
}

.admin-page-container::after {
  display: none !important;
}

/* 用户详情页面背景修复 */

.user-detail-page {
  background: transparent !important;
}

/* 所有可能的管理员页面容器背景修复 */

.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings {
  background: transparent !important;
}

/* 社区页面背景修复 - 使用!important确保优先级 */

.community-page {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.community-header {
  background: var(--bg-card, rgba(255, 255, 255, 0.95)) !important;
  backdrop-filter: blur(10px);
  margin: 0;
  width: 100%;
}

.community-content {
  background: transparent !important;
}

/* 社区页面特定背景修复 */

.community-page::before {
  display: none !important;
}

.community-page::after {
  display: none !important;
}

/* 系统设置页面背景修复 */

.settings-page {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 确保所有卡片和容器使用正确的背景 */

.admin-stat-card,
.admin-data-table,
.settings-section,
.project-card,
.user-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
}

/* 全局背景修复 - 确保所有页面容器都使用透明背景 */

.admin-page-container,
.community-page,
.user-detail-page,
.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings,
.settings-page,
.app-container,
.main-content,
.content-area,
.page-container,
.project-page,
.project-detail,
.user-profile,
.system-settings {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* 确保卡片背景与主背景融合 */

.card,
.admin-card,
.project-card,
.user-card,
.settings-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 模态框和弹窗背景修复 */

.modal,
.dialog,
.popup,
.dropdown-menu {
  background: var(--bg-card) !important;
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
}

/* 响应式背景修复 */

@media (max-width: 768px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }
}

@media (max-width: 480px) {
  .admin-page-container {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }
}

/* CSS变量定义 - 与colors.js保持一致 */

:root {
  /* 管理员界面专用颜色变量 */
  --admin-primary: #4285f4;
  --admin-primary-dark: #1565c0;
  --admin-secondary: #546e7a;
  --admin-accent: #1565c0;
  
  /* 背景色 - 修改为透明，使用全局背景 */
  --admin-bg-primary: transparent;
  --admin-bg-card: rgba(255, 255, 255, 0.95);
  --admin-bg-overlay: rgba(255, 255, 255, 0.9);
  
  /* 边框和阴影 */
  --admin-border-light: rgba(66, 133, 244, 0.1);
  --admin-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --admin-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  
  /* 状态颜色 */
  --admin-success: #4caf50;
  --admin-error: #f44336;
  --admin-warning: #ff9800;
  --admin-info: #2196f3;
}

/* 深色主题支持 */

[data-theme="dark"] {
  --admin-bg-primary: transparent;
  --admin-bg-card: rgba(45, 55, 72, 0.95);
  --admin-bg-overlay: rgba(45, 55, 72, 0.9);
  --admin-border-light: rgba(99, 179, 237, 0.2);
  --admin-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 管理员页面容器基础样式 - 优化字体大小和响应式设计 */

.admin-page-container {
  min-height: 100vh;
  width: 100%;
  background: transparent !important;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
  /* 使用全局字体定义，保持一致性 */
  color: #333;
  position: relative;
  font-size: var(--font-size-base, 1rem);
  line-height: 1.6;
}

/* 响应式字体大小 - 基于屏幕尺寸动态调整 */

@media (min-width: 1200px) {
  .admin-page-container {
    font-size: var(--font-size-lg, 1.125rem);
  }
}

@media (min-width: 1440px) {
  .admin-page-container {
    font-size: var(--font-size-xl, 1.25rem);
  }
}

@media (min-width: 1920px) {
  .admin-page-container {
    font-size: var(--font-size-2xl, 1.5rem);
  }
}

/* 管理员容器 - 移除重复背景设置，增加最大宽度以适应表格 */

.admin-container {
  width: 100%;
  max-width: 2000px; /* 从1600px进一步增加到2000px，给表格更多空间 */
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
  /* 使用全局字体定义，保持一致性 */
  color: #333;
}

/* 统一的加载、错误和空状态容器 */

.admin-loading-container,
.admin-error-container,
.admin-empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.loading-content,
.error-content {
  text-align: center;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
}

.error-content {
  border-left: 4px solid var(--admin-error);
}

/* 页面头部 - 统一样式 */

.admin-page-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem) var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  text-align: center;
}

.admin-page-title {
  color: var(--admin-accent);
  font-size: 2rem !important;
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
  text-shadow: 0 2px 4px rgba(21, 101, 192, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md, 0.5rem);
}

/* 响应式页面标题字体大小 */

@media (min-width: 1200px) {
  .admin-page-title {
    font-size: 2rem !important;
  }
}

@media (min-width: 1440px) {
  .admin-page-title {
    font-size: 2.2rem !important;
  }
}

@media (min-width: 1920px) {
  .admin-page-title {
    font-size: 2.5rem !important;
  }
}

.welcome-text {
  color: var(--admin-secondary);
  font-size: 1.8rem !important;
  font-weight: 500;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
  align-items: center;
}

/* 统一按钮样式 */

.admin-btn-primary {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
  color: white;
  border: none;
  padding: var(--spacing-md, 1rem) var(--spacing-xl, 2rem);
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--font-size-base, 1rem);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.admin-btn-secondary {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
  border: 2px solid rgba(66, 133, 244, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-btn-secondary:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
}

/* 用户详情页面样式 - 更新为统一设计 */

.user-detail-page {
  background: transparent !important;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  /* 保持居中布局，继承 admin-container 的居中设置 */
  width: 100%;
  max-width: 2000px; /* 与admin-container保持一致 */
  margin: 0 auto;
}

/* 修复页面头部样式 */

.user-detail-page .page-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-detail-page .page-header h1 {
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
  margin: 0;
}

.user-detail-page .header-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
}

.back-button {
  background: var(--admin-btn-secondary);
  color: var(--admin-accent);
  border: 2px solid rgba(66, 133, 244, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.back-button:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--admin-accent);
}

.user-profile-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  display: flex;
  align-items: center;
  gap: var(--spacing-xl, 2rem);
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: bold;
}

.user-info {
  flex: 1;
}

.user-info h2 {
  margin: 0 0 var(--spacing-md, 1rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
}

.user-meta {
  display: flex;
  gap: var(--spacing-lg, 1.5rem);
  align-items: center;
  flex-wrap: wrap;
}

.user-id {
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  font-family: 'Courier New', monospace;
  background: rgba(66, 133, 244, 0.1);
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 4px;
}

.project-count {
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
}

.user-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
}

.delete-button {
  background: linear-gradient(135deg, var(--admin-error) 0%, #d32f2f 100%);
  color: white;
  border: none;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.delete-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.delete-button:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.admin-protection-notice {
  text-align: center;
  padding: var(--spacing-xl, 2rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  box-shadow: var(--admin-shadow-light);
}

.admin-badge {
  display: inline-block;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
  border: 1px solid #ffcc02;
  border-radius: 20px;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 600;
  margin-bottom: var(--spacing-md, 1rem);
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.2);
}

.admin-notice {
  margin: var(--spacing-sm, 0.5rem) 0 0 0;
  color: var(--admin-secondary);
  font-size: var(--font-size-xs, 0.75rem);
  font-style: italic;
}

/* 标签页样式 - 更新为统一设计 */

.admin-tabs {
  display: flex;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  overflow: hidden;
}

.admin-tab {
  flex: 1;
  padding: var(--spacing-lg, 1.5rem) var(--spacing-xl, 2rem);
  background: rgba(66, 133, 244, 0.05);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base, 1rem);
  color: var(--admin-secondary);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  font-weight: 500;
}

.admin-tab:hover {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
}

.admin-tab.active {
  background: var(--admin-bg-card);
  color: var(--admin-accent);
  border-bottom-color: var(--admin-primary);
  font-weight: 600;
}

.admin-tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 标签页内容区域 */

.tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 个人资料标签页 */

.profile-tab {
  padding: var(--spacing-xxl, 3rem);
}

/* 项目标签页 */

.projects-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 活动标签页 */

.activity-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 占位文本样式 */

.placeholder-text {
  color: var(--admin-secondary);
  font-size: var(--font-size-lg, 1.125rem);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* 标签页内容区域 */

.tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 个人资料标签页 */

.profile-tab {
  padding: var(--spacing-xxl, 3rem);
}

/* 项目标签页 */

.projects-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 活动标签页 */

.activity-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 占位文本样式 */

.placeholder-text {
  color: var(--admin-secondary);
  font-size: var(--font-size-lg, 1.125rem);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* 信息区块样式 - 更新为统一设计 */

.admin-info-section,
.info-section {
  padding: var(--spacing-xxl, 3rem);
  border-bottom: 1px solid var(--admin-border-light);
}

.admin-info-section:last-child,
.info-section:last-child {
  border-bottom: none;
}

.admin-info-section h3,
.info-section h3 {
  margin: 0 0 var(--spacing-xl, 2rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-lg, 1.125rem);
  font-weight: 600;
}

.admin-info-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl, 2rem);
}

.admin-info-item,
.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, 0.5rem);
  font-size:1.5rem !important
}

.admin-info-item label,
.info-item label {
  font-weight: 600;
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-info-item div,
.info-item div {
  color: var(--admin-accent);
  font-size: var(--font-size-base, 1rem);
  font-weight: 500;
}

/* 第三方绑定列表样式 */

.bindings-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
}

.binding-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md, 1rem);
  background: rgba(66, 133, 244, 0.05);
  border-radius: 8px;
  border: 1px solid var(--admin-border-light);
}

.binding-type {
  font-weight: 500;
  color: var(--admin-accent);
}

.binding-status {
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
}

.binding-status.bound {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.binding-status.unbound {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
  border: 1px solid rgba(158, 158, 158, 0.2);
}

/* 用户头像样式 */

.user-profile-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xxl, 3rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
}

.user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--admin-border-light);
  box-shadow: var(--admin-shadow-light);
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--admin-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
}

.user-info {
  flex-grow: 1;
}

.user-info h2 {
  margin: 0 0 var(--spacing-md, 1rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
}

.user-meta {
  display: flex;
  gap: var(--spacing-lg, 1.5rem);
  flex-wrap: wrap;
  align-items: center;
}

.user-meta span {
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
}

.user-id {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
  border: 1px solid rgba(66, 133, 244, 0.2);
}

.project-count {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.user-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
  align-items: flex-end;
}

.delete-button {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 2px solid rgba(244, 67, 54, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-button:hover:not(:disabled) {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.4);
  transform: translateY(-1px);
}

.delete-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-protection-notice {
  text-align: right;
}

.admin-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.2);
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  margin-bottom: var(--spacing-xs, 0.25rem);
}

.admin-notice {
  margin: 0;
  color: var(--admin-secondary);
  font-size: var(--font-size-xs, 0.75rem);
  font-style: italic;
}

/* 加载和错误状态样式 */

.admin-container.loading,
.admin-container.error,
.admin-container.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  text-align: center;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin: var(--spacing-xl, 2rem);
  padding: var(--spacing-xxl, 3rem);
}

.admin-container.loading {
  color: var(--admin-accent);
  font-size: var(--font-size-lg, 1.125rem);
}

.admin-container.error h2,
.admin-container.not-found h2 {
  color: #f44336;
  margin-bottom: var(--spacing-lg, 1.5rem);
  font-size: var(--font-size-xl, 1.25rem);
}

.admin-container.error p,
.admin-container.not-found p {
  color: var(--admin-secondary);
  margin-bottom: var(--spacing-xl, 2rem);
  font-size: var(--font-size-base, 1rem);
}

.admin-container.error button,
.admin-container.not-found button {
  background: var(--admin-accent);
  color: white;
  border: none;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-container.error button:hover,
.admin-container.not-found button:hover {
  background: rgba(66, 133, 244, 0.8);
  transform: translateY(-1px);
}

/* 统一动画和过渡效果 */

.admin-fade-in {
  animation: adminFadeIn 0.4s ease-out;
}

@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-slide-up {
  animation: adminSlideUp 0.3s ease-out;
}

@keyframes adminSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 空状态样式 */

.admin-empty-state {
  text-align: center;
  padding: var(--spacing-xxl, 3rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
}

.admin-empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg, 1.5rem);
  opacity: 0.6;
}

.admin-empty-state h3 {
  color: var(--admin-accent);
  font-size: var(--font-size-xl, 1.25rem);
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
}

.admin-empty-state p {
  color: var(--admin-secondary);
  font-size: var(--font-size-base, 1rem);
  margin: 0;
  line-height: 1.5;
}

/* 响应式设计 */

@media (max-width: 767px) {
  .admin-page-container,
  .admin-container {
    padding: var(--spacing-md, 1rem);
  }

  .user-detail-page {
    padding: var(--spacing-md, 1rem);
    /* 在移动设备上也保持居中 */
    margin: 0 auto;
    max-width: 100%;
  }

  .user-profile-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg, 1.5rem);
  }

  .user-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .admin-info-grid,
  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 1.5rem);
  }

  .admin-tabs {
    flex-direction: column;
  }

  .admin-tab {
    border-radius: 0;
    border-bottom: 1px solid var(--admin-border-light);
  }

  .admin-tab:last-child {
    border-bottom: none;
  }
  
  .admin-page-header {
    padding: var(--spacing-lg, 1.5rem);
    text-align: center;
  }
  
  .admin-page-title {
    font-size: 2rem !important;
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--spacing-md, 0.5rem);
    text-align: center;
  }
  
  .welcome-text {
    font-size: var(--font-size-base, 1rem);
  }
  
  .user-profile-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg, 1.5rem);
    padding: var(--spacing-lg, 1.5rem);
  }
  
  .user-meta {
    justify-content: center;
    gap: var(--spacing-md, 1rem);
  }
  
  .admin-info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 1.5rem);
  }
  
  .admin-tabs {
    flex-direction: column;
    border-radius: 16px;
  }
  
  .admin-tab {
    border-bottom: 1px solid var(--admin-border-light);
    border-radius: 0;
    padding: var(--spacing-md, 1rem);
  }
  
  .admin-tab:last-child {
    border-bottom: none;
  }
  
  .admin-tab.active {
    border-bottom-color: var(--admin-primary);
  }
  
  .admin-tab-content {
    border-radius: 16px;
    border: 1px solid var(--admin-border-light);
  }
  
  .admin-btn-primary,
  .admin-btn-secondary {
    width: 100%;
    padding: var(--spacing-md, 1rem);
    text-align: center;
  }
  
  .loading-content,
  .error-content {
    padding: var(--spacing-xl, 2rem);
  }
}

@media (max-width: 479px) {
  .admin-page-container {
    padding: var(--spacing-sm, 0.5rem);
  }
  
  .admin-page-header {
    padding: var(--spacing-md, 1rem);
  }
  
  .admin-page-title {
    font-size: 1.6rem !important;
  }
  
  .welcome-text {
    font-size: var(--font-size-sm, 0.875rem);
  }
  
  .user-profile-header {
    padding: var(--spacing-md, 1rem);
  }
  
  .user-avatar {
    width: 60px;
    height: 60px;
  }
  
  .avatar-placeholder {
    font-size: 24px;
  }
  
  .user-info h2 {
    font-size: var(--font-size-lg, 1.125rem);
  }
  
  .admin-btn-primary,
  .admin-btn-secondary {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
  }
  
  .loading-content,
  .error-content {
    padding: var(--spacing-lg, 1.5rem);
  }
}

/* 平板响应式 */

@media (min-width: 768px) and (max-width: 1023px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
  }
  
  .admin-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 大屏幕优化 */

@media (min-width: 1024px) {
  .admin-page-container {
    max-width: 1600px; /* 增加页面容器最大宽度 */
    margin: 0 auto;
  }
  
  .admin-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* 增强交互效果 */
  .admin-page-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-hover);
  }

  .user-profile-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-hover);
  }
}

/* 表格样式 */

.admin-data-table {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: var(--spacing-xl, 2rem);
}

.admin-data-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 固定表格布局，严格按照设定的列宽分配 */
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-data-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

/* 表格内容字体大小优化 */

.admin-data-table .user-id {
  font-size: 16px !important;
  font-weight: 500;
  color: #2563eb;
}

.admin-data-table .user-email {
  font-size: 16px !important;
  color: #374151;
  font-weight: 500;
}

.admin-data-table .project-count-badge {
  font-size: 16px !important;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

.admin-data-table .date-text {
  font-size: 16px !important;
  color: #6b7280;
  font-weight: 500;
}

.admin-data-table .username {
  font-size: 16px !important;
  font-weight: 600;
  color: #111827;
}

.admin-data-table .project-name {
  font-size: 16px !important;
  font-weight: 600;
  color: #111827;
}

.admin-data-table .project-type-badge {
  font-size: 16px !important;
  font-weight: 500;
  color: #667eea;
}

.admin-data-table .admin-status-badge {
  font-size: 14px !important;
  font-weight: 600;
}

/* 用户管理表格列宽优化 */

.admin-data-table table th:nth-child(1), /* 用户ID */
.admin-data-table table td:nth-child(1) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.admin-data-table table th:nth-child(2), /* 用户名 */
.admin-data-table table td:nth-child(2) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.admin-data-table table th:nth-child(3), /* 邮箱 */
.admin-data-table table td:nth-child(3) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

.admin-data-table table th:nth-child(4), /* 角色 */
.admin-data-table table td:nth-child(4) {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}

.admin-data-table table th:nth-child(5), /* 项目数量 */
.admin-data-table table td:nth-child(5) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  text-align: center;
}

.admin-data-table table th:nth-child(6), /* 注册时间 */
.admin-data-table table td:nth-child(6) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.admin-data-table table th:nth-child(7), /* 状态 */
.admin-data-table table td:nth-child(7) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.admin-data-table table th:nth-child(8), /* 操作 */
.admin-data-table table td:nth-child(8) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

/* 用户管理表格内容溢出处理 */

.admin-data-table table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 12px 8px;
}

/* 邮箱列特殊处理 */

.admin-data-table table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 响应式设计 - 移动端优化 */

@media (max-width: 768px) {
  /* 移动端取消固定布局，恢复自适应 */
  .admin-data-table table {
    table-layout: auto !important;
    min-width: 800px; /* 设置最小宽度，启用横向滚动 */
  }

  /* 移动端列宽调整 */
  .admin-data-table table th,
  .admin-data-table table td {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    padding: 8px 4px;
    font-size: 14px;
  }

  /* 移动端关键列最小宽度 */
  .admin-data-table table th:nth-child(1),
  .admin-data-table table td:nth-child(1) { min-width: 60px; } /* ID */

  .admin-data-table table th:nth-child(2),
  .admin-data-table table td:nth-child(2) { min-width: 100px; } /* 用户名 */

  .admin-data-table table th:nth-child(3),
  .admin-data-table table td:nth-child(3) { min-width: 150px; } /* 邮箱 */

  .admin-data-table table th:nth-child(4),
  .admin-data-table table td:nth-child(4) { min-width: 80px; } /* 角色 */

  .admin-data-table table th:nth-child(5),
  .admin-data-table table td:nth-child(5) { min-width: 60px; } /* 项目数 */

  .admin-data-table table th:nth-child(6),
  .admin-data-table table td:nth-child(6) { min-width: 100px; } /* 注册时间 */

  .admin-data-table table th:nth-child(7),
  .admin-data-table table td:nth-child(7) { min-width: 70px; } /* 状态 */

  .admin-data-table table th:nth-child(8),
  .admin-data-table table td:nth-child(8) { min-width: 120px; } /* 操作 */
}

/* 中等屏幕优化 - 1200px以下开始自适应 */

@media (max-width: 1200px) {
  .admin-data-table table {
    table-layout: auto !important;
  }

  .admin-data-table table th,
  .admin-data-table table td {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
  }

  /* 中等屏幕最小宽度设置 */
  .admin-data-table table th:nth-child(1),
  .admin-data-table table td:nth-child(1) { min-width: 60px; } /* ID */

  .admin-data-table table th:nth-child(2),
  .admin-data-table table td:nth-child(2) { min-width: 100px; } /* 用户名 */

  .admin-data-table table th:nth-child(3),
  .admin-data-table table td:nth-child(3) { min-width: 120px; } /* 邮箱 */

  .admin-data-table table th:nth-child(4),
  .admin-data-table table td:nth-child(4) { min-width: 80px; } /* 角色 */

  .admin-data-table table th:nth-child(5),
  .admin-data-table table td:nth-child(5) { min-width: 60px; } /* 项目数 */

  .admin-data-table table th:nth-child(6),
  .admin-data-table table td:nth-child(6) { min-width: 100px; } /* 注册时间 */

  .admin-data-table table th:nth-child(7),
  .admin-data-table table td:nth-child(7) { min-width: 70px; } /* 状态 */

  .admin-data-table table th:nth-child(8),
  .admin-data-table table td:nth-child(8) { min-width: 100px; } /* 操作 */
}

/* 平板设备优化 */

@media (min-width: 769px) and (max-width: 1024px) {
  .admin-data-table table th,
  .admin-data-table table td {
    padding: 10px 6px;
    font-size: 15px;
  }
}

/* 表格字体响应式优化 - 760px以下 */

@media (max-width: 760px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 14px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 14px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 14px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 12px !important;
    padding: 3px 6px;
  }
}

/* 表格字体响应式优化 - 680px以下 */

@media (max-width: 680px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 13px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 13px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 13px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 11px !important;
    padding: 2px 5px;
  }
}

/* 表格字体响应式优化 - 480px以下 */

@media (max-width: 480px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 12px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 12px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 12px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 10px !important;
    padding: 2px 4px;
  }
}

/* 表格字体响应式优化 - 大屏幕设备 */

/* 1200px以上 - 大屏幕优化 */

@media (min-width: 1200px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 18px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 17px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 17px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 15px !important;
    padding: 5px 10px;
  }
}

/* 1440px以上 - 超大屏幕优化 */

@media (min-width: 1440px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 20px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 19px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 19px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 16px !important;
    padding: 6px 12px;
  }
}

/* 1920px以上 - 4K屏幕优化 */

@media (min-width: 1920px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 22px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 21px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 21px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 18px !important;
    padding: 7px 14px;
  }
}

/* 管理员状态徽章样式 - 用于用户详情页面 */

.admin-status-badge {
  display: inline-block;
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  text-align: center;
  border: 1px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-status-badge.active {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-color: #4caf50;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.admin-status-badge.inactive {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe082 100%);
  color: #f57c00;
  border-color: #ffc107;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.admin-status-badge.banned {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #d32f2f;
  border-color: #f44336;
  box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.admin-status-badge.admin {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
  border-color: #ffcc02;
  box-shadow: 0 2px 4px rgba(245, 124, 0, 0.2);
}

.admin-status-badge.user {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
  border-color: #2196f3;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}
/* 项目管理页面样式 - 与管理员仪表盘保持一致的设计风格 */

/* 导入背景修复样式 */

/* 背景割裂修复样式 - 统一所有页面的背景处理 */

/* 确保html和body有统一的背景 */

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary, linear-gradient(135deg, #ffffff 0%, #e3f2fd 30%, #4285f4 100%)) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent !important; /* 使用html的背景 */
  min-height: 100vh;
}

/* 强制覆盖所有可能的背景设置 */

* {
  background-attachment: inherit !important;
}

/* 应用容器背景修复 */

.app-container {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 主内容区域背景修复 */

.main-content {
  background: transparent;
  width: 100%;
}

.content-area {
  background: transparent;
}

/* 管理员页面背景修复 - 使用!important确保优先级 */

.admin-page-container {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
}

.admin-container {
  background: transparent !important;
  width: 100%;
}

/* 管理员页面特定背景修复 */

.admin-page-container::before {
  display: none !important;
}

.admin-page-container::after {
  display: none !important;
}

/* 用户详情页面背景修复 */

.user-detail-page {
  background: transparent !important;
}

/* 所有可能的管理员页面容器背景修复 */

.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings {
  background: transparent !important;
}

/* 社区页面背景修复 - 使用!important确保优先级 */

.community-page {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.community-header {
  background: var(--bg-card, rgba(255, 255, 255, 0.95)) !important;
  backdrop-filter: blur(10px);
  margin: 0;
  width: 100%;
}

.community-content {
  background: transparent !important;
}

/* 社区页面特定背景修复 */

.community-page::before {
  display: none !important;
}

.community-page::after {
  display: none !important;
}

/* 系统设置页面背景修复 */

.settings-page {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 确保所有卡片和容器使用正确的背景 */

.admin-stat-card,
.admin-data-table,
.settings-section,
.project-card,
.user-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
}

/* 全局背景修复 - 确保所有页面容器都使用透明背景 */

.admin-page-container,
.community-page,
.user-detail-page,
.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings,
.settings-page,
.app-container,
.main-content,
.content-area,
.page-container,
.project-page,
.project-detail,
.user-profile,
.system-settings {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* 确保卡片背景与主背景融合 */

.card,
.admin-card,
.project-card,
.user-card,
.settings-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 模态框和弹窗背景修复 */

.modal,
.dialog,
.popup,
.dropdown-menu {
  background: var(--bg-card) !important;
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
}

/* 响应式背景修复 */

@media (max-width: 768px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }
}

@media (max-width: 480px) {
  .admin-page-container {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }
}

/* 继承管理员页面的基础样式 */

/* 管理员界面通用样式 - 统一设计系统 */

/* 导入背景修复样式 */

/* CSS变量定义 - 与colors.js保持一致 */

:root {
  /* 管理员界面专用颜色变量 */
  --admin-primary: #4285f4;
  --admin-primary-dark: #1565c0;
  --admin-secondary: #546e7a;
  --admin-accent: #1565c0;
  
  /* 背景色 - 修改为透明，使用全局背景 */
  --admin-bg-primary: transparent;
  --admin-bg-card: rgba(255, 255, 255, 0.95);
  --admin-bg-overlay: rgba(255, 255, 255, 0.9);
  
  /* 边框和阴影 */
  --admin-border-light: rgba(66, 133, 244, 0.1);
  --admin-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --admin-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  
  /* 状态颜色 */
  --admin-success: #4caf50;
  --admin-error: #f44336;
  --admin-warning: #ff9800;
  --admin-info: #2196f3;
}

/* 深色主题支持 */

[data-theme="dark"] {
  --admin-bg-primary: transparent;
  --admin-bg-card: rgba(45, 55, 72, 0.95);
  --admin-bg-overlay: rgba(45, 55, 72, 0.9);
  --admin-border-light: rgba(99, 179, 237, 0.2);
  --admin-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 管理员页面容器基础样式 - 优化字体大小和响应式设计 */

.admin-page-container {
  min-height: 100vh;
  width: 100%;
  background: transparent !important;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
  /* 使用全局字体定义，保持一致性 */
  color: #333;
  position: relative;
  font-size: var(--font-size-base, 1rem);
  line-height: 1.6;
}

/* 响应式字体大小 - 基于屏幕尺寸动态调整 */

@media (min-width: 1200px) {
  .admin-page-container {
    font-size: var(--font-size-lg, 1.125rem);
  }
}

@media (min-width: 1440px) {
  .admin-page-container {
    font-size: var(--font-size-xl, 1.25rem);
  }
}

@media (min-width: 1920px) {
  .admin-page-container {
    font-size: var(--font-size-2xl, 1.5rem);
  }
}

/* 管理员容器 - 移除重复背景设置，增加最大宽度以适应表格 */

.admin-container {
  width: 100%;
  max-width: 2000px; /* 从1600px进一步增加到2000px，给表格更多空间 */
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
  /* 使用全局字体定义，保持一致性 */
  color: #333;
}

/* 统一的加载、错误和空状态容器 */

.admin-loading-container,
.admin-error-container,
.admin-empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.loading-content,
.error-content {
  text-align: center;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
}

.error-content {
  border-left: 4px solid var(--admin-error);
}

/* 页面头部 - 统一样式 */

.admin-page-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem) var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  text-align: center;
}

.admin-page-title {
  color: var(--admin-accent);
  font-size: 2rem !important;
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
  text-shadow: 0 2px 4px rgba(21, 101, 192, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md, 0.5rem);
}

/* 响应式页面标题字体大小 */

@media (min-width: 1200px) {
  .admin-page-title {
    font-size: 2rem !important;
  }
}

@media (min-width: 1440px) {
  .admin-page-title {
    font-size: 2.2rem !important;
  }
}

@media (min-width: 1920px) {
  .admin-page-title {
    font-size: 2.5rem !important;
  }
}

.welcome-text {
  color: var(--admin-secondary);
  font-size: 1.8rem !important;
  font-weight: 500;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
  align-items: center;
}

/* 统一按钮样式 */

.admin-btn-primary {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
  color: white;
  border: none;
  padding: var(--spacing-md, 1rem) var(--spacing-xl, 2rem);
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--font-size-base, 1rem);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.admin-btn-secondary {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
  border: 2px solid rgba(66, 133, 244, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-btn-secondary:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
}

/* 用户详情页面样式 - 更新为统一设计 */

.user-detail-page {
  background: transparent !important;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  /* 保持居中布局，继承 admin-container 的居中设置 */
  width: 100%;
  max-width: 2000px; /* 与admin-container保持一致 */
  margin: 0 auto;
}

/* 修复页面头部样式 */

.user-detail-page .page-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-detail-page .page-header h1 {
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
  margin: 0;
}

.user-detail-page .header-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
}

.back-button {
  background: var(--admin-btn-secondary);
  color: var(--admin-accent);
  border: 2px solid rgba(66, 133, 244, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.back-button:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--admin-accent);
}

.user-profile-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  display: flex;
  align-items: center;
  gap: var(--spacing-xl, 2rem);
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: bold;
}

.user-info {
  flex: 1;
}

.user-info h2 {
  margin: 0 0 var(--spacing-md, 1rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
}

.user-meta {
  display: flex;
  gap: var(--spacing-lg, 1.5rem);
  align-items: center;
  flex-wrap: wrap;
}

.user-id {
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  font-family: 'Courier New', monospace;
  background: rgba(66, 133, 244, 0.1);
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 4px;
}

.project-count {
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
}

.user-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
}

.delete-button {
  background: linear-gradient(135deg, var(--admin-error) 0%, #d32f2f 100%);
  color: white;
  border: none;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.delete-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.delete-button:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.admin-protection-notice {
  text-align: center;
  padding: var(--spacing-xl, 2rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  box-shadow: var(--admin-shadow-light);
}

.admin-badge {
  display: inline-block;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
  border: 1px solid #ffcc02;
  border-radius: 20px;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 600;
  margin-bottom: var(--spacing-md, 1rem);
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.2);
}

.admin-notice {
  margin: var(--spacing-sm, 0.5rem) 0 0 0;
  color: var(--admin-secondary);
  font-size: var(--font-size-xs, 0.75rem);
  font-style: italic;
}

/* 标签页样式 - 更新为统一设计 */

.admin-tabs {
  display: flex;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  overflow: hidden;
}

.admin-tab {
  flex: 1;
  padding: var(--spacing-lg, 1.5rem) var(--spacing-xl, 2rem);
  background: rgba(66, 133, 244, 0.05);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base, 1rem);
  color: var(--admin-secondary);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  font-weight: 500;
}

.admin-tab:hover {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
}

.admin-tab.active {
  background: var(--admin-bg-card);
  color: var(--admin-accent);
  border-bottom-color: var(--admin-primary);
  font-weight: 600;
}

.admin-tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 标签页内容区域 */

.tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 个人资料标签页 */

.profile-tab {
  padding: var(--spacing-xxl, 3rem);
}

/* 项目标签页 */

.projects-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 活动标签页 */

.activity-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 占位文本样式 */

.placeholder-text {
  color: var(--admin-secondary);
  font-size: var(--font-size-lg, 1.125rem);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* 标签页内容区域 */

.tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 个人资料标签页 */

.profile-tab {
  padding: var(--spacing-xxl, 3rem);
}

/* 项目标签页 */

.projects-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 活动标签页 */

.activity-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 占位文本样式 */

.placeholder-text {
  color: var(--admin-secondary);
  font-size: var(--font-size-lg, 1.125rem);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* 信息区块样式 - 更新为统一设计 */

.admin-info-section,
.info-section {
  padding: var(--spacing-xxl, 3rem);
  border-bottom: 1px solid var(--admin-border-light);
}

.admin-info-section:last-child,
.info-section:last-child {
  border-bottom: none;
}

.admin-info-section h3,
.info-section h3 {
  margin: 0 0 var(--spacing-xl, 2rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-lg, 1.125rem);
  font-weight: 600;
}

.admin-info-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl, 2rem);
}

.admin-info-item,
.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, 0.5rem);
  font-size:1.5rem !important
}

.admin-info-item label,
.info-item label {
  font-weight: 600;
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-info-item div,
.info-item div {
  color: var(--admin-accent);
  font-size: var(--font-size-base, 1rem);
  font-weight: 500;
}

/* 第三方绑定列表样式 */

.bindings-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
}

.binding-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md, 1rem);
  background: rgba(66, 133, 244, 0.05);
  border-radius: 8px;
  border: 1px solid var(--admin-border-light);
}

.binding-type {
  font-weight: 500;
  color: var(--admin-accent);
}

.binding-status {
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
}

.binding-status.bound {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.binding-status.unbound {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
  border: 1px solid rgba(158, 158, 158, 0.2);
}

/* 用户头像样式 */

.user-profile-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xxl, 3rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
}

.user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--admin-border-light);
  box-shadow: var(--admin-shadow-light);
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--admin-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
}

.user-info {
  flex-grow: 1;
}

.user-info h2 {
  margin: 0 0 var(--spacing-md, 1rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
}

.user-meta {
  display: flex;
  gap: var(--spacing-lg, 1.5rem);
  flex-wrap: wrap;
  align-items: center;
}

.user-meta span {
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
}

.user-id {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
  border: 1px solid rgba(66, 133, 244, 0.2);
}

.project-count {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.user-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
  align-items: flex-end;
}

.delete-button {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 2px solid rgba(244, 67, 54, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-button:hover:not(:disabled) {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.4);
  transform: translateY(-1px);
}

.delete-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-protection-notice {
  text-align: right;
}

.admin-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.2);
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  margin-bottom: var(--spacing-xs, 0.25rem);
}

.admin-notice {
  margin: 0;
  color: var(--admin-secondary);
  font-size: var(--font-size-xs, 0.75rem);
  font-style: italic;
}

/* 加载和错误状态样式 */

.admin-container.loading,
.admin-container.error,
.admin-container.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  text-align: center;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin: var(--spacing-xl, 2rem);
  padding: var(--spacing-xxl, 3rem);
}

.admin-container.loading {
  color: var(--admin-accent);
  font-size: var(--font-size-lg, 1.125rem);
}

.admin-container.error h2,
.admin-container.not-found h2 {
  color: #f44336;
  margin-bottom: var(--spacing-lg, 1.5rem);
  font-size: var(--font-size-xl, 1.25rem);
}

.admin-container.error p,
.admin-container.not-found p {
  color: var(--admin-secondary);
  margin-bottom: var(--spacing-xl, 2rem);
  font-size: var(--font-size-base, 1rem);
}

.admin-container.error button,
.admin-container.not-found button {
  background: var(--admin-accent);
  color: white;
  border: none;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-container.error button:hover,
.admin-container.not-found button:hover {
  background: rgba(66, 133, 244, 0.8);
  transform: translateY(-1px);
}

/* 统一动画和过渡效果 */

.admin-fade-in {
  animation: adminFadeIn 0.4s ease-out;
}

@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-slide-up {
  animation: adminSlideUp 0.3s ease-out;
}

@keyframes adminSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 空状态样式 */

.admin-empty-state {
  text-align: center;
  padding: var(--spacing-xxl, 3rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
}

.admin-empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg, 1.5rem);
  opacity: 0.6;
}

.admin-empty-state h3 {
  color: var(--admin-accent);
  font-size: var(--font-size-xl, 1.25rem);
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
}

.admin-empty-state p {
  color: var(--admin-secondary);
  font-size: var(--font-size-base, 1rem);
  margin: 0;
  line-height: 1.5;
}

/* 响应式设计 */

@media (max-width: 767px) {
  .admin-page-container,
  .admin-container {
    padding: var(--spacing-md, 1rem);
  }

  .user-detail-page {
    padding: var(--spacing-md, 1rem);
    /* 在移动设备上也保持居中 */
    margin: 0 auto;
    max-width: 100%;
  }

  .user-profile-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg, 1.5rem);
  }

  .user-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .admin-info-grid,
  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 1.5rem);
  }

  .admin-tabs {
    flex-direction: column;
  }

  .admin-tab {
    border-radius: 0;
    border-bottom: 1px solid var(--admin-border-light);
  }

  .admin-tab:last-child {
    border-bottom: none;
  }
  
  .admin-page-header {
    padding: var(--spacing-lg, 1.5rem);
    text-align: center;
  }
  
  .admin-page-title {
    font-size: 2rem !important;
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--spacing-md, 0.5rem);
    text-align: center;
  }
  
  .welcome-text {
    font-size: var(--font-size-base, 1rem);
  }
  
  .user-profile-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg, 1.5rem);
    padding: var(--spacing-lg, 1.5rem);
  }
  
  .user-meta {
    justify-content: center;
    gap: var(--spacing-md, 1rem);
  }
  
  .admin-info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 1.5rem);
  }
  
  .admin-tabs {
    flex-direction: column;
    border-radius: 16px;
  }
  
  .admin-tab {
    border-bottom: 1px solid var(--admin-border-light);
    border-radius: 0;
    padding: var(--spacing-md, 1rem);
  }
  
  .admin-tab:last-child {
    border-bottom: none;
  }
  
  .admin-tab.active {
    border-bottom-color: var(--admin-primary);
  }
  
  .admin-tab-content {
    border-radius: 16px;
    border: 1px solid var(--admin-border-light);
  }
  
  .admin-btn-primary,
  .admin-btn-secondary {
    width: 100%;
    padding: var(--spacing-md, 1rem);
    text-align: center;
  }
  
  .loading-content,
  .error-content {
    padding: var(--spacing-xl, 2rem);
  }
}

@media (max-width: 479px) {
  .admin-page-container {
    padding: var(--spacing-sm, 0.5rem);
  }
  
  .admin-page-header {
    padding: var(--spacing-md, 1rem);
  }
  
  .admin-page-title {
    font-size: 1.6rem !important;
  }
  
  .welcome-text {
    font-size: var(--font-size-sm, 0.875rem);
  }
  
  .user-profile-header {
    padding: var(--spacing-md, 1rem);
  }
  
  .user-avatar {
    width: 60px;
    height: 60px;
  }
  
  .avatar-placeholder {
    font-size: 24px;
  }
  
  .user-info h2 {
    font-size: var(--font-size-lg, 1.125rem);
  }
  
  .admin-btn-primary,
  .admin-btn-secondary {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
  }
  
  .loading-content,
  .error-content {
    padding: var(--spacing-lg, 1.5rem);
  }
}

/* 平板响应式 */

@media (min-width: 768px) and (max-width: 1023px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
  }
  
  .admin-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 大屏幕优化 */

@media (min-width: 1024px) {
  .admin-page-container {
    max-width: 1600px; /* 增加页面容器最大宽度 */
    margin: 0 auto;
  }
  
  .admin-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* 增强交互效果 */
  .admin-page-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-hover);
  }

  .user-profile-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-hover);
  }
}

/* 表格样式 */

.admin-data-table {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: var(--spacing-xl, 2rem);
}

.admin-data-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 固定表格布局，严格按照设定的列宽分配 */
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-data-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

/* 表格内容字体大小优化 */

.admin-data-table .user-id {
  font-size: 16px !important;
  font-weight: 500;
  color: #2563eb;
}

.admin-data-table .user-email {
  font-size: 16px !important;
  color: #374151;
  font-weight: 500;
}

.admin-data-table .project-count-badge {
  font-size: 16px !important;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

.admin-data-table .date-text {
  font-size: 16px !important;
  color: #6b7280;
  font-weight: 500;
}

.admin-data-table .username {
  font-size: 16px !important;
  font-weight: 600;
  color: #111827;
}

.admin-data-table .project-name {
  font-size: 16px !important;
  font-weight: 600;
  color: #111827;
}

.admin-data-table .project-type-badge {
  font-size: 16px !important;
  font-weight: 500;
  color: #667eea;
}

.admin-data-table .admin-status-badge {
  font-size: 14px !important;
  font-weight: 600;
}

/* 用户管理表格列宽优化 */

.admin-data-table table th:nth-child(1), /* 用户ID */
.admin-data-table table td:nth-child(1) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.admin-data-table table th:nth-child(2), /* 用户名 */
.admin-data-table table td:nth-child(2) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.admin-data-table table th:nth-child(3), /* 邮箱 */
.admin-data-table table td:nth-child(3) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

.admin-data-table table th:nth-child(4), /* 角色 */
.admin-data-table table td:nth-child(4) {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}

.admin-data-table table th:nth-child(5), /* 项目数量 */
.admin-data-table table td:nth-child(5) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  text-align: center;
}

.admin-data-table table th:nth-child(6), /* 注册时间 */
.admin-data-table table td:nth-child(6) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.admin-data-table table th:nth-child(7), /* 状态 */
.admin-data-table table td:nth-child(7) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.admin-data-table table th:nth-child(8), /* 操作 */
.admin-data-table table td:nth-child(8) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

/* 用户管理表格内容溢出处理 */

.admin-data-table table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 12px 8px;
}

/* 邮箱列特殊处理 */

.admin-data-table table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 响应式设计 - 移动端优化 */

@media (max-width: 768px) {
  /* 移动端取消固定布局，恢复自适应 */
  .admin-data-table table {
    table-layout: auto !important;
    min-width: 800px; /* 设置最小宽度，启用横向滚动 */
  }

  /* 移动端列宽调整 */
  .admin-data-table table th,
  .admin-data-table table td {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    padding: 8px 4px;
    font-size: 14px;
  }

  /* 移动端关键列最小宽度 */
  .admin-data-table table th:nth-child(1),
  .admin-data-table table td:nth-child(1) { min-width: 60px; } /* ID */

  .admin-data-table table th:nth-child(2),
  .admin-data-table table td:nth-child(2) { min-width: 100px; } /* 用户名 */

  .admin-data-table table th:nth-child(3),
  .admin-data-table table td:nth-child(3) { min-width: 150px; } /* 邮箱 */

  .admin-data-table table th:nth-child(4),
  .admin-data-table table td:nth-child(4) { min-width: 80px; } /* 角色 */

  .admin-data-table table th:nth-child(5),
  .admin-data-table table td:nth-child(5) { min-width: 60px; } /* 项目数 */

  .admin-data-table table th:nth-child(6),
  .admin-data-table table td:nth-child(6) { min-width: 100px; } /* 注册时间 */

  .admin-data-table table th:nth-child(7),
  .admin-data-table table td:nth-child(7) { min-width: 70px; } /* 状态 */

  .admin-data-table table th:nth-child(8),
  .admin-data-table table td:nth-child(8) { min-width: 120px; } /* 操作 */
}

/* 中等屏幕优化 - 1200px以下开始自适应 */

@media (max-width: 1200px) {
  .admin-data-table table {
    table-layout: auto !important;
  }

  .admin-data-table table th,
  .admin-data-table table td {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
  }

  /* 中等屏幕最小宽度设置 */
  .admin-data-table table th:nth-child(1),
  .admin-data-table table td:nth-child(1) { min-width: 60px; } /* ID */

  .admin-data-table table th:nth-child(2),
  .admin-data-table table td:nth-child(2) { min-width: 100px; } /* 用户名 */

  .admin-data-table table th:nth-child(3),
  .admin-data-table table td:nth-child(3) { min-width: 120px; } /* 邮箱 */

  .admin-data-table table th:nth-child(4),
  .admin-data-table table td:nth-child(4) { min-width: 80px; } /* 角色 */

  .admin-data-table table th:nth-child(5),
  .admin-data-table table td:nth-child(5) { min-width: 60px; } /* 项目数 */

  .admin-data-table table th:nth-child(6),
  .admin-data-table table td:nth-child(6) { min-width: 100px; } /* 注册时间 */

  .admin-data-table table th:nth-child(7),
  .admin-data-table table td:nth-child(7) { min-width: 70px; } /* 状态 */

  .admin-data-table table th:nth-child(8),
  .admin-data-table table td:nth-child(8) { min-width: 100px; } /* 操作 */
}

/* 平板设备优化 */

@media (min-width: 769px) and (max-width: 1024px) {
  .admin-data-table table th,
  .admin-data-table table td {
    padding: 10px 6px;
    font-size: 15px;
  }
}

/* 表格字体响应式优化 - 760px以下 */

@media (max-width: 760px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 14px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 14px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 14px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 12px !important;
    padding: 3px 6px;
  }
}

/* 表格字体响应式优化 - 680px以下 */

@media (max-width: 680px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 13px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 13px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 13px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 11px !important;
    padding: 2px 5px;
  }
}

/* 表格字体响应式优化 - 480px以下 */

@media (max-width: 480px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 12px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 12px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 12px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 10px !important;
    padding: 2px 4px;
  }
}

/* 表格字体响应式优化 - 大屏幕设备 */

/* 1200px以上 - 大屏幕优化 */

@media (min-width: 1200px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 18px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 17px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 17px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 15px !important;
    padding: 5px 10px;
  }
}

/* 1440px以上 - 超大屏幕优化 */

@media (min-width: 1440px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 20px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 19px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 19px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 16px !important;
    padding: 6px 12px;
  }
}

/* 1920px以上 - 4K屏幕优化 */

@media (min-width: 1920px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 22px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 21px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 21px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 18px !important;
    padding: 7px 14px;
  }
}

/* 管理员状态徽章样式 - 用于用户详情页面 */

.admin-status-badge {
  display: inline-block;
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  text-align: center;
  border: 1px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-status-badge.active {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-color: #4caf50;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.admin-status-badge.inactive {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe082 100%);
  color: #f57c00;
  border-color: #ffc107;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.admin-status-badge.banned {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #d32f2f;
  border-color: #f44336;
  box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.admin-status-badge.admin {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
  border-color: #ffcc02;
  box-shadow: 0 2px 4px rgba(245, 124, 0, 0.2);
}

.admin-status-badge.user {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
  border-color: #2196f3;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

/* 确保项目管理页面容器背景透明 */

.admin-page-container {
  background: transparent !important;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
}

/* 项目统计信息 */

.project-stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg, 1.5rem);
}

.project-stats .total-count {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(21, 101, 192, 0.05) 100%);
  color: #1565c0;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 20px;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 600;
  border: 1px solid rgba(66, 133, 244, 0.2);
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
}

/* 搜索容器样式 */

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: var(--spacing-md, 1rem);
}

.admin-search-input {
  width: 100%;
  max-width: 400px;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-radius: 25px;
  font-size: var(--font-size-sm, 0.875rem);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  outline: none;
}

.admin-search-input:focus {
  border-color: rgba(66, 133, 244, 0.5);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
  background: rgba(255, 255, 255, 1);
}

.admin-search-input::-moz-placeholder {
  color: #999;
  font-style: italic;
}

.admin-search-input::placeholder {
  color: #999;
  font-style: italic;
}

/* 数据表格样式 */

.admin-data-table {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  margin-bottom: var(--spacing-xl, 2rem);
}

.table-header {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(21, 101, 192, 0.05) 100%);
  padding: var(--spacing-lg, 1.5rem);
  border-bottom: 1px solid rgba(66, 133, 244, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
}

.table-header h3 {
  color: #1565c0;
  font-size: 1.8rem !important;
  font-weight: 600;
  margin: 0;
  flex-shrink: 0;
}

.table-header .search-and-actions {
  width: 100%;
}

.table-header .search-container {
  margin-top: 0;
}

.table-header .admin-search-input {
  max-width: 100%;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  background: white;
  border-radius: 0 0 16px 16px;
}

/* 项目管理表格列显示设置 - 只显示项目名称、类型、状态 3列 */

.admin-data-table table {
  table-layout: fixed;
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: var(--font-size-base, 1rem);
}

.admin-data-table table th:nth-child(1),
.admin-data-table table td:nth-child(1) {
  width: 50%;
  /* 项目名称 */
}

.admin-data-table table th:nth-child(2),
.admin-data-table table td:nth-child(2) {
  width: 25%;
  /* 项目类型 */
}

.admin-data-table table th:nth-child(3),
.admin-data-table table td:nth-child(3) {
  width: 25%;
  /* 项目状态 */
}

/* 搜索和操作按钮容器 */

.search-and-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md, 1rem);
  flex-wrap: wrap;
}

.search-container {
  flex: 1;
  min-width: 250px;
}

.action-buttons-container {
  display: flex;
  gap: var(--spacing-sm, 0.5rem);
  flex-shrink: 0;
}

/* 可选择行样式 */

.selectable-row {
  cursor: pointer;
  transition: all 0.2s ease;
}

.selectable-row:hover {
  background: rgba(66, 133, 244, 0.05) !important;
}

.selectable-row.selected {
  background: rgba(66, 133, 244, 0.1) !important;
  border-left: 4px solid #4285f4;
}

.selectable-row.selected td {
  border-color: rgba(66, 133, 244, 0.3);
}

/* 操作按钮样式 */

.action-buttons-container .admin-btn-secondary,
.action-buttons-container .admin-btn-danger {
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  font-size: var(--font-size-sm, 0.875rem);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
  min-width: 80px;
}

.action-buttons-container .admin-btn-secondary {
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.action-buttons-container .admin-btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.action-buttons-container .admin-btn-danger {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.action-buttons-container .admin-btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.action-buttons-container .admin-btn-secondary:disabled,
.action-buttons-container .admin-btn-danger:disabled {
  background: #e0e0e0;
  color: #9e9e9e;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.action-buttons-container .admin-btn-secondary:disabled:hover,
.action-buttons-container .admin-btn-danger:disabled:hover {
  background: #e0e0e0;
  transform: none;
  box-shadow: none;
}

.admin-data-table table th,
.admin-data-table table td {
  padding: var(--spacing-md, 1rem);
  text-align: left;
  border-bottom: 1px solid rgba(66, 133, 244, 0.1);
  vertical-align: middle;
}

.admin-data-table table th {
  background: rgba(66, 133, 244, 0.05);
  color: #546e7a;
  font-weight: 600;
  font-size: var(--font-size-base, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-data-table table tbody tr {
  transition: all 0.2s ease;
}

.admin-data-table table tbody tr:hover {
  background: rgba(66, 133, 244, 0.02);
}

/* 项目信息样式 */

.project-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 0.25rem);
  text-align: left;
}

.project-name {
  color: #1565c0;
  font-weight: 600;
  font-size: var(--font-size-sm, 0.875rem);
  text-align: left;
}

.project-type-badge {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
  color: #667eea;
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.2);
  display: inline-block;
}

/* 状态徽章样式 */

.admin-status-badge {
  display: inline-block;
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  text-align: center;
  border: 1px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-status-badge.active {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-color: #4caf50;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.admin-status-badge.inactive {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe082 100%);
  color: #f57c00;
  border-color: #ffc107;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.admin-status-badge.completed {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
  border-color: #2196f3;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.admin-status-badge.draft {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  color: #7b1fa2;
  border-color: #9c27b0;
  box-shadow: 0 2px 4px rgba(156, 39, 176, 0.2);
}

/* 操作按钮区域 */

.action-buttons {
  display: flex;
  gap: var(--spacing-sm, 0.5rem);
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.admin-btn-secondary.small {
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  font-size: var(--font-size-sm, 0.875rem);
  border-radius: 6px;
  white-space: nowrap;
  min-width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-btn-danger.small {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  border: none;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  border-radius: 6px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
}

.admin-btn-danger.small:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* 空状态样式 */

.admin-empty-state {
  text-align: center;
  padding: var(--spacing-xxl, 3rem);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg, 1.5rem);
  opacity: 0.6;
}

.admin-empty-state h3 {
  color: #1565c0;
  font-size: var(--font-size-xl, 1.25rem);
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
}

.admin-empty-state p {
  color: #546e7a;
  font-size: var(--font-size-base, 1rem);
  margin: 0;
  line-height: 1.5;
}

/* 响应式设计 */

/* 平板设备优化 - 760px以下 */

@media (max-width: 760px) {
  .admin-page-header {
    padding: var(--spacing-lg, 1.5rem);
  }

  .admin-page-title {
    font-size: 1.8rem !important;
  }

  .table-header {
    padding: var(--spacing-md, 1rem);
  }

  .table-header h3 {
    font-size: 1.5rem !important;
  }

  .search-and-actions {
    flex-direction: column;
    gap: var(--spacing-md, 1rem);
  }

  .search-container {
    min-width: auto;
    width: 100%;
  }

  .action-buttons-container {
    justify-content: center;
    width: 100%;
  }

  /* 修复表格布局问题 - 改为自适应布局 */
  .admin-data-table table {
    table-layout: auto !important;
    min-width: 500px; /* 增加最小宽度，确保有足够空间 */
  }

  .admin-data-table table th:nth-child(1),
  .admin-data-table table td:nth-child(1) {
    width: auto !important;
    min-width: 120px; /* 项目名称最小宽度 */
  }

  .admin-data-table table th:nth-child(2),
  .admin-data-table table td:nth-child(2) {
    width: auto !important;
    min-width: 100px; /* 项目类型最小宽度 */
  }

  .admin-data-table table th:nth-child(3),
  .admin-data-table table td:nth-child(3) {
    width: auto !important;
    min-width: 90px; /* 项目状态最小宽度 */
  }

  .table-container th,
  .table-container td {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-xs, 0.25rem);
    font-size: var(--font-size-sm, 0.875rem);
  }

  .admin-status-badge {
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  }

  .project-count-badge {
    font-size: var(--font-size-xs, 0.75rem);
  }
}

/* 手机设备优化 - 767px以下 */

@media (max-width: 767px) {
  .admin-page-header .header-content {
    flex-direction: column;
    gap: var(--spacing-md, 1rem);
    text-align: center;
  }

  .project-stats {
    justify-content: center;
  }

  .table-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-md, 1rem);
  }

  .table-header h3 {
    text-align: center;
    font-size: var(--font-size-lg, 1.125rem);
  }

  .table-header .search-container {
    max-width: 100%;
    min-width: auto;
  }

  .admin-data-table table {
    font-size: var(--font-size-xs, 0.75rem);
    min-width: 450px; /* 增加最小宽度 */
    table-layout: auto !important; /* 确保自适应布局 */
  }

  .admin-data-table table th,
  .admin-data-table table td {
    padding: var(--spacing-sm, 0.5rem);
  }

  /* 进一步优化列宽 */
  .admin-data-table table th:nth-child(1),
  .admin-data-table table td:nth-child(1) {
    min-width: 110px; /* 项目名称 */
  }

  .admin-data-table table th:nth-child(2),
  .admin-data-table table td:nth-child(2) {
    min-width: 90px; /* 项目类型 */
  }

  .admin-data-table table th:nth-child(3),
  .admin-data-table table td:nth-child(3) {
    min-width: 80px; /* 项目状态 */
  }

  .action-buttons {
    flex-direction: column;
    gap: var(--spacing-xs, 0.25rem);
    width: 100%;
  }

  .admin-btn-secondary.small,
  .admin-btn-danger.small {
    width: 100%;
    text-align: center;
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
    white-space: nowrap;
  }
}

/* 小屏手机设备优化 - 680px以下 */

@media (max-width: 680px) {
  .admin-page-container {
    padding: var(--spacing-sm, 0.5rem);
  }

  .admin-page-header {
    padding: var(--spacing-md, 1rem);
  }

  .admin-page-title {
    font-size: 1.5rem !important;
  }

  .table-header {
    padding: var(--spacing-sm, 0.5rem);
  }

  .table-header h3 {
    font-size: 1.2rem !important;
  }

  .admin-search-input {
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  }
  .table-container {
    font-size: var(--font-size-xs, 0.75rem);
  }

  .table-container th,
  .table-container td {
    padding: var(--spacing-xs, 0.25rem);
    font-size: var(--font-size-xs, 0.75rem);
  }

  .table-container table {
    min-width: 400px; /* 确保表格有最小宽度，启用横向滚动 */
  }

  .project-name {
    font-size: var(--font-size-xs, 0.75rem) !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.2 !important;
  }

  .admin-status-badge {
    font-size: 10px;
    padding: 2px 4px;
  }

  .project-count-badge {
    font-size: 10px;
    padding: 2px 4px;
  }

  .action-buttons-container .admin-btn-secondary,
  .action-buttons-container .admin-btn-danger {
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
    min-width: 60px;
  }

  .project-stats .total-count {
    font-size: var(--font-size-xs, 0.75rem);
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  }

  .admin-pagination {
    padding: var(--spacing-md, 1rem);
  }

  .admin-pagination .admin-btn-secondary {
    width: 100px;
    font-size: var(--font-size-xs, 0.75rem);
  }

  .pagination-info {
    font-size: var(--font-size-xs, 0.75rem);
  }

  .action-buttons {
    gap: var(--spacing-xs, 0.25rem);
  }
}/* 管理员项目详情页面样式 */
.admin-project-detail {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f8fafc;
  min-height: 100vh;
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: #64748b;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 错误状态 */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-container h3 {
  color: #dc2626;
  margin-bottom: 8px;
}

.error-container p {
  color: #64748b;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
}

/* 页面头部 */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-title h1 {
  margin: 0;
  color: #1e293b;
  font-size: 28px;
  font-weight: 600;
}

.project-id {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 状态徽章 */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background-color: #dcfce7;
  color: #166534;
}

.status-inactive {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-completed {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-draft {
  background-color: #f3f4f6;
  color: #374151;
}

.status-training {
  background-color: #fef3c7;
  color: #92400e;
}

.status-failed {
  background-color: #fecaca;
  color: #dc2626;
}

.status-default {
  background-color: #e5e7eb;
  color: #6b7280;
}

/* 详情区块 */
.detail-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.section-header h2 {
  margin: 0;
  color: #1e293b;
  font-size: 20px;
  font-weight: 600;
}

/* 信息网格 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-item label {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 16px;
  color: #1e293b;
  font-weight: 500;
}

.info-value.description {
  line-height: 1.6;
  color: #475569;
}

.owner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.owner-name {
  font-weight: 600;
  color: #1e293b;
}

.owner-email {
  font-size: 14px;
  color: #64748b;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.stat-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  color: #1e293b;
  font-weight: 700;
}

/* 时间线 */
.operation-timeline {
  position: relative;
  padding-left: 32px;
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 20px;
  bottom: -24px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #3b82f6;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #e2e8f0;
}

.timeline-title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.timeline-time {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.timeline-desc {
  color: #475569;
  line-height: 1.5;
}

/* 管理操作 */
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.view-button {
  background: #3b82f6;
  color: white;
}

.view-button:hover {
  background: #2563eb;
}

.edit-button {
  background: #f59e0b;
  color: white;
}

.edit-button:hover {
  background: #d97706;
}

.danger-button {
  background: #dc2626;
  color: white;
}

.danger-button:hover {
  background: #b91c1c;
}

/* 按钮样式 */
.back-button, .retry-button {
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-button:hover, .retry-button:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* 响应式设计 */

/* 大屏幕设备优化 - 1200px以上 */
@media (min-width: 1200px) {
  .admin-project-detail {
    padding: 32px;
  }

  .header-title h1 {
    font-size: 36px;
  }

  .project-id {
    font-size: 18px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .info-item label {
    font-size: 17px;
  }

  .info-value {
    font-size: 20px;
  }

  .back-button, .retry-button {
    padding: 12px 24px;
    font-size: 17px;
  }

  .status-badge {
    padding: 8px 16px;
    font-size: 15px;
  }
}

/* 中等屏幕设备优化 - 768px到1199px */
@media (min-width: 768px) and (max-width: 1199px) {
  .admin-project-detail {
    padding: 24px;
  }

  .header-title h1 {
    font-size: 30px;
  }

  .project-id {
    font-size: 16px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .info-item label {
    font-size: 15px;
  }

  .info-value {
    font-size: 18px;
  }

  .back-button, .retry-button {
    padding: 10px 20px;
    font-size: 15px;
  }

  .status-badge {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* 平板设备优化 - 768px以下 */
@media (max-width: 768px) {
  .admin-project-detail {
    padding: 16px;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header-title h1 {
    font-size: 26px;
  }

  .project-id {
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .detail-section {
    padding: 16px;
    margin-bottom: 16px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-item label {
    font-size: 14px;
  }

  .info-value {
    font-size: 17px;
  }

  .back-button, .retry-button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .status-badge {
    padding: 5px 10px;
    font-size: 12px;
  }

  .admin-actions {
    flex-direction: column;
  }

  .action-button {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
  }
}

/* 小屏手机设备优化 - 480px以下 */
@media (max-width: 480px) {
  .admin-project-detail {
    padding: 12px;
  }

  .detail-header {
    padding: 12px;
    margin-bottom: 16px;
  }

  .header-title h1 {
    font-size: 22px;
  }

  .project-id {
    font-size: 13px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  .detail-section {
    padding: 12px;
    margin-bottom: 12px;
  }

  .info-grid {
    gap: 12px;
  }

  .info-item label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .info-value {
    font-size: 16px;
  }

  .info-value.description {
    font-size: 15px;
    line-height: 1.5;
  }

  .owner-name {
    font-size: 16px;
  }

  .owner-email {
    font-size: 14px;
  }

  .back-button, .retry-button {
    padding: 8px 12px;
    font-size: 13px;
  }

  .status-badge {
    padding: 4px 8px;
    font-size: 11px;
  }

  .error-icon {
    font-size: 40px;
  }

  .error-container h3 {
    font-size: 20px;
  }

  .error-container p {
    font-size: 15px;
  }

  .loading-spinner {
    width: 32px;
    height: 32px;
  }
}
/* 系统设置页面样式 - 与管理员仪表盘保持一致的设计风格 */

/* 导入背景修复样式 */

/* 背景割裂修复样式 - 统一所有页面的背景处理 */

/* 确保html和body有统一的背景 */

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary, linear-gradient(135deg, #ffffff 0%, #e3f2fd 30%, #4285f4 100%)) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent !important; /* 使用html的背景 */
  min-height: 100vh;
}

/* 强制覆盖所有可能的背景设置 */

* {
  background-attachment: inherit !important;
}

/* 应用容器背景修复 */

.app-container {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 主内容区域背景修复 */

.main-content {
  background: transparent;
  width: 100%;
}

.content-area {
  background: transparent;
}

/* 管理员页面背景修复 - 使用!important确保优先级 */

.admin-page-container {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
}

.admin-container {
  background: transparent !important;
  width: 100%;
}

/* 管理员页面特定背景修复 */

.admin-page-container::before {
  display: none !important;
}

.admin-page-container::after {
  display: none !important;
}

/* 用户详情页面背景修复 */

.user-detail-page {
  background: transparent !important;
}

/* 所有可能的管理员页面容器背景修复 */

.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings {
  background: transparent !important;
}

/* 社区页面背景修复 - 使用!important确保优先级 */

.community-page {
  background: transparent !important;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.community-header {
  background: var(--bg-card, rgba(255, 255, 255, 0.95)) !important;
  backdrop-filter: blur(10px);
  margin: 0;
  width: 100%;
}

.community-content {
  background: transparent !important;
}

/* 社区页面特定背景修复 */

.community-page::before {
  display: none !important;
}

.community-page::after {
  display: none !important;
}

/* 系统设置页面背景修复 */

.settings-page {
  background: transparent;
  width: 100%;
  min-height: 100vh;
}

/* 确保所有卡片和容器使用正确的背景 */

.admin-stat-card,
.admin-data-table,
.settings-section,
.project-card,
.user-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
}

/* 全局背景修复 - 确保所有页面容器都使用透明背景 */

.admin-page-container,
.community-page,
.user-detail-page,
.admin-dashboard,
.admin-users,
.admin-projects,
.admin-settings,
.settings-page,
.app-container,
.main-content,
.content-area,
.page-container,
.project-page,
.project-detail,
.user-profile,
.system-settings {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* 确保卡片背景与主背景融合 */

.card,
.admin-card,
.project-card,
.user-card,
.settings-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 模态框和弹窗背景修复 */

.modal,
.dialog,
.popup,
.dropdown-menu {
  background: var(--bg-card) !important;
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
}

/* 响应式背景修复 */

@media (max-width: 768px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-lg, 1.5rem);
    background: transparent !important;
  }
}

@media (max-width: 480px) {
  .admin-page-container {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }

  .community-content {
    padding: var(--spacing-md, 1rem);
    background: transparent !important;
  }
}

/* 继承管理员页面的基础样式 */

/* 管理员界面通用样式 - 统一设计系统 */

/* 导入背景修复样式 */

/* CSS变量定义 - 与colors.js保持一致 */

:root {
  /* 管理员界面专用颜色变量 */
  --admin-primary: #4285f4;
  --admin-primary-dark: #1565c0;
  --admin-secondary: #546e7a;
  --admin-accent: #1565c0;
  
  /* 背景色 - 修改为透明，使用全局背景 */
  --admin-bg-primary: transparent;
  --admin-bg-card: rgba(255, 255, 255, 0.95);
  --admin-bg-overlay: rgba(255, 255, 255, 0.9);
  
  /* 边框和阴影 */
  --admin-border-light: rgba(66, 133, 244, 0.1);
  --admin-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --admin-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  
  /* 状态颜色 */
  --admin-success: #4caf50;
  --admin-error: #f44336;
  --admin-warning: #ff9800;
  --admin-info: #2196f3;
}

/* 深色主题支持 */

[data-theme="dark"] {
  --admin-bg-primary: transparent;
  --admin-bg-card: rgba(45, 55, 72, 0.95);
  --admin-bg-overlay: rgba(45, 55, 72, 0.9);
  --admin-border-light: rgba(99, 179, 237, 0.2);
  --admin-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 管理员页面容器基础样式 - 优化字体大小和响应式设计 */

.admin-page-container {
  min-height: 100vh;
  width: 100%;
  background: transparent !important;
  padding: var(--spacing-xl, 2rem);
  margin: 0;
  /* 使用全局字体定义，保持一致性 */
  color: #333;
  position: relative;
  font-size: var(--font-size-base, 1rem);
  line-height: 1.6;
}

/* 响应式字体大小 - 基于屏幕尺寸动态调整 */

@media (min-width: 1200px) {
  .admin-page-container {
    font-size: var(--font-size-lg, 1.125rem);
  }
}

@media (min-width: 1440px) {
  .admin-page-container {
    font-size: var(--font-size-xl, 1.25rem);
  }
}

@media (min-width: 1920px) {
  .admin-page-container {
    font-size: var(--font-size-2xl, 1.5rem);
  }
}

/* 管理员容器 - 移除重复背景设置，增加最大宽度以适应表格 */

.admin-container {
  width: 100%;
  max-width: 2000px; /* 从1600px进一步增加到2000px，给表格更多空间 */
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
  /* 使用全局字体定义，保持一致性 */
  color: #333;
}

/* 统一的加载、错误和空状态容器 */

.admin-loading-container,
.admin-error-container,
.admin-empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.loading-content,
.error-content {
  text-align: center;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
}

.error-content {
  border-left: 4px solid var(--admin-error);
}

/* 页面头部 - 统一样式 */

.admin-page-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem) var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  text-align: center;
}

.admin-page-title {
  color: var(--admin-accent);
  font-size: 2rem !important;
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
  text-shadow: 0 2px 4px rgba(21, 101, 192, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md, 0.5rem);
}

/* 响应式页面标题字体大小 */

@media (min-width: 1200px) {
  .admin-page-title {
    font-size: 2rem !important;
  }
}

@media (min-width: 1440px) {
  .admin-page-title {
    font-size: 2.2rem !important;
  }
}

@media (min-width: 1920px) {
  .admin-page-title {
    font-size: 2.5rem !important;
  }
}

.welcome-text {
  color: var(--admin-secondary);
  font-size: 1.8rem !important;
  font-weight: 500;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
  align-items: center;
}

/* 统一按钮样式 */

.admin-btn-primary {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
  color: white;
  border: none;
  padding: var(--spacing-md, 1rem) var(--spacing-xl, 2rem);
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--font-size-base, 1rem);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.admin-btn-secondary {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
  border: 2px solid rgba(66, 133, 244, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-btn-secondary:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
}

/* 用户详情页面样式 - 更新为统一设计 */

.user-detail-page {
  background: transparent !important;
  min-height: 100vh;
  padding: var(--spacing-xl, 2rem);
  /* 保持居中布局，继承 admin-container 的居中设置 */
  width: 100%;
  max-width: 2000px; /* 与admin-container保持一致 */
  margin: 0 auto;
}

/* 修复页面头部样式 */

.user-detail-page .page-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-detail-page .page-header h1 {
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
  margin: 0;
}

.user-detail-page .header-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
}

.back-button {
  background: var(--admin-btn-secondary);
  color: var(--admin-accent);
  border: 2px solid rgba(66, 133, 244, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.back-button:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--admin-accent);
}

.user-profile-header {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl, 2rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
  display: flex;
  align-items: center;
  gap: var(--spacing-xl, 2rem);
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: bold;
}

.user-info {
  flex: 1;
}

.user-info h2 {
  margin: 0 0 var(--spacing-md, 1rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
}

.user-meta {
  display: flex;
  gap: var(--spacing-lg, 1.5rem);
  align-items: center;
  flex-wrap: wrap;
}

.user-id {
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  font-family: 'Courier New', monospace;
  background: rgba(66, 133, 244, 0.1);
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 4px;
}

.project-count {
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
}

.user-actions {
  display: flex;
  gap: var(--spacing-md, 1rem);
}

.delete-button {
  background: linear-gradient(135deg, var(--admin-error) 0%, #d32f2f 100%);
  color: white;
  border: none;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.delete-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.delete-button:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.admin-protection-notice {
  text-align: center;
  padding: var(--spacing-xl, 2rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  box-shadow: var(--admin-shadow-light);
}

.admin-badge {
  display: inline-block;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
  border: 1px solid #ffcc02;
  border-radius: 20px;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 600;
  margin-bottom: var(--spacing-md, 1rem);
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.2);
}

.admin-notice {
  margin: var(--spacing-sm, 0.5rem) 0 0 0;
  color: var(--admin-secondary);
  font-size: var(--font-size-xs, 0.75rem);
  font-style: italic;
}

/* 标签页样式 - 更新为统一设计 */

.admin-tabs {
  display: flex;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  overflow: hidden;
}

.admin-tab {
  flex: 1;
  padding: var(--spacing-lg, 1.5rem) var(--spacing-xl, 2rem);
  background: rgba(66, 133, 244, 0.05);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base, 1rem);
  color: var(--admin-secondary);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  font-weight: 500;
}

.admin-tab:hover {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
}

.admin-tab.active {
  background: var(--admin-bg-card);
  color: var(--admin-accent);
  border-bottom-color: var(--admin-primary);
  font-weight: 600;
}

.admin-tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 标签页内容区域 */

.tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 个人资料标签页 */

.profile-tab {
  padding: var(--spacing-xxl, 3rem);
}

/* 项目标签页 */

.projects-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 活动标签页 */

.activity-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 占位文本样式 */

.placeholder-text {
  color: var(--admin-secondary);
  font-size: var(--font-size-lg, 1.125rem);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* 标签页内容区域 */

.tab-content {
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  border-top: none;
  min-height: 400px;
}

/* 个人资料标签页 */

.profile-tab {
  padding: var(--spacing-xxl, 3rem);
}

/* 项目标签页 */

.projects-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 活动标签页 */

.activity-tab {
  padding: var(--spacing-xxl, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 占位文本样式 */

.placeholder-text {
  color: var(--admin-secondary);
  font-size: var(--font-size-lg, 1.125rem);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* 信息区块样式 - 更新为统一设计 */

.admin-info-section,
.info-section {
  padding: var(--spacing-xxl, 3rem);
  border-bottom: 1px solid var(--admin-border-light);
}

.admin-info-section:last-child,
.info-section:last-child {
  border-bottom: none;
}

.admin-info-section h3,
.info-section h3 {
  margin: 0 0 var(--spacing-xl, 2rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-lg, 1.125rem);
  font-weight: 600;
}

.admin-info-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl, 2rem);
}

.admin-info-item,
.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, 0.5rem);
  font-size:1.5rem !important
}

.admin-info-item label,
.info-item label {
  font-weight: 600;
  color: var(--admin-secondary);
  font-size: var(--font-size-sm, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-info-item div,
.info-item div {
  color: var(--admin-accent);
  font-size: var(--font-size-base, 1rem);
  font-weight: 500;
}

/* 第三方绑定列表样式 */

.bindings-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
}

.binding-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md, 1rem);
  background: rgba(66, 133, 244, 0.05);
  border-radius: 8px;
  border: 1px solid var(--admin-border-light);
}

.binding-type {
  font-weight: 500;
  color: var(--admin-accent);
}

.binding-status {
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
}

.binding-status.bound {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.binding-status.unbound {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
  border: 1px solid rgba(158, 158, 158, 0.2);
}

/* 用户头像样式 */

.user-profile-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xxl, 3rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl, 3rem);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin-bottom: var(--spacing-xl, 2rem);
}

.user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--admin-border-light);
  box-shadow: var(--admin-shadow-light);
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--admin-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
}

.user-info {
  flex-grow: 1;
}

.user-info h2 {
  margin: 0 0 var(--spacing-md, 1rem) 0;
  color: var(--admin-accent);
  font-size: var(--font-size-2xl, 1.5rem);
  font-weight: 600;
}

.user-meta {
  display: flex;
  gap: var(--spacing-lg, 1.5rem);
  flex-wrap: wrap;
  align-items: center;
}

.user-meta span {
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 500;
}

.user-id {
  background: rgba(66, 133, 244, 0.1);
  color: var(--admin-accent);
  border: 1px solid rgba(66, 133, 244, 0.2);
}

.project-count {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.user-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
  align-items: flex-end;
}

.delete-button {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 2px solid rgba(244, 67, 54, 0.2);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--font-size-sm, 0.875rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-button:hover:not(:disabled) {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.4);
  transform: translateY(-1px);
}

.delete-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-protection-notice {
  text-align: right;
}

.admin-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.2);
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  margin-bottom: var(--spacing-xs, 0.25rem);
}

.admin-notice {
  margin: 0;
  color: var(--admin-secondary);
  font-size: var(--font-size-xs, 0.75rem);
  font-style: italic;
}

/* 加载和错误状态样式 */

.admin-container.loading,
.admin-container.error,
.admin-container.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  text-align: center;
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
  margin: var(--spacing-xl, 2rem);
  padding: var(--spacing-xxl, 3rem);
}

.admin-container.loading {
  color: var(--admin-accent);
  font-size: var(--font-size-lg, 1.125rem);
}

.admin-container.error h2,
.admin-container.not-found h2 {
  color: #f44336;
  margin-bottom: var(--spacing-lg, 1.5rem);
  font-size: var(--font-size-xl, 1.25rem);
}

.admin-container.error p,
.admin-container.not-found p {
  color: var(--admin-secondary);
  margin-bottom: var(--spacing-xl, 2rem);
  font-size: var(--font-size-base, 1rem);
}

.admin-container.error button,
.admin-container.not-found button {
  background: var(--admin-accent);
  color: white;
  border: none;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-lg, 1.5rem);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-container.error button:hover,
.admin-container.not-found button:hover {
  background: rgba(66, 133, 244, 0.8);
  transform: translateY(-1px);
}

/* 统一动画和过渡效果 */

.admin-fade-in {
  animation: adminFadeIn 0.4s ease-out;
}

@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-slide-up {
  animation: adminSlideUp 0.3s ease-out;
}

@keyframes adminSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 空状态样式 */

.admin-empty-state {
  text-align: center;
  padding: var(--spacing-xxl, 3rem);
  background: var(--admin-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--admin-shadow-light);
  border: 1px solid var(--admin-border-light);
}

.admin-empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg, 1.5rem);
  opacity: 0.6;
}

.admin-empty-state h3 {
  color: var(--admin-accent);
  font-size: var(--font-size-xl, 1.25rem);
  font-weight: 600;
  margin: 0 0 var(--spacing-md, 1rem) 0;
}

.admin-empty-state p {
  color: var(--admin-secondary);
  font-size: var(--font-size-base, 1rem);
  margin: 0;
  line-height: 1.5;
}

/* 响应式设计 */

@media (max-width: 767px) {
  .admin-page-container,
  .admin-container {
    padding: var(--spacing-md, 1rem);
  }

  .user-detail-page {
    padding: var(--spacing-md, 1rem);
    /* 在移动设备上也保持居中 */
    margin: 0 auto;
    max-width: 100%;
  }

  .user-profile-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg, 1.5rem);
  }

  .user-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .admin-info-grid,
  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 1.5rem);
  }

  .admin-tabs {
    flex-direction: column;
  }

  .admin-tab {
    border-radius: 0;
    border-bottom: 1px solid var(--admin-border-light);
  }

  .admin-tab:last-child {
    border-bottom: none;
  }
  
  .admin-page-header {
    padding: var(--spacing-lg, 1.5rem);
    text-align: center;
  }
  
  .admin-page-title {
    font-size: 2rem !important;
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--spacing-md, 0.5rem);
    text-align: center;
  }
  
  .welcome-text {
    font-size: var(--font-size-base, 1rem);
  }
  
  .user-profile-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg, 1.5rem);
    padding: var(--spacing-lg, 1.5rem);
  }
  
  .user-meta {
    justify-content: center;
    gap: var(--spacing-md, 1rem);
  }
  
  .admin-info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 1.5rem);
  }
  
  .admin-tabs {
    flex-direction: column;
    border-radius: 16px;
  }
  
  .admin-tab {
    border-bottom: 1px solid var(--admin-border-light);
    border-radius: 0;
    padding: var(--spacing-md, 1rem);
  }
  
  .admin-tab:last-child {
    border-bottom: none;
  }
  
  .admin-tab.active {
    border-bottom-color: var(--admin-primary);
  }
  
  .admin-tab-content {
    border-radius: 16px;
    border: 1px solid var(--admin-border-light);
  }
  
  .admin-btn-primary,
  .admin-btn-secondary {
    width: 100%;
    padding: var(--spacing-md, 1rem);
    text-align: center;
  }
  
  .loading-content,
  .error-content {
    padding: var(--spacing-xl, 2rem);
  }
}

@media (max-width: 479px) {
  .admin-page-container {
    padding: var(--spacing-sm, 0.5rem);
  }
  
  .admin-page-header {
    padding: var(--spacing-md, 1rem);
  }
  
  .admin-page-title {
    font-size: 1.6rem !important;
  }
  
  .welcome-text {
    font-size: var(--font-size-sm, 0.875rem);
  }
  
  .user-profile-header {
    padding: var(--spacing-md, 1rem);
  }
  
  .user-avatar {
    width: 60px;
    height: 60px;
  }
  
  .avatar-placeholder {
    font-size: 24px;
  }
  
  .user-info h2 {
    font-size: var(--font-size-lg, 1.125rem);
  }
  
  .admin-btn-primary,
  .admin-btn-secondary {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
  }
  
  .loading-content,
  .error-content {
    padding: var(--spacing-lg, 1.5rem);
  }
}

/* 平板响应式 */

@media (min-width: 768px) and (max-width: 1023px) {
  .admin-page-container {
    padding: var(--spacing-lg, 1.5rem);
  }
  
  .admin-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 大屏幕优化 */

@media (min-width: 1024px) {
  .admin-page-container {
    max-width: 1600px; /* 增加页面容器最大宽度 */
    margin: 0 auto;
  }
  
  .admin-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* 增强交互效果 */
  .admin-page-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-hover);
  }

  .user-profile-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-hover);
  }
}

/* 表格样式 */

.admin-data-table {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: var(--spacing-xl, 2rem);
}

.admin-data-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 固定表格布局，严格按照设定的列宽分配 */
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-data-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

/* 表格内容字体大小优化 */

.admin-data-table .user-id {
  font-size: 16px !important;
  font-weight: 500;
  color: #2563eb;
}

.admin-data-table .user-email {
  font-size: 16px !important;
  color: #374151;
  font-weight: 500;
}

.admin-data-table .project-count-badge {
  font-size: 16px !important;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

.admin-data-table .date-text {
  font-size: 16px !important;
  color: #6b7280;
  font-weight: 500;
}

.admin-data-table .username {
  font-size: 16px !important;
  font-weight: 600;
  color: #111827;
}

.admin-data-table .project-name {
  font-size: 16px !important;
  font-weight: 600;
  color: #111827;
}

.admin-data-table .project-type-badge {
  font-size: 16px !important;
  font-weight: 500;
  color: #667eea;
}

.admin-data-table .admin-status-badge {
  font-size: 14px !important;
  font-weight: 600;
}

/* 用户管理表格列宽优化 */

.admin-data-table table th:nth-child(1), /* 用户ID */
.admin-data-table table td:nth-child(1) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.admin-data-table table th:nth-child(2), /* 用户名 */
.admin-data-table table td:nth-child(2) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.admin-data-table table th:nth-child(3), /* 邮箱 */
.admin-data-table table td:nth-child(3) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

.admin-data-table table th:nth-child(4), /* 角色 */
.admin-data-table table td:nth-child(4) {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}

.admin-data-table table th:nth-child(5), /* 项目数量 */
.admin-data-table table td:nth-child(5) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  text-align: center;
}

.admin-data-table table th:nth-child(6), /* 注册时间 */
.admin-data-table table td:nth-child(6) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.admin-data-table table th:nth-child(7), /* 状态 */
.admin-data-table table td:nth-child(7) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.admin-data-table table th:nth-child(8), /* 操作 */
.admin-data-table table td:nth-child(8) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

/* 用户管理表格内容溢出处理 */

.admin-data-table table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 12px 8px;
}

/* 邮箱列特殊处理 */

.admin-data-table table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 响应式设计 - 移动端优化 */

@media (max-width: 768px) {
  /* 移动端取消固定布局，恢复自适应 */
  .admin-data-table table {
    table-layout: auto !important;
    min-width: 800px; /* 设置最小宽度，启用横向滚动 */
  }

  /* 移动端列宽调整 */
  .admin-data-table table th,
  .admin-data-table table td {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    padding: 8px 4px;
    font-size: 14px;
  }

  /* 移动端关键列最小宽度 */
  .admin-data-table table th:nth-child(1),
  .admin-data-table table td:nth-child(1) { min-width: 60px; } /* ID */

  .admin-data-table table th:nth-child(2),
  .admin-data-table table td:nth-child(2) { min-width: 100px; } /* 用户名 */

  .admin-data-table table th:nth-child(3),
  .admin-data-table table td:nth-child(3) { min-width: 150px; } /* 邮箱 */

  .admin-data-table table th:nth-child(4),
  .admin-data-table table td:nth-child(4) { min-width: 80px; } /* 角色 */

  .admin-data-table table th:nth-child(5),
  .admin-data-table table td:nth-child(5) { min-width: 60px; } /* 项目数 */

  .admin-data-table table th:nth-child(6),
  .admin-data-table table td:nth-child(6) { min-width: 100px; } /* 注册时间 */

  .admin-data-table table th:nth-child(7),
  .admin-data-table table td:nth-child(7) { min-width: 70px; } /* 状态 */

  .admin-data-table table th:nth-child(8),
  .admin-data-table table td:nth-child(8) { min-width: 120px; } /* 操作 */
}

/* 中等屏幕优化 - 1200px以下开始自适应 */

@media (max-width: 1200px) {
  .admin-data-table table {
    table-layout: auto !important;
  }

  .admin-data-table table th,
  .admin-data-table table td {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
  }

  /* 中等屏幕最小宽度设置 */
  .admin-data-table table th:nth-child(1),
  .admin-data-table table td:nth-child(1) { min-width: 60px; } /* ID */

  .admin-data-table table th:nth-child(2),
  .admin-data-table table td:nth-child(2) { min-width: 100px; } /* 用户名 */

  .admin-data-table table th:nth-child(3),
  .admin-data-table table td:nth-child(3) { min-width: 120px; } /* 邮箱 */

  .admin-data-table table th:nth-child(4),
  .admin-data-table table td:nth-child(4) { min-width: 80px; } /* 角色 */

  .admin-data-table table th:nth-child(5),
  .admin-data-table table td:nth-child(5) { min-width: 60px; } /* 项目数 */

  .admin-data-table table th:nth-child(6),
  .admin-data-table table td:nth-child(6) { min-width: 100px; } /* 注册时间 */

  .admin-data-table table th:nth-child(7),
  .admin-data-table table td:nth-child(7) { min-width: 70px; } /* 状态 */

  .admin-data-table table th:nth-child(8),
  .admin-data-table table td:nth-child(8) { min-width: 100px; } /* 操作 */
}

/* 平板设备优化 */

@media (min-width: 769px) and (max-width: 1024px) {
  .admin-data-table table th,
  .admin-data-table table td {
    padding: 10px 6px;
    font-size: 15px;
  }
}

/* 表格字体响应式优化 - 760px以下 */

@media (max-width: 760px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 14px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 14px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 14px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 12px !important;
    padding: 3px 6px;
  }
}

/* 表格字体响应式优化 - 680px以下 */

@media (max-width: 680px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 13px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 13px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 13px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 11px !important;
    padding: 2px 5px;
  }
}

/* 表格字体响应式优化 - 480px以下 */

@media (max-width: 480px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 12px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 12px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text {
    font-size: 12px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 10px !important;
    padding: 2px 4px;
  }
}

/* 表格字体响应式优化 - 大屏幕设备 */

/* 1200px以上 - 大屏幕优化 */

@media (min-width: 1200px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 18px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 17px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 17px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 15px !important;
    padding: 5px 10px;
  }
}

/* 1440px以上 - 超大屏幕优化 */

@media (min-width: 1440px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 20px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 19px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 19px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 16px !important;
    padding: 6px 12px;
  }
}

/* 1920px以上 - 4K屏幕优化 */

@media (min-width: 1920px) {
  .admin-data-table .username,
  .admin-data-table .project-name {
    font-size: 22px !important;
  }

  .admin-data-table .user-email,
  .admin-data-table .project-type-badge {
    font-size: 21px !important;
  }

  .admin-data-table .project-count-badge,
  .admin-data-table .date-text,
  .admin-data-table .user-id {
    font-size: 21px !important;
  }

  .admin-data-table .admin-status-badge {
    font-size: 18px !important;
    padding: 7px 14px;
  }
}

/* 管理员状态徽章样式 - 用于用户详情页面 */

.admin-status-badge {
  display: inline-block;
  padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
  border-radius: 12px;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 600;
  text-align: center;
  border: 1px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-status-badge.active {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-color: #4caf50;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.admin-status-badge.inactive {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe082 100%);
  color: #f57c00;
  border-color: #ffc107;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.admin-status-badge.banned {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #d32f2f;
  border-color: #f44336;
  box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.admin-status-badge.admin {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
  border-color: #ffcc02;
  box-shadow: 0 2px 4px rgba(245, 124, 0, 0.2);
}

.admin-status-badge.user {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
  border-color: #2196f3;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

/* 确保系统设置页面容器背景透明 */

.admin-page-container {
  background: transparent !important;
}

/* 消息提示样式 */

.admin-error-message {
  display: flex;
  align-items: center;
  gap: var(--spacing-md, 1rem);
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #d32f2f;
  padding: var(--spacing-lg, 1.5rem);
  border-radius: 12px;
  margin-bottom: var(--spacing-xl, 2rem);
  border: 1px solid #f44336;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
}

.admin-success-message {
  display: flex;
  align-items: center;
  gap: var(--spacing-md, 1rem);
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  padding: var(--spacing-lg, 1.5rem);
  border-radius: 12px;
  margin-bottom: var(--spacing-xl, 2rem);
  border: 1px solid #4caf50;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.error-icon,
.success-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* 设置表单样式 */

.admin-settings-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl, 2rem);
}

.settings-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.settings-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.section-header {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(21, 101, 192, 0.05) 100%);
  padding: var(--spacing-lg, 1.5rem);
  border-bottom: 1px solid rgba(66, 133, 244, 0.1);
  display: flex;
  align-items: center;
  gap: var(--spacing-md, 1rem);
}

.section-icon {
  font-size: 1.5rem;
  opacity: 0.8;
}

.section-header h3 {
  color: #1565c0;
  font-size: 1.5rem !important;
  font-weight: 600;
  margin: 0;
}

.section-content {
  padding: var(--spacing-xl, 2rem);
}

/* 响应式系统设置标题字体大小 */

@media (min-width: 1200px) {
  .section-header h3 {
    font-size: 1.5rem !important;
  }
}

@media (min-width: 1440px) {
  .section-header h3 {
    font-size: 1.8rem !important;
  }
}

@media (min-width: 1920px) {
  .section-header h3 {
    font-size: 2rem !important;
  }
}

/* 表单组件样式 */

.admin-form-group {
  margin-bottom: var(--spacing-lg, 1.5rem);
}

.admin-form-group:last-child {
  margin-bottom: 0;
}

.admin-form-group label {
  display: block;
  margin-bottom: var(--spacing-sm, 0.5rem);
  color: #546e7a;
  font-weight: 600;
  font-size: var(--font-size-sm, 0.875rem);
}

.admin-input,
.admin-textarea {
  width: 100%;
  padding: var(--spacing-md, 1rem);
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-radius: 8px;
  font-size: var(--font-size-base, 1rem);
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  font-family: inherit;
}

.admin-input:focus,
.admin-textarea:focus {
  outline: none;
  border-color: #4285f4;
  background: white;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
  transform: translateY(-1px);
}

.admin-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* 复选框组样式 */

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg, 1.5rem);
}

.admin-checkbox-item {
  background: rgba(66, 133, 244, 0.03);
  padding: var(--spacing-lg, 1.5rem);
  border-radius: 12px;
  border: 1px solid rgba(66, 133, 244, 0.1);
  transition: all 0.3s ease;
}

.admin-checkbox-item:hover {
  background: rgba(66, 133, 244, 0.05);
  border-color: rgba(66, 133, 244, 0.2);
  transform: translateY(-1px);
}

.admin-checkbox-label {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, 0.5rem);
  cursor: pointer;
}

.admin-checkbox {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-md, 1rem);
  accent-color: #4285f4;
  cursor: pointer;
}

.checkbox-text {
  color: #1565c0;
  font-weight: 600;
  font-size: var(--font-size-base, 1rem);
  display: flex;
  align-items: center;
}

.checkbox-description {
  color: #546e7a;
  font-size: var(--font-size-sm, 0.875rem);
  line-height: 1.4;
  margin-left: 32px; /* 对齐复选框 */
}

/* 表单操作区域 */

.admin-form-actions {
  display: flex;
  justify-content: center;
  padding: var(--spacing-xl, 2rem);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
}

.save-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm, 0.5rem);
  padding: var(--spacing-lg, 1.5rem) var(--spacing-xxl, 3rem);
  font-size: var(--font-size-lg, 1.125rem);
  font-weight: 600;
  min-width: 160px;
  justify-content: center;
}

.save-btn:disabled {
  background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.save-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* 按钮加载动画 */

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */

@media (max-width: 767px) {
  .admin-settings-form {
    gap: var(--spacing-lg, 1.5rem);
  }

  .section-header {
    padding: var(--spacing-md, 1rem);
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm, 0.5rem);
  }

  .section-icon {
    font-size: 2rem;
  }

  .section-content {
    padding: var(--spacing-lg, 1.5rem);
  }

  .admin-form-group {
    margin-bottom: var(--spacing-md, 1rem);
  }

  .admin-form-group label {
    font-size: var(--font-size-sm, 0.875rem);
  }

  .admin-input,
  .admin-textarea {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
  }

  .admin-textarea {
    min-height: 60px;
  }

  .checkbox-group {
    gap: var(--spacing-md, 1rem);
  }

  .admin-checkbox-item {
    padding: var(--spacing-md, 1rem);
  }

  .checkbox-text {
    font-size: var(--font-size-sm, 0.875rem);
  }

  .checkbox-description {
    font-size: var(--font-size-xs, 0.75rem);
    margin-left: 28px;
  }

  .admin-form-actions {
    padding: var(--spacing-lg, 1.5rem);
  }

  .save-btn {
    width: 100%;
    padding: var(--spacing-md, 1rem) var(--spacing-lg, 1.5rem);
    font-size: var(--font-size-base, 1rem);
  }

  .admin-error-message,
  .admin-success-message {
    padding: var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
  }
}

@media (max-width: 479px) {
  .section-header {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  }

  .section-header h3 {
    font-size: 1.4rem !important;
  }

  .section-content {
    padding: var(--spacing-md, 1rem);
  }

  .admin-form-group label {
    font-size: var(--font-size-xs, 0.75rem);
  }

  .admin-input,
  .admin-textarea {
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
    font-size: var(--font-size-xs, 0.75rem);
  }

  .admin-checkbox {
    width: 16px;
    height: 16px;
  }

  .checkbox-text {
    font-size: var(--font-size-xs, 0.75rem);
  }

  .checkbox-description {
    font-size: 11px;
    margin-left: 24px;
  }

  .save-btn {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
  }
}

/* 平板响应式 */

@media (min-width: 768px) and (max-width: 1023px) {
  .admin-settings-form {
    max-width: 700px;
    margin: 0 auto;
  }

  .section-content {
    padding: var(--spacing-xl, 2rem);
  }

  .save-btn {
    padding: var(--spacing-lg, 1.5rem) var(--spacing-xxl, 3rem);
  }
}

/* 系统设置页面专用样式优化 */

.admin-page-header {
  /* 缩小标题卡片的上下内边距 */
  padding: var(--spacing-sm, 0.5rem) var(--spacing-xxl, 3rem) !important;
}

/* 进一步优化标题和文字的间距 */

.admin-page-header .admin-page-title {
  margin-bottom: var(--spacing-xs, 0.25rem) !important;
  font-size: 1.8rem !important;
}

.admin-page-header .welcome-text {
  font-size: 1.2rem !important;
  margin: 0 !important;
}

.admin-page-header .header-content {
  gap: var(--spacing-xs, 0.25rem) !important;
}

/* 大屏幕优化 */

@media (min-width: 1024px) {
  /* 设置表单拉宽以匹配页面头部的宽度 */
  .admin-settings-form {
    max-width: none;
    margin: 0;
  }

  .settings-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  }

  .admin-checkbox-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.1);
  }

  .admin-input:focus,
  .admin-textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
  }
}

/* 特殊动画效果 */

.settings-section {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 为不同的设置部分添加延迟动画 */

.settings-section:nth-child(1) {
  animation-delay: 0.1s;
}

.settings-section:nth-child(2) {
  animation-delay: 0.2s;
}

.settings-section:nth-child(3) {
  animation-delay: 0.3s;
}

.admin-form-actions {
  animation: fadeInUp 0.4s ease-out 0.4s both;
}

/* 输入框验证状态 */

.admin-input.error,
.admin-textarea.error {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.05);
}

.admin-input.success,
.admin-textarea.success {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
}

/* 工具提示样式 */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: var(--font-size-xs, 0.75rem);
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}