/* 管理后台样式 - 灵动鲜活版 */
.admin-panel {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-header {
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.admin-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0;
}

.admin-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  position: relative;
  top: 1px;
}

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

.admin-tab.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  transition: all var(--transition-normal);
}
.admin-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card);
  box-shadow: var(--shadow-glass);
}

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

.admin-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-glass);
}

.admin-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition-fast);
}
.admin-table tr:hover td {
  background: var(--bg-card-hover);
}

.admin-btn {
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.admin-btn.primary {
  background: var(--gradient-accent);
  color: white;
}
.admin-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.admin-btn.danger {
  background: rgba(255,69,58,0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255,69,58,0.2);
}
.admin-btn.danger:hover {
  background: rgba(255,69,58,0.2);
}

.admin-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition-fast);
}
.admin-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

/* 响应式 */
@media (max-width: 768px) {
  .admin-panel {
    padding: 16px;
  }
  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-tabs::-webkit-scrollbar {
    display: none;
  }
  .admin-tab {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  .admin-table {
    font-size: 12px;
  }
  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }
}

/* ===== AI管理按钮样式 ===== */
.ai-inline-edit,
.ai-inline-delete {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-primary);
}

.ai-inline-edit:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(183,143,113,0.1));
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
}

.ai-inline-delete {
  color: var(--accent-red);
  border-color: rgba(255,69,58,0.2);
}

.ai-inline-delete:hover {
  background: rgba(255,69,58,0.1);
  border-color: rgba(255,69,58,0.4);
  transform: translateY(-1px);
}

/* admin-btn-small 样式 */
.admin-btn-small {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-primary);
}

.admin-btn-small:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-light);
  transform: translateY(-1px);
}

.admin-btn-small:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.admin-btn-small.admin-btn-success {
  color: var(--accent-green);
  border-color: rgba(48,209,88,0.2);
}

.admin-btn-small.admin-btn-success:hover {
  background: rgba(48,209,88,0.1);
  border-color: rgba(48,209,88,0.4);
}

.admin-btn-small.admin-btn-danger {
  color: var(--accent-red);
  border-color: rgba(255,69,58,0.2);
}

.admin-btn-small.admin-btn-danger:hover {
  background: rgba(255,69,58,0.1);
  border-color: rgba(255,69,58,0.4);
}

.admin-btn-small.admin-btn-warning {
  color: var(--accent-orange);
  border-color: rgba(255,159,10,0.2);
}

.admin-btn-small.admin-btn-warning:hover {
  background: rgba(255,159,10,0.1);
  border-color: rgba(255,159,10,0.4);
}

/* admin-stats-grid 样式 */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}

.admin-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition-normal);
}

.admin-stat-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: var(--border-glass-light);
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* admin-section 样式 */
.admin-section {
  margin-bottom: 24px;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.admin-section-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.admin-section-content {
  margin-top: 16px;
}

/* AI管理面板样式 */
.ai-management {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}

.ai-section-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ai-tab {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.ai-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-glass-light);
}

.ai-tab.active {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(183,143,113,0.1));
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ai-tab SVG图标样式 */
.ai-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ai-tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
[data-theme="light"] .ai-tab-icon {
  stroke: #666;
}
[data-theme="light"] .ai-tab.active .ai-tab-icon {
  stroke: #b8860b;
}
[data-theme="dark"] .ai-tab-icon {
  stroke: #a0a0a8;
}
[data-theme="dark"] .ai-tab.active .ai-tab-icon {
  stroke: #d4af37;
}
[data-theme="neumorphism"] .ai-tab-icon {
  stroke: #555;
}
[data-theme="neumorphism"] .ai-tab.active .ai-tab-icon {
  stroke: #b8860b;
}

/* ai-card 样式 */
.ai-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all var(--transition-normal);
}

.ai-card:hover {
  border-color: var(--border-glass-light);
}

.ai-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ai-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* ai-btn 样式 */
.ai-btn-primary {
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 8px 20px;
}

.ai-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.ai-btn-cancel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 8px 20px;
}

/* admin-empty 样式 */
.admin-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 16px 64px rgba(0,0,0,0.4);
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ai-form-group {
  margin-bottom: 16px;
}

