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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --secondary: #64748b;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #fef2f2 100%);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.logo h1 {
  font-size: 22px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

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

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

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

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

.btn-large {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
}

/* Main Content */
.main-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
  padding: 28px 0;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Panels */
.panel {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.panel:hover {
  box-shadow: var(--shadow-lg);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--gray-800);
}

.panel-title-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-title-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
  position: relative;
}

.upload-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-area:hover::before,
.upload-area.dragover::before {
  opacity: 0.05;
}

.upload-area > * {
  position: relative;
  z-index: 1;
}

.upload-area svg {
  margin-bottom: 14px;
  color: var(--primary);
}

.upload-area p {
  color: var(--gray-600);
  margin-bottom: 6px;
  font-weight: 500;
}

.upload-hint {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 400;
}

.file-count {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  font-weight: 500;
}

.file-count span {
  color: var(--primary);
  font-weight: 700;
}

/* Preset Grid */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.preset-item {
  padding: 12px 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
  background: white;
}

.preset-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.preset-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.preset-item .size-info {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 3px;
  font-weight: 400;
}

.preset-item.active .size-info {
  color: var(--primary);
}

/* Color Grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.color-item {
  aspect-ratio: 1;
  border: 3px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.color-item:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.color-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-md);
}

.color-item.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Custom Size/Color */
.custom-size,
.custom-color {
  margin-top: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

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

.custom-size-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.custom-color-input {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.custom-color-input input[type="color"] {
  width: 50px;
  height: 40px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 2px;
}

.custom-color-input input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.custom-color-input input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Input Groups */
.input-group {
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 600;
}

.input-group input[type="number"],
.input-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  background: white;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Range Input */
.input-group input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
}

.range-value {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

/* Export Settings */
.export-settings {
  padding-top: 4px;
}

/* Preview Area */
.preview-area {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  min-height: 600px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--gray-100);
}

.preview-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-state svg {
  margin-bottom: 24px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 600;
}

.empty-state p {
  color: var(--gray-400);
  font-size: 14px;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.image-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

.image-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.image-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}

.image-card .info {
  padding: 14px;
}

.image-card .name {
  font-size: 13px;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  font-weight: 600;
}

.image-card .status {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.image-card .status.success {
  color: var(--success);
}

.image-card .status.error {
  color: var(--danger);
}

.image-card .status.pending {
  color: var(--gray-400);
}

.image-card .actions {
  display: flex;
  gap: 10px;
  padding: 0 14px 14px;
}

.image-card .actions button {
  flex: 1;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* Progress */
.progress-container {
  margin-top: 28px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.progress-bar {
  height: 10px;
  background: var(--gray-200);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 5px;
}

.progress-text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gray-600);
  text-align: center;
  font-weight: 600;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 300px;
  font-weight: 500;
  border: 1px solid var(--gray-200);
}

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

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

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

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

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

/* Responsive */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    order: 2;
  }
  
  .preview-area {
    order: 1;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  
  .header {
    padding: 14px 0;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .logo h1 {
    font-size: 18px;
  }
  
  .logo-icon {
    width: 38px;
    height: 38px;
  }
  
  .main-content {
    padding: 20px 0;
    gap: 20px;
  }
  
  .panel {
    padding: 20px;
  }
  
  .preset-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .color-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(30px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 40px 32px 24px;
  text-align: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
  }
}

.modal-icon svg {
  width: 40px;
  height: 40px;
}

.modal-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
}

.modal-body {
  padding: 24px 32px;
}

.civility-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  transition: var(--transition);
  border: 1px solid transparent;
}

.rule-item:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.rule-icon {
  width: 24px;
  height: 24px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.rule-icon svg {
  width: 14px;
  height: 14px;
}

.modal-agreement {
  padding: 16px;
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-light);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700);
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translateY(-1px);
}

.checkbox-label input[type="checkbox"]:hover + .checkbox-custom {
  border-color: var(--primary);
}

.checkbox-text {
  font-weight: 500;
  user-select: none;
}

.modal-footer {
  padding: 0 32px 32px;
}

.modal-footer .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.modal-footer .btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* 响应式 */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 12px;
  }
  
  .modal-header {
    padding: 32px 20px 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 0 20px 24px;
  }
  
  .modal-header h2 {
    font-size: 22px;
  }
  
  .modal-icon {
    width: 64px;
    height: 64px;
  }
  
  .modal-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .rule-item {
    font-size: 13px;
    padding: 12px;
    gap: 12px;
  }
}

/* 图片调整面板 */
.image-adjustments {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adjustment-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adjustment-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  min-width: 50px;
}

.adjustment-buttons {
  display: flex;
  gap: 8px;
}

.btn-adjust {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
}

.btn-adjust:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

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

.adjustment-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--gray-200);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.adjustment-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
  transition: var(--transition);
}

.adjustment-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.4);
}

.adjustment-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.range-value {
  min-width: 35px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* 图片预览弹窗 */
.preview-modal {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
}

.preview-image-container {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
  overflow: auto;
}

.preview-image-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.preview-info {
  padding: 16px 24px 24px;
  text-align: center;
  border-top: 1px solid var(--gray-100);
}

.preview-info p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 4px 0;
}

.preview-info p:first-child {
  font-weight: 600;
  color: var(--gray-800);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.modal-close:hover {
  background: white;
  color: var(--gray-900);
  transform: rotate(90deg);
}

/* 拖拽排序样式 */
.image-card[draggable="true"] {
  cursor: grab;
}

.image-card.dragging {
  opacity: 0.5;
  transform: scale(0.95);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.image-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

/* 图片覆盖层 */
.image-wrapper {
  position: relative;
  cursor: pointer;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.image-overlay svg {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.size-info-text {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 4px;
}
