/* 变量定义 */
:root {
  --bg-dark: #1e293b;
  --bg-darker: #1a2332;
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-light-gray: #64748b;
  --border-color: #334155;
  --primary-blue: #3b82f6;
  --success-green: #10b981;
  --danger-red: #ef4444;
  --hover-bg: #1e3a8a;
}

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
}

/* 登录页面样式 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.login-logo svg {
  width: 48px;
  height: 48px;
  color: var(--primary-blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.login-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.login-header p {
  font-size: 14px;
  color: var(--text-gray);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light-gray);
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 1;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 48px !important;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-wrapper input::placeholder {
  color: var(--text-light-gray);
}

.input-wrapper input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.input-wrapper input:focus + .input-icon {
  color: var(--primary-blue);
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s ease;
  color: var(--text-light-gray);
}

.toggle-password:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
}

.toggle-password svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

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

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-blue);
}

.forgot-password {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-blue), #2563eb);
  color: var(--text-white);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  outline: none;
}

.login-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

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

.login-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
  font-size: 12px;
  color: var(--text-light-gray);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
  }
  
  .login-header h1 {
    font-size: 20px;
  }
  
  .login-btn {
    font-size: 14px;
  }
}

/* 管理面板布局 */
.admin-panel {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  overflow: hidden;
}

/* 头部样式 */
.admin-header {
  background: var(--bg-darker);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-left .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-left .logo svg {
  color: var(--primary-blue);
}

.header-left .logo span {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
}

.header-left .logo-subtitle {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 2px;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-center .search-box {
  width: 400px;
  height: 36px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.header-center .search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 14px;
}

.header-center .search-box input::placeholder {
  color: var(--text-light-gray);
}

.header-center .search-box svg {
  color: var(--text-light-gray);
  margin-right: 8px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right .notification {
  position: relative;
  color: var(--text-white);
  cursor: pointer;
}

.header-right .notification::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--primary-blue);
  border-radius: 50%;
}

.header-right .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
}

.header-right .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 500;
  font-size: 14px;
}

.header-right .user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-right .user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
}

.header-right .user-email {
  font-size: 12px;
  color: var(--text-gray);
}

.header-right .logout-btn {
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-right .logout-btn:hover {
  color: var(--primary-blue);
  transform: translateX(2px);
}

.header-right .logout-btn svg {
  width: 16px;
  height: 16px;
}

/* 主内容区布局 */
.admin-main {
  flex: 1;
  display: flex;
  gap: 0;
  background: var(--bg-dark);
  overflow: hidden;
  min-height: 0;
}

/* 侧边栏样式 */
.admin-sidebar {
  width: 180px;
  background: var(--bg-darker);
  border-right: 1px solid var(--border-color);
  padding: 24px 0;
  flex-shrink: 0;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

/* 菜单收起状态 */
.admin-sidebar.collapsed {
  width: 64px;
}

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

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  overflow: hidden;
  white-space: nowrap;
}

/* 菜单收起时的样式 */
.admin-sidebar.collapsed .menu-item {
  justify-content: center;
  gap: 0;
  padding: 12px;
  overflow: hidden;
  width: 40px;
}

.admin-sidebar.collapsed .menu-item span {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  width: 0;
}

.menu-item:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--text-white);
}

.menu-item.active {
  background: var(--primary-blue);
  color: var(--text-white);
  border-radius: 8px;
  border-left: none;
}

.menu-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

/* 收起/展开按钮样式 */
.sidebar-toggle {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  padding: 0 12px;
  display: flex;
  justify-content: center;
}

.sidebar-toggle button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sidebar-toggle button:hover {
  background: rgba(59, 130, 246, 0.2);
  color: var(--text-white);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

/* 菜单收起时的按钮样式 */
.admin-sidebar.collapsed .sidebar-toggle button {
  width: 32px;
  height: 32px;
}

/* 菜单收起时调整按钮位置 */
.admin-sidebar.collapsed .sidebar-toggle {
  padding: 0 16px;
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
}

/* 菜单收起时旋转图标 */
.admin-sidebar.collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

/* 内容区域样式 */
.admin-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg-dark);
}