.ai-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.ai-form-group input,
.ai-form-group select,
.ai-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.ai-form-group input:focus,
.ai-form-group select:focus,
.ai-form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

/* 响应式 */
@media (max-width: 768px) {
  html {
    overflow-x: hidden !important;
    max-width: 100vw;
    min-height: 100dvh;
    /* 默认深色背景，覆盖透明背景 */
    background: #0d0d0a !important;
  }

  body {
    overflow-x: hidden !important;
    max-width: 100vw;
    min-height: 100dvh;
  }

  /* 浅色模式 - 统一纯色背景 */
  html[data-theme="light"], html[data-theme="light"] body {
    background: #E0F4FF !important;
  }

  /* bg-orbs 用纯色，禁用伪元素 */
  html[data-theme="light"] .bg-orbs {
    background: #E0F4FF !important;
  }
  html[data-theme="light"] .bg-orbs::before {
    display: none !important;
  }

  /* 拟态主题 */
  html[data-theme="neumorphism"], html[data-theme="neumorphism"] body {
    background: #d0d0d4 !important;
  }

  /* 禁止双击缩放 */
  html {
    touch-action: manipulation;
  }

  /* 禁用双击缩放 */
  * {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* 按钮按下效果 */
  button:active, .clickable:active, [onclick]:active {
    opacity: 0.7;
    transform: scale(0.98);
  }

  /* ===== 手机端导航按钮继续加大 ===== */
  .mobile-nav-item {
    padding: 14px 10px !important;
    gap: 5px !important;
    border-radius: 14px !important;
    min-height: 60px !important;
  }
  .mobile-nav-item-icon {
    font-size: 26px !important;
  }
  .mobile-nav-item-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
  .mobile-nav-item-label {
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  /* 导航展开收起动画极速 */
  .mobile-nav-cards {
    transition: max-height 0.12s ease, opacity 0.08s ease !important;
  }
  .mobile-card-nav.menu-open .mobile-nav-cards {
    max-height: 380px !important;
  }
  .mobile-nav-header {
    transition: none !important;
  }
  .hamburger-line {
    transition: transform 0.12s ease, top 0.12s ease, bottom 0.12s ease !important;
  }
  .mobile-card-nav {
    transition: none !important;
  }
  .mobile-card-nav.menu-open .mobile-nav-header {
    transition: none !important;
  }

  /* 汉堡菜单按钮加大 */
  .hamburger-menu {
    width: 36px !important;
    height: 28px !important;
  }
  .hamburger-line {
    width: 22px !important;
    height: 2.5px !important;
  }
  .hamburger-line:first-child {
    top: 7px !important;
  }
  .hamburger-line:last-child {
    bottom: 7px !important;
  }
  .hamburger-menu.open .hamburger-line:first-child {
    top: 13px !important;
  }
  .hamburger-menu.open .hamburger-line:last-child {
    bottom: 13px !important;
  }

  /* 导航栏主题按钮和用户按钮加大 */
  .mobile-nav-theme-btn, .mobile-nav-user-btn {
    width: 36px !important;
    height: 36px !important;
  }
  .mobile-nav-theme-btn svg, .mobile-nav-user-btn svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* ===== 收起状态的导航栏也要加大 ===== */
  .mobile-card-nav:not(.menu-open) .mobile-nav-header {
    height: 48px !important;
    padding: 6px 14px !important;
    min-width: 120px !important;
    border-radius: 24px !important;
  }
  .mobile-card-nav:not(.menu-open) .hamburger-menu {
    width: 36px !important;
    height: 28px !important;
  }
  .mobile-card-nav:not(.menu-open) .hamburger-line {
    width: 22px !important;
    height: 2.5px !important;
  }
  .mobile-card-nav:not(.menu-open) .hamburger-line:first-child {
    top: 8px !important;
  }
  .mobile-card-nav:not(.menu-open) .hamburger-line:last-child {
    bottom: 8px !important;
  }
  .mobile-card-nav:not(.menu-open) .mobile-nav-theme-btn,
  .mobile-card-nav:not(.menu-open) .mobile-nav-user-btn {
    width: 36px !important;
    height: 36px !important;
  }
  .mobile-card-nav:not(.menu-open) .mobile-nav-theme-btn svg,
  .mobile-card-nav:not(.menu-open) .mobile-nav-user-btn svg {
    width: 22px !important;
    height: 22px !important;
  }

  .app-container {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .main-content {
    /* 导航栏在顶部安全区域下方约12px + 导航栏自身约44px = 56px */
    padding-top: calc(56px + env(safe-area-inset-top)) !important;
    /* 底部导航栏约56px */
    padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .page {
    min-height: auto !important;
    overflow-x: hidden !important;
  }

  #page-admin {
    min-height: auto !important;
    padding-bottom: 0 !important;
  }

  .admin-panel {
    padding: 0;
    padding-bottom: 0 !important;
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .admin-header {
    margin-bottom: 16px;
    padding: 0 12px;
  }

  .admin-header h1 {
    font-size: 20px;
  }

  .admin-subtitle {
    font-size: 12px;
  }

  .admin-tabs {
    gap: 0;
    padding: 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 12px;
  }

  .admin-table {
    font-size: 12px;
    min-width: 600px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }

  /* 统计卡片 - 手机端2列 */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
    margin: 0 12px;
    width: calc(100% - 24px) !important;
  }

  .admin-stat-card {
    padding: 10px 6px;
  }

  .admin-stat-value {
    font-size: 18px;
  }

  .admin-stat-label {
    font-size: 11px;
  }

  .admin-stat-icon {
    font-size: 18px;
    margin-bottom: 4px;
  }

  /* AI管理面板 */
  .ai-management {
    padding: 0 12px;
  }

  .ai-section-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .ai-section-tabs::-webkit-scrollbar {
    display: none;
  }

  .ai-tab {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  /* AI卡片手机端堆叠 */
  .ai-card {
    padding: 12px;
    margin-bottom: 10px;
    margin-left: 0;
    margin-right: 0;
  }

  /* 用户管理卡片 */
  .admin-users {
    padding: 0 12px;
  }

  .admin-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0 12px;
    margin-bottom: 12px;
  }

  .admin-section-header h2 {
    font-size: 15px;
  }

  .admin-count {
    font-size: 12px;
  }

  /* 按钮手机端适配 */
  .admin-btn-small {
    padding: 6px 10px;
    font-size: 12px;
    min-height: 36px;
  }

  /* 弹窗手机端全宽 */
  .modal-content {
    width: 95%;
    max-height: 85vh;
    padding: 14px;
    margin: 12px;
  }

  .modal-header h3 {
    font-size: 15px;
  }

  /* AI Inline按钮组 */
  .ai-card-footer {
    flex-wrap: wrap;
    gap: 6px;
  }

  .ai-inline-edit,
  .ai-inline-delete {
    padding: 6px 10px;
    font-size: 12px;
    min-height: 36px;
  }

  /* 移动端卡片式布局 */
  .admin-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 12px;
  }

  .admin-user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .admin-user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .admin-user-card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
  }

  .admin-card-avatar {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    object-fit: cover;
  }

  .admin-user-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .admin-user-card-row {
    display: flex;
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
  }

  .admin-user-card-label {
    color: var(--text-muted);
    min-width: 36px;
    flex-shrink: 0;
  }

  .admin-user-card-value {
    color: var(--text-primary);
    word-break: break-word;
  }

  .admin-user-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border-glass);
  }

  /* AI卡片手机端 */
  .admin-ai-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .admin-ai-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    gap: 8px;
  }

  .admin-ai-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .admin-ai-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-glass);
  }

  /* AI日志卡片 */
  .admin-log-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px;
  }

  .admin-log-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  /* Token统计手机端 */
  .admin-stat-card-mobile {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .admin-stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
  }

  .admin-stat-card-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
  }

  /* AI管理添加按钮手机端 */
  .ai-card .ai-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* 移动端 section 标题 */
  .mobile-section-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 4px;
    border-left: 3px solid var(--accent-blue);
    padding-right: 12px;
  }

  /* 触摸优化 - 消除300ms点击延迟 */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  .admin-tab,
  .admin-btn-small,
  .ai-tab,
  .ai-inline-edit,
  .ai-inline-delete,
  .ai-btn-primary,
  .modal-close {
    touch-action: manipulation;
    cursor: pointer;
  }
}


