/* ===== Global Styles ===== */
:root {
  --primary: #D81E2C;
  --primary-dark: #B01825;
  --primary-light: #FDE8EA;
  --success: #16a34a;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --info: #0ea5e9;
  --info-light: #e0f2fe;
  --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;
  --sidebar-width: 240px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

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

/* ===== 登录遮罩 ===== */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.login-box {
  width: 360px;
  max-width: 90vw;
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  text-align: center;
}
.login-logo { font-size: 48px; margin-bottom: 8px; }
.login-box h2 { font-size: 19px; color: var(--gray-800); margin-bottom: 6px; }
.login-sub { font-size: 14px; color: var(--gray-500); margin-bottom: 22px; }
.login-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.login-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.login-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.login-btn { width: 100%; padding: 12px; font-size: 15px; letter-spacing: 4px; }

/* 侧边栏底部退出登录 */
.sidebar-footer { margin-top: auto; padding: 16px; border-top: 1px solid rgba(255,255,255,0.12); }
.logout-btn { color: rgba(255,255,255,0.75) !important; font-size: 14px; padding: 6px 0; text-align: left; }
.logout-btn:hover { color: #fff !important; }
.current-user { color: rgba(255,255,255,0.6); font-size: 13px; padding: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #D64541 0%, #C0392B 55%, #A93226 100%);
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 2px 0 12px rgba(169,50,38,0.3);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.logo { font-size: 32px; margin-bottom: 8px; }
.sidebar-header h2 { font-size: 14px; color: rgba(255,255,255,0.9); }

.nav-list {
  list-style: none;
  padding: 10px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0;
}

.nav-item:hover { background: rgba(255,255,255,0.12); }
.nav-item.active {
  background: #FFFFFF;
  color: #C0392B;
  font-weight: 600;
  border-radius: 8px;
  margin: 0 12px;
}

.nav-icon { font-size: 18px; margin-right: 12px; }
.nav-text { font-size: 14px; }

/* ===== Main Content ===== */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 24px 32px;
  min-height: 100vh;
}

.view { display: none; }
.view.active { display: block; }

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #7A1525;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--primary);
}

.stat-number { font-size: 28px; font-weight: 700; color: var(--gray-900); }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.stat-today .stat-number { color: var(--primary); }
.stat-pending .stat-number { color: var(--warning); }
.stat-review .stat-number { color: var(--info); }
.stat-approved .stat-number { color: var(--success); }
.stat-rejected .stat-number { color: var(--danger); }

/* ===== Dashboard Section ===== */
.dashboard-section {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.dashboard-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

/* ===== Data Table ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--gray-50);
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
  font-weight: 600;
  color: var(--gray-600);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.data-table tr:hover td { background: var(--gray-50); }

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-pending { background: var(--warning-light); color: var(--warning); }
.status-under_review { background: var(--info-light); color: var(--info); }
.status-approved { background: var(--success-light); color: var(--success); }
.status-rejected { background: var(--danger-light); color: var(--danger); }

/* ===== Toolbar ===== */
.toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: center;
}

.search-input {
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  width: 300px;
  outline: none;
}

.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-large { padding: 12px 24px; font-size: 16px; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }

.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #b45309; }

.btn-outline { background: white; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.btn-camera { background: var(--gray-700); color: white; font-size: 14px; }
.btn-camera:hover { background: var(--gray-800); }

.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn-action { padding: 4px 8px; font-size: 12px; margin: 0 2px; }

/* ===== Step Indicator ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  padding: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.step.active .step-circle { background: var(--primary); color: white; }
.step.completed .step-circle { background: var(--success); color: white; }
.step-label { font-size: 13px; color: var(--gray-400); }
.step.active .step-label { color: var(--primary); font-weight: 500; }
.step.completed .step-label { color: var(--success); }

.step-line {
  width: 40px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 8px;
  margin-bottom: 24px;
}

.step-line.completed { background: var(--success); }

/* ===== Form Cards ===== */
.form-step { display: none; }
.form-step.active { display: block; }

.form-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.form-card h2 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.form-hint {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* 步骤3 顶部:从行驶证/绿本识别车辆信息后显示的"已自动填入"提示 */
.vehicle-ocr-tip {
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-left: 4px solid #f9a825;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 4px;
  font-size: 14px;
  color: #6d4c00;
  line-height: 1.7;
}
.vehicle-ocr-tip .btn-link {
  background: none;
  border: none;
  color: #1565c0;
  cursor: pointer;
  padding: 0 4px;
  font-size: 14px;
  text-decoration: underline;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

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

.required { color: var(--danger); }

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}

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

.form-group textarea { resize: vertical; }

.full-width { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

/* ===== Upload Grid ===== */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.upload-box {
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-box:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-box.has-file { border-color: var(--success); border-style: solid; background: var(--success-light); }

.upload-icon { font-size: 28px; }
.upload-label { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.upload-hint { font-size: 12px; color: var(--gray-400); }

.upload-preview {
  margin-top: 8px;
  max-width: 100%;
}

.upload-preview img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 4px;
  object-fit: cover;
}

/* ===== Payment Preview ===== */
.payment-preview {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  border: 1px solid var(--primary);
}

.payment-preview h3 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.preview-item {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.preview-label {
  font-size: 13px;
  color: var(--gray-500);
}

.preview-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  display: block;
  margin-top: 4px;
}

/* ===== Check Results ===== */
.check-action-area {
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
}

.check-status {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 12px;
}

.risk-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
}

.risk-badge.low { background: var(--success-light); color: var(--success); }
.risk-badge.medium { background: var(--warning-light); color: var(--warning); }
.risk-badge.high { background: var(--danger-light); color: var(--danger); }

.risk-label { font-size: 14px; }

.check-summary {
  background: white;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
}

.check-summary h3 { font-size: 16px; margin-bottom: 8px; }

.check-details-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.check-detail-card {
  background: white;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.check-detail-card h4 {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.detail-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
}

.detail-number.has-records { color: var(--danger); cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.detail-number.has-records:hover { background: var(--danger-light); border-radius: 4px; }
.detail-number.clean { color: var(--success); }

.detail-list { font-size: 12px; color: var(--gray-500); margin-top: 8px; }
.detail-level { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.check-case-card { background: #fafafa; border: 1px solid var(--gray-200); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.check-case-card .case-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--gray-200); }
.check-case-card .case-title { font-weight: 600; color: var(--gray-800); font-size: 15px; }
.check-case-card .case-tag { font-size: 12px; padding: 2px 10px; border-radius: 10px; background: var(--gray-100); color: var(--gray-600); }
.check-case-card .case-tag.role-原告 { background: #E0F2FE; color: #0369A1; }
.check-case-card .case-tag.role-被告 { background: #FEF3C7; color: #92400E; }
.detail-field { display: flex; font-size: 13px; line-height: 1.9; color: var(--gray-700); }
.detail-field .field-label { width: 96px; flex-shrink: 0; color: var(--gray-500); }
.detail-field .field-value { color: var(--gray-800); word-break: break-all; }
.detail-field .field-value.amount { color: var(--danger); font-weight: 600; }
.detail-field .field-value.amount-good { color: var(--success); font-weight: 600; }

.case-doc-area { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--gray-200); flex-wrap: wrap; }
.case-doc-link { color: var(--info); text-decoration: none; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.case-doc-link:hover { text-decoration: underline; }
.case-doc-empty { color: var(--gray-400); font-size: 12px; }
.case-doc-upload { display: inline-block; }
.case-doc-upload label { display: inline-block; padding: 4px 12px; background: var(--gray-100); color: var(--gray-700); border-radius: 6px; font-size: 12px; cursor: pointer; }
.case-doc-upload label:hover { background: var(--gray-200); }
.case-doc-upload input[type=file] { display: none; }
.case-doc-uploading { color: var(--gray-500); font-size: 12px; }
.detail-modal-empty { color: var(--gray-500); font-size: 14px; text-align: center; padding: 32px 16px; }

/* ===== Approval Area ===== */
.approval-area {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 20px;
  margin-bottom: 20px;
}

.approval-badge {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
}

.approval-badge.approved { background: var(--success-light); color: var(--success); }
.approval-badge.rejected { background: var(--danger-light); color: var(--danger); }
.approval-badge.pending_manual { background: var(--warning-light); color: var(--warning); }

.approval-reason {
  background: white;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  font-size: 14px;
}

/* ===== Contract Area ===== */
#contract-area {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.contract-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin: 8px 0;
}

.contract-name { font-weight: 500; }
.contract-action { display: flex; gap: 8px; }

.contract-warning {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.7;
}

/* ===== Detail View ===== */
.detail-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.tab-btn {
  padding: 12px 20px;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-600);
  transition: all 0.2s;
  border-right: 1px solid var(--gray-200);
}

.tab-btn:last-child { border-right: none; }
.tab-btn:hover { background: var(--gray-50); }
.tab-btn.active { background: var(--primary); color: white; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.detail-grid {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border: 1px solid var(--gray-200);
}

.detail-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.detail-item .label {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.detail-item .value {
  font-size: 15px;
  color: var(--gray-800);
  font-weight: 500;
}

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

.doc-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.doc-card img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.doc-card .doc-type {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 8px;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  max-width: 640px;
  width: 90%;
  overflow: hidden;
}

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

.modal-header h2 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px; }

.modal-body { padding: 24px; }

.modal-body video {
  width: 100%;
  border-radius: var(--radius);
  background: var(--gray-900);
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
}

/* ===== Batch Import Modal ===== */
.modal-large { width: 92%; max-width: 860px; max-height: 88vh; overflow-y: auto; }
.modal-actions { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.import-status { margin-top: 12px; font-size: 14px; color: var(--gray-600); min-height: 20px; }
.import-status.error { color: var(--danger); }
.import-status.ok { color: var(--success); }
.import-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.import-thumb { border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; background: var(--gray-50); }
.import-thumb img { width: 100%; height: 100px; object-fit: cover; display: block; }
.import-thumb .thumb-name { font-size: 11px; padding: 4px 6px; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.import-warn { background: #FFF7E6; border: 1px solid #FFD591; color: #874D00; padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: 14px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 2000;
  transform: translateX(120%);
  transition: transform 0.3s;
  box-shadow: var(--shadow-md);
}

.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); color: white; }
.toast.error { background: var(--danger); color: white; }
.toast.warning { background: var(--warning); color: white; }
.toast.info { background: var(--info); color: white; }

/* ===== 背景审查核对清单 ===== */
.check-meta-grid { display:flex; gap:16px; margin:14px 0; flex-wrap:wrap; }
.check-meta-grid .form-row { flex:1; min-width:180px; }
.check-item { border:1px solid var(--gray-200); border-radius:10px; padding:14px 16px; margin-bottom:12px; background:#fff; }
.check-item-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.check-item-name { font-weight:600; color:var(--gray-800); }
.check-item-site { font-size:13px; color:var(--primary); text-decoration:none; white-space:nowrap; }
.check-item-site:hover { text-decoration:underline; }
.check-item-options { display:flex; gap:18px; align-items:center; flex-wrap:wrap; margin:10px 0 8px; font-size:14px; color:var(--gray-700); }
.check-item-options label { display:inline-flex; align-items:center; gap:4px; cursor:pointer; }
.shot-upload { color:var(--primary); cursor:pointer; }
.shot-upload input { margin-left:6px; }
.shot-preview { font-size:13px; color:var(--gray-600); }
.shot-remove { margin-left:6px; border:none; background:none; color:var(--danger); cursor:pointer; font-size:13px; }
.check-item-note { width:100%; margin-top:4px; }
.check-item-result { font-weight:600; }
.check-meta { line-height:1.6; }

/* ===== OCR 进度条 ===== */
.ocr-progress {
  margin: 14px 0 4px;
  background: #f1f1f1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 26px;
}
.ocr-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d61f26, #ff5a5f);
  transition: width .25s ease;
}
.ocr-progress-text {
  position: absolute;
  left: 10px;
  top: 0;
  line-height: 26px;
  font-size: 12px;
  color: #333;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar-header h2, .nav-text { display: none; }
  .sidebar-header .logo { font-size: 24px; }
  .main-content { margin-left: 60px; padding: 16px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: repeat(2, 1fr); }
  .check-details-grid { grid-template-columns: repeat(3, 1fr); }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 用户管理面板 */
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.card h3 { margin: 0 0 14px; font-size: 16px; color: #1f2937; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-row input, .form-row select { padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; min-width: 180px; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; border: 1px solid #d1d5db; background: #f3f4f6; cursor: pointer; margin-right: 6px; }
.btn-sm:hover { background: #e5e7eb; }
.btn-danger { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }
.btn-danger:hover { background: #fee2e2; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; }
.data-table th { background: #f9fafb; color: #374151; font-weight: 600; }