/* 控制台样式 - 优化版 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.stats-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.stats-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.stats-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stats-card:nth-child(1) .stats-icon {
  background: linear-gradient(135deg, var(--primary-blue), #2563eb);
}

.stats-card:nth-child(2) .stats-icon {
  background: linear-gradient(135deg, var(--success-green), #059669);
}

.stats-card:nth-child(3) .stats-icon {
  background: linear-gradient(135deg, var(--danger-red), #dc2626);
}

.stats-card:nth-child(4) .stats-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stats-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-white);
  transition: all 0.3s ease;
}

.stats-content {
  flex: 1;
}

.stats-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.stats-label {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
  transition: all 0.3s ease;
}

.stats-card:hover .stats-number {
  transform: scale(1.05);
}

.stats-card:hover .stats-label {
  color: var(--text-white);
}

.stats-card:hover .stats-icon {
  transform: scale(1.1);
}

/* 控制台响应式设计 */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stats-card {
    padding: 24px;
  }
  
  .stats-number {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stats-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .stats-number {
    font-size: 24px;
  }
  
  .stats-icon {
    width: 50px;
    height: 50px;
  }
  
  .stats-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .stats-card {
    padding: 16px;
  }
  
  .stats-number {
    font-size: 20px;
  }
  
  .stats-label {
    font-size: 12px;
  }
  
  .stats-icon {
    width: 40px;
    height: 40px;
  }
  
  .stats-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* 在线用户统计卡片样式 */
.online-card .stats-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

.online-icon {
  position: relative;
}

.online-icon::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0.3;
  }
}

.visits-card .stats-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.total-visits-card .stats-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.guest-card .stats-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* 访问趋势图区域 */
.visit-trend-section {
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  animation: fadeInUp 0.5s ease;
}

.trend-legend {
  display: flex;
  gap: 20px;
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-gray);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.user-dot {
  background: var(--primary-blue);
}

.guest-dot {
  background: #f59e0b;
}

.chart-container {
  width: 100%;
  height: 280px;
  position: relative;
  margin-top: 16px;
}

#visitTrendCanvas {
  width: 100%;
  height: 100%;
}

/* 在线用户列表区域 */
.online-users-section {
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  animation: fadeInUp 0.5s ease;
}

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

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

.refresh-hint {
  font-size: 12px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.refresh-hint::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

/* 页面标题 */
.page-header {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.page-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-gray);
}

.page-header .page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header .btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.page-header .btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  font-weight: 500;
  padding: 8px 20px;
}

.page-header .btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.page-header .btn-secondary {
  background-color: #334155;
  border-color: #334155;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  font-weight: 500;
  padding: 8px 20px;
}

.page-header .btn-secondary:hover {
  background-color: #475569;
  border-color: #475569;
}

.page-header .btn-danger {
  background-color: var(--danger-red);
  border-color: var(--danger-red);
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  font-weight: 500;
  padding: 8px 20px;
}

.page-header .btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
}

/* 备份管理页面样式 */
.backup-toolbar {
  margin-bottom: 20px;
  background-color: #334155;
  border-radius: 8px;
  padding: 20px;
}

.backup-toolbar .btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--text-white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.backup-toolbar .btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.backup-toolbar .btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.backup-toolbar .btn-secondary {
  background-color: #475569;
  border-color: #475569;
}

.backup-toolbar .btn-secondary:hover {
  background-color: #64748b;
  border-color: #64748b;
}

.backup-table-btn {
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--text-white);
  background-color: #ef4444;
  transition: all 0.2s ease;
}

.backup-table-btn:hover {
  background-color: #dc2626;
}

/* 反馈管理页面按钮样式 */
.search-filter-section .btn,
.batch-operation-section .btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 筛选区域按钮基础样式 */
.search-filter-section .btn,
.batch-operation-section .btn {
  height: 36px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-filter-section .btn-primary,
.batch-operation-section .btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--text-white);
}

.search-filter-section .btn-primary:hover,
.batch-operation-section .btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.search-filter-section .btn-secondary,
.batch-operation-section .btn-secondary {
  background-color: #334155;
  border-color: #334155;
  color: var(--text-white);
}

.search-filter-section .btn-secondary:hover,
.batch-operation-section .btn-secondary:hover {
  background-color: #475569;
  border-color: #475569;
}

.search-filter-section .btn-danger,
.batch-operation-section .btn-danger {
  background-color: var(--danger-red);
  border-color: var(--danger-red);
  color: var(--text-white);
}

.search-filter-section .btn-danger:hover,
.batch-operation-section .btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
}

/* 搜索和筛选区域 */
.search-filter-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.search-filter-section .search-input {
  flex: 1;
  height: 36px;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text-white);
  font-size: 14px;
}

