:root {
  --primary-color: #6366f1;
  --secondary-color: #06b6d4;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 20px;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background-gradient);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: var(--card-shadow);
  border: none;
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.75rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section {
  background: transparent;
  color: white;
  text-align: center;
  padding: 8rem 2rem 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  opacity: 0.95;
  margin-bottom: 3rem;
  font-weight: 300;
}

.main-upload-section {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 4rem 3rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.main-upload-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.upload-area {
  border: 4px dashed var(--primary-color);
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: 1;
}

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

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.upload-area:hover {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  transform: scale(1.02);
  border-color: var(--secondary-color);
}

.upload-area.dz-drag-hover {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  border-color: var(--success-color);
  transform: scale(1.05);
}

.upload-icon {
  font-size: 4rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: block;
}

.upload-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.upload-subtext {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 2.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.form-control {
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  padding: 14px 18px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  background: white;
}

.btn {
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-success {
  background: linear-gradient(45deg, var(--success-color), #059669);
  color: white;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

.results-section {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 3px solid var(--success-color);
  border-radius: var(--border-radius);
  padding: 3rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.results-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--success-color), var(--secondary-color));
}

.qr-display {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 2px solid #e5e7eb;
}

.qr-display img {
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.other-tools {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  margin: 4rem 0 2rem;
  text-align: center;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tool-card {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
  text-decoration: none;
  color: inherit;
}

.tool-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 350px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.copy-success {
  background: var(--success-color);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  margin: 1rem 0;
  animation: slideInRight 0.3s ease-out;
}

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

footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  margin-top: 4rem;
  padding: 3rem 0;
  text-align: center;
  color: #6b7280;
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin: 0 1rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .main-upload-section {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  
  .upload-area {
    padding: 2rem 1rem;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.qr-container {
  background: #f8fafc;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d1d5db;
  transition: all 0.3s ease;
}

.qr-container:has(img) {
  border-color: var(--success-color);
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  border-radius: var(--border-radius);
  display: block;
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.view-toggle {
  margin-bottom: 1rem;
}

/* Compact Styles for Results Section */
.results-section {
  padding: 2rem 1rem;
  border-width: 2px;
}

.results-section h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.results-section p {
  margin-bottom: 1.5rem;
}

.stat-card-compact {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 0.5rem;
}

.stat-number-compact {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
}

.stat-label-compact {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.qr-display-compact {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.qr-container-compact {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d1d5db;
}

.info-card-compact {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
}

.info-card-compact h6 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.info-card-compact p {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.info-card-compact .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

.results-section {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid var(--success-color);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
}

.results-section h3 {
  font-size: 1.5rem;
}

.results-section .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .stat-card-compact {
    padding: 0.75rem;
  }
  
  .stat-number-compact {
    font-size: 1.25rem;
  }
  
  .qr-display-compact {
    padding: 1rem;
  }
  
  .info-card-compact {
    padding: 0.75rem;
    font-size: 0.8rem;
  }
}

/* 文件预览样式 */
.uploaded-files-preview {
  margin-top: 20px;
}

.file-preview-card {
  position: relative;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #007bff;
}

.file-preview-image {
  position: relative;
  overflow: hidden;
}

.file-preview-image img {
  transition: transform 0.3s ease;
}

.file-preview-image img:hover {
  transform: scale(1.05);
}

.file-preview-info {
  padding: 8px 12px;
  background: #f8f9fa;
}

.file-name-small {
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 2px;
}

.file-size-small {
  font-size: 10px;
  color: #6c757d;
}

.remove-file-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dc3545;
  color: #dc3545;
  font-size: 10px;
  opacity: 0;
  transition: all 0.3s ease;
}

.file-preview-card:hover .remove-file-btn {
  opacity: 1;
}

.remove-file-btn:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

/* 上传进度样式 */
.upload-progress {
  text-align: center;
  padding: 20px;
}

.upload-success {
  text-align: center;
  padding: 20px;
}

.upload-ready-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.upload-ready-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* 拖拽悬停效果 */
.dropzone.dragover {
  border-color: #007bff !important;
  background-color: #f0f8ff !important;
  transform: scale(1.02);
}

.dropzone.dragover .upload-content {
  color: #007bff;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .file-preview-card {
    margin-bottom: 10px;
  }
  
  .uploaded-files-preview .row {
    margin: 0 -5px;
  }
  
  .uploaded-files-preview .col-6 {
    padding: 0 5px;
  }
  
  .file-preview-info {
    padding: 6px 8px;
  }
  
  .file-name-small {
    font-size: 11px;
  }
  
  .file-size-small {
    font-size: 9px;
  }
}

/* 模态框样式优化 */
.modal {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal .modal-content {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 通知系统样式 */
#notification {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  border-radius: 12px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 按钮状态样式 */
.btn-primary.generating {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary.generating::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Language Selector Styles */
.language-selector {
  position: relative;
  display: inline-block;
}

.language-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #374151;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.language-toggle:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
}

.language-toggle i {
  font-size: 16px;
  opacity: 0.8;
}

.language-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-width: 150px;
  z-index: 1000;
  margin-top: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.language-selector:hover .language-options,
.language-options:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  padding: 10px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  color: var(--primary-color);
  text-decoration: none;
  transform: translateX(4px);
}

.language-option.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.language-option.active:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateX(0);
}

/* 确保导航栏中的语言选择器正确显示 */
.navbar .language-selector {
  margin-left: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .language-selector {
    position: static;
    margin-top: 10px;
  }
  
  .language-options {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 0;
  }
  
  .language-option {
    border: 1px solid #e5e7eb;
    margin-bottom: 5px;
    border-radius: 6px;
  }
}

/* 文件预览样式 */
#uploadedFilesPreview {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.file-preview-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 180px;
}

.file-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.file-preview-image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.file-preview-image img {
  transition: transform 0.3s ease;
}

.file-preview-card:hover .file-preview-image img {
  transform: scale(1.05);
}

.remove-file-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.file-preview-card:hover .remove-file-btn {
  opacity: 1;
}

.remove-file-btn:hover {
  background: #dc3545;
  transform: scale(1.1);
}

.file-preview-info {
  padding: 10px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.file-name-small {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size-small {
  font-size: 11px;
  color: #666;
}

/* 上传进度样式 */
.upload-progress {
  text-align: center;
  padding: 40px 20px;
}

.upload-success {
  text-align: center;
  padding: 40px 20px;
}

.upload-ready-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.upload-ready-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 生成按钮样式 */
.btn-generate {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-generate:hover:not(:disabled) {
  background: linear-gradient(45deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-generate:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.btn-generate.generating {
  background: #28a745;
}

.btn-generate.generating::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 响应式设计 */
@media (max-width: 576px) {
  .file-preview-card {
    height: 160px;
  }
  
  .file-preview-image {
    height: 100px;
  }
  
  .file-preview-info {
    height: 60px;
    padding: 8px;
  }
  
  .file-name-small {
    font-size: 11px;
  }
  
  .file-size-small {
    font-size: 10px;
  }
}

/* 通知样式增强 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(45deg, #28a745, #20c997);
}

.notification.error {
  background: linear-gradient(45deg, #dc3545, #e74c3c);
}

.notification.info {
  background: linear-gradient(45deg, #17a2b8, #007bff);
}

/* Dropzone 点击区域修复 */
.dropzone {
  cursor: pointer !important;
  position: relative;
}

.dropzone * {
  pointer-events: none; /* 禁用子元素的点击事件 */
}

.dropzone .dz-message {
  pointer-events: none !important;
}

.dropzone .dz-preview {
  pointer-events: auto; /* 重新启用预览元素的点击事件 */
}

.dropzone .dz-remove {
  pointer-events: auto !important; /* 确保删除按钮可以点击 */
}

.dropzone .dz-details {
  pointer-events: auto !重要; /* 确保详情可以点击 */
}

/* 确保整个dropzone区域都可以触发上传 */
.upload-area.dropzone {
  cursor: pointer !important;
}

.upload-area.dropzone:before,
.upload-area.dropzone:after {
  pointer-events: none !important;
}

/* 上传图标和文字不应该阻止点击 */
.upload-icon,
.upload-text,
.upload-subtext {
  pointer-events: none !important;
  user-select: none;
}

/* 文件预览区域样式调整 */
.dz-preview {
  margin: 10px !important;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dz-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dz-remove {
  background: #dc3545 !important;
  color: white !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  border: none !important;
  cursor: pointer !important;
  margin-top: 5px !important;
}

.dz-remove:hover {
  background: #c82333 !important;
}

/* Language Selector Styles - Enhanced */
.language-selector {
  margin-left: 1rem;
}

.language-selector .dropdown-toggle {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: #374151 !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 120px !important;
  justify-content: space-between !important;
}

.language-selector .dropdown-toggle:hover,
.language-selector .dropdown-toggle:focus {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.language-selector .dropdown-toggle::after {
  margin-left: auto !important;
  border-top-color: currentColor !important;
}

/* Flag styling */
#currentLanguageFlag {
  font-size: 1.5rem !important;
  line-height: 1 !important;
  display: inline-block !important;
  margin-right: 4px !important;
}

/* Language name styling */
#currentLanguageName {
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  color: inherit !important;
}

/* Dropdown menu styling */
.language-selector .dropdown-menu {
  background: white !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  padding: 8px 0 !important;
  min-width: 140px !important;
  margin-top: 8px !important;
}

.language-selector .dropdown-item {
  padding: 10px 16px !important;
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: none !important;
  background: none !important;
}

.language-selector .dropdown-item:hover {
  background: linear-gradient(135deg, #f8faff, #eef2ff) !important;
  color: var(--primary-color) !important;
}

.language-selector .dropdown-item:active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
}

/* Flag icons in dropdown */
.flag-icon {
  font-size: 1.3rem !important;
  line-height: 1 !important;
  display: inline-block !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .language-selector {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .language-selector .dropdown-toggle {
    font-size: 13px !important;
    padding: 6px 12px !important;
    min-width: 100px !important;
  }
  
  #currentLanguageFlag {
    font-size: 1.2rem !important;
  }
  
  #currentLanguageName {
    font-size: 13px !important;
  }
}

#currentLanguageName {
  font-size: 13px !important;
}

/* Enhanced Results Section Styles */
.success-header {
  position: relative;
  padding: 2rem 0;
}

.success-icon-container {
  margin-bottom: 1.5rem;
  position: relative;
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.success-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--success-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.success-subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  font-weight: 400;
}

/* Enhanced Statistics Cards */
.stats-container {
  position: relative;
}

.stat-card-enhanced {
  background: white;
  border-radius: 10px;
  padding: 1rem 0.85rem;
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.stat-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.stat-card-enhanced:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 1.3rem;
  color: white;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.stat-label {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

/* Enhanced Result Cards */
.result-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 2px solid #f1f5f9;
  transition: all 0.3s ease;
  overflow: hidden;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.result-card-header {
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #f1f5f9;
}

.result-card-header h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.result-card-body {
  padding: 2rem;
}

/* QR Card Special Styling */
.qr-card {
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  border: 2px solid var(--primary-color);
}

.qr-container-enhanced {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 3px dashed #d1d5db;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.qr-container-enhanced:has(img) {
  border-color: var(--success-color);
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.qr-container-enhanced img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.qr-container-enhanced img:hover {
  transform: scale(1.05);
}

/* Share Link Container */
.share-link-container {
  position: relative;
}

.share-link-container .form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

.share-link-container .input-group {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.share-link-container .form-control {
  border: 2px solid #e5e7eb;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem;
  background: #f8fafc;
}

.share-link-container .btn {
  border: 2px solid var(--primary-color);
  background: var(--primary-color);
  font-weight: 600;
}

/* Copy Feedback */
.copy-feedback {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-success {
  background: linear-gradient(45deg, var(--success-color), #059669);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInUp 0.3s ease-out;
}

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

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-buttons .btn {
  flex: 1;
  min-width: 140px;
}

/* Tracking Card */
.tracking-card {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid var(--accent-color);
}

.tracking-info {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
}

.tracking-info .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Responsive Design for Enhanced Results */
@media (max-width: 768px) {
  .success-title {
    font-size: 2rem;
  }
  
  .success-icon {
    font-size: 3rem;
  }
  
  .stat-card-enhanced {
    padding: 0.8rem 0.6rem;
    gap: 0.6rem;
  }
  
  .stat-icon {
    width: 36px;
    height: 36px;
  }
  
  .stat-icon i {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .stats-container .col-sm-12 .stat-card-enhanced {
    margin-top: 0.5rem;
  }
  
  .result-card-body {
    padding: 1.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .btn {
    min-width: auto;
  }
}

/* Tracking Code Display Styles */
.tracking-code-display {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  margin: 0.75rem 0;
  position: relative;
  overflow: hidden;
}

.tracking-code-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tracking-code-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tracking Info Compact Styles */
.tracking-info-compact {
  margin: 0.5rem 0;
}

.gallery-info {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.gallery-info .info-text {
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
}

.tracking-code-value {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 2px;
  word-break: break-all;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.tracking-code-value::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(99, 102, 241, 0.05) 50%, transparent 51%);
  pointer-events: none;
}

/* Tracking Detail Styles */
.tracking-detail {
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  text-align: center;
}

.tracking-detail strong {
  color: #374151;
  font-size: 1rem;
}

.tracking-detail .text-muted {
  margin-left: 0.5rem;
  font-size: 1rem;
}