* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主题色 */
  --primary-50: #f0f5ff;
  --primary-100: #e0ebff;
  --primary-200: #c7d7fe;
  --primary-300: #a4bcfd;
  --primary-400: #7b96fa;
  --primary-500: #667eea;
  --primary-600: #5a6fd6;
  --primary-700: #4a5bb4;
  --primary-800: #3f4a9e;
  --primary-900: #374183;
  
  /* 成功色 */
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;
  
  /* 危险色 */
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;
  
  /* 警告色 */
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  
  /* 中性色 */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* 字体大小 */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  --font-4xl: 2.25rem;
  --font-5xl: 3rem;
  
  /* 间距 */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  
  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 50%, #f093fb 100%);
  color: var(--gray-800);
  overflow-x: hidden;
}

.background-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.bg-circle-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  bottom: -100px;
  right: -100px;
  animation-delay: 2s;
}

.bg-circle-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-dark {
  background: rgba(31, 41, 55, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

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

.title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.limit-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
}

.filter-box {
  position: relative;
}

.filter-box select {
  padding: 12px 40px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: all 0.3s;
  appearance: none;
  min-width: 150px;
}

.filter-box::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  font-size: 0.75rem;
}

.filter-box select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.search-box svg {
  position: absolute;
  left: 16px;
  color: #9ca3af;
}

.search-box input {
  width: 100%;
  padding: var(--spacing-3) var(--spacing-4) var(--spacing-3) 48px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  font-size: var(--font-base);
  outline: none;
  transition: all var(--transition-normal);
}

.search-box input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-box input::placeholder {
  color: var(--gray-400);
}

input, textarea, select {
  font-family: inherit;
  font-size: var(--font-base);
  color: var(--gray-800);
}

input:focus, textarea:focus {
  outline: none;
}

