/* 全局样式 */
:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #64748b;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --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);
  --transition-base: all 0.3s ease;
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --font-sans: "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --spacing-base: 1rem;
}

body {
  font-family: var(--font-sans);
  color: var(--dark-color);
  background-color: #f5f7fa;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.navbar {
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  padding: 0.85rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: white !important;
  letter-spacing: 0.5px;
  font-size: 1.3rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: var(--transition-base);
  position: relative;
  padding: 0.75rem 1.25rem !important;
  font-weight: 500;
}

.nav-link:hover, .nav-link:focus {
  color: white !important;
  transform: translateY(-1px);
}

.nav-link.active {
  color: white !important;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: white;
  border-radius: 3px 3px 0 0;
}

/* 容器样式 */
.container {
  padding: 2rem 15px;
  max-width: 1280px;
}

/* 卡片样式 */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: var(--transition-base);
  overflow: hidden;
  background-color: white;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-header {
  background-color: rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

.card-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card-body {
  padding: 1.75rem;
}

/* 文档列表样式 */
.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table th {
  background-color: rgba(59, 130, 246, 0.05);
  border-top: none;
  font-weight: 600;
  color: var(--dark-color);
  padding: 1rem 1.25rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table td {
  vertical-align: middle;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--border-color);
}

.table tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

/* 生成的文档内容样式 */
.generated-content {
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.7;
  white-space: pre-wrap;
  padding: 1.75rem;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* 文件上传区域 */
.form-control[type="file"] {
  padding: 0.375rem 0.75rem;
}

/* 拖拽上传区域 */
.drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  background-color: var(--light-color);
  margin-bottom: 1.5rem;
}

.drop-zone:hover {
  border-color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.05);
}

.drop-zone.dragover {
  border-color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.1);
  transform: scale(1.02);
}

.drop-zone .bi-cloud-arrow-up {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 3rem;
  transition: var(--transition-base);
}

.drop-zone:hover .bi-cloud-arrow-up {
  color: var(--primary-hover);
  transform: translateY(-8px);
}

.selected-file {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background-color: rgba(59, 130, 246, 0.08);
  border-radius: var(--border-radius);
}

.selected-file .bi {
  font-size: 1.75rem;
  margin-right: 1rem;
  color: var(--primary-color);
}