.admin-avatar { width: 28px !important; height: 28px !important; border-radius: 50% !important; border: 1px solid var(--border-glass) !important; object-fit: cover; flex-shrink: 0; }

.admin-user-cell { display: inline-flex !important; align-items: center; gap: 10px; }

.admin-user-cell span { display: inline-block; min-width: 60px; }

.admin-stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.admin-stat-trend {
  font-size: 12px;
  margin-top: 4px;
}
.admin-stat-trend.up { color: var(--accent-green); }
.admin-stat-trend.down { color: var(--accent-red); }

.admin-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.admin-status-badge.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.admin-status-badge.banned {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.admin-status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.admin-progress-bar {
  height: 6px;
  background: var(--border-glass);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.admin-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

[data-theme="neumorphism"] .admin-panel {
  background: #d0d0d4;
}
[data-theme="neumorphism"] .admin-header {
  box-shadow: var(--shadow-raised);
  background: #d0d0d4;
}
[data-theme="neumorphism"] .admin-tab {
  box-shadow: var(--shadow-subtle);
  background: #d0d0d4;
}
[data-theme="neumorphism"] .admin-tab.active {
  box-shadow: var(--shadow-pressed);
  background: #c8c8cc;
}
[data-theme="neumorphism"] .admin-stat-card {
  box-shadow: var(--shadow-raised);
  background: #d0d0d4;
}
[data-theme="neumorphism"] .admin-table {
  box-shadow: var(--shadow-raised);
  background: #d0d0d4;
}
[data-theme="neumorphism"] .admin-table th {
  background: #c8c8cc;
  box-shadow: var(--shadow-subtle);
}
[data-theme="neumorphism"] .admin-input {
  box-shadow: var(--shadow-pressed);
  background: #d0d0d4;
  border: none;
}
[data-theme="neumorphism"] .admin-btn.primary {
  box-shadow: var(--shadow-raised);
  background: #d0d0d4;
  color: #000;
}
[data-theme="neumorphism"] .ai-btn-primary {
  box-shadow: var(--shadow-raised);
  background: #d0d0d4;
  color: #000;
  border-radius: 12px;
}
[data-theme="neumorphism"] .modal-content {
  box-shadow: var(--shadow-raised);
  background: #d0d0d4;
}
[data-theme="neumorphism"] .modal-header h3 {
  color: #000000;
}
[data-theme="neumorphism"] .modal-close {
  color: #333;
}
[data-theme="neumorphism"] .ai-form-group label {
  color: #333333;
}
[data-theme="neumorphism"] .ai-form-group input,
[data-theme="neumorphism"] .ai-form-group select,
[data-theme="neumorphism"] .ai-form-group textarea {
  background: #d0d0d4;
  border: none;
  box-shadow: var(--shadow-pressed);
  color: #000000;
}
[data-theme="neumorphism"] .ai-form-group input:focus,
[data-theme="neumorphism"] .ai-form-group select:focus,
[data-theme="neumorphism"] .ai-form-group textarea:focus {
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184,134,11,0.2), var(--shadow-pressed);
}
[data-theme="neumorphism"] .endpoint-type-btn {
  box-shadow: var(--shadow-subtle);
  background: #d0d0d4;
  color: #333333;
}
[data-theme="neumorphism"] .endpoint-type-btn:hover {
  background: #c8c8cc;
  color: #000000;
}
[data-theme="neumorphism"] .endpoint-type-btn.active {
  box-shadow: var(--shadow-pressed);
  background: #c8c8cc;
  color: #b8860b;
  border-color: #b8860b;
}
[data-theme="neumorphism"] .ai-tab {
  box-shadow: var(--shadow-subtle);
  background: #d0d0d4;
}
[data-theme="neumorphism"] .ai-tab.active {
  box-shadow: var(--shadow-pressed);
  background: #c8c8cc;
}
[data-theme="neumorphism"] .ai-card {
  box-shadow: var(--shadow-raised);
  background: #d0d0d4;
}

/* ===== 浅色模式对比度增强 ===== */
[data-theme="light"] .admin-panel {
  background: #f5f5f7;
}
[data-theme="light"] .admin-header h1 {
  color: #1a1a1a;
}
[data-theme="light"] .admin-subtitle {
  color: #4a4a4a;
}
[data-theme="light"] .admin-tab {
  color: #4a4a4a;
}
[data-theme="light"] .admin-tab:hover {
  color: #1a1a1a;
  background: rgba(0,0,0,0.03);
}
[data-theme="light"] .admin-tab.active {
  color: #b8860b;
  border-bottom-color: #b8860b;
}
[data-theme="light"] .admin-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="light"] .admin-card:hover {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
[data-theme="light"] .admin-table th {
  color: #4a4a4a;
  border-bottom-color: rgba(0,0,0,0.08);
  background: #f8f8fa;
}
[data-theme="light"] .admin-table td {
  color: #1a1a1a;
  border-bottom-color: rgba(0,0,0,0.05);
}
[data-theme="light"] .admin-table tr:hover td {
  background: #f5f5f7;
}
[data-theme="light"] .admin-input {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  color: #1a1a1a;
}
[data-theme="light"] .admin-input:focus {
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}
[data-theme="light"] .admin-btn.primary {
  background: linear-gradient(135deg, #b8860b, #daa520);
  box-shadow: 0 2px 8px rgba(184,134,11,0.25);
}
[data-theme="light"] .admin-btn.danger {
  background: rgba(220,53,69,0.08);
  color: #dc3545;
  border-color: rgba(220,53,69,0.2);
}
[data-theme="light"] .admin-btn.danger:hover {
  background: rgba(220,53,69,0.15);
}
[data-theme="light"] .modal-overlay {
  background: rgba(0,0,0,0.4);
}
[data-theme="light"] .modal-content {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
[data-theme="light"] .modal-header {
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .modal-header h3 {
  color: #1a1a1a;
}
[data-theme="light"] .modal-close {
  color: #666;
}
[data-theme="light"] .modal-close:hover {
  color: #1a1a1a;
}
[data-theme="light"] .ai-tab {
  background: #f0f0f2;
  border-color: rgba(0,0,0,0.08);
  color: #4a4a4a;
}
[data-theme="light"] .ai-tab:hover {
  background: #e8e8ea;
  color: #1a1a1a;
}
[data-theme="light"] .ai-tab.active {
  background: linear-gradient(135deg, rgba(184,134,11,0.12), rgba(218,165,32,0.08));
  border-color: #b8860b;
  color: #b8860b;
}
[data-theme="light"] .ai-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
[data-theme="light"] .ai-card-header h3 {
  color: #1a1a1a;
}
[data-theme="light"] .ai-form-group label {
  color: #4a4a4a;
}
[data-theme="light"] .ai-form-group input,
[data-theme="light"] .ai-form-group select,
[data-theme="light"] .ai-form-group textarea {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  color: #1a1a1a;
}
[data-theme="light"] .ai-form-group input:focus,
[data-theme="light"] .ai-form-group select:focus,
[data-theme="light"] .ai-form-group textarea:focus {
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}
[data-theme="light"] .admin-stat-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .admin-stat-card:hover {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .admin-stat-value {
  color: #1a1a1a;
}
[data-theme="light"] .admin-stat-label {
  color: #4a4a4a;
}
[data-theme="light"] .admin-avatar {
  border-color: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .admin-btn-small {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  color: #1a1a1a;
}
[data-theme="light"] .admin-btn-small:hover {
  background: #f5f5f7;
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .admin-btn-small.admin-btn-success {
  color: #198754;
  border-color: rgba(25,135,84,0.2);
}
[data-theme="light"] .admin-btn-small.admin-btn-success:hover {
  background: rgba(25,135,84,0.08);
  border-color: rgba(25,135,84,0.4);
}
[data-theme="light"] .admin-btn-small.admin-btn-danger {
  color: #dc3545;
  border-color: rgba(220,53,69,0.2);
}
[data-theme="light"] .admin-btn-small.admin-btn-danger:hover {
  background: rgba(220,53,69,0.08);
  border-color: rgba(220,53,69,0.4);
}
[data-theme="light"] .admin-btn-small.admin-btn-warning {
  color: #fd7e14;
  border-color: rgba(253,126,20,0.2);
}
[data-theme="light"] .admin-btn-small.admin-btn-warning:hover {
  background: rgba(253,126,20,0.08);
  border-color: rgba(253,126,20,0.4);
}
[data-theme="light"] .ai-inline-edit,
[data-theme="light"] .ai-inline-delete {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  color: #1a1a1a;
}
[data-theme="light"] .ai-inline-edit:hover {
  background: rgba(184,134,11,0.08);
  border-color: #b8860b;
  color: #b8860b;
}
[data-theme="light"] .ai-inline-delete {
  color: #dc3545;
  border-color: rgba(220,53,69,0.2);
}
[data-theme="light"] .ai-inline-delete:hover {
  background: rgba(220,53,69,0.08);
  border-color: rgba(220,53,69,0.4);
}
[data-theme="light"] .admin-section-header {
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .admin-section-header h2 {
  color: #1a1a1a;
}
[data-theme="light"] .admin-badge {
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .admin-badge.developer,
[data-theme="light"] .admin-badge.admin {
  background: rgba(184,134,11,0.1);
  color: #b8860b;
}
[data-theme="light"] .admin-badge.user {
  background: rgba(0,0,0,0.05);
  color: #4a4a4a;
}
[data-theme="light"] .admin-status-badge.active {
  background: rgba(25,135,84,0.1);
  color: #198754;
  border-color: rgba(25,135,84,0.2);
}
[data-theme="light"] .admin-status-badge.banned {
  background: rgba(220,53,69,0.1);
  color: #dc3545;
  border-color: rgba(220,53,69,0.2);
}
[data-theme="light"] .admin-status-badge.pending {
  background: rgba(253,126,20,0.1);
  color: #fd7e14;
  border-color: rgba(253,126,20,0.2);
}
[data-theme="light"] .admin-progress-bar {
  background: rgba(0,0,0,0.08);
}
[data-theme="light"] .admin-empty {
  color: #888;
}

/* ===== 深色模式对比度增强 ===== */
[data-theme="dark"] .admin-panel {
  background: #0d0d12;
}
[data-theme="dark"] .admin-header h1 {
  color: #f0f0f2;
}
[data-theme="dark"] .admin-subtitle {
  color: #a0a0a8;
}
[data-theme="dark"] .admin-tab {
  color: #a0a0a8;
}
[data-theme="dark"] .admin-tab:hover {
  color: #e8e8ec;
  background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .admin-tab.active {
  color: #d4af37;
  border-bottom-color: #d4af37;
}
[data-theme="dark"] .admin-card {
  background: #16161c;
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .admin-card:hover {
  background: #1a1a22;
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .admin-table th {
  color: #a0a0a8;
  border-bottom-color: rgba(255,255,255,0.06);
  background: #12121a;
}
[data-theme="dark"] .admin-table td {
  color: #e8e8ec;
  border-bottom-color: rgba(255,255,255,0.04);
}
[data-theme="dark"] .admin-table tr:hover td {
  background: rgba(255,255,255,0.02);
}
[data-theme="dark"] .admin-input {
  background: #1a1a22;
  border-color: rgba(255,255,255,0.08);
  color: #e8e8ec;
}
[data-theme="dark"] .admin-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
[data-theme="dark"] .admin-btn.primary {
  background: linear-gradient(135deg, #d4af37, #b8960f);
}
[data-theme="dark"] .ai-btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8960f);
  color: #1a1a22;
  box-shadow: 0 2px 8px rgba(212,175,55,0.2);
}
[data-theme="dark"] .ai-btn-primary:hover {
  box-shadow: 0 4px 16px rgba(212,175,55,0.35);
}
[data-theme="dark"] .admin-btn.danger {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border-color: rgba(239,68,68,0.25);
}
[data-theme="dark"] .admin-btn.danger:hover {
  background: rgba(239,68,68,0.2);
}
[data-theme="dark"] .modal-overlay {
  background: rgba(0,0,0,0.7);
}
[data-theme="dark"] .modal-content {
  background: #1a1a22;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}
[data-theme="dark"] .modal-header {
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .modal-header h3 {
  color: #e8e8ec;
}
[data-theme="dark"] .modal-close {
  color: #888;
}
[data-theme="dark"] .modal-close:hover {
  color: #e8e8ec;
}
[data-theme="dark"] .ai-tab {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  color: #a0a0a8;
}
[data-theme="dark"] .ai-tab:hover {
  background: rgba(255,255,255,0.05);
  color: #e8e8ec;
}
[data-theme="dark"] .ai-tab.active {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(183,143,113,0.1));
  border-color: #d4af37;
  color: #d4af37;
}
[data-theme="dark"] .ai-card {
  background: #16161c;
  border-color: rgba(255,255,255,0.05);
}
[data-theme="dark"] .ai-card-header h3 {
  color: #e8e8ec;
}
[data-theme="dark"] .ai-form-group label {
  color: #a0a0a8;
}
[data-theme="dark"] .ai-form-group input,
[data-theme="dark"] .ai-form-group select,
[data-theme="dark"] .ai-form-group textarea {
  background: #12121a;
  border-color: rgba(255,255,255,0.08);
  color: #e8e8ec;
}
[data-theme="dark"] .ai-form-group input:focus,
[data-theme="dark"] .ai-form-group select:focus,
[data-theme="dark"] .ai-form-group textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
[data-theme="dark"] .admin-stat-card {
  background: #16161c;
  border-color: rgba(255,255,255,0.04);
}
[data-theme="dark"] .admin-stat-card:hover {
  background: #1a1a22;
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .admin-stat-value {
  color: #e8e8ec;
}
[data-theme="dark"] .admin-stat-label {
  color: #a0a0a8;
}
[data-theme="dark"] .admin-avatar {
  border-color: rgba(255,255,255,0.1) !important;
}
[data-theme="dark"] .admin-btn-small {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  color: #e8e8ec;
}
[data-theme="dark"] .admin-btn-small:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .admin-btn-small.admin-btn-success {
  color: #22c55e;
  border-color: rgba(34,197,94,0.25);
}
[data-theme="dark"] .admin-btn-small.admin-btn-success:hover {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.4);
}
[data-theme="dark"] .admin-btn-small.admin-btn-danger {
  color: #ef4444;
  border-color: rgba(239,68,68,0.25);
}
[data-theme="dark"] .admin-btn-small.admin-btn-danger:hover {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.4);
}
[data-theme="dark"] .admin-btn-small.admin-btn-warning {
  color: #f97316;
  border-color: rgba(249,115,22,0.25);
}
[data-theme="dark"] .admin-btn-small.admin-btn-warning:hover {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.4);
}
[data-theme="dark"] .ai-inline-edit,
[data-theme="dark"] .ai-inline-delete {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  color: #e8e8ec;
}
[data-theme="dark"] .ai-inline-edit:hover {
  background: rgba(212,175,55,0.12);
  border-color: #d4af37;
  color: #d4af37;
}
[data-theme="dark"] .ai-inline-delete {
  color: #ef4444;
  border-color: rgba(239,68,68,0.25);
}
[data-theme="dark"] .ai-inline-delete:hover {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.4);
}
[data-theme="dark"] .admin-section-header {
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .admin-section-header h2 {
  color: #e8e8ec;
}
[data-theme="dark"] .admin-badge.developer,
[data-theme="dark"] .admin-badge.admin {
  background: rgba(212,175,55,0.15);
  color: #d4af37;
  border-color: rgba(212,175,55,0.2);
}
[data-theme="dark"] .admin-badge.user {
  background: rgba(255,255,255,0.05);
  color: #a0a0a8;
}
[data-theme="dark"] .admin-status-badge.active {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border-color: rgba(34,197,94,0.25);
}
[data-theme="dark"] .admin-status-badge.banned {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border-color: rgba(239,68,68,0.25);
}
[data-theme="dark"] .admin-status-badge.pending {
  background: rgba(249,115,22,0.12);
  color: #f97316;
  border-color: rgba(249,115,22,0.25);
}
[data-theme="dark"] .admin-progress-bar {
  background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .admin-empty {
  color: #666;
}

/* 端点类型按钮样式 */
.endpoint-type-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.endpoint-type-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-glass-light);
}
.endpoint-type-btn.active {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(183,143,113,0.1));
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* 模型测试状态样式 */
.model-test-loading {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}
.model-test-loading .spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.model-test-ok {
  color: var(--accent-green);
  font-weight: 500;
  cursor: default;
}
.model-test-error {
  color: var(--accent-red);
  font-weight: 500;
  cursor: default;
}

/* 端点类型标签样式 */
.admin-endpoint-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.admin-endpoint-badge.chat {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
}
.admin-endpoint-badge.messages {
  background: rgba(168,85,247,0.1);
  color: #a855f7;
}
.admin-endpoint-badge.auto {
  background: rgba(107,114,128,0.1);
  color: #6b7280;
}

[data-theme="light"] .endpoint-type-btn {
  border-color: rgba(0,0,0,0.1);
  background: #fff;
  color: #666;
}
[data-theme="light"] .endpoint-type-btn:hover {
  background: #f5f5f7;
  color: #1a1a1a;
}
[data-theme="light"] .endpoint-type-btn.active {
  background: linear-gradient(135deg, rgba(184,134,11,0.1), rgba(218,165,32,0.05));
  border-color: #b8860b;
  color: #b8860b;
}
[data-theme="light"] .model-test-ok { color: #198754; }
[data-theme="light"] .model-test-error { color: #dc3545; }
[data-theme="light"] .admin-endpoint-badge.chat {
  background: rgba(59,130,246,0.12);
  color: #2563eb;
}
[data-theme="light"] .admin-endpoint-badge.messages {
  background: rgba(168,85,247,0.12);
  color: #9333ea;
}
[data-theme="light"] .admin-endpoint-badge.auto {
  background: rgba(107,114,128,0.1);
  color: #4b5563;
}

/* 模型表格新样式 */
.ai-models-table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}
.ai-models-table {
  min-width: 700px;
  table-layout: fixed;
}
.ai-models-table colgroup {
  display: none;
}
.ai-models-table th,
.ai-models-table td {
  padding: 10px 12px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col-priority { width: 50px; }
.col-name { min-width: 200px; }
.col-provider { width: 80px; }
.col-endpoint { width: 80px; }
.col-status { width: 140px; }
.col-actions { width: 140px; }

.cell-name strong {
  display: block;
  margin-bottom: 2px;
}
.model-url {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-status-ok { color: var(--accent-green); font-weight: 500; }
.model-status-fail { color: var(--accent-red); font-weight: 500; }
.model-status-none { color: var(--text-muted); }
.model-status-code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(34,197,94,0.15);
  color: var(--accent-green);
  margin-left: 4px;
}
.cell-actions {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}
.cell-actions button {
  padding: 4px 8px;
  font-size: 11px;
}

/* 浅色主题添加模型按钮 */
[data-theme="light"] .ai-btn-primary {
  background: linear-gradient(135deg, #b8860b, #daa520);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(184,134,11,0.25);
}
[data-theme="light"] .ai-btn-primary:hover {
  box-shadow: 0 4px 16px rgba(184,134,11,0.35);
}

/* 浅色主题卡片悬停 */
[data-theme="light"] .ai-card:hover {
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* 拟态主题卡片悬停对比度 */
[data-theme="neumorphism"] .admin-card:hover {
  transform: translateY(-2px);
  background: #d4d4d8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

[data-theme="neumorphism"] .ai-card:hover {
  background: #d4d4d8;
  border-color: #bbb;
}

[data-theme="neumorphism"] .admin-stat-card:hover {
  background: #d4d4d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* 拟态主题卡片悬停时文字颜色 - 确保黑色文字清晰可见 */
[data-theme="neumorphism"] .ai-card:hover h3,
[data-theme="neumorphism"] .ai-card:hover .ai-stat-label,
[data-theme="neumorphism"] .ai-card:hover .ai-stat-value,
[data-theme="neumorphism"] .admin-stat-card:hover .admin-stat-label,
[data-theme="neumorphism"] .admin-stat-card:hover .admin-stat-value {
  color: #000000;
}

/* 拟态主题表格行悬停 */
[data-theme="neumorphism"] .admin-table tr:hover td {
  background: #d4d4d8;
}
  background: #d4d4d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