.form-input {
  width: 100%;
  padding: var(--spacing-3) var(--spacing-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.stats {
  display: flex;
  gap: 20px;
  color: white;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.user-name {
  font-size: 0.95rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 24px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.breadcrumb-item {
  cursor: pointer;
  color: #667eea;
  font-weight: 600;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: 8px;
}

.breadcrumb-item:hover {
  color: #764ba2;
  background: rgba(102, 126, 234, 0.1);
}

.breadcrumb-separator {
  color: #9ca3af;
  margin: 0 4px;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.file-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.file-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-icon svg {
  width: 30px;
  height: 30px;
}

.folder-icon {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.file-icon-image { background: linear-gradient(135deg, #f093fb, #f5576c); color: white; }
.file-icon-document { background: linear-gradient(135deg, #4facfe, #00f2fe); color: white; }
.file-icon-archive { background: linear-gradient(135deg, #fa709a, #fee140); color: white; }
.file-icon-video { background: linear-gradient(135deg, #30cfd0, #330867); color: white; }
.file-icon-audio { background: linear-gradient(135deg, #a8edea, #fed6e3); color: #374151; }
.file-icon-file { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }

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

.file-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.file-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.file-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-list-table {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.file-row {
  display: grid;
  grid-template-columns: 1fr 140px 220px;
  gap: 20px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition-fast);
  color: var(--gray-700);
}

.file-row:hover {
  background: rgba(102, 126, 234, 0.06);
}

.file-row:last-child {
  border-bottom: none;
}

.file-row:nth-child(even) {
  background: var(--gray-50);
}

.file-row:nth-child(even):hover {
  background: rgba(102, 126, 234, 0.06);
}

.file-info-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.file-icon-small {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.file-name-cell {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size-cell {
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 400;
}

.file-actions-cell {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-3);
  padding: var(--spacing-4) var(--spacing-6);
  height: 50px;
  border: none;
  border-radius: var(--radius-2xl);
  font-size: var(--font-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  min-width: 100px;
}

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

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

.btn:active {
  transform: scale(0.97);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

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

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 200% 200%;
  color: white;
  box-shadow: 
    0 8px 25px rgba(102, 126, 234, 0.45),
    0 4px 12px rgba(118, 75, 162, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background-position: 100% 50%;
  box-shadow: 
    0 12px 35px rgba(102, 126, 234, 0.5),
    0 6px 16px rgba(118, 75, 162, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 
    0 8px 25px rgba(16, 185, 129, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-success:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(16, 185, 129, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-success:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 
    0 4px 12px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 
    0 8px 25px rgba(239, 68, 68, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-danger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 35px rgba(239, 68, 68, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-danger:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 
    0 4px 12px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-full {
  width: 100%;
  padding: var(--spacing-4) var(--spacing-5);
  font-size: var(--font-base);
}

.btn-sm {
  padding: var(--spacing-3) var(--spacing-5);
  height: 44px;
  font-size: var(--font-base);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 4px 15px rgba(102, 126, 234, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(102, 126, 234, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-sm:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 2px 8px rgba(102, 126, 234, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: var(--spacing-4) var(--spacing-8);
  height: 52px;
  font-size: var(--font-lg);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 50%, #d1d5db 100%);
  color: #374151;
  border: 2px solid #d1d5db;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-color: #9ca3af;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary-600);
  border-color: var(--primary-200);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.btn-icon:active {
  transform: scale(0.98);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 40px;
  animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #1f2937;
}

.modal-content h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #1f2937;
  text-align: center;
}

.modal-content > form > p {
  text-align: center;
  color: #6b7280;
  margin-bottom: 28px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  background: #f3f4f6;
  padding: 5px;
  border-radius: 14px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-tab.active {
  background: white;
  color: #667eea;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.95);
  font-family: inherit;
}

.input-wrapper input:focus,
.form-group input:focus,
.form-group select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.input-icon:hover {
  color: #667eea;
}

.input-icon svg {
  width: 22px;
  height: 22px;
}

.error-message {
  padding: 12px 16px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #dc2626;
  font-size: 0.9rem;
  margin-bottom: 16px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.success-message {
  padding: 12px 16px;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  color: #059669;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-card {
  max-width: 480px;
  width: 100%;
  padding: 50px 40px;
}

.login-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
  transition: transform 0.3s;
}

.login-icon:hover {
  transform: scale(1.05);
}

.login-icon svg {
  width: 44px;
  height: 44px;
}

.login-title {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  color: #1f2937;
  margin-bottom: 10px;
}

.login-desc {
  text-align: center;
  color: #6b7280;
  margin-bottom: 28px;
  font-size: 1rem;
}

.admin-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  margin-bottom: 24px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.btn-back {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-600);
  border: 1px solid rgba(102, 126, 234, 0.2);
  width: 40px;
  height: 40px;
  padding: 0;
}

.btn-back:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateX(-2px);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-500);
  border: 1px solid rgba(239, 68, 68, 0.2);
  width: 40px;
  height: 40px;
  padding: 0;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
}

.admin-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header h1::before {
  content: '⚙️';
  font-size: 1.4rem;
}

.admin-header .user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: rgba(102, 126, 234, 0.06);
  border-radius: 14px;
}

.admin-header .user-info span {
  color: #374151;
  font-weight: 500;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  border-radius: 16px;
  max-width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background: rgba(102, 126, 234, 0.08);
  color: #374151;
  transform: translateY(-1px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.storage-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.storage-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.storage-stats .stat-icon {
  font-size: 2.8rem;
}

.storage-stats .stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.storage-stats .stat-label {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 4px;
}

.storage-stats .stat-divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, #d1d5db, transparent);
}

.upload-area {
  padding: 50px;
  text-align: center;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px dashed rgba(102, 126, 234, 0.3);
}

.upload-progress {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

.progress-title {
  font-weight: 600;
  color: #374151;
}

.progress-percent {
  font-weight: 700;
  color: #667eea;
  font-size: 1.1rem;
}

.progress-bar {
  height: 8px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 0.3s ease;
  min-width: 0%;
}

.progress-info {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

.upload-area:hover,
.upload-area.dragging {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.06);
  transform: scale(1.01);
}

.upload-prompt {
  color: #6b7280;
}

.upload-prompt svg {
  color: #9ca3af;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.upload-area:hover .upload-prompt svg,
.upload-area.dragging .upload-prompt svg {
  color: #667eea;
}

.upload-prompt p {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #374151;
  font-weight: 600;
}

.upload-prompt small {
  font-size: 0.9rem;
  color: #9ca3af;
}

.upload-status {
  padding: 14px 24px;
  background: #dbeafe;
  border-radius: 12px;
  color: #1e40af;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
}

.user-table {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
  min-width: 100%;
}

.user-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr 140px 180px;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition-fast);
  color: var(--gray-700);
  font-size: var(--font-sm);
}

.user-row:hover {
  background: rgba(102, 126, 234, 0.06);
}

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

.user-row:nth-child(even) {
  background: var(--gray-50);
}

.user-row:nth-child(even):hover {
  background: rgba(102, 126, 234, 0.06);
}

.user-header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
  padding: 18px 24px;
}

.user-row > div {
  word-break: break-word;
  min-width: 0;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.role-badge.admin {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #92400e;
}

.role-badge.user {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.permission-item:hover {
  border-color: rgba(102, 126, 234, 0.4);
  background: rgba(102, 126, 234, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.permission-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin: 0;
  accent-color: #667eea;
  border-radius: 8px;
  transition: transform 0.2s;
}

.permission-item input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.permission-item input[type="checkbox"]:checked + span {
  color: #667eea;
  font-weight: 600;
}

.permission-item::before {
  content: attr(data-icon);
  font-size: 1.1rem;
  margin-right: 4px;
}

.loading {
  text-align: center;
  padding: 80px 20px;
  color: #6b7280;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

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

.empty {
  text-align: center;
  padding: 80px 20px;
  color: #9ca3af;
  font-size: 1.2rem;
}

.error {
  text-align: center;
  padding: 50px 20px;
  color: #dc2626;
}

/* Toast通知 */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.fade-out {
  animation: toastFadeOut 0.3s ease-in forwards;
}

@keyframes toastFadeOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.toast-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 1px solid #10b981;
}

.toast-error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 1px solid #ef4444;
}

.toast-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
}

.toast-info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 1px solid #3b82f6;
}

.toast-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2937;
}

.toast-close {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #6b7280;
  transition: all 0.2s;
}

.toast-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #1f2937;
}

/* 文件预览模态框 */
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.preview-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.preview-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.preview-container {
  width: 100%;
  height: 85vh;
}

.preview-container iframe {
  width: 100%;
  height: 100%;
}

/* 右键菜单 */
.context-menu {
  position: fixed;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 180px;
  z-index: 99999;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  transition: all 0.2s;
}

.context-menu-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.context-menu-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.context-menu-item.disabled:hover {
  background: none;
  color: #374151;
}

.context-menu-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

.context-menu-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .title { 
    font-size: var(--font-3xl); 
    line-height: 1.2; 
  }
  
  .subtitle {
    font-size: var(--font-base);
  }
  
  .container {
    padding: var(--spacing-6) var(--spacing-3);
  }
  
  .toolbar { 
    flex-direction: column; 
    align-items: stretch; 
    gap: var(--spacing-3);
  }
  
  .search-box {
    min-width: 100%;
  }
  
  .filter-box select {
    width: 100%;
  }
  
  .file-row { 
    grid-template-columns: 1fr; 
    gap: var(--spacing-3);
    padding: var(--spacing-4);
  }
  
  .file-actions-cell {
    justify-content: flex-start;
  }
  
  .user-row { 
    grid-template-columns: 1fr; 
    gap: var(--spacing-3);
    padding: var(--spacing-4);
  }
  
  .user-row > div {
    text-align: left;
  }
  
  .admin-header { 
    flex-direction: column; 
    gap: var(--spacing-4); 
    padding: var(--spacing-5); 
  }
  
  .admin-header h1 { 
    font-size: var(--font-xl); 
    text-align: center;
  }
  
  .admin-header-right {
    justify-content: center;
  }
  
  .tab-btn { 
    padding: var(--spacing-3) var(--spacing-5); 
    font-size: var(--font-sm); 
  }
  
  .admin-tabs {
    width: 100%;
    justify-content: stretch;
  }
  
  .permission-grid { 
    grid-template-columns: 1fr; 
    gap: var(--spacing-3);
  }
  
  .upload-area { 
    padding: var(--spacing-6) var(--spacing-3); 
  }
  
  .storage-stats {
    flex-direction: column;
    gap: var(--spacing-4);
  }
  
  .storage-stats .stat-divider {
    display: none;
  }
  
  .btn {
    height: 40px;
    padding: var(--spacing-2) var(--spacing-4);
  }
  
  .limit-info {
    font-size: var(--font-xs);
    padding: var(--spacing-2) var(--spacing-4);
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    padding: var(--spacing-6) var(--spacing-4);
  }
  
  .file-row { 
    grid-template-columns: 1fr 120px 180px; 
    gap: var(--spacing-4);
  }
  
  .user-row { 
    grid-template-columns: 1fr 100px 1fr 120px 160px; 
    gap: var(--spacing-3);
  }
  
  .admin-header {
    padding: var(--spacing-4);
  }
  
  .permission-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .storage-stats {
    gap: var(--spacing-4);
  }
}

@media (min-width: 1025px) {
  .container {
    max-width: 1400px;
  }
  
  .file-row { 
    grid-template-columns: 1fr 140px 220px; 
  }
  
  .user-row { 
    grid-template-columns: 1fr 120px 1fr 140px 180px; 
  }
}