.drop-zone-prompt {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

.drop-zone-thumb {
  width: 100%;
  height: 150px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #f1f1f1;
  background-size: cover;
  position: relative;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.file-preview {
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  background-color: var(--light-color);
  transition: var(--transition-base);
}

.file-preview:hover {
  box-shadow: var(--shadow-sm);
}

.file-preview-icon {
  font-size: 2rem;
  margin-right: 1.25rem;
  color: var(--primary-color);
}

.file-preview-info {
  flex-grow: 1;
}

.file-preview-name {
  font-weight: 600;
  word-break: break-all;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.file-preview-size {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.file-preview-remove {
  color: var(--danger-color);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-base);
}

.file-preview-remove:hover {
  transform: scale(1.2);
}

/* 文档预览 */
.document-preview {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.document-preview:hover {
  box-shadow: var(--shadow-md);
}

.document-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.document-preview-image:hover {
  transform: scale(1.02);
}

.document-preview-pdf {
  width: 100%;
  height: 500px;
  border: none;
}

.preview-modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.preview-modal .modal-content {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: none;
}

.preview-modal .modal-header {
  background-color: rgba(37, 99, 235, 0.05);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  padding: 1.25rem 1.5rem;
}

/* 上传进度条 */
.progress {
  height: 8px;
  margin-top: 1rem;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), #1d4ed8);
  transition: width 0.3s ease;
}

/* 登录注册表单 */
.nav-tabs {
  background: #fff;
  border-radius: 8px 8px 0 0;
  border: 1px solid #e2e8f0;
  padding-left: 1rem;
}
.nav-tabs .nav-link {
  color: #2563eb !important;
  background: #fff !important;
  font-weight: 500;
  border: none;
  border-radius: 8px 8px 0 0;
  margin-right: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-tabs .nav-link.active {
  color: #fff !important;
  background: #2563eb !important;
  font-weight: bold;
}

/* 按钮样式 */
.btn {
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  letter-spacing: 0.01em;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

.btn-info {
  background-color: var(--info-color);
  border-color: var(--info-color);
  color: #fff;
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

/* 提示消息样式 */
.toast {
  background-color: #fff;
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.toast-header {
  background-color: rgba(37, 99, 235, 0.05);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.toast-body {
  padding: 1.25rem;
}

/* 表格内容垂直居中 */
.table td {
  vertical-align: middle;
} 

/* 移动端优化 */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 15px;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .drop-zone {
    padding: 2rem 1rem;
  }
  
  .table-responsive {
    border: 0;
  }
  
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .document-preview-pdf {
    height: 300px;
  }
  
  .document-preview-image {
    max-height: 300px;
  }
  
  /* 移动端表格优化 */
  .mobile-table {
    display: block;
  }
  
  .mobile-table thead {
    display: none;
  }
  
  .mobile-table tbody {
    display: block;
  }
  
  .mobile-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
  }
  
  .mobile-table tr:hover {
    box-shadow: var(--shadow-md);
  }
  
  .mobile-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .mobile-table td:last-child {
    border-bottom: none;
  }
  
  .mobile-table td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 1rem;
    color: var(--dark-color);
    flex-shrink: 0;
    width: 40%;
  }
  
  /* 移动端导航栏 */
  .navbar-collapse {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    padding: 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* 移动端模态框 */
  .modal-dialog.modal-lg, .modal-dialog.modal-xl {
    max-width: 100%;
    margin: 0.5rem;
  }
  
  /* 移动端文档预览 */
  .preview-modal .modal-body {
    max-height: 60vh;
  }
}

/* 平板优化 */
@media (min-width: 769px) and (max-width: 992px) {
  .container {
    padding: 1.5rem 15px;
  }
  
  .document-preview-pdf {
    height: 400px;
  }
  
  .document-preview-image {
    max-height: 400px;
  }
}

/* 选中文件列表样式 */
.selected-files {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: rgba(37, 99, 235, 0.05);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.selected-files-list {
  text-align: left;
  max-height: 150px;
  overflow-y: auto;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.5);
}

.selected-file-item {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  transition: var(--transition-base);
  border-radius: var(--border-radius-sm);
}

.selected-file-item:hover {
  background-color: rgba(37, 99, 235, 0.05);
}

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

.selected-file-item .bi {
  margin-right: 0.75rem;
  color: var(--primary-color);
}

/* 批量处理按钮样式 */
.batch-actions {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* 文档状态标签样式 */
.badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  border-radius: 50rem;
  font-weight: 500;
}

.badge.bg-success {
  background-color: var(--success-color) !important;
}

.badge.bg-warning {
  background-color: var(--warning-color) !important;
  color: #212529;
}

/* 文档选择框样式 */
.form-check-input {
  cursor: pointer;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0;
  vertical-align: middle;
  transition: var(--transition-base);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

.slide-in-up {
  animation: slideInUp 0.5s ease forwards;
}

/* 标签页切换动画 */
.tab-pane.fade {
  transition: opacity 0.3s ease;
}

/* 模态框动画 */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

/* 加载中动画 */
.spinner-border {
  vertical-align: middle;
} 

/* 表单样式增强 */
.form-control, .form-select {
  border-radius: var(--border-radius);
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

/* 页面区域分隔 */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
  margin: 2rem 0;
}

/* 页面标题样式 */
h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-hover));
  border-radius: 2px;
}

/* 文档列表增强 */
.document-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.document-list-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0;
}

.document-actions {
  display: flex;
  gap: 0.75rem;
}

/* 卡片组样式 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: var(--border-radius-lg);
  transition: all 0.4s ease;
}

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

.feature-card .bi {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.feature-card:hover .bi {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.feature-card h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.feature-card p {
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* 文档分析结果样式 */
.analysis-section {
  margin-bottom: 1.5rem;
}

.analysis-section h6 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.keyword-tag {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.35em 0.75em;
  border-radius: 50rem;
  font-size: 0.875rem;
} 

/* 登录页面样式 */
.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.login-card {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: none;
  transition: all 0.4s ease;
}

.login-card .card-header {
  background-color: white;
  border-bottom: none;
  padding-bottom: 0;
}

.login-card .nav-tabs {
  border-bottom: none;
}

.login-card .nav-tabs .nav-link {
  font-weight: 500;
  color: var(--secondary-color);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.login-card .nav-tabs .nav-link:hover {
  color: var(--primary-color);
}

.login-card .nav-tabs .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
  background-color: transparent;
  border-bottom: 3px solid var(--primary-color);
}

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

.input-group-text {
  background-color: var(--light-color);
  border-color: var(--border-color);
  color: var(--primary-color);
}

.btn-lg {
  padding: 0.75rem 1rem;
  font-weight: 600;
}

/* 文档列表头部样式 */
.document-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.document-list-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0;
}

.document-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15);
}