.search-filter-section .search-input::placeholder {
  color: var(--text-light-gray);
}

.search-filter-section .search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* 筛选区域的 form-input 高度调整 */
.search-filter-section .form-input {
  height: 36px;
  padding: 0 16px;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
}

.search-filter-section .form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-filter-section .filter-btn {
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text-white);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-filter-section .filter-btn:hover {
  background-color: rgba(51, 65, 85, 0.5);
}

/* 搜索筛选区域下拉选择框 */
.search-filter-select {
  height: 36px;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 32px 0 16px;
  color: var(--text-white);
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-filter-select:hover {
  border-color: var(--primary-blue);
}

.search-filter-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-filter-select option {
  background: var(--bg-darker);
  color: var(--text-white);
  padding: 8px 12px;
}

/* 表格容器 */
.table-container {
  background: var(--bg-darker);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* 数据表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table thead th {
  white-space: normal;
  word-wrap: break-word;
}

.data-table tbody td {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.data-table tbody td:nth-child(2) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.data-table th {
  text-align: center;
  padding: 12px 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light-gray);
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  word-wrap: break-word;
  white-space: normal;
}

.data-table td {
  padding: 10px 5px;
  font-size: 14px;
  text-align: center;
  color: var(--text-white);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  word-wrap: break-word;
  white-space: normal;
}

.data-table td:nth-child(2) {
  /* text-align: left; */
  padding: 10px 16px;
}

.order-no-cell,
.transaction-id-cell {
  width: 150px;
  max-width: 150px;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-all;
}

.data-table tr:hover {
  background-color: rgba(51, 65, 85, 0.5);
}

/* 用户信息单元格 */
.user-info-cell {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  width: 100%;
  max-width: 100%;
}

.user-info-cell .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.user-info-cell .user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.user-info-cell .user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.user-info-cell .user-nickname {
  font-size: 13px;
  color: var(--text-gray);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.user-info-cell .user-email {
  font-size: 13px;
  color: var(--text-light-gray);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

/* 状态徽章 */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge.active {
  background-color: var(--success-green);
  color: var(--text-white);
}

.status-badge.inactive {
  background-color: var(--danger-red);
  color: var(--text-white);
}

/* 订单状态样式 */
.status-badge.status-paid {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.status-badge.status-pending {
  background-color: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffcc80;
}

.status-badge.status-closed {
  background-color: #f5f5f5;
  color: #757575;
  border: 1px solid #e0e0e0;
}

.status-badge.status-refunded {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

/* 内容单元格 - 支持自动换行 */
.feedback-content,
.feedback-reply,
.announcement-content,
.operation-content {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: left;
}

.feedback-reply-display {
  padding: 12px;
  background-color: #f8fafc;
  border-left: 3px solid var(--primary-blue);
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 反馈详情弹窗 */
.feedback-detail-body {
  padding: 24px;
  /* max-height: 70vh; */
  overflow-y: auto;
}

.feedback-detail-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.feedback-detail-section:last-child {
  margin-bottom: 0;
}

.feedback-detail-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
}

.feedback-detail-item {
  margin-bottom: 12px;
}

.feedback-detail-item:last-child {
  margin-bottom: 0;
}

.feedback-detail-item > label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 6px;
}

.feedback-detail-item > div {
  font-size: 14px;
  color: var(--text-white);
  line-height: 1.6;
}

.feedback-content-display {
  padding: 12px;
  background-color: #0f172a;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.feedback-content-display img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 8px;
  display: block;
}

.feedback-reply-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-reply-item {
  padding: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  border-left: 4px solid #22c55e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feedback-reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.feedback-reply-admin {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
}

.feedback-reply-time {
  font-size: 13px;
  color: #64748b;
}

.feedback-reply-content {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.feedback-reply-input {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  background-color: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-white);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feedback-reply-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.feedback-reply-input::placeholder {
  color: var(--text-gray);
  opacity: 0.7;
}

.feedback-reply-submit {
  background-color: #10b981 !important;
  border: 1px solid #10b981 !important;
  color: white !important;
  padding: 10px 24px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  width: auto !important;
  font-size: 14px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feedback-reply-submit:hover {
  background-color: #059669 !important;
  border-color: #059669 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.feedback-reply-submit:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feedback-reply-section {
  padding: 20px;
  background-color: #1e293b;
  border-radius: 8px;
  margin-top: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feedback-reply-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.feedback-content-display {
  padding: 16px;
  background-color: #0f172a;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-white);
}

.feedback-content-display img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 8px;
  display: block;
}

/* 操作按钮 */
.action-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background-color: rgba(51, 65, 85, 0.5);
}

.action-btn.edit {
  color: var(--primary-blue);
}

.action-btn.delete {
  color: var(--danger-red);
}

.action-btn.more {
  color: var(--text-gray);
}

.action-btn svg {
  width: 14px;
  height: 14px;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
}

.pagination-info {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.5;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

#pageNumbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: var(--bg-dark);
  color: var(--text-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.pagination-btn:hover {
  background-color: rgba(51, 65, 85, 0.5);
}

.pagination-btn:active {
  background-color: var(--bg-darker);
}

.pagination-btn.active {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
}

.pagination-btn.active:hover {
  background-color: #2563eb;
}

.pagination-btn:disabled,
.pagination-btn.disabled {
  color: var(--text-light-gray);
  background-color: var(--bg-dark);
  border-color: var(--border-color);
  cursor: not-allowed;
}

.pagination-btn svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.pagination-ellipsis {
  color: var(--text-light-gray);
  padding: 6px 4px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 200px;
  }

  .admin-content {
    padding: 24px;
  }

  .header-center .search-box {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .admin-header {
    padding: 0 16px;
    flex-wrap: wrap;
  }

  .header-left {
    gap: 16px;
  }

  .header-center {
    order: 3;
    width: 100%;
    margin-top: 16px;
  }

  .header-center .search-box {
    width: 100%;
  }

  .admin-main {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
  }

  .sidebar-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
  }

  .sidebar-toggle {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 8px 0;
  }

  .menu-item {
    white-space: nowrap;
    margin-bottom: 0;
  }

  .admin-content {
    padding: 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-header .page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .search-filter-section {
    flex-direction: column;
    align-items: stretch;
  }

  .search-filter-section .search-input {
    width: 100%;
  }

  .data-table th,
  .data-table td {
    padding: 12px;
  }

  .pagination {
    flex-direction: column;
    gap: 12px;
  }

  .pagination-info {
    text-align: center;
  }

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

@media (max-width: 480px) {
  .header-left .logo span {
    font-size: 16px;
  }

  .header-right {
    gap: 12px;
  }

  .header-right .user-info {
    gap: 8px;
    padding: 6px 12px;
  }

  .admin-content {
    padding: 12px;
  }

  .page-header h1 {
    font-size: 18px;
  }

  .data-table th,
  .data-table td {
    padding: 8px;
    font-size: 12px;
  }

  .user-info-cell {
    gap: 8px;
  }

  .user-info-cell .user-avatar {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .pagination-btn {
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* 系统配置页面样式 - 基于syscf.png */
.settings-container {
  display: flex;
  gap: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  min-height: calc(100vh - 180px);
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.settings-sidebar {
  width: 260px;
  background: rgba(30, 41, 59, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-nav-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.settings-nav-item:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--text-white);
  transform: translateX(4px);
  border-color: rgba(59, 130, 246, 0.3);
}

.settings-nav-item:hover svg {
  color: var(--primary-blue);
}

.settings-nav-item.active {
  background: linear-gradient(135deg, var(--primary-blue), #2563eb);
  color: var(--text-white);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
}

.settings-nav-item.active svg {
  color: var(--text-white);
}

.settings-main {
  flex: 1;
  padding: 36px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-content {
  display: none;
}

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

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

.settings-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 20px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
}

/* 密码输入框切换 */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper .form-input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: var(--text-gray, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 1;
}

.toggle-password:hover {
  color: var(--primary-blue, #3b82f6);
}

.eye-closed {
  display: none;
}

.password-field.show-password .eye-open {
  display: none;
}

.password-field.show-password .eye-closed {
  display: block;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light-gray);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-1px);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  cursor: pointer;
}



/* 保存按钮样式 */
.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-blue), #2563eb);
  color: var(--text-white);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.save-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

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

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

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

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

/* 图片预览样式 */
.image-preview {
  min-height: 120px;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #334155;
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-preview:hover {
  border-color: var(--primary-blue);
  background: #3b4252;
}

.image-preview img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 4px;
}

.image-preview span {
  color: var(--text-gray);
  font-size: 14px;
}

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

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

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: var(--text-white);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .settings-container {
    flex-direction: column;
    gap: 0;
  }

  .settings-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
  }

  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding: 0 16px;
  }

  .settings-nav-item {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .settings-main {
    padding: 24px;
    max-height: none;
  }

  .settings-content h2 {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .settings-main {
    padding: 16px;
  }

  .settings-content h2 {
    font-size: 15px;
    margin-bottom: 16px;
  }

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

  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .settings-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .settings-nav-item {
    padding: 8px 12px;
    font-size: 12px;
  }

  .settings-main {
    padding: 12px;
  }

  .settings-content h2 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.5;
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .settings-container {
    flex-direction: column;
    gap: 0;
  }

  .settings-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ffffff;
    padding: 16px 0;
  }

  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    padding: 0 16px;
  }

  .settings-nav-item {
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .settings-main {
    padding: 24px;
  }

  .settings-card h2 {
    font-size: 18px;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .settings-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 16px 16px;
  }

  .settings-container {
    margin: 0 16px;
  }

  .settings-main {
    padding: 16px;
  }

  .settings-card h2 {
    font-size: 16px;
    margin-bottom: 16px;
  }

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

  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .settings-header-left .settings-title {
    font-size: 20px;
  }

  .settings-header-right .save-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .settings-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .settings-nav-item {
    padding: 8px 12px;
    font-size: 12px;
  }

  .settings-main {
    padding: 12px;
  }

  .settings-card h2 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Loading 样式 */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-blue);
  animation: spin 1s ease-in-out infinite;
}

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

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg {
  width: 60px;
  height: 60px;
  border-width: 4px;
}

/* 表格loading容器 */
.table-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 300px;
}

.table-loading-container .spinner {
  margin-bottom: 16px;
}

.table-loading-text {
  color: var(--text-gray);
  font-size: 14px;
  margin-top: 8px;
}

/* 表格loading遮罩 */
.table-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(2px);
}

.table-container {
  position: relative;
}

.table-container.loading .table-loading-overlay {
  display: flex;
}

.table-container:not(.loading) .table-loading-overlay {
  display: none;
}

/* 点状loading */
.dots-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dots-loading span {
  width: 8px;
  height: 8px;
  background: var(--primary-blue);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dots-loading span:nth-child(1) {
  animation-delay: -0.32s;
}

.dots-loading span:nth-child(2) {
  animation-delay: -0.16s;
}

.dots-loading span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* 脉冲loading */
.pulse-loading {
  position: relative;
  width: 40px;
  height: 40px;
}

.pulse-loading::before,
.pulse-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: var(--primary-blue);
  opacity: 0.6;
  animation: pulse 1.5s ease-in-out infinite;
}

.pulse-loading::after {
  animation-delay: 0.75s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0);
    opacity: 0.6;
  }
  50% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* 表格行loading */
.table-row-loading {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 骨架屏loading */
.skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  margin-bottom: 0;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* 全局loading遮罩 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.loading-overlay .spinner {
  margin-bottom: 20px;
}

.loading-overlay-text {
  color: var(--text-white);
  font-size: 16px;
  font-weight: 500;
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal.show {
  display: block;
}

.modal-content {
  background-color: #1e293b;
  margin: 5% auto;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  min-height: 400px;
  max-height: 90vh;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

/* 反馈详情弹窗特定样式 */
#feedbackModal .modal-content {
  max-width: 900px;
  min-height: 600px;
  max-height: 90vh;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

.modal-close {
  color: var(--text-gray);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

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

.modal-body {
  padding: 20px 24px;
  max-height: calc(90vh - 140px);
  overflow-y: auto;
}

/* 反馈详情弹窗特定样式 */
#feedbackModal .modal-body {
  max-height: calc(90vh - 120px);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: #0f172a;
  border-radius: 0 0 8px 8px;
}

.modal-footer .btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-footer .btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--text-white);
}

.modal-footer .btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.modal-footer .btn-secondary {
  background-color: #334155;
  border-color: #334155;
  color: var(--text-white);
}

.modal-footer .btn-secondary:hover {
  background-color: #475569;
  border-color: #475569;
}

.modal-footer .btn-danger {
  background-color: var(--danger-red);
  border-color: var(--danger-red);
  color: var(--text-white);
}

.modal-footer .btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-white);
  background-color: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group select option {
  background-color: #1e293b;
  color: var(--text-white);
}

.form-group .hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-gray);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* 活动名称可点击样式 */
.activity-title {
  color: var(--quantum-primary, #00f0ff);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.activity-title:hover {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.activity-title a {
  color: inherit;
  text-decoration: none;
}

.activity-title a:hover {
  text-decoration: none;
}