/* 徽章样式 */
.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
  border-radius: 30px;
  font-size: 0.75rem;
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .welcome-title {
    font-size: 1.75rem;
  }
  
  .login-card .card-body {
    padding: 1.5rem;
  }
  
  .document-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .document-actions {
    width: 100%;
  }
}

/* 动画增强 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.feature-card:hover .bi {
  animation: pulse 1.5s infinite;
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* 卡片网格布局优化 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* 拖拽上传区域美化 */
.drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  background-color: var(--light-color);
  margin-bottom: 1.5rem;
}

.drop-zone:hover {
  border-color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.05);
}

.drop-zone.dragover {
  border-color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.1);
  transform: scale(1.02);
}

.drop-zone .bi-cloud-arrow-up {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 3rem;
  transition: var(--transition-base);
}

.drop-zone:hover .bi-cloud-arrow-up {
  color: var(--primary-hover);
  transform: translateY(-8px);
}

.drop-zone-prompt {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* 按钮组样式 */
.d-grid .btn {
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.d-grid .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
} 

/* 智能扫描界面样式 */
.scan-modes .card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.scan-modes .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scan-modes .card.border-primary {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.camera-viewfinder {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.edge-detection-overlay {
    pointer-events: none;
}

.edge-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: move;
    pointer-events: auto;
}

.edge-handle.top-left {
    top: 0;
    left: 0;
}

.edge-handle.top-right {
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
}

.edge-handle.bottom-left {
    bottom: 0;
    left: 0;
    transform: translate(-50%, 50%);
}

.edge-handle.bottom-right {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
}

.preview-container {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s;
}

.thumbnail-item:hover {
    border-color: #6c757d;
}

.thumbnail-item.active {
    border-color: #0d6efd;
}

.enhance-mode-selector button {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.enhance-mode-selector button i {
    font-size: 24px;
    margin-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-option {
    cursor: pointer;
    width: 80px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.filter-option:hover {
    background-color: #f8f9fa;
}

.filter-option.active {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

.filter-preview {
    height: 60px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.filter-preview i {
    font-size: 24px;
    color: #6c757d;
}

/* 相机取景器样式 */
.camera-scan-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.camera-scan-corners {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #fff;
    border-style: solid;
    border-width: 0;
}

.camera-scan-corners.top-left {
    top: -2px;
    left: -2px;
    border-top-width: 4px;
    border-left-width: 4px;
}

.camera-scan-corners.top-right {
    top: -2px;
    right: -2px;
    border-top-width: 4px;
    border-right-width: 4px;
}

.camera-scan-corners.bottom-left {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 4px;
    border-left-width: 4px;
}

.camera-scan-corners.bottom-right {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 4px;
    border-right-width: 4px;
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.camera-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.camera-btn:hover {
    transform: scale(1.1);
}

.camera-btn.capture {
    width: 70px;
    height: 70px;
}

.camera-btn.capture::after {
    content: '';
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0d6efd;
}

.camera-mode-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    z-index: 10;
}

.scan-mode-tooltip {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10;
    white-space: nowrap;
}

/* 进度指示器样式 */
.process-progress {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.process-progress-bar {
    height: 100%;
    background-color: #0d6efd;
    border-radius: 3px;
    transition: width 0.2s;
}

/* 处理结果卡片样式 */
.result-card {
    transition: all 0.2s;
    position: relative;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-card-img {
    height: 160px;
    object-fit: cover;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.result-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 4px;
}

.result-card:hover .result-card-actions {
    display: flex;
}

/* 扫描全能王风格的UI元素 */
.scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.scan-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.scan-title i {
    margin-right: 10px;
    color: #0d6efd;
}

.scan-button {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.scan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.scan-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s;
}

.scan-fab:hover {
    transform: scale(1.1);
}

.scan-fab i {
    transition: transform 0.3s;
}

.scan-fab:hover i {
    transform: rotate(45deg);
}

.doc-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.doc-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doc-item-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.doc-item-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
}

.doc-item-date {
    font-size: 12px;
    color: #6c757d;
}

.doc-item-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.doc-item:hover .doc-item-actions {
    opacity: 1;
} 